From b435f2b1fc2bc8ad392dfa78aed1a5bc70c8b1e4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 08 Jun 2021 08:48:33 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/pyhmap
---
js/plotPanelControl/colorpicker/js/colorpickerEditor.js | 60
widgets/plottingP/nls/strings.js | 2
Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js | 1819 +
js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js | 5
Zplot/js/plotPanelControl/StylePanel.js | 1250
widgets/plottingP/manifest.json | 2
js/plotPanelControl/colorpicker/css/layout.css | 217
Zplot/css/bootstrap-new.min.css | 6
index.html | 46
js/plotPanelControl/StylePanel.js | 1250
Zplot/js/plotPanelControl/colorpicker/js/colorpickerEditor.js | 60
widgets/searchL/css/style.css | 42
Zplot/js/plotPanelControl/colorpicker/js/colorpicker.js | 495
Zplot/js/plotPanelControl/colorpicker/css/colorpicker.css | 162
Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js | 14303 ++++++++++
Zplot/js/plotPanelControl/PlottingUI.js | 46
widgets/plottingP/Widget.html | 6
widgets/plottingP/mars3d-src.js | 0
js/plotPanelControl/colorpicker/js/utils.js | 252
js/plotPanelControl/zTree/jquery.ztree.core.js | 1819 +
Zplot/js/plotPanelControl/PlotPanel.js | 226
js/plotPanelControl/colorpicker/js/layout.js | 67
Zplot/js/jquery.min.js | 4
Zplot/js/plotPanelControl/zTree/css/zTreeStyle.css | 97
Zplot/css/jquery-sticklr.css | 455
Zplot/js/plotPanelControl/colorpicker/js/layout.js | 67
config.json | 6
js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js | 16617 ++++++++++++
js/plotPanelControl/PlottingUI.Include.js | 31
Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js | 5
js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css | 2869 ++
Zplot/js/plotPanelControl/colorpicker/js/eye.js | 34
js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js | 14303 ++++++++++
widgets/LeftNavigationBar/css/style.css | 15
js/plotPanelControl/colorpicker/js/eye.js | 34
js/plotPanelControl/PlotPanel.js | 226
jimu.js/MapManager.js | 4
js/plotPanelControl/PlottingUI.js | 46
Zplot/js/bootstrap.min.js | 7
Zplot/js/plotPanelControl/colorpicker/js/utils.js | 252
widgets/searchL/Widget.js | 93
Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js | 16617 ++++++++++++
js/bootstrap.min.js | 7
Zplot/js/plotPanelControl/colorpicker/css/layout.css | 217
widgets/plottingP/css/style.css | 28
Zplot/css/sideBar.css | 218
Zplot/js/plotPanelControl/PlottingUI.Include.js | 31
libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude_NoCommon.js | 610
widgets/plottingP/nls/zh-cn/strings.js | 0
widgets/plottingP/Widget.js | 30
js/plotPanelControl/zTree/css/zTreeStyle.css | 97
widgets/plottingP/nls/es/strings.js | 5
Zplot/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css | 2869 ++
/dev/null | 5
js/jquery.min.js | 4
js/plotPanelControl/colorpicker/css/colorpicker.css | 162
js/plotPanelControl/colorpicker/js/colorpicker.js | 495
57 files changed, 78,268 insertions(+), 427 deletions(-)
diff --git a/Zplot/css/bootstrap-new.min.css b/Zplot/css/bootstrap-new.min.css
new file mode 100644
index 0000000..61306c1
--- /dev/null
+++ b/Zplot/css/bootstrap-new.min.css
@@ -0,0 +1,6 @@
+/*!
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
+ * Copyright 2011-2016 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.span2>ul{margin-top:4%}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left;}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
+/*# sourceMappingURL=bootstrap.min.css.map */
\ No newline at end of file
diff --git a/Zplot/css/jquery-sticklr.css b/Zplot/css/jquery-sticklr.css
new file mode 100644
index 0000000..a8821de
--- /dev/null
+++ b/Zplot/css/jquery-sticklr.css
@@ -0,0 +1,455 @@
+@font-face {
+ font-family: 'Glyphicons Halflings';
+ src: url("../fonts/glyphicons-halflings-regular.eot");
+ src: url("../fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"),
+ url("../fonts/glyphicons-halflings-regular.woff") format("woff"),
+ url("../fonts/glyphicons-halflings-regular.ttf") format("truetype"),
+ url("../fonts/glyphicons-halflings-regular.svg#fontcustom") format("svg");
+}
+
+.sticklr .notification-count {
+ display: block;
+ width: 12px;
+ height: 12px;
+ background: #555;
+ box-shadow: 0 0 3px #999;
+ border-radius: 6px;
+ -moz-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ color: #f0f0f0;
+ cursor: default;
+ font-size: 10px;
+ line-height: 12px;
+ text-indent: 3px;
+ position: absolute;
+ top: 2px;
+ left: 200px;
+ z-index: 96;
+}
+
+.sticklr td {
+ width: 15px;
+ padding-left: 50px;
+}
+
+.sticklr .calendar td:hover {
+ /*background: #eaeaea;*/
+ font-weight: bold;
+}
+.sticklr,
+.sticklr * {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 13px;
+ line-height: 18px;
+ color: #000;
+ vertical-align: baseline;
+}
+
+.sticklr,
+.sticklr > li > ul {
+ list-style-type: none;
+}
+
+.sticklr {
+ position: fixed;
+ top: 40%;
+ left: 0;
+ background-color: #fff;
+ background-color: rgba(255, 255, 255, 1);
+ /*border: 1px solid #b7b7b7;*/
+ border-left: none;
+
+ box-shadow: 2px 2px 5px #000;
+ /*-moz-box-shadow: 0 0 5px #ccc;*/
+ /*-webkit-box-shadow: 0 0 5px #ccc;*/
+ width: 25px;
+ overflow: visible;
+ z-index: 90;
+}
+
+.sticklr-right {
+ left: auto;
+ right: 0;
+ border-right: none;
+ /*border-left: 1px solid #b7b7b7;*/
+}
+
+.sticklr > li {
+ position: relative;
+ text-align: center;
+}
+
+
+/*.sticklr > li > a {*/
+ /*display: block;*/
+ /*width: 16px;*/
+ /*height: 16px;*/
+ /*padding: 4px;*/
+ /*图标的背景*/
+ /*background-color: #fff;*/
+ /*background-color: rgba(255, 255, 255, 1);*/
+ /*background-position: 4px 4px;*/
+ /*background-repeat: no-repeat;*/
+/*}*/
+.sticklr > li > a.notArrow >span{
+ display: none;
+}
+.sticklr > li > a:hover{
+ /*border: 1px solid #868686;*/
+ /*box-shadow: 0px 0px 2px 2px #ccc inset ;*/
+ /*-moz-box-shadow:0px 0px 2px 2px #ccc inset ;*/
+ /*-webkit-box-shadow: 0px 0px 2px 2px #ccc inset ;*/
+ cursor: pointer;
+}
+
+.sticklr > li > input {
+ display: block;
+ width: 16px;
+ height: 16px;
+ padding: 1px;
+ /*background-color: #f0f0f0;*/
+ /*background-color: rgba(240, 240, 240, 0.75);*/
+ background-position: 4px 4px;
+ background-repeat: no-repeat;
+}
+/*边界颜色*/
+.sticklr > li {
+ /*border-bottom: 1px solid #f7f7f7;*/
+ /*border-right: 1px solid #f7f7f7;*/
+ /*border-top: 1px solid #ccc;*/
+}
+
+.sticklr > li:first-child {
+ /*border-top: 1px solid #f7f7f7;*/
+}
+
+.sticklr > li:last-child {
+ border-bottom: 1px solid #f7f7f7;
+ border-bottom: 0px;
+}
+
+.sticklr > li > input:hover {
+ background-color: #eaeaea;
+}
+
+.sticklr > li > ul {
+ display: none;
+ position: absolute;
+ left: 26px;
+ top: -1px;
+ width: 90px;
+ overflow: hidden;
+ background-color: #fff;
+ background-color: rgba(255, 255, 255, 1);
+ border: 1px solid #b7b7b7;
+ border-radius: 2px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+ box-shadow: 0 0 5px #ccc;
+ -moz-box-shadow: 0 0 5px #ccc;
+ -webkit-box-shadow: 0 0 5px #ccc;
+ z-index: 95;
+}
+
+.sticklr-right > li > ul {
+ left: auto;
+ right: 25px;
+}
+
+.sticklr > li > ul:nth-child(3) {
+ left: 140px;
+}
+
+.sticklr > li > ul:nth-child(4) {
+ left: 387px;
+}
+
+.sticklr > li > ul:nth-child(5) {
+ left: 568px;
+}
+
+.sticklr > li > ul:nth-child(6) {
+ left: 749px;
+}
+
+.sticklr > li > ul:nth-child(7) {
+ left: 930px;
+}
+
+.sticklr-right > li > ul:nth-child(3) {
+ left: auto;
+ right: 206px;
+}
+
+.sticklr-right > li > ul:nth-child(4) {
+ left: auto;
+ right: 387px;
+}
+
+.sticklr-right > li > ul:nth-child(5) {
+ left: auto;
+ right: 568px;
+}
+
+.sticklr-right > li > ul:nth-child(6) {
+ left: auto;
+ right: 749px;
+}
+
+.sticklr-right > li > ul:nth-child(7) {
+ left: auto;
+ right: 930px;
+}
+
+.sticklr > li:hover > ul {
+ display: block;
+ float: left;
+}
+
+.sticklr.sticklr-js > li:hover > ul {
+ display: none;
+}
+
+.sticklr > li > ul > li {
+ border-bottom: 1px solid #f7f7f7;
+ border-right: 1px solid #f7f7f7;
+ border-top: 1px solid #ccc;
+ width: 90px;
+ text-shadow: 1px 1px 1px #fff;
+ padding: 1px;
+ /*margin: 1px;*/
+}
+
+.sticklr > li > ul > li:first-child {
+ border-top: 1px solid #f7f7f7;
+ padding:0px;
+ margin: 0px;
+}
+
+.sticklr > li > ul > li:last-child {
+ border-bottom: 1px solid #f7f7f7;
+}
+
+.sticklr > li > ul > li {
+ border: none !ie;
+}
+
+.sticklr > li > ul > li > a {
+ display: block;
+ padding: 8px 10px 8px 32px;
+ background-color: #f0f0f0;
+ background-color: rgba(240, 240, 240, 0.75);
+ background-position: 10px;
+ background-repeat: no-repeat;
+ color: #555;
+ min-height: 20px;
+ text-decoration: none;
+ white-space: nowrap;
+ background-color: transparent !ie;
+}
+.sticklr > li > ul > li > span {
+ display: block;
+ padding: 8px 10px 8px 32px;
+ background-color: #fff;
+ background-color: rgba(255, 255, 255, 1);
+ background-position: 10px;
+ background-repeat: no-repeat;
+ color: #555;
+ font-size: 14px;
+ min-height: 20px;
+ text-decoration: none;
+ white-space: nowrap;
+ background-color: transparent !ie;
+}
+
+.sticklr > li > ul > li > input {
+ display: block;
+ padding: 8px 10px 8px 32px;
+ background-color: #fff;
+ background-color: rgba(255, 255, 255, 1);
+ background-position: 10px;
+ background-repeat: no-repeat;
+ color: #000;
+ min-height: 18px;
+ text-decoration: none;
+ text-align: center;
+ white-space: nowrap;
+ background-color: transparent !ie;
+}
+
+.sticklr > li > ul > li > a:hover {
+ background-color: #eaeaea;
+}
+
+.sticklr > li > ul > li > input:hover {
+ background-color: #ffffff;
+
+ border-bottom: 1px solid #868686;
+ /*box-shadow: 0px 0px 2px 2px #ccc inset ;*/
+ /*-moz-box-shadow:0px 0px 2px 2px #ccc inset ;*/
+ /*-webkit-box-shadow: 0px 0px 2px 2px #ccc inset ;*/
+}
+
+.sticklr > li > ul > li.sticklr-title > a {
+ padding-left: 10px;
+ background-color: #e6e6e6;
+ cursor: default;
+ font-weight: bold;
+ background-color: transparent !ie;
+}
+.sticklr > li > ul > li.sticklr-title > span {
+ padding-left: 10px;
+ background-color: rgba(216, 213, 213, 0.9);
+ cursor: default;
+ font-weight: bold;
+}
+
+.sticklr > li > ul > li.sticklr-title > a:hover {
+ background-color: #e6e6e6;
+ background-color: transparent !ie;
+}
+
+.sticklr > li > ul > li.sticklr-title > input:hover {
+ cursor: pointer;
+ background-color: #e6e6e6;
+ background-color: transparent !ie;
+}
+
+.sticklr > li > ul > li > table {
+ border-collapse:collapse;
+ border-spacing: 0;
+}
+
+.sticklr > li > ul > li > form {
+ padding: 8px 10px;
+}
+
+.sticklr > li > ul > li input,
+.sticklr > li > ul > li select,
+.sticklr > li > ul > li textarea,
+.sticklr > li > ul > li button {
+ margin: 4px 0;
+ padding: 4px;
+}
+
+
+
+.sticklr-arrow {
+ position: absolute;
+ left: 25px;
+ top: 8px;
+ width: 0;
+ height: 0;
+ border-top: 5px solid transparent;
+ border-bottom: 5px solid transparent;
+ border-left: 5px solid #8E8D8D;
+ border-right: none;
+}
+
+.sticklr-right .sticklr-arrow {
+ left: auto;
+ right: 25px;
+ border-right: 5px solid #b7b7b7;
+ border-left: none;
+}
+
+/* icons */
+.plotting-lyphicon-save-simulationMap:before {
+ content: "\e172";
+ font-size: 18px;
+ color: rgb(0, 0, 0);
+}
+
+.plotting-lyphicon-draw-point:before {
+ content: "\e204";
+ font-size: 20px;
+ color: rgb(68, 58, 58);
+}
+
+.plotting-glyphicon-draw-line:before {
+ content: "\e205";
+ font-size: 20px;
+ color: rgb(68, 58, 58);
+}
+
+.plotting-glyphicon-draw-polygon:before {
+ content: "\e206";
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+.plotting-glyphicon-draw-flag:before {
+ content: "\e301";
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+.plotting-glyphicon-draw-arrow:before {
+ content: "\e302";
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+.plotting-glyphicon-draw-deactivate:before {
+ content: "\e303";
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.plotting-glyphicon-draw-removeAll:before {
+ content: "\e020";
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-plus:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-pencil:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-edit:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-lock:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-check:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-align-justify:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-retweet:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-adjust:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-gift:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
+.glyphicon-cog:before {
+ font-size: 20px;
+ color: rgb(0, 0, 0);
+}
+
diff --git a/Zplot/css/sideBar.css b/Zplot/css/sideBar.css
new file mode 100644
index 0000000..28cde0a
--- /dev/null
+++ b/Zplot/css/sideBar.css
@@ -0,0 +1,218 @@
+
+.main-sidebar {
+ position: fixed;
+ z-index: 900;
+ height: 100%;
+}
+
+.sidebar {
+ height: 100% !important;
+ overflow: hidden;
+ overflow-y: auto;
+}
+
+.skin-blue .main-sidebar {
+ background-color: #3c8dbc;
+}
+
+.skin-blue .sidebar-menu > li.treeview:hover > a {
+ border-left: 3px solid rgba(0, 0, 0, 0.1);
+}
+
+.skin-blue .sidebar-menu > li.treeview.active > a {
+ border-left: 3px solid rgba(0, 0, 0, 0.1);
+}
+
+.skin-blue .sidebar .second-menu,
+.skin-blue .sidebar .third-menu {
+ padding-left: 0;
+}
+
+.skin-blue .sidebar .third-menu a {
+ padding-left: 30px;
+}
+
+.skin-blue .sidebar a {
+ color: #000000;
+}
+
+/*侧边栏滚动设置 start*/
+#sidebar-menu > li:hover .sidebar-title-bar {
+ position: static;
+}
+
+.sidebar-collapse #sidebar-menu > li:hover .sidebar-title-bar {
+ position: fixed;
+}
+
+#sidebar-menu > li:hover > ul {
+ position: static;
+ height: auto;
+}
+
+.sidebar-collapse #sidebar-menu > li:hover > ul {
+ position: fixed;
+ overflow-y: auto;
+}
+
+a.sidebar-toggle {
+ width: 100%;;
+ height: 36px;
+ line-height: 36px;
+ text-align: center;
+ background-color: #2e658a;
+ color: white !important;
+ display: block;
+}
+
+.sidebar-collapse a.sidebar-toggle div.fold {
+ -webkit-transform: rotate(90deg);
+ -moz-transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ -o-transform: rotate(90deg);
+ transform: rotate(90deg);
+ transition: transform .5s;
+}
+
+/*侧边栏滚动设置 end*/
+
+.skin-blue .treeview-menu li > a {
+ border-left: 3px solid #3c8dbc;
+}
+
+.skin-blue .treeview-menu li > a:hover,
+.skin-blue .treeview-menu li.active > a {
+ background-color: rgba(0, 0, 0, 0.1);
+ border-left-color: rgba(0, 0, 0, 0.3);
+}
+
+.skin-blue .treeview-menu > li > a {
+ color: white;
+ padding-left: 35px;
+ padding-right: 26px !important;
+}
+
+.skin-blue .sidebar-menu > li > .treeview-menu {
+ margin: 0;
+ background: #3c8dbc;
+}
+
+.sidebar-menu li.active > .treeview-menu {
+ background: #3c8dbc;
+}
+
+.sidebar-title-bar .fa-angle-left,
+.sidebar-title-bar .pull-right-container > .fa-angle-lef {
+ width: auto;
+ height: auto;
+ padding: 0;
+ margin-right: 10px;
+}
+
+/*侧边栏收起后向右展开的边框宽度*/
+.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
+.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
+ border-radius: 0;
+ width: 220px;
+}
+
+/*侧边栏收起后向右展开时一级菜单箭头的位置*/
+.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
+ left: 220px !important;
+}
+
+.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu {
+ padding-top: 0;
+ padding-bottom: 0;
+ border-radius: 0;
+}
+
+.skin-blue .sidebar-menu > li:hover > a,
+.skin-blue .sidebar-menu > li.active > a {
+ color: #3c8dbc;
+ background: #3375A1;
+}
+
+.skin-blue .treeview-menu > li.active > a,
+.skin-blue .treeview-menu > li > a:hover {
+ color: white;
+}
+
+.main-sidebar .iconName {
+ margin-right: 10px;
+ color: white
+}
+
+.menuTitle a.active {
+ color: #f8f8f8;
+}
+
+.sidebar-menu span {
+ color: white;
+}
+
+li.menuTitle a {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ padding-right: 20px !important;
+}
+
+.main-sidebar .secondMenuTitle {
+ padding-left: 10px;
+ color: white;
+}
+
+.main-sidebar .thirdMenuTitle {
+ font-size: 12px;
+ padding-left: 32px;
+ color: white;
+}
+
+.main-sidebar .pull-right {
+ color: white
+}
+
+@media screen and (max-width: 768px) {
+ a.sidebar-toggle {
+ position: absolute;
+ top: 50%;
+ width: 26px;
+ height: 36px;
+ left: 100%;
+ }
+}
+
+/*侧边栏滚动条*/
+.sidebar {
+ -ms-scroll-chaining: chained;
+ -ms-overflow-style: none;
+ -ms-content-zooming: zoom;
+ -ms-scroll-rails: none;
+ -ms-content-zoom-limit-min: 100%;
+ -ms-content-zoom-limit-max: 500%;
+ -ms-scroll-snap-type: proximity;
+ -ms-scroll-snap-points-x: snapList(100%, 200%, 300%, 400%, 500%);
+}
+
+.sidebar::-webkit-scrollbar {
+ width: 0;
+ background-color: rgba(0, 0, 0, 0);
+}
+
+/*侧边栏二级菜单滚动条*/
+.scroll-list {
+ -ms-scroll-chaining: chained;
+ -ms-overflow-style: none;
+ -ms-content-zooming: zoom;
+ -ms-scroll-rails: none;
+ -ms-content-zoom-limit-min: 100%;
+ -ms-content-zoom-limit-max: 500%;
+ -ms-scroll-snap-type: proximity;
+ -ms-scroll-snap-points-x: snapList(100%, 200%, 300%, 400%, 500%);
+}
+
+.scroll-list::-webkit-scrollbar {
+ width: 0;
+ background-color: rgba(0, 0, 0, 0);
+}
\ No newline at end of file
diff --git a/Zplot/js/bootstrap.min.js b/Zplot/js/bootstrap.min.js
new file mode 100644
index 0000000..9bcd2fc
--- /dev/null
+++ b/Zplot/js/bootstrap.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
+ * Copyright 2011-2016 Twitter, Inc.
+ * Licensed under the MIT license
+ */
+if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){
+this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
\ No newline at end of file
diff --git a/Zplot/js/jquery.min.js b/Zplot/js/jquery.min.js
new file mode 100644
index 0000000..4024b66
--- /dev/null
+++ b/Zplot/js/jquery.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v2.2.4 | (c) jQuery Foundation | 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=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.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()},push:g,sort:c.sort,splice:c.splice},n.extend=n.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||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;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,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=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=ga(),z=ga(),A=ga(),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="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),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")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=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)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){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 fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(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 la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(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 oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.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]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);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"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",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(".#.+[+~]")}),ia(function(a){var b=n.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=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.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===n||a.ownerDocument===v&&t(v,a)?-1:b===n||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,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!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 fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.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},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.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=fa.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=fa.selectors={cacheLength:50,createPseudo:ha,match:W,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(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===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]||fa.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]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.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(ba,ca).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=fa.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(P," ")+" ").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,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(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:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(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:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).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 Y.test(a.nodeName)},input:function(a){return X.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:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(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,k=[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(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(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 ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(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 va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(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=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(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=[ra(sa(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 va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.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(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.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(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(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}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(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&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.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=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;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},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
+}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.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=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.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 N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!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&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
+void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=n.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
diff --git a/Zplot/js/plotPanelControl/PlotPanel.js b/Zplot/js/plotPanelControl/PlotPanel.js
new file mode 100644
index 0000000..cab1d86
--- /dev/null
+++ b/Zplot/js/plotPanelControl/PlotPanel.js
@@ -0,0 +1,226 @@
+function initPlotPanel(div, serverUrl, drawControl,plotEditControl,plotting){
+ var plotPanel = document.getElementById(div);
+
+ var treeNodeStyle = document.createElement("div");
+ treeNodeStyle.style.height = '50%';
+ treeNodeStyle.style.width = '100%';
+ treeNodeStyle.style.border = '1px solid #617775';
+ treeNodeStyle.style.overflow ='scroll';
+
+ var treeNode = document.createElement("div");
+ treeNode.id = "tree";
+ treeNode.className = "ztree";
+
+ var iconNodeStyle = document.createElement("div");
+ iconNodeStyle.style.height = '50%';
+ iconNodeStyle.style.width = '100%';
+
+ var iconNode = document.createElement("div");
+ iconNode.id = "icon";
+ iconNode.style.height = '100%';
+ iconNode.style.width = '100%';
+ iconNode.style.border = '1px solid #617775';
+ iconNode.style.overflow ='scroll';
+
+ treeNodeStyle.appendChild(treeNode);
+ iconNodeStyle.appendChild(iconNode);
+
+ plotPanel.appendChild(treeNodeStyle);
+ plotPanel.appendChild(iconNodeStyle);
+
+ function beforeClickTreeNode(treeId, treeNode){
+ var tree = $.fn.zTree.getZTreeObj(treeId);
+ if (treeNode.isParent) {
+ tree.expandNode(treeNode);
+ return false;
+ } else {
+ var iconNode = document.getElementById("icon");
+ iconNode.innerHTML = "";
+ createDrawNodes(treeNode, iconNode, drawControl, serverUrl);
+ }
+ }
+
+ var setting = {
+ view: {
+ dblClickExpand: false,
+ showLine: true,
+ selectedMulti: false
+ },
+ data: {
+ simpleData: {
+ enable:true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0
+ }
+ },
+ callback: {
+ beforeClick: beforeClickTreeNode
+ }
+ };
+ var symbolLibManager = plotting.getSymbolLibManager();
+ if(symbolLibManager.isInitializeOK()){
+ var symbolTreeData = analysisSymbolTree(symbolLibManager);
+ $.fn.zTree.init($("#tree"), setting, symbolTreeData);
+ } else {
+ symbolLibManager.initializecompleted.addEventListener(function (result) {
+ if(result.libIDs.length !== 0){
+ var symbolTreeData = analysisSymbolTree(symbolLibManager);
+ $.fn.zTree.init($("#tree"), setting, symbolTreeData);
+ }
+ });
+ symbolLibManager.initializeAsync();
+ }
+}
+
+function analysisSymbolTree(symbolLibManager) {
+ var treeData = [];
+ var idIndex = addBasicCellTreeNodes(treeData);
+
+ for(var i = 0; i < symbolLibManager.getSymbolLibNumber(); i++){
+ var symbolLib = symbolLibManager.getSymbolLibByIndex(i);
+ var rootSymbolInfo = symbolLib.getRootSymbolInfo();
+ var rootSymbolIconUrl = symbolLib.getRootSymbolIconUrl();
+
+ if(rootSymbolInfo.symbolNodeType === "SYMBOL_GROUP"){
+ var rootNode = new Object();
+ rootNode.id = idIndex+i;
+ rootNode.pId = 0;
+ rootNode.name = rootSymbolInfo.symbolName;
+ rootNode.fullName = rootSymbolInfo.symbolName +"/";
+ treeData.push(rootNode);
+
+ idIndex = innerAnalysisSymbolTree(rootSymbolInfo.childNodes, treeData, rootNode, rootSymbolIconUrl);
+ }
+
+ }
+
+ return treeData;
+}
+
+function createDrawNodes(treeNode, iconNode, drawControl, serverUrl){
+ var drawNodeClick = function(){
+ if(drawControl !== null){
+ drawControl.deactivate();
+ drawControl.libID = this.libID;
+ drawControl.code = this.symbolCode;
+ //设置标号默认的模型路径
+ drawControl.drawFinishEvent.addEventListener(function (geo) {
+ if(geo.symbolType === SuperMap.Plot.SymbolType.DOTSYMBOL ){
+ geo.modelPath = './SampleData/plot/Cesium_Air.gltf';
+ }
+ });
+ drawControl.serverUrl = this.serverUrl;
+
+ drawControl.activate();
+ if(undefined !== plotEditControl){
+ plotEditControl.deactivate();
+ }
+ }
+ }
+
+ var me = this;
+ var drawData = treeNode.drawData;
+
+ var table = document.createElement("table");
+ table.style.height = "100%";
+ table.style.width = "100%";
+ var i = 0;
+ var rowLength = (drawData.length%3 === 0) ? drawData.length/3 : drawData.length/3+1;
+ for(var j = 0; j < rowLength; j++){
+ var tr = document.createElement("tr");
+ for(var k = 0; k < 3; k++){
+ if(drawData[i]){
+ //存储菜单信息
+ var td = document.createElement("td");
+ var drawNode = document.createElement("div");
+ drawNode.onclick = drawNodeClick;
+ drawNode.style.textAlign = "center";
+ drawNode.id = drawData[i].libID+ ""+ drawData[i].symbolCode;
+ drawNode.libID = drawData[i].libID;
+ drawNode.symbolCode = drawData[i].symbolCode;
+ drawNode.serverUrl = serverUrl;
+ //图片
+ var img = document.createElement("img");
+ img.src = drawData[i].icon;
+ //文本
+ var text = document.createElement("div");
+ text.innerHTML = drawData[i].symbolName;
+
+ drawNode.appendChild(img);
+ drawNode.appendChild(text);
+ td.appendChild(drawNode);
+
+ tr.appendChild(td);
+ }
+ i++;
+ }
+ table.appendChild(tr);
+ }
+
+ iconNode.appendChild(table);
+}
+
+function addBasicCellTreeNodes(treeData){
+ var cellRootNode = new Object();
+ cellRootNode.id = 1;
+ cellRootNode.pId = 0;
+ cellRootNode.name = "基本标号";
+ cellRootNode.fullName = "BasicCell" +"/";
+ cellRootNode.drawData = [];
+ treeData.push(cellRootNode);
+
+ var symbolCode = [24, 28, 29, 31, 34, 410, 32, 590, 360, 390, 400, 350, 26, 370, 380, 44, 48, /*320,*/
+ 1019, 1022, /*1024, 321,1023,*/ 1025, 1013, 1014,3801,4401 /*1016, 1017, 1026,*/ /*1001 1003, 1004*/];
+ var symbolName = ["折线", "平行四边形", "圆", "椭圆", "注记", "正多边形", "多边形", "贝塞尔曲线", "闭合贝塞尔曲线",
+ "集结地", "大括号", "梯形", "矩形", "弓形", "扇形", "弧线", "平行线", /*"注记指示框",*/ "同心圆", "组合圆",
+ /*"标注框", "多角标注框","自由线",*/ "节点链", "跑道形", "八字形","扇形","弧线"/*"箭头线", "沿线注记", "线型标注", "对象间连线"*/
+ /*"多边形区域", "扇形区域"*/];
+ var cellId = cellRootNode.id + 1;
+ for(var i = 0; i < symbolCode.length; i++){
+ var drawCellNode = {
+ id: cellId++,
+ pId: 0,
+ icon:"js/plotPanelControl/" + cellRootNode.fullName + symbolCode[i] + ".png",
+ symbolCode: symbolCode[i],
+ libID: 0,
+ symbolName: symbolName[i]
+ };
+ cellRootNode.drawData.push(drawCellNode);
+ }
+
+ return cellId;
+}
+
+
+function innerAnalysisSymbolTree(childSymbolInfos, treeData, parentNode, rootSymbolIconUrl){
+ var drawData = [];
+ var treeNodeId = parentNode.id+1;
+ for(var i = 0; i < childSymbolInfos.length; i++){
+ if(childSymbolInfos[i].symbolNodeType === "SYMBOL_GROUP"){
+ var treeNode = new Object();
+ treeNode.id = treeNodeId++;
+ treeNode.pId = parentNode.id;
+ treeNode.name = childSymbolInfos[i].symbolName;
+ treeNode.fullName = parentNode.fullName + childSymbolInfos[i].symbolName+"/";
+ treeData.push(treeNode);
+
+ treeNodeId = innerAnalysisSymbolTree(childSymbolInfos[i].childNodes, treeData, treeNode, rootSymbolIconUrl);
+ } else if(childSymbolInfos[i].symbolNodeType === "SYMBOL_NODE"){
+ var drawNode = new Object();
+ drawNode.id = treeNodeId++;
+ drawNode.pId = parentNode.id;
+ drawNode.icon = rootSymbolIconUrl + parentNode.fullName + childSymbolInfos[i].symbolCode + ".png";
+ drawNode.symbolCode = childSymbolInfos[i].symbolCode;
+ drawNode.libID = childSymbolInfos[i].libID;
+ drawNode.symbolName = childSymbolInfos[i].symbolName + "_" + childSymbolInfos[i].symbolCode;
+ drawData.push(drawNode);
+ }
+ }
+
+ if(drawData.length !== 0){
+ parentNode.drawData = drawData;
+ }
+
+ return treeNodeId;
+}
\ No newline at end of file
diff --git a/Zplot/js/plotPanelControl/PlottingUI.Include.js b/Zplot/js/plotPanelControl/PlottingUI.Include.js
new file mode 100644
index 0000000..497bec7
--- /dev/null
+++ b/Zplot/js/plotPanelControl/PlottingUI.Include.js
@@ -0,0 +1,31 @@
+(function() {
+ // var isWinRT = (typeof Windows === "undefined") ? false : true;
+ var r = new RegExp("(^|(.*?\\/))(PlottingUI.Include\.js)(\\?|$)"),
+ s = document.getElementsByTagName('script'),
+ src, m, baseurl = "";
+ for(var i=0, len=s.length; i<len; i++) {
+ src = s[i].getAttribute('src');
+ if(src) {
+ var m = src.match(r);
+ if(m) {
+ baseurl = m[1];
+ break;
+ }
+ }
+ }
+ function inputScript(inc){
+ // if (!isWinRT) {
+ var script = '<' + 'script type="text/javascript" src="' + inc + '"' + '><' + '/script>';
+ document.writeln(script);
+ // } else {
+ // var script = document.createElement("script");
+ // script.src = inc;
+ // document.getElementsByTagName("HEAD")[0].appendChild(script);
+ // }
+ }
+ //加载类库资源文件
+ function loadSMLibs() {
+ inputScript(baseurl+'PlottingUI.js');
+ }
+ loadSMLibs();
+})();
diff --git a/Zplot/js/plotPanelControl/PlottingUI.js b/Zplot/js/plotPanelControl/PlottingUI.js
new file mode 100644
index 0000000..809c5a6
--- /dev/null
+++ b/Zplot/js/plotPanelControl/PlottingUI.js
@@ -0,0 +1,46 @@
+//var isWinRT = (typeof Windows === "undefined") ? false : true;
+{
+ inputLink("colorpicker/css/colorpicker.css");
+ inputLink("colorpicker/css/layout.css");
+ inputLink("jquery-easyui-1.4.4/css/easyui.css");
+ inputLink("zTree/css/zTreeStyle.css");
+
+ inputScript("jquery-easyui-1.4.4/jquery.min.js");
+ inputScript("jquery-easyui-1.4.4/jquery-ui.js");
+ inputScript("jquery-easyui-1.4.4/jquery.easyui.min.js");
+
+ inputScript("colorpicker/js/colorpicker.js");
+ inputScript("colorpicker/js/colorpickerEditor.js");
+ inputScript("colorpicker/js/eye.js");
+ inputScript("colorpicker/js/utils.js");
+ inputScript("colorpicker/js/layout.js");
+
+ inputScript("zTree/jquery.ztree.core.js");
+
+ inputScript("./PlotPanel.js");
+ inputScript("./StylePanel.js");
+ // inputScript("TreePanel.js");
+
+}
+
+function inputLink(inc){
+ //if (!isWinRT) {
+ var link = '<' + 'link rel="stylesheet" type="text/css" media="screen,projection" href="js/plotPanelControl/' + inc + '"' + '><' + '/>';
+ document.writeln(link);
+ //} else {
+ // var link = document.createElement("link");
+ // link.href = "../PlottingPanel/zTree/" + inc;
+ // document.getElementsByTagName("HEAD")[0].appendChild(link);
+ //}
+}
+
+function inputScript(inc){
+ //if (!isWinRT) {
+ var script = '<' + 'script type="text/javascript" src="js/plotPanelControl/' + inc + '"' + '><' + '/script>';
+ document.writeln(script);
+ //} else {
+ // var script = document.createElement("script");
+ // script.src = "../PlottingPanel/zTree/" + inc;
+ // document.getElementsByTagName("HEAD")[0].appendChild(script);
+ //}
+}
diff --git a/Zplot/js/plotPanelControl/StylePanel.js b/Zplot/js/plotPanelControl/StylePanel.js
new file mode 100644
index 0000000..2918944
--- /dev/null
+++ b/Zplot/js/plotPanelControl/StylePanel.js
@@ -0,0 +1,1250 @@
+/**
+ * Created by Administrator on 2017/12/8 0008.
+ */
+
+ /**
+ * 属性面板管理器
+ * @param options
+ * {
+ * div - 属性面板div
+ * scene - viewer.scene
+ * graphicObjectHandler - 标绘Handler
+ * }
+ * @constructor
+ * @example
+ */
+ var StylePanel = function(div,plotEditControl,plotting) {
+ var _self = this;
+ this._div = div;
+ this._plottingEdit = plotEditControl;
+ this._plotting = plotting;
+ this._selectedFeature = undefined;
+ this._group = ["基本", "衬线", "军标大小", "线型", "填充", "文本", "子标号", "箭头类型", "缩放比例", "旋转角度", "图片大小"];
+ this._displayName = ["镜像", "标号级别", "点标号显示模式", "模型路径", "图片路径", "整体高度", "Width", "Height", "x", "y", "z", "拉伸高度", "模型缩放","矢量缩放"];
+ this._displayLineStyleName = ["线宽", "边线颜色", "线型"];
+ this._displayFillStyleName = ["背景色", "背景透明", "渐变填充角度", "渐变填充模式", "渐变填充竖直偏移", "渐变填充水平偏移", "前景色", "填充模式", "填充透明度"];
+ this._displayTextContentName = ["注记内容", "注记位置", "字体背景颜色", "注记大小", "注记字体", "注记颜色", "字体边框", "边框宽度", "边框颜色"];
+ this._displaySurroundLineName = ["衬线类型", "衬线宽", "衬线颜色", "衬线透明度"];
+ this._displayPositionName = ["经度", "纬度", "高度"];
+ this._displayExtendWallName = ["绘制墙"];
+ this.init();
+ // 标号被选中回调函数
+ this._plottingEdit.SelectedEvent.addEventListener(function(geoGraphicObject) {
+ _self._selectedFeature = geoGraphicObject;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ });
+
+ // 选中标号被释放回调函数
+ this._plottingEdit.UnSelectedEvent.addEventListener(function() {
+ _self._selectedFeature = undefined;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ });
+
+ this._plottingEdit.ModifiedEvent.addEventListener(function (geoGraphicObject) {
+ _self._selectedFeature = geoGraphicObject;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+
+ });
+
+ this._plottingEdit.RemoveFeatureEvent.addEventListener(function() {
+ _self._selectedFeature = undefined;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ });
+
+ };
+
+
+
+
+ /**
+ * @private
+ * @function init
+ * @description 初始化属性面板
+ */
+ StylePanel.prototype.init = function() {
+
+ var _self = this;
+
+ function afterModifySelectFeature() {
+ var updated = $('#pg').propertygrid('getChanges', "updated");
+ if (updated.length !== 0) {
+ _self.updateSelectFeature(updated[0], _self._selectedFeature);
+ }
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ }
+
+ var stylePanel = document.getElementById(_self._div);
+ var propertygrid = document.createElement('table');
+ propertygrid.id = "pg";
+ propertygrid.className = "easyui-propertygrid";
+ stylePanel.appendChild(propertygrid);
+
+ $('#pg').propertygrid({
+ showGroup:true,
+ columns : [[
+ { field : 'name', title: 'Name', width: 100, resizable: true },
+ { field : 'value', title: 'Value', width: 100, resizable: true }
+ ]],
+ onAfterEdit : afterModifySelectFeature
+ });
+ };
+
+ /**
+ * @param graphicObject
+ * @returns {Array}
+ */
+ StylePanel.prototype.collectionPropertyGridRows = function(graphicObject) {
+
+ if (null === graphicObject || undefined === graphicObject || graphicObject.symbolName === "GroupObject") {
+ return [];
+ }
+
+ var rows = [];
+ if (null !== graphicObject && undefined !== graphicObject) {
+ rows = [
+ {"name": "标号ID", "value": graphicObject.id, "group": "标号"},
+ {"name": "标号库ID", "value": graphicObject.libID, "group": "标号"},
+ {"name": "标号code", "value": graphicObject.code, "group": "标号"},
+ {"name": "标号名字", "value": graphicObject.symbolName, "group": "标号"}
+ ];
+
+ var annotationRows = this.getAnnotationRows(graphicObject);
+ var symbolRankRows = this.getSymbolRankRows(graphicObject);
+ var surroundLineTypeRows = this.getSurroundLineTypeRows(graphicObject);
+ var dotShowModeRows = this.getDotShowModeRows(graphicObject);
+ var fillSymbolIDRows = this.getFillSymbolIDRows(graphicObject);
+ var fillGradientRows = this.getFillGradientModeRows(graphicObject);
+ var lineStyleRows = this.getLineStyleRows(graphicObject);
+ var subSymbolsTypeRows = this.getSubSymbolsTypeRows(graphicObject);
+
+
+ // 镜像
+ var dotSymbolNegativeImageObj = new Object();
+ dotSymbolNegativeImageObj.name = this._displayName[0];
+ dotSymbolNegativeImageObj.value = this.checkboxValueToString(this._selectedFeature.isNegativeImage);
+ dotSymbolNegativeImageObj.group = this._group[0];
+ dotSymbolNegativeImageObj.editor = {"type": 'checkbox', "options": {"on": true, "off": false}};
+
+ // 标号级别
+ var dotSymbolRankObj = new Object();
+ dotSymbolRankObj.name = this._displayName[1];
+ dotSymbolRankObj.value = this.symbolRankToString(this._selectedFeature.symbolRank);
+ dotSymbolRankObj.group = this._group[0];
+ dotSymbolRankObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": symbolRankRows}
+ };
+
+ // 显示模式
+ var dotSymbolShowModeObj = new Object();
+ dotSymbolShowModeObj.name = this._displayName[2];
+ dotSymbolShowModeObj.value = this.showModeToString(this._selectedFeature.showMode);
+ dotSymbolShowModeObj.group = this._group[0];
+ dotSymbolShowModeObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": dotShowModeRows}
+ };
+
+ // 模型ID
+ var modelIdObj = new Object();
+ modelIdObj.name = this._displayName[3];
+ modelIdObj.value = this._selectedFeature.modelPath;
+ modelIdObj.group = this._group[0];
+ modelIdObj.editor = "text";
+
+ // 图片路径
+ var picturePathObj = new Object();
+ picturePathObj.name = this._displayName[4];
+ picturePathObj.value = this._selectedFeature.picturePath;
+ picturePathObj.group = this._group[0];
+ picturePathObj.editor = "text";
+
+
+ // 线宽
+ var lineWidthObj = new Object();
+ lineWidthObj.name = this._displayLineStyleName[0];
+ lineWidthObj.value = 1 === graphicObject._symbolType ? this._selectedFeature.gridLineWidth : this._selectedFeature.symbolStyle.lineWidth;
+ lineWidthObj.group = this._group[3];
+ lineWidthObj.editor = "text";
+
+ // 线色
+ var lineColorObj = new Object();
+ lineColorObj.name = this._displayLineStyleName[1];
+ lineColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.lineColor);
+ lineColorObj.group = this._group[3];
+ lineColorObj.editor = "colorpicker";
+
+ //拉伸墙
+ var extendWallObj = new Object();
+ extendWallObj.name = this._displayExtendWallName[0];
+ extendWallObj.value = this._selectedFeature.extendWallHeight;
+ extendWallObj.group = "绘制墙";
+ extendWallObj.editor = "text";
+
+ // 线型
+ var lineStyleObj = new Object();
+ lineStyleObj.name = this._displayLineStyleName[2];
+ lineStyleObj.value = this.lineStyleToString(this._selectedFeature.lineSymbolID);
+ lineStyleObj.group = this._group[3];
+ lineStyleObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": lineStyleRows}
+ };
+
+ // 填充背景色
+ var fillBackColorObj = new Object();
+ fillBackColorObj.name = this._displayFillStyleName[0];
+ fillBackColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.fillBackColor);
+ fillBackColorObj.group = this._group[4];
+ fillBackColorObj.editor = "colorpicker";
+
+ // 背景透明
+ var fillBackOpaqueObj = new Object();
+ fillBackOpaqueObj.name = this._displayFillStyleName[1];
+ fillBackOpaqueObj.value = this._selectedFeature.symbolStyle.fillBackOpaque;
+ fillBackOpaqueObj.group = this._group[4];
+ fillBackOpaqueObj.editor = {"type": "checkbox", "options": {"on": true, "off": false}};
+
+ // 渐变填充角度
+ var fillGradientAngleObj = new Object();
+ fillGradientAngleObj.name = this._displayFillStyleName[2];
+ fillGradientAngleObj.value = this._selectedFeature.symbolStyle.fillGradientAngle;
+ fillGradientAngleObj.group = this._group[4];
+ fillGradientAngleObj.editor = "text";
+
+ // 渐变填充模式
+ var fillGradientModeObj = new Object();
+ fillGradientModeObj.name = this._displayFillStyleName[3];
+ fillGradientModeObj.value = this.fillGradientModeToString(this._selectedFeature.symbolStyle.fillGradientMode);
+ fillGradientModeObj.group = this._group[4];
+ fillGradientModeObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": fillGradientRows}
+ };
+
+ // 渐变填充竖直偏移
+ var fillGradientOffsetRatioYObj = new Object();
+ fillGradientOffsetRatioYObj.name = this._displayFillStyleName[4];
+ fillGradientOffsetRatioYObj.value = this._selectedFeature.symbolStyle.fillGradientOffsetRatioY;
+ fillGradientOffsetRatioYObj.group = this._group[4];
+ fillGradientOffsetRatioYObj.editor = "text";
+
+ // 渐变填充水平偏移
+ var fillGradientOffsetRatioXObj = new Object();
+ fillGradientOffsetRatioXObj.name = this._displayFillStyleName[5];
+ fillGradientOffsetRatioXObj.value = this._selectedFeature.symbolStyle.fillGradientOffsetRatioY;
+ fillGradientOffsetRatioXObj.group = this._group[4];
+ fillGradientOffsetRatioXObj.editor = "text";
+
+ // 前景色
+ var fillForeColorObj = new Object();
+ fillForeColorObj.name = this._displayFillStyleName[6];
+ fillForeColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.fillForeColor);
+ fillForeColorObj.group = this._group[4];
+ fillForeColorObj.editor = "colorpicker";
+
+ // 填充模式
+ var fillSymbolIdObj = new Object();
+ fillSymbolIdObj.name = this._displayFillStyleName[7];
+ fillSymbolIdObj.value = this.fillSymbolIdToString(this._selectedFeature.symbolStyle.fillSymbolID);
+ fillSymbolIdObj.group = this._group[4];
+ fillSymbolIdObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": fillSymbolIDRows}
+ };
+
+ // 填充透明度
+ var fillOpaqueRateObj = new Object();
+ fillOpaqueRateObj.name = this._displayFillStyleName[8];
+ fillOpaqueRateObj.value = this._selectedFeature.symbolStyle.fillOpaqueRate;
+ fillOpaqueRateObj.group = this._group[4];
+ fillOpaqueRateObj.editor = "text";
+
+ // 文本内容
+ var textContentObj = new Object();
+ textContentObj.name = this._displayTextContentName[0];
+ if (34 == this._selectedFeature.symbolType) {
+ textContentObj.value = this._selectedFeature.textContent;
+ } else {
+ textContentObj.value = this._selectedFeature.textContent;
+ }
+ textContentObj.group = this._group[5];
+ textContentObj.editor = "text";
+
+ // 注记位置
+ var markPosObj = new Object();
+ markPosObj.name = this._displayTextContentName[1];
+ markPosObj.value = this.annotationToString(this._selectedFeature.textPos);
+ markPosObj.group = this._group[5];
+ markPosObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": annotationRows}
+ };
+
+ // 字体背景颜色
+ var fontBackColor = new Object();
+ fontBackColor.name = this._displayTextContentName[2];
+ fontBackColor.value = this.colorGeometryToString(this._selectedFeature.symbolTextStyle.backColor);
+ fontBackColor.group = this._group[5];
+ fontBackColor.editor = "colorpicker";
+
+ // 注记字体大小
+ var fontSizeObj = new Object();
+ fontSizeObj.name = this._displayTextContentName[3];
+ fontSizeObj.value = this._selectedFeature.symbolTextStyle.fontSize;
+ fontSizeObj.group = this._group[5];
+ fontSizeObj.editor = "text";
+
+ // 注记字体名称
+ var fontFamilyObj = new Object();
+ fontFamilyObj.name = this._displayTextContentName[4];
+ fontFamilyObj.value = this._selectedFeature.symbolTextStyle.fontName;
+ fontFamilyObj.group = this._group[5];
+ fontFamilyObj.editor = "text";
+
+ // 注记字体颜色
+ var fontColorObj = new Object();
+ fontColorObj.name = this._displayTextContentName[5];
+ fontColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolTextStyle.foreColor);
+ fontColorObj.group = this._group[5];
+ fontColorObj.editor = "colorpicker";
+
+ // 注记边框
+ var fontHaloObj = new Object();
+ fontHaloObj.name = this._displayTextContentName[6];
+ fontHaloObj.value = this.checkboxValueToString(this._selectedFeature.symbolTextStyle.outline);
+ fontHaloObj.group = this._group[5];
+ fontHaloObj.editor = {"type": "checkbox", "options": {"on": true, "off": false}};
+
+ // 注记边框宽度
+ var outlineWidthObj = new Object();
+ outlineWidthObj.name = this._displayTextContentName[7];
+ outlineWidthObj.value = this._selectedFeature.symbolTextStyle.outlineWidth;
+ outlineWidthObj.group = this._group[5];
+ outlineWidthObj.editor = "text";
+
+ // 注记边框颜色
+ var outlineColorObj = new Object();
+ outlineColorObj.name = this._displayTextContentName[8];
+ outlineColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolTextStyle.outlineColor);
+ outlineColorObj.group = this._group[5];
+ outlineColorObj.editor = "colorpicker";
+
+ // 衬线类型
+ var surroundLineTypeObj = new Object();
+ surroundLineTypeObj.name = this._displaySurroundLineName[0];
+ surroundLineTypeObj.value = this.surroundLineTypeToString(this._selectedFeature);
+ surroundLineTypeObj.group = this._group[1];
+ surroundLineTypeObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": surroundLineTypeRows}
+ };
+
+ // 衬线宽
+ var surroundLineWidthObj = new Object();
+ surroundLineWidthObj.name = this._displaySurroundLineName[1];
+ surroundLineWidthObj.value = 1===this._selectedFeature.symbolType ? this._selectedFeature.gridSurroundLineWidth : this._selectedFeature.symbolStyle.surroundLineWidth;
+ surroundLineWidthObj.group = this._group[1];
+ surroundLineWidthObj.editor = "text";
+
+ // 衬线色
+ var surroundLineColorObj = new Object();
+ surroundLineColorObj.name = this._displaySurroundLineName[2];
+ surroundLineColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.surroundLineColor);
+ surroundLineColorObj.group = this._group[1];
+ surroundLineColorObj.editor = "colorpicker";
+
+ // 标号大小
+ var gridSymbolSizeXObj, gridSymbolSizeYObj,pictureSymbolSizeXObj,pictureSymbolSizeYObj,rotationX, rotationY,rotationZ,scaleX,scaleY,scaleZ;
+ var modelScale, modelRotateX, modelRotateY, modelRotateZ;
+ if (this._selectedFeature._symbolType === 1) {
+ gridSymbolSizeXObj = new Object();
+ gridSymbolSizeXObj.name = this._displayName[6];
+ gridSymbolSizeXObj.value = parseInt(this._selectedFeature.gridSymbolSize.x);
+ gridSymbolSizeXObj.group = this._group[2];
+ gridSymbolSizeXObj.editor = "text";
+
+ // 标号大小
+ gridSymbolSizeYObj = new Object();
+ gridSymbolSizeYObj.name = this._displayName[7];
+ gridSymbolSizeYObj.value = parseInt(this._selectedFeature.gridSymbolSize.y);
+ gridSymbolSizeYObj.group = this._group[2];
+ gridSymbolSizeYObj.editor = "text";
+
+
+
+
+ // 图片大小X
+ pictureSymbolSizeXObj = new Object();
+ pictureSymbolSizeXObj.name = this._displayName[6];
+ pictureSymbolSizeXObj.value = this._selectedFeature.pictureSymbolSize.x;
+ pictureSymbolSizeXObj.group = this._group[10];
+ pictureSymbolSizeXObj.editor = "text";
+
+ // 图片大小Y
+ pictureSymbolSizeYObj = new Object();
+ pictureSymbolSizeYObj.name = this._displayName[7];
+ pictureSymbolSizeYObj.value = this._selectedFeature.pictureSymbolSize.y;
+ pictureSymbolSizeYObj.group = this._group[10];
+ pictureSymbolSizeYObj.editor = "text";
+ if(2 === this._selectedFeature.showMode){
+ modelScale = new Object();
+ modelScale.name = this._displayName[12];
+ modelScale.value = this._selectedFeature.modelScale.x;
+ modelScale.group = this._group[8];
+ modelScale.editor = "text";
+ }else if(0 === this._selectedFeature.showMode){
+
+ // 缩放比例X
+ scaleX = new Object();
+ scaleX.name = this._displayName[13];
+ scaleX.value = this._selectedFeature.vectorScale;
+ scaleX.group = this._group[8];
+ scaleX.editor = "text";
+ }
+
+ if(2 === this._selectedFeature.showMode){
+ modelRotateX = new Object();
+ modelRotateX.name = this._displayName[8];
+ modelRotateX.value = this._selectedFeature.modelRotate.x;
+ modelRotateX.group = this._group[9];
+ modelRotateX.editor = "text";
+
+ modelRotateY = new Object();
+ modelRotateY.name = this._displayName[9];
+ modelRotateY.value = this._selectedFeature.modelRotate.y;
+ modelRotateY.group = this._group[9];
+ modelRotateY.editor = "text";
+
+ modelRotateZ = new Object();
+ modelRotateZ.name = this._displayName[10];
+ modelRotateZ.value = this._selectedFeature.modelRotate.z;
+ modelRotateZ.group = this._group[9];
+ modelRotateZ.editor = "text";
+ }else if(0 === this._selectedFeature.showMode){
+ // 旋转角度X
+ rotationX = new Object();
+ rotationX.name = this._displayName[8];
+ rotationX.value = this._selectedFeature.vectorRotate.x;
+ rotationX.group = this._group[9];
+ rotationX.editor = "text";
+
+ // 旋转角度Y
+ rotationY = new Object();
+ rotationY.name = this._displayName[9];
+ rotationY.value = this._selectedFeature.vectorRotate.y;
+ rotationY.group = this._group[9];
+ rotationY.editor = "text";
+
+ // 旋转角度Z
+ rotationZ = new Object();
+ rotationZ.name = this._displayName[10];
+ rotationZ.value = this._selectedFeature.vectorRotate.z;
+ rotationZ.group = this._group[9];
+ rotationZ.editor = "text";
+ }
+
+ }
+
+ var selectedFeature = this._selectedFeature;
+
+ if (34 === selectedFeature.symbolType
+ || 20 === selectedFeature.symbolType) {
+ if (20 === selectedFeature.symbolType) {
+ rows.push(picturePathObj);
+ rows.push(pictureSymbolSizeXObj);
+ rows.push(pictureSymbolSizeYObj);
+ } else {
+ rows.push(textContentObj);
+ rows.push(fontHaloObj);
+ rows.push(fontBackColor);
+ rows.push(fontSizeObj);
+ rows.push(fontFamilyObj);
+ rows.push(fontColorObj);
+ rows.push(outlineWidthObj);
+ rows.push(outlineColorObj);
+ }
+ }
+ // 点标号
+ if (1 === selectedFeature.symbolType) {
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode) {
+ rows.push(surroundLineTypeObj);
+ rows.push(surroundLineWidthObj);
+ rows.push(surroundLineColorObj);
+ rows.push(dotSymbolRankObj);
+ }
+ rows.push(dotSymbolShowModeObj);
+ if (1 === selectedFeature.showMode) {
+ rows.push(dotSymbolNegativeImageObj);
+ }
+ rows.push(modelIdObj);
+ if (0 === selectedFeature.showMode) {
+ rows.push(scaleX);
+ rows.push(rotationX);
+ rows.push(rotationY);
+ rows.push(rotationZ);
+ }
+ if (2 === selectedFeature.showMode) {
+ rows.push(modelScale);
+ rows.push(modelRotateX);
+ rows.push(modelRotateY);
+ rows.push(modelRotateZ);
+ }
+ if (3 === selectedFeature.showMode) {
+ rows.push(pictureSymbolSizeXObj);
+ rows.push(pictureSymbolSizeYObj);
+ }
+ rows.push(picturePathObj);
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode) {
+ rows.push(fillBackColorObj);
+ rows.push(fillBackOpaqueObj);
+ rows.push(fillGradientAngleObj);
+ rows.push(fillGradientModeObj);
+ rows.push(fillGradientOffsetRatioYObj);
+ rows.push(fillGradientOffsetRatioXObj);
+ rows.push(fillForeColorObj);
+ rows.push(fillSymbolIdObj);
+ rows.push(fillOpaqueRateObj);
+ }
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode
+ || 2 === selectedFeature.showMode) {
+ rows.push(textContentObj);
+ rows.push(fontSizeObj);
+ rows.push(fontColorObj);
+ rows.push(fontFamilyObj);
+ rows.push(markPosObj);
+ rows.push(fontHaloObj);
+ rows.push(outlineWidthObj);
+ rows.push(outlineColorObj);
+ }
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode) {
+ rows.push(lineWidthObj);
+ rows.push(lineColorObj);
+ if (1 === selectedFeature.showMode) {
+ rows.push(lineStyleObj);
+ rows.push(gridSymbolSizeXObj);
+ rows.push(gridSymbolSizeYObj);
+ }
+ }
+
+ var longitudeObj = new Object();
+ longitudeObj.name = this._displayPositionName[0];
+ longitudeObj.value = selectedFeature.localPoints[0].x;
+ longitudeObj.group = "位置点";
+ longitudeObj.index = 0;
+ longitudeObj.editor = "text";
+
+ var latitudeObj = new Object();
+ latitudeObj.name = this._displayPositionName[1];
+ latitudeObj.value = selectedFeature.localPoints[0].y;
+ latitudeObj.group = "位置点";
+ latitudeObj.index = 0;
+ latitudeObj.editor = "text";
+
+ var altitudeObj = new Object();
+ altitudeObj.name = this._displayPositionName[2];
+ altitudeObj.value = selectedFeature.localPoints[0].z;
+ altitudeObj.group = "位置点";
+ altitudeObj.index = 0;
+ altitudeObj.editor = "text";
+
+ rows.push(longitudeObj);
+ rows.push(latitudeObj);
+ rows.push(altitudeObj);
+ }
+ else {
+ rows.push(surroundLineTypeObj);
+ rows.push(surroundLineWidthObj);
+ rows.push(surroundLineColorObj);
+ rows.push(fillBackColorObj);
+ rows.push(fillBackOpaqueObj);
+ rows.push(fillGradientAngleObj);
+ rows.push(fillGradientModeObj);
+ rows.push(fillGradientOffsetRatioYObj);
+ rows.push(fillGradientOffsetRatioXObj);
+ rows.push(fillForeColorObj);
+ rows.push(fillSymbolIdObj);
+ rows.push(fillOpaqueRateObj);
+ rows.push(lineWidthObj);
+ rows.push(lineColorObj);
+ rows.push(extendWallObj);
+
+ if(selectedFeature.subSymbols){
+ //子标号
+ for (var i=0; i<selectedFeature.subSymbols.length; ++i) {
+ var objectSubCode = new Object();
+ objectSubCode.name = "Code";
+ objectSubCode.value = selectedFeature.subSymbols[i].code;
+ objectSubCode.group = this._group[6];
+ objectSubCode.editor = {"type":'combobox', "options" : { "valueField": 'value', "textField": 'text', "data" : subSymbolsTypeRows }};
+ objectSubCode.index = i;
+ rows.push(objectSubCode);
+ }
+ if ((0 === selectedFeature.subSymbols.length && 0 === selectedFeature.libID && 1025 === selectedFeature.code) ||
+ (0 === selectedFeature.subSymbols.length && 100 === selectedFeature.libID && 25200 === selectedFeature.code) ||
+ (0 === selectedFeature.subSymbols.length && 100 === selectedFeature.libID && 3020901 === selectedFeature.code)) {
+ var objectSubCode1 = new Object();
+ objectSubCode1.name = "Code";
+ objectSubCode1.value = subSymbolsTypeString(selectedFeature.subSymbols.length, selectedFeature);
+ objectSubCode1.group = this._group[6];
+ objectSubCode1.editor = {"type" : 'combobox', "options" : { "valueField" : 'value', "textField" : "text", "data" : subSymbolsTypeRows }};
+ objectSubCode1.index = i;
+ rows.push(objectSubCode1);
+ }
+ }
+
+
+ if (1025 === selectedFeature.symbolType && selectedFeature.subSymbols.length > 0) {
+ var objectLibID = new Object();
+ objectLibID.name = "LibID";
+ objectLibID.value = libIDToString(selectedFeature.subSymbols[0].libID);
+ objectLibID.group = this._group[6];
+ objectLibID.editor = "text";
+ rows.push(objectLibID);
+ }
+
+ for (var i=0; i<selectedFeature.localPoints.length; ++i) {
+ var longitudeObj = new Object();
+ longitudeObj.name = this._displayPositionName[0];
+ longitudeObj.value = selectedFeature.localPoints[i].x;
+ longitudeObj.group = "位置点"+(i+1);
+ longitudeObj.index = i;
+ longitudeObj.editor = "text";
+
+ var latitudeObj = new Object();
+ latitudeObj.name = this._displayPositionName[1];
+ latitudeObj.value = selectedFeature.localPoints[i].y;
+ latitudeObj.group = "位置点"+(i+1);
+ latitudeObj.index = i;
+ latitudeObj.editor = "text";
+
+ var altitudeObj = new Object();
+ altitudeObj.name = this._displayPositionName[2];
+ altitudeObj.value = selectedFeature.localPoints[i].z;
+ altitudeObj.group = "位置点"+(i+1);
+ altitudeObj.index = i;
+ altitudeObj.editor = "text";
+
+ rows.push(longitudeObj);
+ rows.push(latitudeObj);
+ rows.push(altitudeObj);
+ }
+ }
+ return rows;
+ }
+ };
+
+ StylePanel.prototype.updateSelectFeature = function(updated, selectFeature) {
+ var _self = this;
+ if (null != updated && selectFeature) {
+ switch (updated.name) {
+ case this._displayName[0]:
+ selectFeature.isNegativeImage = this.fromCheckboxValue(updated.value);
+ break;
+ case this._displayName[1]:
+ selectFeature.symbolRank = parseInt(updated.value);
+ break;
+ case this._displayName[2]:
+ var mode = parseInt(updated.value);
+ if (2 === mode && 0 === selectFeature.modelPath.length) {
+ return;
+ }
+ if (3 === mode && 0 === selectFeature.picturePath.length) {
+ return;
+ }
+ selectFeature.showMode = parseInt(updated.value);
+ break;
+ case this._displayName[3]:
+ selectFeature.modelPath = updated.value;
+ break;
+ case this._displayName[4]:
+ selectFeature.picturePath = updated.value;
+ break;
+ case this._displayName[5]:
+ selectFeature.symbolStyle.wholeHeight = parseInt(updated.value);
+ break;
+ case this._displayName[6]:
+ if (updated.group === this._group[10]) {
+ selectFeature.pictureSymbolSize = new cesium.Cartesian2(x = parseInt(updated.value),y = selectFeature.pictureSymbolSize.y);
+ } else {
+ selectFeature.gridSymbolSize = new cesium.Cartesian2(x = parseInt(updated.value),y = selectFeature.gridSymbolSize.y);
+ }
+ break;
+ case this._displayName[7]:
+ if (updated.group === this._group[10]) {
+ selectFeature.pictureSymbolSize = new cesium.Cartesian2(x = selectFeature.pictureSymbolSize.x,y = parseInt(updated.value));
+ } else {
+ selectFeature.gridSymbolSize = new cesium.Cartesian2(x = selectFeature.gridSymbolSize.x,y = parseInt(updated.value));
+ }
+ break;
+ case this._displayName[8]:
+ if (updated.group === this._group[8]) {
+ selectFeature.scale.x = parseInt(updated.value);
+ } else if (updated.group === this._group[9]) {
+ if (2 === selectFeature.showMode) {
+ var rotate = selectFeature.modelRotate;
+ selectFeature.setModelRotate(parseInt(updated.value), rotate.y , rotate.z);
+ } else {
+ var rotate = selectFeature.vectorRotate;
+ selectFeature.setVectorRotate(parseInt(updated.value), rotate.y , rotate.z);
+ }
+ }
+ break;
+ case this._displayName[9]:
+ if (updated.group === this._group[8]) {
+ selectFeature.scale.y = parseInt(updated.value);
+ } else if (updated.group === this._group[9]) {
+ if (2 === selectFeature.showMode) {
+ var rotate = selectFeature.modelRotate;
+ selectFeature.setModelRotate(rotate.x, parseInt(updated.value), rotate.z);
+ } else {
+ var rotate = selectFeature.vectorRotate;
+ selectFeature.setVectorRotate(rotate.x, parseInt(updated.value), rotate.z);
+ }
+ }
+ break;
+ case this._displayName[10]:
+ if (updated.group === this._group[8]) {
+ selectFeature.scale.z = parseInt(updated.value);
+ } else if (updated.group === this._group[9]) {
+ if (2 === selectFeature.showMode) {
+ var rotate = selectFeature.modelRotate;
+ selectFeature.setModelRotate(rotate.x, rotate.y, parseInt(updated.value));
+ } else {
+ var rotate = selectFeature.vectorRotate;
+ selectFeature.setVectorRotate(rotate.x, rotate.y, parseInt(updated.value));
+ }
+ }
+ break;
+ case this._displayName[12]:
+ var modelScale = selectFeature.modelScale;
+ selectFeature.modelScale = new cesium.Cartesian3(parseInt(updated.value),modelScale.y,modelScale.z);
+ break;
+ case this._displayName[13]:
+ selectFeature.vectorScale = parseFloat(updated.value);
+ break;
+ case this._displaySurroundLineName[0]:
+ selectFeature.symbolStyle.surroundLineType = parseInt(updated.value);
+ break;
+ case this._displaySurroundLineName[1]:
+ if (1 === selectFeature.symbolType) {
+ selectFeature.gridSurroundLineWidth = parseInt(updated.value);
+ } else {
+ selectFeature.symbolStyle.surroundLineWidth = parseInt(updated.value);
+ }
+ break;
+ case this._displaySurroundLineName[2]:
+ selectFeature.symbolStyle.surroundLineColor = colorConvert(updated.value);
+ break;
+ case this._displaySurroundLineName[3]:
+ break;
+ case this._displayFillStyleName[0]:
+ selectFeature.symbolStyle.fillBackColor = colorConvert(updated.value);
+ break;
+ case this._displayFillStyleName[1]:
+ selectFeature.symbolStyle.fillBackOpaque = this.fromCheckboxValue(updated.value);
+ break;
+ case this._displayFillStyleName[2]:
+ selectFeature.symbolStyle.fillGradientAngle = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[3]:
+ selectFeature.symbolStyle.fillGradientMode = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[4]:
+ selectFeature.symbolStyle.fillGradientOffsetRatioY = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[5]:
+ selectFeature.symbolStyle.fillGradientOffsetRatioX = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[6]:
+ selectFeature.symbolStyle.fillForeColor = colorConvert(updated.value);
+ break;
+ case this._displayFillStyleName[7]:
+ selectFeature.symbolStyle.fillSymbolID = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[8]:
+ selectFeature.symbolStyle.fillOpaqueRate = parseInt(updated.value);
+ break;
+ case this._displayLineStyleName[0]:
+ if (1===selectFeature.symbolType) {
+ selectFeature.gridLineWidth = parseFloat(updated.value);
+ } else {
+ selectFeature.symbolStyle.lineWidth = parseFloat(updated.value);
+ }
+ break;
+ case this._displayLineStyleName[1]:
+ selectFeature.symbolStyle.lineColor = colorConvert(updated.value);
+ break;
+ case this._displayLineStyleName[2]:
+ selectFeature.lineSymbolID = parseInt(updated.value);
+ break;
+ case this._displayTextContentName[0]:
+ selectFeature.textContent = updated.value;
+ break;
+ case this._displayTextContentName[1]:
+ selectFeature.textPos = parseInt(updated.value);
+ break;
+ case this._displayTextContentName[2]:
+ selectFeature.symbolTextStyle.backColor = colorConvert(updated.value);
+ break;
+ case this._displayTextContentName[3]:
+ selectFeature.symbolTextStyle.fontSize = parseInt(updated.value);
+ break;
+ case this._displayTextContentName[4]:
+ selectFeature.symbolTextStyle.fontName = updated.value;
+ break;
+ case this._displayTextContentName[5]:
+ selectFeature.symbolTextStyle.foreColor = colorConvert(updated.value);
+ break;
+ case this._displayTextContentName[6]:
+ selectFeature.symbolTextStyle.outline = this.fromCheckboxValue(updated.value);
+ break;
+ case this._displayTextContentName[7]:
+ selectFeature.symbolTextStyle.outlineWidth = parseFloat(updated.value);
+ break;
+ case this._displayTextContentName[8]:
+ selectFeature.symbolTextStyle.outlineColor = colorConvert(updated.value);
+ break;
+ case this._displayPositionName[0]:
+ var pts = [];
+ for (var i=0; i<selectFeature.localPoints.length; ++i) {
+ pts.push(selectFeature.localPoints[i].clone());
+ }
+ pts[updated.index].x = parseInt(updated.value);
+ selectFeature.localPoints = pts;
+ break;
+ case this._displayPositionName[1]:
+ var pts = [];
+ for (var i=0; i<selectFeature.localPoints.length; ++i) {
+ pts.push(selectFeature.localPoints[i].clone());
+ }
+ pts[updated.index].y = parseInt(updated.value);
+ selectFeature.localPoints = pts;
+ break;
+ case this._displayPositionName[2]:
+ var pts = [];
+ for (var i=0; i<selectFeature.localPoints.length; ++i) {
+ pts.push(selectFeature.localPoints[i].clone());
+ }
+ pts[updated.index].z = parseInt(updated.value);
+ selectFeature.localPoints = pts;
+ break;
+ case this._displayExtendWallName[0]:
+ selectFeature.extendWallHeight = updated.value;
+ break;
+ default:
+ break;
+ }
+ if (updated.group == this._group[6]) {
+ if (updated.name == "LibID") {
+ if (null !== updated.value) {
+ selectFeature.subSymbols[0].libID = parseInt(updated.value);
+ }
+ }
+ //设置子标号
+ if (updated.name == "Code") {
+ var code = parseInt(updated.value);
+
+ if(selectFeature.symbolType === 1025 && code != null) {
+ var symbolLibManager = this._plotting.getSymbolLibManager();
+ var subCode = symbolLibManager.findSymbolByCode(code);
+ if(subCode.length !== 0 && subCode[0].symbolType === "SYMBOL_DOT"){
+ //selectFeature.subSymbols[updated.index] = {libID : subCode[0].libID, code : code};
+ var temp = {libID : subCode[0].libID, code : code};
+ selectFeature.setSubSymbols(temp,updated.index);
+ }
+
+ } else {
+ var temp = {libID:selectFeature.libID,code:code };
+ selectFeature.setSubSymbols(temp,updated.index);
+ }
+ }
+ }
+ }
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ };
+
+ function colorConvert(colorString) {
+ var red = parseInt(colorString.slice(1, 3), 16) / 255;
+ var green = parseInt(colorString.slice(3, 5), 16) / 255;
+ var blue = parseInt(colorString.slice(5, 7), 16) / 255;
+ return new Cesium.Color(red,green,blue);
+ }
+
+ StylePanel.prototype.getAnnotationRows = function(graphicObject) {
+ var annotationRows = [];
+ annotationRows.push({"value" : "0", "text" : "左上"});
+ annotationRows.push({"value" : "1", "text" : "左下"});
+ annotationRows.push({"value" : "2", "text" : "右上"});
+ annotationRows.push({"value" : "3", "text" : "右下"});
+ annotationRows.push({"value" : "4", "text" : "上"});
+ annotationRows.push({"value" : "5", "text" : "下"});
+ annotationRows.push({"value" : "6", "text" : "左"});
+ annotationRows.push({"value" : "7", "text" : "右"});
+ if (graphicObject.middleMarkExist) {
+ annotationRows.push({"value" : "8", "text" : "中间"});
+ }
+ return annotationRows;
+ };
+
+ StylePanel.prototype.getSymbolRankRows = function(graphicObject) {
+ var symbolRanks = [];
+ if (graphicObject && graphicObject.symbolRanks) {
+ symbolRanks = graphicObject.symbolRanks;
+ }
+ var rows = [];
+ rows.push({"value" : "0", "text" : "无级别"});
+ for (var i=0; i<symbolRanks.length; ++i) {
+ if (1 == symbolRanks[i]) {
+ rows.push({"value" : "1", "text" : "军区级"});
+ } else if (2 == symbolRanks[i]) {
+ rows.push({"value" : "2", "text" : "副大军区级"});
+ } else if (3 == symbolRanks[i]) {
+ rows.push({"value" : "3", "text" : "集团军级"});
+ } else if (4 == symbolRanks[i]) {
+ rows.push({"value" : "4", "text" : "师级"});
+ } else if (5 == symbolRanks[i]) {
+ rows.push({"value" : "5", "text" : "旅级"});
+ } else if (6 == symbolRanks[i]) {
+ rows.push({"value" : "6", "text" : "团级"});
+ } else if (7 == symbolRanks[i]) {
+ rows.push({'value' : "7", "text" : "营级"});
+ } else if (8 == symbolRanks[i]) {
+ rows.push({'value' : "8", "text" : "连级"});
+ } else if (9 == symbolRanks[i]) {
+ rows.push({'value' : "9", "text" : "排级"});
+ }
+ }
+ return rows;
+ };
+
+ StylePanel.prototype.getSurroundLineTypeRows = function(graphicObject) {
+ var rows = [];
+ if (null == graphicObject || undefined == graphicObject) {
+ return [];
+ }
+ var symbolType = graphicObject.symbolType;
+ if (1 == symbolType) {
+ rows.push({"value" : "0", "text" : "无衬线"});
+ rows.push({"value" : "1", "text" : "有衬线"});
+ } else {
+ rows.push({"value" : "0", "text" : "无衬线"});
+ rows.push({"value" : "1", "text" : "内侧衬线"});
+ rows.push({"value" : "2", "text" : "外侧衬线"});
+ rows.push({"value" : "3", "text" : "双侧衬线"});
+ }
+ return rows;
+ };
+
+
+ StylePanel.prototype.getDotShowModeRows = function(graphicObject) {
+
+ var rows = [];
+ rows.push({"value" : "0", "text" : "矢量模式"});
+ rows.push({"value" : "1", "text" : "公告板模式"});
+ rows.push({"value" : "2", "text" : "模型模式"});
+ rows.push({"value" : "3", "text" : "图片模式"});
+ return rows;
+
+ };
+
+ StylePanel.prototype.getFillGradientModeRows = function(graphicObject) {
+ var rows = [];
+
+ rows.push({"value" : "0", "text" : "无渐变"});
+ rows.push({"value" : "1", "text" : "线性渐变"});
+ rows.push({"value" : "2", "text" : "辐射渐变"});
+
+ return rows;
+ };
+
+ StylePanel.prototype.getLineStyleRows = function(graphicObject) {
+ var rows = [];
+
+ rows.push({"value" : "0", "text" : "实线"});
+ rows.push({"value" : "1", "text" : "长虚线"});
+ rows.push({"value" : "2", "text" : "由点构成的直线"});
+ rows.push({"value" : "3", "text" : "由线划线段构成的直线"});
+ rows.push({"value" : "4", "text" : "由重复的线划点图案构成的直线"});
+
+ return rows;
+ };
+
+ StylePanel.prototype.getSubSymbolsTypeRows = function(graphicObject) {
+
+ var rows = [];
+ rows.push({"value" : "0", "text" : ""});
+
+ if (100 === graphicObject.libID) {
+ rows.push({"value" : "100", "text" : "陆军"});
+ rows.push({"value" : "200", "text" : "海军"});
+ rows.push({"value" : "300", "text" : "空军"});
+ } else if (123 === graphicObject.libID) {
+ rows.push({"value" : "10101", "text" : "武装警察部队"});
+ rows.push({"value" : "10102", "text" : "防爆装甲"});
+ rows.push({"value" : "10103", "text" : "火炮"});
+ } else if (900 === graphicObject.libID) {
+ rows.push({"value" : "910200", "text" : "人民防空重点城市"});
+ rows.push({"value" : "910300", "text" : "人民防空基本指挥所"});
+ rows.push({"value" : "910402", "text" : "水路抢修专业队"});
+ } else if (0 === graphicObject.libID) {
+ rows.push({"value" : "9", "text" : "刑警"});
+ rows.push({"value" : "80103", "text" : "交警"});
+ rows.push({"value" : "80109", "text" : "专业警"});
+ }
+ return rows;
+ };
+
+ function subSymbolsTypeString(subSymbolsLength, geometry) {
+
+ if (0 === subSymbolsLength) {
+ return "";
+ } else {
+ if (100 === geometry.libID) {
+ if (100 === geometry.subSymbols[0].code) {
+ return "陆军";
+ }
+ if (123 === geometry.subSymbols[0].code) {
+ return "海军";
+ }
+ if (300 === geometry.subSymbols[0].code) {
+ return "空军";
+ }
+ } else if (123 === geometry.libID) {
+ if (10101 === geometry.subSymbols[0].code) {
+ return "武装警察部队";
+ }
+ if (10102 === geometry.subSymbols[0].code) {
+ return "防爆装甲";
+ }
+ if (10103 === geometry.subSymbols[0].code) {
+ return "火炮";
+ }
+ } else if (900 === geometry.libID) {
+ if (910200 === geometry.subSymbols[0].code) {
+ return "人民防空重点城市";
+ }
+ if (910300 === geometry.subSymbols[0].code) {
+ return "人民防空基本指挥所";
+ }
+ if (910402 === geometry.subSymbols[0].code) {
+ return "水路抢修专业队";
+ }
+ } else if (0 === geometry.libID) {
+ if (9 === geometry.subSymbols[0].code) {
+ return "刑警";
+ }
+ if (80103 === geometry.subSymbols[0].code) {
+ return "交警";
+ }
+ if (80109 === geometry.subSymbols[0].code) {
+ return "专业警";
+ }
+ }
+ }
+ }
+
+ function libIDToString(libID) {
+ if (421 == libID) {
+ return "421(警用库)";
+ } else if (100 == libID) {
+ return "100(军队库)";
+ } else if (123 == libID) {
+ return "123(武警库)";
+ } else if (900 == libID) {
+ return "900(人防库)";
+ }
+ }
+
+ StylePanel.prototype.getFillSymbolIDRows = function(graphicObject) {
+
+ var rows = [];
+ rows.push({"value" : "0", "text" : "实填充"});
+ rows.push({"value" : "1", "text" : "无填充"});
+ // rows.push({"value" : "2", "text" : "向上斜填充"});
+ // rows.push({"value" : "3", "text" : "十字填充"});
+ // rows.push({"value" : "4", "text" : "交叉填充"});
+ // rows.push({"value" : "5", "text" : "反斜线填充"});
+ // rows.push({"value" : "6", "text" : "水平填充"});
+ // rows.push({"value" : "7", "text" : "竖直填充"});
+ return rows;
+ };
+
+ StylePanel.prototype.displayToString = function(display) {
+ if (display && display === "none") {
+ return "不显示";
+ }
+ return "显示";
+ };
+
+ StylePanel.prototype.checkboxValueToString = function(checkboxValue) {
+ if (true === checkboxValue) {
+ return "true";
+ } else if (false === checkboxValue) {
+ return "false";
+ }
+ };
+
+ StylePanel.prototype.fromCheckboxValue = function(checkboxStr) {
+ if ("true" === checkboxStr) {
+ return true;
+ } else if ("false" === checkboxStr) {
+ return false;
+ }
+ };
+
+ StylePanel.prototype.symbolRankToString = function(symbolRank) {
+ if (0 == symbolRank) {
+ return "无级别";
+ } else if (1 == symbolRank) {
+ return "军区级";
+ } else if (2 == symbolRank) {
+ return "副大军区级";
+ } else if (3 == symbolRank) {
+ return "集团军级";
+ } else if (4 == symbolRank) {
+ return "师级";
+ } else if (5 == symbolRank) {
+ return "旅级";
+ } else if (6 == symbolRank) {
+ return "团级";
+ } else if (7 == symbolRank) {
+ return "营级";
+ } else if (8 == symbolRank) {
+ return "连级";
+ } else if (9 == symbolRank) {
+ return "排级";
+ }
+ };
+
+ StylePanel.prototype.showModeToString = function(dotShowMode) {
+
+ if (0 === dotShowMode) {
+ return "矢量模式";
+ } else if (1 === dotShowMode) {
+ return "公告板模式";
+ } else if (2 === dotShowMode) {
+ return "模型模式";
+ } else if (3 === dotShowMode) {
+ return "图片模式";
+ } else {
+ return "未定义";
+ }
+
+ };
+
+ StylePanel.prototype.fillGradientModeToString = function(fillGradientMode) {
+
+ if (0 === fillGradientMode) {
+ return "无渐变";
+ } else if (1 === fillGradientMode) {
+ return "线性渐变";
+ } else if (2 === fillGradientMode) {
+ return "辐射渐变";
+ }
+
+ };
+
+ StylePanel.prototype.annotationToString = function(annotation) {
+
+ if (0 === annotation) {
+ return "左上";
+ } else if (1 === annotation) {
+ return "左下";
+ } else if (2 === annotation) {
+ return "右上";
+ } else if (3 === annotation) {
+ return "右下";
+ } else if (4 === annotation) {
+ return "上";
+ } else if (5 === annotation) {
+ return "下";
+ } else if (6 === annotation) {
+ return "左";
+ } else if (7 === annotation) {
+ return "右";
+ } else if (8 === annotation) {
+ return "中间";
+ }
+
+ };
+
+ StylePanel.prototype.surroundLineTypeToString = function(graphicObject) {
+
+ if (1 === graphicObject.symbolType) {
+ if (0 === graphicObject.symbolStyle.surroundLineType) {
+ return "无衬线";
+ } else if (1 === graphicObject.symbolStyle.surroundLineType) {
+ return "有衬线";
+ }
+ } else {
+ if (0 === graphicObject.symbolStyle.surroundLineType) {
+ return "无衬线";
+ } else if (1 === graphicObject.symbolStyle.surroundLineType) {
+ return "内侧衬线";
+ } else if (2 === graphicObject.symbolStyle.surroundLineType) {
+ return "外侧衬线";
+ } else if (3 === graphicObject.symbolStyle.surroundLineType) {
+ return "双侧衬线";
+ }
+ }
+ };
+
+ StylePanel.prototype.colorGeometryToString = function(color) {
+
+ var value = color.value;
+ var red, green, blue;
+
+ if (undefined !== value && null !== value) {
+ red = value[2]>15 ? value[2].toString(16) : "0" + value[2].toString(16);
+ green = value[1]>15 ? value[2].toString(16) : "0" + value[1].toString(16);
+ blue = value[0]>15 ? value[0].toString(16) : "0" + value[0].toString(16);
+ } else {
+ red = color.red * 255;
+ red = red > 15 ? red.toString(16) : "0" + red;
+ green = color.green * 255;
+ green = green > 15 ? green.toString(16) : "0" + green;
+ blue = color.blue * 255;
+ blue = blue > 15 ? blue.toString(16) : "0" + blue;
+ }
+ return "#" + red + green + blue;
+ };
+
+
+
+ StylePanel.prototype.lineStyleToString = function(lineStyle) {
+
+ if (0 === lineStyle) {
+ return "实线";
+ } else if (1 === lineStyle) {
+ return "长虚线";
+ } else if (2 === lineStyle) {
+ return "由点构成的直线";
+ } else if (3 === lineStyle) {
+ return "由线划线段构成的直线";
+ } else if (4 === lineStyle) {
+ return "由重复的线划点图案构成的直线";
+ }
+ };
+
+ StylePanel.prototype.fillSymbolIdToString = function(fillSymbolID) {
+
+ switch (fillSymbolID) {
+ case 0:
+ return "实填充";
+ case 1:
+ return "无填充";
+ }
+ };
+
+
diff --git a/Zplot/js/plotPanelControl/colorpicker/css/colorpicker.css b/Zplot/js/plotPanelControl/colorpicker/css/colorpicker.css
new file mode 100644
index 0000000..bf72eca
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/css/colorpicker.css
@@ -0,0 +1,162 @@
+.colorpicker {
+ width: 356px;
+ height: 176px;
+ overflow: hidden;
+ position: absolute;
+ background: url(../images/colorpicker_background.png);
+ font-family: Arial, Helvetica, sans-serif;
+ display: none;
+ z-index: 99;
+}
+.colorpicker_color {
+ width: 150px;
+ height: 150px;
+ left: 14px;
+ top: 13px;
+ position: absolute;
+ background: #f00;
+ overflow: hidden;
+ cursor: crosshair;
+}
+.colorpicker_color div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 150px;
+ height: 150px;
+ background: url(../images/colorpicker_overlay.png);
+}
+.colorpicker_color div div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 11px;
+ height: 11px;
+ overflow: hidden;
+ background: url(../images/colorpicker_select.gif);
+ margin: -5px 0 0 -5px;
+}
+.colorpicker_hue {
+ position: absolute;
+ top: 13px;
+ left: 171px;
+ width: 35px;
+ height: 150px;
+ cursor: n-resize;
+}
+.colorpicker_hue div {
+ position: absolute;
+ width: 35px;
+ height: 9px;
+ overflow: hidden;
+ background: url(../images/colorpicker_indic.gif) left top;
+ margin: -4px 0 0 0;
+ left: 0px;
+}
+.colorpicker_new_color {
+ position: absolute;
+ width: 60px;
+ height: 30px;
+ left: 213px;
+ top: 13px;
+ background: #f00;
+}
+.colorpicker_current_color {
+ position: absolute;
+ width: 60px;
+ height: 30px;
+ left: 283px;
+ top: 13px;
+ background: #f00;
+}
+.colorpicker input {
+ background-color: transparent;
+ border: 1px solid transparent;
+ position: absolute;
+ font-size: 10px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #898989;
+ top: 4px;
+ right: 11px;
+ text-align: right;
+ margin: 0;
+ padding: 0;
+ height: 11px;
+}
+.colorpicker_hex {
+ position: absolute;
+ width: 72px;
+ height: 22px;
+ background: url(../images/colorpicker_hex.png) top;
+ left: 212px;
+ top: 142px;
+}
+.colorpicker_hex input {
+ right: 6px;
+}
+.colorpicker_field {
+ height: 22px;
+ width: 62px;
+ background-position: top;
+ position: absolute;
+}
+.colorpicker_field span {
+ position: absolute;
+ width: 12px;
+ height: 22px;
+ overflow: hidden;
+ top: 0;
+ right: 0;
+ cursor: n-resize;
+}
+.colorpicker_rgb_r {
+ background-image: url(../images/colorpicker_rgb_r.png);
+ top: 52px;
+ left: 212px;
+}
+.colorpicker_rgb_g {
+ background-image: url(../images/colorpicker_rgb_g.png);
+ top: 82px;
+ left: 212px;
+}
+.colorpicker_rgb_b {
+ background-image: url(../images/colorpicker_rgb_b.png);
+ top: 112px;
+ left: 212px;
+}
+.colorpicker_hsb_h {
+ background-image: url(../images/colorpicker_hsb_h.png);
+ top: 52px;
+ left: 282px;
+}
+.colorpicker_hsb_s {
+ background-image: url(../images/colorpicker_hsb_s.png);
+ top: 82px;
+ left: 282px;
+}
+.colorpicker_hsb_b {
+ background-image: url(../images/colorpicker_hsb_b.png);
+ top: 112px;
+ left: 282px;
+}
+.colorpicker_submit {
+ position: absolute;
+ width: 22px;
+ height: 22px;
+ background: url(../images/colorpicker_submit.png) top;
+ left: 322px;
+ top: 142px;
+ overflow: hidden;
+}
+.colorpicker_focus {
+ background-position: center;
+}
+.colorpicker_hex.colorpicker_focus {
+ background-position: bottom;
+}
+.colorpicker_submit.colorpicker_focus {
+ background-position: bottom;
+}
+.colorpicker_slider {
+ background-position: bottom;
+}
diff --git a/Zplot/js/plotPanelControl/colorpicker/css/layout.css b/Zplot/js/plotPanelControl/colorpicker/css/layout.css
new file mode 100644
index 0000000..5e0ec5f
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/css/layout.css
@@ -0,0 +1,217 @@
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
+ margin:0;
+ padding:0;
+}
+table {
+ border-collapse:collapse;
+ border-spacing:0;
+}
+fieldset,img {
+ border:0;
+}
+address,caption,cite,code,dfn,em,strong,th,var {
+ font-style:normal;
+ font-weight:normal;
+}
+ol,ul {
+ list-style:none;
+}
+caption,th {
+ text-align:left;
+}
+h1,h2,h3,h4,h5,h6 {
+ font-size:100%;
+ font-weight:normal;
+}
+q:before,q:after {
+ content:'';
+}
+abbr,acronym { border:0;
+}
+html, body {
+ background-color: #fff;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ line-height: 18px;
+ color: #52697E;
+}
+body {
+ overflow: auto;
+}
+.wrapper {
+ width: 700px;
+ margin: 0 auto;
+ text-align: left;
+}
+h1 {
+ font-size: 21px;
+ height: 47px;
+ line-height: 47px;
+ text-transform: uppercase;
+}
+.navigationTabs {
+ height: 23px;
+ line-height: 23px;
+ border-bottom: 1px solid #ccc;
+}
+.navigationTabs li {
+ float: left;
+ height: 23px;
+ line-height: 23px;
+ padding-right: 3px;
+}
+.navigationTabs li a{
+ float: left;
+ dispaly: block;
+ height: 23px;
+ line-height: 23px;
+ padding: 0 10px;
+ overflow: hidden;
+ color: #52697E;
+ background-color: #eee;
+ position: relative;
+ text-decoration: none;
+}
+.navigationTabs li a:hover {
+ background-color: #f0f0f0;
+}
+.navigationTabs li a.active {
+ background-color: #fff;
+ border: 1px solid #ccc;
+ border-bottom: 0px solid;
+}
+.tabsContent {
+ border: 1px solid #ccc;
+ border-top: 0px solid;
+ width: 698px;
+ overflow: hidden;
+}
+.tab {
+ padding: 16px;
+ display: none;
+}
+.tab h2 {
+ font-weight: bold;
+ font-size: 16px;
+}
+.tab h3 {
+ font-weight: bold;
+ font-size: 14px;
+ margin-top: 20px;
+}
+.tab p {
+ margin-top: 16px;
+ clear: both;
+}
+.tab ul {
+ margin-top: 16px;
+ list-style: disc;
+}
+.tab li {
+ margin: 10px 0 0 35px;
+}
+.tab a {
+ color: #8FB0CF;
+}
+.tab strong {
+ font-weight: bold;
+}
+.tab pre {
+ font-size: 11px;
+ margin-top: 20px;
+ width: 668px;
+ overflow: auto;
+ clear: both;
+}
+.tab table {
+ width: 100%;
+}
+.tab table td {
+ padding: 6px 10px 6px 0;
+ vertical-align: top;
+}
+.tab dt {
+ margin-top: 16px;
+}
+
+#colorSelector {
+ position: relative;
+ width: 36px;
+ height: 36px;
+ background: url(../images/select.png);
+}
+#colorSelector div {
+ position: absolute;
+ top: 3px;
+ left: 3px;
+ width: 30px;
+ height: 30px;
+ background: url(../images/select.png) center;
+}
+#colorSelector2 {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 36px;
+ height: 36px;
+ background: url(../images/select2.png);
+}
+#colorSelector2 div {
+ position: absolute;
+ top: 4px;
+ left: 4px;
+ width: 28px;
+ height: 28px;
+ background: url(../images/select2.png) center;
+}
+#colorpickerHolder2 {
+ top: 32px;
+ left: 0;
+ width: 356px;
+ height: 0;
+ overflow: hidden;
+ position: absolute;
+}
+#colorpickerHolder2 .colorpicker {
+ background-image: url(../images/custom_background.png);
+ position: absolute;
+ bottom: 0;
+ left: 0;
+}
+#colorpickerHolder2 .colorpicker_hue div {
+ background-image: url(../images/custom_indic.gif);
+}
+#colorpickerHolder2 .colorpicker_hex {
+ background-image: url(../images/custom_hex.png);
+}
+#colorpickerHolder2 .colorpicker_rgb_r {
+ background-image: url(../images/custom_rgb_r.png);
+}
+#colorpickerHolder2 .colorpicker_rgb_g {
+ background-image: url(../images/custom_rgb_g.png);
+}
+#colorpickerHolder2 .colorpicker_rgb_b {
+ background-image: url(../images/custom_rgb_b.png);
+}
+#colorpickerHolder2 .colorpicker_hsb_s {
+ background-image: url(../images/custom_hsb_s.png);
+ display: none;
+}
+#colorpickerHolder2 .colorpicker_hsb_h {
+ background-image: url(../images/custom_hsb_h.png);
+ display: none;
+}
+#colorpickerHolder2 .colorpicker_hsb_b {
+ background-image: url(../images/custom_hsb_b.png);
+ display: none;
+}
+#colorpickerHolder2 .colorpicker_submit {
+ background-image: url(../images/custom_submit.png);
+}
+#colorpickerHolder2 .colorpicker input {
+ color: #778398;
+}
+#customWidget {
+ position: relative;
+ height: 36px;
+}
diff --git a/Zplot/js/plotPanelControl/colorpicker/js/colorpicker.js b/Zplot/js/plotPanelControl/colorpicker/js/colorpicker.js
new file mode 100644
index 0000000..5adb2e6
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/js/colorpicker.js
@@ -0,0 +1,495 @@
+/**
+ *
+ * Color picker
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ * Dual licensed under the MIT and GPL licenses
+ *
+ */
+(function ($) {
+ var ColorPicker = function () {
+ var
+ ids = {},
+ inAction,
+ charMin = 65,
+ visible,
+ tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
+ defaults = {
+ eventName: 'click',
+ onShow: function () {},
+ onBeforeShow: function(){},
+ onHide: function () {},
+ onChange: function () {},
+ onSubmit: function () {},
+ color: 'ff0000',
+ livePreview: true,
+ flat: false
+ },
+ fillRGBFields = function (hsb, cal) {
+ var rgb = HSBToRGB(hsb);
+ $(cal).data('colorpicker').fields
+ .eq(1).val(rgb.r).end()
+ .eq(2).val(rgb.g).end()
+ .eq(3).val(rgb.b).end();
+ },
+ fillHSBFields = function (hsb, cal) {
+ $(cal).data('colorpicker').fields
+ .eq(4).val(hsb.h).end()
+ .eq(5).val(hsb.s).end()
+ .eq(6).val(hsb.b).end();
+ },
+ fillHexFields = function (hsb, cal) {
+ $(cal).data('colorpicker').fields
+ .eq(0).val(HSBToHex(hsb)).end();
+ },
+ setSelector = function (hsb, cal) {
+ $(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
+ $(cal).data('colorpicker').selectorIndic.css({
+ left: parseInt(150 * hsb.s/100, 10),
+ top: parseInt(150 * (100-hsb.b)/100, 10)
+ });
+ },
+ setHue = function (hsb, cal) {
+ $(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
+ },
+ setCurrentColor = function (hsb, cal) {
+ $(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
+ },
+ setNewColor = function (hsb, cal) {
+ $(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
+ },
+ keyDown = function (ev) {
+ var pressedKey = ev.charCode || ev.keyCode || -1;
+ if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
+ return false;
+ }
+ var cal = $(this).parent().parent();
+ if (cal.data('colorpicker').livePreview === true) {
+ change.apply(this);
+ }
+ ev.stopPropagation();
+ },
+ mouseDown = function (ev) {
+ ev.stopPropagation();
+ },
+ change = function (ev) {
+ var cal = $(this).parent().parent(), col;
+ if (this.parentNode.className.indexOf('_hex') > 0) {
+ cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
+ } else if (this.parentNode.className.indexOf('_hsb') > 0) {
+ cal.data('colorpicker').color = col = fixHSB({
+ h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
+ s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
+ b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
+ });
+ } else {
+ cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
+ r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
+ g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
+ b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
+ }));
+ }
+ if (ev) {
+ fillRGBFields(col, cal.get(0));
+ fillHexFields(col, cal.get(0));
+ fillHSBFields(col, cal.get(0));
+ }
+ setSelector(col, cal.get(0));
+ setHue(col, cal.get(0));
+ setNewColor(col, cal.get(0));
+ cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
+ },
+ blur = function (ev) {
+ var cal = $(this).parent().parent();
+ cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
+ },
+ focus = function () {
+ charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
+ $(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
+ $(this).parent().addClass('colorpicker_focus');
+ },
+ downIncrement = function (ev) {
+ var field = $(this).parent().find('input').focus();
+ var current = {
+ el: $(this).parent().addClass('colorpicker_slider'),
+ max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
+ y: ev.pageY,
+ field: field,
+ val: parseInt(field.val(), 10),
+ preview: $(this).parent().parent().data('colorpicker').livePreview
+ };
+ $(document).bind('mouseup', current, upIncrement);
+ $(document).bind('mousemove', current, moveIncrement);
+ ev.stopPropagation();
+ },
+ moveIncrement = function (ev) {
+ ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
+ if (ev.data.preview) {
+ change.apply(ev.data.field.get(0), [true]);
+ }
+ return false;
+ },
+ upIncrement = function (ev) {
+ change.apply(ev.data.field.get(0), [true]);
+ ev.data.el.removeClass('colorpicker_slider').find('input').focus();
+ $(document).unbind('mouseup', upIncrement);
+ $(document).unbind('mousemove', moveIncrement);
+ return false;
+ },
+ downHue = function (ev) {
+ var current = {
+ cal: $(this).parent(),
+ y: $(this).offset().top
+ };
+ current.preview = current.cal.data('colorpicker').livePreview;
+ $(document).bind('mouseup', current, upHue);
+ $(document).bind('mousemove', current, moveHue);
+ ev.stopPropagation();
+ },
+ moveHue = function (ev) {
+ change.apply(
+ ev.data.cal.data('colorpicker')
+ .fields
+ .eq(4)
+ .val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
+ .get(0),
+ [ev.data.preview]
+ );
+ return false;
+ },
+ upHue = function (ev) {
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ $(document).unbind('mouseup', upHue);
+ $(document).unbind('mousemove', moveHue);
+ return false;
+ },
+ downSelector = function (ev) {
+ var current = {
+ cal: $(this).parent(),
+ pos: $(this).offset()
+ };
+ current.preview = current.cal.data('colorpicker').livePreview;
+ $(document).bind('mouseup', current, upSelector);
+ $(document).bind('mousemove', current, moveSelector);
+ ev.stopPropagation();
+ },
+ moveSelector = function (ev) {
+ change.apply(
+ ev.data.cal.data('colorpicker')
+ .fields
+ .eq(6)
+ .val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
+ .end()
+ .eq(5)
+ .val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
+ .get(0),
+ [ev.data.preview]
+ );
+ return false;
+ },
+ upSelector = function (ev) {
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ $(document).unbind('mouseup', upSelector);
+ $(document).unbind('mousemove', moveSelector);
+ return false;
+ },
+ enterSubmit = function (ev) {
+ $(this).addClass('colorpicker_focus');
+ ev.stopPropagation();
+ },
+ leaveSubmit = function (ev) {
+ $(this).removeClass('colorpicker_focus');
+ },
+ clickSubmit = function (ev) {
+ var cal = $(this).parent();
+ var col = cal.data('colorpicker').color;
+ cal.data('colorpicker').origColor = col;
+ setCurrentColor(col, cal.get(0));
+ cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
+ ev.stopPropagation();
+ },
+ show = function (ev) {
+ var cal = $('#' + $(this).data('colorpickerId'));
+ cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
+ var pos = $(this).offset();
+ var viewPort = getViewport();
+ var top = pos.top + this.offsetHeight;
+ var left = pos.left;
+ if (top + 176 > viewPort.t + viewPort.h) {
+ top -= this.offsetHeight + 176;
+ }
+ if (left + 356 > viewPort.l + viewPort.w) {
+ left -= 356;
+ }
+ cal.css({left: left + 'px', top: top + 'px'});
+ if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
+ cal.show();
+ }
+ $(document).bind('mousedown', {cal: cal}, hide);
+ return false;
+ },
+ hide = function (ev) {
+ if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
+ if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
+ ev.data.cal.hide();
+ }
+ $(document).unbind('mousedown', hide);
+ }
+ },
+ isChildOf = function(parentEl, el, container) {
+ if (parentEl == el) {
+ return true;
+ }
+ if (parentEl.contains) {
+ return parentEl.contains(el);
+ }
+ if ( parentEl.compareDocumentPosition ) {
+ return !!(parentEl.compareDocumentPosition(el) & 16);
+ }
+ var prEl = el.parentNode;
+ while(prEl && prEl != container) {
+ if (prEl == parentEl)
+ return true;
+ prEl = prEl.parentNode;
+ }
+ return false;
+ },
+ getViewport = function () {
+ var m = document.compatMode == 'CSS1Compat';
+ return {
+ l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
+ t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
+ w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
+ h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
+ };
+ },
+ fixHSB = function (hsb) {
+ return {
+ h: Math.min(360, Math.max(0, hsb.h)),
+ s: Math.min(100, Math.max(0, hsb.s)),
+ b: Math.min(100, Math.max(0, hsb.b))
+ };
+ },
+ fixRGB = function (rgb) {
+ return {
+ r: Math.min(255, Math.max(0, rgb.r)),
+ g: Math.min(255, Math.max(0, rgb.g)),
+ b: Math.min(255, Math.max(0, rgb.b))
+ };
+ },
+ fixHex = function (hex) {
+ var len = 6 - hex.length;
+ if (len > 0) {
+ var o = [];
+ for (var i=0; i<len; i++) {
+ o.push('0');
+ }
+ o.push(hex);
+ hex = o.join('');
+ }
+ return hex;
+ },
+ HexToRGB = function (hex) {
+ var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
+ return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
+ },
+ HexToHSB = function (hex) {
+ return RGBToHSB(HexToRGB(hex));
+ },
+ RGBToHSB = function (rgb) {
+ var hsb = {
+ h: 0,
+ s: 0,
+ b: 0
+ };
+ var min = Math.min(rgb.r, rgb.g, rgb.b);
+ var max = Math.max(rgb.r, rgb.g, rgb.b);
+ var delta = max - min;
+ hsb.b = max;
+ if (max != 0) {
+
+ }
+ hsb.s = max != 0 ? 255 * delta / max : 0;
+ if (hsb.s != 0) {
+ if (rgb.r == max) {
+ hsb.h = (rgb.g - rgb.b) / delta;
+ } else if (rgb.g == max) {
+ hsb.h = 2 + (rgb.b - rgb.r) / delta;
+ } else {
+ hsb.h = 4 + (rgb.r - rgb.g) / delta;
+ }
+ } else {
+ hsb.h = -1;
+ }
+ hsb.h *= 60;
+ if (hsb.h < 0) {
+ hsb.h += 360;
+ }
+ hsb.s *= 100/255;
+ hsb.b *= 100/255;
+ return hsb;
+ },
+ HSBToRGB = function (hsb) {
+ var rgb = {};
+ var h = Math.round(hsb.h);
+ var s = Math.round(hsb.s*255/100);
+ var v = Math.round(hsb.b*255/100);
+ if(s == 0) {
+ rgb.r = rgb.g = rgb.b = v;
+ } else {
+ var t1 = v;
+ var t2 = (255-s)*v/255;
+ var t3 = (t1-t2)*(h%60)/60;
+ if(h==360) h = 0;
+ if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
+ else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
+ else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
+ else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
+ else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
+ else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
+ else {rgb.r=0; rgb.g=0; rgb.b=0}
+ }
+ return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
+ },
+ RGBToHex = function (rgb) {
+ var hex = [
+ rgb.r.toString(16),
+ rgb.g.toString(16),
+ rgb.b.toString(16)
+ ];
+ $.each(hex, function (nr, val) {
+ if (val.length == 1) {
+ hex[nr] = '0' + val;
+ }
+ });
+ return hex.join('');
+ },
+ HSBToHex = function (hsb) {
+ return RGBToHex(HSBToRGB(hsb));
+ },
+ restoreOriginal = function () {
+ var cal = $(this).parent();
+ var col = cal.data('colorpicker').origColor;
+ cal.data('colorpicker').color = col;
+ fillRGBFields(col, cal.get(0));
+ fillHexFields(col, cal.get(0));
+ fillHSBFields(col, cal.get(0));
+ setSelector(col, cal.get(0));
+ setHue(col, cal.get(0));
+ setNewColor(col, cal.get(0));
+ };
+ return {
+ init: function (opt) {
+ opt = $.extend({}, defaults, opt||{});
+ if (typeof opt.color == 'string') {
+ opt.color = HexToHSB(opt.color);
+ } else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
+ opt.color = RGBToHSB(opt.color);
+ } else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
+ opt.color = fixHSB(opt.color);
+ } else {
+ return this;
+ }
+ return this.each(function () {
+ if (!$(this).data('colorpickerId')) {
+ var options = $.extend({}, opt);
+ options.origColor = opt.color;
+ var id = 'collorpicker_' + parseInt(Math.random() * 1000);
+ $(this).data('colorpickerId', id);
+ var cal = $(tpl).attr('id', id);
+ if (options.flat) {
+ cal.appendTo(this).show();
+ } else {
+ cal.appendTo(document.body);
+ }
+ options.fields = cal
+ .find('input')
+ .bind('keyup', keyDown)
+ .bind('change', change)
+ .bind('blur', blur)
+ .bind('focus', focus)
+ .bind('mousedown', mouseDown);
+ cal
+ .find('span').bind('mousedown', downIncrement).end()
+ .find('>div.colorpicker_current_color').bind('click', restoreOriginal);
+ options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
+ options.selectorIndic = options.selector.find('div div');
+ options.el = this;
+ options.hue = cal.find('div.colorpicker_hue div');
+ cal.find('div.colorpicker_hue').bind('mousedown', downHue);
+ options.newColor = cal.find('div.colorpicker_new_color').bind('mousedown', mouseDown);
+ options.currentColor = cal.find('div.colorpicker_current_color').bind('mousedown', mouseDown);
+ cal.data('colorpicker', options);
+ cal.find('div.colorpicker_submit')
+ .bind('mouseenter', enterSubmit)
+ .bind('mouseleave', leaveSubmit)
+ .bind('click', clickSubmit)
+ .bind('mousedown', mouseDown);
+ fillRGBFields(options.color, cal.get(0));
+ fillHSBFields(options.color, cal.get(0));
+ fillHexFields(options.color, cal.get(0));
+ setHue(options.color, cal.get(0));
+ setSelector(options.color, cal.get(0));
+ setCurrentColor(options.color, cal.get(0));
+ setNewColor(options.color, cal.get(0));
+ if (options.flat) {
+ cal.css({
+ position: 'relative',
+ display: 'block'
+ });
+ } else {
+ $(this).bind(options.eventName, show);
+ }
+ }
+ });
+ },
+ showPicker: function() {
+ return this.each( function () {
+ if ($(this).data('colorpickerId')) {
+ show.apply(this);
+ }
+ });
+ },
+ hidePicker: function() {
+ return this.each( function () {
+ if ($(this).data('colorpickerId')) {
+ $('#' + $(this).data('colorpickerId')).hide();
+ }
+ });
+ },
+ setColor: function(col) {
+ if (typeof col == 'string') {
+ col = HexToHSB(col);
+ } else if (col.r != undefined && col.g != undefined && col.b != undefined) {
+ col = RGBToHSB(col);
+ } else if (col.h != undefined && col.s != undefined && col.b != undefined) {
+ col = fixHSB(col);
+ } else {
+ return this;
+ }
+ return this.each(function(){
+ if ($(this).data('colorpickerId')) {
+ var cal = $('#' + $(this).data('colorpickerId'));
+ cal.data('colorpicker').color = col;
+ cal.data('colorpicker').origColor = col;
+ fillRGBFields(col, cal.get(0));
+ fillHSBFields(col, cal.get(0));
+ fillHexFields(col, cal.get(0));
+ setHue(col, cal.get(0));
+ setSelector(col, cal.get(0));
+ setCurrentColor(col, cal.get(0));
+ setNewColor(col, cal.get(0));
+ }
+ });
+ }
+ };
+ }();
+ $.fn.extend({
+ ColorPicker: ColorPicker.init,
+ ColorPickerHide: ColorPicker.hidePicker,
+ ColorPickerShow: ColorPicker.showPicker,
+ ColorPickerSetColor: ColorPicker.setColor
+ });
+})(jQuery)
\ No newline at end of file
diff --git a/Zplot/js/plotPanelControl/colorpicker/js/colorpickerEditor.js b/Zplot/js/plotPanelControl/colorpicker/js/colorpickerEditor.js
new file mode 100644
index 0000000..b13dc51
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/js/colorpickerEditor.js
@@ -0,0 +1,60 @@
+$.extend($.fn.datagrid.defaults.editors, {
+ colorpicker: {//colorpicker就是你要自定义editor的名称
+ init: function (container, options) {
+ //var colorSector = $('<div id="colorSelector" class="colorSelector">').appendTo(container);
+ //$('#colorSelector').ColorPicker({
+ // color: '#0000ff',
+ // onShow: function (colpkr) {
+ // $(colpkr).fadeIn(500);
+ // return false;
+ // },
+ // onHide: function (colpkr) {
+ // $(colpkr).fadeOut(500);
+ // return false;
+ // },
+ // onChange: function (hsb, hex, rgb) {
+ // $('#colorSelector div').css('backgroundColor', '#' + hex);
+ // }
+ //});
+ //
+ //return $('#colorSelector div');
+ var input = $('<input>').appendTo(container);
+ input.ColorPicker({
+ color: '#0000ff',
+ onShow: function (colpkr) {
+ $(colpkr).fadeIn(500);
+ return false;
+ },
+ onHide: function (colpkr) {
+ $(colpkr).fadeOut(500);
+ return false;
+ },
+ onChange: function (hsb, hex, rgb) {
+ input.css('backgroundColor', '#' + hex);
+ input.val('0x' + hex);
+ }
+ });
+ return input;
+ },
+ getValue: function (target) {
+ return $(target).val().replace(/0x/, "#");
+ },
+ setValue: function (target, value) {
+ // 特殊处理, 因为在flash里使用的是0x16进制格式
+ value = value.replace(/0x/, "#");
+ $(target).val(value);
+ $(target).css('backgroundColor', value);
+ $(target).ColorPickerSetColor(value);
+ },
+ resize: function (target, width) {
+ var input = $(target);
+ if ($.boxModel == true) {
+ input.width(width - (input.outerWidth() - input.width()));
+ } else {
+ input.width(width);
+ }
+ }
+ }
+});
+
+
diff --git a/Zplot/js/plotPanelControl/colorpicker/js/eye.js b/Zplot/js/plotPanelControl/colorpicker/js/eye.js
new file mode 100644
index 0000000..8a281dc
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/js/eye.js
@@ -0,0 +1,34 @@
+/**
+ *
+ * Zoomimage
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ */
+(function($){
+ var EYE = window.EYE = function() {
+ var _registered = {
+ init: []
+ };
+ return {
+ init: function() {
+ $.each(_registered.init, function(nr, fn){
+ fn.call();
+ });
+ },
+ extend: function(prop) {
+ for (var i in prop) {
+ if (prop[i] != undefined) {
+ this[i] = prop[i];
+ }
+ }
+ },
+ register: function(fn, type) {
+ if (!_registered[type]) {
+ _registered[type] = [];
+ }
+ _registered[type].push(fn);
+ }
+ };
+ }();
+ $(EYE.init);
+})(jQuery);
diff --git a/Zplot/js/plotPanelControl/colorpicker/js/layout.js b/Zplot/js/plotPanelControl/colorpicker/js/layout.js
new file mode 100644
index 0000000..6aa7d36
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/js/layout.js
@@ -0,0 +1,67 @@
+(function($){
+ var initLayout = function() {
+ var hash = window.location.hash.replace('#', '');
+ var currentTab = $('ul.navigationTabs a')
+ .bind('click', showTab);
+ //.filter('a[rel=' + hash + ']');
+ if (currentTab.size() == 0) {
+ currentTab = $('ul.navigationTabs a:first');
+ }
+ showTab.apply(currentTab.get(0));
+ $('#colorpickerHolder').ColorPicker({flat: true});
+ $('#colorpickerHolder2').ColorPicker({
+ flat: true,
+ color: '#00ff00',
+ onSubmit: function(hsb, hex, rgb) {
+ $('#colorSelector2 div').css('backgroundColor', '#' + hex);
+ }
+ });
+ $('#colorpickerHolder2>div').css('position', 'absolute');
+ var widt = false;
+ $('#colorSelector2').bind('click', function() {
+ $('#colorpickerHolder2').stop().animate({height: widt ? 0 : 173}, 500);
+ widt = !widt;
+ });
+ $('#colorpickerField1, #colorpickerField2, #colorpickerField3').ColorPicker({
+ onSubmit: function(hsb, hex, rgb, el) {
+ $(el).val(hex);
+ $(el).ColorPickerHide();
+ },
+ onBeforeShow: function () {
+ $(this).ColorPickerSetColor(this.value);
+ }
+ })
+ .bind('keyup', function(){
+ $(this).ColorPickerSetColor(this.value);
+ });
+ $('#colorSelector').ColorPicker({
+ color: '#0000ff',
+ onShow: function (colpkr) {
+ $(colpkr).fadeIn(500);
+ return false;
+ },
+ onHide: function (colpkr) {
+ $(colpkr).fadeOut(500);
+ return false;
+ },
+ onChange: function (hsb, hex, rgb) {
+ $('#colorSelector div').css('backgroundColor', '#' + hex);
+ }
+ });
+ };
+
+ var showTab = function(e) {
+ var tabIndex = $('ul.navigationTabs a')
+ .removeClass('active')
+ .index(this);
+ $(this)
+ .addClass('active')
+ .blur();
+ $('div.tab')
+ .hide()
+ .eq(tabIndex)
+ .show();
+ };
+
+ EYE.register(initLayout, 'init');
+})(jQuery)
\ No newline at end of file
diff --git a/Zplot/js/plotPanelControl/colorpicker/js/utils.js b/Zplot/js/plotPanelControl/colorpicker/js/utils.js
new file mode 100644
index 0000000..d9be853
--- /dev/null
+++ b/Zplot/js/plotPanelControl/colorpicker/js/utils.js
@@ -0,0 +1,252 @@
+/**
+ *
+ * Utilities
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ */
+(function($) {
+EYE.extend({
+ getPosition : function(e, forceIt)
+ {
+ var x = 0;
+ var y = 0;
+ var es = e.style;
+ var restoreStyles = false;
+ if (forceIt && jQuery.curCSS(e,'display') == 'none') {
+ var oldVisibility = es.visibility;
+ var oldPosition = es.position;
+ restoreStyles = true;
+ es.visibility = 'hidden';
+ es.display = 'block';
+ es.position = 'absolute';
+ }
+ var el = e;
+ if (el.getBoundingClientRect) { // IE
+ var box = el.getBoundingClientRect();
+ x = box.left + Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) - 2;
+ y = box.top + Math.max(document.documentElement.scrollTop, document.body.scrollTop) - 2;
+ } else {
+ x = el.offsetLeft;
+ y = el.offsetTop;
+ el = el.offsetParent;
+ if (e != el) {
+ while (el) {
+ x += el.offsetLeft;
+ y += el.offsetTop;
+ el = el.offsetParent;
+ }
+ }
+ if (jQuery.browser.safari && jQuery.curCSS(e, 'position') == 'absolute' ) {
+ x -= document.body.offsetLeft;
+ y -= document.body.offsetTop;
+ }
+ el = e.parentNode;
+ while (el && el.tagName.toUpperCase() != 'BODY' && el.tagName.toUpperCase() != 'HTML')
+ {
+ if (jQuery.curCSS(el, 'display') != 'inline') {
+ x -= el.scrollLeft;
+ y -= el.scrollTop;
+ }
+ el = el.parentNode;
+ }
+ }
+ if (restoreStyles == true) {
+ es.display = 'none';
+ es.position = oldPosition;
+ es.visibility = oldVisibility;
+ }
+ return {x:x, y:y};
+ },
+ getSize : function(e)
+ {
+ var w = parseInt(jQuery.curCSS(e,'width'), 10);
+ var h = parseInt(jQuery.curCSS(e,'height'), 10);
+ var wb = 0;
+ var hb = 0;
+ if (jQuery.curCSS(e, 'display') != 'none') {
+ wb = e.offsetWidth;
+ hb = e.offsetHeight;
+ } else {
+ var es = e.style;
+ var oldVisibility = es.visibility;
+ var oldPosition = es.position;
+ es.visibility = 'hidden';
+ es.display = 'block';
+ es.position = 'absolute';
+ wb = e.offsetWidth;
+ hb = e.offsetHeight;
+ es.display = 'none';
+ es.position = oldPosition;
+ es.visibility = oldVisibility;
+ }
+ return {w:w, h:h, wb:wb, hb:hb};
+ },
+ getClient : function(e)
+ {
+ var h, w;
+ if (e) {
+ w = e.clientWidth;
+ h = e.clientHeight;
+ } else {
+ var de = document.documentElement;
+ w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
+ h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
+ }
+ return {w:w,h:h};
+ },
+ getScroll : function (e)
+ {
+ var t=0, l=0, w=0, h=0, iw=0, ih=0;
+ if (e && e.nodeName.toLowerCase() != 'body') {
+ t = e.scrollTop;
+ l = e.scrollLeft;
+ w = e.scrollWidth;
+ h = e.scrollHeight;
+ } else {
+ if (document.documentElement) {
+ t = document.documentElement.scrollTop;
+ l = document.documentElement.scrollLeft;
+ w = document.documentElement.scrollWidth;
+ h = document.documentElement.scrollHeight;
+ } else if (document.body) {
+ t = document.body.scrollTop;
+ l = document.body.scrollLeft;
+ w = document.body.scrollWidth;
+ h = document.body.scrollHeight;
+ }
+ if (typeof pageYOffset != 'undefined') {
+ t = pageYOffset;
+ l = pageXOffset;
+ }
+ iw = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
+ ih = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
+ }
+ return { t: t, l: l, w: w, h: h, iw: iw, ih: ih };
+ },
+ getMargins : function(e, toInteger)
+ {
+ var t = jQuery.curCSS(e,'marginTop') || '';
+ var r = jQuery.curCSS(e,'marginRight') || '';
+ var b = jQuery.curCSS(e,'marginBottom') || '';
+ var l = jQuery.curCSS(e,'marginLeft') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t, 10)||0,
+ r: parseInt(r, 10)||0,
+ b: parseInt(b, 10)||0,
+ l: parseInt(l, 10)
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getPadding : function(e, toInteger)
+ {
+ var t = jQuery.curCSS(e,'paddingTop') || '';
+ var r = jQuery.curCSS(e,'paddingRight') || '';
+ var b = jQuery.curCSS(e,'paddingBottom') || '';
+ var l = jQuery.curCSS(e,'paddingLeft') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t, 10)||0,
+ r: parseInt(r, 10)||0,
+ b: parseInt(b, 10)||0,
+ l: parseInt(l, 10)
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getBorder : function(e, toInteger)
+ {
+ var t = jQuery.curCSS(e,'borderTopWidth') || '';
+ var r = jQuery.curCSS(e,'borderRightWidth') || '';
+ var b = jQuery.curCSS(e,'borderBottomWidth') || '';
+ var l = jQuery.curCSS(e,'borderLeftWidth') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t, 10)||0,
+ r: parseInt(r, 10)||0,
+ b: parseInt(b, 10)||0,
+ l: parseInt(l, 10)||0
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ traverseDOM : function(nodeEl, func)
+ {
+ func(nodeEl);
+ nodeEl = nodeEl.firstChild;
+ while(nodeEl){
+ EYE.traverseDOM(nodeEl, func);
+ nodeEl = nodeEl.nextSibling;
+ }
+ },
+ getInnerWidth : function(el, scroll) {
+ var offsetW = el.offsetWidth;
+ return scroll ? Math.max(el.scrollWidth,offsetW) - offsetW + el.clientWidth:el.clientWidth;
+ },
+ getInnerHeight : function(el, scroll) {
+ var offsetH = el.offsetHeight;
+ return scroll ? Math.max(el.scrollHeight,offsetH) - offsetH + el.clientHeight:el.clientHeight;
+ },
+ getExtraWidth : function(el) {
+ if($.boxModel)
+ return (parseInt($.curCSS(el, 'paddingLeft'))||0)
+ + (parseInt($.curCSS(el, 'paddingRight'))||0)
+ + (parseInt($.curCSS(el, 'borderLeftWidth'))||0)
+ + (parseInt($.curCSS(el, 'borderRightWidth'))||0);
+ return 0;
+ },
+ getExtraHeight : function(el) {
+ if($.boxModel)
+ return (parseInt($.curCSS(el, 'paddingTop'))||0)
+ + (parseInt($.curCSS(el, 'paddingBottom'))||0)
+ + (parseInt($.curCSS(el, 'borderTopWidth'))||0)
+ + (parseInt($.curCSS(el, 'borderBottomWidth'))||0);
+ return 0;
+ },
+ isChildOf: function(parentEl, el, container) {
+ if (parentEl == el) {
+ return true;
+ }
+ if (!el || !el.nodeType || el.nodeType != 1) {
+ return false;
+ }
+ if (parentEl.contains && !$.browser.safari) {
+ return parentEl.contains(el);
+ }
+ if ( parentEl.compareDocumentPosition ) {
+ return !!(parentEl.compareDocumentPosition(el) & 16);
+ }
+ var prEl = el.parentNode;
+ while(prEl && prEl != container) {
+ if (prEl == parentEl)
+ return true;
+ prEl = prEl.parentNode;
+ }
+ return false;
+ },
+ centerEl : function(el, axis)
+ {
+ var clientScroll = EYE.getScroll();
+ var size = EYE.getSize(el);
+ if (!axis || axis == 'vertically')
+ $(el).css(
+ {
+ top: clientScroll.t + ((Math.min(clientScroll.h,clientScroll.ih) - size.hb)/2) + 'px'
+ }
+ );
+ if (!axis || axis == 'horizontally')
+ $(el).css(
+ {
+ left: clientScroll.l + ((Math.min(clientScroll.w,clientScroll.iw) - size.wb)/2) + 'px'
+ }
+ );
+ }
+});
+if (!$.easing.easeout) {
+ $.easing.easeout = function(p, n, firstNum, delta, duration) {
+ return -delta * ((n=n/duration-1)*n*n*n - 1) + firstNum;
+ };
+}
+
+})(jQuery);
\ No newline at end of file
diff --git a/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css
new file mode 100644
index 0000000..4e21c27
--- /dev/null
+++ b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css
@@ -0,0 +1,2869 @@
+.panel {
+ overflow: hidden;
+ text-align: left;
+ margin: 0;
+ border: 0;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.panel-header,
+.panel-body {
+ border-width: 1px;
+ border-style: solid;
+}
+.panel-header {
+ padding: 5px;
+ position: relative;
+}
+.panel-title {
+ background: url('images/blank.gif') no-repeat;
+}
+.panel-header-noborder {
+ border-width: 0 0 1px 0;
+}
+.panel-body {
+ overflow: auto;
+ border-top-width: 0;
+ padding: 0;
+}
+.panel-body-noheader {
+ border-top-width: 1px;
+}
+.panel-body-noborder {
+ border-width: 0px;
+}
+.panel-body-nobottom {
+ border-bottom-width: 0;
+}
+.panel-with-icon {
+ padding-left: 18px;
+}
+.panel-icon,
+.panel-tool {
+ position: absolute;
+ top: 50%;
+ margin-top: -8px;
+ height: 16px;
+ overflow: hidden;
+}
+.panel-icon {
+ left: 5px;
+ width: 16px;
+}
+.panel-tool {
+ right: 5px;
+ width: auto;
+}
+.panel-tool a {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ margin: 0 0 0 2px;
+ vertical-align: top;
+}
+.panel-tool a:hover {
+ opacity: 1;
+ filter: alpha(opacity=100);
+ background-color: #eaf2ff;
+ -moz-border-radius: 3px 3px 3px 3px;
+ -webkit-border-radius: 3px 3px 3px 3px;
+ border-radius: 3px 3px 3px 3px;
+}
+.panel-loading {
+ padding: 11px 0px 10px 30px;
+}
+.panel-noscroll {
+ overflow: hidden;
+}
+.panel-fit,
+.panel-fit body {
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ overflow: hidden;
+}
+.panel-loading {
+ background: url('images/loading.gif') no-repeat 10px 10px;
+}
+.panel-tool-close {
+ background: url('images/panel_tools.png') no-repeat -16px 0px;
+}
+.panel-tool-min {
+ background: url('images/panel_tools.png') no-repeat 0px 0px;
+}
+.panel-tool-max {
+ background: url('images/panel_tools.png') no-repeat 0px -16px;
+}
+.panel-tool-restore {
+ background: url('images/panel_tools.png') no-repeat -16px -16px;
+}
+.panel-tool-collapse {
+ background: url('images/panel_tools.png') no-repeat -32px 0;
+}
+.panel-tool-expand {
+ background: url('images/panel_tools.png') no-repeat -32px -16px;
+}
+.panel-header,
+.panel-body {
+ border-color: #95B8E7;
+}
+.panel-header {
+ background-color: #E0ECFF;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
+}
+.panel-body {
+ background-color: #ffffff;
+ color: #000000;
+ font-size: 12px;
+}
+.panel-title {
+ font-size: 12px;
+ font-weight: bold;
+ color: #0E2D5F;
+ height: 16px;
+ line-height: 16px;
+}
+.panel-footer {
+ border: 1px solid #95B8E7;
+ overflow: hidden;
+ background: #F4F4F4;
+}
+.panel-footer-noborder {
+ border-width: 1px 0 0 0;
+}
+.accordion {
+ overflow: hidden;
+ border-width: 1px;
+ border-style: solid;
+}
+.accordion .accordion-header {
+ border-width: 0 0 1px;
+ cursor: pointer;
+}
+.accordion .accordion-body {
+ border-width: 0 0 1px;
+}
+.accordion-noborder {
+ border-width: 0;
+}
+.accordion-noborder .accordion-header {
+ border-width: 0 0 1px;
+}
+.accordion-noborder .accordion-body {
+ border-width: 0 0 1px;
+}
+.accordion-collapse {
+ background: url('images/accordion_arrows.png') no-repeat 0 0;
+}
+.accordion-expand {
+ background: url('images/accordion_arrows.png') no-repeat -16px 0;
+}
+.accordion {
+ background: #ffffff;
+ border-color: #95B8E7;
+}
+.accordion .accordion-header {
+ background: #E0ECFF;
+ filter: none;
+}
+.accordion .accordion-header-selected {
+ background: #ffe48d;
+}
+.accordion .accordion-header-selected .panel-title {
+ color: #000000;
+}
+.window {
+ overflow: hidden;
+ padding: 5px;
+ border-width: 1px;
+ border-style: solid;
+}
+.window .window-header {
+ background: transparent;
+ padding: 0px 0px 6px 0px;
+}
+.window .window-body {
+ border-width: 1px;
+ border-style: solid;
+ border-top-width: 0px;
+}
+.window .window-body-noheader {
+ border-top-width: 1px;
+}
+.window .panel-body-nobottom {
+ border-bottom-width: 0;
+}
+.window .window-header .panel-icon,
+.window .window-header .panel-tool {
+ top: 50%;
+ margin-top: -11px;
+}
+.window .window-header .panel-icon {
+ left: 1px;
+}
+.window .window-header .panel-tool {
+ right: 1px;
+}
+.window .window-header .panel-with-icon {
+ padding-left: 18px;
+}
+.window-proxy {
+ position: absolute;
+ overflow: hidden;
+}
+.window-proxy-mask {
+ position: absolute;
+ filter: alpha(opacity=5);
+ opacity: 0.05;
+}
+.window-mask {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ filter: alpha(opacity=40);
+ opacity: 0.40;
+ font-size: 1px;
+ overflow: hidden;
+}
+.window,
+.window-shadow {
+ position: absolute;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.window-shadow {
+ background: #ccc;
+ -moz-box-shadow: 2px 2px 3px #cccccc;
+ -webkit-box-shadow: 2px 2px 3px #cccccc;
+ box-shadow: 2px 2px 3px #cccccc;
+ filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
+}
+.window,
+.window .window-body {
+ border-color: #95B8E7;
+}
+.window {
+ background-color: #E0ECFF;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 20%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
+}
+.window-proxy {
+ border: 1px dashed #95B8E7;
+}
+.window-proxy-mask,
+.window-mask {
+ background: #ccc;
+}
+.window .panel-footer {
+ border: 1px solid #95B8E7;
+ position: relative;
+ top: -1px;
+}
+.dialog-content {
+ overflow: auto;
+}
+.dialog-toolbar {
+ padding: 2px 5px;
+}
+.dialog-tool-separator {
+ float: left;
+ height: 24px;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+ margin: 2px 1px;
+}
+.dialog-button {
+ padding: 5px;
+ text-align: right;
+}
+.dialog-button .l-btn {
+ margin-left: 5px;
+}
+.dialog-toolbar,
+.dialog-button {
+ background: #F4F4F4;
+ border-width: 1px;
+ border-style: solid;
+}
+.dialog-toolbar {
+ border-color: #95B8E7 #95B8E7 #dddddd #95B8E7;
+}
+.dialog-button {
+ border-color: #dddddd #95B8E7 #95B8E7 #95B8E7;
+}
+.l-btn {
+ text-decoration: none;
+ display: inline-block;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+ cursor: pointer;
+ outline: none;
+ text-align: center;
+ vertical-align: middle;
+ line-height: normal;
+}
+.l-btn-plain {
+ border-width: 0;
+ padding: 1px;
+}
+.l-btn-left {
+ display: inline-block;
+ position: relative;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+ vertical-align: top;
+}
+.l-btn-text {
+ display: inline-block;
+ vertical-align: top;
+ width: auto;
+ line-height: 24px;
+ font-size: 12px;
+ padding: 0;
+ margin: 0 4px;
+}
+.l-btn-icon {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ line-height: 16px;
+ position: absolute;
+ top: 50%;
+ margin-top: -8px;
+ font-size: 1px;
+}
+.l-btn span span .l-btn-empty {
+ display: inline-block;
+ margin: 0;
+ width: 16px;
+ height: 24px;
+ font-size: 1px;
+ vertical-align: top;
+}
+.l-btn span .l-btn-icon-left {
+ padding: 0 0 0 20px;
+ background-position: left center;
+}
+.l-btn span .l-btn-icon-right {
+ padding: 0 20px 0 0;
+ background-position: right center;
+}
+.l-btn-icon-left .l-btn-text {
+ margin: 0 4px 0 24px;
+}
+.l-btn-icon-left .l-btn-icon {
+ left: 4px;
+}
+.l-btn-icon-right .l-btn-text {
+ margin: 0 24px 0 4px;
+}
+.l-btn-icon-right .l-btn-icon {
+ right: 4px;
+}
+.l-btn-icon-top .l-btn-text {
+ margin: 20px 4px 0 4px;
+}
+.l-btn-icon-top .l-btn-icon {
+ top: 4px;
+ left: 50%;
+ margin: 0 0 0 -8px;
+}
+.l-btn-icon-bottom .l-btn-text {
+ margin: 0 4px 20px 4px;
+}
+.l-btn-icon-bottom .l-btn-icon {
+ top: auto;
+ bottom: 4px;
+ left: 50%;
+ margin: 0 0 0 -8px;
+}
+.l-btn-left .l-btn-empty {
+ margin: 0 4px;
+ width: 16px;
+}
+.l-btn-plain:hover {
+ padding: 0;
+}
+.l-btn-focus {
+ outline: #0000FF dotted thin;
+}
+.l-btn-large .l-btn-text {
+ line-height: 40px;
+}
+.l-btn-large .l-btn-icon {
+ width: 32px;
+ height: 32px;
+ line-height: 32px;
+ margin-top: -16px;
+}
+.l-btn-large .l-btn-icon-left .l-btn-text {
+ margin-left: 40px;
+}
+.l-btn-large .l-btn-icon-right .l-btn-text {
+ margin-right: 40px;
+}
+.l-btn-large .l-btn-icon-top .l-btn-text {
+ margin-top: 36px;
+ line-height: 24px;
+ min-width: 32px;
+}
+.l-btn-large .l-btn-icon-top .l-btn-icon {
+ margin: 0 0 0 -16px;
+}
+.l-btn-large .l-btn-icon-bottom .l-btn-text {
+ margin-bottom: 36px;
+ line-height: 24px;
+ min-width: 32px;
+}
+.l-btn-large .l-btn-icon-bottom .l-btn-icon {
+ margin: 0 0 0 -16px;
+}
+.l-btn-large .l-btn-left .l-btn-empty {
+ margin: 0 4px;
+ width: 32px;
+}
+.l-btn {
+ color: #444;
+ background: #fafafa;
+ background-repeat: repeat-x;
+ border: 1px solid #bbb;
+ background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0);
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.l-btn:hover {
+ background: #eaf2ff;
+ color: #000000;
+ border: 1px solid #b7d2ff;
+ filter: none;
+}
+.l-btn-plain {
+ background: transparent;
+ border-width: 0;
+ filter: none;
+}
+.l-btn-outline {
+ border-width: 1px;
+ border-color: #b7d2ff;
+ padding: 0;
+}
+.l-btn-plain:hover {
+ background: #eaf2ff;
+ color: #000000;
+ border: 1px solid #b7d2ff;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.l-btn-disabled,
+.l-btn-disabled:hover {
+ opacity: 0.5;
+ cursor: default;
+ background: #fafafa;
+ color: #444;
+ background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0);
+}
+.l-btn-disabled .l-btn-text,
+.l-btn-disabled .l-btn-icon {
+ filter: alpha(opacity=50);
+}
+.l-btn-plain-disabled,
+.l-btn-plain-disabled:hover {
+ background: transparent;
+ filter: alpha(opacity=50);
+}
+.l-btn-selected,
+.l-btn-selected:hover {
+ background: #ddd;
+ filter: none;
+}
+.l-btn-plain-selected,
+.l-btn-plain-selected:hover {
+ background: #ddd;
+}
+.textbox {
+ position: relative;
+ border: 1px solid #95B8E7;
+ background-color: #fff;
+ vertical-align: middle;
+ display: inline-block;
+ overflow: hidden;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.textbox .textbox-text {
+ font-size: 12px;
+ border: 0;
+ margin: 0;
+ padding: 4px;
+ white-space: normal;
+ vertical-align: top;
+ outline-style: none;
+ resize: none;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.textbox textarea.textbox-text {
+ white-space: pre-wrap;
+}
+.textbox .textbox-prompt {
+ font-size: 12px;
+ color: #aaa;
+}
+.textbox .textbox-button,
+.textbox .textbox-button:hover {
+ position: absolute;
+ top: 0;
+ padding: 0;
+ vertical-align: top;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.textbox-button-right,
+.textbox-button-right:hover {
+ border-width: 0 0 0 1px;
+}
+.textbox-button-left,
+.textbox-button-left:hover {
+ border-width: 0 1px 0 0;
+}
+.textbox-addon {
+ position: absolute;
+ top: 0;
+}
+.textbox-icon {
+ display: inline-block;
+ width: 18px;
+ height: 20px;
+ overflow: hidden;
+ vertical-align: top;
+ background-position: center center;
+ cursor: pointer;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ text-decoration: none;
+ outline-style: none;
+}
+.textbox-icon-disabled,
+.textbox-icon-readonly {
+ cursor: default;
+}
+.textbox-icon:hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.textbox-icon-disabled:hover {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.textbox-focused {
+ -moz-box-shadow: 0 0 3px 0 #95B8E7;
+ -webkit-box-shadow: 0 0 3px 0 #95B8E7;
+ box-shadow: 0 0 3px 0 #95B8E7;
+}
+.textbox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+}
+.filebox .textbox-value {
+ vertical-align: top;
+ position: absolute;
+ top: 0;
+ left: -5000px;
+}
+.filebox-label {
+ display: inline-block;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+ left: 0;
+ top: 0;
+ z-index: 10;
+ background: url('images/blank.gif') no-repeat;
+}
+.l-btn-disabled .filebox-label {
+ cursor: default;
+}
+.combo {
+ display: inline-block;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.combo .combo-text {
+ font-size: 12px;
+ border: 0px;
+ margin: 0;
+ padding: 0px 2px;
+ vertical-align: baseline;
+}
+.combo-arrow {
+ width: 18px;
+ height: 20px;
+ overflow: hidden;
+ display: inline-block;
+ vertical-align: top;
+ cursor: pointer;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.combo-arrow-hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.combo-panel {
+ overflow: auto;
+}
+.combo-arrow {
+ background: url('images/combo_arrow.png') no-repeat center center;
+}
+.combo-panel {
+ background-color: #ffffff;
+}
+.combo {
+ border-color: #95B8E7;
+ background-color: #fff;
+}
+.combo-arrow {
+ background-color: #E0ECFF;
+}
+.combo-arrow-hover {
+ background-color: #eaf2ff;
+}
+.combo-arrow:hover {
+ background-color: #eaf2ff;
+}
+.combo .textbox-icon-disabled:hover {
+ cursor: default;
+}
+.textbox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+}
+.combobox-item,
+.combobox-group {
+ font-size: 12px;
+ padding: 3px;
+ padding-right: 0px;
+}
+.combobox-item-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.combobox-gitem {
+ padding-left: 10px;
+}
+.combobox-group {
+ font-weight: bold;
+}
+.combobox-item-hover {
+ background-color: #eaf2ff;
+ color: #000000;
+}
+.combobox-item-selected {
+ background-color: #ffe48d;
+ color: #000000;
+}
+.layout {
+ position: relative;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+ z-index: 0;
+}
+.layout-panel {
+ position: absolute;
+ overflow: hidden;
+}
+.layout-body {
+ min-width: 1px;
+ min-height: 1px;
+}
+.layout-panel-east,
+.layout-panel-west {
+ z-index: 2;
+}
+.layout-panel-north,
+.layout-panel-south {
+ z-index: 3;
+}
+.layout-expand {
+ position: absolute;
+ padding: 0px;
+ font-size: 1px;
+ cursor: pointer;
+ z-index: 1;
+}
+.layout-expand .panel-header,
+.layout-expand .panel-body {
+ background: transparent;
+ filter: none;
+ overflow: hidden;
+}
+.layout-expand .panel-header {
+ border-bottom-width: 0px;
+}
+.layout-expand .panel-body {
+ position: relative;
+}
+.layout-expand .panel-body .panel-icon {
+ margin-top: 0;
+ top: 0;
+ left: 50%;
+ margin-left: -8px;
+}
+.layout-expand-west .panel-header .panel-icon,
+.layout-expand-east .panel-header .panel-icon {
+ display: none;
+}
+.layout-expand-title {
+ position: absolute;
+ top: 0;
+ left: 21px;
+ white-space: nowrap;
+ word-wrap: normal;
+ -webkit-transform: rotate(90deg);
+ -webkit-transform-origin: 0 0;
+ -moz-transform: rotate(90deg);
+ -moz-transform-origin: 0 0;
+ -o-transform: rotate(90deg);
+ -o-transform-origin: 0 0;
+ transform: rotate(90deg);
+ transform-origin: 0 0;
+}
+.layout-expand-with-icon {
+ top: 18px;
+}
+.layout-expand .panel-body-noheader .layout-expand-title,
+.layout-expand .panel-body-noheader .panel-icon {
+ top: 5px;
+}
+.layout-expand .panel-body-noheader .layout-expand-with-icon {
+ top: 23px;
+}
+.layout-split-proxy-h,
+.layout-split-proxy-v {
+ position: absolute;
+ font-size: 1px;
+ display: none;
+ z-index: 5;
+}
+.layout-split-proxy-h {
+ width: 5px;
+ cursor: e-resize;
+}
+.layout-split-proxy-v {
+ height: 5px;
+ cursor: n-resize;
+}
+.layout-mask {
+ position: absolute;
+ background: #fafafa;
+ filter: alpha(opacity=10);
+ opacity: 0.10;
+ z-index: 4;
+}
+.layout-button-up {
+ background: url('images/layout_arrows.png') no-repeat -16px -16px;
+}
+.layout-button-down {
+ background: url('images/layout_arrows.png') no-repeat -16px 0;
+}
+.layout-button-left {
+ background: url('images/layout_arrows.png') no-repeat 0 0;
+}
+.layout-button-right {
+ background: url('images/layout_arrows.png') no-repeat 0 -16px;
+}
+.layout-split-proxy-h,
+.layout-split-proxy-v {
+ background-color: #aac5e7;
+}
+.layout-split-north {
+ border-bottom: 5px solid #E6EEF8;
+}
+.layout-split-south {
+ border-top: 5px solid #E6EEF8;
+}
+.layout-split-east {
+ border-left: 5px solid #E6EEF8;
+}
+.layout-split-west {
+ border-right: 5px solid #E6EEF8;
+}
+.layout-expand {
+ background-color: #E0ECFF;
+}
+.layout-expand-over {
+ background-color: #E0ECFF;
+}
+.tabs-container {
+ overflow: hidden;
+}
+.tabs-header {
+ border-width: 1px;
+ border-style: solid;
+ border-bottom-width: 0;
+ position: relative;
+ padding: 0;
+ padding-top: 2px;
+ overflow: hidden;
+}
+.tabs-scroller-left,
+.tabs-scroller-right {
+ position: absolute;
+ top: auto;
+ bottom: 0;
+ width: 18px;
+ font-size: 1px;
+ display: none;
+ cursor: pointer;
+ border-width: 1px;
+ border-style: solid;
+}
+.tabs-scroller-left {
+ left: 0;
+}
+.tabs-scroller-right {
+ right: 0;
+}
+.tabs-tool {
+ position: absolute;
+ bottom: 0;
+ padding: 1px;
+ overflow: hidden;
+ border-width: 1px;
+ border-style: solid;
+}
+.tabs-header-plain .tabs-tool {
+ padding: 0 1px;
+}
+.tabs-wrap {
+ position: relative;
+ left: 0;
+ overflow: hidden;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+}
+.tabs-scrolling {
+ margin-left: 18px;
+ margin-right: 18px;
+}
+.tabs-disabled {
+ opacity: 0.3;
+ filter: alpha(opacity=30);
+}
+.tabs {
+ list-style-type: none;
+ height: 26px;
+ margin: 0px;
+ padding: 0px;
+ padding-left: 4px;
+ width: 50000px;
+ border-style: solid;
+ border-width: 0 0 1px 0;
+}
+.tabs li {
+ float: left;
+ display: inline-block;
+ margin: 0 4px -1px 0;
+ padding: 0;
+ position: relative;
+ border: 0;
+}
+.tabs li a.tabs-inner {
+ display: inline-block;
+ text-decoration: none;
+ margin: 0;
+ padding: 0 10px;
+ height: 25px;
+ line-height: 25px;
+ text-align: center;
+ white-space: nowrap;
+ border-width: 1px;
+ border-style: solid;
+ -moz-border-radius: 5px 5px 0 0;
+ -webkit-border-radius: 5px 5px 0 0;
+ border-radius: 5px 5px 0 0;
+}
+.tabs li.tabs-selected a.tabs-inner {
+ font-weight: bold;
+ outline: none;
+}
+.tabs li.tabs-selected a:hover.tabs-inner {
+ cursor: default;
+ pointer: default;
+}
+.tabs li a.tabs-close,
+.tabs-p-tool {
+ position: absolute;
+ font-size: 1px;
+ display: block;
+ height: 12px;
+ padding: 0;
+ top: 50%;
+ margin-top: -6px;
+ overflow: hidden;
+}
+.tabs li a.tabs-close {
+ width: 12px;
+ right: 5px;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.tabs-p-tool {
+ right: 16px;
+}
+.tabs-p-tool a {
+ display: inline-block;
+ font-size: 1px;
+ width: 12px;
+ height: 12px;
+ margin: 0;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.tabs li a:hover.tabs-close,
+.tabs-p-tool a:hover {
+ opacity: 1;
+ filter: alpha(opacity=100);
+ cursor: hand;
+ cursor: pointer;
+}
+.tabs-with-icon {
+ padding-left: 18px;
+}
+.tabs-icon {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ left: 10px;
+ top: 50%;
+ margin-top: -8px;
+}
+.tabs-title {
+ font-size: 12px;
+}
+.tabs-closable {
+ padding-right: 8px;
+}
+.tabs-panels {
+ margin: 0px;
+ padding: 0px;
+ border-width: 1px;
+ border-style: solid;
+ border-top-width: 0;
+ overflow: hidden;
+}
+.tabs-header-bottom {
+ border-width: 0 1px 1px 1px;
+ padding: 0 0 2px 0;
+}
+.tabs-header-bottom .tabs {
+ border-width: 1px 0 0 0;
+}
+.tabs-header-bottom .tabs li {
+ margin: -1px 4px 0 0;
+}
+.tabs-header-bottom .tabs li a.tabs-inner {
+ -moz-border-radius: 0 0 5px 5px;
+ -webkit-border-radius: 0 0 5px 5px;
+ border-radius: 0 0 5px 5px;
+}
+.tabs-header-bottom .tabs-tool {
+ top: 0;
+}
+.tabs-header-bottom .tabs-scroller-left,
+.tabs-header-bottom .tabs-scroller-right {
+ top: 0;
+ bottom: auto;
+}
+.tabs-panels-top {
+ border-width: 1px 1px 0 1px;
+}
+.tabs-header-left {
+ float: left;
+ border-width: 1px 0 1px 1px;
+ padding: 0;
+}
+.tabs-header-right {
+ float: right;
+ border-width: 1px 1px 1px 0;
+ padding: 0;
+}
+.tabs-header-left .tabs-wrap,
+.tabs-header-right .tabs-wrap {
+ height: 100%;
+}
+.tabs-header-left .tabs {
+ height: 100%;
+ padding: 4px 0 0 2px;
+ border-width: 0 1px 0 0;
+}
+.tabs-header-right .tabs {
+ height: 100%;
+ padding: 4px 2px 0 0;
+ border-width: 0 0 0 1px;
+}
+.tabs-header-left .tabs li,
+.tabs-header-right .tabs li {
+ display: block;
+ width: 100%;
+ position: relative;
+}
+.tabs-header-left .tabs li {
+ left: auto;
+ right: 0;
+ margin: 0 -1px 4px 0;
+ float: right;
+}
+.tabs-header-right .tabs li {
+ left: 0;
+ right: auto;
+ margin: 0 0 4px -1px;
+ float: left;
+}
+.tabs-justified li a.tabs-inner {
+ padding-left: 0;
+ padding-right: 0;
+}
+.tabs-header-left .tabs li a.tabs-inner {
+ display: block;
+ text-align: left;
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-border-radius: 5px 0 0 5px;
+ -webkit-border-radius: 5px 0 0 5px;
+ border-radius: 5px 0 0 5px;
+}
+.tabs-header-right .tabs li a.tabs-inner {
+ display: block;
+ text-align: left;
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-border-radius: 0 5px 5px 0;
+ -webkit-border-radius: 0 5px 5px 0;
+ border-radius: 0 5px 5px 0;
+}
+.tabs-panels-right {
+ float: right;
+ border-width: 1px 1px 1px 0;
+}
+.tabs-panels-left {
+ float: left;
+ border-width: 1px 0 1px 1px;
+}
+.tabs-header-noborder,
+.tabs-panels-noborder {
+ border: 0px;
+}
+.tabs-header-plain {
+ border: 0px;
+ background: transparent;
+}
+.tabs-pill {
+ padding-bottom: 3px;
+}
+.tabs-header-bottom .tabs-pill {
+ padding-top: 3px;
+ padding-bottom: 0;
+}
+.tabs-header-left .tabs-pill {
+ padding-right: 3px;
+}
+.tabs-header-right .tabs-pill {
+ padding-left: 3px;
+}
+.tabs-header .tabs-pill li a.tabs-inner {
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.tabs-header-narrow,
+.tabs-header-narrow .tabs-narrow {
+ padding: 0;
+}
+.tabs-narrow li,
+.tabs-header-bottom .tabs-narrow li {
+ margin-left: 0;
+ margin-right: -1px;
+}
+.tabs-narrow li.tabs-last,
+.tabs-header-bottom .tabs-narrow li.tabs-last {
+ margin-right: 0;
+}
+.tabs-header-left .tabs-narrow,
+.tabs-header-right .tabs-narrow {
+ padding-top: 0;
+}
+.tabs-header-left .tabs-narrow li {
+ margin-bottom: -1px;
+ margin-right: -1px;
+}
+.tabs-header-left .tabs-narrow li.tabs-last,
+.tabs-header-right .tabs-narrow li.tabs-last {
+ margin-bottom: 0;
+}
+.tabs-header-right .tabs-narrow li {
+ margin-bottom: -1px;
+ margin-left: -1px;
+}
+.tabs-scroller-left {
+ background: #E0ECFF url('images/tabs_icons.png') no-repeat 1px center;
+}
+.tabs-scroller-right {
+ background: #E0ECFF url('images/tabs_icons.png') no-repeat -15px center;
+}
+.tabs li a.tabs-close {
+ background: url('images/tabs_icons.png') no-repeat -34px center;
+}
+.tabs li a.tabs-inner:hover {
+ background: #eaf2ff;
+ color: #000000;
+ filter: none;
+}
+.tabs li.tabs-selected a.tabs-inner {
+ background-color: #ffffff;
+ color: #0E2D5F;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#ffffff 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=0);
+}
+.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner {
+ background: -webkit-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
+ background: -moz-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
+ background: -o-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
+ background: linear-gradient(to bottom,#ffffff 0,#EFF5FF 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=0);
+}
+.tabs-header-left .tabs li.tabs-selected a.tabs-inner {
+ background: -webkit-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
+ background: -moz-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
+ background: -o-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
+ background: linear-gradient(to right,#EFF5FF 0,#ffffff 100%);
+ background-repeat: repeat-y;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=1);
+}
+.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
+ background: -webkit-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
+ background: -moz-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
+ background: -o-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
+ background: linear-gradient(to right,#ffffff 0,#EFF5FF 100%);
+ background-repeat: repeat-y;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=1);
+}
+.tabs li a.tabs-inner {
+ color: #0E2D5F;
+ background-color: #E0ECFF;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
+}
+.tabs-header,
+.tabs-tool {
+ background-color: #E0ECFF;
+}
+.tabs-header-plain {
+ background: transparent;
+}
+.tabs-header,
+.tabs-scroller-left,
+.tabs-scroller-right,
+.tabs-tool,
+.tabs,
+.tabs-panels,
+.tabs li a.tabs-inner,
+.tabs li.tabs-selected a.tabs-inner,
+.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner,
+.tabs-header-left .tabs li.tabs-selected a.tabs-inner,
+.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
+ border-color: #95B8E7;
+}
+.tabs-p-tool a:hover,
+.tabs li a:hover.tabs-close,
+.tabs-scroller-over {
+ background-color: #eaf2ff;
+}
+.tabs li.tabs-selected a.tabs-inner {
+ border-bottom: 1px solid #ffffff;
+}
+.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner {
+ border-top: 1px solid #ffffff;
+}
+.tabs-header-left .tabs li.tabs-selected a.tabs-inner {
+ border-right: 1px solid #ffffff;
+}
+.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
+ border-left: 1px solid #ffffff;
+}
+.tabs-header .tabs-pill li.tabs-selected a.tabs-inner {
+ background: #ffe48d;
+ color: #000000;
+ filter: none;
+ border-color: #95B8E7;
+}
+.datagrid .panel-body {
+ overflow: hidden;
+ position: relative;
+}
+.datagrid-view {
+ position: relative;
+ overflow: hidden;
+}
+.datagrid-view1,
+.datagrid-view2 {
+ position: absolute;
+ overflow: hidden;
+ top: 0;
+}
+.datagrid-view1 {
+ left: 0;
+}
+.datagrid-view2 {
+ right: 0;
+}
+.datagrid-mask {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0.3;
+ filter: alpha(opacity=30);
+ display: none;
+}
+.datagrid-mask-msg {
+ position: absolute;
+ top: 50%;
+ margin-top: -20px;
+ padding: 10px 5px 10px 30px;
+ width: auto;
+ height: 16px;
+ border-width: 2px;
+ border-style: solid;
+ display: none;
+}
+.datagrid-sort-icon {
+ padding: 0;
+ display: none;
+}
+.datagrid-toolbar {
+ height: auto;
+ padding: 1px 2px;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+}
+.datagrid-btn-separator {
+ float: left;
+ height: 24px;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+ margin: 2px 1px;
+}
+.datagrid .datagrid-pager {
+ display: block;
+ margin: 0;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+}
+.datagrid .datagrid-pager-top {
+ border-width: 0 0 1px 0;
+}
+.datagrid-header {
+ overflow: hidden;
+ cursor: default;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+}
+.datagrid-header-inner {
+ float: left;
+ width: 10000px;
+}
+.datagrid-header-row,
+.datagrid-row {
+ height: 25px;
+}
+.datagrid-header td,
+.datagrid-body td,
+.datagrid-footer td {
+ border-width: 0 1px 1px 0;
+ border-style: dotted;
+ margin: 0;
+ padding: 0;
+}
+.datagrid-cell,
+.datagrid-cell-group,
+.datagrid-header-rownumber,
+.datagrid-cell-rownumber {
+ margin: 0;
+ padding: 0 4px;
+ white-space: nowrap;
+ word-wrap: normal;
+ overflow: hidden;
+ height: 18px;
+ line-height: 18px;
+ font-size: 12px;
+}
+.datagrid-header .datagrid-cell {
+ height: auto;
+}
+.datagrid-header .datagrid-cell span {
+ font-size: 12px;
+}
+.datagrid-cell-group {
+ text-align: center;
+ text-overflow: ellipsis;
+}
+.datagrid-header-rownumber,
+.datagrid-cell-rownumber {
+ width: 30px;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+.datagrid-body {
+ margin: 0;
+ padding: 0;
+ overflow: auto;
+ zoom: 1;
+}
+.datagrid-view1 .datagrid-body-inner {
+ padding-bottom: 20px;
+}
+.datagrid-view1 .datagrid-body {
+ overflow: hidden;
+}
+.datagrid-footer {
+ overflow: hidden;
+}
+.datagrid-footer-inner {
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ width: 10000px;
+ float: left;
+}
+.datagrid-row-editing .datagrid-cell {
+ height: auto;
+}
+.datagrid-header-check,
+.datagrid-cell-check {
+ padding: 0;
+ width: 27px;
+ height: 18px;
+ font-size: 1px;
+ text-align: center;
+ overflow: hidden;
+}
+.datagrid-header-check input,
+.datagrid-cell-check input {
+ margin: 0;
+ padding: 0;
+ width: 15px;
+ height: 18px;
+}
+.datagrid-resize-proxy {
+ position: absolute;
+ width: 1px;
+ height: 10000px;
+ top: 0;
+ cursor: e-resize;
+ display: none;
+}
+.datagrid-body .datagrid-editable {
+ margin: 0;
+ padding: 0;
+}
+.datagrid-body .datagrid-editable table {
+ width: 100%;
+ height: 100%;
+}
+.datagrid-body .datagrid-editable td {
+ border: 0;
+ margin: 0;
+ padding: 0;
+}
+.datagrid-view .datagrid-editable-input {
+ margin: 0;
+ padding: 2px 4px;
+ border: 1px solid #95B8E7;
+ font-size: 12px;
+ outline-style: none;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.datagrid-sort .datagrid-sort-icon {
+ display: inline;
+ padding: 0 13px 0 0;
+ background: url('images/datagrid_icons.png') no-repeat -64px center;
+}
+.datagrid-sort-desc .datagrid-sort-icon {
+ display: inline;
+ padding: 0 13px 0 0;
+ background: url('images/datagrid_icons.png') no-repeat -16px center;
+}
+.datagrid-sort-asc .datagrid-sort-icon {
+ display: inline;
+ padding: 0 13px 0 0;
+ background: url('images/datagrid_icons.png') no-repeat 0px center;
+}
+.datagrid-row-collapse {
+ background: url('images/datagrid_icons.png') no-repeat -48px center;
+}
+.datagrid-row-expand {
+ background: url('images/datagrid_icons.png') no-repeat -32px center;
+}
+.datagrid-mask-msg {
+ background: #ffffff url('images/loading.gif') no-repeat scroll 5px center;
+}
+.datagrid-header,
+.datagrid-td-rownumber {
+ background-color: #efefef;
+ background: -webkit-linear-gradient(top,#F9F9F9 0,#efefef 100%);
+ background: -moz-linear-gradient(top,#F9F9F9 0,#efefef 100%);
+ background: -o-linear-gradient(top,#F9F9F9 0,#efefef 100%);
+ background: linear-gradient(to bottom,#F9F9F9 0,#efefef 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,endColorstr=#efefef,GradientType=0);
+}
+.datagrid-cell-rownumber {
+ color: #000000;
+}
+.datagrid-resize-proxy {
+ background: #aac5e7;
+}
+.datagrid-mask {
+ background: #ccc;
+}
+.datagrid-mask-msg {
+ border-color: #95B8E7;
+}
+.datagrid-toolbar,
+.datagrid-pager {
+ background: #F4F4F4;
+}
+.datagrid-header,
+.datagrid-toolbar,
+.datagrid-pager,
+.datagrid-footer-inner {
+ border-color: #dddddd;
+}
+.datagrid-header td,
+.datagrid-body td,
+.datagrid-footer td {
+ border-color: #ccc;
+}
+.datagrid-htable,
+.datagrid-btable,
+.datagrid-ftable {
+ color: #000000;
+ border-collapse: separate;
+}
+.datagrid-row-alt {
+ background: #fafafa;
+}
+.datagrid-row-over,
+.datagrid-header td.datagrid-header-over {
+ background: #eaf2ff;
+ color: #000000;
+ cursor: default;
+}
+.datagrid-row-selected {
+ background: #ffe48d;
+ color: #000000;
+}
+.datagrid-row-editing .textbox,
+.datagrid-row-editing .textbox-text {
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.propertygrid .datagrid-view1 .datagrid-body td {
+ padding-bottom: 1px;
+ border-width: 0 1px 0 0;
+}
+.propertygrid .datagrid-group {
+ height: 21px;
+ overflow: hidden;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+}
+.propertygrid .datagrid-group span {
+ font-weight: bold;
+}
+.propertygrid .datagrid-view1 .datagrid-body td {
+ border-color: #dddddd;
+}
+.propertygrid .datagrid-view1 .datagrid-group {
+ border-color: #E0ECFF;
+}
+.propertygrid .datagrid-view2 .datagrid-group {
+ border-color: #dddddd;
+}
+.propertygrid .datagrid-group,
+.propertygrid .datagrid-view1 .datagrid-body,
+.propertygrid .datagrid-view1 .datagrid-row-over,
+.propertygrid .datagrid-view1 .datagrid-row-selected {
+ background: #E0ECFF;
+}
+.datalist .datagrid-header {
+ border-width: 0;
+}
+.datalist .datagrid-group,
+.m-list .m-list-group {
+ height: 25px;
+ line-height: 25px;
+ font-weight: bold;
+ overflow: hidden;
+ background-color: #efefef;
+ border-style: solid;
+ border-width: 0 0 1px 0;
+ border-color: #ccc;
+}
+.datalist .datagrid-group-expander {
+ display: none;
+}
+.datalist .datagrid-group-title {
+ padding: 0 4px;
+}
+.datalist .datagrid-btable {
+ width: 100%;
+ table-layout: fixed;
+}
+.datalist .datagrid-row td {
+ border-style: solid;
+ border-left-color: transparent;
+ border-right-color: transparent;
+ border-bottom-width: 0;
+}
+.datalist-lines .datagrid-row td {
+ border-bottom-width: 1px;
+}
+.datalist .datagrid-cell,
+.m-list li {
+ width: auto;
+ height: auto;
+ padding: 2px 4px;
+ line-height: 18px;
+ position: relative;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+}
+.datalist-link,
+.m-list li>a {
+ display: block;
+ position: relative;
+ cursor: pointer;
+ color: #000000;
+ text-decoration: none;
+ overflow: hidden;
+ margin: -2px -4px;
+ padding: 2px 4px;
+ padding-right: 16px;
+ line-height: 18px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+}
+.datalist-link::after,
+.m-list li>a::after {
+ position: absolute;
+ display: block;
+ width: 8px;
+ height: 8px;
+ content: '';
+ right: 6px;
+ top: 50%;
+ margin-top: -4px;
+ border-style: solid;
+ border-width: 1px 1px 0 0;
+ -ms-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -webkit-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+.m-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+.m-list li {
+ border-style: solid;
+ border-width: 0 0 1px 0;
+ border-color: #ccc;
+}
+.m-list li>a:hover {
+ background: #eaf2ff;
+ color: #000000;
+}
+.m-list .m-list-group {
+ padding: 0 4px;
+}
+.pagination {
+ zoom: 1;
+}
+.pagination table {
+ float: left;
+ height: 30px;
+}
+.pagination td {
+ border: 0;
+}
+.pagination-btn-separator {
+ float: left;
+ height: 24px;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+ margin: 3px 1px;
+}
+.pagination .pagination-num {
+ border-width: 1px;
+ border-style: solid;
+ margin: 0 2px;
+ padding: 2px;
+ width: 2em;
+ height: auto;
+}
+.pagination-page-list {
+ margin: 0px 6px;
+ padding: 1px 2px;
+ width: auto;
+ height: auto;
+ border-width: 1px;
+ border-style: solid;
+}
+.pagination-info {
+ float: right;
+ margin: 0 6px 0 0;
+ padding: 0;
+ height: 30px;
+ line-height: 30px;
+ font-size: 12px;
+}
+.pagination span {
+ font-size: 12px;
+}
+.pagination-link .l-btn-text {
+ width: 24px;
+ text-align: center;
+ margin: 0;
+}
+.pagination-first {
+ background: url('images/pagination_icons.png') no-repeat 0 center;
+}
+.pagination-prev {
+ background: url('images/pagination_icons.png') no-repeat -16px center;
+}
+.pagination-next {
+ background: url('images/pagination_icons.png') no-repeat -32px center;
+}
+.pagination-last {
+ background: url('images/pagination_icons.png') no-repeat -48px center;
+}
+.pagination-load {
+ background: url('images/pagination_icons.png') no-repeat -64px center;
+}
+.pagination-loading {
+ background: url('images/loading.gif') no-repeat center center;
+}
+.pagination-page-list,
+.pagination .pagination-num {
+ border-color: #95B8E7;
+}
+.calendar {
+ border-width: 1px;
+ border-style: solid;
+ padding: 1px;
+ overflow: hidden;
+}
+.calendar table {
+ table-layout: fixed;
+ border-collapse: separate;
+ font-size: 12px;
+ width: 100%;
+ height: 100%;
+}
+.calendar table td,
+.calendar table th {
+ font-size: 12px;
+}
+.calendar-noborder {
+ border: 0;
+}
+.calendar-header {
+ position: relative;
+ height: 22px;
+}
+.calendar-title {
+ text-align: center;
+ height: 22px;
+}
+.calendar-title span {
+ position: relative;
+ display: inline-block;
+ top: 2px;
+ padding: 0 3px;
+ height: 18px;
+ line-height: 18px;
+ font-size: 12px;
+ cursor: pointer;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-prevmonth,
+.calendar-nextmonth,
+.calendar-prevyear,
+.calendar-nextyear {
+ position: absolute;
+ top: 50%;
+ margin-top: -7px;
+ width: 14px;
+ height: 14px;
+ cursor: pointer;
+ font-size: 1px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-prevmonth {
+ left: 20px;
+ background: url('images/calendar_arrows.png') no-repeat -18px -2px;
+}
+.calendar-nextmonth {
+ right: 20px;
+ background: url('images/calendar_arrows.png') no-repeat -34px -2px;
+}
+.calendar-prevyear {
+ left: 3px;
+ background: url('images/calendar_arrows.png') no-repeat -1px -2px;
+}
+.calendar-nextyear {
+ right: 3px;
+ background: url('images/calendar_arrows.png') no-repeat -49px -2px;
+}
+.calendar-body {
+ position: relative;
+}
+.calendar-body th,
+.calendar-body td {
+ text-align: center;
+}
+.calendar-day {
+ border: 0;
+ padding: 1px;
+ cursor: pointer;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-other-month {
+ opacity: 0.3;
+ filter: alpha(opacity=30);
+}
+.calendar-disabled {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ cursor: default;
+}
+.calendar-menu {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 180px;
+ height: 150px;
+ padding: 5px;
+ font-size: 12px;
+ display: none;
+ overflow: hidden;
+}
+.calendar-menu-year-inner {
+ text-align: center;
+ padding-bottom: 5px;
+}
+.calendar-menu-year {
+ width: 40px;
+ text-align: center;
+ border-width: 1px;
+ border-style: solid;
+ margin: 0;
+ padding: 2px;
+ font-weight: bold;
+ font-size: 12px;
+}
+.calendar-menu-prev,
+.calendar-menu-next {
+ display: inline-block;
+ width: 21px;
+ height: 21px;
+ vertical-align: top;
+ cursor: pointer;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-menu-prev {
+ margin-right: 10px;
+ background: url('images/calendar_arrows.png') no-repeat 2px 2px;
+}
+.calendar-menu-next {
+ margin-left: 10px;
+ background: url('images/calendar_arrows.png') no-repeat -45px 2px;
+}
+.calendar-menu-month {
+ text-align: center;
+ cursor: pointer;
+ font-weight: bold;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-body th,
+.calendar-menu-month {
+ color: #4d4d4d;
+}
+.calendar-day {
+ color: #000000;
+}
+.calendar-sunday {
+ color: #CC2222;
+}
+.calendar-saturday {
+ color: #00ee00;
+}
+.calendar-today {
+ color: #0000ff;
+}
+.calendar-menu-year {
+ border-color: #95B8E7;
+}
+.calendar {
+ border-color: #95B8E7;
+}
+.calendar-header {
+ background: #E0ECFF;
+}
+.calendar-body,
+.calendar-menu {
+ background: #ffffff;
+}
+.calendar-body th {
+ background: #F4F4F4;
+ padding: 2px 0;
+}
+.calendar-hover,
+.calendar-nav-hover,
+.calendar-menu-hover {
+ background-color: #eaf2ff;
+ color: #000000;
+}
+.calendar-hover {
+ border: 1px solid #b7d2ff;
+ padding: 0;
+}
+.calendar-selected {
+ background-color: #ffe48d;
+ color: #000000;
+ border: 1px solid #ffab3f;
+ padding: 0;
+}
+.datebox-calendar-inner {
+ height: 180px;
+}
+.datebox-button {
+ height: 18px;
+ padding: 2px 5px;
+ text-align: center;
+}
+.datebox-button a {
+ font-size: 12px;
+ font-weight: bold;
+ text-decoration: none;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.datebox-button a:hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.datebox-current,
+.datebox-close {
+ float: left;
+}
+.datebox-close {
+ float: right;
+}
+.datebox .combo-arrow {
+ background-image: url('images/datebox_arrow.png');
+ background-position: center center;
+}
+.datebox-button {
+ background-color: #F4F4F4;
+}
+.datebox-button a {
+ color: #444;
+}
+.numberbox {
+ border: 1px solid #95B8E7;
+ margin: 0;
+ padding: 0 2px;
+ vertical-align: middle;
+}
+.textbox {
+ padding: 0;
+}
+.spinner {
+ display: inline-block;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.spinner .spinner-text {
+ font-size: 12px;
+ border: 0px;
+ margin: 0;
+ padding: 0 2px;
+ vertical-align: baseline;
+}
+.spinner-arrow {
+ background-color: #E0ECFF;
+ display: inline-block;
+ overflow: hidden;
+ vertical-align: top;
+ margin: 0;
+ padding: 0;
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+ width: 18px;
+}
+.spinner-arrow-up,
+.spinner-arrow-down {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ display: block;
+ font-size: 1px;
+ width: 18px;
+ height: 10px;
+ width: 100%;
+ height: 50%;
+ color: #444;
+ outline-style: none;
+}
+.spinner-arrow-hover {
+ background-color: #eaf2ff;
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.spinner-arrow-up:hover,
+.spinner-arrow-down:hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+ background-color: #eaf2ff;
+}
+.textbox-icon-disabled .spinner-arrow-up:hover,
+.textbox-icon-disabled .spinner-arrow-down:hover {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ background-color: #E0ECFF;
+ cursor: default;
+}
+.spinner .textbox-icon-disabled {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.spinner-arrow-up {
+ background: url('images/spinner_arrows.png') no-repeat 1px center;
+}
+.spinner-arrow-down {
+ background: url('images/spinner_arrows.png') no-repeat -15px center;
+}
+.spinner {
+ border-color: #95B8E7;
+}
+.progressbar {
+ border-width: 1px;
+ border-style: solid;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+ overflow: hidden;
+ position: relative;
+}
+.progressbar-text {
+ text-align: center;
+ position: absolute;
+}
+.progressbar-value {
+ position: relative;
+ overflow: hidden;
+ width: 0;
+ -moz-border-radius: 5px 0 0 5px;
+ -webkit-border-radius: 5px 0 0 5px;
+ border-radius: 5px 0 0 5px;
+}
+.progressbar {
+ border-color: #95B8E7;
+}
+.progressbar-text {
+ color: #000000;
+ font-size: 12px;
+}
+.progressbar-value .progressbar-text {
+ background-color: #ffe48d;
+ color: #000000;
+}
+.searchbox {
+ display: inline-block;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.searchbox .searchbox-text {
+ font-size: 12px;
+ border: 0;
+ margin: 0;
+ padding: 0 2px;
+ vertical-align: top;
+}
+.searchbox .searchbox-prompt {
+ font-size: 12px;
+ color: #ccc;
+}
+.searchbox-button {
+ width: 18px;
+ height: 20px;
+ overflow: hidden;
+ display: inline-block;
+ vertical-align: top;
+ cursor: pointer;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.searchbox-button-hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.searchbox .l-btn-plain {
+ border: 0;
+ padding: 0;
+ vertical-align: top;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox .l-btn-plain:hover {
+ border: 0;
+ padding: 0;
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox a.m-btn-plain-active {
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox .m-btn-active {
+ border-width: 0 1px 0 0;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox .textbox-button-right {
+ border-width: 0 0 0 1px;
+}
+.searchbox .textbox-button-left {
+ border-width: 0 1px 0 0;
+}
+.searchbox-button {
+ background: url('images/searchbox_button.png') no-repeat center center;
+}
+.searchbox {
+ border-color: #95B8E7;
+ background-color: #fff;
+}
+.searchbox .l-btn-plain {
+ background: #E0ECFF;
+}
+.searchbox .l-btn-plain-disabled,
+.searchbox .l-btn-plain-disabled:hover {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.textbox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+}
+.slider-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.slider-h {
+ height: 22px;
+}
+.slider-v {
+ width: 22px;
+}
+.slider-inner {
+ position: relative;
+ height: 6px;
+ top: 7px;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 5px;
+}
+.slider-handle {
+ position: absolute;
+ display: block;
+ outline: none;
+ width: 20px;
+ height: 20px;
+ top: 50%;
+ margin-top: -10px;
+ margin-left: -10px;
+}
+.slider-tip {
+ position: absolute;
+ display: inline-block;
+ line-height: 12px;
+ font-size: 12px;
+ white-space: nowrap;
+ top: -22px;
+}
+.slider-rule {
+ position: relative;
+ top: 15px;
+}
+.slider-rule span {
+ position: absolute;
+ display: inline-block;
+ font-size: 0;
+ height: 5px;
+ border-width: 0 0 0 1px;
+ border-style: solid;
+}
+.slider-rulelabel {
+ position: relative;
+ top: 20px;
+}
+.slider-rulelabel span {
+ position: absolute;
+ display: inline-block;
+ font-size: 12px;
+}
+.slider-v .slider-inner {
+ width: 6px;
+ left: 7px;
+ top: 0;
+ float: left;
+}
+.slider-v .slider-handle {
+ left: 50%;
+ margin-top: -10px;
+}
+.slider-v .slider-tip {
+ left: -10px;
+ margin-top: -6px;
+}
+.slider-v .slider-rule {
+ float: left;
+ top: 0;
+ left: 16px;
+}
+.slider-v .slider-rule span {
+ width: 5px;
+ height: 'auto';
+ border-left: 0;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+}
+.slider-v .slider-rulelabel {
+ float: left;
+ top: 0;
+ left: 23px;
+}
+.slider-handle {
+ background: url('images/slider_handle.png') no-repeat;
+}
+.slider-inner {
+ border-color: #95B8E7;
+ background: #E0ECFF;
+}
+.slider-rule span {
+ border-color: #95B8E7;
+}
+.slider-rulelabel span {
+ color: #000000;
+}
+.menu {
+ position: absolute;
+ margin: 0;
+ padding: 2px;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+}
+.menu-inline {
+ position: relative;
+}
+.menu-item {
+ position: relative;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ cursor: pointer;
+ border-width: 1px;
+ border-style: solid;
+}
+.menu-text {
+ height: 20px;
+ line-height: 20px;
+ float: left;
+ padding-left: 28px;
+}
+.menu-icon {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ left: 2px;
+ top: 50%;
+ margin-top: -8px;
+}
+.menu-rightarrow {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ right: 0;
+ top: 50%;
+ margin-top: -8px;
+}
+.menu-line {
+ position: absolute;
+ left: 26px;
+ top: 0;
+ height: 2000px;
+ font-size: 1px;
+}
+.menu-sep {
+ margin: 3px 0px 3px 25px;
+ font-size: 1px;
+}
+.menu-noline .menu-line {
+ display: none;
+}
+.menu-noline .menu-sep {
+ margin-left: 0;
+ margin-right: 0;
+}
+.menu-active {
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.menu-item-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+ cursor: default;
+}
+.menu-text,
+.menu-text span {
+ font-size: 12px;
+}
+.menu-shadow {
+ position: absolute;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+ background: #ccc;
+ -moz-box-shadow: 2px 2px 3px #cccccc;
+ -webkit-box-shadow: 2px 2px 3px #cccccc;
+ box-shadow: 2px 2px 3px #cccccc;
+ filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
+}
+.menu-rightarrow {
+ background: url('images/menu_arrows.png') no-repeat -32px center;
+}
+.menu-line {
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+}
+.menu-sep {
+ border-top: 1px solid #ccc;
+ border-bottom: 1px solid #fff;
+}
+.menu {
+ background-color: #fafafa;
+ border-color: #ddd;
+ color: #444;
+}
+.menu-content {
+ background: #ffffff;
+}
+.menu-item {
+ border-color: transparent;
+ _border-color: #fafafa;
+}
+.menu-active {
+ border-color: #b7d2ff;
+ color: #000000;
+ background: #eaf2ff;
+}
+.menu-active-disabled {
+ border-color: transparent;
+ background: transparent;
+ color: #444;
+}
+.m-btn-downarrow,
+.s-btn-downarrow {
+ display: inline-block;
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ font-size: 1px;
+ right: 0;
+ top: 50%;
+ margin-top: -8px;
+}
+.m-btn-active,
+.s-btn-active {
+ background: #eaf2ff;
+ color: #000000;
+ border: 1px solid #b7d2ff;
+ filter: none;
+}
+.m-btn-plain-active,
+.s-btn-plain-active {
+ background: transparent;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.m-btn .l-btn-left .l-btn-text {
+ margin-right: 20px;
+}
+.m-btn .l-btn-icon-right .l-btn-text {
+ margin-right: 40px;
+}
+.m-btn .l-btn-icon-right .l-btn-icon {
+ right: 20px;
+}
+.m-btn .l-btn-icon-top .l-btn-text {
+ margin-right: 4px;
+ margin-bottom: 14px;
+}
+.m-btn .l-btn-icon-bottom .l-btn-text {
+ margin-right: 4px;
+ margin-bottom: 34px;
+}
+.m-btn .l-btn-icon-bottom .l-btn-icon {
+ top: auto;
+ bottom: 20px;
+}
+.m-btn .l-btn-icon-top .m-btn-downarrow,
+.m-btn .l-btn-icon-bottom .m-btn-downarrow {
+ top: auto;
+ bottom: 0px;
+ left: 50%;
+ margin-left: -8px;
+}
+.m-btn-line {
+ display: inline-block;
+ position: absolute;
+ font-size: 1px;
+ display: none;
+}
+.m-btn .l-btn-left .m-btn-line {
+ right: 0;
+ width: 16px;
+ height: 500px;
+ border-style: solid;
+ border-color: #aac5e7;
+ border-width: 0 0 0 1px;
+}
+.m-btn .l-btn-icon-top .m-btn-line,
+.m-btn .l-btn-icon-bottom .m-btn-line {
+ left: 0;
+ bottom: 0;
+ width: 500px;
+ height: 16px;
+ border-width: 1px 0 0 0;
+}
+.m-btn-large .l-btn-icon-right .l-btn-text {
+ margin-right: 56px;
+}
+.m-btn-large .l-btn-icon-bottom .l-btn-text {
+ margin-bottom: 50px;
+}
+.m-btn-downarrow,
+.s-btn-downarrow {
+ background: url('images/menu_arrows.png') no-repeat 0 center;
+}
+.m-btn-plain-active,
+.s-btn-plain-active {
+ border-color: #b7d2ff;
+ background-color: #eaf2ff;
+ color: #000000;
+}
+.s-btn:hover .m-btn-line,
+.s-btn-active .m-btn-line,
+.s-btn-plain-active .m-btn-line {
+ display: inline-block;
+}
+.l-btn:hover .s-btn-downarrow,
+.s-btn-active .s-btn-downarrow,
+.s-btn-plain-active .s-btn-downarrow {
+ border-style: solid;
+ border-color: #aac5e7;
+ border-width: 0 0 0 1px;
+}
+.messager-body {
+ padding: 10px;
+ overflow: auto;
+}
+.messager-button {
+ text-align: center;
+ padding: 5px;
+}
+.messager-button .l-btn {
+ width: 70px;
+}
+.messager-icon {
+ float: left;
+ width: 32px;
+ height: 32px;
+ margin: 0 10px 10px 0;
+}
+.messager-error {
+ background: url('images/messager_icons.png') no-repeat scroll -64px 0;
+}
+.messager-info {
+ background: url('images/messager_icons.png') no-repeat scroll 0 0;
+}
+.messager-question {
+ background: url('images/messager_icons.png') no-repeat scroll -32px 0;
+}
+.messager-warning {
+ background: url('images/messager_icons.png') no-repeat scroll -96px 0;
+}
+.messager-progress {
+ padding: 10px;
+}
+.messager-p-msg {
+ margin-bottom: 5px;
+}
+.messager-body .messager-input {
+ width: 100%;
+ padding: 1px 0;
+ border: 1px solid #95B8E7;
+}
+.tree {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+}
+.tree li {
+ white-space: nowrap;
+}
+.tree li ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+.tree-node {
+ height: 18px;
+ white-space: nowrap;
+ cursor: pointer;
+}
+.tree-hit {
+ cursor: pointer;
+}
+.tree-expanded,
+.tree-collapsed,
+.tree-folder,
+.tree-file,
+.tree-checkbox,
+.tree-indent {
+ display: inline-block;
+ width: 16px;
+ height: 18px;
+ vertical-align: top;
+ overflow: hidden;
+}
+.tree-expanded {
+ background: url('images/tree_icons.png') no-repeat -18px 0px;
+}
+.tree-expanded-hover {
+ background: url('images/tree_icons.png') no-repeat -50px 0px;
+}
+.tree-collapsed {
+ background: url('images/tree_icons.png') no-repeat 0px 0px;
+}
+.tree-collapsed-hover {
+ background: url('images/tree_icons.png') no-repeat -32px 0px;
+}
+.tree-lines .tree-expanded,
+.tree-lines .tree-root-first .tree-expanded {
+ background: url('images/tree_icons.png') no-repeat -144px 0;
+}
+.tree-lines .tree-collapsed,
+.tree-lines .tree-root-first .tree-collapsed {
+ background: url('images/tree_icons.png') no-repeat -128px 0;
+}
+.tree-lines .tree-node-last .tree-expanded,
+.tree-lines .tree-root-one .tree-expanded {
+ background: url('images/tree_icons.png') no-repeat -80px 0;
+}
+.tree-lines .tree-node-last .tree-collapsed,
+.tree-lines .tree-root-one .tree-collapsed {
+ background: url('images/tree_icons.png') no-repeat -64px 0;
+}
+.tree-line {
+ background: url('images/tree_icons.png') no-repeat -176px 0;
+}
+.tree-join {
+ background: url('images/tree_icons.png') no-repeat -192px 0;
+}
+.tree-joinbottom {
+ background: url('images/tree_icons.png') no-repeat -160px 0;
+}
+.tree-folder {
+ background: url('images/tree_icons.png') no-repeat -208px 0;
+}
+.tree-folder-open {
+ background: url('images/tree_icons.png') no-repeat -224px 0;
+}
+.tree-file {
+ background: url('images/tree_icons.png') no-repeat -240px 0;
+}
+.tree-loading {
+ background: url('images/loading.gif') no-repeat center center;
+}
+.tree-checkbox0 {
+ background: url('images/tree_icons.png') no-repeat -208px -18px;
+}
+.tree-checkbox1 {
+ background: url('images/tree_icons.png') no-repeat -224px -18px;
+}
+.tree-checkbox2 {
+ background: url('images/tree_icons.png') no-repeat -240px -18px;
+}
+.tree-title {
+ font-size: 12px;
+ display: inline-block;
+ text-decoration: none;
+ vertical-align: top;
+ white-space: nowrap;
+ padding: 0 2px;
+ height: 18px;
+ line-height: 18px;
+}
+.tree-node-proxy {
+ font-size: 12px;
+ line-height: 20px;
+ padding: 0 2px 0 20px;
+ border-width: 1px;
+ border-style: solid;
+ z-index: 9900000;
+}
+.tree-dnd-icon {
+ display: inline-block;
+ position: absolute;
+ width: 16px;
+ height: 18px;
+ left: 2px;
+ top: 50%;
+ margin-top: -9px;
+}
+.tree-dnd-yes {
+ background: url('images/tree_icons.png') no-repeat -256px 0;
+}
+.tree-dnd-no {
+ background: url('images/tree_icons.png') no-repeat -256px -18px;
+}
+.tree-node-top {
+ border-top: 1px dotted red;
+}
+.tree-node-bottom {
+ border-bottom: 1px dotted red;
+}
+.tree-node-append .tree-title {
+ border: 1px dotted red;
+}
+.tree-editor {
+ border: 1px solid #ccc;
+ font-size: 12px;
+ height: 14px !important;
+ height: 18px;
+ line-height: 14px;
+ padding: 1px 2px;
+ width: 80px;
+ position: absolute;
+ top: 0;
+}
+.tree-node-proxy {
+ background-color: #ffffff;
+ color: #000000;
+ border-color: #95B8E7;
+}
+.tree-node-hover {
+ background: #eaf2ff;
+ color: #000000;
+}
+.tree-node-selected {
+ background: #ffe48d;
+ color: #000000;
+}
+.tree-node-hidden {
+ display: none;
+}
+.validatebox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+ color: #000;
+}
+.tooltip {
+ position: absolute;
+ display: none;
+ z-index: 9900000;
+ outline: none;
+ opacity: 1;
+ filter: alpha(opacity=100);
+ padding: 5px;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 5px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.tooltip-content {
+ font-size: 12px;
+}
+.tooltip-arrow-outer,
+.tooltip-arrow {
+ position: absolute;
+ width: 0;
+ height: 0;
+ line-height: 0;
+ font-size: 0;
+ border-style: solid;
+ border-width: 6px;
+ border-color: transparent;
+ _border-color: tomato;
+ _filter: chroma(color=tomato);
+}
+.tooltip-arrow {
+ display: none \9;
+}
+.tooltip-right .tooltip-arrow-outer {
+ left: 0;
+ top: 50%;
+ margin: -6px 0 0 -13px;
+}
+.tooltip-right .tooltip-arrow {
+ left: 0;
+ top: 50%;
+ margin: -6px 0 0 -12px;
+}
+.tooltip-left .tooltip-arrow-outer {
+ right: 0;
+ top: 50%;
+ margin: -6px -13px 0 0;
+}
+.tooltip-left .tooltip-arrow {
+ right: 0;
+ top: 50%;
+ margin: -6px -12px 0 0;
+}
+.tooltip-top .tooltip-arrow-outer {
+ bottom: 0;
+ left: 50%;
+ margin: 0 0 -13px -6px;
+}
+.tooltip-top .tooltip-arrow {
+ bottom: 0;
+ left: 50%;
+ margin: 0 0 -12px -6px;
+}
+.tooltip-bottom .tooltip-arrow-outer {
+ top: 0;
+ left: 50%;
+ margin: -13px 0 0 -6px;
+}
+.tooltip-bottom .tooltip-arrow {
+ top: 0;
+ left: 50%;
+ margin: -12px 0 0 -6px;
+}
+.tooltip {
+ background-color: #ffffff;
+ border-color: #95B8E7;
+ color: #000000;
+}
+.tooltip-right .tooltip-arrow-outer {
+ border-right-color: #95B8E7;
+}
+.tooltip-right .tooltip-arrow {
+ border-right-color: #ffffff;
+}
+.tooltip-left .tooltip-arrow-outer {
+ border-left-color: #95B8E7;
+}
+.tooltip-left .tooltip-arrow {
+ border-left-color: #ffffff;
+}
+.tooltip-top .tooltip-arrow-outer {
+ border-top-color: #95B8E7;
+}
+.tooltip-top .tooltip-arrow {
+ border-top-color: #ffffff;
+}
+.tooltip-bottom .tooltip-arrow-outer {
+ border-bottom-color: #95B8E7;
+}
+.tooltip-bottom .tooltip-arrow {
+ border-bottom-color: #ffffff;
+}
+.switchbutton {
+ text-decoration: none;
+ display: inline-block;
+ overflow: hidden;
+ vertical-align: middle;
+ margin: 0;
+ padding: 0;
+ cursor: pointer;
+ background: #bbb;
+ border: 1px solid #bbb;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.switchbutton-inner {
+ display: inline-block;
+ overflow: hidden;
+ position: relative;
+ top: -1px;
+ left: -1px;
+}
+.switchbutton-on,
+.switchbutton-off,
+.switchbutton-handle {
+ display: inline-block;
+ text-align: center;
+ height: 100%;
+ float: left;
+ font-size: 12px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.switchbutton-on {
+ background: #ffe48d;
+ color: #000000;
+}
+.switchbutton-off {
+ background-color: #ffffff;
+ color: #000000;
+}
+.switchbutton-on,
+.switchbutton-reversed .switchbutton-off {
+ -moz-border-radius: 5px 0 0 5px;
+ -webkit-border-radius: 5px 0 0 5px;
+ border-radius: 5px 0 0 5px;
+}
+.switchbutton-off,
+.switchbutton-reversed .switchbutton-on {
+ -moz-border-radius: 0 5px 5px 0;
+ -webkit-border-radius: 0 5px 5px 0;
+ border-radius: 0 5px 5px 0;
+}
+.switchbutton-handle {
+ position: absolute;
+ top: 0;
+ left: 50%;
+ background-color: #ffffff;
+ color: #000000;
+ border: 1px solid #bbb;
+ -moz-box-shadow: 0 0 3px 0 #bbb;
+ -webkit-box-shadow: 0 0 3px 0 #bbb;
+ box-shadow: 0 0 3px 0 #bbb;
+}
+.switchbutton-value {
+ position: absolute;
+ top: 0;
+ left: -5000px;
+}
+.switchbutton-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.switchbutton-disabled,
+.switchbutton-readonly {
+ cursor: default;
+}
diff --git a/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js
new file mode 100644
index 0000000..e1779c3
--- /dev/null
+++ b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js
@@ -0,0 +1,16617 @@
+/*! jQuery UI - v1.11.4 - 2016-01-10
+* http://jqueryui.com
+* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([ "jquery" ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery );
+ }
+}(function( $ ) {
+/*!
+ * jQuery UI Core 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/ui-core/
+ */
+
+
+// $.ui might exist from components with no dependencies, e.g., $.ui.position
+$.ui = $.ui || {};
+
+$.extend( $.ui, {
+ version: "1.11.4",
+
+ keyCode: {
+ BACKSPACE: 8,
+ COMMA: 188,
+ DELETE: 46,
+ DOWN: 40,
+ END: 35,
+ ENTER: 13,
+ ESCAPE: 27,
+ HOME: 36,
+ LEFT: 37,
+ PAGE_DOWN: 34,
+ PAGE_UP: 33,
+ PERIOD: 190,
+ RIGHT: 39,
+ SPACE: 32,
+ TAB: 9,
+ UP: 38
+ }
+});
+
+// plugins
+$.fn.extend({
+ scrollParent: function( includeHidden ) {
+ var position = this.css( "position" ),
+ excludeStaticParent = position === "absolute",
+ overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
+ scrollParent = this.parents().filter( function() {
+ var parent = $( this );
+ if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
+ return false;
+ }
+ return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
+ }).eq( 0 );
+
+ return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
+ },
+
+ uniqueId: (function() {
+ var uuid = 0;
+
+ return function() {
+ return this.each(function() {
+ if ( !this.id ) {
+ this.id = "ui-id-" + ( ++uuid );
+ }
+ });
+ };
+ })(),
+
+ removeUniqueId: function() {
+ return this.each(function() {
+ if ( /^ui-id-\d+$/.test( this.id ) ) {
+ $( this ).removeAttr( "id" );
+ }
+ });
+ }
+});
+
+// selectors
+function focusable( element, isTabIndexNotNaN ) {
+ var map, mapName, img,
+ nodeName = element.nodeName.toLowerCase();
+ if ( "area" === nodeName ) {
+ map = element.parentNode;
+ mapName = map.name;
+ if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
+ return false;
+ }
+ img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
+ return !!img && visible( img );
+ }
+ return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
+ !element.disabled :
+ "a" === nodeName ?
+ element.href || isTabIndexNotNaN :
+ isTabIndexNotNaN) &&
+ // the element and all of its ancestors must be visible
+ visible( element );
+}
+
+function visible( element ) {
+ return $.expr.filters.visible( element ) &&
+ !$( element ).parents().addBack().filter(function() {
+ return $.css( this, "visibility" ) === "hidden";
+ }).length;
+}
+
+$.extend( $.expr[ ":" ], {
+ data: $.expr.createPseudo ?
+ $.expr.createPseudo(function( dataName ) {
+ return function( elem ) {
+ return !!$.data( elem, dataName );
+ };
+ }) :
+ // support: jQuery <1.8
+ function( elem, i, match ) {
+ return !!$.data( elem, match[ 3 ] );
+ },
+
+ focusable: function( element ) {
+ return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
+ },
+
+ tabbable: function( element ) {
+ var tabIndex = $.attr( element, "tabindex" ),
+ isTabIndexNaN = isNaN( tabIndex );
+ return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
+ }
+});
+
+// support: jQuery <1.8
+if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
+ $.each( [ "Width", "Height" ], function( i, name ) {
+ var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
+ type = name.toLowerCase(),
+ orig = {
+ innerWidth: $.fn.innerWidth,
+ innerHeight: $.fn.innerHeight,
+ outerWidth: $.fn.outerWidth,
+ outerHeight: $.fn.outerHeight
+ };
+
+ function reduce( elem, size, border, margin ) {
+ $.each( side, function() {
+ size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
+ if ( border ) {
+ size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
+ }
+ if ( margin ) {
+ size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
+ }
+ });
+ return size;
+ }
+
+ $.fn[ "inner" + name ] = function( size ) {
+ if ( size === undefined ) {
+ return orig[ "inner" + name ].call( this );
+ }
+
+ return this.each(function() {
+ $( this ).css( type, reduce( this, size ) + "px" );
+ });
+ };
+
+ $.fn[ "outer" + name] = function( size, margin ) {
+ if ( typeof size !== "number" ) {
+ return orig[ "outer" + name ].call( this, size );
+ }
+
+ return this.each(function() {
+ $( this).css( type, reduce( this, size, true, margin ) + "px" );
+ });
+ };
+ });
+}
+
+// support: jQuery <1.8
+if ( !$.fn.addBack ) {
+ $.fn.addBack = function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter( selector )
+ );
+ };
+}
+
+// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
+if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
+ $.fn.removeData = (function( removeData ) {
+ return function( key ) {
+ if ( arguments.length ) {
+ return removeData.call( this, $.camelCase( key ) );
+ } else {
+ return removeData.call( this );
+ }
+ };
+ })( $.fn.removeData );
+}
+
+// deprecated
+$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
+
+$.fn.extend({
+ focus: (function( orig ) {
+ return function( delay, fn ) {
+ return typeof delay === "number" ?
+ this.each(function() {
+ var elem = this;
+ setTimeout(function() {
+ $( elem ).focus();
+ if ( fn ) {
+ fn.call( elem );
+ }
+ }, delay );
+ }) :
+ orig.apply( this, arguments );
+ };
+ })( $.fn.focus ),
+
+ disableSelection: (function() {
+ var eventType = "onselectstart" in document.createElement( "div" ) ?
+ "selectstart" :
+ "mousedown";
+
+ return function() {
+ return this.bind( eventType + ".ui-disableSelection", function( event ) {
+ event.preventDefault();
+ });
+ };
+ })(),
+
+ enableSelection: function() {
+ return this.unbind( ".ui-disableSelection" );
+ },
+
+ zIndex: function( zIndex ) {
+ if ( zIndex !== undefined ) {
+ return this.css( "zIndex", zIndex );
+ }
+
+ if ( this.length ) {
+ var elem = $( this[ 0 ] ), position, value;
+ while ( elem.length && elem[ 0 ] !== document ) {
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
+ // This makes behavior of this function consistent across browsers
+ // WebKit always returns auto if the element is positioned
+ position = elem.css( "position" );
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
+ // IE returns 0 when zIndex is not specified
+ // other browsers return a string
+ // we ignore the case of nested elements with an explicit value of 0
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
+ value = parseInt( elem.css( "zIndex" ), 10 );
+ if ( !isNaN( value ) && value !== 0 ) {
+ return value;
+ }
+ }
+ elem = elem.parent();
+ }
+ }
+
+ return 0;
+ }
+});
+
+// $.ui.plugin is deprecated. Use $.widget() extensions instead.
+$.ui.plugin = {
+ add: function( module, option, set ) {
+ var i,
+ proto = $.ui[ module ].prototype;
+ for ( i in set ) {
+ proto.plugins[ i ] = proto.plugins[ i ] || [];
+ proto.plugins[ i ].push( [ option, set[ i ] ] );
+ }
+ },
+ call: function( instance, name, args, allowDisconnected ) {
+ var i,
+ set = instance.plugins[ name ];
+
+ if ( !set ) {
+ return;
+ }
+
+ if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
+ return;
+ }
+
+ for ( i = 0; i < set.length; i++ ) {
+ if ( instance.options[ set[ i ][ 0 ] ] ) {
+ set[ i ][ 1 ].apply( instance.element, args );
+ }
+ }
+ }
+};
+
+
+/*!
+ * jQuery UI Widget 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/jQuery.widget/
+ */
+
+
+var widget_uuid = 0,
+ widget_slice = Array.prototype.slice;
+
+$.cleanData = (function( orig ) {
+ return function( elems ) {
+ var events, elem, i;
+ for ( i = 0; (elem = elems[i]) != null; i++ ) {
+ try {
+
+ // Only trigger remove when necessary to save time
+ events = $._data( elem, "events" );
+ if ( events && events.remove ) {
+ $( elem ).triggerHandler( "remove" );
+ }
+
+ // http://bugs.jquery.com/ticket/8235
+ } catch ( e ) {}
+ }
+ orig( elems );
+ };
+})( $.cleanData );
+
+$.widget = function( name, base, prototype ) {
+ var fullName, existingConstructor, constructor, basePrototype,
+ // proxiedPrototype allows the provided prototype to remain unmodified
+ // so that it can be used as a mixin for multiple widgets (#8876)
+ proxiedPrototype = {},
+ namespace = name.split( "." )[ 0 ];
+
+ name = name.split( "." )[ 1 ];
+ fullName = namespace + "-" + name;
+
+ if ( !prototype ) {
+ prototype = base;
+ base = $.Widget;
+ }
+
+ // create selector for plugin
+ $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
+ return !!$.data( elem, fullName );
+ };
+
+ $[ namespace ] = $[ namespace ] || {};
+ existingConstructor = $[ namespace ][ name ];
+ constructor = $[ namespace ][ name ] = function( options, element ) {
+ // allow instantiation without "new" keyword
+ if ( !this._createWidget ) {
+ return new constructor( options, element );
+ }
+
+ // allow instantiation without initializing for simple inheritance
+ // must use "new" keyword (the code above always passes args)
+ if ( arguments.length ) {
+ this._createWidget( options, element );
+ }
+ };
+ // extend with the existing constructor to carry over any static properties
+ $.extend( constructor, existingConstructor, {
+ version: prototype.version,
+ // copy the object used to create the prototype in case we need to
+ // redefine the widget later
+ _proto: $.extend( {}, prototype ),
+ // track widgets that inherit from this widget in case this widget is
+ // redefined after a widget inherits from it
+ _childConstructors: []
+ });
+
+ basePrototype = new base();
+ // we need to make the options hash a property directly on the new instance
+ // otherwise we'll modify the options hash on the prototype that we're
+ // inheriting from
+ basePrototype.options = $.widget.extend( {}, basePrototype.options );
+ $.each( prototype, function( prop, value ) {
+ if ( !$.isFunction( value ) ) {
+ proxiedPrototype[ prop ] = value;
+ return;
+ }
+ proxiedPrototype[ prop ] = (function() {
+ var _super = function() {
+ return base.prototype[ prop ].apply( this, arguments );
+ },
+ _superApply = function( args ) {
+ return base.prototype[ prop ].apply( this, args );
+ };
+ return function() {
+ var __super = this._super,
+ __superApply = this._superApply,
+ returnValue;
+
+ this._super = _super;
+ this._superApply = _superApply;
+
+ returnValue = value.apply( this, arguments );
+
+ this._super = __super;
+ this._superApply = __superApply;
+
+ return returnValue;
+ };
+ })();
+ });
+ constructor.prototype = $.widget.extend( basePrototype, {
+ // TODO: remove support for widgetEventPrefix
+ // always use the name + a colon as the prefix, e.g., draggable:start
+ // don't prefix for widgets that aren't DOM-based
+ widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
+ }, proxiedPrototype, {
+ constructor: constructor,
+ namespace: namespace,
+ widgetName: name,
+ widgetFullName: fullName
+ });
+
+ // If this widget is being redefined then we need to find all widgets that
+ // are inheriting from it and redefine all of them so that they inherit from
+ // the new version of this widget. We're essentially trying to replace one
+ // level in the prototype chain.
+ if ( existingConstructor ) {
+ $.each( existingConstructor._childConstructors, function( i, child ) {
+ var childPrototype = child.prototype;
+
+ // redefine the child widget using the same prototype that was
+ // originally used, but inherit from the new version of the base
+ $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
+ });
+ // remove the list of existing child constructors from the old constructor
+ // so the old child constructors can be garbage collected
+ delete existingConstructor._childConstructors;
+ } else {
+ base._childConstructors.push( constructor );
+ }
+
+ $.widget.bridge( name, constructor );
+
+ return constructor;
+};
+
+$.widget.extend = function( target ) {
+ var input = widget_slice.call( arguments, 1 ),
+ inputIndex = 0,
+ inputLength = input.length,
+ key,
+ value;
+ for ( ; inputIndex < inputLength; inputIndex++ ) {
+ for ( key in input[ inputIndex ] ) {
+ value = input[ inputIndex ][ key ];
+ if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
+ // Clone objects
+ if ( $.isPlainObject( value ) ) {
+ target[ key ] = $.isPlainObject( target[ key ] ) ?
+ $.widget.extend( {}, target[ key ], value ) :
+ // Don't extend strings, arrays, etc. with objects
+ $.widget.extend( {}, value );
+ // Copy everything else by reference
+ } else {
+ target[ key ] = value;
+ }
+ }
+ }
+ }
+ return target;
+};
+
+$.widget.bridge = function( name, object ) {
+ var fullName = object.prototype.widgetFullName || name;
+ $.fn[ name ] = function( options ) {
+ var isMethodCall = typeof options === "string",
+ args = widget_slice.call( arguments, 1 ),
+ returnValue = this;
+
+ if ( isMethodCall ) {
+ this.each(function() {
+ var methodValue,
+ instance = $.data( this, fullName );
+ if ( options === "instance" ) {
+ returnValue = instance;
+ return false;
+ }
+ if ( !instance ) {
+ return $.error( "cannot call methods on " + name + " prior to initialization; " +
+ "attempted to call method '" + options + "'" );
+ }
+ if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
+ return $.error( "no such method '" + options + "' for " + name + " widget instance" );
+ }
+ methodValue = instance[ options ].apply( instance, args );
+ if ( methodValue !== instance && methodValue !== undefined ) {
+ returnValue = methodValue && methodValue.jquery ?
+ returnValue.pushStack( methodValue.get() ) :
+ methodValue;
+ return false;
+ }
+ });
+ } else {
+
+ // Allow multiple hashes to be passed on init
+ if ( args.length ) {
+ options = $.widget.extend.apply( null, [ options ].concat(args) );
+ }
+
+ this.each(function() {
+ var instance = $.data( this, fullName );
+ if ( instance ) {
+ instance.option( options || {} );
+ if ( instance._init ) {
+ instance._init();
+ }
+ } else {
+ $.data( this, fullName, new object( options, this ) );
+ }
+ });
+ }
+
+ return returnValue;
+ };
+};
+
+$.Widget = function( /* options, element */ ) {};
+$.Widget._childConstructors = [];
+
+$.Widget.prototype = {
+ widgetName: "widget",
+ widgetEventPrefix: "",
+ defaultElement: "<div>",
+ options: {
+ disabled: false,
+
+ // callbacks
+ create: null
+ },
+ _createWidget: function( options, element ) {
+ element = $( element || this.defaultElement || this )[ 0 ];
+ this.element = $( element );
+ this.uuid = widget_uuid++;
+ this.eventNamespace = "." + this.widgetName + this.uuid;
+
+ this.bindings = $();
+ this.hoverable = $();
+ this.focusable = $();
+
+ if ( element !== this ) {
+ $.data( element, this.widgetFullName, this );
+ this._on( true, this.element, {
+ remove: function( event ) {
+ if ( event.target === element ) {
+ this.destroy();
+ }
+ }
+ });
+ this.document = $( element.style ?
+ // element within the document
+ element.ownerDocument :
+ // element is window or document
+ element.document || element );
+ this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
+ }
+
+ this.options = $.widget.extend( {},
+ this.options,
+ this._getCreateOptions(),
+ options );
+
+ this._create();
+ this._trigger( "create", null, this._getCreateEventData() );
+ this._init();
+ },
+ _getCreateOptions: $.noop,
+ _getCreateEventData: $.noop,
+ _create: $.noop,
+ _init: $.noop,
+
+ destroy: function() {
+ this._destroy();
+ // we can probably remove the unbind calls in 2.0
+ // all event bindings should go through this._on()
+ this.element
+ .unbind( this.eventNamespace )
+ .removeData( this.widgetFullName )
+ // support: jquery <1.6.3
+ // http://bugs.jquery.com/ticket/9413
+ .removeData( $.camelCase( this.widgetFullName ) );
+ this.widget()
+ .unbind( this.eventNamespace )
+ .removeAttr( "aria-disabled" )
+ .removeClass(
+ this.widgetFullName + "-disabled " +
+ "ui-state-disabled" );
+
+ // clean up events and states
+ this.bindings.unbind( this.eventNamespace );
+ this.hoverable.removeClass( "ui-state-hover" );
+ this.focusable.removeClass( "ui-state-focus" );
+ },
+ _destroy: $.noop,
+
+ widget: function() {
+ return this.element;
+ },
+
+ option: function( key, value ) {
+ var options = key,
+ parts,
+ curOption,
+ i;
+
+ if ( arguments.length === 0 ) {
+ // don't return a reference to the internal hash
+ return $.widget.extend( {}, this.options );
+ }
+
+ if ( typeof key === "string" ) {
+ // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
+ options = {};
+ parts = key.split( "." );
+ key = parts.shift();
+ if ( parts.length ) {
+ curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
+ for ( i = 0; i < parts.length - 1; i++ ) {
+ curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
+ curOption = curOption[ parts[ i ] ];
+ }
+ key = parts.pop();
+ if ( arguments.length === 1 ) {
+ return curOption[ key ] === undefined ? null : curOption[ key ];
+ }
+ curOption[ key ] = value;
+ } else {
+ if ( arguments.length === 1 ) {
+ return this.options[ key ] === undefined ? null : this.options[ key ];
+ }
+ options[ key ] = value;
+ }
+ }
+
+ this._setOptions( options );
+
+ return this;
+ },
+ _setOptions: function( options ) {
+ var key;
+
+ for ( key in options ) {
+ this._setOption( key, options[ key ] );
+ }
+
+ return this;
+ },
+ _setOption: function( key, value ) {
+ this.options[ key ] = value;
+
+ if ( key === "disabled" ) {
+ this.widget()
+ .toggleClass( this.widgetFullName + "-disabled", !!value );
+
+ // If the widget is becoming disabled, then nothing is interactive
+ if ( value ) {
+ this.hoverable.removeClass( "ui-state-hover" );
+ this.focusable.removeClass( "ui-state-focus" );
+ }
+ }
+
+ return this;
+ },
+
+ enable: function() {
+ return this._setOptions({ disabled: false });
+ },
+ disable: function() {
+ return this._setOptions({ disabled: true });
+ },
+
+ _on: function( suppressDisabledCheck, element, handlers ) {
+ var delegateElement,
+ instance = this;
+
+ // no suppressDisabledCheck flag, shuffle arguments
+ if ( typeof suppressDisabledCheck !== "boolean" ) {
+ handlers = element;
+ element = suppressDisabledCheck;
+ suppressDisabledCheck = false;
+ }
+
+ // no element argument, shuffle and use this.element
+ if ( !handlers ) {
+ handlers = element;
+ element = this.element;
+ delegateElement = this.widget();
+ } else {
+ element = delegateElement = $( element );
+ this.bindings = this.bindings.add( element );
+ }
+
+ $.each( handlers, function( event, handler ) {
+ function handlerProxy() {
+ // allow widgets to customize the disabled handling
+ // - disabled as an array instead of boolean
+ // - disabled class as method for disabling individual parts
+ if ( !suppressDisabledCheck &&
+ ( instance.options.disabled === true ||
+ $( this ).hasClass( "ui-state-disabled" ) ) ) {
+ return;
+ }
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
+ .apply( instance, arguments );
+ }
+
+ // copy the guid so direct unbinding works
+ if ( typeof handler !== "string" ) {
+ handlerProxy.guid = handler.guid =
+ handler.guid || handlerProxy.guid || $.guid++;
+ }
+
+ var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
+ eventName = match[1] + instance.eventNamespace,
+ selector = match[2];
+ if ( selector ) {
+ delegateElement.delegate( selector, eventName, handlerProxy );
+ } else {
+ element.bind( eventName, handlerProxy );
+ }
+ });
+ },
+
+ _off: function( element, eventName ) {
+ eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) +
+ this.eventNamespace;
+ element.unbind( eventName ).undelegate( eventName );
+
+ // Clear the stack to avoid memory leaks (#10056)
+ this.bindings = $( this.bindings.not( element ).get() );
+ this.focusable = $( this.focusable.not( element ).get() );
+ this.hoverable = $( this.hoverable.not( element ).get() );
+ },
+
+ _delay: function( handler, delay ) {
+ function handlerProxy() {
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
+ .apply( instance, arguments );
+ }
+ var instance = this;
+ return setTimeout( handlerProxy, delay || 0 );
+ },
+
+ _hoverable: function( element ) {
+ this.hoverable = this.hoverable.add( element );
+ this._on( element, {
+ mouseenter: function( event ) {
+ $( event.currentTarget ).addClass( "ui-state-hover" );
+ },
+ mouseleave: function( event ) {
+ $( event.currentTarget ).removeClass( "ui-state-hover" );
+ }
+ });
+ },
+
+ _focusable: function( element ) {
+ this.focusable = this.focusable.add( element );
+ this._on( element, {
+ focusin: function( event ) {
+ $( event.currentTarget ).addClass( "ui-state-focus" );
+ },
+ focusout: function( event ) {
+ $( event.currentTarget ).removeClass( "ui-state-focus" );
+ }
+ });
+ },
+
+ _trigger: function( type, event, data ) {
+ var prop, orig,
+ callback = this.options[ type ];
+
+ data = data || {};
+ event = $.Event( event );
+ event.type = ( type === this.widgetEventPrefix ?
+ type :
+ this.widgetEventPrefix + type ).toLowerCase();
+ // the original event may come from any element
+ // so we need to reset the target on the new event
+ event.target = this.element[ 0 ];
+
+ // copy original event properties over to the new event
+ orig = event.originalEvent;
+ if ( orig ) {
+ for ( prop in orig ) {
+ if ( !( prop in event ) ) {
+ event[ prop ] = orig[ prop ];
+ }
+ }
+ }
+
+ this.element.trigger( event, data );
+ return !( $.isFunction( callback ) &&
+ callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
+ event.isDefaultPrevented() );
+ }
+};
+
+$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
+ $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
+ if ( typeof options === "string" ) {
+ options = { effect: options };
+ }
+ var hasOptions,
+ effectName = !options ?
+ method :
+ options === true || typeof options === "number" ?
+ defaultEffect :
+ options.effect || defaultEffect;
+ options = options || {};
+ if ( typeof options === "number" ) {
+ options = { duration: options };
+ }
+ hasOptions = !$.isEmptyObject( options );
+ options.complete = callback;
+ if ( options.delay ) {
+ element.delay( options.delay );
+ }
+ if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
+ element[ method ]( options );
+ } else if ( effectName !== method && element[ effectName ] ) {
+ element[ effectName ]( options.duration, options.easing, callback );
+ } else {
+ element.queue(function( next ) {
+ $( this )[ method ]();
+ if ( callback ) {
+ callback.call( element[ 0 ] );
+ }
+ next();
+ });
+ }
+ };
+});
+
+var widget = $.widget;
+
+
+/*!
+ * jQuery UI Mouse 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/mouse/
+ */
+
+
+var mouseHandled = false;
+$( document ).mouseup( function() {
+ mouseHandled = false;
+});
+
+var mouse = $.widget("ui.mouse", {
+ version: "1.11.4",
+ options: {
+ cancel: "input,textarea,button,select,option",
+ distance: 1,
+ delay: 0
+ },
+ _mouseInit: function() {
+ var that = this;
+
+ this.element
+ .bind("mousedown." + this.widgetName, function(event) {
+ return that._mouseDown(event);
+ })
+ .bind("click." + this.widgetName, function(event) {
+ if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
+ $.removeData(event.target, that.widgetName + ".preventClickEvent");
+ event.stopImmediatePropagation();
+ return false;
+ }
+ });
+
+ this.started = false;
+ },
+
+ // TODO: make sure destroying one instance of mouse doesn't mess with
+ // other instances of mouse
+ _mouseDestroy: function() {
+ this.element.unbind("." + this.widgetName);
+ if ( this._mouseMoveDelegate ) {
+ this.document
+ .unbind("mousemove." + this.widgetName, this._mouseMoveDelegate)
+ .unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
+ }
+ },
+
+ _mouseDown: function(event) {
+ // don't let more than one widget handle mouseStart
+ if ( mouseHandled ) {
+ return;
+ }
+
+ this._mouseMoved = false;
+
+ // we may have missed mouseup (out of window)
+ (this._mouseStarted && this._mouseUp(event));
+
+ this._mouseDownEvent = event;
+
+ var that = this,
+ btnIsLeft = (event.which === 1),
+ // event.target.nodeName works around a bug in IE 8 with
+ // disabled inputs (#7620)
+ elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
+ if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
+ return true;
+ }
+
+ this.mouseDelayMet = !this.options.delay;
+ if (!this.mouseDelayMet) {
+ this._mouseDelayTimer = setTimeout(function() {
+ that.mouseDelayMet = true;
+ }, this.options.delay);
+ }
+
+ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
+ this._mouseStarted = (this._mouseStart(event) !== false);
+ if (!this._mouseStarted) {
+ event.preventDefault();
+ return true;
+ }
+ }
+
+ // Click event may never have fired (Gecko & Opera)
+ if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) {
+ $.removeData(event.target, this.widgetName + ".preventClickEvent");
+ }
+
+ // these delegates are required to keep context
+ this._mouseMoveDelegate = function(event) {
+ return that._mouseMove(event);
+ };
+ this._mouseUpDelegate = function(event) {
+ return that._mouseUp(event);
+ };
+
+ this.document
+ .bind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
+ .bind( "mouseup." + this.widgetName, this._mouseUpDelegate );
+
+ event.preventDefault();
+
+ mouseHandled = true;
+ return true;
+ },
+
+ _mouseMove: function(event) {
+ // Only check for mouseups outside the document if you've moved inside the document
+ // at least once. This prevents the firing of mouseup in the case of IE<9, which will
+ // fire a mousemove event if content is placed under the cursor. See #7778
+ // Support: IE <9
+ if ( this._mouseMoved ) {
+ // IE mouseup check - mouseup happened when mouse was out of window
+ if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
+ return this._mouseUp(event);
+
+ // Iframe mouseup check - mouseup occurred in another document
+ } else if ( !event.which ) {
+ return this._mouseUp( event );
+ }
+ }
+
+ if ( event.which || event.button ) {
+ this._mouseMoved = true;
+ }
+
+ if (this._mouseStarted) {
+ this._mouseDrag(event);
+ return event.preventDefault();
+ }
+
+ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
+ this._mouseStarted =
+ (this._mouseStart(this._mouseDownEvent, event) !== false);
+ (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
+ }
+
+ return !this._mouseStarted;
+ },
+
+ _mouseUp: function(event) {
+ this.document
+ .unbind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
+ .unbind( "mouseup." + this.widgetName, this._mouseUpDelegate );
+
+ if (this._mouseStarted) {
+ this._mouseStarted = false;
+
+ if (event.target === this._mouseDownEvent.target) {
+ $.data(event.target, this.widgetName + ".preventClickEvent", true);
+ }
+
+ this._mouseStop(event);
+ }
+
+ mouseHandled = false;
+ return false;
+ },
+
+ _mouseDistanceMet: function(event) {
+ return (Math.max(
+ Math.abs(this._mouseDownEvent.pageX - event.pageX),
+ Math.abs(this._mouseDownEvent.pageY - event.pageY)
+ ) >= this.options.distance
+ );
+ },
+
+ _mouseDelayMet: function(/* event */) {
+ return this.mouseDelayMet;
+ },
+
+ // These are placeholder methods, to be overriden by extending plugin
+ _mouseStart: function(/* event */) {},
+ _mouseDrag: function(/* event */) {},
+ _mouseStop: function(/* event */) {},
+ _mouseCapture: function(/* event */) { return true; }
+});
+
+
+/*!
+ * jQuery UI Position 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/position/
+ */
+
+(function() {
+
+$.ui = $.ui || {};
+
+var cachedScrollbarWidth, supportsOffsetFractions,
+ max = Math.max,
+ abs = Math.abs,
+ round = Math.round,
+ rhorizontal = /left|center|right/,
+ rvertical = /top|center|bottom/,
+ roffset = /[\+\-]\d+(\.[\d]+)?%?/,
+ rposition = /^\w+/,
+ rpercent = /%$/,
+ _position = $.fn.position;
+
+function getOffsets( offsets, width, height ) {
+ return [
+ parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
+ parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
+ ];
+}
+
+function parseCss( element, property ) {
+ return parseInt( $.css( element, property ), 10 ) || 0;
+}
+
+function getDimensions( elem ) {
+ var raw = elem[0];
+ if ( raw.nodeType === 9 ) {
+ return {
+ width: elem.width(),
+ height: elem.height(),
+ offset: { top: 0, left: 0 }
+ };
+ }
+ if ( $.isWindow( raw ) ) {
+ return {
+ width: elem.width(),
+ height: elem.height(),
+ offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
+ };
+ }
+ if ( raw.preventDefault ) {
+ return {
+ width: 0,
+ height: 0,
+ offset: { top: raw.pageY, left: raw.pageX }
+ };
+ }
+ return {
+ width: elem.outerWidth(),
+ height: elem.outerHeight(),
+ offset: elem.offset()
+ };
+}
+
+$.position = {
+ scrollbarWidth: function() {
+ if ( cachedScrollbarWidth !== undefined ) {
+ return cachedScrollbarWidth;
+ }
+ var w1, w2,
+ div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
+ innerDiv = div.children()[0];
+
+ $( "body" ).append( div );
+ w1 = innerDiv.offsetWidth;
+ div.css( "overflow", "scroll" );
+
+ w2 = innerDiv.offsetWidth;
+
+ if ( w1 === w2 ) {
+ w2 = div[0].clientWidth;
+ }
+
+ div.remove();
+
+ return (cachedScrollbarWidth = w1 - w2);
+ },
+ getScrollInfo: function( within ) {
+ var overflowX = within.isWindow || within.isDocument ? "" :
+ within.element.css( "overflow-x" ),
+ overflowY = within.isWindow || within.isDocument ? "" :
+ within.element.css( "overflow-y" ),
+ hasOverflowX = overflowX === "scroll" ||
+ ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
+ hasOverflowY = overflowY === "scroll" ||
+ ( overflowY === "auto" && within.height < within.element[0].scrollHeight );
+ return {
+ width: hasOverflowY ? $.position.scrollbarWidth() : 0,
+ height: hasOverflowX ? $.position.scrollbarWidth() : 0
+ };
+ },
+ getWithinInfo: function( element ) {
+ var withinElement = $( element || window ),
+ isWindow = $.isWindow( withinElement[0] ),
+ isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;
+ return {
+ element: withinElement,
+ isWindow: isWindow,
+ isDocument: isDocument,
+ offset: withinElement.offset() || { left: 0, top: 0 },
+ scrollLeft: withinElement.scrollLeft(),
+ scrollTop: withinElement.scrollTop(),
+
+ // support: jQuery 1.6.x
+ // jQuery 1.6 doesn't support .outerWidth/Height() on documents or windows
+ width: isWindow || isDocument ? withinElement.width() : withinElement.outerWidth(),
+ height: isWindow || isDocument ? withinElement.height() : withinElement.outerHeight()
+ };
+ }
+};
+
+$.fn.position = function( options ) {
+ if ( !options || !options.of ) {
+ return _position.apply( this, arguments );
+ }
+
+ // make a copy, we don't want to modify arguments
+ options = $.extend( {}, options );
+
+ var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
+ target = $( options.of ),
+ within = $.position.getWithinInfo( options.within ),
+ scrollInfo = $.position.getScrollInfo( within ),
+ collision = ( options.collision || "flip" ).split( " " ),
+ offsets = {};
+
+ dimensions = getDimensions( target );
+ if ( target[0].preventDefault ) {
+ // force left top to allow flipping
+ options.at = "left top";
+ }
+ targetWidth = dimensions.width;
+ targetHeight = dimensions.height;
+ targetOffset = dimensions.offset;
+ // clone to reuse original targetOffset later
+ basePosition = $.extend( {}, targetOffset );
+
+ // force my and at to have valid horizontal and vertical positions
+ // if a value is missing or invalid, it will be converted to center
+ $.each( [ "my", "at" ], function() {
+ var pos = ( options[ this ] || "" ).split( " " ),
+ horizontalOffset,
+ verticalOffset;
+
+ if ( pos.length === 1) {
+ pos = rhorizontal.test( pos[ 0 ] ) ?
+ pos.concat( [ "center" ] ) :
+ rvertical.test( pos[ 0 ] ) ?
+ [ "center" ].concat( pos ) :
+ [ "center", "center" ];
+ }
+ pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
+ pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
+
+ // calculate offsets
+ horizontalOffset = roffset.exec( pos[ 0 ] );
+ verticalOffset = roffset.exec( pos[ 1 ] );
+ offsets[ this ] = [
+ horizontalOffset ? horizontalOffset[ 0 ] : 0,
+ verticalOffset ? verticalOffset[ 0 ] : 0
+ ];
+
+ // reduce to just the positions without the offsets
+ options[ this ] = [
+ rposition.exec( pos[ 0 ] )[ 0 ],
+ rposition.exec( pos[ 1 ] )[ 0 ]
+ ];
+ });
+
+ // normalize collision option
+ if ( collision.length === 1 ) {
+ collision[ 1 ] = collision[ 0 ];
+ }
+
+ if ( options.at[ 0 ] === "right" ) {
+ basePosition.left += targetWidth;
+ } else if ( options.at[ 0 ] === "center" ) {
+ basePosition.left += targetWidth / 2;
+ }
+
+ if ( options.at[ 1 ] === "bottom" ) {
+ basePosition.top += targetHeight;
+ } else if ( options.at[ 1 ] === "center" ) {
+ basePosition.top += targetHeight / 2;
+ }
+
+ atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
+ basePosition.left += atOffset[ 0 ];
+ basePosition.top += atOffset[ 1 ];
+
+ return this.each(function() {
+ var collisionPosition, using,
+ elem = $( this ),
+ elemWidth = elem.outerWidth(),
+ elemHeight = elem.outerHeight(),
+ marginLeft = parseCss( this, "marginLeft" ),
+ marginTop = parseCss( this, "marginTop" ),
+ collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width,
+ collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height,
+ position = $.extend( {}, basePosition ),
+ myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
+
+ if ( options.my[ 0 ] === "right" ) {
+ position.left -= elemWidth;
+ } else if ( options.my[ 0 ] === "center" ) {
+ position.left -= elemWidth / 2;
+ }
+
+ if ( options.my[ 1 ] === "bottom" ) {
+ position.top -= elemHeight;
+ } else if ( options.my[ 1 ] === "center" ) {
+ position.top -= elemHeight / 2;
+ }
+
+ position.left += myOffset[ 0 ];
+ position.top += myOffset[ 1 ];
+
+ // if the browser doesn't support fractions, then round for consistent results
+ if ( !supportsOffsetFractions ) {
+ position.left = round( position.left );
+ position.top = round( position.top );
+ }
+
+ collisionPosition = {
+ marginLeft: marginLeft,
+ marginTop: marginTop
+ };
+
+ $.each( [ "left", "top" ], function( i, dir ) {
+ if ( $.ui.position[ collision[ i ] ] ) {
+ $.ui.position[ collision[ i ] ][ dir ]( position, {
+ targetWidth: targetWidth,
+ targetHeight: targetHeight,
+ elemWidth: elemWidth,
+ elemHeight: elemHeight,
+ collisionPosition: collisionPosition,
+ collisionWidth: collisionWidth,
+ collisionHeight: collisionHeight,
+ offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
+ my: options.my,
+ at: options.at,
+ within: within,
+ elem: elem
+ });
+ }
+ });
+
+ if ( options.using ) {
+ // adds feedback as second argument to using callback, if present
+ using = function( props ) {
+ var left = targetOffset.left - position.left,
+ right = left + targetWidth - elemWidth,
+ top = targetOffset.top - position.top,
+ bottom = top + targetHeight - elemHeight,
+ feedback = {
+ target: {
+ element: target,
+ left: targetOffset.left,
+ top: targetOffset.top,
+ width: targetWidth,
+ height: targetHeight
+ },
+ element: {
+ element: elem,
+ left: position.left,
+ top: position.top,
+ width: elemWidth,
+ height: elemHeight
+ },
+ horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
+ vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
+ };
+ if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
+ feedback.horizontal = "center";
+ }
+ if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
+ feedback.vertical = "middle";
+ }
+ if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
+ feedback.important = "horizontal";
+ } else {
+ feedback.important = "vertical";
+ }
+ options.using.call( this, props, feedback );
+ };
+ }
+
+ elem.offset( $.extend( position, { using: using } ) );
+ });
+};
+
+$.ui.position = {
+ fit: {
+ left: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
+ outerWidth = within.width,
+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,
+ overLeft = withinOffset - collisionPosLeft,
+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
+ newOverRight;
+
+ // element is wider than within
+ if ( data.collisionWidth > outerWidth ) {
+ // element is initially over the left side of within
+ if ( overLeft > 0 && overRight <= 0 ) {
+ newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
+ position.left += overLeft - newOverRight;
+ // element is initially over right side of within
+ } else if ( overRight > 0 && overLeft <= 0 ) {
+ position.left = withinOffset;
+ // element is initially over both left and right sides of within
+ } else {
+ if ( overLeft > overRight ) {
+ position.left = withinOffset + outerWidth - data.collisionWidth;
+ } else {
+ position.left = withinOffset;
+ }
+ }
+ // too far left -> align with left edge
+ } else if ( overLeft > 0 ) {
+ position.left += overLeft;
+ // too far right -> align with right edge
+ } else if ( overRight > 0 ) {
+ position.left -= overRight;
+ // adjust based on position and margin
+ } else {
+ position.left = max( position.left - collisionPosLeft, position.left );
+ }
+ },
+ top: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
+ outerHeight = data.within.height,
+ collisionPosTop = position.top - data.collisionPosition.marginTop,
+ overTop = withinOffset - collisionPosTop,
+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
+ newOverBottom;
+
+ // element is taller than within
+ if ( data.collisionHeight > outerHeight ) {
+ // element is initially over the top of within
+ if ( overTop > 0 && overBottom <= 0 ) {
+ newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
+ position.top += overTop - newOverBottom;
+ // element is initially over bottom of within
+ } else if ( overBottom > 0 && overTop <= 0 ) {
+ position.top = withinOffset;
+ // element is initially over both top and bottom of within
+ } else {
+ if ( overTop > overBottom ) {
+ position.top = withinOffset + outerHeight - data.collisionHeight;
+ } else {
+ position.top = withinOffset;
+ }
+ }
+ // too far up -> align with top
+ } else if ( overTop > 0 ) {
+ position.top += overTop;
+ // too far down -> align with bottom edge
+ } else if ( overBottom > 0 ) {
+ position.top -= overBottom;
+ // adjust based on position and margin
+ } else {
+ position.top = max( position.top - collisionPosTop, position.top );
+ }
+ }
+ },
+ flip: {
+ left: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.offset.left + within.scrollLeft,
+ outerWidth = within.width,
+ offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,
+ overLeft = collisionPosLeft - offsetLeft,
+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
+ myOffset = data.my[ 0 ] === "left" ?
+ -data.elemWidth :
+ data.my[ 0 ] === "right" ?
+ data.elemWidth :
+ 0,
+ atOffset = data.at[ 0 ] === "left" ?
+ data.targetWidth :
+ data.at[ 0 ] === "right" ?
+ -data.targetWidth :
+ 0,
+ offset = -2 * data.offset[ 0 ],
+ newOverRight,
+ newOverLeft;
+
+ if ( overLeft < 0 ) {
+ newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;
+ if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
+ position.left += myOffset + atOffset + offset;
+ }
+ } else if ( overRight > 0 ) {
+ newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;
+ if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
+ position.left += myOffset + atOffset + offset;
+ }
+ }
+ },
+ top: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.offset.top + within.scrollTop,
+ outerHeight = within.height,
+ offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
+ collisionPosTop = position.top - data.collisionPosition.marginTop,
+ overTop = collisionPosTop - offsetTop,
+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
+ top = data.my[ 1 ] === "top",
+ myOffset = top ?
+ -data.elemHeight :
+ data.my[ 1 ] === "bottom" ?
+ data.elemHeight :
+ 0,
+ atOffset = data.at[ 1 ] === "top" ?
+ data.targetHeight :
+ data.at[ 1 ] === "bottom" ?
+ -data.targetHeight :
+ 0,
+ offset = -2 * data.offset[ 1 ],
+ newOverTop,
+ newOverBottom;
+ if ( overTop < 0 ) {
+ newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
+ if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
+ position.top += myOffset + atOffset + offset;
+ }
+ } else if ( overBottom > 0 ) {
+ newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
+ if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
+ position.top += myOffset + atOffset + offset;
+ }
+ }
+ }
+ },
+ flipfit: {
+ left: function() {
+ $.ui.position.flip.left.apply( this, arguments );
+ $.ui.position.fit.left.apply( this, arguments );
+ },
+ top: function() {
+ $.ui.position.flip.top.apply( this, arguments );
+ $.ui.position.fit.top.apply( this, arguments );
+ }
+ }
+};
+
+// fraction support test
+(function() {
+ var testElement, testElementParent, testElementStyle, offsetLeft, i,
+ body = document.getElementsByTagName( "body" )[ 0 ],
+ div = document.createElement( "div" );
+
+ //Create a "fake body" for testing based on method used in jQuery.support
+ testElement = document.createElement( body ? "div" : "body" );
+ testElementStyle = {
+ visibility: "hidden",
+ width: 0,
+ height: 0,
+ border: 0,
+ margin: 0,
+ background: "none"
+ };
+ if ( body ) {
+ $.extend( testElementStyle, {
+ position: "absolute",
+ left: "-1000px",
+ top: "-1000px"
+ });
+ }
+ for ( i in testElementStyle ) {
+ testElement.style[ i ] = testElementStyle[ i ];
+ }
+ testElement.appendChild( div );
+ testElementParent = body || document.documentElement;
+ testElementParent.insertBefore( testElement, testElementParent.firstChild );
+
+ div.style.cssText = "position: absolute; left: 10.7432222px;";
+
+ offsetLeft = $( div ).offset().left;
+ supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
+
+ testElement.innerHTML = "";
+ testElementParent.removeChild( testElement );
+})();
+
+})();
+
+var position = $.ui.position;
+
+
+/*!
+ * jQuery UI Draggable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/draggable/
+ */
+
+
+$.widget("ui.draggable", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "drag",
+ options: {
+ addClasses: true,
+ appendTo: "parent",
+ axis: false,
+ connectToSortable: false,
+ containment: false,
+ cursor: "auto",
+ cursorAt: false,
+ grid: false,
+ handle: false,
+ helper: "original",
+ iframeFix: false,
+ opacity: false,
+ refreshPositions: false,
+ revert: false,
+ revertDuration: 500,
+ scope: "default",
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ snap: false,
+ snapMode: "both",
+ snapTolerance: 20,
+ stack: false,
+ zIndex: false,
+
+ // callbacks
+ drag: null,
+ start: null,
+ stop: null
+ },
+ _create: function() {
+
+ if ( this.options.helper === "original" ) {
+ this._setPositionRelative();
+ }
+ if (this.options.addClasses){
+ this.element.addClass("ui-draggable");
+ }
+ if (this.options.disabled){
+ this.element.addClass("ui-draggable-disabled");
+ }
+ this._setHandleClassName();
+
+ this._mouseInit();
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+ if ( key === "handle" ) {
+ this._removeHandleClassName();
+ this._setHandleClassName();
+ }
+ },
+
+ _destroy: function() {
+ if ( ( this.helper || this.element ).is( ".ui-draggable-dragging" ) ) {
+ this.destroyOnClear = true;
+ return;
+ }
+ this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" );
+ this._removeHandleClassName();
+ this._mouseDestroy();
+ },
+
+ _mouseCapture: function(event) {
+ var o = this.options;
+
+ this._blurActiveElement( event );
+
+ // among others, prevent a drag on a resizable-handle
+ if (this.helper || o.disabled || $(event.target).closest(".ui-resizable-handle").length > 0) {
+ return false;
+ }
+
+ //Quit if we're not on a valid handle
+ this.handle = this._getHandle(event);
+ if (!this.handle) {
+ return false;
+ }
+
+ this._blockFrames( o.iframeFix === true ? "iframe" : o.iframeFix );
+
+ return true;
+
+ },
+
+ _blockFrames: function( selector ) {
+ this.iframeBlocks = this.document.find( selector ).map(function() {
+ var iframe = $( this );
+
+ return $( "<div>" )
+ .css( "position", "absolute" )
+ .appendTo( iframe.parent() )
+ .outerWidth( iframe.outerWidth() )
+ .outerHeight( iframe.outerHeight() )
+ .offset( iframe.offset() )[ 0 ];
+ });
+ },
+
+ _unblockFrames: function() {
+ if ( this.iframeBlocks ) {
+ this.iframeBlocks.remove();
+ delete this.iframeBlocks;
+ }
+ },
+
+ _blurActiveElement: function( event ) {
+ var document = this.document[ 0 ];
+
+ // Only need to blur if the event occurred on the draggable itself, see #10527
+ if ( !this.handleElement.is( event.target ) ) {
+ return;
+ }
+
+ // support: IE9
+ // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
+ try {
+
+ // Support: IE9, IE10
+ // If the <body> is blurred, IE will switch windows, see #9520
+ if ( document.activeElement && document.activeElement.nodeName.toLowerCase() !== "body" ) {
+
+ // Blur any element that currently has focus, see #4261
+ $( document.activeElement ).blur();
+ }
+ } catch ( error ) {}
+ },
+
+ _mouseStart: function(event) {
+
+ var o = this.options;
+
+ //Create and append the visible helper
+ this.helper = this._createHelper(event);
+
+ this.helper.addClass("ui-draggable-dragging");
+
+ //Cache the helper size
+ this._cacheHelperProportions();
+
+ //If ddmanager is used for droppables, set the global draggable
+ if ($.ui.ddmanager) {
+ $.ui.ddmanager.current = this;
+ }
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ //Cache the margins of the original element
+ this._cacheMargins();
+
+ //Store the helper's css position
+ this.cssPosition = this.helper.css( "position" );
+ this.scrollParent = this.helper.scrollParent( true );
+ this.offsetParent = this.helper.offsetParent();
+ this.hasFixedAncestor = this.helper.parents().filter(function() {
+ return $( this ).css( "position" ) === "fixed";
+ }).length > 0;
+
+ //The element's absolute position on the page minus margins
+ this.positionAbs = this.element.offset();
+ this._refreshOffsets( event );
+
+ //Generate the original position
+ this.originalPosition = this.position = this._generatePosition( event, false );
+ this.originalPageX = event.pageX;
+ this.originalPageY = event.pageY;
+
+ //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
+
+ //Set a containment if given in the options
+ this._setContainment();
+
+ //Trigger event + callbacks
+ if (this._trigger("start", event) === false) {
+ this._clear();
+ return false;
+ }
+
+ //Recache the helper size
+ this._cacheHelperProportions();
+
+ //Prepare the droppable offsets
+ if ($.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(this, event);
+ }
+
+ // Reset helper's right/bottom css if they're set and set explicit width/height instead
+ // as this prevents resizing of elements with right/bottom set (see #7772)
+ this._normalizeRightBottom();
+
+ this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+
+ //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)
+ if ( $.ui.ddmanager ) {
+ $.ui.ddmanager.dragStart(this, event);
+ }
+
+ return true;
+ },
+
+ _refreshOffsets: function( event ) {
+ this.offset = {
+ top: this.positionAbs.top - this.margins.top,
+ left: this.positionAbs.left - this.margins.left,
+ scroll: false,
+ parent: this._getParentOffset(),
+ relative: this._getRelativeOffset()
+ };
+
+ this.offset.click = {
+ left: event.pageX - this.offset.left,
+ top: event.pageY - this.offset.top
+ };
+ },
+
+ _mouseDrag: function(event, noPropagation) {
+ // reset any necessary cached properties (see #5009)
+ if ( this.hasFixedAncestor ) {
+ this.offset.parent = this._getParentOffset();
+ }
+
+ //Compute the helpers position
+ this.position = this._generatePosition( event, true );
+ this.positionAbs = this._convertPositionTo("absolute");
+
+ //Call plugins and callbacks and use the resulting position if something is returned
+ if (!noPropagation) {
+ var ui = this._uiHash();
+ if (this._trigger("drag", event, ui) === false) {
+ this._mouseUp({});
+ return false;
+ }
+ this.position = ui.position;
+ }
+
+ this.helper[ 0 ].style.left = this.position.left + "px";
+ this.helper[ 0 ].style.top = this.position.top + "px";
+
+ if ($.ui.ddmanager) {
+ $.ui.ddmanager.drag(this, event);
+ }
+
+ return false;
+ },
+
+ _mouseStop: function(event) {
+
+ //If we are using droppables, inform the manager about the drop
+ var that = this,
+ dropped = false;
+ if ($.ui.ddmanager && !this.options.dropBehaviour) {
+ dropped = $.ui.ddmanager.drop(this, event);
+ }
+
+ //if a drop comes from outside (a sortable)
+ if (this.dropped) {
+ dropped = this.dropped;
+ this.dropped = false;
+ }
+
+ if ((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
+ if (that._trigger("stop", event) !== false) {
+ that._clear();
+ }
+ });
+ } else {
+ if (this._trigger("stop", event) !== false) {
+ this._clear();
+ }
+ }
+
+ return false;
+ },
+
+ _mouseUp: function( event ) {
+ this._unblockFrames();
+
+ //If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003)
+ if ( $.ui.ddmanager ) {
+ $.ui.ddmanager.dragStop(this, event);
+ }
+
+ // Only need to focus if the event occurred on the draggable itself, see #10527
+ if ( this.handleElement.is( event.target ) ) {
+ // The interaction is over; whether or not the click resulted in a drag, focus the element
+ this.element.focus();
+ }
+
+ return $.ui.mouse.prototype._mouseUp.call(this, event);
+ },
+
+ cancel: function() {
+
+ if (this.helper.is(".ui-draggable-dragging")) {
+ this._mouseUp({});
+ } else {
+ this._clear();
+ }
+
+ return this;
+
+ },
+
+ _getHandle: function(event) {
+ return this.options.handle ?
+ !!$( event.target ).closest( this.element.find( this.options.handle ) ).length :
+ true;
+ },
+
+ _setHandleClassName: function() {
+ this.handleElement = this.options.handle ?
+ this.element.find( this.options.handle ) : this.element;
+ this.handleElement.addClass( "ui-draggable-handle" );
+ },
+
+ _removeHandleClassName: function() {
+ this.handleElement.removeClass( "ui-draggable-handle" );
+ },
+
+ _createHelper: function(event) {
+
+ var o = this.options,
+ helperIsFunction = $.isFunction( o.helper ),
+ helper = helperIsFunction ?
+ $( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
+ ( o.helper === "clone" ?
+ this.element.clone().removeAttr( "id" ) :
+ this.element );
+
+ if (!helper.parents("body").length) {
+ helper.appendTo((o.appendTo === "parent" ? this.element[0].parentNode : o.appendTo));
+ }
+
+ // http://bugs.jqueryui.com/ticket/9446
+ // a helper function can return the original element
+ // which wouldn't have been set to relative in _create
+ if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
+ this._setPositionRelative();
+ }
+
+ if (helper[0] !== this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) {
+ helper.css("position", "absolute");
+ }
+
+ return helper;
+
+ },
+
+ _setPositionRelative: function() {
+ if ( !( /^(?:r|a|f)/ ).test( this.element.css( "position" ) ) ) {
+ this.element[ 0 ].style.position = "relative";
+ }
+ },
+
+ _adjustOffsetFromHelper: function(obj) {
+ if (typeof obj === "string") {
+ obj = obj.split(" ");
+ }
+ if ($.isArray(obj)) {
+ obj = { left: +obj[0], top: +obj[1] || 0 };
+ }
+ if ("left" in obj) {
+ this.offset.click.left = obj.left + this.margins.left;
+ }
+ if ("right" in obj) {
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
+ }
+ if ("top" in obj) {
+ this.offset.click.top = obj.top + this.margins.top;
+ }
+ if ("bottom" in obj) {
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
+ }
+ },
+
+ _isRootNode: function( element ) {
+ return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ];
+ },
+
+ _getParentOffset: function() {
+
+ //Get the offsetParent and cache its position
+ var po = this.offsetParent.offset(),
+ document = this.document[ 0 ];
+
+ // This is a special case where we need to modify a offset calculated on start, since the following happened:
+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
+ if (this.cssPosition === "absolute" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) {
+ po.left += this.scrollParent.scrollLeft();
+ po.top += this.scrollParent.scrollTop();
+ }
+
+ if ( this._isRootNode( this.offsetParent[ 0 ] ) ) {
+ po = { top: 0, left: 0 };
+ }
+
+ return {
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
+ };
+
+ },
+
+ _getRelativeOffset: function() {
+ if ( this.cssPosition !== "relative" ) {
+ return { top: 0, left: 0 };
+ }
+
+ var p = this.element.position(),
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
+
+ return {
+ top: p.top - ( parseInt(this.helper.css( "top" ), 10) || 0 ) + ( !scrollIsRootNode ? this.scrollParent.scrollTop() : 0 ),
+ left: p.left - ( parseInt(this.helper.css( "left" ), 10) || 0 ) + ( !scrollIsRootNode ? this.scrollParent.scrollLeft() : 0 )
+ };
+
+ },
+
+ _cacheMargins: function() {
+ this.margins = {
+ left: (parseInt(this.element.css("marginLeft"), 10) || 0),
+ top: (parseInt(this.element.css("marginTop"), 10) || 0),
+ right: (parseInt(this.element.css("marginRight"), 10) || 0),
+ bottom: (parseInt(this.element.css("marginBottom"), 10) || 0)
+ };
+ },
+
+ _cacheHelperProportions: function() {
+ this.helperProportions = {
+ width: this.helper.outerWidth(),
+ height: this.helper.outerHeight()
+ };
+ },
+
+ _setContainment: function() {
+
+ var isUserScrollable, c, ce,
+ o = this.options,
+ document = this.document[ 0 ];
+
+ this.relativeContainer = null;
+
+ if ( !o.containment ) {
+ this.containment = null;
+ return;
+ }
+
+ if ( o.containment === "window" ) {
+ this.containment = [
+ $( window ).scrollLeft() - this.offset.relative.left - this.offset.parent.left,
+ $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top,
+ $( window ).scrollLeft() + $( window ).width() - this.helperProportions.width - this.margins.left,
+ $( window ).scrollTop() + ( $( window ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
+ ];
+ return;
+ }
+
+ if ( o.containment === "document") {
+ this.containment = [
+ 0,
+ 0,
+ $( document ).width() - this.helperProportions.width - this.margins.left,
+ ( $( document ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
+ ];
+ return;
+ }
+
+ if ( o.containment.constructor === Array ) {
+ this.containment = o.containment;
+ return;
+ }
+
+ if ( o.containment === "parent" ) {
+ o.containment = this.helper[ 0 ].parentNode;
+ }
+
+ c = $( o.containment );
+ ce = c[ 0 ];
+
+ if ( !ce ) {
+ return;
+ }
+
+ isUserScrollable = /(scroll|auto)/.test( c.css( "overflow" ) );
+
+ this.containment = [
+ ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) + ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ),
+ ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) + ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ),
+ ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
+ ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
+ ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
+ this.helperProportions.width -
+ this.margins.left -
+ this.margins.right,
+ ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
+ ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
+ ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
+ this.helperProportions.height -
+ this.margins.top -
+ this.margins.bottom
+ ];
+ this.relativeContainer = c;
+ },
+
+ _convertPositionTo: function(d, pos) {
+
+ if (!pos) {
+ pos = this.position;
+ }
+
+ var mod = d === "absolute" ? 1 : -1,
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
+
+ return {
+ top: (
+ pos.top + // The absolute mouse position
+ this.offset.relative.top * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.offset.scroll.top : ( scrollIsRootNode ? 0 : this.offset.scroll.top ) ) * mod)
+ ),
+ left: (
+ pos.left + // The absolute mouse position
+ this.offset.relative.left * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.offset.scroll.left : ( scrollIsRootNode ? 0 : this.offset.scroll.left ) ) * mod)
+ )
+ };
+
+ },
+
+ _generatePosition: function( event, constrainPosition ) {
+
+ var containment, co, top, left,
+ o = this.options,
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),
+ pageX = event.pageX,
+ pageY = event.pageY;
+
+ // Cache the scroll
+ if ( !scrollIsRootNode || !this.offset.scroll ) {
+ this.offset.scroll = {
+ top: this.scrollParent.scrollTop(),
+ left: this.scrollParent.scrollLeft()
+ };
+ }
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+
+ // If we are not dragging yet, we won't check for options
+ if ( constrainPosition ) {
+ if ( this.containment ) {
+ if ( this.relativeContainer ){
+ co = this.relativeContainer.offset();
+ containment = [
+ this.containment[ 0 ] + co.left,
+ this.containment[ 1 ] + co.top,
+ this.containment[ 2 ] + co.left,
+ this.containment[ 3 ] + co.top
+ ];
+ } else {
+ containment = this.containment;
+ }
+
+ if (event.pageX - this.offset.click.left < containment[0]) {
+ pageX = containment[0] + this.offset.click.left;
+ }
+ if (event.pageY - this.offset.click.top < containment[1]) {
+ pageY = containment[1] + this.offset.click.top;
+ }
+ if (event.pageX - this.offset.click.left > containment[2]) {
+ pageX = containment[2] + this.offset.click.left;
+ }
+ if (event.pageY - this.offset.click.top > containment[3]) {
+ pageY = containment[3] + this.offset.click.top;
+ }
+ }
+
+ if (o.grid) {
+ //Check for grid elements set to 0 to prevent divide by 0 error causing invalid argument errors in IE (see ticket #6950)
+ top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;
+ pageY = containment ? ((top - this.offset.click.top >= containment[1] || top - this.offset.click.top > containment[3]) ? top : ((top - this.offset.click.top >= containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;
+ pageX = containment ? ((left - this.offset.click.left >= containment[0] || left - this.offset.click.left > containment[2]) ? left : ((left - this.offset.click.left >= containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ if ( o.axis === "y" ) {
+ pageX = this.originalPageX;
+ }
+
+ if ( o.axis === "x" ) {
+ pageY = this.originalPageY;
+ }
+ }
+
+ return {
+ top: (
+ pageY - // The absolute mouse position
+ this.offset.click.top - // Click offset (relative to the element)
+ this.offset.relative.top - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top + // The offsetParent's offset without borders (offset + border)
+ ( this.cssPosition === "fixed" ? -this.offset.scroll.top : ( scrollIsRootNode ? 0 : this.offset.scroll.top ) )
+ ),
+ left: (
+ pageX - // The absolute mouse position
+ this.offset.click.left - // Click offset (relative to the element)
+ this.offset.relative.left - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left + // The offsetParent's offset without borders (offset + border)
+ ( this.cssPosition === "fixed" ? -this.offset.scroll.left : ( scrollIsRootNode ? 0 : this.offset.scroll.left ) )
+ )
+ };
+
+ },
+
+ _clear: function() {
+ this.helper.removeClass("ui-draggable-dragging");
+ if (this.helper[0] !== this.element[0] && !this.cancelHelperRemoval) {
+ this.helper.remove();
+ }
+ this.helper = null;
+ this.cancelHelperRemoval = false;
+ if ( this.destroyOnClear ) {
+ this.destroy();
+ }
+ },
+
+ _normalizeRightBottom: function() {
+ if ( this.options.axis !== "y" && this.helper.css( "right" ) !== "auto" ) {
+ this.helper.width( this.helper.width() );
+ this.helper.css( "right", "auto" );
+ }
+ if ( this.options.axis !== "x" && this.helper.css( "bottom" ) !== "auto" ) {
+ this.helper.height( this.helper.height() );
+ this.helper.css( "bottom", "auto" );
+ }
+ },
+
+ // From now on bulk stuff - mainly helpers
+
+ _trigger: function( type, event, ui ) {
+ ui = ui || this._uiHash();
+ $.ui.plugin.call( this, type, [ event, ui, this ], true );
+
+ // Absolute position and offset (see #6884 ) have to be recalculated after plugins
+ if ( /^(drag|start|stop)/.test( type ) ) {
+ this.positionAbs = this._convertPositionTo( "absolute" );
+ ui.offset = this.positionAbs;
+ }
+ return $.Widget.prototype._trigger.call( this, type, event, ui );
+ },
+
+ plugins: {},
+
+ _uiHash: function() {
+ return {
+ helper: this.helper,
+ position: this.position,
+ originalPosition: this.originalPosition,
+ offset: this.positionAbs
+ };
+ }
+
+});
+
+$.ui.plugin.add( "draggable", "connectToSortable", {
+ start: function( event, ui, draggable ) {
+ var uiSortable = $.extend( {}, ui, {
+ item: draggable.element
+ });
+
+ draggable.sortables = [];
+ $( draggable.options.connectToSortable ).each(function() {
+ var sortable = $( this ).sortable( "instance" );
+
+ if ( sortable && !sortable.options.disabled ) {
+ draggable.sortables.push( sortable );
+
+ // refreshPositions is called at drag start to refresh the containerCache
+ // which is used in drag. This ensures it's initialized and synchronized
+ // with any changes that might have happened on the page since initialization.
+ sortable.refreshPositions();
+ sortable._trigger("activate", event, uiSortable);
+ }
+ });
+ },
+ stop: function( event, ui, draggable ) {
+ var uiSortable = $.extend( {}, ui, {
+ item: draggable.element
+ });
+
+ draggable.cancelHelperRemoval = false;
+
+ $.each( draggable.sortables, function() {
+ var sortable = this;
+
+ if ( sortable.isOver ) {
+ sortable.isOver = 0;
+
+ // Allow this sortable to handle removing the helper
+ draggable.cancelHelperRemoval = true;
+ sortable.cancelHelperRemoval = false;
+
+ // Use _storedCSS To restore properties in the sortable,
+ // as this also handles revert (#9675) since the draggable
+ // may have modified them in unexpected ways (#8809)
+ sortable._storedCSS = {
+ position: sortable.placeholder.css( "position" ),
+ top: sortable.placeholder.css( "top" ),
+ left: sortable.placeholder.css( "left" )
+ };
+
+ sortable._mouseStop(event);
+
+ // Once drag has ended, the sortable should return to using
+ // its original helper, not the shared helper from draggable
+ sortable.options.helper = sortable.options._helper;
+ } else {
+ // Prevent this Sortable from removing the helper.
+ // However, don't set the draggable to remove the helper
+ // either as another connected Sortable may yet handle the removal.
+ sortable.cancelHelperRemoval = true;
+
+ sortable._trigger( "deactivate", event, uiSortable );
+ }
+ });
+ },
+ drag: function( event, ui, draggable ) {
+ $.each( draggable.sortables, function() {
+ var innermostIntersecting = false,
+ sortable = this;
+
+ // Copy over variables that sortable's _intersectsWith uses
+ sortable.positionAbs = draggable.positionAbs;
+ sortable.helperProportions = draggable.helperProportions;
+ sortable.offset.click = draggable.offset.click;
+
+ if ( sortable._intersectsWith( sortable.containerCache ) ) {
+ innermostIntersecting = true;
+
+ $.each( draggable.sortables, function() {
+ // Copy over variables that sortable's _intersectsWith uses
+ this.positionAbs = draggable.positionAbs;
+ this.helperProportions = draggable.helperProportions;
+ this.offset.click = draggable.offset.click;
+
+ if ( this !== sortable &&
+ this._intersectsWith( this.containerCache ) &&
+ $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) {
+ innermostIntersecting = false;
+ }
+
+ return innermostIntersecting;
+ });
+ }
+
+ if ( innermostIntersecting ) {
+ // If it intersects, we use a little isOver variable and set it once,
+ // so that the move-in stuff gets fired only once.
+ if ( !sortable.isOver ) {
+ sortable.isOver = 1;
+
+ // Store draggable's parent in case we need to reappend to it later.
+ draggable._parent = ui.helper.parent();
+
+ sortable.currentItem = ui.helper
+ .appendTo( sortable.element )
+ .data( "ui-sortable-item", true );
+
+ // Store helper option to later restore it
+ sortable.options._helper = sortable.options.helper;
+
+ sortable.options.helper = function() {
+ return ui.helper[ 0 ];
+ };
+
+ // Fire the start events of the sortable with our passed browser event,
+ // and our own helper (so it doesn't create a new one)
+ event.target = sortable.currentItem[ 0 ];
+ sortable._mouseCapture( event, true );
+ sortable._mouseStart( event, true, true );
+
+ // Because the browser event is way off the new appended portlet,
+ // modify necessary variables to reflect the changes
+ sortable.offset.click.top = draggable.offset.click.top;
+ sortable.offset.click.left = draggable.offset.click.left;
+ sortable.offset.parent.left -= draggable.offset.parent.left -
+ sortable.offset.parent.left;
+ sortable.offset.parent.top -= draggable.offset.parent.top -
+ sortable.offset.parent.top;
+
+ draggable._trigger( "toSortable", event );
+
+ // Inform draggable that the helper is in a valid drop zone,
+ // used solely in the revert option to handle "valid/invalid".
+ draggable.dropped = sortable.element;
+
+ // Need to refreshPositions of all sortables in the case that
+ // adding to one sortable changes the location of the other sortables (#9675)
+ $.each( draggable.sortables, function() {
+ this.refreshPositions();
+ });
+
+ // hack so receive/update callbacks work (mostly)
+ draggable.currentItem = draggable.element;
+ sortable.fromOutside = draggable;
+ }
+
+ if ( sortable.currentItem ) {
+ sortable._mouseDrag( event );
+ // Copy the sortable's position because the draggable's can potentially reflect
+ // a relative position, while sortable is always absolute, which the dragged
+ // element has now become. (#8809)
+ ui.position = sortable.position;
+ }
+ } else {
+ // If it doesn't intersect with the sortable, and it intersected before,
+ // we fake the drag stop of the sortable, but make sure it doesn't remove
+ // the helper by using cancelHelperRemoval.
+ if ( sortable.isOver ) {
+
+ sortable.isOver = 0;
+ sortable.cancelHelperRemoval = true;
+
+ // Calling sortable's mouseStop would trigger a revert,
+ // so revert must be temporarily false until after mouseStop is called.
+ sortable.options._revert = sortable.options.revert;
+ sortable.options.revert = false;
+
+ sortable._trigger( "out", event, sortable._uiHash( sortable ) );
+ sortable._mouseStop( event, true );
+
+ // restore sortable behaviors that were modfied
+ // when the draggable entered the sortable area (#9481)
+ sortable.options.revert = sortable.options._revert;
+ sortable.options.helper = sortable.options._helper;
+
+ if ( sortable.placeholder ) {
+ sortable.placeholder.remove();
+ }
+
+ // Restore and recalculate the draggable's offset considering the sortable
+ // may have modified them in unexpected ways. (#8809, #10669)
+ ui.helper.appendTo( draggable._parent );
+ draggable._refreshOffsets( event );
+ ui.position = draggable._generatePosition( event, true );
+
+ draggable._trigger( "fromSortable", event );
+
+ // Inform draggable that the helper is no longer in a valid drop zone
+ draggable.dropped = false;
+
+ // Need to refreshPositions of all sortables just in case removing
+ // from one sortable changes the location of other sortables (#9675)
+ $.each( draggable.sortables, function() {
+ this.refreshPositions();
+ });
+ }
+ }
+ });
+ }
+});
+
+$.ui.plugin.add("draggable", "cursor", {
+ start: function( event, ui, instance ) {
+ var t = $( "body" ),
+ o = instance.options;
+
+ if (t.css("cursor")) {
+ o._cursor = t.css("cursor");
+ }
+ t.css("cursor", o.cursor);
+ },
+ stop: function( event, ui, instance ) {
+ var o = instance.options;
+ if (o._cursor) {
+ $("body").css("cursor", o._cursor);
+ }
+ }
+});
+
+$.ui.plugin.add("draggable", "opacity", {
+ start: function( event, ui, instance ) {
+ var t = $( ui.helper ),
+ o = instance.options;
+ if (t.css("opacity")) {
+ o._opacity = t.css("opacity");
+ }
+ t.css("opacity", o.opacity);
+ },
+ stop: function( event, ui, instance ) {
+ var o = instance.options;
+ if (o._opacity) {
+ $(ui.helper).css("opacity", o._opacity);
+ }
+ }
+});
+
+$.ui.plugin.add("draggable", "scroll", {
+ start: function( event, ui, i ) {
+ if ( !i.scrollParentNotHidden ) {
+ i.scrollParentNotHidden = i.helper.scrollParent( false );
+ }
+
+ if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] && i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) {
+ i.overflowOffset = i.scrollParentNotHidden.offset();
+ }
+ },
+ drag: function( event, ui, i ) {
+
+ var o = i.options,
+ scrolled = false,
+ scrollParent = i.scrollParentNotHidden[ 0 ],
+ document = i.document[ 0 ];
+
+ if ( scrollParent !== document && scrollParent.tagName !== "HTML" ) {
+ if ( !o.axis || o.axis !== "x" ) {
+ if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY < o.scrollSensitivity ) {
+ scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed;
+ } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) {
+ scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed;
+ }
+ }
+
+ if ( !o.axis || o.axis !== "y" ) {
+ if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX < o.scrollSensitivity ) {
+ scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed;
+ } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) {
+ scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed;
+ }
+ }
+
+ } else {
+
+ if (!o.axis || o.axis !== "x") {
+ if (event.pageY - $(document).scrollTop() < o.scrollSensitivity) {
+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+ } else if ($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) {
+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+ }
+ }
+
+ if (!o.axis || o.axis !== "y") {
+ if (event.pageX - $(document).scrollLeft() < o.scrollSensitivity) {
+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+ } else if ($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) {
+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+ }
+ }
+
+ }
+
+ if (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(i, event);
+ }
+
+ }
+});
+
+$.ui.plugin.add("draggable", "snap", {
+ start: function( event, ui, i ) {
+
+ var o = i.options;
+
+ i.snapElements = [];
+
+ $(o.snap.constructor !== String ? ( o.snap.items || ":data(ui-draggable)" ) : o.snap).each(function() {
+ var $t = $(this),
+ $o = $t.offset();
+ if (this !== i.element[0]) {
+ i.snapElements.push({
+ item: this,
+ width: $t.outerWidth(), height: $t.outerHeight(),
+ top: $o.top, left: $o.left
+ });
+ }
+ });
+
+ },
+ drag: function( event, ui, inst ) {
+
+ var ts, bs, ls, rs, l, r, t, b, i, first,
+ o = inst.options,
+ d = o.snapTolerance,
+ x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,
+ y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;
+
+ for (i = inst.snapElements.length - 1; i >= 0; i--){
+
+ l = inst.snapElements[i].left - inst.margins.left;
+ r = l + inst.snapElements[i].width;
+ t = inst.snapElements[i].top - inst.margins.top;
+ b = t + inst.snapElements[i].height;
+
+ if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || !$.contains( inst.snapElements[ i ].item.ownerDocument, inst.snapElements[ i ].item ) ) {
+ if (inst.snapElements[i].snapping) {
+ (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
+ }
+ inst.snapElements[i].snapping = false;
+ continue;
+ }
+
+ if (o.snapMode !== "inner") {
+ ts = Math.abs(t - y2) <= d;
+ bs = Math.abs(b - y1) <= d;
+ ls = Math.abs(l - x2) <= d;
+ rs = Math.abs(r - x1) <= d;
+ if (ts) {
+ ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
+ }
+ if (bs) {
+ ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top;
+ }
+ if (ls) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
+ }
+ if (rs) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left;
+ }
+ }
+
+ first = (ts || bs || ls || rs);
+
+ if (o.snapMode !== "outer") {
+ ts = Math.abs(t - y1) <= d;
+ bs = Math.abs(b - y2) <= d;
+ ls = Math.abs(l - x1) <= d;
+ rs = Math.abs(r - x2) <= d;
+ if (ts) {
+ ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top;
+ }
+ if (bs) {
+ ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
+ }
+ if (ls) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left;
+ }
+ if (rs) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
+ }
+ }
+
+ if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
+ }
+ inst.snapElements[i].snapping = (ts || bs || ls || rs || first);
+
+ }
+
+ }
+});
+
+$.ui.plugin.add("draggable", "stack", {
+ start: function( event, ui, instance ) {
+ var min,
+ o = instance.options,
+ group = $.makeArray($(o.stack)).sort(function(a, b) {
+ return (parseInt($(a).css("zIndex"), 10) || 0) - (parseInt($(b).css("zIndex"), 10) || 0);
+ });
+
+ if (!group.length) { return; }
+
+ min = parseInt($(group[0]).css("zIndex"), 10) || 0;
+ $(group).each(function(i) {
+ $(this).css("zIndex", min + i);
+ });
+ this.css("zIndex", (min + group.length));
+ }
+});
+
+$.ui.plugin.add("draggable", "zIndex", {
+ start: function( event, ui, instance ) {
+ var t = $( ui.helper ),
+ o = instance.options;
+
+ if (t.css("zIndex")) {
+ o._zIndex = t.css("zIndex");
+ }
+ t.css("zIndex", o.zIndex);
+ },
+ stop: function( event, ui, instance ) {
+ var o = instance.options;
+
+ if (o._zIndex) {
+ $(ui.helper).css("zIndex", o._zIndex);
+ }
+ }
+});
+
+var draggable = $.ui.draggable;
+
+
+/*!
+ * jQuery UI Droppable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/droppable/
+ */
+
+
+$.widget( "ui.droppable", {
+ version: "1.11.4",
+ widgetEventPrefix: "drop",
+ options: {
+ accept: "*",
+ activeClass: false,
+ addClasses: true,
+ greedy: false,
+ hoverClass: false,
+ scope: "default",
+ tolerance: "intersect",
+
+ // callbacks
+ activate: null,
+ deactivate: null,
+ drop: null,
+ out: null,
+ over: null
+ },
+ _create: function() {
+
+ var proportions,
+ o = this.options,
+ accept = o.accept;
+
+ this.isover = false;
+ this.isout = true;
+
+ this.accept = $.isFunction( accept ) ? accept : function( d ) {
+ return d.is( accept );
+ };
+
+ this.proportions = function( /* valueToWrite */ ) {
+ if ( arguments.length ) {
+ // Store the droppable's proportions
+ proportions = arguments[ 0 ];
+ } else {
+ // Retrieve or derive the droppable's proportions
+ return proportions ?
+ proportions :
+ proportions = {
+ width: this.element[ 0 ].offsetWidth,
+ height: this.element[ 0 ].offsetHeight
+ };
+ }
+ };
+
+ this._addToManager( o.scope );
+
+ o.addClasses && this.element.addClass( "ui-droppable" );
+
+ },
+
+ _addToManager: function( scope ) {
+ // Add the reference and positions to the manager
+ $.ui.ddmanager.droppables[ scope ] = $.ui.ddmanager.droppables[ scope ] || [];
+ $.ui.ddmanager.droppables[ scope ].push( this );
+ },
+
+ _splice: function( drop ) {
+ var i = 0;
+ for ( ; i < drop.length; i++ ) {
+ if ( drop[ i ] === this ) {
+ drop.splice( i, 1 );
+ }
+ }
+ },
+
+ _destroy: function() {
+ var drop = $.ui.ddmanager.droppables[ this.options.scope ];
+
+ this._splice( drop );
+
+ this.element.removeClass( "ui-droppable ui-droppable-disabled" );
+ },
+
+ _setOption: function( key, value ) {
+
+ if ( key === "accept" ) {
+ this.accept = $.isFunction( value ) ? value : function( d ) {
+ return d.is( value );
+ };
+ } else if ( key === "scope" ) {
+ var drop = $.ui.ddmanager.droppables[ this.options.scope ];
+
+ this._splice( drop );
+ this._addToManager( value );
+ }
+
+ this._super( key, value );
+ },
+
+ _activate: function( event ) {
+ var draggable = $.ui.ddmanager.current;
+ if ( this.options.activeClass ) {
+ this.element.addClass( this.options.activeClass );
+ }
+ if ( draggable ){
+ this._trigger( "activate", event, this.ui( draggable ) );
+ }
+ },
+
+ _deactivate: function( event ) {
+ var draggable = $.ui.ddmanager.current;
+ if ( this.options.activeClass ) {
+ this.element.removeClass( this.options.activeClass );
+ }
+ if ( draggable ){
+ this._trigger( "deactivate", event, this.ui( draggable ) );
+ }
+ },
+
+ _over: function( event ) {
+
+ var draggable = $.ui.ddmanager.current;
+
+ // Bail if draggable and droppable are same element
+ if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
+ return;
+ }
+
+ if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ if ( this.options.hoverClass ) {
+ this.element.addClass( this.options.hoverClass );
+ }
+ this._trigger( "over", event, this.ui( draggable ) );
+ }
+
+ },
+
+ _out: function( event ) {
+
+ var draggable = $.ui.ddmanager.current;
+
+ // Bail if draggable and droppable are same element
+ if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
+ return;
+ }
+
+ if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ if ( this.options.hoverClass ) {
+ this.element.removeClass( this.options.hoverClass );
+ }
+ this._trigger( "out", event, this.ui( draggable ) );
+ }
+
+ },
+
+ _drop: function( event, custom ) {
+
+ var draggable = custom || $.ui.ddmanager.current,
+ childrenIntersection = false;
+
+ // Bail if draggable and droppable are same element
+ if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
+ return false;
+ }
+
+ this.element.find( ":data(ui-droppable)" ).not( ".ui-draggable-dragging" ).each(function() {
+ var inst = $( this ).droppable( "instance" );
+ if (
+ inst.options.greedy &&
+ !inst.options.disabled &&
+ inst.options.scope === draggable.options.scope &&
+ inst.accept.call( inst.element[ 0 ], ( draggable.currentItem || draggable.element ) ) &&
+ $.ui.intersect( draggable, $.extend( inst, { offset: inst.element.offset() } ), inst.options.tolerance, event )
+ ) { childrenIntersection = true; return false; }
+ });
+ if ( childrenIntersection ) {
+ return false;
+ }
+
+ if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ if ( this.options.activeClass ) {
+ this.element.removeClass( this.options.activeClass );
+ }
+ if ( this.options.hoverClass ) {
+ this.element.removeClass( this.options.hoverClass );
+ }
+ this._trigger( "drop", event, this.ui( draggable ) );
+ return this.element;
+ }
+
+ return false;
+
+ },
+
+ ui: function( c ) {
+ return {
+ draggable: ( c.currentItem || c.element ),
+ helper: c.helper,
+ position: c.position,
+ offset: c.positionAbs
+ };
+ }
+
+});
+
+$.ui.intersect = (function() {
+ function isOverAxis( x, reference, size ) {
+ return ( x >= reference ) && ( x < ( reference + size ) );
+ }
+
+ return function( draggable, droppable, toleranceMode, event ) {
+
+ if ( !droppable.offset ) {
+ return false;
+ }
+
+ var x1 = ( draggable.positionAbs || draggable.position.absolute ).left + draggable.margins.left,
+ y1 = ( draggable.positionAbs || draggable.position.absolute ).top + draggable.margins.top,
+ x2 = x1 + draggable.helperProportions.width,
+ y2 = y1 + draggable.helperProportions.height,
+ l = droppable.offset.left,
+ t = droppable.offset.top,
+ r = l + droppable.proportions().width,
+ b = t + droppable.proportions().height;
+
+ switch ( toleranceMode ) {
+ case "fit":
+ return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
+ case "intersect":
+ return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
+ x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
+ t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
+ y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
+ case "pointer":
+ return isOverAxis( event.pageY, t, droppable.proportions().height ) && isOverAxis( event.pageX, l, droppable.proportions().width );
+ case "touch":
+ return (
+ ( y1 >= t && y1 <= b ) || // Top edge touching
+ ( y2 >= t && y2 <= b ) || // Bottom edge touching
+ ( y1 < t && y2 > b ) // Surrounded vertically
+ ) && (
+ ( x1 >= l && x1 <= r ) || // Left edge touching
+ ( x2 >= l && x2 <= r ) || // Right edge touching
+ ( x1 < l && x2 > r ) // Surrounded horizontally
+ );
+ default:
+ return false;
+ }
+ };
+})();
+
+/*
+ This manager tracks offsets of draggables and droppables
+*/
+$.ui.ddmanager = {
+ current: null,
+ droppables: { "default": [] },
+ prepareOffsets: function( t, event ) {
+
+ var i, j,
+ m = $.ui.ddmanager.droppables[ t.options.scope ] || [],
+ type = event ? event.type : null, // workaround for #2317
+ list = ( t.currentItem || t.element ).find( ":data(ui-droppable)" ).addBack();
+
+ droppablesLoop: for ( i = 0; i < m.length; i++ ) {
+
+ // No disabled and non-accepted
+ if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ], ( t.currentItem || t.element ) ) ) ) {
+ continue;
+ }
+
+ // Filter out elements in the current dragged item
+ for ( j = 0; j < list.length; j++ ) {
+ if ( list[ j ] === m[ i ].element[ 0 ] ) {
+ m[ i ].proportions().height = 0;
+ continue droppablesLoop;
+ }
+ }
+
+ m[ i ].visible = m[ i ].element.css( "display" ) !== "none";
+ if ( !m[ i ].visible ) {
+ continue;
+ }
+
+ // Activate the droppable if used directly from draggables
+ if ( type === "mousedown" ) {
+ m[ i ]._activate.call( m[ i ], event );
+ }
+
+ m[ i ].offset = m[ i ].element.offset();
+ m[ i ].proportions({ width: m[ i ].element[ 0 ].offsetWidth, height: m[ i ].element[ 0 ].offsetHeight });
+
+ }
+
+ },
+ drop: function( draggable, event ) {
+
+ var dropped = false;
+ // Create a copy of the droppables in case the list changes during the drop (#9116)
+ $.each( ( $.ui.ddmanager.droppables[ draggable.options.scope ] || [] ).slice(), function() {
+
+ if ( !this.options ) {
+ return;
+ }
+ if ( !this.options.disabled && this.visible && $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
+ dropped = this._drop.call( this, event ) || dropped;
+ }
+
+ if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ this.isout = true;
+ this.isover = false;
+ this._deactivate.call( this, event );
+ }
+
+ });
+ return dropped;
+
+ },
+ dragStart: function( draggable, event ) {
+ // Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)
+ draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {
+ if ( !draggable.options.refreshPositions ) {
+ $.ui.ddmanager.prepareOffsets( draggable, event );
+ }
+ });
+ },
+ drag: function( draggable, event ) {
+
+ // If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
+ if ( draggable.options.refreshPositions ) {
+ $.ui.ddmanager.prepareOffsets( draggable, event );
+ }
+
+ // Run through all droppables and check their positions based on specific tolerance options
+ $.each( $.ui.ddmanager.droppables[ draggable.options.scope ] || [], function() {
+
+ if ( this.options.disabled || this.greedyChild || !this.visible ) {
+ return;
+ }
+
+ var parentInstance, scope, parent,
+ intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
+ c = !intersects && this.isover ? "isout" : ( intersects && !this.isover ? "isover" : null );
+ if ( !c ) {
+ return;
+ }
+
+ if ( this.options.greedy ) {
+ // find droppable parents with same scope
+ scope = this.options.scope;
+ parent = this.element.parents( ":data(ui-droppable)" ).filter(function() {
+ return $( this ).droppable( "instance" ).options.scope === scope;
+ });
+
+ if ( parent.length ) {
+ parentInstance = $( parent[ 0 ] ).droppable( "instance" );
+ parentInstance.greedyChild = ( c === "isover" );
+ }
+ }
+
+ // we just moved into a greedy child
+ if ( parentInstance && c === "isover" ) {
+ parentInstance.isover = false;
+ parentInstance.isout = true;
+ parentInstance._out.call( parentInstance, event );
+ }
+
+ this[ c ] = true;
+ this[c === "isout" ? "isover" : "isout"] = false;
+ this[c === "isover" ? "_over" : "_out"].call( this, event );
+
+ // we just moved out of a greedy child
+ if ( parentInstance && c === "isout" ) {
+ parentInstance.isout = false;
+ parentInstance.isover = true;
+ parentInstance._over.call( parentInstance, event );
+ }
+ });
+
+ },
+ dragStop: function( draggable, event ) {
+ draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
+ // Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)
+ if ( !draggable.options.refreshPositions ) {
+ $.ui.ddmanager.prepareOffsets( draggable, event );
+ }
+ }
+};
+
+var droppable = $.ui.droppable;
+
+
+/*!
+ * jQuery UI Resizable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/resizable/
+ */
+
+
+$.widget("ui.resizable", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "resize",
+ options: {
+ alsoResize: false,
+ animate: false,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ aspectRatio: false,
+ autoHide: false,
+ containment: false,
+ ghost: false,
+ grid: false,
+ handles: "e,s,se",
+ helper: false,
+ maxHeight: null,
+ maxWidth: null,
+ minHeight: 10,
+ minWidth: 10,
+ // See #7960
+ zIndex: 90,
+
+ // callbacks
+ resize: null,
+ start: null,
+ stop: null
+ },
+
+ _num: function( value ) {
+ return parseInt( value, 10 ) || 0;
+ },
+
+ _isNumber: function( value ) {
+ return !isNaN( parseInt( value, 10 ) );
+ },
+
+ _hasScroll: function( el, a ) {
+
+ if ( $( el ).css( "overflow" ) === "hidden") {
+ return false;
+ }
+
+ var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
+ has = false;
+
+ if ( el[ scroll ] > 0 ) {
+ return true;
+ }
+
+ // TODO: determine which cases actually cause this to happen
+ // if the element doesn't have the scroll set, see if it's possible to
+ // set the scroll
+ el[ scroll ] = 1;
+ has = ( el[ scroll ] > 0 );
+ el[ scroll ] = 0;
+ return has;
+ },
+
+ _create: function() {
+
+ var n, i, handle, axis, hname,
+ that = this,
+ o = this.options;
+ this.element.addClass("ui-resizable");
+
+ $.extend(this, {
+ _aspectRatio: !!(o.aspectRatio),
+ aspectRatio: o.aspectRatio,
+ originalElement: this.element,
+ _proportionallyResizeElements: [],
+ _helper: o.helper || o.ghost || o.animate ? o.helper || "ui-resizable-helper" : null
+ });
+
+ // Wrap the element if it cannot hold child nodes
+ if (this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)) {
+
+ this.element.wrap(
+ $("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({
+ position: this.element.css("position"),
+ width: this.element.outerWidth(),
+ height: this.element.outerHeight(),
+ top: this.element.css("top"),
+ left: this.element.css("left")
+ })
+ );
+
+ this.element = this.element.parent().data(
+ "ui-resizable", this.element.resizable( "instance" )
+ );
+
+ this.elementIsWrapper = true;
+
+ this.element.css({
+ marginLeft: this.originalElement.css("marginLeft"),
+ marginTop: this.originalElement.css("marginTop"),
+ marginRight: this.originalElement.css("marginRight"),
+ marginBottom: this.originalElement.css("marginBottom")
+ });
+ this.originalElement.css({
+ marginLeft: 0,
+ marginTop: 0,
+ marginRight: 0,
+ marginBottom: 0
+ });
+ // support: Safari
+ // Prevent Safari textarea resize
+ this.originalResizeStyle = this.originalElement.css("resize");
+ this.originalElement.css("resize", "none");
+
+ this._proportionallyResizeElements.push( this.originalElement.css({
+ position: "static",
+ zoom: 1,
+ display: "block"
+ }) );
+
+ // support: IE9
+ // avoid IE jump (hard set the margin)
+ this.originalElement.css({ margin: this.originalElement.css("margin") });
+
+ this._proportionallyResize();
+ }
+
+ this.handles = o.handles ||
+ ( !$(".ui-resizable-handle", this.element).length ?
+ "e,s,se" : {
+ n: ".ui-resizable-n",
+ e: ".ui-resizable-e",
+ s: ".ui-resizable-s",
+ w: ".ui-resizable-w",
+ se: ".ui-resizable-se",
+ sw: ".ui-resizable-sw",
+ ne: ".ui-resizable-ne",
+ nw: ".ui-resizable-nw"
+ } );
+
+ this._handles = $();
+ if ( this.handles.constructor === String ) {
+
+ if ( this.handles === "all") {
+ this.handles = "n,e,s,w,se,sw,ne,nw";
+ }
+
+ n = this.handles.split(",");
+ this.handles = {};
+
+ for (i = 0; i < n.length; i++) {
+
+ handle = $.trim(n[i]);
+ hname = "ui-resizable-" + handle;
+ axis = $("<div class='ui-resizable-handle " + hname + "'></div>");
+
+ axis.css({ zIndex: o.zIndex });
+
+ // TODO : What's going on here?
+ if ("se" === handle) {
+ axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se");
+ }
+
+ this.handles[handle] = ".ui-resizable-" + handle;
+ this.element.append(axis);
+ }
+
+ }
+
+ this._renderAxis = function(target) {
+
+ var i, axis, padPos, padWrapper;
+
+ target = target || this.element;
+
+ for (i in this.handles) {
+
+ if (this.handles[i].constructor === String) {
+ this.handles[i] = this.element.children( this.handles[ i ] ).first().show();
+ } else if ( this.handles[ i ].jquery || this.handles[ i ].nodeType ) {
+ this.handles[ i ] = $( this.handles[ i ] );
+ this._on( this.handles[ i ], { "mousedown": that._mouseDown });
+ }
+
+ if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)) {
+
+ axis = $(this.handles[i], this.element);
+
+ padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();
+
+ padPos = [ "padding",
+ /ne|nw|n/.test(i) ? "Top" :
+ /se|sw|s/.test(i) ? "Bottom" :
+ /^e$/.test(i) ? "Right" : "Left" ].join("");
+
+ target.css(padPos, padWrapper);
+
+ this._proportionallyResize();
+ }
+
+ this._handles = this._handles.add( this.handles[ i ] );
+ }
+ };
+
+ // TODO: make renderAxis a prototype function
+ this._renderAxis(this.element);
+
+ this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
+ this._handles.disableSelection();
+
+ this._handles.mouseover(function() {
+ if (!that.resizing) {
+ if (this.className) {
+ axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
+ }
+ that.axis = axis && axis[1] ? axis[1] : "se";
+ }
+ });
+
+ if (o.autoHide) {
+ this._handles.hide();
+ $(this.element)
+ .addClass("ui-resizable-autohide")
+ .mouseenter(function() {
+ if (o.disabled) {
+ return;
+ }
+ $(this).removeClass("ui-resizable-autohide");
+ that._handles.show();
+ })
+ .mouseleave(function() {
+ if (o.disabled) {
+ return;
+ }
+ if (!that.resizing) {
+ $(this).addClass("ui-resizable-autohide");
+ that._handles.hide();
+ }
+ });
+ }
+
+ this._mouseInit();
+ },
+
+ _destroy: function() {
+
+ this._mouseDestroy();
+
+ var wrapper,
+ _destroy = function(exp) {
+ $(exp)
+ .removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
+ .removeData("resizable")
+ .removeData("ui-resizable")
+ .unbind(".resizable")
+ .find(".ui-resizable-handle")
+ .remove();
+ };
+
+ // TODO: Unwrap at same DOM position
+ if (this.elementIsWrapper) {
+ _destroy(this.element);
+ wrapper = this.element;
+ this.originalElement.css({
+ position: wrapper.css("position"),
+ width: wrapper.outerWidth(),
+ height: wrapper.outerHeight(),
+ top: wrapper.css("top"),
+ left: wrapper.css("left")
+ }).insertAfter( wrapper );
+ wrapper.remove();
+ }
+
+ this.originalElement.css("resize", this.originalResizeStyle);
+ _destroy(this.originalElement);
+
+ return this;
+ },
+
+ _mouseCapture: function(event) {
+ var i, handle,
+ capture = false;
+
+ for (i in this.handles) {
+ handle = $(this.handles[i])[0];
+ if (handle === event.target || $.contains(handle, event.target)) {
+ capture = true;
+ }
+ }
+
+ return !this.options.disabled && capture;
+ },
+
+ _mouseStart: function(event) {
+
+ var curleft, curtop, cursor,
+ o = this.options,
+ el = this.element;
+
+ this.resizing = true;
+
+ this._renderProxy();
+
+ curleft = this._num(this.helper.css("left"));
+ curtop = this._num(this.helper.css("top"));
+
+ if (o.containment) {
+ curleft += $(o.containment).scrollLeft() || 0;
+ curtop += $(o.containment).scrollTop() || 0;
+ }
+
+ this.offset = this.helper.offset();
+ this.position = { left: curleft, top: curtop };
+
+ this.size = this._helper ? {
+ width: this.helper.width(),
+ height: this.helper.height()
+ } : {
+ width: el.width(),
+ height: el.height()
+ };
+
+ this.originalSize = this._helper ? {
+ width: el.outerWidth(),
+ height: el.outerHeight()
+ } : {
+ width: el.width(),
+ height: el.height()
+ };
+
+ this.sizeDiff = {
+ width: el.outerWidth() - el.width(),
+ height: el.outerHeight() - el.height()
+ };
+
+ this.originalPosition = { left: curleft, top: curtop };
+ this.originalMousePosition = { left: event.pageX, top: event.pageY };
+
+ this.aspectRatio = (typeof o.aspectRatio === "number") ?
+ o.aspectRatio :
+ ((this.originalSize.width / this.originalSize.height) || 1);
+
+ cursor = $(".ui-resizable-" + this.axis).css("cursor");
+ $("body").css("cursor", cursor === "auto" ? this.axis + "-resize" : cursor);
+
+ el.addClass("ui-resizable-resizing");
+ this._propagate("start", event);
+ return true;
+ },
+
+ _mouseDrag: function(event) {
+
+ var data, props,
+ smp = this.originalMousePosition,
+ a = this.axis,
+ dx = (event.pageX - smp.left) || 0,
+ dy = (event.pageY - smp.top) || 0,
+ trigger = this._change[a];
+
+ this._updatePrevProperties();
+
+ if (!trigger) {
+ return false;
+ }
+
+ data = trigger.apply(this, [ event, dx, dy ]);
+
+ this._updateVirtualBoundaries(event.shiftKey);
+ if (this._aspectRatio || event.shiftKey) {
+ data = this._updateRatio(data, event);
+ }
+
+ data = this._respectSize(data, event);
+
+ this._updateCache(data);
+
+ this._propagate("resize", event);
+
+ props = this._applyChanges();
+
+ if ( !this._helper && this._proportionallyResizeElements.length ) {
+ this._proportionallyResize();
+ }
+
+ if ( !$.isEmptyObject( props ) ) {
+ this._updatePrevProperties();
+ this._trigger( "resize", event, this.ui() );
+ this._applyChanges();
+ }
+
+ return false;
+ },
+
+ _mouseStop: function(event) {
+
+ this.resizing = false;
+ var pr, ista, soffseth, soffsetw, s, left, top,
+ o = this.options, that = this;
+
+ if (this._helper) {
+
+ pr = this._proportionallyResizeElements;
+ ista = pr.length && (/textarea/i).test(pr[0].nodeName);
+ soffseth = ista && this._hasScroll(pr[0], "left") ? 0 : that.sizeDiff.height;
+ soffsetw = ista ? 0 : that.sizeDiff.width;
+
+ s = {
+ width: (that.helper.width() - soffsetw),
+ height: (that.helper.height() - soffseth)
+ };
+ left = (parseInt(that.element.css("left"), 10) +
+ (that.position.left - that.originalPosition.left)) || null;
+ top = (parseInt(that.element.css("top"), 10) +
+ (that.position.top - that.originalPosition.top)) || null;
+
+ if (!o.animate) {
+ this.element.css($.extend(s, { top: top, left: left }));
+ }
+
+ that.helper.height(that.size.height);
+ that.helper.width(that.size.width);
+
+ if (this._helper && !o.animate) {
+ this._proportionallyResize();
+ }
+ }
+
+ $("body").css("cursor", "auto");
+
+ this.element.removeClass("ui-resizable-resizing");
+
+ this._propagate("stop", event);
+
+ if (this._helper) {
+ this.helper.remove();
+ }
+
+ return false;
+
+ },
+
+ _updatePrevProperties: function() {
+ this.prevPosition = {
+ top: this.position.top,
+ left: this.position.left
+ };
+ this.prevSize = {
+ width: this.size.width,
+ height: this.size.height
+ };
+ },
+
+ _applyChanges: function() {
+ var props = {};
+
+ if ( this.position.top !== this.prevPosition.top ) {
+ props.top = this.position.top + "px";
+ }
+ if ( this.position.left !== this.prevPosition.left ) {
+ props.left = this.position.left + "px";
+ }
+ if ( this.size.width !== this.prevSize.width ) {
+ props.width = this.size.width + "px";
+ }
+ if ( this.size.height !== this.prevSize.height ) {
+ props.height = this.size.height + "px";
+ }
+
+ this.helper.css( props );
+
+ return props;
+ },
+
+ _updateVirtualBoundaries: function(forceAspectRatio) {
+ var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
+ o = this.options;
+
+ b = {
+ minWidth: this._isNumber(o.minWidth) ? o.minWidth : 0,
+ maxWidth: this._isNumber(o.maxWidth) ? o.maxWidth : Infinity,
+ minHeight: this._isNumber(o.minHeight) ? o.minHeight : 0,
+ maxHeight: this._isNumber(o.maxHeight) ? o.maxHeight : Infinity
+ };
+
+ if (this._aspectRatio || forceAspectRatio) {
+ pMinWidth = b.minHeight * this.aspectRatio;
+ pMinHeight = b.minWidth / this.aspectRatio;
+ pMaxWidth = b.maxHeight * this.aspectRatio;
+ pMaxHeight = b.maxWidth / this.aspectRatio;
+
+ if (pMinWidth > b.minWidth) {
+ b.minWidth = pMinWidth;
+ }
+ if (pMinHeight > b.minHeight) {
+ b.minHeight = pMinHeight;
+ }
+ if (pMaxWidth < b.maxWidth) {
+ b.maxWidth = pMaxWidth;
+ }
+ if (pMaxHeight < b.maxHeight) {
+ b.maxHeight = pMaxHeight;
+ }
+ }
+ this._vBoundaries = b;
+ },
+
+ _updateCache: function(data) {
+ this.offset = this.helper.offset();
+ if (this._isNumber(data.left)) {
+ this.position.left = data.left;
+ }
+ if (this._isNumber(data.top)) {
+ this.position.top = data.top;
+ }
+ if (this._isNumber(data.height)) {
+ this.size.height = data.height;
+ }
+ if (this._isNumber(data.width)) {
+ this.size.width = data.width;
+ }
+ },
+
+ _updateRatio: function( data ) {
+
+ var cpos = this.position,
+ csize = this.size,
+ a = this.axis;
+
+ if (this._isNumber(data.height)) {
+ data.width = (data.height * this.aspectRatio);
+ } else if (this._isNumber(data.width)) {
+ data.height = (data.width / this.aspectRatio);
+ }
+
+ if (a === "sw") {
+ data.left = cpos.left + (csize.width - data.width);
+ data.top = null;
+ }
+ if (a === "nw") {
+ data.top = cpos.top + (csize.height - data.height);
+ data.left = cpos.left + (csize.width - data.width);
+ }
+
+ return data;
+ },
+
+ _respectSize: function( data ) {
+
+ var o = this._vBoundaries,
+ a = this.axis,
+ ismaxw = this._isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width),
+ ismaxh = this._isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),
+ isminw = this._isNumber(data.width) && o.minWidth && (o.minWidth > data.width),
+ isminh = this._isNumber(data.height) && o.minHeight && (o.minHeight > data.height),
+ dw = this.originalPosition.left + this.originalSize.width,
+ dh = this.position.top + this.size.height,
+ cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);
+ if (isminw) {
+ data.width = o.minWidth;
+ }
+ if (isminh) {
+ data.height = o.minHeight;
+ }
+ if (ismaxw) {
+ data.width = o.maxWidth;
+ }
+ if (ismaxh) {
+ data.height = o.maxHeight;
+ }
+
+ if (isminw && cw) {
+ data.left = dw - o.minWidth;
+ }
+ if (ismaxw && cw) {
+ data.left = dw - o.maxWidth;
+ }
+ if (isminh && ch) {
+ data.top = dh - o.minHeight;
+ }
+ if (ismaxh && ch) {
+ data.top = dh - o.maxHeight;
+ }
+
+ // Fixing jump error on top/left - bug #2330
+ if (!data.width && !data.height && !data.left && data.top) {
+ data.top = null;
+ } else if (!data.width && !data.height && !data.top && data.left) {
+ data.left = null;
+ }
+
+ return data;
+ },
+
+ _getPaddingPlusBorderDimensions: function( element ) {
+ var i = 0,
+ widths = [],
+ borders = [
+ element.css( "borderTopWidth" ),
+ element.css( "borderRightWidth" ),
+ element.css( "borderBottomWidth" ),
+ element.css( "borderLeftWidth" )
+ ],
+ paddings = [
+ element.css( "paddingTop" ),
+ element.css( "paddingRight" ),
+ element.css( "paddingBottom" ),
+ element.css( "paddingLeft" )
+ ];
+
+ for ( ; i < 4; i++ ) {
+ widths[ i ] = ( parseInt( borders[ i ], 10 ) || 0 );
+ widths[ i ] += ( parseInt( paddings[ i ], 10 ) || 0 );
+ }
+
+ return {
+ height: widths[ 0 ] + widths[ 2 ],
+ width: widths[ 1 ] + widths[ 3 ]
+ };
+ },
+
+ _proportionallyResize: function() {
+
+ if (!this._proportionallyResizeElements.length) {
+ return;
+ }
+
+ var prel,
+ i = 0,
+ element = this.helper || this.element;
+
+ for ( ; i < this._proportionallyResizeElements.length; i++) {
+
+ prel = this._proportionallyResizeElements[i];
+
+ // TODO: Seems like a bug to cache this.outerDimensions
+ // considering that we are in a loop.
+ if (!this.outerDimensions) {
+ this.outerDimensions = this._getPaddingPlusBorderDimensions( prel );
+ }
+
+ prel.css({
+ height: (element.height() - this.outerDimensions.height) || 0,
+ width: (element.width() - this.outerDimensions.width) || 0
+ });
+
+ }
+
+ },
+
+ _renderProxy: function() {
+
+ var el = this.element, o = this.options;
+ this.elementOffset = el.offset();
+
+ if (this._helper) {
+
+ this.helper = this.helper || $("<div style='overflow:hidden;'></div>");
+
+ this.helper.addClass(this._helper).css({
+ width: this.element.outerWidth() - 1,
+ height: this.element.outerHeight() - 1,
+ position: "absolute",
+ left: this.elementOffset.left + "px",
+ top: this.elementOffset.top + "px",
+ zIndex: ++o.zIndex //TODO: Don't modify option
+ });
+
+ this.helper
+ .appendTo("body")
+ .disableSelection();
+
+ } else {
+ this.helper = this.element;
+ }
+
+ },
+
+ _change: {
+ e: function(event, dx) {
+ return { width: this.originalSize.width + dx };
+ },
+ w: function(event, dx) {
+ var cs = this.originalSize, sp = this.originalPosition;
+ return { left: sp.left + dx, width: cs.width - dx };
+ },
+ n: function(event, dx, dy) {
+ var cs = this.originalSize, sp = this.originalPosition;
+ return { top: sp.top + dy, height: cs.height - dy };
+ },
+ s: function(event, dx, dy) {
+ return { height: this.originalSize.height + dy };
+ },
+ se: function(event, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments),
+ this._change.e.apply(this, [ event, dx, dy ]));
+ },
+ sw: function(event, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments),
+ this._change.w.apply(this, [ event, dx, dy ]));
+ },
+ ne: function(event, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments),
+ this._change.e.apply(this, [ event, dx, dy ]));
+ },
+ nw: function(event, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments),
+ this._change.w.apply(this, [ event, dx, dy ]));
+ }
+ },
+
+ _propagate: function(n, event) {
+ $.ui.plugin.call(this, n, [ event, this.ui() ]);
+ (n !== "resize" && this._trigger(n, event, this.ui()));
+ },
+
+ plugins: {},
+
+ ui: function() {
+ return {
+ originalElement: this.originalElement,
+ element: this.element,
+ helper: this.helper,
+ position: this.position,
+ size: this.size,
+ originalSize: this.originalSize,
+ originalPosition: this.originalPosition
+ };
+ }
+
+});
+
+/*
+ * Resizable Extensions
+ */
+
+$.ui.plugin.add("resizable", "animate", {
+
+ stop: function( event ) {
+ var that = $(this).resizable( "instance" ),
+ o = that.options,
+ pr = that._proportionallyResizeElements,
+ ista = pr.length && (/textarea/i).test(pr[0].nodeName),
+ soffseth = ista && that._hasScroll(pr[0], "left") ? 0 : that.sizeDiff.height,
+ soffsetw = ista ? 0 : that.sizeDiff.width,
+ style = { width: (that.size.width - soffsetw), height: (that.size.height - soffseth) },
+ left = (parseInt(that.element.css("left"), 10) +
+ (that.position.left - that.originalPosition.left)) || null,
+ top = (parseInt(that.element.css("top"), 10) +
+ (that.position.top - that.originalPosition.top)) || null;
+
+ that.element.animate(
+ $.extend(style, top && left ? { top: top, left: left } : {}), {
+ duration: o.animateDuration,
+ easing: o.animateEasing,
+ step: function() {
+
+ var data = {
+ width: parseInt(that.element.css("width"), 10),
+ height: parseInt(that.element.css("height"), 10),
+ top: parseInt(that.element.css("top"), 10),
+ left: parseInt(that.element.css("left"), 10)
+ };
+
+ if (pr && pr.length) {
+ $(pr[0]).css({ width: data.width, height: data.height });
+ }
+
+ // propagating resize, and updating values for each animation step
+ that._updateCache(data);
+ that._propagate("resize", event);
+
+ }
+ }
+ );
+ }
+
+});
+
+$.ui.plugin.add( "resizable", "containment", {
+
+ start: function() {
+ var element, p, co, ch, cw, width, height,
+ that = $( this ).resizable( "instance" ),
+ o = that.options,
+ el = that.element,
+ oc = o.containment,
+ ce = ( oc instanceof $ ) ? oc.get( 0 ) : ( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
+
+ if ( !ce ) {
+ return;
+ }
+
+ that.containerElement = $( ce );
+
+ if ( /document/.test( oc ) || oc === document ) {
+ that.containerOffset = {
+ left: 0,
+ top: 0
+ };
+ that.containerPosition = {
+ left: 0,
+ top: 0
+ };
+
+ that.parentData = {
+ element: $( document ),
+ left: 0,
+ top: 0,
+ width: $( document ).width(),
+ height: $( document ).height() || document.body.parentNode.scrollHeight
+ };
+ } else {
+ element = $( ce );
+ p = [];
+ $([ "Top", "Right", "Left", "Bottom" ]).each(function( i, name ) {
+ p[ i ] = that._num( element.css( "padding" + name ) );
+ });
+
+ that.containerOffset = element.offset();
+ that.containerPosition = element.position();
+ that.containerSize = {
+ height: ( element.innerHeight() - p[ 3 ] ),
+ width: ( element.innerWidth() - p[ 1 ] )
+ };
+
+ co = that.containerOffset;
+ ch = that.containerSize.height;
+ cw = that.containerSize.width;
+ width = ( that._hasScroll ( ce, "left" ) ? ce.scrollWidth : cw );
+ height = ( that._hasScroll ( ce ) ? ce.scrollHeight : ch ) ;
+
+ that.parentData = {
+ element: ce,
+ left: co.left,
+ top: co.top,
+ width: width,
+ height: height
+ };
+ }
+ },
+
+ resize: function( event ) {
+ var woset, hoset, isParent, isOffsetRelative,
+ that = $( this ).resizable( "instance" ),
+ o = that.options,
+ co = that.containerOffset,
+ cp = that.position,
+ pRatio = that._aspectRatio || event.shiftKey,
+ cop = {
+ top: 0,
+ left: 0
+ },
+ ce = that.containerElement,
+ continueResize = true;
+
+ if ( ce[ 0 ] !== document && ( /static/ ).test( ce.css( "position" ) ) ) {
+ cop = co;
+ }
+
+ if ( cp.left < ( that._helper ? co.left : 0 ) ) {
+ that.size.width = that.size.width +
+ ( that._helper ?
+ ( that.position.left - co.left ) :
+ ( that.position.left - cop.left ) );
+
+ if ( pRatio ) {
+ that.size.height = that.size.width / that.aspectRatio;
+ continueResize = false;
+ }
+ that.position.left = o.helper ? co.left : 0;
+ }
+
+ if ( cp.top < ( that._helper ? co.top : 0 ) ) {
+ that.size.height = that.size.height +
+ ( that._helper ?
+ ( that.position.top - co.top ) :
+ that.position.top );
+
+ if ( pRatio ) {
+ that.size.width = that.size.height * that.aspectRatio;
+ continueResize = false;
+ }
+ that.position.top = that._helper ? co.top : 0;
+ }
+
+ isParent = that.containerElement.get( 0 ) === that.element.parent().get( 0 );
+ isOffsetRelative = /relative|absolute/.test( that.containerElement.css( "position" ) );
+
+ if ( isParent && isOffsetRelative ) {
+ that.offset.left = that.parentData.left + that.position.left;
+ that.offset.top = that.parentData.top + that.position.top;
+ } else {
+ that.offset.left = that.element.offset().left;
+ that.offset.top = that.element.offset().top;
+ }
+
+ woset = Math.abs( that.sizeDiff.width +
+ (that._helper ?
+ that.offset.left - cop.left :
+ (that.offset.left - co.left)) );
+
+ hoset = Math.abs( that.sizeDiff.height +
+ (that._helper ?
+ that.offset.top - cop.top :
+ (that.offset.top - co.top)) );
+
+ if ( woset + that.size.width >= that.parentData.width ) {
+ that.size.width = that.parentData.width - woset;
+ if ( pRatio ) {
+ that.size.height = that.size.width / that.aspectRatio;
+ continueResize = false;
+ }
+ }
+
+ if ( hoset + that.size.height >= that.parentData.height ) {
+ that.size.height = that.parentData.height - hoset;
+ if ( pRatio ) {
+ that.size.width = that.size.height * that.aspectRatio;
+ continueResize = false;
+ }
+ }
+
+ if ( !continueResize ) {
+ that.position.left = that.prevPosition.left;
+ that.position.top = that.prevPosition.top;
+ that.size.width = that.prevSize.width;
+ that.size.height = that.prevSize.height;
+ }
+ },
+
+ stop: function() {
+ var that = $( this ).resizable( "instance" ),
+ o = that.options,
+ co = that.containerOffset,
+ cop = that.containerPosition,
+ ce = that.containerElement,
+ helper = $( that.helper ),
+ ho = helper.offset(),
+ w = helper.outerWidth() - that.sizeDiff.width,
+ h = helper.outerHeight() - that.sizeDiff.height;
+
+ if ( that._helper && !o.animate && ( /relative/ ).test( ce.css( "position" ) ) ) {
+ $( this ).css({
+ left: ho.left - cop.left - co.left,
+ width: w,
+ height: h
+ });
+ }
+
+ if ( that._helper && !o.animate && ( /static/ ).test( ce.css( "position" ) ) ) {
+ $( this ).css({
+ left: ho.left - cop.left - co.left,
+ width: w,
+ height: h
+ });
+ }
+ }
+});
+
+$.ui.plugin.add("resizable", "alsoResize", {
+
+ start: function() {
+ var that = $(this).resizable( "instance" ),
+ o = that.options;
+
+ $(o.alsoResize).each(function() {
+ var el = $(this);
+ el.data("ui-resizable-alsoresize", {
+ width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),
+ left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10)
+ });
+ });
+ },
+
+ resize: function(event, ui) {
+ var that = $(this).resizable( "instance" ),
+ o = that.options,
+ os = that.originalSize,
+ op = that.originalPosition,
+ delta = {
+ height: (that.size.height - os.height) || 0,
+ width: (that.size.width - os.width) || 0,
+ top: (that.position.top - op.top) || 0,
+ left: (that.position.left - op.left) || 0
+ };
+
+ $(o.alsoResize).each(function() {
+ var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {},
+ css = el.parents(ui.originalElement[0]).length ?
+ [ "width", "height" ] :
+ [ "width", "height", "top", "left" ];
+
+ $.each(css, function(i, prop) {
+ var sum = (start[prop] || 0) + (delta[prop] || 0);
+ if (sum && sum >= 0) {
+ style[prop] = sum || null;
+ }
+ });
+
+ el.css(style);
+ });
+ },
+
+ stop: function() {
+ $(this).removeData("resizable-alsoresize");
+ }
+});
+
+$.ui.plugin.add("resizable", "ghost", {
+
+ start: function() {
+
+ var that = $(this).resizable( "instance" ), o = that.options, cs = that.size;
+
+ that.ghost = that.originalElement.clone();
+ that.ghost
+ .css({
+ opacity: 0.25,
+ display: "block",
+ position: "relative",
+ height: cs.height,
+ width: cs.width,
+ margin: 0,
+ left: 0,
+ top: 0
+ })
+ .addClass("ui-resizable-ghost")
+ .addClass(typeof o.ghost === "string" ? o.ghost : "");
+
+ that.ghost.appendTo(that.helper);
+
+ },
+
+ resize: function() {
+ var that = $(this).resizable( "instance" );
+ if (that.ghost) {
+ that.ghost.css({
+ position: "relative",
+ height: that.size.height,
+ width: that.size.width
+ });
+ }
+ },
+
+ stop: function() {
+ var that = $(this).resizable( "instance" );
+ if (that.ghost && that.helper) {
+ that.helper.get(0).removeChild(that.ghost.get(0));
+ }
+ }
+
+});
+
+$.ui.plugin.add("resizable", "grid", {
+
+ resize: function() {
+ var outerDimensions,
+ that = $(this).resizable( "instance" ),
+ o = that.options,
+ cs = that.size,
+ os = that.originalSize,
+ op = that.originalPosition,
+ a = that.axis,
+ grid = typeof o.grid === "number" ? [ o.grid, o.grid ] : o.grid,
+ gridX = (grid[0] || 1),
+ gridY = (grid[1] || 1),
+ ox = Math.round((cs.width - os.width) / gridX) * gridX,
+ oy = Math.round((cs.height - os.height) / gridY) * gridY,
+ newWidth = os.width + ox,
+ newHeight = os.height + oy,
+ isMaxWidth = o.maxWidth && (o.maxWidth < newWidth),
+ isMaxHeight = o.maxHeight && (o.maxHeight < newHeight),
+ isMinWidth = o.minWidth && (o.minWidth > newWidth),
+ isMinHeight = o.minHeight && (o.minHeight > newHeight);
+
+ o.grid = grid;
+
+ if (isMinWidth) {
+ newWidth += gridX;
+ }
+ if (isMinHeight) {
+ newHeight += gridY;
+ }
+ if (isMaxWidth) {
+ newWidth -= gridX;
+ }
+ if (isMaxHeight) {
+ newHeight -= gridY;
+ }
+
+ if (/^(se|s|e)$/.test(a)) {
+ that.size.width = newWidth;
+ that.size.height = newHeight;
+ } else if (/^(ne)$/.test(a)) {
+ that.size.width = newWidth;
+ that.size.height = newHeight;
+ that.position.top = op.top - oy;
+ } else if (/^(sw)$/.test(a)) {
+ that.size.width = newWidth;
+ that.size.height = newHeight;
+ that.position.left = op.left - ox;
+ } else {
+ if ( newHeight - gridY <= 0 || newWidth - gridX <= 0) {
+ outerDimensions = that._getPaddingPlusBorderDimensions( this );
+ }
+
+ if ( newHeight - gridY > 0 ) {
+ that.size.height = newHeight;
+ that.position.top = op.top - oy;
+ } else {
+ newHeight = gridY - outerDimensions.height;
+ that.size.height = newHeight;
+ that.position.top = op.top + os.height - newHeight;
+ }
+ if ( newWidth - gridX > 0 ) {
+ that.size.width = newWidth;
+ that.position.left = op.left - ox;
+ } else {
+ newWidth = gridX - outerDimensions.width;
+ that.size.width = newWidth;
+ that.position.left = op.left + os.width - newWidth;
+ }
+ }
+ }
+
+});
+
+var resizable = $.ui.resizable;
+
+
+/*!
+ * jQuery UI Selectable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/selectable/
+ */
+
+
+var selectable = $.widget("ui.selectable", $.ui.mouse, {
+ version: "1.11.4",
+ options: {
+ appendTo: "body",
+ autoRefresh: true,
+ distance: 0,
+ filter: "*",
+ tolerance: "touch",
+
+ // callbacks
+ selected: null,
+ selecting: null,
+ start: null,
+ stop: null,
+ unselected: null,
+ unselecting: null
+ },
+ _create: function() {
+ var selectees,
+ that = this;
+
+ this.element.addClass("ui-selectable");
+
+ this.dragged = false;
+
+ // cache selectee children based on filter
+ this.refresh = function() {
+ selectees = $(that.options.filter, that.element[0]);
+ selectees.addClass("ui-selectee");
+ selectees.each(function() {
+ var $this = $(this),
+ pos = $this.offset();
+ $.data(this, "selectable-item", {
+ element: this,
+ $element: $this,
+ left: pos.left,
+ top: pos.top,
+ right: pos.left + $this.outerWidth(),
+ bottom: pos.top + $this.outerHeight(),
+ startselected: false,
+ selected: $this.hasClass("ui-selected"),
+ selecting: $this.hasClass("ui-selecting"),
+ unselecting: $this.hasClass("ui-unselecting")
+ });
+ });
+ };
+ this.refresh();
+
+ this.selectees = selectees.addClass("ui-selectee");
+
+ this._mouseInit();
+
+ this.helper = $("<div class='ui-selectable-helper'></div>");
+ },
+
+ _destroy: function() {
+ this.selectees
+ .removeClass("ui-selectee")
+ .removeData("selectable-item");
+ this.element
+ .removeClass("ui-selectable ui-selectable-disabled");
+ this._mouseDestroy();
+ },
+
+ _mouseStart: function(event) {
+ var that = this,
+ options = this.options;
+
+ this.opos = [ event.pageX, event.pageY ];
+
+ if (this.options.disabled) {
+ return;
+ }
+
+ this.selectees = $(options.filter, this.element[0]);
+
+ this._trigger("start", event);
+
+ $(options.appendTo).append(this.helper);
+ // position helper (lasso)
+ this.helper.css({
+ "left": event.pageX,
+ "top": event.pageY,
+ "width": 0,
+ "height": 0
+ });
+
+ if (options.autoRefresh) {
+ this.refresh();
+ }
+
+ this.selectees.filter(".ui-selected").each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.startselected = true;
+ if (!event.metaKey && !event.ctrlKey) {
+ selectee.$element.removeClass("ui-selected");
+ selectee.selected = false;
+ selectee.$element.addClass("ui-unselecting");
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ });
+
+ $(event.target).parents().addBack().each(function() {
+ var doSelect,
+ selectee = $.data(this, "selectable-item");
+ if (selectee) {
+ doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass("ui-selected");
+ selectee.$element
+ .removeClass(doSelect ? "ui-unselecting" : "ui-selected")
+ .addClass(doSelect ? "ui-selecting" : "ui-unselecting");
+ selectee.unselecting = !doSelect;
+ selectee.selecting = doSelect;
+ selectee.selected = doSelect;
+ // selectable (UN)SELECTING callback
+ if (doSelect) {
+ that._trigger("selecting", event, {
+ selecting: selectee.element
+ });
+ } else {
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ return false;
+ }
+ });
+
+ },
+
+ _mouseDrag: function(event) {
+
+ this.dragged = true;
+
+ if (this.options.disabled) {
+ return;
+ }
+
+ var tmp,
+ that = this,
+ options = this.options,
+ x1 = this.opos[0],
+ y1 = this.opos[1],
+ x2 = event.pageX,
+ y2 = event.pageY;
+
+ if (x1 > x2) { tmp = x2; x2 = x1; x1 = tmp; }
+ if (y1 > y2) { tmp = y2; y2 = y1; y1 = tmp; }
+ this.helper.css({ left: x1, top: y1, width: x2 - x1, height: y2 - y1 });
+
+ this.selectees.each(function() {
+ var selectee = $.data(this, "selectable-item"),
+ hit = false;
+
+ //prevent helper from being selected if appendTo: selectable
+ if (!selectee || selectee.element === that.element[0]) {
+ return;
+ }
+
+ if (options.tolerance === "touch") {
+ hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
+ } else if (options.tolerance === "fit") {
+ hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
+ }
+
+ if (hit) {
+ // SELECT
+ if (selectee.selected) {
+ selectee.$element.removeClass("ui-selected");
+ selectee.selected = false;
+ }
+ if (selectee.unselecting) {
+ selectee.$element.removeClass("ui-unselecting");
+ selectee.unselecting = false;
+ }
+ if (!selectee.selecting) {
+ selectee.$element.addClass("ui-selecting");
+ selectee.selecting = true;
+ // selectable SELECTING callback
+ that._trigger("selecting", event, {
+ selecting: selectee.element
+ });
+ }
+ } else {
+ // UNSELECT
+ if (selectee.selecting) {
+ if ((event.metaKey || event.ctrlKey) && selectee.startselected) {
+ selectee.$element.removeClass("ui-selecting");
+ selectee.selecting = false;
+ selectee.$element.addClass("ui-selected");
+ selectee.selected = true;
+ } else {
+ selectee.$element.removeClass("ui-selecting");
+ selectee.selecting = false;
+ if (selectee.startselected) {
+ selectee.$element.addClass("ui-unselecting");
+ selectee.unselecting = true;
+ }
+ // selectable UNSELECTING callback
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ }
+ if (selectee.selected) {
+ if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {
+ selectee.$element.removeClass("ui-selected");
+ selectee.selected = false;
+
+ selectee.$element.addClass("ui-unselecting");
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ }
+ }
+ });
+
+ return false;
+ },
+
+ _mouseStop: function(event) {
+ var that = this;
+
+ this.dragged = false;
+
+ $(".ui-unselecting", this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass("ui-unselecting");
+ selectee.unselecting = false;
+ selectee.startselected = false;
+ that._trigger("unselected", event, {
+ unselected: selectee.element
+ });
+ });
+ $(".ui-selecting", this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass("ui-selecting").addClass("ui-selected");
+ selectee.selecting = false;
+ selectee.selected = true;
+ selectee.startselected = true;
+ that._trigger("selected", event, {
+ selected: selectee.element
+ });
+ });
+ this._trigger("stop", event);
+
+ this.helper.remove();
+
+ return false;
+ }
+
+});
+
+
+/*!
+ * jQuery UI Sortable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/sortable/
+ */
+
+
+var sortable = $.widget("ui.sortable", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "sort",
+ ready: false,
+ options: {
+ appendTo: "parent",
+ axis: false,
+ connectWith: false,
+ containment: false,
+ cursor: "auto",
+ cursorAt: false,
+ dropOnEmpty: true,
+ forcePlaceholderSize: false,
+ forceHelperSize: false,
+ grid: false,
+ handle: false,
+ helper: "original",
+ items: "> *",
+ opacity: false,
+ placeholder: false,
+ revert: false,
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ scope: "default",
+ tolerance: "intersect",
+ zIndex: 1000,
+
+ // callbacks
+ activate: null,
+ beforeStop: null,
+ change: null,
+ deactivate: null,
+ out: null,
+ over: null,
+ receive: null,
+ remove: null,
+ sort: null,
+ start: null,
+ stop: null,
+ update: null
+ },
+
+ _isOverAxis: function( x, reference, size ) {
+ return ( x >= reference ) && ( x < ( reference + size ) );
+ },
+
+ _isFloating: function( item ) {
+ return (/left|right/).test(item.css("float")) || (/inline|table-cell/).test(item.css("display"));
+ },
+
+ _create: function() {
+ this.containerCache = {};
+ this.element.addClass("ui-sortable");
+
+ //Get the items
+ this.refresh();
+
+ //Let's determine the parent's offset
+ this.offset = this.element.offset();
+
+ //Initialize mouse events for interaction
+ this._mouseInit();
+
+ this._setHandleClassName();
+
+ //We're ready to go
+ this.ready = true;
+
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+
+ if ( key === "handle" ) {
+ this._setHandleClassName();
+ }
+ },
+
+ _setHandleClassName: function() {
+ this.element.find( ".ui-sortable-handle" ).removeClass( "ui-sortable-handle" );
+ $.each( this.items, function() {
+ ( this.instance.options.handle ?
+ this.item.find( this.instance.options.handle ) : this.item )
+ .addClass( "ui-sortable-handle" );
+ });
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-sortable ui-sortable-disabled" )
+ .find( ".ui-sortable-handle" )
+ .removeClass( "ui-sortable-handle" );
+ this._mouseDestroy();
+
+ for ( var i = this.items.length - 1; i >= 0; i-- ) {
+ this.items[i].item.removeData(this.widgetName + "-item");
+ }
+
+ return this;
+ },
+
+ _mouseCapture: function(event, overrideHandle) {
+ var currentItem = null,
+ validHandle = false,
+ that = this;
+
+ if (this.reverting) {
+ return false;
+ }
+
+ if(this.options.disabled || this.options.type === "static") {
+ return false;
+ }
+
+ //We have to refresh the items data once first
+ this._refreshItems(event);
+
+ //Find out if the clicked node (or one of its parents) is a actual item in this.items
+ $(event.target).parents().each(function() {
+ if($.data(this, that.widgetName + "-item") === that) {
+ currentItem = $(this);
+ return false;
+ }
+ });
+ if($.data(event.target, that.widgetName + "-item") === that) {
+ currentItem = $(event.target);
+ }
+
+ if(!currentItem) {
+ return false;
+ }
+ if(this.options.handle && !overrideHandle) {
+ $(this.options.handle, currentItem).find("*").addBack().each(function() {
+ if(this === event.target) {
+ validHandle = true;
+ }
+ });
+ if(!validHandle) {
+ return false;
+ }
+ }
+
+ this.currentItem = currentItem;
+ this._removeCurrentsFromItems();
+ return true;
+
+ },
+
+ _mouseStart: function(event, overrideHandle, noActivation) {
+
+ var i, body,
+ o = this.options;
+
+ this.currentContainer = this;
+
+ //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture
+ this.refreshPositions();
+
+ //Create and append the visible helper
+ this.helper = this._createHelper(event);
+
+ //Cache the helper size
+ this._cacheHelperProportions();
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ //Cache the margins of the original element
+ this._cacheMargins();
+
+ //Get the next scrolling parent
+ this.scrollParent = this.helper.scrollParent();
+
+ //The element's absolute position on the page minus margins
+ this.offset = this.currentItem.offset();
+ this.offset = {
+ top: this.offset.top - this.margins.top,
+ left: this.offset.left - this.margins.left
+ };
+
+ $.extend(this.offset, {
+ click: { //Where the click happened, relative to the element
+ left: event.pageX - this.offset.left,
+ top: event.pageY - this.offset.top
+ },
+ parent: this._getParentOffset(),
+ relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper
+ });
+
+ // Only after we got the offset, we can change the helper's position to absolute
+ // TODO: Still need to figure out a way to make relative sorting possible
+ this.helper.css("position", "absolute");
+ this.cssPosition = this.helper.css("position");
+
+ //Generate the original position
+ this.originalPosition = this._generatePosition(event);
+ this.originalPageX = event.pageX;
+ this.originalPageY = event.pageY;
+
+ //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
+
+ //Cache the former DOM position
+ this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] };
+
+ //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way
+ if(this.helper[0] !== this.currentItem[0]) {
+ this.currentItem.hide();
+ }
+
+ //Create the placeholder
+ this._createPlaceholder();
+
+ //Set a containment if given in the options
+ if(o.containment) {
+ this._setContainment();
+ }
+
+ if( o.cursor && o.cursor !== "auto" ) { // cursor option
+ body = this.document.find( "body" );
+
+ // support: IE
+ this.storedCursor = body.css( "cursor" );
+ body.css( "cursor", o.cursor );
+
+ this.storedStylesheet = $( "<style>*{ cursor: "+o.cursor+" !important; }</style>" ).appendTo( body );
+ }
+
+ if(o.opacity) { // opacity option
+ if (this.helper.css("opacity")) {
+ this._storedOpacity = this.helper.css("opacity");
+ }
+ this.helper.css("opacity", o.opacity);
+ }
+
+ if(o.zIndex) { // zIndex option
+ if (this.helper.css("zIndex")) {
+ this._storedZIndex = this.helper.css("zIndex");
+ }
+ this.helper.css("zIndex", o.zIndex);
+ }
+
+ //Prepare scrolling
+ if(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !== "HTML") {
+ this.overflowOffset = this.scrollParent.offset();
+ }
+
+ //Call callbacks
+ this._trigger("start", event, this._uiHash());
+
+ //Recache the helper size
+ if(!this._preserveHelperProportions) {
+ this._cacheHelperProportions();
+ }
+
+
+ //Post "activate" events to possible containers
+ if( !noActivation ) {
+ for ( i = this.containers.length - 1; i >= 0; i-- ) {
+ this.containers[ i ]._trigger( "activate", event, this._uiHash( this ) );
+ }
+ }
+
+ //Prepare possible droppables
+ if($.ui.ddmanager) {
+ $.ui.ddmanager.current = this;
+ }
+
+ if ($.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(this, event);
+ }
+
+ this.dragging = true;
+
+ this.helper.addClass("ui-sortable-helper");
+ this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ return true;
+
+ },
+
+ _mouseDrag: function(event) {
+ var i, item, itemElement, intersection,
+ o = this.options,
+ scrolled = false;
+
+ //Compute the helpers position
+ this.position = this._generatePosition(event);
+ this.positionAbs = this._convertPositionTo("absolute");
+
+ if (!this.lastPositionAbs) {
+ this.lastPositionAbs = this.positionAbs;
+ }
+
+ //Do scrolling
+ if(this.options.scroll) {
+ if(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !== "HTML") {
+
+ if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {
+ this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
+ } else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) {
+ this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
+ }
+
+ if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {
+ this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
+ } else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) {
+ this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
+ }
+
+ } else {
+
+ if(event.pageY - this.document.scrollTop() < o.scrollSensitivity) {
+ scrolled = this.document.scrollTop(this.document.scrollTop() - o.scrollSpeed);
+ } else if(this.window.height() - (event.pageY - this.document.scrollTop()) < o.scrollSensitivity) {
+ scrolled = this.document.scrollTop(this.document.scrollTop() + o.scrollSpeed);
+ }
+
+ if(event.pageX - this.document.scrollLeft() < o.scrollSensitivity) {
+ scrolled = this.document.scrollLeft(this.document.scrollLeft() - o.scrollSpeed);
+ } else if(this.window.width() - (event.pageX - this.document.scrollLeft()) < o.scrollSensitivity) {
+ scrolled = this.document.scrollLeft(this.document.scrollLeft() + o.scrollSpeed);
+ }
+
+ }
+
+ if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(this, event);
+ }
+ }
+
+ //Regenerate the absolute position used for position checks
+ this.positionAbs = this._convertPositionTo("absolute");
+
+ //Set the helper position
+ if(!this.options.axis || this.options.axis !== "y") {
+ this.helper[0].style.left = this.position.left+"px";
+ }
+ if(!this.options.axis || this.options.axis !== "x") {
+ this.helper[0].style.top = this.position.top+"px";
+ }
+
+ //Rearrange
+ for (i = this.items.length - 1; i >= 0; i--) {
+
+ //Cache variables and intersection, continue if no intersection
+ item = this.items[i];
+ itemElement = item.item[0];
+ intersection = this._intersectsWithPointer(item);
+ if (!intersection) {
+ continue;
+ }
+
+ // Only put the placeholder inside the current Container, skip all
+ // items from other containers. This works because when moving
+ // an item from one container to another the
+ // currentContainer is switched before the placeholder is moved.
+ //
+ // Without this, moving items in "sub-sortables" can cause
+ // the placeholder to jitter between the outer and inner container.
+ if (item.instance !== this.currentContainer) {
+ continue;
+ }
+
+ // cannot intersect with itself
+ // no useless actions that have been done before
+ // no action if the item moved is the parent of the item checked
+ if (itemElement !== this.currentItem[0] &&
+ this.placeholder[intersection === 1 ? "next" : "prev"]()[0] !== itemElement &&
+ !$.contains(this.placeholder[0], itemElement) &&
+ (this.options.type === "semi-dynamic" ? !$.contains(this.element[0], itemElement) : true)
+ ) {
+
+ this.direction = intersection === 1 ? "down" : "up";
+
+ if (this.options.tolerance === "pointer" || this._intersectsWithSides(item)) {
+ this._rearrange(event, item);
+ } else {
+ break;
+ }
+
+ this._trigger("change", event, this._uiHash());
+ break;
+ }
+ }
+
+ //Post events to containers
+ this._contactContainers(event);
+
+ //Interconnect with droppables
+ if($.ui.ddmanager) {
+ $.ui.ddmanager.drag(this, event);
+ }
+
+ //Call callbacks
+ this._trigger("sort", event, this._uiHash());
+
+ this.lastPositionAbs = this.positionAbs;
+ return false;
+
+ },
+
+ _mouseStop: function(event, noPropagation) {
+
+ if(!event) {
+ return;
+ }
+
+ //If we are using droppables, inform the manager about the drop
+ if ($.ui.ddmanager && !this.options.dropBehaviour) {
+ $.ui.ddmanager.drop(this, event);
+ }
+
+ if(this.options.revert) {
+ var that = this,
+ cur = this.placeholder.offset(),
+ axis = this.options.axis,
+ animation = {};
+
+ if ( !axis || axis === "x" ) {
+ animation.left = cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollLeft);
+ }
+ if ( !axis || axis === "y" ) {
+ animation.top = cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollTop);
+ }
+ this.reverting = true;
+ $(this.helper).animate( animation, parseInt(this.options.revert, 10) || 500, function() {
+ that._clear(event);
+ });
+ } else {
+ this._clear(event, noPropagation);
+ }
+
+ return false;
+
+ },
+
+ cancel: function() {
+
+ if(this.dragging) {
+
+ this._mouseUp({ target: null });
+
+ if(this.options.helper === "original") {
+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
+ } else {
+ this.currentItem.show();
+ }
+
+ //Post deactivating events to containers
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ this.containers[i]._trigger("deactivate", null, this._uiHash(this));
+ if(this.containers[i].containerCache.over) {
+ this.containers[i]._trigger("out", null, this._uiHash(this));
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ }
+
+ if (this.placeholder) {
+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
+ if(this.placeholder[0].parentNode) {
+ this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
+ }
+ if(this.options.helper !== "original" && this.helper && this.helper[0].parentNode) {
+ this.helper.remove();
+ }
+
+ $.extend(this, {
+ helper: null,
+ dragging: false,
+ reverting: false,
+ _noFinalSort: null
+ });
+
+ if(this.domPosition.prev) {
+ $(this.domPosition.prev).after(this.currentItem);
+ } else {
+ $(this.domPosition.parent).prepend(this.currentItem);
+ }
+ }
+
+ return this;
+
+ },
+
+ serialize: function(o) {
+
+ var items = this._getItemsAsjQuery(o && o.connected),
+ str = [];
+ o = o || {};
+
+ $(items).each(function() {
+ var res = ($(o.item || this).attr(o.attribute || "id") || "").match(o.expression || (/(.+)[\-=_](.+)/));
+ if (res) {
+ str.push((o.key || res[1]+"[]")+"="+(o.key && o.expression ? res[1] : res[2]));
+ }
+ });
+
+ if(!str.length && o.key) {
+ str.push(o.key + "=");
+ }
+
+ return str.join("&");
+
+ },
+
+ toArray: function(o) {
+
+ var items = this._getItemsAsjQuery(o && o.connected),
+ ret = [];
+
+ o = o || {};
+
+ items.each(function() { ret.push($(o.item || this).attr(o.attribute || "id") || ""); });
+ return ret;
+
+ },
+
+ /* Be careful with the following core functions */
+ _intersectsWith: function(item) {
+
+ var x1 = this.positionAbs.left,
+ x2 = x1 + this.helperProportions.width,
+ y1 = this.positionAbs.top,
+ y2 = y1 + this.helperProportions.height,
+ l = item.left,
+ r = l + item.width,
+ t = item.top,
+ b = t + item.height,
+ dyClick = this.offset.click.top,
+ dxClick = this.offset.click.left,
+ isOverElementHeight = ( this.options.axis === "x" ) || ( ( y1 + dyClick ) > t && ( y1 + dyClick ) < b ),
+ isOverElementWidth = ( this.options.axis === "y" ) || ( ( x1 + dxClick ) > l && ( x1 + dxClick ) < r ),
+ isOverElement = isOverElementHeight && isOverElementWidth;
+
+ if ( this.options.tolerance === "pointer" ||
+ this.options.forcePointerForContainers ||
+ (this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
+ ) {
+ return isOverElement;
+ } else {
+
+ return (l < x1 + (this.helperProportions.width / 2) && // Right Half
+ x2 - (this.helperProportions.width / 2) < r && // Left Half
+ t < y1 + (this.helperProportions.height / 2) && // Bottom Half
+ y2 - (this.helperProportions.height / 2) < b ); // Top Half
+
+ }
+ },
+
+ _intersectsWithPointer: function(item) {
+
+ var isOverElementHeight = (this.options.axis === "x") || this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
+ isOverElementWidth = (this.options.axis === "y") || this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
+ isOverElement = isOverElementHeight && isOverElementWidth,
+ verticalDirection = this._getDragVerticalDirection(),
+ horizontalDirection = this._getDragHorizontalDirection();
+
+ if (!isOverElement) {
+ return false;
+ }
+
+ return this.floating ?
+ ( ((horizontalDirection && horizontalDirection === "right") || verticalDirection === "down") ? 2 : 1 )
+ : ( verticalDirection && (verticalDirection === "down" ? 2 : 1) );
+
+ },
+
+ _intersectsWithSides: function(item) {
+
+ var isOverBottomHalf = this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),
+ isOverRightHalf = this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
+ verticalDirection = this._getDragVerticalDirection(),
+ horizontalDirection = this._getDragHorizontalDirection();
+
+ if (this.floating && horizontalDirection) {
+ return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
+ } else {
+ return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
+ }
+
+ },
+
+ _getDragVerticalDirection: function() {
+ var delta = this.positionAbs.top - this.lastPositionAbs.top;
+ return delta !== 0 && (delta > 0 ? "down" : "up");
+ },
+
+ _getDragHorizontalDirection: function() {
+ var delta = this.positionAbs.left - this.lastPositionAbs.left;
+ return delta !== 0 && (delta > 0 ? "right" : "left");
+ },
+
+ refresh: function(event) {
+ this._refreshItems(event);
+ this._setHandleClassName();
+ this.refreshPositions();
+ return this;
+ },
+
+ _connectWith: function() {
+ var options = this.options;
+ return options.connectWith.constructor === String ? [options.connectWith] : options.connectWith;
+ },
+
+ _getItemsAsjQuery: function(connected) {
+
+ var i, j, cur, inst,
+ items = [],
+ queries = [],
+ connectWith = this._connectWith();
+
+ if(connectWith && connected) {
+ for (i = connectWith.length - 1; i >= 0; i--){
+ cur = $(connectWith[i], this.document[0]);
+ for ( j = cur.length - 1; j >= 0; j--){
+ inst = $.data(cur[j], this.widgetFullName);
+ if(inst && inst !== this && !inst.options.disabled) {
+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), inst]);
+ }
+ }
+ }
+ }
+
+ queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]);
+
+ function addItems() {
+ items.push( this );
+ }
+ for (i = queries.length - 1; i >= 0; i--){
+ queries[i][0].each( addItems );
+ }
+
+ return $(items);
+
+ },
+
+ _removeCurrentsFromItems: function() {
+
+ var list = this.currentItem.find(":data(" + this.widgetName + "-item)");
+
+ this.items = $.grep(this.items, function (item) {
+ for (var j=0; j < list.length; j++) {
+ if(list[j] === item.item[0]) {
+ return false;
+ }
+ }
+ return true;
+ });
+
+ },
+
+ _refreshItems: function(event) {
+
+ this.items = [];
+ this.containers = [this];
+
+ var i, j, cur, inst, targetData, _queries, item, queriesLength,
+ items = this.items,
+ queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]],
+ connectWith = this._connectWith();
+
+ if(connectWith && this.ready) { //Shouldn't be run the first time through due to massive slow-down
+ for (i = connectWith.length - 1; i >= 0; i--){
+ cur = $(connectWith[i], this.document[0]);
+ for (j = cur.length - 1; j >= 0; j--){
+ inst = $.data(cur[j], this.widgetFullName);
+ if(inst && inst !== this && !inst.options.disabled) {
+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]);
+ this.containers.push(inst);
+ }
+ }
+ }
+ }
+
+ for (i = queries.length - 1; i >= 0; i--) {
+ targetData = queries[i][1];
+ _queries = queries[i][0];
+
+ for (j=0, queriesLength = _queries.length; j < queriesLength; j++) {
+ item = $(_queries[j]);
+
+ item.data(this.widgetName + "-item", targetData); // Data for target checking (mouse manager)
+
+ items.push({
+ item: item,
+ instance: targetData,
+ width: 0, height: 0,
+ left: 0, top: 0
+ });
+ }
+ }
+
+ },
+
+ refreshPositions: function(fast) {
+
+ // Determine whether items are being displayed horizontally
+ this.floating = this.items.length ?
+ this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
+ false;
+
+ //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
+ if(this.offsetParent && this.helper) {
+ this.offset.parent = this._getParentOffset();
+ }
+
+ var i, item, t, p;
+
+ for (i = this.items.length - 1; i >= 0; i--){
+ item = this.items[i];
+
+ //We ignore calculating positions of all connected containers when we're not over them
+ if(item.instance !== this.currentContainer && this.currentContainer && item.item[0] !== this.currentItem[0]) {
+ continue;
+ }
+
+ t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
+
+ if (!fast) {
+ item.width = t.outerWidth();
+ item.height = t.outerHeight();
+ }
+
+ p = t.offset();
+ item.left = p.left;
+ item.top = p.top;
+ }
+
+ if(this.options.custom && this.options.custom.refreshContainers) {
+ this.options.custom.refreshContainers.call(this);
+ } else {
+ for (i = this.containers.length - 1; i >= 0; i--){
+ p = this.containers[i].element.offset();
+ this.containers[i].containerCache.left = p.left;
+ this.containers[i].containerCache.top = p.top;
+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
+ this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
+ }
+ }
+
+ return this;
+ },
+
+ _createPlaceholder: function(that) {
+ that = that || this;
+ var className,
+ o = that.options;
+
+ if(!o.placeholder || o.placeholder.constructor === String) {
+ className = o.placeholder;
+ o.placeholder = {
+ element: function() {
+
+ var nodeName = that.currentItem[0].nodeName.toLowerCase(),
+ element = $( "<" + nodeName + ">", that.document[0] )
+ .addClass(className || that.currentItem[0].className+" ui-sortable-placeholder")
+ .removeClass("ui-sortable-helper");
+
+ if ( nodeName === "tbody" ) {
+ that._createTrPlaceholder(
+ that.currentItem.find( "tr" ).eq( 0 ),
+ $( "<tr>", that.document[ 0 ] ).appendTo( element )
+ );
+ } else if ( nodeName === "tr" ) {
+ that._createTrPlaceholder( that.currentItem, element );
+ } else if ( nodeName === "img" ) {
+ element.attr( "src", that.currentItem.attr( "src" ) );
+ }
+
+ if ( !className ) {
+ element.css( "visibility", "hidden" );
+ }
+
+ return element;
+ },
+ update: function(container, p) {
+
+ // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that
+ // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified
+ if(className && !o.forcePlaceholderSize) {
+ return;
+ }
+
+ //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item
+ if(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css("paddingTop")||0, 10) - parseInt(that.currentItem.css("paddingBottom")||0, 10)); }
+ if(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css("paddingLeft")||0, 10) - parseInt(that.currentItem.css("paddingRight")||0, 10)); }
+ }
+ };
+ }
+
+ //Create the placeholder
+ that.placeholder = $(o.placeholder.element.call(that.element, that.currentItem));
+
+ //Append it after the actual current item
+ that.currentItem.after(that.placeholder);
+
+ //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317)
+ o.placeholder.update(that, that.placeholder);
+
+ },
+
+ _createTrPlaceholder: function( sourceTr, targetTr ) {
+ var that = this;
+
+ sourceTr.children().each(function() {
+ $( "<td> </td>", that.document[ 0 ] )
+ .attr( "colspan", $( this ).attr( "colspan" ) || 1 )
+ .appendTo( targetTr );
+ });
+ },
+
+ _contactContainers: function(event) {
+ var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
+ innermostContainer = null,
+ innermostIndex = null;
+
+ // get innermost container that intersects with item
+ for (i = this.containers.length - 1; i >= 0; i--) {
+
+ // never consider a container that's located within the item itself
+ if($.contains(this.currentItem[0], this.containers[i].element[0])) {
+ continue;
+ }
+
+ if(this._intersectsWith(this.containers[i].containerCache)) {
+
+ // if we've already found a container and it's more "inner" than this, then continue
+ if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0])) {
+ continue;
+ }
+
+ innermostContainer = this.containers[i];
+ innermostIndex = i;
+
+ } else {
+ // container doesn't intersect. trigger "out" event if necessary
+ if(this.containers[i].containerCache.over) {
+ this.containers[i]._trigger("out", event, this._uiHash(this));
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ }
+
+ // if no intersecting containers found, return
+ if(!innermostContainer) {
+ return;
+ }
+
+ // move the item into the container if it's not there already
+ if(this.containers.length === 1) {
+ if (!this.containers[innermostIndex].containerCache.over) {
+ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
+ this.containers[innermostIndex].containerCache.over = 1;
+ }
+ } else {
+
+ //When entering a new container, we will find the item with the least distance and append our item near it
+ dist = 10000;
+ itemWithLeastDistance = null;
+ floating = innermostContainer.floating || this._isFloating(this.currentItem);
+ posProperty = floating ? "left" : "top";
+ sizeProperty = floating ? "width" : "height";
+ axis = floating ? "clientX" : "clientY";
+
+ for (j = this.items.length - 1; j >= 0; j--) {
+ if(!$.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) {
+ continue;
+ }
+ if(this.items[j].item[0] === this.currentItem[0]) {
+ continue;
+ }
+
+ cur = this.items[j].item.offset()[posProperty];
+ nearBottom = false;
+ if ( event[ axis ] - cur > this.items[ j ][ sizeProperty ] / 2 ) {
+ nearBottom = true;
+ }
+
+ if ( Math.abs( event[ axis ] - cur ) < dist ) {
+ dist = Math.abs( event[ axis ] - cur );
+ itemWithLeastDistance = this.items[ j ];
+ this.direction = nearBottom ? "up": "down";
+ }
+ }
+
+ //Check if dropOnEmpty is enabled
+ if(!itemWithLeastDistance && !this.options.dropOnEmpty) {
+ return;
+ }
+
+ if(this.currentContainer === this.containers[innermostIndex]) {
+ if ( !this.currentContainer.containerCache.over ) {
+ this.containers[ innermostIndex ]._trigger( "over", event, this._uiHash() );
+ this.currentContainer.containerCache.over = 1;
+ }
+ return;
+ }
+
+ itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);
+ this._trigger("change", event, this._uiHash());
+ this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));
+ this.currentContainer = this.containers[innermostIndex];
+
+ //Update the placeholder
+ this.options.placeholder.update(this.currentContainer, this.placeholder);
+
+ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
+ this.containers[innermostIndex].containerCache.over = 1;
+ }
+
+
+ },
+
+ _createHelper: function(event) {
+
+ var o = this.options,
+ helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper === "clone" ? this.currentItem.clone() : this.currentItem);
+
+ //Add the helper to the DOM if that didn't happen already
+ if(!helper.parents("body").length) {
+ $(o.appendTo !== "parent" ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]);
+ }
+
+ if(helper[0] === this.currentItem[0]) {
+ this._storedCSS = { width: this.currentItem[0].style.width, height: this.currentItem[0].style.height, position: this.currentItem.css("position"), top: this.currentItem.css("top"), left: this.currentItem.css("left") };
+ }
+
+ if(!helper[0].style.width || o.forceHelperSize) {
+ helper.width(this.currentItem.width());
+ }
+ if(!helper[0].style.height || o.forceHelperSize) {
+ helper.height(this.currentItem.height());
+ }
+
+ return helper;
+
+ },
+
+ _adjustOffsetFromHelper: function(obj) {
+ if (typeof obj === "string") {
+ obj = obj.split(" ");
+ }
+ if ($.isArray(obj)) {
+ obj = {left: +obj[0], top: +obj[1] || 0};
+ }
+ if ("left" in obj) {
+ this.offset.click.left = obj.left + this.margins.left;
+ }
+ if ("right" in obj) {
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
+ }
+ if ("top" in obj) {
+ this.offset.click.top = obj.top + this.margins.top;
+ }
+ if ("bottom" in obj) {
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
+ }
+ },
+
+ _getParentOffset: function() {
+
+
+ //Get the offsetParent and cache its position
+ this.offsetParent = this.helper.offsetParent();
+ var po = this.offsetParent.offset();
+
+ // This is a special case where we need to modify a offset calculated on start, since the following happened:
+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
+ if(this.cssPosition === "absolute" && this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) {
+ po.left += this.scrollParent.scrollLeft();
+ po.top += this.scrollParent.scrollTop();
+ }
+
+ // This needs to be actually done for all browsers, since pageX/pageY includes this information
+ // with an ugly IE fix
+ if( this.offsetParent[0] === this.document[0].body || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === "html" && $.ui.ie)) {
+ po = { top: 0, left: 0 };
+ }
+
+ return {
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+ };
+
+ },
+
+ _getRelativeOffset: function() {
+
+ if(this.cssPosition === "relative") {
+ var p = this.currentItem.position();
+ return {
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
+ };
+ } else {
+ return { top: 0, left: 0 };
+ }
+
+ },
+
+ _cacheMargins: function() {
+ this.margins = {
+ left: (parseInt(this.currentItem.css("marginLeft"),10) || 0),
+ top: (parseInt(this.currentItem.css("marginTop"),10) || 0)
+ };
+ },
+
+ _cacheHelperProportions: function() {
+ this.helperProportions = {
+ width: this.helper.outerWidth(),
+ height: this.helper.outerHeight()
+ };
+ },
+
+ _setContainment: function() {
+
+ var ce, co, over,
+ o = this.options;
+ if(o.containment === "parent") {
+ o.containment = this.helper[0].parentNode;
+ }
+ if(o.containment === "document" || o.containment === "window") {
+ this.containment = [
+ 0 - this.offset.relative.left - this.offset.parent.left,
+ 0 - this.offset.relative.top - this.offset.parent.top,
+ o.containment === "document" ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left,
+ (o.containment === "document" ? this.document.width() : this.window.height() || this.document[0].body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top
+ ];
+ }
+
+ if(!(/^(document|window|parent)$/).test(o.containment)) {
+ ce = $(o.containment)[0];
+ co = $(o.containment).offset();
+ over = ($(ce).css("overflow") !== "hidden");
+
+ this.containment = [
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top,
+ co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left,
+ co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top
+ ];
+ }
+
+ },
+
+ _convertPositionTo: function(d, pos) {
+
+ if(!pos) {
+ pos = this.position;
+ }
+ var mod = d === "absolute" ? 1 : -1,
+ scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent,
+ scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
+
+ return {
+ top: (
+ pos.top + // The absolute mouse position
+ this.offset.relative.top * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
+ ),
+ left: (
+ pos.left + // The absolute mouse position
+ this.offset.relative.left * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
+ )
+ };
+
+ },
+
+ _generatePosition: function(event) {
+
+ var top, left,
+ o = this.options,
+ pageX = event.pageX,
+ pageY = event.pageY,
+ scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
+
+ // This is another very weird special case that only happens for relative elements:
+ // 1. If the css position is relative
+ // 2. and the scroll parent is the document or similar to the offset parent
+ // we have to refresh the relative offset during the scroll so there are no jumps
+ if(this.cssPosition === "relative" && !(this.scrollParent[0] !== this.document[0] && this.scrollParent[0] !== this.offsetParent[0])) {
+ this.offset.relative = this._getRelativeOffset();
+ }
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+
+ if(this.originalPosition) { //If we are not dragging yet, we won't check for options
+
+ if(this.containment) {
+ if(event.pageX - this.offset.click.left < this.containment[0]) {
+ pageX = this.containment[0] + this.offset.click.left;
+ }
+ if(event.pageY - this.offset.click.top < this.containment[1]) {
+ pageY = this.containment[1] + this.offset.click.top;
+ }
+ if(event.pageX - this.offset.click.left > this.containment[2]) {
+ pageX = this.containment[2] + this.offset.click.left;
+ }
+ if(event.pageY - this.offset.click.top > this.containment[3]) {
+ pageY = this.containment[3] + this.offset.click.top;
+ }
+ }
+
+ if(o.grid) {
+ top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];
+ pageY = this.containment ? ( (top - this.offset.click.top >= this.containment[1] && top - this.offset.click.top <= this.containment[3]) ? top : ((top - this.offset.click.top >= this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];
+ pageX = this.containment ? ( (left - this.offset.click.left >= this.containment[0] && left - this.offset.click.left <= this.containment[2]) ? left : ((left - this.offset.click.left >= this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ }
+
+ return {
+ top: (
+ pageY - // The absolute mouse position
+ this.offset.click.top - // Click offset (relative to the element)
+ this.offset.relative.top - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top + // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
+ ),
+ left: (
+ pageX - // The absolute mouse position
+ this.offset.click.left - // Click offset (relative to the element)
+ this.offset.relative.left - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left + // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
+ )
+ };
+
+ },
+
+ _rearrange: function(event, i, a, hardRefresh) {
+
+ a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction === "down" ? i.item[0] : i.item[0].nextSibling));
+
+ //Various things done here to improve the performance:
+ // 1. we create a setTimeout, that calls refreshPositions
+ // 2. on the instance, we have a counter variable, that get's higher after every append
+ // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same
+ // 4. this lets only the last addition to the timeout stack through
+ this.counter = this.counter ? ++this.counter : 1;
+ var counter = this.counter;
+
+ this._delay(function() {
+ if(counter === this.counter) {
+ this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove
+ }
+ });
+
+ },
+
+ _clear: function(event, noPropagation) {
+
+ this.reverting = false;
+ // We delay all events that have to be triggered to after the point where the placeholder has been removed and
+ // everything else normalized again
+ var i,
+ delayedTriggers = [];
+
+ // We first have to update the dom position of the actual currentItem
+ // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)
+ if(!this._noFinalSort && this.currentItem.parent().length) {
+ this.placeholder.before(this.currentItem);
+ }
+ this._noFinalSort = null;
+
+ if(this.helper[0] === this.currentItem[0]) {
+ for(i in this._storedCSS) {
+ if(this._storedCSS[i] === "auto" || this._storedCSS[i] === "static") {
+ this._storedCSS[i] = "";
+ }
+ }
+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
+ } else {
+ this.currentItem.show();
+ }
+
+ if(this.fromOutside && !noPropagation) {
+ delayedTriggers.push(function(event) { this._trigger("receive", event, this._uiHash(this.fromOutside)); });
+ }
+ if((this.fromOutside || this.domPosition.prev !== this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent !== this.currentItem.parent()[0]) && !noPropagation) {
+ delayedTriggers.push(function(event) { this._trigger("update", event, this._uiHash()); }); //Trigger update callback if the DOM position has changed
+ }
+
+ // Check if the items Container has Changed and trigger appropriate
+ // events.
+ if (this !== this.currentContainer) {
+ if(!noPropagation) {
+ delayedTriggers.push(function(event) { this._trigger("remove", event, this._uiHash()); });
+ delayedTriggers.push((function(c) { return function(event) { c._trigger("receive", event, this._uiHash(this)); }; }).call(this, this.currentContainer));
+ delayedTriggers.push((function(c) { return function(event) { c._trigger("update", event, this._uiHash(this)); }; }).call(this, this.currentContainer));
+ }
+ }
+
+
+ //Post events to containers
+ function delayEvent( type, instance, container ) {
+ return function( event ) {
+ container._trigger( type, event, instance._uiHash( instance ) );
+ };
+ }
+ for (i = this.containers.length - 1; i >= 0; i--){
+ if (!noPropagation) {
+ delayedTriggers.push( delayEvent( "deactivate", this, this.containers[ i ] ) );
+ }
+ if(this.containers[i].containerCache.over) {
+ delayedTriggers.push( delayEvent( "out", this, this.containers[ i ] ) );
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ //Do what was originally in plugins
+ if ( this.storedCursor ) {
+ this.document.find( "body" ).css( "cursor", this.storedCursor );
+ this.storedStylesheet.remove();
+ }
+ if(this._storedOpacity) {
+ this.helper.css("opacity", this._storedOpacity);
+ }
+ if(this._storedZIndex) {
+ this.helper.css("zIndex", this._storedZIndex === "auto" ? "" : this._storedZIndex);
+ }
+
+ this.dragging = false;
+
+ if(!noPropagation) {
+ this._trigger("beforeStop", event, this._uiHash());
+ }
+
+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
+ this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
+
+ if ( !this.cancelHelperRemoval ) {
+ if ( this.helper[ 0 ] !== this.currentItem[ 0 ] ) {
+ this.helper.remove();
+ }
+ this.helper = null;
+ }
+
+ if(!noPropagation) {
+ for (i=0; i < delayedTriggers.length; i++) {
+ delayedTriggers[i].call(this, event);
+ } //Trigger all delayed events
+ this._trigger("stop", event, this._uiHash());
+ }
+
+ this.fromOutside = false;
+ return !this.cancelHelperRemoval;
+
+ },
+
+ _trigger: function() {
+ if ($.Widget.prototype._trigger.apply(this, arguments) === false) {
+ this.cancel();
+ }
+ },
+
+ _uiHash: function(_inst) {
+ var inst = _inst || this;
+ return {
+ helper: inst.helper,
+ placeholder: inst.placeholder || $([]),
+ position: inst.position,
+ originalPosition: inst.originalPosition,
+ offset: inst.positionAbs,
+ item: inst.currentItem,
+ sender: _inst ? _inst.element : null
+ };
+ }
+
+});
+
+
+/*!
+ * jQuery UI Accordion 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/accordion/
+ */
+
+
+var accordion = $.widget( "ui.accordion", {
+ version: "1.11.4",
+ options: {
+ active: 0,
+ animate: {},
+ collapsible: false,
+ event: "click",
+ header: "> li > :first-child,> :not(li):even",
+ heightStyle: "auto",
+ icons: {
+ activeHeader: "ui-icon-triangle-1-s",
+ header: "ui-icon-triangle-1-e"
+ },
+
+ // callbacks
+ activate: null,
+ beforeActivate: null
+ },
+
+ hideProps: {
+ borderTopWidth: "hide",
+ borderBottomWidth: "hide",
+ paddingTop: "hide",
+ paddingBottom: "hide",
+ height: "hide"
+ },
+
+ showProps: {
+ borderTopWidth: "show",
+ borderBottomWidth: "show",
+ paddingTop: "show",
+ paddingBottom: "show",
+ height: "show"
+ },
+
+ _create: function() {
+ var options = this.options;
+ this.prevShow = this.prevHide = $();
+ this.element.addClass( "ui-accordion ui-widget ui-helper-reset" )
+ // ARIA
+ .attr( "role", "tablist" );
+
+ // don't allow collapsible: false and active: false / null
+ if ( !options.collapsible && (options.active === false || options.active == null) ) {
+ options.active = 0;
+ }
+
+ this._processPanels();
+ // handle negative values
+ if ( options.active < 0 ) {
+ options.active += this.headers.length;
+ }
+ this._refresh();
+ },
+
+ _getCreateEventData: function() {
+ return {
+ header: this.active,
+ panel: !this.active.length ? $() : this.active.next()
+ };
+ },
+
+ _createIcons: function() {
+ var icons = this.options.icons;
+ if ( icons ) {
+ $( "<span>" )
+ .addClass( "ui-accordion-header-icon ui-icon " + icons.header )
+ .prependTo( this.headers );
+ this.active.children( ".ui-accordion-header-icon" )
+ .removeClass( icons.header )
+ .addClass( icons.activeHeader );
+ this.headers.addClass( "ui-accordion-icons" );
+ }
+ },
+
+ _destroyIcons: function() {
+ this.headers
+ .removeClass( "ui-accordion-icons" )
+ .children( ".ui-accordion-header-icon" )
+ .remove();
+ },
+
+ _destroy: function() {
+ var contents;
+
+ // clean up main element
+ this.element
+ .removeClass( "ui-accordion ui-widget ui-helper-reset" )
+ .removeAttr( "role" );
+
+ // clean up headers
+ this.headers
+ .removeClass( "ui-accordion-header ui-accordion-header-active ui-state-default " +
+ "ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-expanded" )
+ .removeAttr( "aria-selected" )
+ .removeAttr( "aria-controls" )
+ .removeAttr( "tabIndex" )
+ .removeUniqueId();
+
+ this._destroyIcons();
+
+ // clean up content panels
+ contents = this.headers.next()
+ .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom " +
+ "ui-accordion-content ui-accordion-content-active ui-state-disabled" )
+ .css( "display", "" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-labelledby" )
+ .removeUniqueId();
+
+ if ( this.options.heightStyle !== "content" ) {
+ contents.css( "height", "" );
+ }
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "active" ) {
+ // _activate() will handle invalid values and update this.options
+ this._activate( value );
+ return;
+ }
+
+ if ( key === "event" ) {
+ if ( this.options.event ) {
+ this._off( this.headers, this.options.event );
+ }
+ this._setupEvents( value );
+ }
+
+ this._super( key, value );
+
+ // setting collapsible: false while collapsed; open first panel
+ if ( key === "collapsible" && !value && this.options.active === false ) {
+ this._activate( 0 );
+ }
+
+ if ( key === "icons" ) {
+ this._destroyIcons();
+ if ( value ) {
+ this._createIcons();
+ }
+ }
+
+ // #5332 - opacity doesn't cascade to positioned elements in IE
+ // so we need to add the disabled class to the headers and panels
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ this.headers.add( this.headers.next() )
+ .toggleClass( "ui-state-disabled", !!value );
+ }
+ },
+
+ _keydown: function( event ) {
+ if ( event.altKey || event.ctrlKey ) {
+ return;
+ }
+
+ var keyCode = $.ui.keyCode,
+ length = this.headers.length,
+ currentIndex = this.headers.index( event.target ),
+ toFocus = false;
+
+ switch ( event.keyCode ) {
+ case keyCode.RIGHT:
+ case keyCode.DOWN:
+ toFocus = this.headers[ ( currentIndex + 1 ) % length ];
+ break;
+ case keyCode.LEFT:
+ case keyCode.UP:
+ toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
+ break;
+ case keyCode.SPACE:
+ case keyCode.ENTER:
+ this._eventHandler( event );
+ break;
+ case keyCode.HOME:
+ toFocus = this.headers[ 0 ];
+ break;
+ case keyCode.END:
+ toFocus = this.headers[ length - 1 ];
+ break;
+ }
+
+ if ( toFocus ) {
+ $( event.target ).attr( "tabIndex", -1 );
+ $( toFocus ).attr( "tabIndex", 0 );
+ toFocus.focus();
+ event.preventDefault();
+ }
+ },
+
+ _panelKeyDown: function( event ) {
+ if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
+ $( event.currentTarget ).prev().focus();
+ }
+ },
+
+ refresh: function() {
+ var options = this.options;
+ this._processPanels();
+
+ // was collapsed or no panel
+ if ( ( options.active === false && options.collapsible === true ) || !this.headers.length ) {
+ options.active = false;
+ this.active = $();
+ // active false only when collapsible is true
+ } else if ( options.active === false ) {
+ this._activate( 0 );
+ // was active, but active panel is gone
+ } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
+ // all remaining panel are disabled
+ if ( this.headers.length === this.headers.find(".ui-state-disabled").length ) {
+ options.active = false;
+ this.active = $();
+ // activate previous panel
+ } else {
+ this._activate( Math.max( 0, options.active - 1 ) );
+ }
+ // was active, active panel still exists
+ } else {
+ // make sure active index is correct
+ options.active = this.headers.index( this.active );
+ }
+
+ this._destroyIcons();
+
+ this._refresh();
+ },
+
+ _processPanels: function() {
+ var prevHeaders = this.headers,
+ prevPanels = this.panels;
+
+ this.headers = this.element.find( this.options.header )
+ .addClass( "ui-accordion-header ui-state-default ui-corner-all" );
+
+ this.panels = this.headers.next()
+ .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" )
+ .filter( ":not(.ui-accordion-content-active)" )
+ .hide();
+
+ // Avoid memory leaks (#10056)
+ if ( prevPanels ) {
+ this._off( prevHeaders.not( this.headers ) );
+ this._off( prevPanels.not( this.panels ) );
+ }
+ },
+
+ _refresh: function() {
+ var maxHeight,
+ options = this.options,
+ heightStyle = options.heightStyle,
+ parent = this.element.parent();
+
+ this.active = this._findActive( options.active )
+ .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" )
+ .removeClass( "ui-corner-all" );
+ this.active.next()
+ .addClass( "ui-accordion-content-active" )
+ .show();
+
+ this.headers
+ .attr( "role", "tab" )
+ .each(function() {
+ var header = $( this ),
+ headerId = header.uniqueId().attr( "id" ),
+ panel = header.next(),
+ panelId = panel.uniqueId().attr( "id" );
+ header.attr( "aria-controls", panelId );
+ panel.attr( "aria-labelledby", headerId );
+ })
+ .next()
+ .attr( "role", "tabpanel" );
+
+ this.headers
+ .not( this.active )
+ .attr({
+ "aria-selected": "false",
+ "aria-expanded": "false",
+ tabIndex: -1
+ })
+ .next()
+ .attr({
+ "aria-hidden": "true"
+ })
+ .hide();
+
+ // make sure at least one header is in the tab order
+ if ( !this.active.length ) {
+ this.headers.eq( 0 ).attr( "tabIndex", 0 );
+ } else {
+ this.active.attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ })
+ .next()
+ .attr({
+ "aria-hidden": "false"
+ });
+ }
+
+ this._createIcons();
+
+ this._setupEvents( options.event );
+
+ if ( heightStyle === "fill" ) {
+ maxHeight = parent.height();
+ this.element.siblings( ":visible" ).each(function() {
+ var elem = $( this ),
+ position = elem.css( "position" );
+
+ if ( position === "absolute" || position === "fixed" ) {
+ return;
+ }
+ maxHeight -= elem.outerHeight( true );
+ });
+
+ this.headers.each(function() {
+ maxHeight -= $( this ).outerHeight( true );
+ });
+
+ this.headers.next()
+ .each(function() {
+ $( this ).height( Math.max( 0, maxHeight -
+ $( this ).innerHeight() + $( this ).height() ) );
+ })
+ .css( "overflow", "auto" );
+ } else if ( heightStyle === "auto" ) {
+ maxHeight = 0;
+ this.headers.next()
+ .each(function() {
+ maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
+ })
+ .height( maxHeight );
+ }
+ },
+
+ _activate: function( index ) {
+ var active = this._findActive( index )[ 0 ];
+
+ // trying to activate the already active panel
+ if ( active === this.active[ 0 ] ) {
+ return;
+ }
+
+ // trying to collapse, simulate a click on the currently active header
+ active = active || this.active[ 0 ];
+
+ this._eventHandler({
+ target: active,
+ currentTarget: active,
+ preventDefault: $.noop
+ });
+ },
+
+ _findActive: function( selector ) {
+ return typeof selector === "number" ? this.headers.eq( selector ) : $();
+ },
+
+ _setupEvents: function( event ) {
+ var events = {
+ keydown: "_keydown"
+ };
+ if ( event ) {
+ $.each( event.split( " " ), function( index, eventName ) {
+ events[ eventName ] = "_eventHandler";
+ });
+ }
+
+ this._off( this.headers.add( this.headers.next() ) );
+ this._on( this.headers, events );
+ this._on( this.headers.next(), { keydown: "_panelKeyDown" });
+ this._hoverable( this.headers );
+ this._focusable( this.headers );
+ },
+
+ _eventHandler: function( event ) {
+ var options = this.options,
+ active = this.active,
+ clicked = $( event.currentTarget ),
+ clickedIsActive = clicked[ 0 ] === active[ 0 ],
+ collapsing = clickedIsActive && options.collapsible,
+ toShow = collapsing ? $() : clicked.next(),
+ toHide = active.next(),
+ eventData = {
+ oldHeader: active,
+ oldPanel: toHide,
+ newHeader: collapsing ? $() : clicked,
+ newPanel: toShow
+ };
+
+ event.preventDefault();
+
+ if (
+ // click on active header, but not collapsible
+ ( clickedIsActive && !options.collapsible ) ||
+ // allow canceling activation
+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
+ return;
+ }
+
+ options.active = collapsing ? false : this.headers.index( clicked );
+
+ // when the call to ._toggle() comes after the class changes
+ // it causes a very odd bug in IE 8 (see #6720)
+ this.active = clickedIsActive ? $() : clicked;
+ this._toggle( eventData );
+
+ // switch classes
+ // corner classes on the previously active header stay after the animation
+ active.removeClass( "ui-accordion-header-active ui-state-active" );
+ if ( options.icons ) {
+ active.children( ".ui-accordion-header-icon" )
+ .removeClass( options.icons.activeHeader )
+ .addClass( options.icons.header );
+ }
+
+ if ( !clickedIsActive ) {
+ clicked
+ .removeClass( "ui-corner-all" )
+ .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" );
+ if ( options.icons ) {
+ clicked.children( ".ui-accordion-header-icon" )
+ .removeClass( options.icons.header )
+ .addClass( options.icons.activeHeader );
+ }
+
+ clicked
+ .next()
+ .addClass( "ui-accordion-content-active" );
+ }
+ },
+
+ _toggle: function( data ) {
+ var toShow = data.newPanel,
+ toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
+
+ // handle activating a panel during the animation for another activation
+ this.prevShow.add( this.prevHide ).stop( true, true );
+ this.prevShow = toShow;
+ this.prevHide = toHide;
+
+ if ( this.options.animate ) {
+ this._animate( toShow, toHide, data );
+ } else {
+ toHide.hide();
+ toShow.show();
+ this._toggleComplete( data );
+ }
+
+ toHide.attr({
+ "aria-hidden": "true"
+ });
+ toHide.prev().attr({
+ "aria-selected": "false",
+ "aria-expanded": "false"
+ });
+ // if we're switching panels, remove the old header from the tab order
+ // if we're opening from collapsed state, remove the previous header from the tab order
+ // if we're collapsing, then keep the collapsing header in the tab order
+ if ( toShow.length && toHide.length ) {
+ toHide.prev().attr({
+ "tabIndex": -1,
+ "aria-expanded": "false"
+ });
+ } else if ( toShow.length ) {
+ this.headers.filter(function() {
+ return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
+ })
+ .attr( "tabIndex", -1 );
+ }
+
+ toShow
+ .attr( "aria-hidden", "false" )
+ .prev()
+ .attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ });
+ },
+
+ _animate: function( toShow, toHide, data ) {
+ var total, easing, duration,
+ that = this,
+ adjust = 0,
+ boxSizing = toShow.css( "box-sizing" ),
+ down = toShow.length &&
+ ( !toHide.length || ( toShow.index() < toHide.index() ) ),
+ animate = this.options.animate || {},
+ options = down && animate.down || animate,
+ complete = function() {
+ that._toggleComplete( data );
+ };
+
+ if ( typeof options === "number" ) {
+ duration = options;
+ }
+ if ( typeof options === "string" ) {
+ easing = options;
+ }
+ // fall back from options to animation in case of partial down settings
+ easing = easing || options.easing || animate.easing;
+ duration = duration || options.duration || animate.duration;
+
+ if ( !toHide.length ) {
+ return toShow.animate( this.showProps, duration, easing, complete );
+ }
+ if ( !toShow.length ) {
+ return toHide.animate( this.hideProps, duration, easing, complete );
+ }
+
+ total = toShow.show().outerHeight();
+ toHide.animate( this.hideProps, {
+ duration: duration,
+ easing: easing,
+ step: function( now, fx ) {
+ fx.now = Math.round( now );
+ }
+ });
+ toShow
+ .hide()
+ .animate( this.showProps, {
+ duration: duration,
+ easing: easing,
+ complete: complete,
+ step: function( now, fx ) {
+ fx.now = Math.round( now );
+ if ( fx.prop !== "height" ) {
+ if ( boxSizing === "content-box" ) {
+ adjust += fx.now;
+ }
+ } else if ( that.options.heightStyle !== "content" ) {
+ fx.now = Math.round( total - toHide.outerHeight() - adjust );
+ adjust = 0;
+ }
+ }
+ });
+ },
+
+ _toggleComplete: function( data ) {
+ var toHide = data.oldPanel;
+
+ toHide
+ .removeClass( "ui-accordion-content-active" )
+ .prev()
+ .removeClass( "ui-corner-top" )
+ .addClass( "ui-corner-all" );
+
+ // Work around for rendering bug in IE (#5421)
+ if ( toHide.length ) {
+ toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
+ }
+ this._trigger( "activate", null, data );
+ }
+});
+
+
+/*!
+ * jQuery UI Menu 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/menu/
+ */
+
+
+var menu = $.widget( "ui.menu", {
+ version: "1.11.4",
+ defaultElement: "<ul>",
+ delay: 300,
+ options: {
+ icons: {
+ submenu: "ui-icon-carat-1-e"
+ },
+ items: "> *",
+ menus: "ul",
+ position: {
+ my: "left-1 top",
+ at: "right top"
+ },
+ role: "menu",
+
+ // callbacks
+ blur: null,
+ focus: null,
+ select: null
+ },
+
+ _create: function() {
+ this.activeMenu = this.element;
+
+ // Flag used to prevent firing of the click handler
+ // as the event bubbles up through nested menus
+ this.mouseHandled = false;
+ this.element
+ .uniqueId()
+ .addClass( "ui-menu ui-widget ui-widget-content" )
+ .toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length )
+ .attr({
+ role: this.options.role,
+ tabIndex: 0
+ });
+
+ if ( this.options.disabled ) {
+ this.element
+ .addClass( "ui-state-disabled" )
+ .attr( "aria-disabled", "true" );
+ }
+
+ this._on({
+ // Prevent focus from sticking to links inside menu after clicking
+ // them (focus should always stay on UL during navigation).
+ "mousedown .ui-menu-item": function( event ) {
+ event.preventDefault();
+ },
+ "click .ui-menu-item": function( event ) {
+ var target = $( event.target );
+ if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
+ this.select( event );
+
+ // Only set the mouseHandled flag if the event will bubble, see #9469.
+ if ( !event.isPropagationStopped() ) {
+ this.mouseHandled = true;
+ }
+
+ // Open submenu on click
+ if ( target.has( ".ui-menu" ).length ) {
+ this.expand( event );
+ } else if ( !this.element.is( ":focus" ) && $( this.document[ 0 ].activeElement ).closest( ".ui-menu" ).length ) {
+
+ // Redirect focus to the menu
+ this.element.trigger( "focus", [ true ] );
+
+ // If the active item is on the top level, let it stay active.
+ // Otherwise, blur the active item since it is no longer visible.
+ if ( this.active && this.active.parents( ".ui-menu" ).length === 1 ) {
+ clearTimeout( this.timer );
+ }
+ }
+ }
+ },
+ "mouseenter .ui-menu-item": function( event ) {
+ // Ignore mouse events while typeahead is active, see #10458.
+ // Prevents focusing the wrong item when typeahead causes a scroll while the mouse
+ // is over an item in the menu
+ if ( this.previousFilter ) {
+ return;
+ }
+ var target = $( event.currentTarget );
+ // Remove ui-state-active class from siblings of the newly focused menu item
+ // to avoid a jump caused by adjacent elements both having a class with a border
+ target.siblings( ".ui-state-active" ).removeClass( "ui-state-active" );
+ this.focus( event, target );
+ },
+ mouseleave: "collapseAll",
+ "mouseleave .ui-menu": "collapseAll",
+ focus: function( event, keepActiveItem ) {
+ // If there's already an active item, keep it active
+ // If not, activate the first item
+ var item = this.active || this.element.find( this.options.items ).eq( 0 );
+
+ if ( !keepActiveItem ) {
+ this.focus( event, item );
+ }
+ },
+ blur: function( event ) {
+ this._delay(function() {
+ if ( !$.contains( this.element[0], this.document[0].activeElement ) ) {
+ this.collapseAll( event );
+ }
+ });
+ },
+ keydown: "_keydown"
+ });
+
+ this.refresh();
+
+ // Clicks outside of a menu collapse any open menus
+ this._on( this.document, {
+ click: function( event ) {
+ if ( this._closeOnDocumentClick( event ) ) {
+ this.collapseAll( event );
+ }
+
+ // Reset the mouseHandled flag
+ this.mouseHandled = false;
+ }
+ });
+ },
+
+ _destroy: function() {
+ // Destroy (sub)menus
+ this.element
+ .removeAttr( "aria-activedescendant" )
+ .find( ".ui-menu" ).addBack()
+ .removeClass( "ui-menu ui-widget ui-widget-content ui-menu-icons ui-front" )
+ .removeAttr( "role" )
+ .removeAttr( "tabIndex" )
+ .removeAttr( "aria-labelledby" )
+ .removeAttr( "aria-expanded" )
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-disabled" )
+ .removeUniqueId()
+ .show();
+
+ // Destroy menu items
+ this.element.find( ".ui-menu-item" )
+ .removeClass( "ui-menu-item" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-disabled" )
+ .removeUniqueId()
+ .removeClass( "ui-state-hover" )
+ .removeAttr( "tabIndex" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-haspopup" )
+ .children().each( function() {
+ var elem = $( this );
+ if ( elem.data( "ui-menu-submenu-carat" ) ) {
+ elem.remove();
+ }
+ });
+
+ // Destroy menu dividers
+ this.element.find( ".ui-menu-divider" ).removeClass( "ui-menu-divider ui-widget-content" );
+ },
+
+ _keydown: function( event ) {
+ var match, prev, character, skip,
+ preventDefault = true;
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.PAGE_UP:
+ this.previousPage( event );
+ break;
+ case $.ui.keyCode.PAGE_DOWN:
+ this.nextPage( event );
+ break;
+ case $.ui.keyCode.HOME:
+ this._move( "first", "first", event );
+ break;
+ case $.ui.keyCode.END:
+ this._move( "last", "last", event );
+ break;
+ case $.ui.keyCode.UP:
+ this.previous( event );
+ break;
+ case $.ui.keyCode.DOWN:
+ this.next( event );
+ break;
+ case $.ui.keyCode.LEFT:
+ this.collapse( event );
+ break;
+ case $.ui.keyCode.RIGHT:
+ if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
+ this.expand( event );
+ }
+ break;
+ case $.ui.keyCode.ENTER:
+ case $.ui.keyCode.SPACE:
+ this._activate( event );
+ break;
+ case $.ui.keyCode.ESCAPE:
+ this.collapse( event );
+ break;
+ default:
+ preventDefault = false;
+ prev = this.previousFilter || "";
+ character = String.fromCharCode( event.keyCode );
+ skip = false;
+
+ clearTimeout( this.filterTimer );
+
+ if ( character === prev ) {
+ skip = true;
+ } else {
+ character = prev + character;
+ }
+
+ match = this._filterMenuItems( character );
+ match = skip && match.index( this.active.next() ) !== -1 ?
+ this.active.nextAll( ".ui-menu-item" ) :
+ match;
+
+ // If no matches on the current filter, reset to the last character pressed
+ // to move down the menu to the first item that starts with that character
+ if ( !match.length ) {
+ character = String.fromCharCode( event.keyCode );
+ match = this._filterMenuItems( character );
+ }
+
+ if ( match.length ) {
+ this.focus( event, match );
+ this.previousFilter = character;
+ this.filterTimer = this._delay(function() {
+ delete this.previousFilter;
+ }, 1000 );
+ } else {
+ delete this.previousFilter;
+ }
+ }
+
+ if ( preventDefault ) {
+ event.preventDefault();
+ }
+ },
+
+ _activate: function( event ) {
+ if ( !this.active.is( ".ui-state-disabled" ) ) {
+ if ( this.active.is( "[aria-haspopup='true']" ) ) {
+ this.expand( event );
+ } else {
+ this.select( event );
+ }
+ }
+ },
+
+ refresh: function() {
+ var menus, items,
+ that = this,
+ icon = this.options.icons.submenu,
+ submenus = this.element.find( this.options.menus );
+
+ this.element.toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length );
+
+ // Initialize nested menus
+ submenus.filter( ":not(.ui-menu)" )
+ .addClass( "ui-menu ui-widget ui-widget-content ui-front" )
+ .hide()
+ .attr({
+ role: this.options.role,
+ "aria-hidden": "true",
+ "aria-expanded": "false"
+ })
+ .each(function() {
+ var menu = $( this ),
+ item = menu.parent(),
+ submenuCarat = $( "<span>" )
+ .addClass( "ui-menu-icon ui-icon " + icon )
+ .data( "ui-menu-submenu-carat", true );
+
+ item
+ .attr( "aria-haspopup", "true" )
+ .prepend( submenuCarat );
+ menu.attr( "aria-labelledby", item.attr( "id" ) );
+ });
+
+ menus = submenus.add( this.element );
+ items = menus.find( this.options.items );
+
+ // Initialize menu-items containing spaces and/or dashes only as dividers
+ items.not( ".ui-menu-item" ).each(function() {
+ var item = $( this );
+ if ( that._isDivider( item ) ) {
+ item.addClass( "ui-widget-content ui-menu-divider" );
+ }
+ });
+
+ // Don't refresh list items that are already adapted
+ items.not( ".ui-menu-item, .ui-menu-divider" )
+ .addClass( "ui-menu-item" )
+ .uniqueId()
+ .attr({
+ tabIndex: -1,
+ role: this._itemRole()
+ });
+
+ // Add aria-disabled attribute to any disabled menu item
+ items.filter( ".ui-state-disabled" ).attr( "aria-disabled", "true" );
+
+ // If the active item has been removed, blur the menu
+ if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
+ this.blur();
+ }
+ },
+
+ _itemRole: function() {
+ return {
+ menu: "menuitem",
+ listbox: "option"
+ }[ this.options.role ];
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "icons" ) {
+ this.element.find( ".ui-menu-icon" )
+ .removeClass( this.options.icons.submenu )
+ .addClass( value.submenu );
+ }
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ }
+ this._super( key, value );
+ },
+
+ focus: function( event, item ) {
+ var nested, focused;
+ this.blur( event, event && event.type === "focus" );
+
+ this._scrollIntoView( item );
+
+ this.active = item.first();
+ focused = this.active.addClass( "ui-state-focus" ).removeClass( "ui-state-active" );
+ // Only update aria-activedescendant if there's a role
+ // otherwise we assume focus is managed elsewhere
+ if ( this.options.role ) {
+ this.element.attr( "aria-activedescendant", focused.attr( "id" ) );
+ }
+
+ // Highlight active parent menu item, if any
+ this.active
+ .parent()
+ .closest( ".ui-menu-item" )
+ .addClass( "ui-state-active" );
+
+ if ( event && event.type === "keydown" ) {
+ this._close();
+ } else {
+ this.timer = this._delay(function() {
+ this._close();
+ }, this.delay );
+ }
+
+ nested = item.children( ".ui-menu" );
+ if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) {
+ this._startOpening(nested);
+ }
+ this.activeMenu = item.parent();
+
+ this._trigger( "focus", event, { item: item } );
+ },
+
+ _scrollIntoView: function( item ) {
+ var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;
+ if ( this._hasScroll() ) {
+ borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0;
+ paddingTop = parseFloat( $.css( this.activeMenu[0], "paddingTop" ) ) || 0;
+ offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop;
+ scroll = this.activeMenu.scrollTop();
+ elementHeight = this.activeMenu.height();
+ itemHeight = item.outerHeight();
+
+ if ( offset < 0 ) {
+ this.activeMenu.scrollTop( scroll + offset );
+ } else if ( offset + itemHeight > elementHeight ) {
+ this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight );
+ }
+ }
+ },
+
+ blur: function( event, fromFocus ) {
+ if ( !fromFocus ) {
+ clearTimeout( this.timer );
+ }
+
+ if ( !this.active ) {
+ return;
+ }
+
+ this.active.removeClass( "ui-state-focus" );
+ this.active = null;
+
+ this._trigger( "blur", event, { item: this.active } );
+ },
+
+ _startOpening: function( submenu ) {
+ clearTimeout( this.timer );
+
+ // Don't open if already open fixes a Firefox bug that caused a .5 pixel
+ // shift in the submenu position when mousing over the carat icon
+ if ( submenu.attr( "aria-hidden" ) !== "true" ) {
+ return;
+ }
+
+ this.timer = this._delay(function() {
+ this._close();
+ this._open( submenu );
+ }, this.delay );
+ },
+
+ _open: function( submenu ) {
+ var position = $.extend({
+ of: this.active
+ }, this.options.position );
+
+ clearTimeout( this.timer );
+ this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) )
+ .hide()
+ .attr( "aria-hidden", "true" );
+
+ submenu
+ .show()
+ .removeAttr( "aria-hidden" )
+ .attr( "aria-expanded", "true" )
+ .position( position );
+ },
+
+ collapseAll: function( event, all ) {
+ clearTimeout( this.timer );
+ this.timer = this._delay(function() {
+ // If we were passed an event, look for the submenu that contains the event
+ var currentMenu = all ? this.element :
+ $( event && event.target ).closest( this.element.find( ".ui-menu" ) );
+
+ // If we found no valid submenu ancestor, use the main menu to close all sub menus anyway
+ if ( !currentMenu.length ) {
+ currentMenu = this.element;
+ }
+
+ this._close( currentMenu );
+
+ this.blur( event );
+ this.activeMenu = currentMenu;
+ }, this.delay );
+ },
+
+ // With no arguments, closes the currently active menu - if nothing is active
+ // it closes all menus. If passed an argument, it will search for menus BELOW
+ _close: function( startMenu ) {
+ if ( !startMenu ) {
+ startMenu = this.active ? this.active.parent() : this.element;
+ }
+
+ startMenu
+ .find( ".ui-menu" )
+ .hide()
+ .attr( "aria-hidden", "true" )
+ .attr( "aria-expanded", "false" )
+ .end()
+ .find( ".ui-state-active" ).not( ".ui-state-focus" )
+ .removeClass( "ui-state-active" );
+ },
+
+ _closeOnDocumentClick: function( event ) {
+ return !$( event.target ).closest( ".ui-menu" ).length;
+ },
+
+ _isDivider: function( item ) {
+
+ // Match hyphen, em dash, en dash
+ return !/[^\-\u2014\u2013\s]/.test( item.text() );
+ },
+
+ collapse: function( event ) {
+ var newItem = this.active &&
+ this.active.parent().closest( ".ui-menu-item", this.element );
+ if ( newItem && newItem.length ) {
+ this._close();
+ this.focus( event, newItem );
+ }
+ },
+
+ expand: function( event ) {
+ var newItem = this.active &&
+ this.active
+ .children( ".ui-menu " )
+ .find( this.options.items )
+ .first();
+
+ if ( newItem && newItem.length ) {
+ this._open( newItem.parent() );
+
+ // Delay so Firefox will not hide activedescendant change in expanding submenu from AT
+ this._delay(function() {
+ this.focus( event, newItem );
+ });
+ }
+ },
+
+ next: function( event ) {
+ this._move( "next", "first", event );
+ },
+
+ previous: function( event ) {
+ this._move( "prev", "last", event );
+ },
+
+ isFirstItem: function() {
+ return this.active && !this.active.prevAll( ".ui-menu-item" ).length;
+ },
+
+ isLastItem: function() {
+ return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
+ },
+
+ _move: function( direction, filter, event ) {
+ var next;
+ if ( this.active ) {
+ if ( direction === "first" || direction === "last" ) {
+ next = this.active
+ [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
+ .eq( -1 );
+ } else {
+ next = this.active
+ [ direction + "All" ]( ".ui-menu-item" )
+ .eq( 0 );
+ }
+ }
+ if ( !next || !next.length || !this.active ) {
+ next = this.activeMenu.find( this.options.items )[ filter ]();
+ }
+
+ this.focus( event, next );
+ },
+
+ nextPage: function( event ) {
+ var item, base, height;
+
+ if ( !this.active ) {
+ this.next( event );
+ return;
+ }
+ if ( this.isLastItem() ) {
+ return;
+ }
+ if ( this._hasScroll() ) {
+ base = this.active.offset().top;
+ height = this.element.height();
+ this.active.nextAll( ".ui-menu-item" ).each(function() {
+ item = $( this );
+ return item.offset().top - base - height < 0;
+ });
+
+ this.focus( event, item );
+ } else {
+ this.focus( event, this.activeMenu.find( this.options.items )
+ [ !this.active ? "first" : "last" ]() );
+ }
+ },
+
+ previousPage: function( event ) {
+ var item, base, height;
+ if ( !this.active ) {
+ this.next( event );
+ return;
+ }
+ if ( this.isFirstItem() ) {
+ return;
+ }
+ if ( this._hasScroll() ) {
+ base = this.active.offset().top;
+ height = this.element.height();
+ this.active.prevAll( ".ui-menu-item" ).each(function() {
+ item = $( this );
+ return item.offset().top - base + height > 0;
+ });
+
+ this.focus( event, item );
+ } else {
+ this.focus( event, this.activeMenu.find( this.options.items ).first() );
+ }
+ },
+
+ _hasScroll: function() {
+ return this.element.outerHeight() < this.element.prop( "scrollHeight" );
+ },
+
+ select: function( event ) {
+ // TODO: It should never be possible to not have an active item at this
+ // point, but the tests don't trigger mouseenter before click.
+ this.active = this.active || $( event.target ).closest( ".ui-menu-item" );
+ var ui = { item: this.active };
+ if ( !this.active.has( ".ui-menu" ).length ) {
+ this.collapseAll( event, true );
+ }
+ this._trigger( "select", event, ui );
+ },
+
+ _filterMenuItems: function(character) {
+ var escapedCharacter = character.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" ),
+ regex = new RegExp( "^" + escapedCharacter, "i" );
+
+ return this.activeMenu
+ .find( this.options.items )
+
+ // Only match on items, not dividers or other content (#10571)
+ .filter( ".ui-menu-item" )
+ .filter(function() {
+ return regex.test( $.trim( $( this ).text() ) );
+ });
+ }
+});
+
+
+/*!
+ * jQuery UI Autocomplete 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/autocomplete/
+ */
+
+
+$.widget( "ui.autocomplete", {
+ version: "1.11.4",
+ defaultElement: "<input>",
+ options: {
+ appendTo: null,
+ autoFocus: false,
+ delay: 300,
+ minLength: 1,
+ position: {
+ my: "left top",
+ at: "left bottom",
+ collision: "none"
+ },
+ source: null,
+
+ // callbacks
+ change: null,
+ close: null,
+ focus: null,
+ open: null,
+ response: null,
+ search: null,
+ select: null
+ },
+
+ requestIndex: 0,
+ pending: 0,
+
+ _create: function() {
+ // Some browsers only repeat keydown events, not keypress events,
+ // so we use the suppressKeyPress flag to determine if we've already
+ // handled the keydown event. #7269
+ // Unfortunately the code for & in keypress is the same as the up arrow,
+ // so we use the suppressKeyPressRepeat flag to avoid handling keypress
+ // events when we know the keydown event was used to modify the
+ // search term. #7799
+ var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
+ nodeName = this.element[ 0 ].nodeName.toLowerCase(),
+ isTextarea = nodeName === "textarea",
+ isInput = nodeName === "input";
+
+ this.isMultiLine =
+ // Textareas are always multi-line
+ isTextarea ? true :
+ // Inputs are always single-line, even if inside a contentEditable element
+ // IE also treats inputs as contentEditable
+ isInput ? false :
+ // All other element types are determined by whether or not they're contentEditable
+ this.element.prop( "isContentEditable" );
+
+ this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
+ this.isNewMenu = true;
+
+ this.element
+ .addClass( "ui-autocomplete-input" )
+ .attr( "autocomplete", "off" );
+
+ this._on( this.element, {
+ keydown: function( event ) {
+ if ( this.element.prop( "readOnly" ) ) {
+ suppressKeyPress = true;
+ suppressInput = true;
+ suppressKeyPressRepeat = true;
+ return;
+ }
+
+ suppressKeyPress = false;
+ suppressInput = false;
+ suppressKeyPressRepeat = false;
+ var keyCode = $.ui.keyCode;
+ switch ( event.keyCode ) {
+ case keyCode.PAGE_UP:
+ suppressKeyPress = true;
+ this._move( "previousPage", event );
+ break;
+ case keyCode.PAGE_DOWN:
+ suppressKeyPress = true;
+ this._move( "nextPage", event );
+ break;
+ case keyCode.UP:
+ suppressKeyPress = true;
+ this._keyEvent( "previous", event );
+ break;
+ case keyCode.DOWN:
+ suppressKeyPress = true;
+ this._keyEvent( "next", event );
+ break;
+ case keyCode.ENTER:
+ // when menu is open and has focus
+ if ( this.menu.active ) {
+ // #6055 - Opera still allows the keypress to occur
+ // which causes forms to submit
+ suppressKeyPress = true;
+ event.preventDefault();
+ this.menu.select( event );
+ }
+ break;
+ case keyCode.TAB:
+ if ( this.menu.active ) {
+ this.menu.select( event );
+ }
+ break;
+ case keyCode.ESCAPE:
+ if ( this.menu.element.is( ":visible" ) ) {
+ if ( !this.isMultiLine ) {
+ this._value( this.term );
+ }
+ this.close( event );
+ // Different browsers have different default behavior for escape
+ // Single press can mean undo or clear
+ // Double press in IE means clear the whole form
+ event.preventDefault();
+ }
+ break;
+ default:
+ suppressKeyPressRepeat = true;
+ // search timeout should be triggered before the input value is changed
+ this._searchTimeout( event );
+ break;
+ }
+ },
+ keypress: function( event ) {
+ if ( suppressKeyPress ) {
+ suppressKeyPress = false;
+ if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
+ event.preventDefault();
+ }
+ return;
+ }
+ if ( suppressKeyPressRepeat ) {
+ return;
+ }
+
+ // replicate some key handlers to allow them to repeat in Firefox and Opera
+ var keyCode = $.ui.keyCode;
+ switch ( event.keyCode ) {
+ case keyCode.PAGE_UP:
+ this._move( "previousPage", event );
+ break;
+ case keyCode.PAGE_DOWN:
+ this._move( "nextPage", event );
+ break;
+ case keyCode.UP:
+ this._keyEvent( "previous", event );
+ break;
+ case keyCode.DOWN:
+ this._keyEvent( "next", event );
+ break;
+ }
+ },
+ input: function( event ) {
+ if ( suppressInput ) {
+ suppressInput = false;
+ event.preventDefault();
+ return;
+ }
+ this._searchTimeout( event );
+ },
+ focus: function() {
+ this.selectedItem = null;
+ this.previous = this._value();
+ },
+ blur: function( event ) {
+ if ( this.cancelBlur ) {
+ delete this.cancelBlur;
+ return;
+ }
+
+ clearTimeout( this.searching );
+ this.close( event );
+ this._change( event );
+ }
+ });
+
+ this._initSource();
+ this.menu = $( "<ul>" )
+ .addClass( "ui-autocomplete ui-front" )
+ .appendTo( this._appendTo() )
+ .menu({
+ // disable ARIA support, the live region takes care of that
+ role: null
+ })
+ .hide()
+ .menu( "instance" );
+
+ this._on( this.menu.element, {
+ mousedown: function( event ) {
+ // prevent moving focus out of the text field
+ event.preventDefault();
+
+ // IE doesn't prevent moving focus even with event.preventDefault()
+ // so we set a flag to know when we should ignore the blur event
+ this.cancelBlur = true;
+ this._delay(function() {
+ delete this.cancelBlur;
+ });
+
+ // clicking on the scrollbar causes focus to shift to the body
+ // but we can't detect a mouseup or a click immediately afterward
+ // so we have to track the next mousedown and close the menu if
+ // the user clicks somewhere outside of the autocomplete
+ var menuElement = this.menu.element[ 0 ];
+ if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
+ this._delay(function() {
+ var that = this;
+ this.document.one( "mousedown", function( event ) {
+ if ( event.target !== that.element[ 0 ] &&
+ event.target !== menuElement &&
+ !$.contains( menuElement, event.target ) ) {
+ that.close();
+ }
+ });
+ });
+ }
+ },
+ menufocus: function( event, ui ) {
+ var label, item;
+ // support: Firefox
+ // Prevent accidental activation of menu items in Firefox (#7024 #9118)
+ if ( this.isNewMenu ) {
+ this.isNewMenu = false;
+ if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {
+ this.menu.blur();
+
+ this.document.one( "mousemove", function() {
+ $( event.target ).trigger( event.originalEvent );
+ });
+
+ return;
+ }
+ }
+
+ item = ui.item.data( "ui-autocomplete-item" );
+ if ( false !== this._trigger( "focus", event, { item: item } ) ) {
+ // use value to match what will end up in the input, if it was a key event
+ if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
+ this._value( item.value );
+ }
+ }
+
+ // Announce the value in the liveRegion
+ label = ui.item.attr( "aria-label" ) || item.value;
+ if ( label && $.trim( label ).length ) {
+ this.liveRegion.children().hide();
+ $( "<div>" ).text( label ).appendTo( this.liveRegion );
+ }
+ },
+ menuselect: function( event, ui ) {
+ var item = ui.item.data( "ui-autocomplete-item" ),
+ previous = this.previous;
+
+ // only trigger when focus was lost (click on menu)
+ if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
+ this.element.focus();
+ this.previous = previous;
+ // #6109 - IE triggers two focus events and the second
+ // is asynchronous, so we need to reset the previous
+ // term synchronously and asynchronously :-(
+ this._delay(function() {
+ this.previous = previous;
+ this.selectedItem = item;
+ });
+ }
+
+ if ( false !== this._trigger( "select", event, { item: item } ) ) {
+ this._value( item.value );
+ }
+ // reset the term after the select event
+ // this allows custom select handling to work properly
+ this.term = this._value();
+
+ this.close( event );
+ this.selectedItem = item;
+ }
+ });
+
+ this.liveRegion = $( "<span>", {
+ role: "status",
+ "aria-live": "assertive",
+ "aria-relevant": "additions"
+ })
+ .addClass( "ui-helper-hidden-accessible" )
+ .appendTo( this.document[ 0 ].body );
+
+ // turning off autocomplete prevents the browser from remembering the
+ // value when navigating through history, so we re-enable autocomplete
+ // if the page is unloaded before the widget is destroyed. #7790
+ this._on( this.window, {
+ beforeunload: function() {
+ this.element.removeAttr( "autocomplete" );
+ }
+ });
+ },
+
+ _destroy: function() {
+ clearTimeout( this.searching );
+ this.element
+ .removeClass( "ui-autocomplete-input" )
+ .removeAttr( "autocomplete" );
+ this.menu.element.remove();
+ this.liveRegion.remove();
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+ if ( key === "source" ) {
+ this._initSource();
+ }
+ if ( key === "appendTo" ) {
+ this.menu.element.appendTo( this._appendTo() );
+ }
+ if ( key === "disabled" && value && this.xhr ) {
+ this.xhr.abort();
+ }
+ },
+
+ _appendTo: function() {
+ var element = this.options.appendTo;
+
+ if ( element ) {
+ element = element.jquery || element.nodeType ?
+ $( element ) :
+ this.document.find( element ).eq( 0 );
+ }
+
+ if ( !element || !element[ 0 ] ) {
+ element = this.element.closest( ".ui-front" );
+ }
+
+ if ( !element.length ) {
+ element = this.document[ 0 ].body;
+ }
+
+ return element;
+ },
+
+ _initSource: function() {
+ var array, url,
+ that = this;
+ if ( $.isArray( this.options.source ) ) {
+ array = this.options.source;
+ this.source = function( request, response ) {
+ response( $.ui.autocomplete.filter( array, request.term ) );
+ };
+ } else if ( typeof this.options.source === "string" ) {
+ url = this.options.source;
+ this.source = function( request, response ) {
+ if ( that.xhr ) {
+ that.xhr.abort();
+ }
+ that.xhr = $.ajax({
+ url: url,
+ data: request,
+ dataType: "json",
+ success: function( data ) {
+ response( data );
+ },
+ error: function() {
+ response([]);
+ }
+ });
+ };
+ } else {
+ this.source = this.options.source;
+ }
+ },
+
+ _searchTimeout: function( event ) {
+ clearTimeout( this.searching );
+ this.searching = this._delay(function() {
+
+ // Search if the value has changed, or if the user retypes the same value (see #7434)
+ var equalValues = this.term === this._value(),
+ menuVisible = this.menu.element.is( ":visible" ),
+ modifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
+
+ if ( !equalValues || ( equalValues && !menuVisible && !modifierKey ) ) {
+ this.selectedItem = null;
+ this.search( null, event );
+ }
+ }, this.options.delay );
+ },
+
+ search: function( value, event ) {
+ value = value != null ? value : this._value();
+
+ // always save the actual value, not the one passed as an argument
+ this.term = this._value();
+
+ if ( value.length < this.options.minLength ) {
+ return this.close( event );
+ }
+
+ if ( this._trigger( "search", event ) === false ) {
+ return;
+ }
+
+ return this._search( value );
+ },
+
+ _search: function( value ) {
+ this.pending++;
+ this.element.addClass( "ui-autocomplete-loading" );
+ this.cancelSearch = false;
+
+ this.source( { term: value }, this._response() );
+ },
+
+ _response: function() {
+ var index = ++this.requestIndex;
+
+ return $.proxy(function( content ) {
+ if ( index === this.requestIndex ) {
+ this.__response( content );
+ }
+
+ this.pending--;
+ if ( !this.pending ) {
+ this.element.removeClass( "ui-autocomplete-loading" );
+ }
+ }, this );
+ },
+
+ __response: function( content ) {
+ if ( content ) {
+ content = this._normalize( content );
+ }
+ this._trigger( "response", null, { content: content } );
+ if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {
+ this._suggest( content );
+ this._trigger( "open" );
+ } else {
+ // use ._close() instead of .close() so we don't cancel future searches
+ this._close();
+ }
+ },
+
+ close: function( event ) {
+ this.cancelSearch = true;
+ this._close( event );
+ },
+
+ _close: function( event ) {
+ if ( this.menu.element.is( ":visible" ) ) {
+ this.menu.element.hide();
+ this.menu.blur();
+ this.isNewMenu = true;
+ this._trigger( "close", event );
+ }
+ },
+
+ _change: function( event ) {
+ if ( this.previous !== this._value() ) {
+ this._trigger( "change", event, { item: this.selectedItem } );
+ }
+ },
+
+ _normalize: function( items ) {
+ // assume all items have the right format when the first item is complete
+ if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
+ return items;
+ }
+ return $.map( items, function( item ) {
+ if ( typeof item === "string" ) {
+ return {
+ label: item,
+ value: item
+ };
+ }
+ return $.extend( {}, item, {
+ label: item.label || item.value,
+ value: item.value || item.label
+ });
+ });
+ },
+
+ _suggest: function( items ) {
+ var ul = this.menu.element.empty();
+ this._renderMenu( ul, items );
+ this.isNewMenu = true;
+ this.menu.refresh();
+
+ // size and position menu
+ ul.show();
+ this._resizeMenu();
+ ul.position( $.extend({
+ of: this.element
+ }, this.options.position ) );
+
+ if ( this.options.autoFocus ) {
+ this.menu.next();
+ }
+ },
+
+ _resizeMenu: function() {
+ var ul = this.menu.element;
+ ul.outerWidth( Math.max(
+ // Firefox wraps long text (possibly a rounding bug)
+ // so we add 1px to avoid the wrapping (#7513)
+ ul.width( "" ).outerWidth() + 1,
+ this.element.outerWidth()
+ ) );
+ },
+
+ _renderMenu: function( ul, items ) {
+ var that = this;
+ $.each( items, function( index, item ) {
+ that._renderItemData( ul, item );
+ });
+ },
+
+ _renderItemData: function( ul, item ) {
+ return this._renderItem( ul, item ).data( "ui-autocomplete-item", item );
+ },
+
+ _renderItem: function( ul, item ) {
+ return $( "<li>" ).text( item.label ).appendTo( ul );
+ },
+
+ _move: function( direction, event ) {
+ if ( !this.menu.element.is( ":visible" ) ) {
+ this.search( null, event );
+ return;
+ }
+ if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
+ this.menu.isLastItem() && /^next/.test( direction ) ) {
+
+ if ( !this.isMultiLine ) {
+ this._value( this.term );
+ }
+
+ this.menu.blur();
+ return;
+ }
+ this.menu[ direction ]( event );
+ },
+
+ widget: function() {
+ return this.menu.element;
+ },
+
+ _value: function() {
+ return this.valueMethod.apply( this.element, arguments );
+ },
+
+ _keyEvent: function( keyEvent, event ) {
+ if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
+ this._move( keyEvent, event );
+
+ // prevents moving cursor to beginning/end of the text field in some browsers
+ event.preventDefault();
+ }
+ }
+});
+
+$.extend( $.ui.autocomplete, {
+ escapeRegex: function( value ) {
+ return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
+ },
+ filter: function( array, term ) {
+ var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
+ return $.grep( array, function( value ) {
+ return matcher.test( value.label || value.value || value );
+ });
+ }
+});
+
+// live region extension, adding a `messages` option
+// NOTE: This is an experimental API. We are still investigating
+// a full solution for string manipulation and internationalization.
+$.widget( "ui.autocomplete", $.ui.autocomplete, {
+ options: {
+ messages: {
+ noResults: "No search results.",
+ results: function( amount ) {
+ return amount + ( amount > 1 ? " results are" : " result is" ) +
+ " available, use up and down arrow keys to navigate.";
+ }
+ }
+ },
+
+ __response: function( content ) {
+ var message;
+ this._superApply( arguments );
+ if ( this.options.disabled || this.cancelSearch ) {
+ return;
+ }
+ if ( content && content.length ) {
+ message = this.options.messages.results( content.length );
+ } else {
+ message = this.options.messages.noResults;
+ }
+ this.liveRegion.children().hide();
+ $( "<div>" ).text( message ).appendTo( this.liveRegion );
+ }
+});
+
+var autocomplete = $.ui.autocomplete;
+
+
+/*!
+ * jQuery UI Button 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/button/
+ */
+
+
+var lastActive,
+ baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
+ typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
+ formResetHandler = function() {
+ var form = $( this );
+ setTimeout(function() {
+ form.find( ":ui-button" ).button( "refresh" );
+ }, 1 );
+ },
+ radioGroup = function( radio ) {
+ var name = radio.name,
+ form = radio.form,
+ radios = $( [] );
+ if ( name ) {
+ name = name.replace( /'/g, "\\'" );
+ if ( form ) {
+ radios = $( form ).find( "[name='" + name + "'][type=radio]" );
+ } else {
+ radios = $( "[name='" + name + "'][type=radio]", radio.ownerDocument )
+ .filter(function() {
+ return !this.form;
+ });
+ }
+ }
+ return radios;
+ };
+
+$.widget( "ui.button", {
+ version: "1.11.4",
+ defaultElement: "<button>",
+ options: {
+ disabled: null,
+ text: true,
+ label: null,
+ icons: {
+ primary: null,
+ secondary: null
+ }
+ },
+ _create: function() {
+ this.element.closest( "form" )
+ .unbind( "reset" + this.eventNamespace )
+ .bind( "reset" + this.eventNamespace, formResetHandler );
+
+ if ( typeof this.options.disabled !== "boolean" ) {
+ this.options.disabled = !!this.element.prop( "disabled" );
+ } else {
+ this.element.prop( "disabled", this.options.disabled );
+ }
+
+ this._determineButtonType();
+ this.hasTitle = !!this.buttonElement.attr( "title" );
+
+ var that = this,
+ options = this.options,
+ toggleButton = this.type === "checkbox" || this.type === "radio",
+ activeClass = !toggleButton ? "ui-state-active" : "";
+
+ if ( options.label === null ) {
+ options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html());
+ }
+
+ this._hoverable( this.buttonElement );
+
+ this.buttonElement
+ .addClass( baseClasses )
+ .attr( "role", "button" )
+ .bind( "mouseenter" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return;
+ }
+ if ( this === lastActive ) {
+ $( this ).addClass( "ui-state-active" );
+ }
+ })
+ .bind( "mouseleave" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return;
+ }
+ $( this ).removeClass( activeClass );
+ })
+ .bind( "click" + this.eventNamespace, function( event ) {
+ if ( options.disabled ) {
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ }
+ });
+
+ // Can't use _focusable() because the element that receives focus
+ // and the element that gets the ui-state-focus class are different
+ this._on({
+ focus: function() {
+ this.buttonElement.addClass( "ui-state-focus" );
+ },
+ blur: function() {
+ this.buttonElement.removeClass( "ui-state-focus" );
+ }
+ });
+
+ if ( toggleButton ) {
+ this.element.bind( "change" + this.eventNamespace, function() {
+ that.refresh();
+ });
+ }
+
+ if ( this.type === "checkbox" ) {
+ this.buttonElement.bind( "click" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ });
+ } else if ( this.type === "radio" ) {
+ this.buttonElement.bind( "click" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ $( this ).addClass( "ui-state-active" );
+ that.buttonElement.attr( "aria-pressed", "true" );
+
+ var radio = that.element[ 0 ];
+ radioGroup( radio )
+ .not( radio )
+ .map(function() {
+ return $( this ).button( "widget" )[ 0 ];
+ })
+ .removeClass( "ui-state-active" )
+ .attr( "aria-pressed", "false" );
+ });
+ } else {
+ this.buttonElement
+ .bind( "mousedown" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ $( this ).addClass( "ui-state-active" );
+ lastActive = this;
+ that.document.one( "mouseup", function() {
+ lastActive = null;
+ });
+ })
+ .bind( "mouseup" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ $( this ).removeClass( "ui-state-active" );
+ })
+ .bind( "keydown" + this.eventNamespace, function(event) {
+ if ( options.disabled ) {
+ return false;
+ }
+ if ( event.keyCode === $.ui.keyCode.SPACE || event.keyCode === $.ui.keyCode.ENTER ) {
+ $( this ).addClass( "ui-state-active" );
+ }
+ })
+ // see #8559, we bind to blur here in case the button element loses
+ // focus between keydown and keyup, it would be left in an "active" state
+ .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() {
+ $( this ).removeClass( "ui-state-active" );
+ });
+
+ if ( this.buttonElement.is("a") ) {
+ this.buttonElement.keyup(function(event) {
+ if ( event.keyCode === $.ui.keyCode.SPACE ) {
+ // TODO pass through original event correctly (just as 2nd argument doesn't work)
+ $( this ).click();
+ }
+ });
+ }
+ }
+
+ this._setOption( "disabled", options.disabled );
+ this._resetButton();
+ },
+
+ _determineButtonType: function() {
+ var ancestor, labelSelector, checked;
+
+ if ( this.element.is("[type=checkbox]") ) {
+ this.type = "checkbox";
+ } else if ( this.element.is("[type=radio]") ) {
+ this.type = "radio";
+ } else if ( this.element.is("input") ) {
+ this.type = "input";
+ } else {
+ this.type = "button";
+ }
+
+ if ( this.type === "checkbox" || this.type === "radio" ) {
+ // we don't search against the document in case the element
+ // is disconnected from the DOM
+ ancestor = this.element.parents().last();
+ labelSelector = "label[for='" + this.element.attr("id") + "']";
+ this.buttonElement = ancestor.find( labelSelector );
+ if ( !this.buttonElement.length ) {
+ ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();
+ this.buttonElement = ancestor.filter( labelSelector );
+ if ( !this.buttonElement.length ) {
+ this.buttonElement = ancestor.find( labelSelector );
+ }
+ }
+ this.element.addClass( "ui-helper-hidden-accessible" );
+
+ checked = this.element.is( ":checked" );
+ if ( checked ) {
+ this.buttonElement.addClass( "ui-state-active" );
+ }
+ this.buttonElement.prop( "aria-pressed", checked );
+ } else {
+ this.buttonElement = this.element;
+ }
+ },
+
+ widget: function() {
+ return this.buttonElement;
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-helper-hidden-accessible" );
+ this.buttonElement
+ .removeClass( baseClasses + " ui-state-active " + typeClasses )
+ .removeAttr( "role" )
+ .removeAttr( "aria-pressed" )
+ .html( this.buttonElement.find(".ui-button-text").html() );
+
+ if ( !this.hasTitle ) {
+ this.buttonElement.removeAttr( "title" );
+ }
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+ if ( key === "disabled" ) {
+ this.widget().toggleClass( "ui-state-disabled", !!value );
+ this.element.prop( "disabled", !!value );
+ if ( value ) {
+ if ( this.type === "checkbox" || this.type === "radio" ) {
+ this.buttonElement.removeClass( "ui-state-focus" );
+ } else {
+ this.buttonElement.removeClass( "ui-state-focus ui-state-active" );
+ }
+ }
+ return;
+ }
+ this._resetButton();
+ },
+
+ refresh: function() {
+ //See #8237 & #8828
+ var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
+
+ if ( isDisabled !== this.options.disabled ) {
+ this._setOption( "disabled", isDisabled );
+ }
+ if ( this.type === "radio" ) {
+ radioGroup( this.element[0] ).each(function() {
+ if ( $( this ).is( ":checked" ) ) {
+ $( this ).button( "widget" )
+ .addClass( "ui-state-active" )
+ .attr( "aria-pressed", "true" );
+ } else {
+ $( this ).button( "widget" )
+ .removeClass( "ui-state-active" )
+ .attr( "aria-pressed", "false" );
+ }
+ });
+ } else if ( this.type === "checkbox" ) {
+ if ( this.element.is( ":checked" ) ) {
+ this.buttonElement
+ .addClass( "ui-state-active" )
+ .attr( "aria-pressed", "true" );
+ } else {
+ this.buttonElement
+ .removeClass( "ui-state-active" )
+ .attr( "aria-pressed", "false" );
+ }
+ }
+ },
+
+ _resetButton: function() {
+ if ( this.type === "input" ) {
+ if ( this.options.label ) {
+ this.element.val( this.options.label );
+ }
+ return;
+ }
+ var buttonElement = this.buttonElement.removeClass( typeClasses ),
+ buttonText = $( "<span></span>", this.document[0] )
+ .addClass( "ui-button-text" )
+ .html( this.options.label )
+ .appendTo( buttonElement.empty() )
+ .text(),
+ icons = this.options.icons,
+ multipleIcons = icons.primary && icons.secondary,
+ buttonClasses = [];
+
+ if ( icons.primary || icons.secondary ) {
+ if ( this.options.text ) {
+ buttonClasses.push( "ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );
+ }
+
+ if ( icons.primary ) {
+ buttonElement.prepend( "<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>" );
+ }
+
+ if ( icons.secondary ) {
+ buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" );
+ }
+
+ if ( !this.options.text ) {
+ buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );
+
+ if ( !this.hasTitle ) {
+ buttonElement.attr( "title", $.trim( buttonText ) );
+ }
+ }
+ } else {
+ buttonClasses.push( "ui-button-text-only" );
+ }
+ buttonElement.addClass( buttonClasses.join( " " ) );
+ }
+});
+
+$.widget( "ui.buttonset", {
+ version: "1.11.4",
+ options: {
+ items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
+ },
+
+ _create: function() {
+ this.element.addClass( "ui-buttonset" );
+ },
+
+ _init: function() {
+ this.refresh();
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "disabled" ) {
+ this.buttons.button( "option", key, value );
+ }
+
+ this._super( key, value );
+ },
+
+ refresh: function() {
+ var rtl = this.element.css( "direction" ) === "rtl",
+ allButtons = this.element.find( this.options.items ),
+ existingButtons = allButtons.filter( ":ui-button" );
+
+ // Initialize new buttons
+ allButtons.not( ":ui-button" ).button();
+
+ // Refresh existing buttons
+ existingButtons.button( "refresh" );
+
+ this.buttons = allButtons
+ .map(function() {
+ return $( this ).button( "widget" )[ 0 ];
+ })
+ .removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
+ .filter( ":first" )
+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
+ .end()
+ .filter( ":last" )
+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
+ .end()
+ .end();
+ },
+
+ _destroy: function() {
+ this.element.removeClass( "ui-buttonset" );
+ this.buttons
+ .map(function() {
+ return $( this ).button( "widget" )[ 0 ];
+ })
+ .removeClass( "ui-corner-left ui-corner-right" )
+ .end()
+ .button( "destroy" );
+ }
+});
+
+var button = $.ui.button;
+
+
+/*!
+ * jQuery UI Datepicker 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/datepicker/
+ */
+
+
+$.extend($.ui, { datepicker: { version: "1.11.4" } });
+
+var datepicker_instActive;
+
+function datepicker_getZindex( elem ) {
+ var position, value;
+ while ( elem.length && elem[ 0 ] !== document ) {
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
+ // This makes behavior of this function consistent across browsers
+ // WebKit always returns auto if the element is positioned
+ position = elem.css( "position" );
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
+ // IE returns 0 when zIndex is not specified
+ // other browsers return a string
+ // we ignore the case of nested elements with an explicit value of 0
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
+ value = parseInt( elem.css( "zIndex" ), 10 );
+ if ( !isNaN( value ) && value !== 0 ) {
+ return value;
+ }
+ }
+ elem = elem.parent();
+ }
+
+ return 0;
+}
+/* Date picker manager.
+ Use the singleton instance of this class, $.datepicker, to interact with the date picker.
+ Settings for (groups of) date pickers are maintained in an instance object,
+ allowing multiple different settings on the same page. */
+
+function Datepicker() {
+ this._curInst = null; // The current instance in use
+ this._keyEvent = false; // If the last event was a key event
+ this._disabledInputs = []; // List of date picker inputs that have been disabled
+ this._datepickerShowing = false; // True if the popup picker is showing , false if not
+ this._inDialog = false; // True if showing within a "dialog", false if not
+ this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
+ this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
+ this._appendClass = "ui-datepicker-append"; // The name of the append marker class
+ this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
+ this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
+ this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
+ this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
+ this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
+ this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
+ this.regional = []; // Available regional settings, indexed by language code
+ this.regional[""] = { // Default regional settings
+ closeText: "Done", // Display text for close link
+ prevText: "Prev", // Display text for previous month link
+ nextText: "Next", // Display text for next month link
+ currentText: "Today", // Display text for current month link
+ monthNames: ["January","February","March","April","May","June",
+ "July","August","September","October","November","December"], // Names of months for drop-down and formatting
+ monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], // For formatting
+ dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], // For formatting
+ dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], // For formatting
+ dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"], // Column headings for days starting at Sunday
+ weekHeader: "Wk", // Column header for week of the year
+ dateFormat: "mm/dd/yy", // See format options on parseDate
+ firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
+ isRTL: false, // True if right-to-left language, false if left-to-right
+ showMonthAfterYear: false, // True if the year select precedes month, false for month then year
+ yearSuffix: "" // Additional text to append to the year in the month headers
+ };
+ this._defaults = { // Global defaults for all the date picker instances
+ showOn: "focus", // "focus" for popup on focus,
+ // "button" for trigger button, or "both" for either
+ showAnim: "fadeIn", // Name of jQuery animation for popup
+ showOptions: {}, // Options for enhanced animations
+ defaultDate: null, // Used when field is blank: actual date,
+ // +/-number for offset from today, null for today
+ appendText: "", // Display text following the input box, e.g. showing the format
+ buttonText: "...", // Text for trigger button
+ buttonImage: "", // URL for trigger button image
+ buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
+ hideIfNoPrevNext: false, // True to hide next/previous month links
+ // if not applicable, false to just disable them
+ navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
+ gotoCurrent: false, // True if today link goes back to current selection instead
+ changeMonth: false, // True if month can be selected directly, false if only prev/next
+ changeYear: false, // True if year can be selected directly, false if only prev/next
+ yearRange: "c-10:c+10", // Range of years to display in drop-down,
+ // either relative to today's year (-nn:+nn), relative to currently displayed year
+ // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
+ showOtherMonths: false, // True to show dates in other months, false to leave blank
+ selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
+ showWeek: false, // True to show week of the year, false to not show it
+ calculateWeek: this.iso8601Week, // How to calculate the week of the year,
+ // takes a Date and returns the number of the week for it
+ shortYearCutoff: "+10", // Short year values < this are in the current century,
+ // > this are in the previous century,
+ // string value starting with "+" for current year + value
+ minDate: null, // The earliest selectable date, or null for no limit
+ maxDate: null, // The latest selectable date, or null for no limit
+ duration: "fast", // Duration of display/closure
+ beforeShowDay: null, // Function that takes a date and returns an array with
+ // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
+ // [2] = cell title (optional), e.g. $.datepicker.noWeekends
+ beforeShow: null, // Function that takes an input field and
+ // returns a set of custom settings for the date picker
+ onSelect: null, // Define a callback function when a date is selected
+ onChangeMonthYear: null, // Define a callback function when the month or year is changed
+ onClose: null, // Define a callback function when the datepicker is closed
+ numberOfMonths: 1, // Number of months to show at a time
+ showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
+ stepMonths: 1, // Number of months to step back/forward
+ stepBigMonths: 12, // Number of months to step back/forward for the big links
+ altField: "", // Selector for an alternate field to store selected dates into
+ altFormat: "", // The date format to use for the alternate field
+ constrainInput: true, // The input is constrained by the current date format
+ showButtonPanel: false, // True to show button panel, false to not show it
+ autoSize: false, // True to size the input for the date format, false to leave as is
+ disabled: false // The initial disabled state
+ };
+ $.extend(this._defaults, this.regional[""]);
+ this.regional.en = $.extend( true, {}, this.regional[ "" ]);
+ this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
+ this.dpDiv = datepicker_bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
+}
+
+$.extend(Datepicker.prototype, {
+ /* Class name added to elements to indicate already configured with a date picker. */
+ markerClassName: "hasDatepicker",
+
+ //Keep track of the maximum number of rows displayed (see #7043)
+ maxRows: 4,
+
+ // TODO rename to "widget" when switching to widget factory
+ _widgetDatepicker: function() {
+ return this.dpDiv;
+ },
+
+ /* Override the default settings for all instances of the date picker.
+ * @param settings object - the new settings to use as defaults (anonymous object)
+ * @return the manager object
+ */
+ setDefaults: function(settings) {
+ datepicker_extendRemove(this._defaults, settings || {});
+ return this;
+ },
+
+ /* Attach the date picker to a jQuery selection.
+ * @param target element - the target input field or division or span
+ * @param settings object - the new settings to use for this date picker instance (anonymous)
+ */
+ _attachDatepicker: function(target, settings) {
+ var nodeName, inline, inst;
+ nodeName = target.nodeName.toLowerCase();
+ inline = (nodeName === "div" || nodeName === "span");
+ if (!target.id) {
+ this.uuid += 1;
+ target.id = "dp" + this.uuid;
+ }
+ inst = this._newInst($(target), inline);
+ inst.settings = $.extend({}, settings || {});
+ if (nodeName === "input") {
+ this._connectDatepicker(target, inst);
+ } else if (inline) {
+ this._inlineDatepicker(target, inst);
+ }
+ },
+
+ /* Create a new instance object. */
+ _newInst: function(target, inline) {
+ var id = target[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"); // escape jQuery meta chars
+ return {id: id, input: target, // associated target
+ selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
+ drawMonth: 0, drawYear: 0, // month being drawn
+ inline: inline, // is datepicker inline or not
+ dpDiv: (!inline ? this.dpDiv : // presentation div
+ datepicker_bindHover($("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))};
+ },
+
+ /* Attach the date picker to an input field. */
+ _connectDatepicker: function(target, inst) {
+ var input = $(target);
+ inst.append = $([]);
+ inst.trigger = $([]);
+ if (input.hasClass(this.markerClassName)) {
+ return;
+ }
+ this._attachments(input, inst);
+ input.addClass(this.markerClassName).keydown(this._doKeyDown).
+ keypress(this._doKeyPress).keyup(this._doKeyUp);
+ this._autoSize(inst);
+ $.data(target, "datepicker", inst);
+ //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
+ if( inst.settings.disabled ) {
+ this._disableDatepicker( target );
+ }
+ },
+
+ /* Make attachments based on settings. */
+ _attachments: function(input, inst) {
+ var showOn, buttonText, buttonImage,
+ appendText = this._get(inst, "appendText"),
+ isRTL = this._get(inst, "isRTL");
+
+ if (inst.append) {
+ inst.append.remove();
+ }
+ if (appendText) {
+ inst.append = $("<span class='" + this._appendClass + "'>" + appendText + "</span>");
+ input[isRTL ? "before" : "after"](inst.append);
+ }
+
+ input.unbind("focus", this._showDatepicker);
+
+ if (inst.trigger) {
+ inst.trigger.remove();
+ }
+
+ showOn = this._get(inst, "showOn");
+ if (showOn === "focus" || showOn === "both") { // pop-up date picker when in the marked field
+ input.focus(this._showDatepicker);
+ }
+ if (showOn === "button" || showOn === "both") { // pop-up date picker when button clicked
+ buttonText = this._get(inst, "buttonText");
+ buttonImage = this._get(inst, "buttonImage");
+ inst.trigger = $(this._get(inst, "buttonImageOnly") ?
+ $("<img/>").addClass(this._triggerClass).
+ attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
+ $("<button type='button'></button>").addClass(this._triggerClass).
+ html(!buttonImage ? buttonText : $("<img/>").attr(
+ { src:buttonImage, alt:buttonText, title:buttonText })));
+ input[isRTL ? "before" : "after"](inst.trigger);
+ inst.trigger.click(function() {
+ if ($.datepicker._datepickerShowing && $.datepicker._lastInput === input[0]) {
+ $.datepicker._hideDatepicker();
+ } else if ($.datepicker._datepickerShowing && $.datepicker._lastInput !== input[0]) {
+ $.datepicker._hideDatepicker();
+ $.datepicker._showDatepicker(input[0]);
+ } else {
+ $.datepicker._showDatepicker(input[0]);
+ }
+ return false;
+ });
+ }
+ },
+
+ /* Apply the maximum length for the date format. */
+ _autoSize: function(inst) {
+ if (this._get(inst, "autoSize") && !inst.inline) {
+ var findMax, max, maxI, i,
+ date = new Date(2009, 12 - 1, 20), // Ensure double digits
+ dateFormat = this._get(inst, "dateFormat");
+
+ if (dateFormat.match(/[DM]/)) {
+ findMax = function(names) {
+ max = 0;
+ maxI = 0;
+ for (i = 0; i < names.length; i++) {
+ if (names[i].length > max) {
+ max = names[i].length;
+ maxI = i;
+ }
+ }
+ return maxI;
+ };
+ date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?
+ "monthNames" : "monthNamesShort"))));
+ date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?
+ "dayNames" : "dayNamesShort"))) + 20 - date.getDay());
+ }
+ inst.input.attr("size", this._formatDate(inst, date).length);
+ }
+ },
+
+ /* Attach an inline date picker to a div. */
+ _inlineDatepicker: function(target, inst) {
+ var divSpan = $(target);
+ if (divSpan.hasClass(this.markerClassName)) {
+ return;
+ }
+ divSpan.addClass(this.markerClassName).append(inst.dpDiv);
+ $.data(target, "datepicker", inst);
+ this._setDate(inst, this._getDefaultDate(inst), true);
+ this._updateDatepicker(inst);
+ this._updateAlternate(inst);
+ //If disabled option is true, disable the datepicker before showing it (see ticket #5665)
+ if( inst.settings.disabled ) {
+ this._disableDatepicker( target );
+ }
+ // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
+ // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
+ inst.dpDiv.css( "display", "block" );
+ },
+
+ /* Pop-up the date picker in a "dialog" box.
+ * @param input element - ignored
+ * @param date string or Date - the initial date to display
+ * @param onSelect function - the function to call when a date is selected
+ * @param settings object - update the dialog date picker instance's settings (anonymous object)
+ * @param pos int[2] - coordinates for the dialog's position within the screen or
+ * event - with x/y coordinates or
+ * leave empty for default (screen centre)
+ * @return the manager object
+ */
+ _dialogDatepicker: function(input, date, onSelect, settings, pos) {
+ var id, browserWidth, browserHeight, scrollX, scrollY,
+ inst = this._dialogInst; // internal instance
+
+ if (!inst) {
+ this.uuid += 1;
+ id = "dp" + this.uuid;
+ this._dialogInput = $("<input type='text' id='" + id +
+ "' style='position: absolute; top: -100px; width: 0px;'/>");
+ this._dialogInput.keydown(this._doKeyDown);
+ $("body").append(this._dialogInput);
+ inst = this._dialogInst = this._newInst(this._dialogInput, false);
+ inst.settings = {};
+ $.data(this._dialogInput[0], "datepicker", inst);
+ }
+ datepicker_extendRemove(inst.settings, settings || {});
+ date = (date && date.constructor === Date ? this._formatDate(inst, date) : date);
+ this._dialogInput.val(date);
+
+ this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
+ if (!this._pos) {
+ browserWidth = document.documentElement.clientWidth;
+ browserHeight = document.documentElement.clientHeight;
+ scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
+ scrollY = document.documentElement.scrollTop || document.body.scrollTop;
+ this._pos = // should use actual width/height below
+ [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
+ }
+
+ // move input on screen for focus, but hidden behind dialog
+ this._dialogInput.css("left", (this._pos[0] + 20) + "px").css("top", this._pos[1] + "px");
+ inst.settings.onSelect = onSelect;
+ this._inDialog = true;
+ this.dpDiv.addClass(this._dialogClass);
+ this._showDatepicker(this._dialogInput[0]);
+ if ($.blockUI) {
+ $.blockUI(this.dpDiv);
+ }
+ $.data(this._dialogInput[0], "datepicker", inst);
+ return this;
+ },
+
+ /* Detach a datepicker from its control.
+ * @param target element - the target input field or division or span
+ */
+ _destroyDatepicker: function(target) {
+ var nodeName,
+ $target = $(target),
+ inst = $.data(target, "datepicker");
+
+ if (!$target.hasClass(this.markerClassName)) {
+ return;
+ }
+
+ nodeName = target.nodeName.toLowerCase();
+ $.removeData(target, "datepicker");
+ if (nodeName === "input") {
+ inst.append.remove();
+ inst.trigger.remove();
+ $target.removeClass(this.markerClassName).
+ unbind("focus", this._showDatepicker).
+ unbind("keydown", this._doKeyDown).
+ unbind("keypress", this._doKeyPress).
+ unbind("keyup", this._doKeyUp);
+ } else if (nodeName === "div" || nodeName === "span") {
+ $target.removeClass(this.markerClassName).empty();
+ }
+
+ if ( datepicker_instActive === inst ) {
+ datepicker_instActive = null;
+ }
+ },
+
+ /* Enable the date picker to a jQuery selection.
+ * @param target element - the target input field or division or span
+ */
+ _enableDatepicker: function(target) {
+ var nodeName, inline,
+ $target = $(target),
+ inst = $.data(target, "datepicker");
+
+ if (!$target.hasClass(this.markerClassName)) {
+ return;
+ }
+
+ nodeName = target.nodeName.toLowerCase();
+ if (nodeName === "input") {
+ target.disabled = false;
+ inst.trigger.filter("button").
+ each(function() { this.disabled = false; }).end().
+ filter("img").css({opacity: "1.0", cursor: ""});
+ } else if (nodeName === "div" || nodeName === "span") {
+ inline = $target.children("." + this._inlineClass);
+ inline.children().removeClass("ui-state-disabled");
+ inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
+ prop("disabled", false);
+ }
+ this._disabledInputs = $.map(this._disabledInputs,
+ function(value) { return (value === target ? null : value); }); // delete entry
+ },
+
+ /* Disable the date picker to a jQuery selection.
+ * @param target element - the target input field or division or span
+ */
+ _disableDatepicker: function(target) {
+ var nodeName, inline,
+ $target = $(target),
+ inst = $.data(target, "datepicker");
+
+ if (!$target.hasClass(this.markerClassName)) {
+ return;
+ }
+
+ nodeName = target.nodeName.toLowerCase();
+ if (nodeName === "input") {
+ target.disabled = true;
+ inst.trigger.filter("button").
+ each(function() { this.disabled = true; }).end().
+ filter("img").css({opacity: "0.5", cursor: "default"});
+ } else if (nodeName === "div" || nodeName === "span") {
+ inline = $target.children("." + this._inlineClass);
+ inline.children().addClass("ui-state-disabled");
+ inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
+ prop("disabled", true);
+ }
+ this._disabledInputs = $.map(this._disabledInputs,
+ function(value) { return (value === target ? null : value); }); // delete entry
+ this._disabledInputs[this._disabledInputs.length] = target;
+ },
+
+ /* Is the first field in a jQuery collection disabled as a datepicker?
+ * @param target element - the target input field or division or span
+ * @return boolean - true if disabled, false if enabled
+ */
+ _isDisabledDatepicker: function(target) {
+ if (!target) {
+ return false;
+ }
+ for (var i = 0; i < this._disabledInputs.length; i++) {
+ if (this._disabledInputs[i] === target) {
+ return true;
+ }
+ }
+ return false;
+ },
+
+ /* Retrieve the instance data for the target control.
+ * @param target element - the target input field or division or span
+ * @return object - the associated instance data
+ * @throws error if a jQuery problem getting data
+ */
+ _getInst: function(target) {
+ try {
+ return $.data(target, "datepicker");
+ }
+ catch (err) {
+ throw "Missing instance data for this datepicker";
+ }
+ },
+
+ /* Update or retrieve the settings for a date picker attached to an input field or division.
+ * @param target element - the target input field or division or span
+ * @param name object - the new settings to update or
+ * string - the name of the setting to change or retrieve,
+ * when retrieving also "all" for all instance settings or
+ * "defaults" for all global defaults
+ * @param value any - the new value for the setting
+ * (omit if above is an object or to retrieve a value)
+ */
+ _optionDatepicker: function(target, name, value) {
+ var settings, date, minDate, maxDate,
+ inst = this._getInst(target);
+
+ if (arguments.length === 2 && typeof name === "string") {
+ return (name === "defaults" ? $.extend({}, $.datepicker._defaults) :
+ (inst ? (name === "all" ? $.extend({}, inst.settings) :
+ this._get(inst, name)) : null));
+ }
+
+ settings = name || {};
+ if (typeof name === "string") {
+ settings = {};
+ settings[name] = value;
+ }
+
+ if (inst) {
+ if (this._curInst === inst) {
+ this._hideDatepicker();
+ }
+
+ date = this._getDateDatepicker(target, true);
+ minDate = this._getMinMaxDate(inst, "min");
+ maxDate = this._getMinMaxDate(inst, "max");
+ datepicker_extendRemove(inst.settings, settings);
+ // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
+ if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) {
+ inst.settings.minDate = this._formatDate(inst, minDate);
+ }
+ if (maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined) {
+ inst.settings.maxDate = this._formatDate(inst, maxDate);
+ }
+ if ( "disabled" in settings ) {
+ if ( settings.disabled ) {
+ this._disableDatepicker(target);
+ } else {
+ this._enableDatepicker(target);
+ }
+ }
+ this._attachments($(target), inst);
+ this._autoSize(inst);
+ this._setDate(inst, date);
+ this._updateAlternate(inst);
+ this._updateDatepicker(inst);
+ }
+ },
+
+ // change method deprecated
+ _changeDatepicker: function(target, name, value) {
+ this._optionDatepicker(target, name, value);
+ },
+
+ /* Redraw the date picker attached to an input field or division.
+ * @param target element - the target input field or division or span
+ */
+ _refreshDatepicker: function(target) {
+ var inst = this._getInst(target);
+ if (inst) {
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Set the dates for a jQuery selection.
+ * @param target element - the target input field or division or span
+ * @param date Date - the new date
+ */
+ _setDateDatepicker: function(target, date) {
+ var inst = this._getInst(target);
+ if (inst) {
+ this._setDate(inst, date);
+ this._updateDatepicker(inst);
+ this._updateAlternate(inst);
+ }
+ },
+
+ /* Get the date(s) for the first entry in a jQuery selection.
+ * @param target element - the target input field or division or span
+ * @param noDefault boolean - true if no default date is to be used
+ * @return Date - the current date
+ */
+ _getDateDatepicker: function(target, noDefault) {
+ var inst = this._getInst(target);
+ if (inst && !inst.inline) {
+ this._setDateFromField(inst, noDefault);
+ }
+ return (inst ? this._getDate(inst) : null);
+ },
+
+ /* Handle keystrokes. */
+ _doKeyDown: function(event) {
+ var onSelect, dateStr, sel,
+ inst = $.datepicker._getInst(event.target),
+ handled = true,
+ isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
+
+ inst._keyEvent = true;
+ if ($.datepicker._datepickerShowing) {
+ switch (event.keyCode) {
+ case 9: $.datepicker._hideDatepicker();
+ handled = false;
+ break; // hide on tab out
+ case 13: sel = $("td." + $.datepicker._dayOverClass + ":not(." +
+ $.datepicker._currentClass + ")", inst.dpDiv);
+ if (sel[0]) {
+ $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
+ }
+
+ onSelect = $.datepicker._get(inst, "onSelect");
+ if (onSelect) {
+ dateStr = $.datepicker._formatDate(inst);
+
+ // trigger custom callback
+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);
+ } else {
+ $.datepicker._hideDatepicker();
+ }
+
+ return false; // don't submit the form
+ case 27: $.datepicker._hideDatepicker();
+ break; // hide on escape
+ case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ -$.datepicker._get(inst, "stepBigMonths") :
+ -$.datepicker._get(inst, "stepMonths")), "M");
+ break; // previous month/year on page up/+ ctrl
+ case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ +$.datepicker._get(inst, "stepBigMonths") :
+ +$.datepicker._get(inst, "stepMonths")), "M");
+ break; // next month/year on page down/+ ctrl
+ case 35: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._clearDate(event.target);
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // clear on ctrl or command +end
+ case 36: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._gotoToday(event.target);
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // current on ctrl or command +home
+ case 37: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ // -1 day on ctrl or command +left
+ if (event.originalEvent.altKey) {
+ $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ -$.datepicker._get(inst, "stepBigMonths") :
+ -$.datepicker._get(inst, "stepMonths")), "M");
+ }
+ // next month/year on alt +left on Mac
+ break;
+ case 38: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, -7, "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // -1 week on ctrl or command +up
+ case 39: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ // +1 day on ctrl or command +right
+ if (event.originalEvent.altKey) {
+ $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ +$.datepicker._get(inst, "stepBigMonths") :
+ +$.datepicker._get(inst, "stepMonths")), "M");
+ }
+ // next month/year on alt +right
+ break;
+ case 40: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, +7, "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // +1 week on ctrl or command +down
+ default: handled = false;
+ }
+ } else if (event.keyCode === 36 && event.ctrlKey) { // display the date picker on ctrl+home
+ $.datepicker._showDatepicker(this);
+ } else {
+ handled = false;
+ }
+
+ if (handled) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ },
+
+ /* Filter entered characters - based on date format. */
+ _doKeyPress: function(event) {
+ var chars, chr,
+ inst = $.datepicker._getInst(event.target);
+
+ if ($.datepicker._get(inst, "constrainInput")) {
+ chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat"));
+ chr = String.fromCharCode(event.charCode == null ? event.keyCode : event.charCode);
+ return event.ctrlKey || event.metaKey || (chr < " " || !chars || chars.indexOf(chr) > -1);
+ }
+ },
+
+ /* Synchronise manual entry and field/alternate field. */
+ _doKeyUp: function(event) {
+ var date,
+ inst = $.datepicker._getInst(event.target);
+
+ if (inst.input.val() !== inst.lastVal) {
+ try {
+ date = $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
+ (inst.input ? inst.input.val() : null),
+ $.datepicker._getFormatConfig(inst));
+
+ if (date) { // only if valid
+ $.datepicker._setDateFromField(inst);
+ $.datepicker._updateAlternate(inst);
+ $.datepicker._updateDatepicker(inst);
+ }
+ }
+ catch (err) {
+ }
+ }
+ return true;
+ },
+
+ /* Pop-up the date picker for a given input field.
+ * If false returned from beforeShow event handler do not show.
+ * @param input element - the input field attached to the date picker or
+ * event - if triggered by focus
+ */
+ _showDatepicker: function(input) {
+ input = input.target || input;
+ if (input.nodeName.toLowerCase() !== "input") { // find from button/image trigger
+ input = $("input", input.parentNode)[0];
+ }
+
+ if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput === input) { // already here
+ return;
+ }
+
+ var inst, beforeShow, beforeShowSettings, isFixed,
+ offset, showAnim, duration;
+
+ inst = $.datepicker._getInst(input);
+ if ($.datepicker._curInst && $.datepicker._curInst !== inst) {
+ $.datepicker._curInst.dpDiv.stop(true, true);
+ if ( inst && $.datepicker._datepickerShowing ) {
+ $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );
+ }
+ }
+
+ beforeShow = $.datepicker._get(inst, "beforeShow");
+ beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};
+ if(beforeShowSettings === false){
+ return;
+ }
+ datepicker_extendRemove(inst.settings, beforeShowSettings);
+
+ inst.lastVal = null;
+ $.datepicker._lastInput = input;
+ $.datepicker._setDateFromField(inst);
+
+ if ($.datepicker._inDialog) { // hide cursor
+ input.value = "";
+ }
+ if (!$.datepicker._pos) { // position below input
+ $.datepicker._pos = $.datepicker._findPos(input);
+ $.datepicker._pos[1] += input.offsetHeight; // add the height
+ }
+
+ isFixed = false;
+ $(input).parents().each(function() {
+ isFixed |= $(this).css("position") === "fixed";
+ return !isFixed;
+ });
+
+ offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
+ $.datepicker._pos = null;
+ //to avoid flashes on Firefox
+ inst.dpDiv.empty();
+ // determine sizing offscreen
+ inst.dpDiv.css({position: "absolute", display: "block", top: "-1000px"});
+ $.datepicker._updateDatepicker(inst);
+ // fix width for dynamic number of date pickers
+ // and adjust position before showing
+ offset = $.datepicker._checkOffset(inst, offset, isFixed);
+ inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
+ "static" : (isFixed ? "fixed" : "absolute")), display: "none",
+ left: offset.left + "px", top: offset.top + "px"});
+
+ if (!inst.inline) {
+ showAnim = $.datepicker._get(inst, "showAnim");
+ duration = $.datepicker._get(inst, "duration");
+ inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
+ $.datepicker._datepickerShowing = true;
+
+ if ( $.effects && $.effects.effect[ showAnim ] ) {
+ inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration);
+ } else {
+ inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
+ }
+
+ if ( $.datepicker._shouldFocusInput( inst ) ) {
+ inst.input.focus();
+ }
+
+ $.datepicker._curInst = inst;
+ }
+ },
+
+ /* Generate the date picker content. */
+ _updateDatepicker: function(inst) {
+ this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
+ datepicker_instActive = inst; // for delegate hover events
+ inst.dpDiv.empty().append(this._generateHTML(inst));
+ this._attachHandlers(inst);
+
+ var origyearshtml,
+ numMonths = this._getNumberOfMonths(inst),
+ cols = numMonths[1],
+ width = 17,
+ activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
+
+ if ( activeCell.length > 0 ) {
+ datepicker_handleMouseover.apply( activeCell.get( 0 ) );
+ }
+
+ inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
+ if (cols > 1) {
+ inst.dpDiv.addClass("ui-datepicker-multi-" + cols).css("width", (width * cols) + "em");
+ }
+ inst.dpDiv[(numMonths[0] !== 1 || numMonths[1] !== 1 ? "add" : "remove") +
+ "Class"]("ui-datepicker-multi");
+ inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
+ "Class"]("ui-datepicker-rtl");
+
+ if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
+ inst.input.focus();
+ }
+
+ // deffered render of the years select (to avoid flashes on Firefox)
+ if( inst.yearshtml ){
+ origyearshtml = inst.yearshtml;
+ setTimeout(function(){
+ //assure that inst.yearshtml didn't change.
+ if( origyearshtml === inst.yearshtml && inst.yearshtml ){
+ inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml);
+ }
+ origyearshtml = inst.yearshtml = null;
+ }, 0);
+ }
+ },
+
+ // #6694 - don't focus the input if it's already focused
+ // this breaks the change event in IE
+ // Support: IE and jQuery <1.9
+ _shouldFocusInput: function( inst ) {
+ return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
+ },
+
+ /* Check positioning to remain on screen. */
+ _checkOffset: function(inst, offset, isFixed) {
+ var dpWidth = inst.dpDiv.outerWidth(),
+ dpHeight = inst.dpDiv.outerHeight(),
+ inputWidth = inst.input ? inst.input.outerWidth() : 0,
+ inputHeight = inst.input ? inst.input.outerHeight() : 0,
+ viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()),
+ viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());
+
+ offset.left -= (this._get(inst, "isRTL") ? (dpWidth - inputWidth) : 0);
+ offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0;
+ offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
+
+ // now check if datepicker is showing outside window viewport - move to a better place if so.
+ offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?
+ Math.abs(offset.left + dpWidth - viewWidth) : 0);
+ offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?
+ Math.abs(dpHeight + inputHeight) : 0);
+
+ return offset;
+ },
+
+ /* Find an object's position on the screen. */
+ _findPos: function(obj) {
+ var position,
+ inst = this._getInst(obj),
+ isRTL = this._get(inst, "isRTL");
+
+ while (obj && (obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden(obj))) {
+ obj = obj[isRTL ? "previousSibling" : "nextSibling"];
+ }
+
+ position = $(obj).offset();
+ return [position.left, position.top];
+ },
+
+ /* Hide the date picker from view.
+ * @param input element - the input field attached to the date picker
+ */
+ _hideDatepicker: function(input) {
+ var showAnim, duration, postProcess, onClose,
+ inst = this._curInst;
+
+ if (!inst || (input && inst !== $.data(input, "datepicker"))) {
+ return;
+ }
+
+ if (this._datepickerShowing) {
+ showAnim = this._get(inst, "showAnim");
+ duration = this._get(inst, "duration");
+ postProcess = function() {
+ $.datepicker._tidyDialog(inst);
+ };
+
+ // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
+ if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
+ inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess);
+ } else {
+ inst.dpDiv[(showAnim === "slideDown" ? "slideUp" :
+ (showAnim === "fadeIn" ? "fadeOut" : "hide"))]((showAnim ? duration : null), postProcess);
+ }
+
+ if (!showAnim) {
+ postProcess();
+ }
+ this._datepickerShowing = false;
+
+ onClose = this._get(inst, "onClose");
+ if (onClose) {
+ onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst]);
+ }
+
+ this._lastInput = null;
+ if (this._inDialog) {
+ this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" });
+ if ($.blockUI) {
+ $.unblockUI();
+ $("body").append(this.dpDiv);
+ }
+ }
+ this._inDialog = false;
+ }
+ },
+
+ /* Tidy up after a dialog display. */
+ _tidyDialog: function(inst) {
+ inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");
+ },
+
+ /* Close date picker if clicked elsewhere. */
+ _checkExternalClick: function(event) {
+ if (!$.datepicker._curInst) {
+ return;
+ }
+
+ var $target = $(event.target),
+ inst = $.datepicker._getInst($target[0]);
+
+ if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
+ $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
+ !$target.hasClass($.datepicker.markerClassName) &&
+ !$target.closest("." + $.datepicker._triggerClass).length &&
+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
+ ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst !== inst ) ) {
+ $.datepicker._hideDatepicker();
+ }
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustDate: function(id, offset, period) {
+ var target = $(id),
+ inst = this._getInst(target[0]);
+
+ if (this._isDisabledDatepicker(target[0])) {
+ return;
+ }
+ this._adjustInstDate(inst, offset +
+ (period === "M" ? this._get(inst, "showCurrentAtPos") : 0), // undo positioning
+ period);
+ this._updateDatepicker(inst);
+ },
+
+ /* Action for current link. */
+ _gotoToday: function(id) {
+ var date,
+ target = $(id),
+ inst = this._getInst(target[0]);
+
+ if (this._get(inst, "gotoCurrent") && inst.currentDay) {
+ inst.selectedDay = inst.currentDay;
+ inst.drawMonth = inst.selectedMonth = inst.currentMonth;
+ inst.drawYear = inst.selectedYear = inst.currentYear;
+ } else {
+ date = new Date();
+ inst.selectedDay = date.getDate();
+ inst.drawMonth = inst.selectedMonth = date.getMonth();
+ inst.drawYear = inst.selectedYear = date.getFullYear();
+ }
+ this._notifyChange(inst);
+ this._adjustDate(target);
+ },
+
+ /* Action for selecting a new month/year. */
+ _selectMonthYear: function(id, select, period) {
+ var target = $(id),
+ inst = this._getInst(target[0]);
+
+ inst["selected" + (period === "M" ? "Month" : "Year")] =
+ inst["draw" + (period === "M" ? "Month" : "Year")] =
+ parseInt(select.options[select.selectedIndex].value,10);
+
+ this._notifyChange(inst);
+ this._adjustDate(target);
+ },
+
+ /* Action for selecting a day. */
+ _selectDay: function(id, month, year, td) {
+ var inst,
+ target = $(id);
+
+ if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {
+ return;
+ }
+
+ inst = this._getInst(target[0]);
+ inst.selectedDay = inst.currentDay = $("a", td).html();
+ inst.selectedMonth = inst.currentMonth = month;
+ inst.selectedYear = inst.currentYear = year;
+ this._selectDate(id, this._formatDate(inst,
+ inst.currentDay, inst.currentMonth, inst.currentYear));
+ },
+
+ /* Erase the input field and hide the date picker. */
+ _clearDate: function(id) {
+ var target = $(id);
+ this._selectDate(target, "");
+ },
+
+ /* Update the input field with the selected date. */
+ _selectDate: function(id, dateStr) {
+ var onSelect,
+ target = $(id),
+ inst = this._getInst(target[0]);
+
+ dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
+ if (inst.input) {
+ inst.input.val(dateStr);
+ }
+ this._updateAlternate(inst);
+
+ onSelect = this._get(inst, "onSelect");
+ if (onSelect) {
+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback
+ } else if (inst.input) {
+ inst.input.trigger("change"); // fire the change event
+ }
+
+ if (inst.inline){
+ this._updateDatepicker(inst);
+ } else {
+ this._hideDatepicker();
+ this._lastInput = inst.input[0];
+ if (typeof(inst.input[0]) !== "object") {
+ inst.input.focus(); // restore focus
+ }
+ this._lastInput = null;
+ }
+ },
+
+ /* Update any alternate field to synchronise with the main field. */
+ _updateAlternate: function(inst) {
+ var altFormat, date, dateStr,
+ altField = this._get(inst, "altField");
+
+ if (altField) { // update alternate field too
+ altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat");
+ date = this._getDate(inst);
+ dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));
+ $(altField).each(function() { $(this).val(dateStr); });
+ }
+ },
+
+ /* Set as beforeShowDay function to prevent selection of weekends.
+ * @param date Date - the date to customise
+ * @return [boolean, string] - is this date selectable?, what is its CSS class?
+ */
+ noWeekends: function(date) {
+ var day = date.getDay();
+ return [(day > 0 && day < 6), ""];
+ },
+
+ /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
+ * @param date Date - the date to get the week for
+ * @return number - the number of the week within the year that contains this date
+ */
+ iso8601Week: function(date) {
+ var time,
+ checkDate = new Date(date.getTime());
+
+ // Find Thursday of this week starting on Monday
+ checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
+
+ time = checkDate.getTime();
+ checkDate.setMonth(0); // Compare with Jan 1
+ checkDate.setDate(1);
+ return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
+ },
+
+ /* Parse a string value into a date object.
+ * See formatDate below for the possible formats.
+ *
+ * @param format string - the expected format of the date
+ * @param value string - the date in the above format
+ * @param settings Object - attributes include:
+ * shortYearCutoff number - the cutoff year for determining the century (optional)
+ * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
+ * dayNames string[7] - names of the days from Sunday (optional)
+ * monthNamesShort string[12] - abbreviated names of the months (optional)
+ * monthNames string[12] - names of the months (optional)
+ * @return Date - the extracted date value or null if value is blank
+ */
+ parseDate: function (format, value, settings) {
+ if (format == null || value == null) {
+ throw "Invalid arguments";
+ }
+
+ value = (typeof value === "object" ? value.toString() : value + "");
+ if (value === "") {
+ return null;
+ }
+
+ var iFormat, dim, extra,
+ iValue = 0,
+ shortYearCutoffTemp = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff,
+ shortYearCutoff = (typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp :
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoffTemp, 10)),
+ dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
+ dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
+ monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
+ monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
+ year = -1,
+ month = -1,
+ day = -1,
+ doy = -1,
+ literal = false,
+ date,
+ // Check whether a format character is doubled
+ lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
+ if (matches) {
+ iFormat++;
+ }
+ return matches;
+ },
+ // Extract a number from the string value
+ getNumber = function(match) {
+ var isDoubled = lookAhead(match),
+ size = (match === "@" ? 14 : (match === "!" ? 20 :
+ (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
+ minSize = (match === "y" ? size : 1),
+ digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
+ num = value.substring(iValue).match(digits);
+ if (!num) {
+ throw "Missing number at position " + iValue;
+ }
+ iValue += num[0].length;
+ return parseInt(num[0], 10);
+ },
+ // Extract a name from the string value and convert to an index
+ getName = function(match, shortNames, longNames) {
+ var index = -1,
+ names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) {
+ return [ [k, v] ];
+ }).sort(function (a, b) {
+ return -(a[1].length - b[1].length);
+ });
+
+ $.each(names, function (i, pair) {
+ var name = pair[1];
+ if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
+ index = pair[0];
+ iValue += name.length;
+ return false;
+ }
+ });
+ if (index !== -1) {
+ return index + 1;
+ } else {
+ throw "Unknown name at position " + iValue;
+ }
+ },
+ // Confirm that a literal character matches the string value
+ checkLiteral = function() {
+ if (value.charAt(iValue) !== format.charAt(iFormat)) {
+ throw "Unexpected literal at position " + iValue;
+ }
+ iValue++;
+ };
+
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal) {
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
+ literal = false;
+ } else {
+ checkLiteral();
+ }
+ } else {
+ switch (format.charAt(iFormat)) {
+ case "d":
+ day = getNumber("d");
+ break;
+ case "D":
+ getName("D", dayNamesShort, dayNames);
+ break;
+ case "o":
+ doy = getNumber("o");
+ break;
+ case "m":
+ month = getNumber("m");
+ break;
+ case "M":
+ month = getName("M", monthNamesShort, monthNames);
+ break;
+ case "y":
+ year = getNumber("y");
+ break;
+ case "@":
+ date = new Date(getNumber("@"));
+ year = date.getFullYear();
+ month = date.getMonth() + 1;
+ day = date.getDate();
+ break;
+ case "!":
+ date = new Date((getNumber("!") - this._ticksTo1970) / 10000);
+ year = date.getFullYear();
+ month = date.getMonth() + 1;
+ day = date.getDate();
+ break;
+ case "'":
+ if (lookAhead("'")){
+ checkLiteral();
+ } else {
+ literal = true;
+ }
+ break;
+ default:
+ checkLiteral();
+ }
+ }
+ }
+
+ if (iValue < value.length){
+ extra = value.substr(iValue);
+ if (!/^\s+/.test(extra)) {
+ throw "Extra/unparsed characters found in date: " + extra;
+ }
+ }
+
+ if (year === -1) {
+ year = new Date().getFullYear();
+ } else if (year < 100) {
+ year += new Date().getFullYear() - new Date().getFullYear() % 100 +
+ (year <= shortYearCutoff ? 0 : -100);
+ }
+
+ if (doy > -1) {
+ month = 1;
+ day = doy;
+ do {
+ dim = this._getDaysInMonth(year, month - 1);
+ if (day <= dim) {
+ break;
+ }
+ month++;
+ day -= dim;
+ } while (true);
+ }
+
+ date = this._daylightSavingAdjust(new Date(year, month - 1, day));
+ if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
+ throw "Invalid date"; // E.g. 31/02/00
+ }
+ return date;
+ },
+
+ /* Standard date formats. */
+ ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
+ COOKIE: "D, dd M yy",
+ ISO_8601: "yy-mm-dd",
+ RFC_822: "D, d M y",
+ RFC_850: "DD, dd-M-y",
+ RFC_1036: "D, d M y",
+ RFC_1123: "D, d M yy",
+ RFC_2822: "D, d M yy",
+ RSS: "D, d M y", // RFC 822
+ TICKS: "!",
+ TIMESTAMP: "@",
+ W3C: "yy-mm-dd", // ISO 8601
+
+ _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +
+ Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),
+
+ /* Format a date object into a string value.
+ * The format can be combinations of the following:
+ * d - day of month (no leading zero)
+ * dd - day of month (two digit)
+ * o - day of year (no leading zeros)
+ * oo - day of year (three digit)
+ * D - day name short
+ * DD - day name long
+ * m - month of year (no leading zero)
+ * mm - month of year (two digit)
+ * M - month name short
+ * MM - month name long
+ * y - year (two digit)
+ * yy - year (four digit)
+ * @ - Unix timestamp (ms since 01/01/1970)
+ * ! - Windows ticks (100ns since 01/01/0001)
+ * "..." - literal text
+ * '' - single quote
+ *
+ * @param format string - the desired format of the date
+ * @param date Date - the date value to format
+ * @param settings Object - attributes include:
+ * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
+ * dayNames string[7] - names of the days from Sunday (optional)
+ * monthNamesShort string[12] - abbreviated names of the months (optional)
+ * monthNames string[12] - names of the months (optional)
+ * @return string - the date in the above format
+ */
+ formatDate: function (format, date, settings) {
+ if (!date) {
+ return "";
+ }
+
+ var iFormat,
+ dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
+ dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
+ monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
+ monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
+ // Check whether a format character is doubled
+ lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
+ if (matches) {
+ iFormat++;
+ }
+ return matches;
+ },
+ // Format a number, with leading zero if necessary
+ formatNumber = function(match, value, len) {
+ var num = "" + value;
+ if (lookAhead(match)) {
+ while (num.length < len) {
+ num = "0" + num;
+ }
+ }
+ return num;
+ },
+ // Format a name, short or long as requested
+ formatName = function(match, value, shortNames, longNames) {
+ return (lookAhead(match) ? longNames[value] : shortNames[value]);
+ },
+ output = "",
+ literal = false;
+
+ if (date) {
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal) {
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
+ literal = false;
+ } else {
+ output += format.charAt(iFormat);
+ }
+ } else {
+ switch (format.charAt(iFormat)) {
+ case "d":
+ output += formatNumber("d", date.getDate(), 2);
+ break;
+ case "D":
+ output += formatName("D", date.getDay(), dayNamesShort, dayNames);
+ break;
+ case "o":
+ output += formatNumber("o",
+ Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
+ break;
+ case "m":
+ output += formatNumber("m", date.getMonth() + 1, 2);
+ break;
+ case "M":
+ output += formatName("M", date.getMonth(), monthNamesShort, monthNames);
+ break;
+ case "y":
+ output += (lookAhead("y") ? date.getFullYear() :
+ (date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100);
+ break;
+ case "@":
+ output += date.getTime();
+ break;
+ case "!":
+ output += date.getTime() * 10000 + this._ticksTo1970;
+ break;
+ case "'":
+ if (lookAhead("'")) {
+ output += "'";
+ } else {
+ literal = true;
+ }
+ break;
+ default:
+ output += format.charAt(iFormat);
+ }
+ }
+ }
+ }
+ return output;
+ },
+
+ /* Extract all possible characters from the date format. */
+ _possibleChars: function (format) {
+ var iFormat,
+ chars = "",
+ literal = false,
+ // Check whether a format character is doubled
+ lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
+ if (matches) {
+ iFormat++;
+ }
+ return matches;
+ };
+
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal) {
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
+ literal = false;
+ } else {
+ chars += format.charAt(iFormat);
+ }
+ } else {
+ switch (format.charAt(iFormat)) {
+ case "d": case "m": case "y": case "@":
+ chars += "0123456789";
+ break;
+ case "D": case "M":
+ return null; // Accept anything
+ case "'":
+ if (lookAhead("'")) {
+ chars += "'";
+ } else {
+ literal = true;
+ }
+ break;
+ default:
+ chars += format.charAt(iFormat);
+ }
+ }
+ }
+ return chars;
+ },
+
+ /* Get a setting value, defaulting if necessary. */
+ _get: function(inst, name) {
+ return inst.settings[name] !== undefined ?
+ inst.settings[name] : this._defaults[name];
+ },
+
+ /* Parse existing date and initialise date picker. */
+ _setDateFromField: function(inst, noDefault) {
+ if (inst.input.val() === inst.lastVal) {
+ return;
+ }
+
+ var dateFormat = this._get(inst, "dateFormat"),
+ dates = inst.lastVal = inst.input ? inst.input.val() : null,
+ defaultDate = this._getDefaultDate(inst),
+ date = defaultDate,
+ settings = this._getFormatConfig(inst);
+
+ try {
+ date = this.parseDate(dateFormat, dates, settings) || defaultDate;
+ } catch (event) {
+ dates = (noDefault ? "" : dates);
+ }
+ inst.selectedDay = date.getDate();
+ inst.drawMonth = inst.selectedMonth = date.getMonth();
+ inst.drawYear = inst.selectedYear = date.getFullYear();
+ inst.currentDay = (dates ? date.getDate() : 0);
+ inst.currentMonth = (dates ? date.getMonth() : 0);
+ inst.currentYear = (dates ? date.getFullYear() : 0);
+ this._adjustInstDate(inst);
+ },
+
+ /* Retrieve the default date shown on opening. */
+ _getDefaultDate: function(inst) {
+ return this._restrictMinMax(inst,
+ this._determineDate(inst, this._get(inst, "defaultDate"), new Date()));
+ },
+
+ /* A date may be specified as an exact value or a relative one. */
+ _determineDate: function(inst, date, defaultDate) {
+ var offsetNumeric = function(offset) {
+ var date = new Date();
+ date.setDate(date.getDate() + offset);
+ return date;
+ },
+ offsetString = function(offset) {
+ try {
+ return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
+ offset, $.datepicker._getFormatConfig(inst));
+ }
+ catch (e) {
+ // Ignore
+ }
+
+ var date = (offset.toLowerCase().match(/^c/) ?
+ $.datepicker._getDate(inst) : null) || new Date(),
+ year = date.getFullYear(),
+ month = date.getMonth(),
+ day = date.getDate(),
+ pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
+ matches = pattern.exec(offset);
+
+ while (matches) {
+ switch (matches[2] || "d") {
+ case "d" : case "D" :
+ day += parseInt(matches[1],10); break;
+ case "w" : case "W" :
+ day += parseInt(matches[1],10) * 7; break;
+ case "m" : case "M" :
+ month += parseInt(matches[1],10);
+ day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
+ break;
+ case "y": case "Y" :
+ year += parseInt(matches[1],10);
+ day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
+ break;
+ }
+ matches = pattern.exec(offset);
+ }
+ return new Date(year, month, day);
+ },
+ newDate = (date == null || date === "" ? defaultDate : (typeof date === "string" ? offsetString(date) :
+ (typeof date === "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));
+
+ newDate = (newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate);
+ if (newDate) {
+ newDate.setHours(0);
+ newDate.setMinutes(0);
+ newDate.setSeconds(0);
+ newDate.setMilliseconds(0);
+ }
+ return this._daylightSavingAdjust(newDate);
+ },
+
+ /* Handle switch to/from daylight saving.
+ * Hours may be non-zero on daylight saving cut-over:
+ * > 12 when midnight changeover, but then cannot generate
+ * midnight datetime, so jump to 1AM, otherwise reset.
+ * @param date (Date) the date to check
+ * @return (Date) the corrected date
+ */
+ _daylightSavingAdjust: function(date) {
+ if (!date) {
+ return null;
+ }
+ date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
+ return date;
+ },
+
+ /* Set the date(s) directly. */
+ _setDate: function(inst, date, noChange) {
+ var clear = !date,
+ origMonth = inst.selectedMonth,
+ origYear = inst.selectedYear,
+ newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));
+
+ inst.selectedDay = inst.currentDay = newDate.getDate();
+ inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
+ inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
+ if ((origMonth !== inst.selectedMonth || origYear !== inst.selectedYear) && !noChange) {
+ this._notifyChange(inst);
+ }
+ this._adjustInstDate(inst);
+ if (inst.input) {
+ inst.input.val(clear ? "" : this._formatDate(inst));
+ }
+ },
+
+ /* Retrieve the date(s) directly. */
+ _getDate: function(inst) {
+ var startDate = (!inst.currentYear || (inst.input && inst.input.val() === "") ? null :
+ this._daylightSavingAdjust(new Date(
+ inst.currentYear, inst.currentMonth, inst.currentDay)));
+ return startDate;
+ },
+
+ /* Attach the onxxx handlers. These are declared statically so
+ * they work with static code transformers like Caja.
+ */
+ _attachHandlers: function(inst) {
+ var stepMonths = this._get(inst, "stepMonths"),
+ id = "#" + inst.id.replace( /\\\\/g, "\\" );
+ inst.dpDiv.find("[data-handler]").map(function () {
+ var handler = {
+ prev: function () {
+ $.datepicker._adjustDate(id, -stepMonths, "M");
+ },
+ next: function () {
+ $.datepicker._adjustDate(id, +stepMonths, "M");
+ },
+ hide: function () {
+ $.datepicker._hideDatepicker();
+ },
+ today: function () {
+ $.datepicker._gotoToday(id);
+ },
+ selectDay: function () {
+ $.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
+ return false;
+ },
+ selectMonth: function () {
+ $.datepicker._selectMonthYear(id, this, "M");
+ return false;
+ },
+ selectYear: function () {
+ $.datepicker._selectMonthYear(id, this, "Y");
+ return false;
+ }
+ };
+ $(this).bind(this.getAttribute("data-event"), handler[this.getAttribute("data-handler")]);
+ });
+ },
+
+ /* Generate the HTML for the current state of the date picker. */
+ _generateHTML: function(inst) {
+ var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
+ controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
+ monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
+ selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
+ cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
+ printDate, dRow, tbody, daySettings, otherMonth, unselectable,
+ tempDate = new Date(),
+ today = this._daylightSavingAdjust(
+ new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate())), // clear time
+ isRTL = this._get(inst, "isRTL"),
+ showButtonPanel = this._get(inst, "showButtonPanel"),
+ hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext"),
+ navigationAsDateFormat = this._get(inst, "navigationAsDateFormat"),
+ numMonths = this._getNumberOfMonths(inst),
+ showCurrentAtPos = this._get(inst, "showCurrentAtPos"),
+ stepMonths = this._get(inst, "stepMonths"),
+ isMultiMonth = (numMonths[0] !== 1 || numMonths[1] !== 1),
+ currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :
+ new Date(inst.currentYear, inst.currentMonth, inst.currentDay))),
+ minDate = this._getMinMaxDate(inst, "min"),
+ maxDate = this._getMinMaxDate(inst, "max"),
+ drawMonth = inst.drawMonth - showCurrentAtPos,
+ drawYear = inst.drawYear;
+
+ if (drawMonth < 0) {
+ drawMonth += 12;
+ drawYear--;
+ }
+ if (maxDate) {
+ maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),
+ maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));
+ maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
+ while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {
+ drawMonth--;
+ if (drawMonth < 0) {
+ drawMonth = 11;
+ drawYear--;
+ }
+ }
+ }
+ inst.drawMonth = drawMonth;
+ inst.drawYear = drawYear;
+
+ prevText = this._get(inst, "prevText");
+ prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
+ this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
+ this._getFormatConfig(inst)));
+
+ prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
+ "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
+ " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>" :
+ (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+ prevText +"'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>"));
+
+ nextText = this._get(inst, "nextText");
+ nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,
+ this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),
+ this._getFormatConfig(inst)));
+
+ next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
+ "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
+ " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>" :
+ (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+ nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>"));
+
+ currentText = this._get(inst, "currentText");
+ gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today);
+ currentText = (!navigationAsDateFormat ? currentText :
+ this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
+
+ controls = (!inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
+ this._get(inst, "closeText") + "</button>" : "");
+
+ buttonPanel = (showButtonPanel) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (isRTL ? controls : "") +
+ (this._isInRange(inst, gotoDate) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
+ ">" + currentText + "</button>" : "") + (isRTL ? "" : controls) + "</div>" : "";
+
+ firstDay = parseInt(this._get(inst, "firstDay"),10);
+ firstDay = (isNaN(firstDay) ? 0 : firstDay);
+
+ showWeek = this._get(inst, "showWeek");
+ dayNames = this._get(inst, "dayNames");
+ dayNamesMin = this._get(inst, "dayNamesMin");
+ monthNames = this._get(inst, "monthNames");
+ monthNamesShort = this._get(inst, "monthNamesShort");
+ beforeShowDay = this._get(inst, "beforeShowDay");
+ showOtherMonths = this._get(inst, "showOtherMonths");
+ selectOtherMonths = this._get(inst, "selectOtherMonths");
+ defaultDate = this._getDefaultDate(inst);
+ html = "";
+ dow;
+ for (row = 0; row < numMonths[0]; row++) {
+ group = "";
+ this.maxRows = 4;
+ for (col = 0; col < numMonths[1]; col++) {
+ selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
+ cornerClass = " ui-corner-all";
+ calender = "";
+ if (isMultiMonth) {
+ calender += "<div class='ui-datepicker-group";
+ if (numMonths[1] > 1) {
+ switch (col) {
+ case 0: calender += " ui-datepicker-group-first";
+ cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
+ case numMonths[1]-1: calender += " ui-datepicker-group-last";
+ cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;
+ default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
+ }
+ }
+ calender += "'>";
+ }
+ calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
+ (/all|left/.test(cornerClass) && row === 0 ? (isRTL ? next : prev) : "") +
+ (/all|right/.test(cornerClass) && row === 0 ? (isRTL ? prev : next) : "") +
+ this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
+ row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers
+ "</div><table class='ui-datepicker-calendar'><thead>" +
+ "<tr>";
+ thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
+ for (dow = 0; dow < 7; dow++) { // days of the week
+ day = (dow + firstDay) % 7;
+ thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
+ "<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
+ }
+ calender += thead + "</tr></thead><tbody>";
+ daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
+ if (drawYear === inst.selectedYear && drawMonth === inst.selectedMonth) {
+ inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
+ }
+ leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
+ curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate
+ numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043)
+ this.maxRows = numRows;
+ printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
+ for (dRow = 0; dRow < numRows; dRow++) { // create date picker rows
+ calender += "<tr>";
+ tbody = (!showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
+ this._get(inst, "calculateWeek")(printDate) + "</td>");
+ for (dow = 0; dow < 7; dow++) { // create date picker days
+ daySettings = (beforeShowDay ?
+ beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]);
+ otherMonth = (printDate.getMonth() !== drawMonth);
+ unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||
+ (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
+ tbody += "<td class='" +
+ ((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + // highlight weekends
+ (otherMonth ? " ui-datepicker-other-month" : "") + // highlight days from other months
+ ((printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent) || // user pressed key
+ (defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime()) ?
+ // or defaultDate is current printedDate and defaultDate is selectedDate
+ " " + this._dayOverClass : "") + // highlight selected day
+ (unselectable ? " " + this._unselectableClass + " ui-state-disabled": "") + // highlight unselectable days
+ (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
+ (printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
+ (printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
+ ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title
+ (unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
+ (otherMonth && !showOtherMonths ? " " : // display for other months
+ (unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
+ (printDate.getTime() === today.getTime() ? " ui-state-highlight" : "") +
+ (printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "") + // highlight selected day
+ (otherMonth ? " ui-priority-secondary" : "") + // distinguish dates from other months
+ "' href='#'>" + printDate.getDate() + "</a>")) + "</td>"; // display selectable date
+ printDate.setDate(printDate.getDate() + 1);
+ printDate = this._daylightSavingAdjust(printDate);
+ }
+ calender += tbody + "</tr>";
+ }
+ drawMonth++;
+ if (drawMonth > 11) {
+ drawMonth = 0;
+ drawYear++;
+ }
+ calender += "</tbody></table>" + (isMultiMonth ? "</div>" +
+ ((numMonths[0] > 0 && col === numMonths[1]-1) ? "<div class='ui-datepicker-row-break'></div>" : "") : "");
+ group += calender;
+ }
+ html += group;
+ }
+ html += buttonPanel;
+ inst._keyEvent = false;
+ return html;
+ },
+
+ /* Generate the month and year header. */
+ _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
+ secondary, monthNames, monthNamesShort) {
+
+ var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
+ changeMonth = this._get(inst, "changeMonth"),
+ changeYear = this._get(inst, "changeYear"),
+ showMonthAfterYear = this._get(inst, "showMonthAfterYear"),
+ html = "<div class='ui-datepicker-title'>",
+ monthHtml = "";
+
+ // month selection
+ if (secondary || !changeMonth) {
+ monthHtml += "<span class='ui-datepicker-month'>" + monthNames[drawMonth] + "</span>";
+ } else {
+ inMinYear = (minDate && minDate.getFullYear() === drawYear);
+ inMaxYear = (maxDate && maxDate.getFullYear() === drawYear);
+ monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
+ for ( month = 0; month < 12; month++) {
+ if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) {
+ monthHtml += "<option value='" + month + "'" +
+ (month === drawMonth ? " selected='selected'" : "") +
+ ">" + monthNamesShort[month] + "</option>";
+ }
+ }
+ monthHtml += "</select>";
+ }
+
+ if (!showMonthAfterYear) {
+ html += monthHtml + (secondary || !(changeMonth && changeYear) ? " " : "");
+ }
+
+ // year selection
+ if ( !inst.yearshtml ) {
+ inst.yearshtml = "";
+ if (secondary || !changeYear) {
+ html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
+ } else {
+ // determine range of years to display
+ years = this._get(inst, "yearRange").split(":");
+ thisYear = new Date().getFullYear();
+ determineYear = function(value) {
+ var year = (value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) :
+ (value.match(/[+\-].*/) ? thisYear + parseInt(value, 10) :
+ parseInt(value, 10)));
+ return (isNaN(year) ? thisYear : year);
+ };
+ year = determineYear(years[0]);
+ endYear = Math.max(year, determineYear(years[1] || ""));
+ year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
+ endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
+ inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
+ for (; year <= endYear; year++) {
+ inst.yearshtml += "<option value='" + year + "'" +
+ (year === drawYear ? " selected='selected'" : "") +
+ ">" + year + "</option>";
+ }
+ inst.yearshtml += "</select>";
+
+ html += inst.yearshtml;
+ inst.yearshtml = null;
+ }
+ }
+
+ html += this._get(inst, "yearSuffix");
+ if (showMonthAfterYear) {
+ html += (secondary || !(changeMonth && changeYear) ? " " : "") + monthHtml;
+ }
+ html += "</div>"; // Close datepicker_header
+ return html;
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustInstDate: function(inst, offset, period) {
+ var year = inst.drawYear + (period === "Y" ? offset : 0),
+ month = inst.drawMonth + (period === "M" ? offset : 0),
+ day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period === "D" ? offset : 0),
+ date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day)));
+
+ inst.selectedDay = date.getDate();
+ inst.drawMonth = inst.selectedMonth = date.getMonth();
+ inst.drawYear = inst.selectedYear = date.getFullYear();
+ if (period === "M" || period === "Y") {
+ this._notifyChange(inst);
+ }
+ },
+
+ /* Ensure a date is within any min/max bounds. */
+ _restrictMinMax: function(inst, date) {
+ var minDate = this._getMinMaxDate(inst, "min"),
+ maxDate = this._getMinMaxDate(inst, "max"),
+ newDate = (minDate && date < minDate ? minDate : date);
+ return (maxDate && newDate > maxDate ? maxDate : newDate);
+ },
+
+ /* Notify change of month/year. */
+ _notifyChange: function(inst) {
+ var onChange = this._get(inst, "onChangeMonthYear");
+ if (onChange) {
+ onChange.apply((inst.input ? inst.input[0] : null),
+ [inst.selectedYear, inst.selectedMonth + 1, inst]);
+ }
+ },
+
+ /* Determine the number of months to show. */
+ _getNumberOfMonths: function(inst) {
+ var numMonths = this._get(inst, "numberOfMonths");
+ return (numMonths == null ? [1, 1] : (typeof numMonths === "number" ? [1, numMonths] : numMonths));
+ },
+
+ /* Determine the current maximum date - ensure no time components are set. */
+ _getMinMaxDate: function(inst, minMax) {
+ return this._determineDate(inst, this._get(inst, minMax + "Date"), null);
+ },
+
+ /* Find the number of days in a given month. */
+ _getDaysInMonth: function(year, month) {
+ return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
+ },
+
+ /* Find the day of the week of the first of a month. */
+ _getFirstDayOfMonth: function(year, month) {
+ return new Date(year, month, 1).getDay();
+ },
+
+ /* Determines if we should allow a "next/prev" month display change. */
+ _canAdjustMonth: function(inst, offset, curYear, curMonth) {
+ var numMonths = this._getNumberOfMonths(inst),
+ date = this._daylightSavingAdjust(new Date(curYear,
+ curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));
+
+ if (offset < 0) {
+ date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
+ }
+ return this._isInRange(inst, date);
+ },
+
+ /* Is the given date in the accepted range? */
+ _isInRange: function(inst, date) {
+ var yearSplit, currentYear,
+ minDate = this._getMinMaxDate(inst, "min"),
+ maxDate = this._getMinMaxDate(inst, "max"),
+ minYear = null,
+ maxYear = null,
+ years = this._get(inst, "yearRange");
+ if (years){
+ yearSplit = years.split(":");
+ currentYear = new Date().getFullYear();
+ minYear = parseInt(yearSplit[0], 10);
+ maxYear = parseInt(yearSplit[1], 10);
+ if ( yearSplit[0].match(/[+\-].*/) ) {
+ minYear += currentYear;
+ }
+ if ( yearSplit[1].match(/[+\-].*/) ) {
+ maxYear += currentYear;
+ }
+ }
+
+ return ((!minDate || date.getTime() >= minDate.getTime()) &&
+ (!maxDate || date.getTime() <= maxDate.getTime()) &&
+ (!minYear || date.getFullYear() >= minYear) &&
+ (!maxYear || date.getFullYear() <= maxYear));
+ },
+
+ /* Provide the configuration settings for formatting/parsing. */
+ _getFormatConfig: function(inst) {
+ var shortYearCutoff = this._get(inst, "shortYearCutoff");
+ shortYearCutoff = (typeof shortYearCutoff !== "string" ? shortYearCutoff :
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
+ return {shortYearCutoff: shortYearCutoff,
+ dayNamesShort: this._get(inst, "dayNamesShort"), dayNames: this._get(inst, "dayNames"),
+ monthNamesShort: this._get(inst, "monthNamesShort"), monthNames: this._get(inst, "monthNames")};
+ },
+
+ /* Format the given date for display. */
+ _formatDate: function(inst, day, month, year) {
+ if (!day) {
+ inst.currentDay = inst.selectedDay;
+ inst.currentMonth = inst.selectedMonth;
+ inst.currentYear = inst.selectedYear;
+ }
+ var date = (day ? (typeof day === "object" ? day :
+ this._daylightSavingAdjust(new Date(year, month, day))) :
+ this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
+ return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst));
+ }
+});
+
+/*
+ * Bind hover events for datepicker elements.
+ * Done via delegate so the binding only occurs once in the lifetime of the parent div.
+ * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
+ */
+function datepicker_bindHover(dpDiv) {
+ var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
+ return dpDiv.delegate(selector, "mouseout", function() {
+ $(this).removeClass("ui-state-hover");
+ if (this.className.indexOf("ui-datepicker-prev") !== -1) {
+ $(this).removeClass("ui-datepicker-prev-hover");
+ }
+ if (this.className.indexOf("ui-datepicker-next") !== -1) {
+ $(this).removeClass("ui-datepicker-next-hover");
+ }
+ })
+ .delegate( selector, "mouseover", datepicker_handleMouseover );
+}
+
+function datepicker_handleMouseover() {
+ if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) {
+ $(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
+ $(this).addClass("ui-state-hover");
+ if (this.className.indexOf("ui-datepicker-prev") !== -1) {
+ $(this).addClass("ui-datepicker-prev-hover");
+ }
+ if (this.className.indexOf("ui-datepicker-next") !== -1) {
+ $(this).addClass("ui-datepicker-next-hover");
+ }
+ }
+}
+
+/* jQuery extend now ignores nulls! */
+function datepicker_extendRemove(target, props) {
+ $.extend(target, props);
+ for (var name in props) {
+ if (props[name] == null) {
+ target[name] = props[name];
+ }
+ }
+ return target;
+}
+
+/* Invoke the datepicker functionality.
+ @param options string - a command, optionally followed by additional parameters or
+ Object - settings for attaching new datepicker functionality
+ @return jQuery object */
+$.fn.datepicker = function(options){
+
+ /* Verify an empty collection wasn't passed - Fixes #6976 */
+ if ( !this.length ) {
+ return this;
+ }
+
+ /* Initialise the date picker. */
+ if (!$.datepicker.initialized) {
+ $(document).mousedown($.datepicker._checkExternalClick);
+ $.datepicker.initialized = true;
+ }
+
+ /* Append datepicker main container to body if not exist. */
+ if ($("#"+$.datepicker._mainDivId).length === 0) {
+ $("body").append($.datepicker.dpDiv);
+ }
+
+ var otherArgs = Array.prototype.slice.call(arguments, 1);
+ if (typeof options === "string" && (options === "isDisabled" || options === "getDate" || options === "widget")) {
+ return $.datepicker["_" + options + "Datepicker"].
+ apply($.datepicker, [this[0]].concat(otherArgs));
+ }
+ if (options === "option" && arguments.length === 2 && typeof arguments[1] === "string") {
+ return $.datepicker["_" + options + "Datepicker"].
+ apply($.datepicker, [this[0]].concat(otherArgs));
+ }
+ return this.each(function() {
+ typeof options === "string" ?
+ $.datepicker["_" + options + "Datepicker"].
+ apply($.datepicker, [this].concat(otherArgs)) :
+ $.datepicker._attachDatepicker(this, options);
+ });
+};
+
+$.datepicker = new Datepicker(); // singleton instance
+$.datepicker.initialized = false;
+$.datepicker.uuid = new Date().getTime();
+$.datepicker.version = "1.11.4";
+
+var datepicker = $.datepicker;
+
+
+/*!
+ * jQuery UI Dialog 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/dialog/
+ */
+
+
+var dialog = $.widget( "ui.dialog", {
+ version: "1.11.4",
+ options: {
+ appendTo: "body",
+ autoOpen: true,
+ buttons: [],
+ closeOnEscape: true,
+ closeText: "Close",
+ dialogClass: "",
+ draggable: true,
+ hide: null,
+ height: "auto",
+ maxHeight: null,
+ maxWidth: null,
+ minHeight: 150,
+ minWidth: 150,
+ modal: false,
+ position: {
+ my: "center",
+ at: "center",
+ of: window,
+ collision: "fit",
+ // Ensure the titlebar is always visible
+ using: function( pos ) {
+ var topOffset = $( this ).css( pos ).offset().top;
+ if ( topOffset < 0 ) {
+ $( this ).css( "top", pos.top - topOffset );
+ }
+ }
+ },
+ resizable: true,
+ show: null,
+ title: null,
+ width: 300,
+
+ // callbacks
+ beforeClose: null,
+ close: null,
+ drag: null,
+ dragStart: null,
+ dragStop: null,
+ focus: null,
+ open: null,
+ resize: null,
+ resizeStart: null,
+ resizeStop: null
+ },
+
+ sizeRelatedOptions: {
+ buttons: true,
+ height: true,
+ maxHeight: true,
+ maxWidth: true,
+ minHeight: true,
+ minWidth: true,
+ width: true
+ },
+
+ resizableRelatedOptions: {
+ maxHeight: true,
+ maxWidth: true,
+ minHeight: true,
+ minWidth: true
+ },
+
+ _create: function() {
+ this.originalCss = {
+ display: this.element[ 0 ].style.display,
+ width: this.element[ 0 ].style.width,
+ minHeight: this.element[ 0 ].style.minHeight,
+ maxHeight: this.element[ 0 ].style.maxHeight,
+ height: this.element[ 0 ].style.height
+ };
+ this.originalPosition = {
+ parent: this.element.parent(),
+ index: this.element.parent().children().index( this.element )
+ };
+ this.originalTitle = this.element.attr( "title" );
+ this.options.title = this.options.title || this.originalTitle;
+
+ this._createWrapper();
+
+ this.element
+ .show()
+ .removeAttr( "title" )
+ .addClass( "ui-dialog-content ui-widget-content" )
+ .appendTo( this.uiDialog );
+
+ this._createTitlebar();
+ this._createButtonPane();
+
+ if ( this.options.draggable && $.fn.draggable ) {
+ this._makeDraggable();
+ }
+ if ( this.options.resizable && $.fn.resizable ) {
+ this._makeResizable();
+ }
+
+ this._isOpen = false;
+
+ this._trackFocus();
+ },
+
+ _init: function() {
+ if ( this.options.autoOpen ) {
+ this.open();
+ }
+ },
+
+ _appendTo: function() {
+ var element = this.options.appendTo;
+ if ( element && (element.jquery || element.nodeType) ) {
+ return $( element );
+ }
+ return this.document.find( element || "body" ).eq( 0 );
+ },
+
+ _destroy: function() {
+ var next,
+ originalPosition = this.originalPosition;
+
+ this._untrackInstance();
+ this._destroyOverlay();
+
+ this.element
+ .removeUniqueId()
+ .removeClass( "ui-dialog-content ui-widget-content" )
+ .css( this.originalCss )
+ // Without detaching first, the following becomes really slow
+ .detach();
+
+ this.uiDialog.stop( true, true ).remove();
+
+ if ( this.originalTitle ) {
+ this.element.attr( "title", this.originalTitle );
+ }
+
+ next = originalPosition.parent.children().eq( originalPosition.index );
+ // Don't try to place the dialog next to itself (#8613)
+ if ( next.length && next[ 0 ] !== this.element[ 0 ] ) {
+ next.before( this.element );
+ } else {
+ originalPosition.parent.append( this.element );
+ }
+ },
+
+ widget: function() {
+ return this.uiDialog;
+ },
+
+ disable: $.noop,
+ enable: $.noop,
+
+ close: function( event ) {
+ var activeElement,
+ that = this;
+
+ if ( !this._isOpen || this._trigger( "beforeClose", event ) === false ) {
+ return;
+ }
+
+ this._isOpen = false;
+ this._focusedElement = null;
+ this._destroyOverlay();
+ this._untrackInstance();
+
+ if ( !this.opener.filter( ":focusable" ).focus().length ) {
+
+ // support: IE9
+ // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
+ try {
+ activeElement = this.document[ 0 ].activeElement;
+
+ // Support: IE9, IE10
+ // If the <body> is blurred, IE will switch windows, see #4520
+ if ( activeElement && activeElement.nodeName.toLowerCase() !== "body" ) {
+
+ // Hiding a focused element doesn't trigger blur in WebKit
+ // so in case we have nothing to focus on, explicitly blur the active element
+ // https://bugs.webkit.org/show_bug.cgi?id=47182
+ $( activeElement ).blur();
+ }
+ } catch ( error ) {}
+ }
+
+ this._hide( this.uiDialog, this.options.hide, function() {
+ that._trigger( "close", event );
+ });
+ },
+
+ isOpen: function() {
+ return this._isOpen;
+ },
+
+ moveToTop: function() {
+ this._moveToTop();
+ },
+
+ _moveToTop: function( event, silent ) {
+ var moved = false,
+ zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
+ return +$( this ).css( "z-index" );
+ }).get(),
+ zIndexMax = Math.max.apply( null, zIndices );
+
+ if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
+ this.uiDialog.css( "z-index", zIndexMax + 1 );
+ moved = true;
+ }
+
+ if ( moved && !silent ) {
+ this._trigger( "focus", event );
+ }
+ return moved;
+ },
+
+ open: function() {
+ var that = this;
+ if ( this._isOpen ) {
+ if ( this._moveToTop() ) {
+ this._focusTabbable();
+ }
+ return;
+ }
+
+ this._isOpen = true;
+ this.opener = $( this.document[ 0 ].activeElement );
+
+ this._size();
+ this._position();
+ this._createOverlay();
+ this._moveToTop( null, true );
+
+ // Ensure the overlay is moved to the top with the dialog, but only when
+ // opening. The overlay shouldn't move after the dialog is open so that
+ // modeless dialogs opened after the modal dialog stack properly.
+ if ( this.overlay ) {
+ this.overlay.css( "z-index", this.uiDialog.css( "z-index" ) - 1 );
+ }
+
+ this._show( this.uiDialog, this.options.show, function() {
+ that._focusTabbable();
+ that._trigger( "focus" );
+ });
+
+ // Track the dialog immediately upon openening in case a focus event
+ // somehow occurs outside of the dialog before an element inside the
+ // dialog is focused (#10152)
+ this._makeFocusTarget();
+
+ this._trigger( "open" );
+ },
+
+ _focusTabbable: function() {
+ // Set focus to the first match:
+ // 1. An element that was focused previously
+ // 2. First element inside the dialog matching [autofocus]
+ // 3. Tabbable element inside the content element
+ // 4. Tabbable element inside the buttonpane
+ // 5. The close button
+ // 6. The dialog itself
+ var hasFocus = this._focusedElement;
+ if ( !hasFocus ) {
+ hasFocus = this.element.find( "[autofocus]" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.element.find( ":tabbable" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.uiDialogButtonPane.find( ":tabbable" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.uiDialogTitlebarClose.filter( ":tabbable" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.uiDialog;
+ }
+ hasFocus.eq( 0 ).focus();
+ },
+
+ _keepFocus: function( event ) {
+ function checkFocus() {
+ var activeElement = this.document[0].activeElement,
+ isActive = this.uiDialog[0] === activeElement ||
+ $.contains( this.uiDialog[0], activeElement );
+ if ( !isActive ) {
+ this._focusTabbable();
+ }
+ }
+ event.preventDefault();
+ checkFocus.call( this );
+ // support: IE
+ // IE <= 8 doesn't prevent moving focus even with event.preventDefault()
+ // so we check again later
+ this._delay( checkFocus );
+ },
+
+ _createWrapper: function() {
+ this.uiDialog = $("<div>")
+ .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
+ this.options.dialogClass )
+ .hide()
+ .attr({
+ // Setting tabIndex makes the div focusable
+ tabIndex: -1,
+ role: "dialog"
+ })
+ .appendTo( this._appendTo() );
+
+ this._on( this.uiDialog, {
+ keydown: function( event ) {
+ if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
+ event.keyCode === $.ui.keyCode.ESCAPE ) {
+ event.preventDefault();
+ this.close( event );
+ return;
+ }
+
+ // prevent tabbing out of dialogs
+ if ( event.keyCode !== $.ui.keyCode.TAB || event.isDefaultPrevented() ) {
+ return;
+ }
+ var tabbables = this.uiDialog.find( ":tabbable" ),
+ first = tabbables.filter( ":first" ),
+ last = tabbables.filter( ":last" );
+
+ if ( ( event.target === last[0] || event.target === this.uiDialog[0] ) && !event.shiftKey ) {
+ this._delay(function() {
+ first.focus();
+ });
+ event.preventDefault();
+ } else if ( ( event.target === first[0] || event.target === this.uiDialog[0] ) && event.shiftKey ) {
+ this._delay(function() {
+ last.focus();
+ });
+ event.preventDefault();
+ }
+ },
+ mousedown: function( event ) {
+ if ( this._moveToTop( event ) ) {
+ this._focusTabbable();
+ }
+ }
+ });
+
+ // We assume that any existing aria-describedby attribute means
+ // that the dialog content is marked up properly
+ // otherwise we brute force the content as the description
+ if ( !this.element.find( "[aria-describedby]" ).length ) {
+ this.uiDialog.attr({
+ "aria-describedby": this.element.uniqueId().attr( "id" )
+ });
+ }
+ },
+
+ _createTitlebar: function() {
+ var uiDialogTitle;
+
+ this.uiDialogTitlebar = $( "<div>" )
+ .addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )
+ .prependTo( this.uiDialog );
+ this._on( this.uiDialogTitlebar, {
+ mousedown: function( event ) {
+ // Don't prevent click on close button (#8838)
+ // Focusing a dialog that is partially scrolled out of view
+ // causes the browser to scroll it into view, preventing the click event
+ if ( !$( event.target ).closest( ".ui-dialog-titlebar-close" ) ) {
+ // Dialog isn't getting focus when dragging (#8063)
+ this.uiDialog.focus();
+ }
+ }
+ });
+
+ // support: IE
+ // Use type="button" to prevent enter keypresses in textboxes from closing the
+ // dialog in IE (#9312)
+ this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
+ .button({
+ label: this.options.closeText,
+ icons: {
+ primary: "ui-icon-closethick"
+ },
+ text: false
+ })
+ .addClass( "ui-dialog-titlebar-close" )
+ .appendTo( this.uiDialogTitlebar );
+ this._on( this.uiDialogTitlebarClose, {
+ click: function( event ) {
+ event.preventDefault();
+ this.close( event );
+ }
+ });
+
+ uiDialogTitle = $( "<span>" )
+ .uniqueId()
+ .addClass( "ui-dialog-title" )
+ .prependTo( this.uiDialogTitlebar );
+ this._title( uiDialogTitle );
+
+ this.uiDialog.attr({
+ "aria-labelledby": uiDialogTitle.attr( "id" )
+ });
+ },
+
+ _title: function( title ) {
+ if ( !this.options.title ) {
+ title.html( " " );
+ }
+ title.text( this.options.title );
+ },
+
+ _createButtonPane: function() {
+ this.uiDialogButtonPane = $( "<div>" )
+ .addClass( "ui-dialog-buttonpane ui-widget-content ui-helper-clearfix" );
+
+ this.uiButtonSet = $( "<div>" )
+ .addClass( "ui-dialog-buttonset" )
+ .appendTo( this.uiDialogButtonPane );
+
+ this._createButtons();
+ },
+
+ _createButtons: function() {
+ var that = this,
+ buttons = this.options.buttons;
+
+ // if we already have a button pane, remove it
+ this.uiDialogButtonPane.remove();
+ this.uiButtonSet.empty();
+
+ if ( $.isEmptyObject( buttons ) || ($.isArray( buttons ) && !buttons.length) ) {
+ this.uiDialog.removeClass( "ui-dialog-buttons" );
+ return;
+ }
+
+ $.each( buttons, function( name, props ) {
+ var click, buttonOptions;
+ props = $.isFunction( props ) ?
+ { click: props, text: name } :
+ props;
+ // Default to a non-submitting button
+ props = $.extend( { type: "button" }, props );
+ // Change the context for the click callback to be the main element
+ click = props.click;
+ props.click = function() {
+ click.apply( that.element[ 0 ], arguments );
+ };
+ buttonOptions = {
+ icons: props.icons,
+ text: props.showText
+ };
+ delete props.icons;
+ delete props.showText;
+ $( "<button></button>", props )
+ .button( buttonOptions )
+ .appendTo( that.uiButtonSet );
+ });
+ this.uiDialog.addClass( "ui-dialog-buttons" );
+ this.uiDialogButtonPane.appendTo( this.uiDialog );
+ },
+
+ _makeDraggable: function() {
+ var that = this,
+ options = this.options;
+
+ function filteredUi( ui ) {
+ return {
+ position: ui.position,
+ offset: ui.offset
+ };
+ }
+
+ this.uiDialog.draggable({
+ cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
+ handle: ".ui-dialog-titlebar",
+ containment: "document",
+ start: function( event, ui ) {
+ $( this ).addClass( "ui-dialog-dragging" );
+ that._blockFrames();
+ that._trigger( "dragStart", event, filteredUi( ui ) );
+ },
+ drag: function( event, ui ) {
+ that._trigger( "drag", event, filteredUi( ui ) );
+ },
+ stop: function( event, ui ) {
+ var left = ui.offset.left - that.document.scrollLeft(),
+ top = ui.offset.top - that.document.scrollTop();
+
+ options.position = {
+ my: "left top",
+ at: "left" + (left >= 0 ? "+" : "") + left + " " +
+ "top" + (top >= 0 ? "+" : "") + top,
+ of: that.window
+ };
+ $( this ).removeClass( "ui-dialog-dragging" );
+ that._unblockFrames();
+ that._trigger( "dragStop", event, filteredUi( ui ) );
+ }
+ });
+ },
+
+ _makeResizable: function() {
+ var that = this,
+ options = this.options,
+ handles = options.resizable,
+ // .ui-resizable has position: relative defined in the stylesheet
+ // but dialogs have to use absolute or fixed positioning
+ position = this.uiDialog.css("position"),
+ resizeHandles = typeof handles === "string" ?
+ handles :
+ "n,e,s,w,se,sw,ne,nw";
+
+ function filteredUi( ui ) {
+ return {
+ originalPosition: ui.originalPosition,
+ originalSize: ui.originalSize,
+ position: ui.position,
+ size: ui.size
+ };
+ }
+
+ this.uiDialog.resizable({
+ cancel: ".ui-dialog-content",
+ containment: "document",
+ alsoResize: this.element,
+ maxWidth: options.maxWidth,
+ maxHeight: options.maxHeight,
+ minWidth: options.minWidth,
+ minHeight: this._minHeight(),
+ handles: resizeHandles,
+ start: function( event, ui ) {
+ $( this ).addClass( "ui-dialog-resizing" );
+ that._blockFrames();
+ that._trigger( "resizeStart", event, filteredUi( ui ) );
+ },
+ resize: function( event, ui ) {
+ that._trigger( "resize", event, filteredUi( ui ) );
+ },
+ stop: function( event, ui ) {
+ var offset = that.uiDialog.offset(),
+ left = offset.left - that.document.scrollLeft(),
+ top = offset.top - that.document.scrollTop();
+
+ options.height = that.uiDialog.height();
+ options.width = that.uiDialog.width();
+ options.position = {
+ my: "left top",
+ at: "left" + (left >= 0 ? "+" : "") + left + " " +
+ "top" + (top >= 0 ? "+" : "") + top,
+ of: that.window
+ };
+ $( this ).removeClass( "ui-dialog-resizing" );
+ that._unblockFrames();
+ that._trigger( "resizeStop", event, filteredUi( ui ) );
+ }
+ })
+ .css( "position", position );
+ },
+
+ _trackFocus: function() {
+ this._on( this.widget(), {
+ focusin: function( event ) {
+ this._makeFocusTarget();
+ this._focusedElement = $( event.target );
+ }
+ });
+ },
+
+ _makeFocusTarget: function() {
+ this._untrackInstance();
+ this._trackingInstances().unshift( this );
+ },
+
+ _untrackInstance: function() {
+ var instances = this._trackingInstances(),
+ exists = $.inArray( this, instances );
+ if ( exists !== -1 ) {
+ instances.splice( exists, 1 );
+ }
+ },
+
+ _trackingInstances: function() {
+ var instances = this.document.data( "ui-dialog-instances" );
+ if ( !instances ) {
+ instances = [];
+ this.document.data( "ui-dialog-instances", instances );
+ }
+ return instances;
+ },
+
+ _minHeight: function() {
+ var options = this.options;
+
+ return options.height === "auto" ?
+ options.minHeight :
+ Math.min( options.minHeight, options.height );
+ },
+
+ _position: function() {
+ // Need to show the dialog to get the actual offset in the position plugin
+ var isVisible = this.uiDialog.is( ":visible" );
+ if ( !isVisible ) {
+ this.uiDialog.show();
+ }
+ this.uiDialog.position( this.options.position );
+ if ( !isVisible ) {
+ this.uiDialog.hide();
+ }
+ },
+
+ _setOptions: function( options ) {
+ var that = this,
+ resize = false,
+ resizableOptions = {};
+
+ $.each( options, function( key, value ) {
+ that._setOption( key, value );
+
+ if ( key in that.sizeRelatedOptions ) {
+ resize = true;
+ }
+ if ( key in that.resizableRelatedOptions ) {
+ resizableOptions[ key ] = value;
+ }
+ });
+
+ if ( resize ) {
+ this._size();
+ this._position();
+ }
+ if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
+ this.uiDialog.resizable( "option", resizableOptions );
+ }
+ },
+
+ _setOption: function( key, value ) {
+ var isDraggable, isResizable,
+ uiDialog = this.uiDialog;
+
+ if ( key === "dialogClass" ) {
+ uiDialog
+ .removeClass( this.options.dialogClass )
+ .addClass( value );
+ }
+
+ if ( key === "disabled" ) {
+ return;
+ }
+
+ this._super( key, value );
+
+ if ( key === "appendTo" ) {
+ this.uiDialog.appendTo( this._appendTo() );
+ }
+
+ if ( key === "buttons" ) {
+ this._createButtons();
+ }
+
+ if ( key === "closeText" ) {
+ this.uiDialogTitlebarClose.button({
+ // Ensure that we always pass a string
+ label: "" + value
+ });
+ }
+
+ if ( key === "draggable" ) {
+ isDraggable = uiDialog.is( ":data(ui-draggable)" );
+ if ( isDraggable && !value ) {
+ uiDialog.draggable( "destroy" );
+ }
+
+ if ( !isDraggable && value ) {
+ this._makeDraggable();
+ }
+ }
+
+ if ( key === "position" ) {
+ this._position();
+ }
+
+ if ( key === "resizable" ) {
+ // currently resizable, becoming non-resizable
+ isResizable = uiDialog.is( ":data(ui-resizable)" );
+ if ( isResizable && !value ) {
+ uiDialog.resizable( "destroy" );
+ }
+
+ // currently resizable, changing handles
+ if ( isResizable && typeof value === "string" ) {
+ uiDialog.resizable( "option", "handles", value );
+ }
+
+ // currently non-resizable, becoming resizable
+ if ( !isResizable && value !== false ) {
+ this._makeResizable();
+ }
+ }
+
+ if ( key === "title" ) {
+ this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) );
+ }
+ },
+
+ _size: function() {
+ // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
+ // divs will both have width and height set, so we need to reset them
+ var nonContentHeight, minContentHeight, maxContentHeight,
+ options = this.options;
+
+ // Reset content sizing
+ this.element.show().css({
+ width: "auto",
+ minHeight: 0,
+ maxHeight: "none",
+ height: 0
+ });
+
+ if ( options.minWidth > options.width ) {
+ options.width = options.minWidth;
+ }
+
+ // reset wrapper sizing
+ // determine the height of all the non-content elements
+ nonContentHeight = this.uiDialog.css({
+ height: "auto",
+ width: options.width
+ })
+ .outerHeight();
+ minContentHeight = Math.max( 0, options.minHeight - nonContentHeight );
+ maxContentHeight = typeof options.maxHeight === "number" ?
+ Math.max( 0, options.maxHeight - nonContentHeight ) :
+ "none";
+
+ if ( options.height === "auto" ) {
+ this.element.css({
+ minHeight: minContentHeight,
+ maxHeight: maxContentHeight,
+ height: "auto"
+ });
+ } else {
+ this.element.height( Math.max( 0, options.height - nonContentHeight ) );
+ }
+
+ if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
+ this.uiDialog.resizable( "option", "minHeight", this._minHeight() );
+ }
+ },
+
+ _blockFrames: function() {
+ this.iframeBlocks = this.document.find( "iframe" ).map(function() {
+ var iframe = $( this );
+
+ return $( "<div>" )
+ .css({
+ position: "absolute",
+ width: iframe.outerWidth(),
+ height: iframe.outerHeight()
+ })
+ .appendTo( iframe.parent() )
+ .offset( iframe.offset() )[0];
+ });
+ },
+
+ _unblockFrames: function() {
+ if ( this.iframeBlocks ) {
+ this.iframeBlocks.remove();
+ delete this.iframeBlocks;
+ }
+ },
+
+ _allowInteraction: function( event ) {
+ if ( $( event.target ).closest( ".ui-dialog" ).length ) {
+ return true;
+ }
+
+ // TODO: Remove hack when datepicker implements
+ // the .ui-front logic (#8989)
+ return !!$( event.target ).closest( ".ui-datepicker" ).length;
+ },
+
+ _createOverlay: function() {
+ if ( !this.options.modal ) {
+ return;
+ }
+
+ // We use a delay in case the overlay is created from an
+ // event that we're going to be cancelling (#2804)
+ var isOpening = true;
+ this._delay(function() {
+ isOpening = false;
+ });
+
+ if ( !this.document.data( "ui-dialog-overlays" ) ) {
+
+ // Prevent use of anchors and inputs
+ // Using _on() for an event handler shared across many instances is
+ // safe because the dialogs stack and must be closed in reverse order
+ this._on( this.document, {
+ focusin: function( event ) {
+ if ( isOpening ) {
+ return;
+ }
+
+ if ( !this._allowInteraction( event ) ) {
+ event.preventDefault();
+ this._trackingInstances()[ 0 ]._focusTabbable();
+ }
+ }
+ });
+ }
+
+ this.overlay = $( "<div>" )
+ .addClass( "ui-widget-overlay ui-front" )
+ .appendTo( this._appendTo() );
+ this._on( this.overlay, {
+ mousedown: "_keepFocus"
+ });
+ this.document.data( "ui-dialog-overlays",
+ (this.document.data( "ui-dialog-overlays" ) || 0) + 1 );
+ },
+
+ _destroyOverlay: function() {
+ if ( !this.options.modal ) {
+ return;
+ }
+
+ if ( this.overlay ) {
+ var overlays = this.document.data( "ui-dialog-overlays" ) - 1;
+
+ if ( !overlays ) {
+ this.document
+ .unbind( "focusin" )
+ .removeData( "ui-dialog-overlays" );
+ } else {
+ this.document.data( "ui-dialog-overlays", overlays );
+ }
+
+ this.overlay.remove();
+ this.overlay = null;
+ }
+ }
+});
+
+
+/*!
+ * jQuery UI Progressbar 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/progressbar/
+ */
+
+
+var progressbar = $.widget( "ui.progressbar", {
+ version: "1.11.4",
+ options: {
+ max: 100,
+ value: 0,
+
+ change: null,
+ complete: null
+ },
+
+ min: 0,
+
+ _create: function() {
+ // Constrain initial value
+ this.oldValue = this.options.value = this._constrainedValue();
+
+ this.element
+ .addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
+ .attr({
+ // Only set static values, aria-valuenow and aria-valuemax are
+ // set inside _refreshValue()
+ role: "progressbar",
+ "aria-valuemin": this.min
+ });
+
+ this.valueDiv = $( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>" )
+ .appendTo( this.element );
+
+ this._refreshValue();
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-valuemin" )
+ .removeAttr( "aria-valuemax" )
+ .removeAttr( "aria-valuenow" );
+
+ this.valueDiv.remove();
+ },
+
+ value: function( newValue ) {
+ if ( newValue === undefined ) {
+ return this.options.value;
+ }
+
+ this.options.value = this._constrainedValue( newValue );
+ this._refreshValue();
+ },
+
+ _constrainedValue: function( newValue ) {
+ if ( newValue === undefined ) {
+ newValue = this.options.value;
+ }
+
+ this.indeterminate = newValue === false;
+
+ // sanitize value
+ if ( typeof newValue !== "number" ) {
+ newValue = 0;
+ }
+
+ return this.indeterminate ? false :
+ Math.min( this.options.max, Math.max( this.min, newValue ) );
+ },
+
+ _setOptions: function( options ) {
+ // Ensure "value" option is set after other values (like max)
+ var value = options.value;
+ delete options.value;
+
+ this._super( options );
+
+ this.options.value = this._constrainedValue( value );
+ this._refreshValue();
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "max" ) {
+ // Don't allow a max less than min
+ value = Math.max( this.min, value );
+ }
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ }
+ this._super( key, value );
+ },
+
+ _percentage: function() {
+ return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
+ },
+
+ _refreshValue: function() {
+ var value = this.options.value,
+ percentage = this._percentage();
+
+ this.valueDiv
+ .toggle( this.indeterminate || value > this.min )
+ .toggleClass( "ui-corner-right", value === this.options.max )
+ .width( percentage.toFixed(0) + "%" );
+
+ this.element.toggleClass( "ui-progressbar-indeterminate", this.indeterminate );
+
+ if ( this.indeterminate ) {
+ this.element.removeAttr( "aria-valuenow" );
+ if ( !this.overlayDiv ) {
+ this.overlayDiv = $( "<div class='ui-progressbar-overlay'></div>" ).appendTo( this.valueDiv );
+ }
+ } else {
+ this.element.attr({
+ "aria-valuemax": this.options.max,
+ "aria-valuenow": value
+ });
+ if ( this.overlayDiv ) {
+ this.overlayDiv.remove();
+ this.overlayDiv = null;
+ }
+ }
+
+ if ( this.oldValue !== value ) {
+ this.oldValue = value;
+ this._trigger( "change" );
+ }
+ if ( value === this.options.max ) {
+ this._trigger( "complete" );
+ }
+ }
+});
+
+
+/*!
+ * jQuery UI Selectmenu 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/selectmenu
+ */
+
+
+var selectmenu = $.widget( "ui.selectmenu", {
+ version: "1.11.4",
+ defaultElement: "<select>",
+ options: {
+ appendTo: null,
+ disabled: null,
+ icons: {
+ button: "ui-icon-triangle-1-s"
+ },
+ position: {
+ my: "left top",
+ at: "left bottom",
+ collision: "none"
+ },
+ width: null,
+
+ // callbacks
+ change: null,
+ close: null,
+ focus: null,
+ open: null,
+ select: null
+ },
+
+ _create: function() {
+ var selectmenuId = this.element.uniqueId().attr( "id" );
+ this.ids = {
+ element: selectmenuId,
+ button: selectmenuId + "-button",
+ menu: selectmenuId + "-menu"
+ };
+
+ this._drawButton();
+ this._drawMenu();
+
+ if ( this.options.disabled ) {
+ this.disable();
+ }
+ },
+
+ _drawButton: function() {
+ var that = this;
+
+ // Associate existing label with the new button
+ this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );
+ this._on( this.label, {
+ click: function( event ) {
+ this.button.focus();
+ event.preventDefault();
+ }
+ });
+
+ // Hide original select element
+ this.element.hide();
+
+ // Create button
+ this.button = $( "<span>", {
+ "class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
+ tabindex: this.options.disabled ? -1 : 0,
+ id: this.ids.button,
+ role: "combobox",
+ "aria-expanded": "false",
+ "aria-autocomplete": "list",
+ "aria-owns": this.ids.menu,
+ "aria-haspopup": "true"
+ })
+ .insertAfter( this.element );
+
+ $( "<span>", {
+ "class": "ui-icon " + this.options.icons.button
+ })
+ .prependTo( this.button );
+
+ this.buttonText = $( "<span>", {
+ "class": "ui-selectmenu-text"
+ })
+ .appendTo( this.button );
+
+ this._setText( this.buttonText, this.element.find( "option:selected" ).text() );
+ this._resizeButton();
+
+ this._on( this.button, this._buttonEvents );
+ this.button.one( "focusin", function() {
+
+ // Delay rendering the menu items until the button receives focus.
+ // The menu may have already been rendered via a programmatic open.
+ if ( !that.menuItems ) {
+ that._refreshMenu();
+ }
+ });
+ this._hoverable( this.button );
+ this._focusable( this.button );
+ },
+
+ _drawMenu: function() {
+ var that = this;
+
+ // Create menu
+ this.menu = $( "<ul>", {
+ "aria-hidden": "true",
+ "aria-labelledby": this.ids.button,
+ id: this.ids.menu
+ });
+
+ // Wrap menu
+ this.menuWrap = $( "<div>", {
+ "class": "ui-selectmenu-menu ui-front"
+ })
+ .append( this.menu )
+ .appendTo( this._appendTo() );
+
+ // Initialize menu widget
+ this.menuInstance = this.menu
+ .menu({
+ role: "listbox",
+ select: function( event, ui ) {
+ event.preventDefault();
+
+ // support: IE8
+ // If the item was selected via a click, the text selection
+ // will be destroyed in IE
+ that._setSelection();
+
+ that._select( ui.item.data( "ui-selectmenu-item" ), event );
+ },
+ focus: function( event, ui ) {
+ var item = ui.item.data( "ui-selectmenu-item" );
+
+ // Prevent inital focus from firing and check if its a newly focused item
+ if ( that.focusIndex != null && item.index !== that.focusIndex ) {
+ that._trigger( "focus", event, { item: item } );
+ if ( !that.isOpen ) {
+ that._select( item, event );
+ }
+ }
+ that.focusIndex = item.index;
+
+ that.button.attr( "aria-activedescendant",
+ that.menuItems.eq( item.index ).attr( "id" ) );
+ }
+ })
+ .menu( "instance" );
+
+ // Adjust menu styles to dropdown
+ this.menu
+ .addClass( "ui-corner-bottom" )
+ .removeClass( "ui-corner-all" );
+
+ // Don't close the menu on mouseleave
+ this.menuInstance._off( this.menu, "mouseleave" );
+
+ // Cancel the menu's collapseAll on document click
+ this.menuInstance._closeOnDocumentClick = function() {
+ return false;
+ };
+
+ // Selects often contain empty items, but never contain dividers
+ this.menuInstance._isDivider = function() {
+ return false;
+ };
+ },
+
+ refresh: function() {
+ this._refreshMenu();
+ this._setText( this.buttonText, this._getSelectedItem().text() );
+ if ( !this.options.width ) {
+ this._resizeButton();
+ }
+ },
+
+ _refreshMenu: function() {
+ this.menu.empty();
+
+ var item,
+ options = this.element.find( "option" );
+
+ if ( !options.length ) {
+ return;
+ }
+
+ this._parseOptions( options );
+ this._renderMenu( this.menu, this.items );
+
+ this.menuInstance.refresh();
+ this.menuItems = this.menu.find( "li" ).not( ".ui-selectmenu-optgroup" );
+
+ item = this._getSelectedItem();
+
+ // Update the menu to have the correct item focused
+ this.menuInstance.focus( null, item );
+ this._setAria( item.data( "ui-selectmenu-item" ) );
+
+ // Set disabled state
+ this._setOption( "disabled", this.element.prop( "disabled" ) );
+ },
+
+ open: function( event ) {
+ if ( this.options.disabled ) {
+ return;
+ }
+
+ // If this is the first time the menu is being opened, render the items
+ if ( !this.menuItems ) {
+ this._refreshMenu();
+ } else {
+
+ // Menu clears focus on close, reset focus to selected item
+ this.menu.find( ".ui-state-focus" ).removeClass( "ui-state-focus" );
+ this.menuInstance.focus( null, this._getSelectedItem() );
+ }
+
+ this.isOpen = true;
+ this._toggleAttr();
+ this._resizeMenu();
+ this._position();
+
+ this._on( this.document, this._documentClick );
+
+ this._trigger( "open", event );
+ },
+
+ _position: function() {
+ this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
+ },
+
+ close: function( event ) {
+ if ( !this.isOpen ) {
+ return;
+ }
+
+ this.isOpen = false;
+ this._toggleAttr();
+
+ this.range = null;
+ this._off( this.document );
+
+ this._trigger( "close", event );
+ },
+
+ widget: function() {
+ return this.button;
+ },
+
+ menuWidget: function() {
+ return this.menu;
+ },
+
+ _renderMenu: function( ul, items ) {
+ var that = this,
+ currentOptgroup = "";
+
+ $.each( items, function( index, item ) {
+ if ( item.optgroup !== currentOptgroup ) {
+ $( "<li>", {
+ "class": "ui-selectmenu-optgroup ui-menu-divider" +
+ ( item.element.parent( "optgroup" ).prop( "disabled" ) ?
+ " ui-state-disabled" :
+ "" ),
+ text: item.optgroup
+ })
+ .appendTo( ul );
+
+ currentOptgroup = item.optgroup;
+ }
+
+ that._renderItemData( ul, item );
+ });
+ },
+
+ _renderItemData: function( ul, item ) {
+ return this._renderItem( ul, item ).data( "ui-selectmenu-item", item );
+ },
+
+ _renderItem: function( ul, item ) {
+ var li = $( "<li>" );
+
+ if ( item.disabled ) {
+ li.addClass( "ui-state-disabled" );
+ }
+ this._setText( li, item.label );
+
+ return li.appendTo( ul );
+ },
+
+ _setText: function( element, value ) {
+ if ( value ) {
+ element.text( value );
+ } else {
+ element.html( " " );
+ }
+ },
+
+ _move: function( direction, event ) {
+ var item, next,
+ filter = ".ui-menu-item";
+
+ if ( this.isOpen ) {
+ item = this.menuItems.eq( this.focusIndex );
+ } else {
+ item = this.menuItems.eq( this.element[ 0 ].selectedIndex );
+ filter += ":not(.ui-state-disabled)";
+ }
+
+ if ( direction === "first" || direction === "last" ) {
+ next = item[ direction === "first" ? "prevAll" : "nextAll" ]( filter ).eq( -1 );
+ } else {
+ next = item[ direction + "All" ]( filter ).eq( 0 );
+ }
+
+ if ( next.length ) {
+ this.menuInstance.focus( event, next );
+ }
+ },
+
+ _getSelectedItem: function() {
+ return this.menuItems.eq( this.element[ 0 ].selectedIndex );
+ },
+
+ _toggle: function( event ) {
+ this[ this.isOpen ? "close" : "open" ]( event );
+ },
+
+ _setSelection: function() {
+ var selection;
+
+ if ( !this.range ) {
+ return;
+ }
+
+ if ( window.getSelection ) {
+ selection = window.getSelection();
+ selection.removeAllRanges();
+ selection.addRange( this.range );
+
+ // support: IE8
+ } else {
+ this.range.select();
+ }
+
+ // support: IE
+ // Setting the text selection kills the button focus in IE, but
+ // restoring the focus doesn't kill the selection.
+ this.button.focus();
+ },
+
+ _documentClick: {
+ mousedown: function( event ) {
+ if ( !this.isOpen ) {
+ return;
+ }
+
+ if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + this.ids.button ).length ) {
+ this.close( event );
+ }
+ }
+ },
+
+ _buttonEvents: {
+
+ // Prevent text selection from being reset when interacting with the selectmenu (#10144)
+ mousedown: function() {
+ var selection;
+
+ if ( window.getSelection ) {
+ selection = window.getSelection();
+ if ( selection.rangeCount ) {
+ this.range = selection.getRangeAt( 0 );
+ }
+
+ // support: IE8
+ } else {
+ this.range = document.selection.createRange();
+ }
+ },
+
+ click: function( event ) {
+ this._setSelection();
+ this._toggle( event );
+ },
+
+ keydown: function( event ) {
+ var preventDefault = true;
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.TAB:
+ case $.ui.keyCode.ESCAPE:
+ this.close( event );
+ preventDefault = false;
+ break;
+ case $.ui.keyCode.ENTER:
+ if ( this.isOpen ) {
+ this._selectFocusedItem( event );
+ }
+ break;
+ case $.ui.keyCode.UP:
+ if ( event.altKey ) {
+ this._toggle( event );
+ } else {
+ this._move( "prev", event );
+ }
+ break;
+ case $.ui.keyCode.DOWN:
+ if ( event.altKey ) {
+ this._toggle( event );
+ } else {
+ this._move( "next", event );
+ }
+ break;
+ case $.ui.keyCode.SPACE:
+ if ( this.isOpen ) {
+ this._selectFocusedItem( event );
+ } else {
+ this._toggle( event );
+ }
+ break;
+ case $.ui.keyCode.LEFT:
+ this._move( "prev", event );
+ break;
+ case $.ui.keyCode.RIGHT:
+ this._move( "next", event );
+ break;
+ case $.ui.keyCode.HOME:
+ case $.ui.keyCode.PAGE_UP:
+ this._move( "first", event );
+ break;
+ case $.ui.keyCode.END:
+ case $.ui.keyCode.PAGE_DOWN:
+ this._move( "last", event );
+ break;
+ default:
+ this.menu.trigger( event );
+ preventDefault = false;
+ }
+
+ if ( preventDefault ) {
+ event.preventDefault();
+ }
+ }
+ },
+
+ _selectFocusedItem: function( event ) {
+ var item = this.menuItems.eq( this.focusIndex );
+ if ( !item.hasClass( "ui-state-disabled" ) ) {
+ this._select( item.data( "ui-selectmenu-item" ), event );
+ }
+ },
+
+ _select: function( item, event ) {
+ var oldIndex = this.element[ 0 ].selectedIndex;
+
+ // Change native select element
+ this.element[ 0 ].selectedIndex = item.index;
+ this._setText( this.buttonText, item.label );
+ this._setAria( item );
+ this._trigger( "select", event, { item: item } );
+
+ if ( item.index !== oldIndex ) {
+ this._trigger( "change", event, { item: item } );
+ }
+
+ this.close( event );
+ },
+
+ _setAria: function( item ) {
+ var id = this.menuItems.eq( item.index ).attr( "id" );
+
+ this.button.attr({
+ "aria-labelledby": id,
+ "aria-activedescendant": id
+ });
+ this.menu.attr( "aria-activedescendant", id );
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "icons" ) {
+ this.button.find( "span.ui-icon" )
+ .removeClass( this.options.icons.button )
+ .addClass( value.button );
+ }
+
+ this._super( key, value );
+
+ if ( key === "appendTo" ) {
+ this.menuWrap.appendTo( this._appendTo() );
+ }
+
+ if ( key === "disabled" ) {
+ this.menuInstance.option( "disabled", value );
+ this.button
+ .toggleClass( "ui-state-disabled", value )
+ .attr( "aria-disabled", value );
+
+ this.element.prop( "disabled", value );
+ if ( value ) {
+ this.button.attr( "tabindex", -1 );
+ this.close();
+ } else {
+ this.button.attr( "tabindex", 0 );
+ }
+ }
+
+ if ( key === "width" ) {
+ this._resizeButton();
+ }
+ },
+
+ _appendTo: function() {
+ var element = this.options.appendTo;
+
+ if ( element ) {
+ element = element.jquery || element.nodeType ?
+ $( element ) :
+ this.document.find( element ).eq( 0 );
+ }
+
+ if ( !element || !element[ 0 ] ) {
+ element = this.element.closest( ".ui-front" );
+ }
+
+ if ( !element.length ) {
+ element = this.document[ 0 ].body;
+ }
+
+ return element;
+ },
+
+ _toggleAttr: function() {
+ this.button
+ .toggleClass( "ui-corner-top", this.isOpen )
+ .toggleClass( "ui-corner-all", !this.isOpen )
+ .attr( "aria-expanded", this.isOpen );
+ this.menuWrap.toggleClass( "ui-selectmenu-open", this.isOpen );
+ this.menu.attr( "aria-hidden", !this.isOpen );
+ },
+
+ _resizeButton: function() {
+ var width = this.options.width;
+
+ if ( !width ) {
+ width = this.element.show().outerWidth();
+ this.element.hide();
+ }
+
+ this.button.outerWidth( width );
+ },
+
+ _resizeMenu: function() {
+ this.menu.outerWidth( Math.max(
+ this.button.outerWidth(),
+
+ // support: IE10
+ // IE10 wraps long text (possibly a rounding bug)
+ // so we add 1px to avoid the wrapping
+ this.menu.width( "" ).outerWidth() + 1
+ ) );
+ },
+
+ _getCreateOptions: function() {
+ return { disabled: this.element.prop( "disabled" ) };
+ },
+
+ _parseOptions: function( options ) {
+ var data = [];
+ options.each(function( index, item ) {
+ var option = $( item ),
+ optgroup = option.parent( "optgroup" );
+ data.push({
+ element: option,
+ index: index,
+ value: option.val(),
+ label: option.text(),
+ optgroup: optgroup.attr( "label" ) || "",
+ disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" )
+ });
+ });
+ this.items = data;
+ },
+
+ _destroy: function() {
+ this.menuWrap.remove();
+ this.button.remove();
+ this.element.show();
+ this.element.removeUniqueId();
+ this.label.attr( "for", this.ids.element );
+ }
+});
+
+
+/*!
+ * jQuery UI Slider 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/slider/
+ */
+
+
+var slider = $.widget( "ui.slider", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "slide",
+
+ options: {
+ animate: false,
+ distance: 0,
+ max: 100,
+ min: 0,
+ orientation: "horizontal",
+ range: false,
+ step: 1,
+ value: 0,
+ values: null,
+
+ // callbacks
+ change: null,
+ slide: null,
+ start: null,
+ stop: null
+ },
+
+ // number of pages in a slider
+ // (how many times can you page up/down to go through the whole range)
+ numPages: 5,
+
+ _create: function() {
+ this._keySliding = false;
+ this._mouseSliding = false;
+ this._animateOff = true;
+ this._handleIndex = null;
+ this._detectOrientation();
+ this._mouseInit();
+ this._calculateNewMax();
+
+ this.element
+ .addClass( "ui-slider" +
+ " ui-slider-" + this.orientation +
+ " ui-widget" +
+ " ui-widget-content" +
+ " ui-corner-all");
+
+ this._refresh();
+ this._setOption( "disabled", this.options.disabled );
+
+ this._animateOff = false;
+ },
+
+ _refresh: function() {
+ this._createRange();
+ this._createHandles();
+ this._setupEvents();
+ this._refreshValue();
+ },
+
+ _createHandles: function() {
+ var i, handleCount,
+ options = this.options,
+ existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
+ handle = "<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",
+ handles = [];
+
+ handleCount = ( options.values && options.values.length ) || 1;
+
+ if ( existingHandles.length > handleCount ) {
+ existingHandles.slice( handleCount ).remove();
+ existingHandles = existingHandles.slice( 0, handleCount );
+ }
+
+ for ( i = existingHandles.length; i < handleCount; i++ ) {
+ handles.push( handle );
+ }
+
+ this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
+
+ this.handle = this.handles.eq( 0 );
+
+ this.handles.each(function( i ) {
+ $( this ).data( "ui-slider-handle-index", i );
+ });
+ },
+
+ _createRange: function() {
+ var options = this.options,
+ classes = "";
+
+ if ( options.range ) {
+ if ( options.range === true ) {
+ if ( !options.values ) {
+ options.values = [ this._valueMin(), this._valueMin() ];
+ } else if ( options.values.length && options.values.length !== 2 ) {
+ options.values = [ options.values[0], options.values[0] ];
+ } else if ( $.isArray( options.values ) ) {
+ options.values = options.values.slice(0);
+ }
+ }
+
+ if ( !this.range || !this.range.length ) {
+ this.range = $( "<div></div>" )
+ .appendTo( this.element );
+
+ classes = "ui-slider-range" +
+ // note: this isn't the most fittingly semantic framework class for this element,
+ // but worked best visually with a variety of themes
+ " ui-widget-header ui-corner-all";
+ } else {
+ this.range.removeClass( "ui-slider-range-min ui-slider-range-max" )
+ // Handle range switching from true to min/max
+ .css({
+ "left": "",
+ "bottom": ""
+ });
+ }
+
+ this.range.addClass( classes +
+ ( ( options.range === "min" || options.range === "max" ) ? " ui-slider-range-" + options.range : "" ) );
+ } else {
+ if ( this.range ) {
+ this.range.remove();
+ }
+ this.range = null;
+ }
+ },
+
+ _setupEvents: function() {
+ this._off( this.handles );
+ this._on( this.handles, this._handleEvents );
+ this._hoverable( this.handles );
+ this._focusable( this.handles );
+ },
+
+ _destroy: function() {
+ this.handles.remove();
+ if ( this.range ) {
+ this.range.remove();
+ }
+
+ this.element
+ .removeClass( "ui-slider" +
+ " ui-slider-horizontal" +
+ " ui-slider-vertical" +
+ " ui-widget" +
+ " ui-widget-content" +
+ " ui-corner-all" );
+
+ this._mouseDestroy();
+ },
+
+ _mouseCapture: function( event ) {
+ var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
+ that = this,
+ o = this.options;
+
+ if ( o.disabled ) {
+ return false;
+ }
+
+ this.elementSize = {
+ width: this.element.outerWidth(),
+ height: this.element.outerHeight()
+ };
+ this.elementOffset = this.element.offset();
+
+ position = { x: event.pageX, y: event.pageY };
+ normValue = this._normValueFromMouse( position );
+ distance = this._valueMax() - this._valueMin() + 1;
+ this.handles.each(function( i ) {
+ var thisDistance = Math.abs( normValue - that.values(i) );
+ if (( distance > thisDistance ) ||
+ ( distance === thisDistance &&
+ (i === that._lastChangedValue || that.values(i) === o.min ))) {
+ distance = thisDistance;
+ closestHandle = $( this );
+ index = i;
+ }
+ });
+
+ allowed = this._start( event, index );
+ if ( allowed === false ) {
+ return false;
+ }
+ this._mouseSliding = true;
+
+ this._handleIndex = index;
+
+ closestHandle
+ .addClass( "ui-state-active" )
+ .focus();
+
+ offset = closestHandle.offset();
+ mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
+ this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
+ left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
+ top: event.pageY - offset.top -
+ ( closestHandle.height() / 2 ) -
+ ( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
+ ( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
+ ( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
+ };
+
+ if ( !this.handles.hasClass( "ui-state-hover" ) ) {
+ this._slide( event, index, normValue );
+ }
+ this._animateOff = true;
+ return true;
+ },
+
+ _mouseStart: function() {
+ return true;
+ },
+
+ _mouseDrag: function( event ) {
+ var position = { x: event.pageX, y: event.pageY },
+ normValue = this._normValueFromMouse( position );
+
+ this._slide( event, this._handleIndex, normValue );
+
+ return false;
+ },
+
+ _mouseStop: function( event ) {
+ this.handles.removeClass( "ui-state-active" );
+ this._mouseSliding = false;
+
+ this._stop( event, this._handleIndex );
+ this._change( event, this._handleIndex );
+
+ this._handleIndex = null;
+ this._clickOffset = null;
+ this._animateOff = false;
+
+ return false;
+ },
+
+ _detectOrientation: function() {
+ this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
+ },
+
+ _normValueFromMouse: function( position ) {
+ var pixelTotal,
+ pixelMouse,
+ percentMouse,
+ valueTotal,
+ valueMouse;
+
+ if ( this.orientation === "horizontal" ) {
+ pixelTotal = this.elementSize.width;
+ pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
+ } else {
+ pixelTotal = this.elementSize.height;
+ pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
+ }
+
+ percentMouse = ( pixelMouse / pixelTotal );
+ if ( percentMouse > 1 ) {
+ percentMouse = 1;
+ }
+ if ( percentMouse < 0 ) {
+ percentMouse = 0;
+ }
+ if ( this.orientation === "vertical" ) {
+ percentMouse = 1 - percentMouse;
+ }
+
+ valueTotal = this._valueMax() - this._valueMin();
+ valueMouse = this._valueMin() + percentMouse * valueTotal;
+
+ return this._trimAlignValue( valueMouse );
+ },
+
+ _start: function( event, index ) {
+ var uiHash = {
+ handle: this.handles[ index ],
+ value: this.value()
+ };
+ if ( this.options.values && this.options.values.length ) {
+ uiHash.value = this.values( index );
+ uiHash.values = this.values();
+ }
+ return this._trigger( "start", event, uiHash );
+ },
+
+ _slide: function( event, index, newVal ) {
+ var otherVal,
+ newValues,
+ allowed;
+
+ if ( this.options.values && this.options.values.length ) {
+ otherVal = this.values( index ? 0 : 1 );
+
+ if ( ( this.options.values.length === 2 && this.options.range === true ) &&
+ ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
+ ) {
+ newVal = otherVal;
+ }
+
+ if ( newVal !== this.values( index ) ) {
+ newValues = this.values();
+ newValues[ index ] = newVal;
+ // A slide can be canceled by returning false from the slide callback
+ allowed = this._trigger( "slide", event, {
+ handle: this.handles[ index ],
+ value: newVal,
+ values: newValues
+ } );
+ otherVal = this.values( index ? 0 : 1 );
+ if ( allowed !== false ) {
+ this.values( index, newVal );
+ }
+ }
+ } else {
+ if ( newVal !== this.value() ) {
+ // A slide can be canceled by returning false from the slide callback
+ allowed = this._trigger( "slide", event, {
+ handle: this.handles[ index ],
+ value: newVal
+ } );
+ if ( allowed !== false ) {
+ this.value( newVal );
+ }
+ }
+ }
+ },
+
+ _stop: function( event, index ) {
+ var uiHash = {
+ handle: this.handles[ index ],
+ value: this.value()
+ };
+ if ( this.options.values && this.options.values.length ) {
+ uiHash.value = this.values( index );
+ uiHash.values = this.values();
+ }
+
+ this._trigger( "stop", event, uiHash );
+ },
+
+ _change: function( event, index ) {
+ if ( !this._keySliding && !this._mouseSliding ) {
+ var uiHash = {
+ handle: this.handles[ index ],
+ value: this.value()
+ };
+ if ( this.options.values && this.options.values.length ) {
+ uiHash.value = this.values( index );
+ uiHash.values = this.values();
+ }
+
+ //store the last changed value index for reference when handles overlap
+ this._lastChangedValue = index;
+
+ this._trigger( "change", event, uiHash );
+ }
+ },
+
+ value: function( newValue ) {
+ if ( arguments.length ) {
+ this.options.value = this._trimAlignValue( newValue );
+ this._refreshValue();
+ this._change( null, 0 );
+ return;
+ }
+
+ return this._value();
+ },
+
+ values: function( index, newValue ) {
+ var vals,
+ newValues,
+ i;
+
+ if ( arguments.length > 1 ) {
+ this.options.values[ index ] = this._trimAlignValue( newValue );
+ this._refreshValue();
+ this._change( null, index );
+ return;
+ }
+
+ if ( arguments.length ) {
+ if ( $.isArray( arguments[ 0 ] ) ) {
+ vals = this.options.values;
+ newValues = arguments[ 0 ];
+ for ( i = 0; i < vals.length; i += 1 ) {
+ vals[ i ] = this._trimAlignValue( newValues[ i ] );
+ this._change( null, i );
+ }
+ this._refreshValue();
+ } else {
+ if ( this.options.values && this.options.values.length ) {
+ return this._values( index );
+ } else {
+ return this.value();
+ }
+ }
+ } else {
+ return this._values();
+ }
+ },
+
+ _setOption: function( key, value ) {
+ var i,
+ valsLength = 0;
+
+ if ( key === "range" && this.options.range === true ) {
+ if ( value === "min" ) {
+ this.options.value = this._values( 0 );
+ this.options.values = null;
+ } else if ( value === "max" ) {
+ this.options.value = this._values( this.options.values.length - 1 );
+ this.options.values = null;
+ }
+ }
+
+ if ( $.isArray( this.options.values ) ) {
+ valsLength = this.options.values.length;
+ }
+
+ if ( key === "disabled" ) {
+ this.element.toggleClass( "ui-state-disabled", !!value );
+ }
+
+ this._super( key, value );
+
+ switch ( key ) {
+ case "orientation":
+ this._detectOrientation();
+ this.element
+ .removeClass( "ui-slider-horizontal ui-slider-vertical" )
+ .addClass( "ui-slider-" + this.orientation );
+ this._refreshValue();
+
+ // Reset positioning from previous orientation
+ this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
+ break;
+ case "value":
+ this._animateOff = true;
+ this._refreshValue();
+ this._change( null, 0 );
+ this._animateOff = false;
+ break;
+ case "values":
+ this._animateOff = true;
+ this._refreshValue();
+ for ( i = 0; i < valsLength; i += 1 ) {
+ this._change( null, i );
+ }
+ this._animateOff = false;
+ break;
+ case "step":
+ case "min":
+ case "max":
+ this._animateOff = true;
+ this._calculateNewMax();
+ this._refreshValue();
+ this._animateOff = false;
+ break;
+ case "range":
+ this._animateOff = true;
+ this._refresh();
+ this._animateOff = false;
+ break;
+ }
+ },
+
+ //internal value getter
+ // _value() returns value trimmed by min and max, aligned by step
+ _value: function() {
+ var val = this.options.value;
+ val = this._trimAlignValue( val );
+
+ return val;
+ },
+
+ //internal values getter
+ // _values() returns array of values trimmed by min and max, aligned by step
+ // _values( index ) returns single value trimmed by min and max, aligned by step
+ _values: function( index ) {
+ var val,
+ vals,
+ i;
+
+ if ( arguments.length ) {
+ val = this.options.values[ index ];
+ val = this._trimAlignValue( val );
+
+ return val;
+ } else if ( this.options.values && this.options.values.length ) {
+ // .slice() creates a copy of the array
+ // this copy gets trimmed by min and max and then returned
+ vals = this.options.values.slice();
+ for ( i = 0; i < vals.length; i += 1) {
+ vals[ i ] = this._trimAlignValue( vals[ i ] );
+ }
+
+ return vals;
+ } else {
+ return [];
+ }
+ },
+
+ // returns the step-aligned value that val is closest to, between (inclusive) min and max
+ _trimAlignValue: function( val ) {
+ if ( val <= this._valueMin() ) {
+ return this._valueMin();
+ }
+ if ( val >= this._valueMax() ) {
+ return this._valueMax();
+ }
+ var step = ( this.options.step > 0 ) ? this.options.step : 1,
+ valModStep = (val - this._valueMin()) % step,
+ alignValue = val - valModStep;
+
+ if ( Math.abs(valModStep) * 2 >= step ) {
+ alignValue += ( valModStep > 0 ) ? step : ( -step );
+ }
+
+ // Since JavaScript has problems with large floats, round
+ // the final value to 5 digits after the decimal point (see #4124)
+ return parseFloat( alignValue.toFixed(5) );
+ },
+
+ _calculateNewMax: function() {
+ var max = this.options.max,
+ min = this._valueMin(),
+ step = this.options.step,
+ aboveMin = Math.floor( ( +( max - min ).toFixed( this._precision() ) ) / step ) * step;
+ max = aboveMin + min;
+ this.max = parseFloat( max.toFixed( this._precision() ) );
+ },
+
+ _precision: function() {
+ var precision = this._precisionOf( this.options.step );
+ if ( this.options.min !== null ) {
+ precision = Math.max( precision, this._precisionOf( this.options.min ) );
+ }
+ return precision;
+ },
+
+ _precisionOf: function( num ) {
+ var str = num.toString(),
+ decimal = str.indexOf( "." );
+ return decimal === -1 ? 0 : str.length - decimal - 1;
+ },
+
+ _valueMin: function() {
+ return this.options.min;
+ },
+
+ _valueMax: function() {
+ return this.max;
+ },
+
+ _refreshValue: function() {
+ var lastValPercent, valPercent, value, valueMin, valueMax,
+ oRange = this.options.range,
+ o = this.options,
+ that = this,
+ animate = ( !this._animateOff ) ? o.animate : false,
+ _set = {};
+
+ if ( this.options.values && this.options.values.length ) {
+ this.handles.each(function( i ) {
+ valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;
+ _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
+ $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
+ if ( that.options.range === true ) {
+ if ( that.orientation === "horizontal" ) {
+ if ( i === 0 ) {
+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );
+ }
+ if ( i === 1 ) {
+ that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ } else {
+ if ( i === 0 ) {
+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );
+ }
+ if ( i === 1 ) {
+ that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ }
+ }
+ lastValPercent = valPercent;
+ });
+ } else {
+ value = this.value();
+ valueMin = this._valueMin();
+ valueMax = this._valueMax();
+ valPercent = ( valueMax !== valueMin ) ?
+ ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
+ 0;
+ _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
+ this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
+
+ if ( oRange === "min" && this.orientation === "horizontal" ) {
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
+ }
+ if ( oRange === "max" && this.orientation === "horizontal" ) {
+ this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ if ( oRange === "min" && this.orientation === "vertical" ) {
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
+ }
+ if ( oRange === "max" && this.orientation === "vertical" ) {
+ this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ }
+ },
+
+ _handleEvents: {
+ keydown: function( event ) {
+ var allowed, curVal, newVal, step,
+ index = $( event.target ).data( "ui-slider-handle-index" );
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.HOME:
+ case $.ui.keyCode.END:
+ case $.ui.keyCode.PAGE_UP:
+ case $.ui.keyCode.PAGE_DOWN:
+ case $.ui.keyCode.UP:
+ case $.ui.keyCode.RIGHT:
+ case $.ui.keyCode.DOWN:
+ case $.ui.keyCode.LEFT:
+ event.preventDefault();
+ if ( !this._keySliding ) {
+ this._keySliding = true;
+ $( event.target ).addClass( "ui-state-active" );
+ allowed = this._start( event, index );
+ if ( allowed === false ) {
+ return;
+ }
+ }
+ break;
+ }
+
+ step = this.options.step;
+ if ( this.options.values && this.options.values.length ) {
+ curVal = newVal = this.values( index );
+ } else {
+ curVal = newVal = this.value();
+ }
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.HOME:
+ newVal = this._valueMin();
+ break;
+ case $.ui.keyCode.END:
+ newVal = this._valueMax();
+ break;
+ case $.ui.keyCode.PAGE_UP:
+ newVal = this._trimAlignValue(
+ curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
+ );
+ break;
+ case $.ui.keyCode.PAGE_DOWN:
+ newVal = this._trimAlignValue(
+ curVal - ( (this._valueMax() - this._valueMin()) / this.numPages ) );
+ break;
+ case $.ui.keyCode.UP:
+ case $.ui.keyCode.RIGHT:
+ if ( curVal === this._valueMax() ) {
+ return;
+ }
+ newVal = this._trimAlignValue( curVal + step );
+ break;
+ case $.ui.keyCode.DOWN:
+ case $.ui.keyCode.LEFT:
+ if ( curVal === this._valueMin() ) {
+ return;
+ }
+ newVal = this._trimAlignValue( curVal - step );
+ break;
+ }
+
+ this._slide( event, index, newVal );
+ },
+ keyup: function( event ) {
+ var index = $( event.target ).data( "ui-slider-handle-index" );
+
+ if ( this._keySliding ) {
+ this._keySliding = false;
+ this._stop( event, index );
+ this._change( event, index );
+ $( event.target ).removeClass( "ui-state-active" );
+ }
+ }
+ }
+});
+
+
+/*!
+ * jQuery UI Spinner 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/spinner/
+ */
+
+
+function spinner_modifier( fn ) {
+ return function() {
+ var previous = this.element.val();
+ fn.apply( this, arguments );
+ this._refresh();
+ if ( previous !== this.element.val() ) {
+ this._trigger( "change" );
+ }
+ };
+}
+
+var spinner = $.widget( "ui.spinner", {
+ version: "1.11.4",
+ defaultElement: "<input>",
+ widgetEventPrefix: "spin",
+ options: {
+ culture: null,
+ icons: {
+ down: "ui-icon-triangle-1-s",
+ up: "ui-icon-triangle-1-n"
+ },
+ incremental: true,
+ max: null,
+ min: null,
+ numberFormat: null,
+ page: 10,
+ step: 1,
+
+ change: null,
+ spin: null,
+ start: null,
+ stop: null
+ },
+
+ _create: function() {
+ // handle string values that need to be parsed
+ this._setOption( "max", this.options.max );
+ this._setOption( "min", this.options.min );
+ this._setOption( "step", this.options.step );
+
+ // Only format if there is a value, prevents the field from being marked
+ // as invalid in Firefox, see #9573.
+ if ( this.value() !== "" ) {
+ // Format the value, but don't constrain.
+ this._value( this.element.val(), true );
+ }
+
+ this._draw();
+ this._on( this._events );
+ this._refresh();
+
+ // turning off autocomplete prevents the browser from remembering the
+ // value when navigating through history, so we re-enable autocomplete
+ // if the page is unloaded before the widget is destroyed. #7790
+ this._on( this.window, {
+ beforeunload: function() {
+ this.element.removeAttr( "autocomplete" );
+ }
+ });
+ },
+
+ _getCreateOptions: function() {
+ var options = {},
+ element = this.element;
+
+ $.each( [ "min", "max", "step" ], function( i, option ) {
+ var value = element.attr( option );
+ if ( value !== undefined && value.length ) {
+ options[ option ] = value;
+ }
+ });
+
+ return options;
+ },
+
+ _events: {
+ keydown: function( event ) {
+ if ( this._start( event ) && this._keydown( event ) ) {
+ event.preventDefault();
+ }
+ },
+ keyup: "_stop",
+ focus: function() {
+ this.previous = this.element.val();
+ },
+ blur: function( event ) {
+ if ( this.cancelBlur ) {
+ delete this.cancelBlur;
+ return;
+ }
+
+ this._stop();
+ this._refresh();
+ if ( this.previous !== this.element.val() ) {
+ this._trigger( "change", event );
+ }
+ },
+ mousewheel: function( event, delta ) {
+ if ( !delta ) {
+ return;
+ }
+ if ( !this.spinning && !this._start( event ) ) {
+ return false;
+ }
+
+ this._spin( (delta > 0 ? 1 : -1) * this.options.step, event );
+ clearTimeout( this.mousewheelTimer );
+ this.mousewheelTimer = this._delay(function() {
+ if ( this.spinning ) {
+ this._stop( event );
+ }
+ }, 100 );
+ event.preventDefault();
+ },
+ "mousedown .ui-spinner-button": function( event ) {
+ var previous;
+
+ // We never want the buttons to have focus; whenever the user is
+ // interacting with the spinner, the focus should be on the input.
+ // If the input is focused then this.previous is properly set from
+ // when the input first received focus. If the input is not focused
+ // then we need to set this.previous based on the value before spinning.
+ previous = this.element[0] === this.document[0].activeElement ?
+ this.previous : this.element.val();
+ function checkFocus() {
+ var isActive = this.element[0] === this.document[0].activeElement;
+ if ( !isActive ) {
+ this.element.focus();
+ this.previous = previous;
+ // support: IE
+ // IE sets focus asynchronously, so we need to check if focus
+ // moved off of the input because the user clicked on the button.
+ this._delay(function() {
+ this.previous = previous;
+ });
+ }
+ }
+
+ // ensure focus is on (or stays on) the text field
+ event.preventDefault();
+ checkFocus.call( this );
+
+ // support: IE
+ // IE doesn't prevent moving focus even with event.preventDefault()
+ // so we set a flag to know when we should ignore the blur event
+ // and check (again) if focus moved off of the input.
+ this.cancelBlur = true;
+ this._delay(function() {
+ delete this.cancelBlur;
+ checkFocus.call( this );
+ });
+
+ if ( this._start( event ) === false ) {
+ return;
+ }
+
+ this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event );
+ },
+ "mouseup .ui-spinner-button": "_stop",
+ "mouseenter .ui-spinner-button": function( event ) {
+ // button will add ui-state-active if mouse was down while mouseleave and kept down
+ if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) {
+ return;
+ }
+
+ if ( this._start( event ) === false ) {
+ return false;
+ }
+ this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event );
+ },
+ // TODO: do we really want to consider this a stop?
+ // shouldn't we just stop the repeater and wait until mouseup before
+ // we trigger the stop event?
+ "mouseleave .ui-spinner-button": "_stop"
+ },
+
+ _draw: function() {
+ var uiSpinner = this.uiSpinner = this.element
+ .addClass( "ui-spinner-input" )
+ .attr( "autocomplete", "off" )
+ .wrap( this._uiSpinnerHtml() )
+ .parent()
+ // add buttons
+ .append( this._buttonHtml() );
+
+ this.element.attr( "role", "spinbutton" );
+
+ // button bindings
+ this.buttons = uiSpinner.find( ".ui-spinner-button" )
+ .attr( "tabIndex", -1 )
+ .button()
+ .removeClass( "ui-corner-all" );
+
+ // IE 6 doesn't understand height: 50% for the buttons
+ // unless the wrapper has an explicit height
+ if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&
+ uiSpinner.height() > 0 ) {
+ uiSpinner.height( uiSpinner.height() );
+ }
+
+ // disable spinner if element was already disabled
+ if ( this.options.disabled ) {
+ this.disable();
+ }
+ },
+
+ _keydown: function( event ) {
+ var options = this.options,
+ keyCode = $.ui.keyCode;
+
+ switch ( event.keyCode ) {
+ case keyCode.UP:
+ this._repeat( null, 1, event );
+ return true;
+ case keyCode.DOWN:
+ this._repeat( null, -1, event );
+ return true;
+ case keyCode.PAGE_UP:
+ this._repeat( null, options.page, event );
+ return true;
+ case keyCode.PAGE_DOWN:
+ this._repeat( null, -options.page, event );
+ return true;
+ }
+
+ return false;
+ },
+
+ _uiSpinnerHtml: function() {
+ return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";
+ },
+
+ _buttonHtml: function() {
+ return "" +
+ "<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>" +
+ "<span class='ui-icon " + this.options.icons.up + "'>▲</span>" +
+ "</a>" +
+ "<a class='ui-spinner-button ui-spinner-down ui-corner-br'>" +
+ "<span class='ui-icon " + this.options.icons.down + "'>▼</span>" +
+ "</a>";
+ },
+
+ _start: function( event ) {
+ if ( !this.spinning && this._trigger( "start", event ) === false ) {
+ return false;
+ }
+
+ if ( !this.counter ) {
+ this.counter = 1;
+ }
+ this.spinning = true;
+ return true;
+ },
+
+ _repeat: function( i, steps, event ) {
+ i = i || 500;
+
+ clearTimeout( this.timer );
+ this.timer = this._delay(function() {
+ this._repeat( 40, steps, event );
+ }, i );
+
+ this._spin( steps * this.options.step, event );
+ },
+
+ _spin: function( step, event ) {
+ var value = this.value() || 0;
+
+ if ( !this.counter ) {
+ this.counter = 1;
+ }
+
+ value = this._adjustValue( value + step * this._increment( this.counter ) );
+
+ if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false) {
+ this._value( value );
+ this.counter++;
+ }
+ },
+
+ _increment: function( i ) {
+ var incremental = this.options.incremental;
+
+ if ( incremental ) {
+ return $.isFunction( incremental ) ?
+ incremental( i ) :
+ Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
+ }
+
+ return 1;
+ },
+
+ _precision: function() {
+ var precision = this._precisionOf( this.options.step );
+ if ( this.options.min !== null ) {
+ precision = Math.max( precision, this._precisionOf( this.options.min ) );
+ }
+ return precision;
+ },
+
+ _precisionOf: function( num ) {
+ var str = num.toString(),
+ decimal = str.indexOf( "." );
+ return decimal === -1 ? 0 : str.length - decimal - 1;
+ },
+
+ _adjustValue: function( value ) {
+ var base, aboveMin,
+ options = this.options;
+
+ // make sure we're at a valid step
+ // - find out where we are relative to the base (min or 0)
+ base = options.min !== null ? options.min : 0;
+ aboveMin = value - base;
+ // - round to the nearest step
+ aboveMin = Math.round(aboveMin / options.step) * options.step;
+ // - rounding is based on 0, so adjust back to our base
+ value = base + aboveMin;
+
+ // fix precision from bad JS floating point math
+ value = parseFloat( value.toFixed( this._precision() ) );
+
+ // clamp the value
+ if ( options.max !== null && value > options.max) {
+ return options.max;
+ }
+ if ( options.min !== null && value < options.min ) {
+ return options.min;
+ }
+
+ return value;
+ },
+
+ _stop: function( event ) {
+ if ( !this.spinning ) {
+ return;
+ }
+
+ clearTimeout( this.timer );
+ clearTimeout( this.mousewheelTimer );
+ this.counter = 0;
+ this.spinning = false;
+ this._trigger( "stop", event );
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "culture" || key === "numberFormat" ) {
+ var prevValue = this._parse( this.element.val() );
+ this.options[ key ] = value;
+ this.element.val( this._format( prevValue ) );
+ return;
+ }
+
+ if ( key === "max" || key === "min" || key === "step" ) {
+ if ( typeof value === "string" ) {
+ value = this._parse( value );
+ }
+ }
+ if ( key === "icons" ) {
+ this.buttons.first().find( ".ui-icon" )
+ .removeClass( this.options.icons.up )
+ .addClass( value.up );
+ this.buttons.last().find( ".ui-icon" )
+ .removeClass( this.options.icons.down )
+ .addClass( value.down );
+ }
+
+ this._super( key, value );
+
+ if ( key === "disabled" ) {
+ this.widget().toggleClass( "ui-state-disabled", !!value );
+ this.element.prop( "disabled", !!value );
+ this.buttons.button( value ? "disable" : "enable" );
+ }
+ },
+
+ _setOptions: spinner_modifier(function( options ) {
+ this._super( options );
+ }),
+
+ _parse: function( val ) {
+ if ( typeof val === "string" && val !== "" ) {
+ val = window.Globalize && this.options.numberFormat ?
+ Globalize.parseFloat( val, 10, this.options.culture ) : +val;
+ }
+ return val === "" || isNaN( val ) ? null : val;
+ },
+
+ _format: function( value ) {
+ if ( value === "" ) {
+ return "";
+ }
+ return window.Globalize && this.options.numberFormat ?
+ Globalize.format( value, this.options.numberFormat, this.options.culture ) :
+ value;
+ },
+
+ _refresh: function() {
+ this.element.attr({
+ "aria-valuemin": this.options.min,
+ "aria-valuemax": this.options.max,
+ // TODO: what should we do with values that can't be parsed?
+ "aria-valuenow": this._parse( this.element.val() )
+ });
+ },
+
+ isValid: function() {
+ var value = this.value();
+
+ // null is invalid
+ if ( value === null ) {
+ return false;
+ }
+
+ // if value gets adjusted, it's invalid
+ return value === this._adjustValue( value );
+ },
+
+ // update the value without triggering change
+ _value: function( value, allowAny ) {
+ var parsed;
+ if ( value !== "" ) {
+ parsed = this._parse( value );
+ if ( parsed !== null ) {
+ if ( !allowAny ) {
+ parsed = this._adjustValue( parsed );
+ }
+ value = this._format( parsed );
+ }
+ }
+ this.element.val( value );
+ this._refresh();
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-spinner-input" )
+ .prop( "disabled", false )
+ .removeAttr( "autocomplete" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-valuemin" )
+ .removeAttr( "aria-valuemax" )
+ .removeAttr( "aria-valuenow" );
+ this.uiSpinner.replaceWith( this.element );
+ },
+
+ stepUp: spinner_modifier(function( steps ) {
+ this._stepUp( steps );
+ }),
+ _stepUp: function( steps ) {
+ if ( this._start() ) {
+ this._spin( (steps || 1) * this.options.step );
+ this._stop();
+ }
+ },
+
+ stepDown: spinner_modifier(function( steps ) {
+ this._stepDown( steps );
+ }),
+ _stepDown: function( steps ) {
+ if ( this._start() ) {
+ this._spin( (steps || 1) * -this.options.step );
+ this._stop();
+ }
+ },
+
+ pageUp: spinner_modifier(function( pages ) {
+ this._stepUp( (pages || 1) * this.options.page );
+ }),
+
+ pageDown: spinner_modifier(function( pages ) {
+ this._stepDown( (pages || 1) * this.options.page );
+ }),
+
+ value: function( newVal ) {
+ if ( !arguments.length ) {
+ return this._parse( this.element.val() );
+ }
+ spinner_modifier( this._value ).call( this, newVal );
+ },
+
+ widget: function() {
+ return this.uiSpinner;
+ }
+});
+
+
+/*!
+ * jQuery UI Tabs 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/tabs/
+ */
+
+
+var tabs = $.widget( "ui.tabs", {
+ version: "1.11.4",
+ delay: 300,
+ options: {
+ active: null,
+ collapsible: false,
+ event: "click",
+ heightStyle: "content",
+ hide: null,
+ show: null,
+
+ // callbacks
+ activate: null,
+ beforeActivate: null,
+ beforeLoad: null,
+ load: null
+ },
+
+ _isLocal: (function() {
+ var rhash = /#.*$/;
+
+ return function( anchor ) {
+ var anchorUrl, locationUrl;
+
+ // support: IE7
+ // IE7 doesn't normalize the href property when set via script (#9317)
+ anchor = anchor.cloneNode( false );
+
+ anchorUrl = anchor.href.replace( rhash, "" );
+ locationUrl = location.href.replace( rhash, "" );
+
+ // decoding may throw an error if the URL isn't UTF-8 (#9518)
+ try {
+ anchorUrl = decodeURIComponent( anchorUrl );
+ } catch ( error ) {}
+ try {
+ locationUrl = decodeURIComponent( locationUrl );
+ } catch ( error ) {}
+
+ return anchor.hash.length > 1 && anchorUrl === locationUrl;
+ };
+ })(),
+
+ _create: function() {
+ var that = this,
+ options = this.options;
+
+ this.running = false;
+
+ this.element
+ .addClass( "ui-tabs ui-widget ui-widget-content ui-corner-all" )
+ .toggleClass( "ui-tabs-collapsible", options.collapsible );
+
+ this._processTabs();
+ options.active = this._initialActive();
+
+ // Take disabling tabs via class attribute from HTML
+ // into account and update option properly.
+ if ( $.isArray( options.disabled ) ) {
+ options.disabled = $.unique( options.disabled.concat(
+ $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {
+ return that.tabs.index( li );
+ })
+ ) ).sort();
+ }
+
+ // check for length avoids error when initializing empty list
+ if ( this.options.active !== false && this.anchors.length ) {
+ this.active = this._findActive( options.active );
+ } else {
+ this.active = $();
+ }
+
+ this._refresh();
+
+ if ( this.active.length ) {
+ this.load( options.active );
+ }
+ },
+
+ _initialActive: function() {
+ var active = this.options.active,
+ collapsible = this.options.collapsible,
+ locationHash = location.hash.substring( 1 );
+
+ if ( active === null ) {
+ // check the fragment identifier in the URL
+ if ( locationHash ) {
+ this.tabs.each(function( i, tab ) {
+ if ( $( tab ).attr( "aria-controls" ) === locationHash ) {
+ active = i;
+ return false;
+ }
+ });
+ }
+
+ // check for a tab marked active via a class
+ if ( active === null ) {
+ active = this.tabs.index( this.tabs.filter( ".ui-tabs-active" ) );
+ }
+
+ // no active tab, set to false
+ if ( active === null || active === -1 ) {
+ active = this.tabs.length ? 0 : false;
+ }
+ }
+
+ // handle numbers: negative, out of range
+ if ( active !== false ) {
+ active = this.tabs.index( this.tabs.eq( active ) );
+ if ( active === -1 ) {
+ active = collapsible ? false : 0;
+ }
+ }
+
+ // don't allow collapsible: false and active: false
+ if ( !collapsible && active === false && this.anchors.length ) {
+ active = 0;
+ }
+
+ return active;
+ },
+
+ _getCreateEventData: function() {
+ return {
+ tab: this.active,
+ panel: !this.active.length ? $() : this._getPanelForTab( this.active )
+ };
+ },
+
+ _tabKeydown: function( event ) {
+ var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
+ selectedIndex = this.tabs.index( focusedTab ),
+ goingForward = true;
+
+ if ( this._handlePageNav( event ) ) {
+ return;
+ }
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.RIGHT:
+ case $.ui.keyCode.DOWN:
+ selectedIndex++;
+ break;
+ case $.ui.keyCode.UP:
+ case $.ui.keyCode.LEFT:
+ goingForward = false;
+ selectedIndex--;
+ break;
+ case $.ui.keyCode.END:
+ selectedIndex = this.anchors.length - 1;
+ break;
+ case $.ui.keyCode.HOME:
+ selectedIndex = 0;
+ break;
+ case $.ui.keyCode.SPACE:
+ // Activate only, no collapsing
+ event.preventDefault();
+ clearTimeout( this.activating );
+ this._activate( selectedIndex );
+ return;
+ case $.ui.keyCode.ENTER:
+ // Toggle (cancel delayed activation, allow collapsing)
+ event.preventDefault();
+ clearTimeout( this.activating );
+ // Determine if we should collapse or activate
+ this._activate( selectedIndex === this.options.active ? false : selectedIndex );
+ return;
+ default:
+ return;
+ }
+
+ // Focus the appropriate tab, based on which key was pressed
+ event.preventDefault();
+ clearTimeout( this.activating );
+ selectedIndex = this._focusNextTab( selectedIndex, goingForward );
+
+ // Navigating with control/command key will prevent automatic activation
+ if ( !event.ctrlKey && !event.metaKey ) {
+
+ // Update aria-selected immediately so that AT think the tab is already selected.
+ // Otherwise AT may confuse the user by stating that they need to activate the tab,
+ // but the tab will already be activated by the time the announcement finishes.
+ focusedTab.attr( "aria-selected", "false" );
+ this.tabs.eq( selectedIndex ).attr( "aria-selected", "true" );
+
+ this.activating = this._delay(function() {
+ this.option( "active", selectedIndex );
+ }, this.delay );
+ }
+ },
+
+ _panelKeydown: function( event ) {
+ if ( this._handlePageNav( event ) ) {
+ return;
+ }
+
+ // Ctrl+up moves focus to the current tab
+ if ( event.ctrlKey && event.keyCode === $.ui.keyCode.UP ) {
+ event.preventDefault();
+ this.active.focus();
+ }
+ },
+
+ // Alt+page up/down moves focus to the previous/next tab (and activates)
+ _handlePageNav: function( event ) {
+ if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_UP ) {
+ this._activate( this._focusNextTab( this.options.active - 1, false ) );
+ return true;
+ }
+ if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_DOWN ) {
+ this._activate( this._focusNextTab( this.options.active + 1, true ) );
+ return true;
+ }
+ },
+
+ _findNextTab: function( index, goingForward ) {
+ var lastTabIndex = this.tabs.length - 1;
+
+ function constrain() {
+ if ( index > lastTabIndex ) {
+ index = 0;
+ }
+ if ( index < 0 ) {
+ index = lastTabIndex;
+ }
+ return index;
+ }
+
+ while ( $.inArray( constrain(), this.options.disabled ) !== -1 ) {
+ index = goingForward ? index + 1 : index - 1;
+ }
+
+ return index;
+ },
+
+ _focusNextTab: function( index, goingForward ) {
+ index = this._findNextTab( index, goingForward );
+ this.tabs.eq( index ).focus();
+ return index;
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "active" ) {
+ // _activate() will handle invalid values and update this.options
+ this._activate( value );
+ return;
+ }
+
+ if ( key === "disabled" ) {
+ // don't use the widget factory's disabled handling
+ this._setupDisabled( value );
+ return;
+ }
+
+ this._super( key, value);
+
+ if ( key === "collapsible" ) {
+ this.element.toggleClass( "ui-tabs-collapsible", value );
+ // Setting collapsible: false while collapsed; open first panel
+ if ( !value && this.options.active === false ) {
+ this._activate( 0 );
+ }
+ }
+
+ if ( key === "event" ) {
+ this._setupEvents( value );
+ }
+
+ if ( key === "heightStyle" ) {
+ this._setupHeightStyle( value );
+ }
+ },
+
+ _sanitizeSelector: function( hash ) {
+ return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";
+ },
+
+ refresh: function() {
+ var options = this.options,
+ lis = this.tablist.children( ":has(a[href])" );
+
+ // get disabled tabs from class attribute from HTML
+ // this will get converted to a boolean if needed in _refresh()
+ options.disabled = $.map( lis.filter( ".ui-state-disabled" ), function( tab ) {
+ return lis.index( tab );
+ });
+
+ this._processTabs();
+
+ // was collapsed or no tabs
+ if ( options.active === false || !this.anchors.length ) {
+ options.active = false;
+ this.active = $();
+ // was active, but active tab is gone
+ } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) {
+ // all remaining tabs are disabled
+ if ( this.tabs.length === options.disabled.length ) {
+ options.active = false;
+ this.active = $();
+ // activate previous tab
+ } else {
+ this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) );
+ }
+ // was active, active tab still exists
+ } else {
+ // make sure active index is correct
+ options.active = this.tabs.index( this.active );
+ }
+
+ this._refresh();
+ },
+
+ _refresh: function() {
+ this._setupDisabled( this.options.disabled );
+ this._setupEvents( this.options.event );
+ this._setupHeightStyle( this.options.heightStyle );
+
+ this.tabs.not( this.active ).attr({
+ "aria-selected": "false",
+ "aria-expanded": "false",
+ tabIndex: -1
+ });
+ this.panels.not( this._getPanelForTab( this.active ) )
+ .hide()
+ .attr({
+ "aria-hidden": "true"
+ });
+
+ // Make sure one tab is in the tab order
+ if ( !this.active.length ) {
+ this.tabs.eq( 0 ).attr( "tabIndex", 0 );
+ } else {
+ this.active
+ .addClass( "ui-tabs-active ui-state-active" )
+ .attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ });
+ this._getPanelForTab( this.active )
+ .show()
+ .attr({
+ "aria-hidden": "false"
+ });
+ }
+ },
+
+ _processTabs: function() {
+ var that = this,
+ prevTabs = this.tabs,
+ prevAnchors = this.anchors,
+ prevPanels = this.panels;
+
+ this.tablist = this._getList()
+ .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )
+ .attr( "role", "tablist" )
+
+ // Prevent users from focusing disabled tabs via click
+ .delegate( "> li", "mousedown" + this.eventNamespace, function( event ) {
+ if ( $( this ).is( ".ui-state-disabled" ) ) {
+ event.preventDefault();
+ }
+ })
+
+ // support: IE <9
+ // Preventing the default action in mousedown doesn't prevent IE
+ // from focusing the element, so if the anchor gets focused, blur.
+ // We don't have to worry about focusing the previously focused
+ // element since clicking on a non-focusable element should focus
+ // the body anyway.
+ .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() {
+ if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
+ this.blur();
+ }
+ });
+
+ this.tabs = this.tablist.find( "> li:has(a[href])" )
+ .addClass( "ui-state-default ui-corner-top" )
+ .attr({
+ role: "tab",
+ tabIndex: -1
+ });
+
+ this.anchors = this.tabs.map(function() {
+ return $( "a", this )[ 0 ];
+ })
+ .addClass( "ui-tabs-anchor" )
+ .attr({
+ role: "presentation",
+ tabIndex: -1
+ });
+
+ this.panels = $();
+
+ this.anchors.each(function( i, anchor ) {
+ var selector, panel, panelId,
+ anchorId = $( anchor ).uniqueId().attr( "id" ),
+ tab = $( anchor ).closest( "li" ),
+ originalAriaControls = tab.attr( "aria-controls" );
+
+ // inline tab
+ if ( that._isLocal( anchor ) ) {
+ selector = anchor.hash;
+ panelId = selector.substring( 1 );
+ panel = that.element.find( that._sanitizeSelector( selector ) );
+ // remote tab
+ } else {
+ // If the tab doesn't already have aria-controls,
+ // generate an id by using a throw-away element
+ panelId = tab.attr( "aria-controls" ) || $( {} ).uniqueId()[ 0 ].id;
+ selector = "#" + panelId;
+ panel = that.element.find( selector );
+ if ( !panel.length ) {
+ panel = that._createPanel( panelId );
+ panel.insertAfter( that.panels[ i - 1 ] || that.tablist );
+ }
+ panel.attr( "aria-live", "polite" );
+ }
+
+ if ( panel.length) {
+ that.panels = that.panels.add( panel );
+ }
+ if ( originalAriaControls ) {
+ tab.data( "ui-tabs-aria-controls", originalAriaControls );
+ }
+ tab.attr({
+ "aria-controls": panelId,
+ "aria-labelledby": anchorId
+ });
+ panel.attr( "aria-labelledby", anchorId );
+ });
+
+ this.panels
+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
+ .attr( "role", "tabpanel" );
+
+ // Avoid memory leaks (#10056)
+ if ( prevTabs ) {
+ this._off( prevTabs.not( this.tabs ) );
+ this._off( prevAnchors.not( this.anchors ) );
+ this._off( prevPanels.not( this.panels ) );
+ }
+ },
+
+ // allow overriding how to find the list for rare usage scenarios (#7715)
+ _getList: function() {
+ return this.tablist || this.element.find( "ol,ul" ).eq( 0 );
+ },
+
+ _createPanel: function( id ) {
+ return $( "<div>" )
+ .attr( "id", id )
+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
+ .data( "ui-tabs-destroy", true );
+ },
+
+ _setupDisabled: function( disabled ) {
+ if ( $.isArray( disabled ) ) {
+ if ( !disabled.length ) {
+ disabled = false;
+ } else if ( disabled.length === this.anchors.length ) {
+ disabled = true;
+ }
+ }
+
+ // disable tabs
+ for ( var i = 0, li; ( li = this.tabs[ i ] ); i++ ) {
+ if ( disabled === true || $.inArray( i, disabled ) !== -1 ) {
+ $( li )
+ .addClass( "ui-state-disabled" )
+ .attr( "aria-disabled", "true" );
+ } else {
+ $( li )
+ .removeClass( "ui-state-disabled" )
+ .removeAttr( "aria-disabled" );
+ }
+ }
+
+ this.options.disabled = disabled;
+ },
+
+ _setupEvents: function( event ) {
+ var events = {};
+ if ( event ) {
+ $.each( event.split(" "), function( index, eventName ) {
+ events[ eventName ] = "_eventHandler";
+ });
+ }
+
+ this._off( this.anchors.add( this.tabs ).add( this.panels ) );
+ // Always prevent the default action, even when disabled
+ this._on( true, this.anchors, {
+ click: function( event ) {
+ event.preventDefault();
+ }
+ });
+ this._on( this.anchors, events );
+ this._on( this.tabs, { keydown: "_tabKeydown" } );
+ this._on( this.panels, { keydown: "_panelKeydown" } );
+
+ this._focusable( this.tabs );
+ this._hoverable( this.tabs );
+ },
+
+ _setupHeightStyle: function( heightStyle ) {
+ var maxHeight,
+ parent = this.element.parent();
+
+ if ( heightStyle === "fill" ) {
+ maxHeight = parent.height();
+ maxHeight -= this.element.outerHeight() - this.element.height();
+
+ this.element.siblings( ":visible" ).each(function() {
+ var elem = $( this ),
+ position = elem.css( "position" );
+
+ if ( position === "absolute" || position === "fixed" ) {
+ return;
+ }
+ maxHeight -= elem.outerHeight( true );
+ });
+
+ this.element.children().not( this.panels ).each(function() {
+ maxHeight -= $( this ).outerHeight( true );
+ });
+
+ this.panels.each(function() {
+ $( this ).height( Math.max( 0, maxHeight -
+ $( this ).innerHeight() + $( this ).height() ) );
+ })
+ .css( "overflow", "auto" );
+ } else if ( heightStyle === "auto" ) {
+ maxHeight = 0;
+ this.panels.each(function() {
+ maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
+ }).height( maxHeight );
+ }
+ },
+
+ _eventHandler: function( event ) {
+ var options = this.options,
+ active = this.active,
+ anchor = $( event.currentTarget ),
+ tab = anchor.closest( "li" ),
+ clickedIsActive = tab[ 0 ] === active[ 0 ],
+ collapsing = clickedIsActive && options.collapsible,
+ toShow = collapsing ? $() : this._getPanelForTab( tab ),
+ toHide = !active.length ? $() : this._getPanelForTab( active ),
+ eventData = {
+ oldTab: active,
+ oldPanel: toHide,
+ newTab: collapsing ? $() : tab,
+ newPanel: toShow
+ };
+
+ event.preventDefault();
+
+ if ( tab.hasClass( "ui-state-disabled" ) ||
+ // tab is already loading
+ tab.hasClass( "ui-tabs-loading" ) ||
+ // can't switch durning an animation
+ this.running ||
+ // click on active header, but not collapsible
+ ( clickedIsActive && !options.collapsible ) ||
+ // allow canceling activation
+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
+ return;
+ }
+
+ options.active = collapsing ? false : this.tabs.index( tab );
+
+ this.active = clickedIsActive ? $() : tab;
+ if ( this.xhr ) {
+ this.xhr.abort();
+ }
+
+ if ( !toHide.length && !toShow.length ) {
+ $.error( "jQuery UI Tabs: Mismatching fragment identifier." );
+ }
+
+ if ( toShow.length ) {
+ this.load( this.tabs.index( tab ), event );
+ }
+ this._toggle( event, eventData );
+ },
+
+ // handles show/hide for selecting tabs
+ _toggle: function( event, eventData ) {
+ var that = this,
+ toShow = eventData.newPanel,
+ toHide = eventData.oldPanel;
+
+ this.running = true;
+
+ function complete() {
+ that.running = false;
+ that._trigger( "activate", event, eventData );
+ }
+
+ function show() {
+ eventData.newTab.closest( "li" ).addClass( "ui-tabs-active ui-state-active" );
+
+ if ( toShow.length && that.options.show ) {
+ that._show( toShow, that.options.show, complete );
+ } else {
+ toShow.show();
+ complete();
+ }
+ }
+
+ // start out by hiding, then showing, then completing
+ if ( toHide.length && this.options.hide ) {
+ this._hide( toHide, this.options.hide, function() {
+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );
+ show();
+ });
+ } else {
+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );
+ toHide.hide();
+ show();
+ }
+
+ toHide.attr( "aria-hidden", "true" );
+ eventData.oldTab.attr({
+ "aria-selected": "false",
+ "aria-expanded": "false"
+ });
+ // If we're switching tabs, remove the old tab from the tab order.
+ // If we're opening from collapsed state, remove the previous tab from the tab order.
+ // If we're collapsing, then keep the collapsing tab in the tab order.
+ if ( toShow.length && toHide.length ) {
+ eventData.oldTab.attr( "tabIndex", -1 );
+ } else if ( toShow.length ) {
+ this.tabs.filter(function() {
+ return $( this ).attr( "tabIndex" ) === 0;
+ })
+ .attr( "tabIndex", -1 );
+ }
+
+ toShow.attr( "aria-hidden", "false" );
+ eventData.newTab.attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ });
+ },
+
+ _activate: function( index ) {
+ var anchor,
+ active = this._findActive( index );
+
+ // trying to activate the already active panel
+ if ( active[ 0 ] === this.active[ 0 ] ) {
+ return;
+ }
+
+ // trying to collapse, simulate a click on the current active header
+ if ( !active.length ) {
+ active = this.active;
+ }
+
+ anchor = active.find( ".ui-tabs-anchor" )[ 0 ];
+ this._eventHandler({
+ target: anchor,
+ currentTarget: anchor,
+ preventDefault: $.noop
+ });
+ },
+
+ _findActive: function( index ) {
+ return index === false ? $() : this.tabs.eq( index );
+ },
+
+ _getIndex: function( index ) {
+ // meta-function to give users option to provide a href string instead of a numerical index.
+ if ( typeof index === "string" ) {
+ index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
+ }
+
+ return index;
+ },
+
+ _destroy: function() {
+ if ( this.xhr ) {
+ this.xhr.abort();
+ }
+
+ this.element.removeClass( "ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible" );
+
+ this.tablist
+ .removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )
+ .removeAttr( "role" );
+
+ this.anchors
+ .removeClass( "ui-tabs-anchor" )
+ .removeAttr( "role" )
+ .removeAttr( "tabIndex" )
+ .removeUniqueId();
+
+ this.tablist.unbind( this.eventNamespace );
+
+ this.tabs.add( this.panels ).each(function() {
+ if ( $.data( this, "ui-tabs-destroy" ) ) {
+ $( this ).remove();
+ } else {
+ $( this )
+ .removeClass( "ui-state-default ui-state-active ui-state-disabled " +
+ "ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel" )
+ .removeAttr( "tabIndex" )
+ .removeAttr( "aria-live" )
+ .removeAttr( "aria-busy" )
+ .removeAttr( "aria-selected" )
+ .removeAttr( "aria-labelledby" )
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-expanded" )
+ .removeAttr( "role" );
+ }
+ });
+
+ this.tabs.each(function() {
+ var li = $( this ),
+ prev = li.data( "ui-tabs-aria-controls" );
+ if ( prev ) {
+ li
+ .attr( "aria-controls", prev )
+ .removeData( "ui-tabs-aria-controls" );
+ } else {
+ li.removeAttr( "aria-controls" );
+ }
+ });
+
+ this.panels.show();
+
+ if ( this.options.heightStyle !== "content" ) {
+ this.panels.css( "height", "" );
+ }
+ },
+
+ enable: function( index ) {
+ var disabled = this.options.disabled;
+ if ( disabled === false ) {
+ return;
+ }
+
+ if ( index === undefined ) {
+ disabled = false;
+ } else {
+ index = this._getIndex( index );
+ if ( $.isArray( disabled ) ) {
+ disabled = $.map( disabled, function( num ) {
+ return num !== index ? num : null;
+ });
+ } else {
+ disabled = $.map( this.tabs, function( li, num ) {
+ return num !== index ? num : null;
+ });
+ }
+ }
+ this._setupDisabled( disabled );
+ },
+
+ disable: function( index ) {
+ var disabled = this.options.disabled;
+ if ( disabled === true ) {
+ return;
+ }
+
+ if ( index === undefined ) {
+ disabled = true;
+ } else {
+ index = this._getIndex( index );
+ if ( $.inArray( index, disabled ) !== -1 ) {
+ return;
+ }
+ if ( $.isArray( disabled ) ) {
+ disabled = $.merge( [ index ], disabled ).sort();
+ } else {
+ disabled = [ index ];
+ }
+ }
+ this._setupDisabled( disabled );
+ },
+
+ load: function( index, event ) {
+ index = this._getIndex( index );
+ var that = this,
+ tab = this.tabs.eq( index ),
+ anchor = tab.find( ".ui-tabs-anchor" ),
+ panel = this._getPanelForTab( tab ),
+ eventData = {
+ tab: tab,
+ panel: panel
+ },
+ complete = function( jqXHR, status ) {
+ if ( status === "abort" ) {
+ that.panels.stop( false, true );
+ }
+
+ tab.removeClass( "ui-tabs-loading" );
+ panel.removeAttr( "aria-busy" );
+
+ if ( jqXHR === that.xhr ) {
+ delete that.xhr;
+ }
+ };
+
+ // not remote
+ if ( this._isLocal( anchor[ 0 ] ) ) {
+ return;
+ }
+
+ this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );
+
+ // support: jQuery <1.8
+ // jQuery <1.8 returns false if the request is canceled in beforeSend,
+ // but as of 1.8, $.ajax() always returns a jqXHR object.
+ if ( this.xhr && this.xhr.statusText !== "canceled" ) {
+ tab.addClass( "ui-tabs-loading" );
+ panel.attr( "aria-busy", "true" );
+
+ this.xhr
+ .done(function( response, status, jqXHR ) {
+ // support: jQuery <1.8
+ // http://bugs.jquery.com/ticket/11778
+ setTimeout(function() {
+ panel.html( response );
+ that._trigger( "load", event, eventData );
+
+ complete( jqXHR, status );
+ }, 1 );
+ })
+ .fail(function( jqXHR, status ) {
+ // support: jQuery <1.8
+ // http://bugs.jquery.com/ticket/11778
+ setTimeout(function() {
+ complete( jqXHR, status );
+ }, 1 );
+ });
+ }
+ },
+
+ _ajaxSettings: function( anchor, event, eventData ) {
+ var that = this;
+ return {
+ url: anchor.attr( "href" ),
+ beforeSend: function( jqXHR, settings ) {
+ return that._trigger( "beforeLoad", event,
+ $.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) );
+ }
+ };
+ },
+
+ _getPanelForTab: function( tab ) {
+ var id = $( tab ).attr( "aria-controls" );
+ return this.element.find( this._sanitizeSelector( "#" + id ) );
+ }
+});
+
+
+/*!
+ * jQuery UI Tooltip 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/tooltip/
+ */
+
+
+var tooltip = $.widget( "ui.tooltip", {
+ version: "1.11.4",
+ options: {
+ content: function() {
+ // support: IE<9, Opera in jQuery <1.7
+ // .text() can't accept undefined, so coerce to a string
+ var title = $( this ).attr( "title" ) || "";
+ // Escape title, since we're going from an attribute to raw HTML
+ return $( "<a>" ).text( title ).html();
+ },
+ hide: true,
+ // Disabled elements have inconsistent behavior across browsers (#8661)
+ items: "[title]:not([disabled])",
+ position: {
+ my: "left top+15",
+ at: "left bottom",
+ collision: "flipfit flip"
+ },
+ show: true,
+ tooltipClass: null,
+ track: false,
+
+ // callbacks
+ close: null,
+ open: null
+ },
+
+ _addDescribedBy: function( elem, id ) {
+ var describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ );
+ describedby.push( id );
+ elem
+ .data( "ui-tooltip-id", id )
+ .attr( "aria-describedby", $.trim( describedby.join( " " ) ) );
+ },
+
+ _removeDescribedBy: function( elem ) {
+ var id = elem.data( "ui-tooltip-id" ),
+ describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ),
+ index = $.inArray( id, describedby );
+
+ if ( index !== -1 ) {
+ describedby.splice( index, 1 );
+ }
+
+ elem.removeData( "ui-tooltip-id" );
+ describedby = $.trim( describedby.join( " " ) );
+ if ( describedby ) {
+ elem.attr( "aria-describedby", describedby );
+ } else {
+ elem.removeAttr( "aria-describedby" );
+ }
+ },
+
+ _create: function() {
+ this._on({
+ mouseover: "open",
+ focusin: "open"
+ });
+
+ // IDs of generated tooltips, needed for destroy
+ this.tooltips = {};
+
+ // IDs of parent tooltips where we removed the title attribute
+ this.parents = {};
+
+ if ( this.options.disabled ) {
+ this._disable();
+ }
+
+ // Append the aria-live region so tooltips announce correctly
+ this.liveRegion = $( "<div>" )
+ .attr({
+ role: "log",
+ "aria-live": "assertive",
+ "aria-relevant": "additions"
+ })
+ .addClass( "ui-helper-hidden-accessible" )
+ .appendTo( this.document[ 0 ].body );
+ },
+
+ _setOption: function( key, value ) {
+ var that = this;
+
+ if ( key === "disabled" ) {
+ this[ value ? "_disable" : "_enable" ]();
+ this.options[ key ] = value;
+ // disable element style changes
+ return;
+ }
+
+ this._super( key, value );
+
+ if ( key === "content" ) {
+ $.each( this.tooltips, function( id, tooltipData ) {
+ that._updateContent( tooltipData.element );
+ });
+ }
+ },
+
+ _disable: function() {
+ var that = this;
+
+ // close open tooltips
+ $.each( this.tooltips, function( id, tooltipData ) {
+ var event = $.Event( "blur" );
+ event.target = event.currentTarget = tooltipData.element[ 0 ];
+ that.close( event, true );
+ });
+
+ // remove title attributes to prevent native tooltips
+ this.element.find( this.options.items ).addBack().each(function() {
+ var element = $( this );
+ if ( element.is( "[title]" ) ) {
+ element
+ .data( "ui-tooltip-title", element.attr( "title" ) )
+ .removeAttr( "title" );
+ }
+ });
+ },
+
+ _enable: function() {
+ // restore title attributes
+ this.element.find( this.options.items ).addBack().each(function() {
+ var element = $( this );
+ if ( element.data( "ui-tooltip-title" ) ) {
+ element.attr( "title", element.data( "ui-tooltip-title" ) );
+ }
+ });
+ },
+
+ open: function( event ) {
+ var that = this,
+ target = $( event ? event.target : this.element )
+ // we need closest here due to mouseover bubbling,
+ // but always pointing at the same event target
+ .closest( this.options.items );
+
+ // No element to show a tooltip for or the tooltip is already open
+ if ( !target.length || target.data( "ui-tooltip-id" ) ) {
+ return;
+ }
+
+ if ( target.attr( "title" ) ) {
+ target.data( "ui-tooltip-title", target.attr( "title" ) );
+ }
+
+ target.data( "ui-tooltip-open", true );
+
+ // kill parent tooltips, custom or native, for hover
+ if ( event && event.type === "mouseover" ) {
+ target.parents().each(function() {
+ var parent = $( this ),
+ blurEvent;
+ if ( parent.data( "ui-tooltip-open" ) ) {
+ blurEvent = $.Event( "blur" );
+ blurEvent.target = blurEvent.currentTarget = this;
+ that.close( blurEvent, true );
+ }
+ if ( parent.attr( "title" ) ) {
+ parent.uniqueId();
+ that.parents[ this.id ] = {
+ element: this,
+ title: parent.attr( "title" )
+ };
+ parent.attr( "title", "" );
+ }
+ });
+ }
+
+ this._registerCloseHandlers( event, target );
+ this._updateContent( target, event );
+ },
+
+ _updateContent: function( target, event ) {
+ var content,
+ contentOption = this.options.content,
+ that = this,
+ eventType = event ? event.type : null;
+
+ if ( typeof contentOption === "string" ) {
+ return this._open( event, target, contentOption );
+ }
+
+ content = contentOption.call( target[0], function( response ) {
+
+ // IE may instantly serve a cached response for ajax requests
+ // delay this call to _open so the other call to _open runs first
+ that._delay(function() {
+
+ // Ignore async response if tooltip was closed already
+ if ( !target.data( "ui-tooltip-open" ) ) {
+ return;
+ }
+
+ // jQuery creates a special event for focusin when it doesn't
+ // exist natively. To improve performance, the native event
+ // object is reused and the type is changed. Therefore, we can't
+ // rely on the type being correct after the event finished
+ // bubbling, so we set it back to the previous value. (#8740)
+ if ( event ) {
+ event.type = eventType;
+ }
+ this._open( event, target, response );
+ });
+ });
+ if ( content ) {
+ this._open( event, target, content );
+ }
+ },
+
+ _open: function( event, target, content ) {
+ var tooltipData, tooltip, delayedShow, a11yContent,
+ positionOption = $.extend( {}, this.options.position );
+
+ if ( !content ) {
+ return;
+ }
+
+ // Content can be updated multiple times. If the tooltip already
+ // exists, then just update the content and bail.
+ tooltipData = this._find( target );
+ if ( tooltipData ) {
+ tooltipData.tooltip.find( ".ui-tooltip-content" ).html( content );
+ return;
+ }
+
+ // if we have a title, clear it to prevent the native tooltip
+ // we have to check first to avoid defining a title if none exists
+ // (we don't want to cause an element to start matching [title])
+ //
+ // We use removeAttr only for key events, to allow IE to export the correct
+ // accessible attributes. For mouse events, set to empty string to avoid
+ // native tooltip showing up (happens only when removing inside mouseover).
+ if ( target.is( "[title]" ) ) {
+ if ( event && event.type === "mouseover" ) {
+ target.attr( "title", "" );
+ } else {
+ target.removeAttr( "title" );
+ }
+ }
+
+ tooltipData = this._tooltip( target );
+ tooltip = tooltipData.tooltip;
+ this._addDescribedBy( target, tooltip.attr( "id" ) );
+ tooltip.find( ".ui-tooltip-content" ).html( content );
+
+ // Support: Voiceover on OS X, JAWS on IE <= 9
+ // JAWS announces deletions even when aria-relevant="additions"
+ // Voiceover will sometimes re-read the entire log region's contents from the beginning
+ this.liveRegion.children().hide();
+ if ( content.clone ) {
+ a11yContent = content.clone();
+ a11yContent.removeAttr( "id" ).find( "[id]" ).removeAttr( "id" );
+ } else {
+ a11yContent = content;
+ }
+ $( "<div>" ).html( a11yContent ).appendTo( this.liveRegion );
+
+ function position( event ) {
+ positionOption.of = event;
+ if ( tooltip.is( ":hidden" ) ) {
+ return;
+ }
+ tooltip.position( positionOption );
+ }
+ if ( this.options.track && event && /^mouse/.test( event.type ) ) {
+ this._on( this.document, {
+ mousemove: position
+ });
+ // trigger once to override element-relative positioning
+ position( event );
+ } else {
+ tooltip.position( $.extend({
+ of: target
+ }, this.options.position ) );
+ }
+
+ tooltip.hide();
+
+ this._show( tooltip, this.options.show );
+ // Handle tracking tooltips that are shown with a delay (#8644). As soon
+ // as the tooltip is visible, position the tooltip using the most recent
+ // event.
+ if ( this.options.show && this.options.show.delay ) {
+ delayedShow = this.delayedShow = setInterval(function() {
+ if ( tooltip.is( ":visible" ) ) {
+ position( positionOption.of );
+ clearInterval( delayedShow );
+ }
+ }, $.fx.interval );
+ }
+
+ this._trigger( "open", event, { tooltip: tooltip } );
+ },
+
+ _registerCloseHandlers: function( event, target ) {
+ var events = {
+ keyup: function( event ) {
+ if ( event.keyCode === $.ui.keyCode.ESCAPE ) {
+ var fakeEvent = $.Event(event);
+ fakeEvent.currentTarget = target[0];
+ this.close( fakeEvent, true );
+ }
+ }
+ };
+
+ // Only bind remove handler for delegated targets. Non-delegated
+ // tooltips will handle this in destroy.
+ if ( target[ 0 ] !== this.element[ 0 ] ) {
+ events.remove = function() {
+ this._removeTooltip( this._find( target ).tooltip );
+ };
+ }
+
+ if ( !event || event.type === "mouseover" ) {
+ events.mouseleave = "close";
+ }
+ if ( !event || event.type === "focusin" ) {
+ events.focusout = "close";
+ }
+ this._on( true, target, events );
+ },
+
+ close: function( event ) {
+ var tooltip,
+ that = this,
+ target = $( event ? event.currentTarget : this.element ),
+ tooltipData = this._find( target );
+
+ // The tooltip may already be closed
+ if ( !tooltipData ) {
+
+ // We set ui-tooltip-open immediately upon open (in open()), but only set the
+ // additional data once there's actually content to show (in _open()). So even if the
+ // tooltip doesn't have full data, we always remove ui-tooltip-open in case we're in
+ // the period between open() and _open().
+ target.removeData( "ui-tooltip-open" );
+ return;
+ }
+
+ tooltip = tooltipData.tooltip;
+
+ // disabling closes the tooltip, so we need to track when we're closing
+ // to avoid an infinite loop in case the tooltip becomes disabled on close
+ if ( tooltipData.closing ) {
+ return;
+ }
+
+ // Clear the interval for delayed tracking tooltips
+ clearInterval( this.delayedShow );
+
+ // only set title if we had one before (see comment in _open())
+ // If the title attribute has changed since open(), don't restore
+ if ( target.data( "ui-tooltip-title" ) && !target.attr( "title" ) ) {
+ target.attr( "title", target.data( "ui-tooltip-title" ) );
+ }
+
+ this._removeDescribedBy( target );
+
+ tooltipData.hiding = true;
+ tooltip.stop( true );
+ this._hide( tooltip, this.options.hide, function() {
+ that._removeTooltip( $( this ) );
+ });
+
+ target.removeData( "ui-tooltip-open" );
+ this._off( target, "mouseleave focusout keyup" );
+
+ // Remove 'remove' binding only on delegated targets
+ if ( target[ 0 ] !== this.element[ 0 ] ) {
+ this._off( target, "remove" );
+ }
+ this._off( this.document, "mousemove" );
+
+ if ( event && event.type === "mouseleave" ) {
+ $.each( this.parents, function( id, parent ) {
+ $( parent.element ).attr( "title", parent.title );
+ delete that.parents[ id ];
+ });
+ }
+
+ tooltipData.closing = true;
+ this._trigger( "close", event, { tooltip: tooltip } );
+ if ( !tooltipData.hiding ) {
+ tooltipData.closing = false;
+ }
+ },
+
+ _tooltip: function( element ) {
+ var tooltip = $( "<div>" )
+ .attr( "role", "tooltip" )
+ .addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " +
+ ( this.options.tooltipClass || "" ) ),
+ id = tooltip.uniqueId().attr( "id" );
+
+ $( "<div>" )
+ .addClass( "ui-tooltip-content" )
+ .appendTo( tooltip );
+
+ tooltip.appendTo( this.document[0].body );
+
+ return this.tooltips[ id ] = {
+ element: element,
+ tooltip: tooltip
+ };
+ },
+
+ _find: function( target ) {
+ var id = target.data( "ui-tooltip-id" );
+ return id ? this.tooltips[ id ] : null;
+ },
+
+ _removeTooltip: function( tooltip ) {
+ tooltip.remove();
+ delete this.tooltips[ tooltip.attr( "id" ) ];
+ },
+
+ _destroy: function() {
+ var that = this;
+
+ // close open tooltips
+ $.each( this.tooltips, function( id, tooltipData ) {
+ // Delegate to close method to handle common cleanup
+ var event = $.Event( "blur" ),
+ element = tooltipData.element;
+ event.target = event.currentTarget = element[ 0 ];
+ that.close( event, true );
+
+ // Remove immediately; destroying an open tooltip doesn't use the
+ // hide animation
+ $( "#" + id ).remove();
+
+ // Restore the title
+ if ( element.data( "ui-tooltip-title" ) ) {
+ // If the title attribute has changed since open(), don't restore
+ if ( !element.attr( "title" ) ) {
+ element.attr( "title", element.data( "ui-tooltip-title" ) );
+ }
+ element.removeData( "ui-tooltip-title" );
+ }
+ });
+ this.liveRegion.remove();
+ }
+});
+
+
+/*!
+ * jQuery UI Effects 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/effects-core/
+ */
+
+
+var dataSpace = "ui-effects-",
+
+ // Create a local jQuery because jQuery Color relies on it and the
+ // global may not exist with AMD and a custom build (#10199)
+ jQuery = $;
+
+$.effects = {
+ effect: {}
+};
+
+/*!
+ * jQuery Color Animations v2.1.2
+ * https://github.com/jquery/jquery-color
+ *
+ * Copyright 2014 jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * Date: Wed Jan 16 08:47:09 2013 -0600
+ */
+(function( jQuery, undefined ) {
+
+ var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
+
+ // plusequals test for += 100 -= 100
+ rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
+ // a set of RE's that can match strings and generate color tuples.
+ stringParsers = [ {
+ re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
+ parse: function( execResult ) {
+ return [
+ execResult[ 1 ],
+ execResult[ 2 ],
+ execResult[ 3 ],
+ execResult[ 4 ]
+ ];
+ }
+ }, {
+ re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
+ parse: function( execResult ) {
+ return [
+ execResult[ 1 ] * 2.55,
+ execResult[ 2 ] * 2.55,
+ execResult[ 3 ] * 2.55,
+ execResult[ 4 ]
+ ];
+ }
+ }, {
+ // this regex ignores A-F because it's compared against an already lowercased string
+ re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
+ parse: function( execResult ) {
+ return [
+ parseInt( execResult[ 1 ], 16 ),
+ parseInt( execResult[ 2 ], 16 ),
+ parseInt( execResult[ 3 ], 16 )
+ ];
+ }
+ }, {
+ // this regex ignores A-F because it's compared against an already lowercased string
+ re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
+ parse: function( execResult ) {
+ return [
+ parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
+ parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
+ parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
+ ];
+ }
+ }, {
+ re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
+ space: "hsla",
+ parse: function( execResult ) {
+ return [
+ execResult[ 1 ],
+ execResult[ 2 ] / 100,
+ execResult[ 3 ] / 100,
+ execResult[ 4 ]
+ ];
+ }
+ } ],
+
+ // jQuery.Color( )
+ color = jQuery.Color = function( color, green, blue, alpha ) {
+ return new jQuery.Color.fn.parse( color, green, blue, alpha );
+ },
+ spaces = {
+ rgba: {
+ props: {
+ red: {
+ idx: 0,
+ type: "byte"
+ },
+ green: {
+ idx: 1,
+ type: "byte"
+ },
+ blue: {
+ idx: 2,
+ type: "byte"
+ }
+ }
+ },
+
+ hsla: {
+ props: {
+ hue: {
+ idx: 0,
+ type: "degrees"
+ },
+ saturation: {
+ idx: 1,
+ type: "percent"
+ },
+ lightness: {
+ idx: 2,
+ type: "percent"
+ }
+ }
+ }
+ },
+ propTypes = {
+ "byte": {
+ floor: true,
+ max: 255
+ },
+ "percent": {
+ max: 1
+ },
+ "degrees": {
+ mod: 360,
+ floor: true
+ }
+ },
+ support = color.support = {},
+
+ // element for support tests
+ supportElem = jQuery( "<p>" )[ 0 ],
+
+ // colors = jQuery.Color.names
+ colors,
+
+ // local aliases of functions called often
+ each = jQuery.each;
+
+// determine rgba support immediately
+supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
+support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
+
+// define cache name and alpha properties
+// for rgba and hsla spaces
+each( spaces, function( spaceName, space ) {
+ space.cache = "_" + spaceName;
+ space.props.alpha = {
+ idx: 3,
+ type: "percent",
+ def: 1
+ };
+});
+
+function clamp( value, prop, allowEmpty ) {
+ var type = propTypes[ prop.type ] || {};
+
+ if ( value == null ) {
+ return (allowEmpty || !prop.def) ? null : prop.def;
+ }
+
+ // ~~ is an short way of doing floor for positive numbers
+ value = type.floor ? ~~value : parseFloat( value );
+
+ // IE will pass in empty strings as value for alpha,
+ // which will hit this case
+ if ( isNaN( value ) ) {
+ return prop.def;
+ }
+
+ if ( type.mod ) {
+ // we add mod before modding to make sure that negatives values
+ // get converted properly: -10 -> 350
+ return (value + type.mod) % type.mod;
+ }
+
+ // for now all property types without mod have min and max
+ return 0 > value ? 0 : type.max < value ? type.max : value;
+}
+
+function stringParse( string ) {
+ var inst = color(),
+ rgba = inst._rgba = [];
+
+ string = string.toLowerCase();
+
+ each( stringParsers, function( i, parser ) {
+ var parsed,
+ match = parser.re.exec( string ),
+ values = match && parser.parse( match ),
+ spaceName = parser.space || "rgba";
+
+ if ( values ) {
+ parsed = inst[ spaceName ]( values );
+
+ // if this was an rgba parse the assignment might happen twice
+ // oh well....
+ inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
+ rgba = inst._rgba = parsed._rgba;
+
+ // exit each( stringParsers ) here because we matched
+ return false;
+ }
+ });
+
+ // Found a stringParser that handled it
+ if ( rgba.length ) {
+
+ // if this came from a parsed string, force "transparent" when alpha is 0
+ // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
+ if ( rgba.join() === "0,0,0,0" ) {
+ jQuery.extend( rgba, colors.transparent );
+ }
+ return inst;
+ }
+
+ // named colors
+ return colors[ string ];
+}
+
+color.fn = jQuery.extend( color.prototype, {
+ parse: function( red, green, blue, alpha ) {
+ if ( red === undefined ) {
+ this._rgba = [ null, null, null, null ];
+ return this;
+ }
+ if ( red.jquery || red.nodeType ) {
+ red = jQuery( red ).css( green );
+ green = undefined;
+ }
+
+ var inst = this,
+ type = jQuery.type( red ),
+ rgba = this._rgba = [];
+
+ // more than 1 argument specified - assume ( red, green, blue, alpha )
+ if ( green !== undefined ) {
+ red = [ red, green, blue, alpha ];
+ type = "array";
+ }
+
+ if ( type === "string" ) {
+ return this.parse( stringParse( red ) || colors._default );
+ }
+
+ if ( type === "array" ) {
+ each( spaces.rgba.props, function( key, prop ) {
+ rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
+ });
+ return this;
+ }
+
+ if ( type === "object" ) {
+ if ( red instanceof color ) {
+ each( spaces, function( spaceName, space ) {
+ if ( red[ space.cache ] ) {
+ inst[ space.cache ] = red[ space.cache ].slice();
+ }
+ });
+ } else {
+ each( spaces, function( spaceName, space ) {
+ var cache = space.cache;
+ each( space.props, function( key, prop ) {
+
+ // if the cache doesn't exist, and we know how to convert
+ if ( !inst[ cache ] && space.to ) {
+
+ // if the value was null, we don't need to copy it
+ // if the key was alpha, we don't need to copy it either
+ if ( key === "alpha" || red[ key ] == null ) {
+ return;
+ }
+ inst[ cache ] = space.to( inst._rgba );
+ }
+
+ // this is the only case where we allow nulls for ALL properties.
+ // call clamp with alwaysAllowEmpty
+ inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
+ });
+
+ // everything defined but alpha?
+ if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
+ // use the default of 1
+ inst[ cache ][ 3 ] = 1;
+ if ( space.from ) {
+ inst._rgba = space.from( inst[ cache ] );
+ }
+ }
+ });
+ }
+ return this;
+ }
+ },
+ is: function( compare ) {
+ var is = color( compare ),
+ same = true,
+ inst = this;
+
+ each( spaces, function( _, space ) {
+ var localCache,
+ isCache = is[ space.cache ];
+ if (isCache) {
+ localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
+ each( space.props, function( _, prop ) {
+ if ( isCache[ prop.idx ] != null ) {
+ same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
+ return same;
+ }
+ });
+ }
+ return same;
+ });
+ return same;
+ },
+ _space: function() {
+ var used = [],
+ inst = this;
+ each( spaces, function( spaceName, space ) {
+ if ( inst[ space.cache ] ) {
+ used.push( spaceName );
+ }
+ });
+ return used.pop();
+ },
+ transition: function( other, distance ) {
+ var end = color( other ),
+ spaceName = end._space(),
+ space = spaces[ spaceName ],
+ startColor = this.alpha() === 0 ? color( "transparent" ) : this,
+ start = startColor[ space.cache ] || space.to( startColor._rgba ),
+ result = start.slice();
+
+ end = end[ space.cache ];
+ each( space.props, function( key, prop ) {
+ var index = prop.idx,
+ startValue = start[ index ],
+ endValue = end[ index ],
+ type = propTypes[ prop.type ] || {};
+
+ // if null, don't override start value
+ if ( endValue === null ) {
+ return;
+ }
+ // if null - use end
+ if ( startValue === null ) {
+ result[ index ] = endValue;
+ } else {
+ if ( type.mod ) {
+ if ( endValue - startValue > type.mod / 2 ) {
+ startValue += type.mod;
+ } else if ( startValue - endValue > type.mod / 2 ) {
+ startValue -= type.mod;
+ }
+ }
+ result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
+ }
+ });
+ return this[ spaceName ]( result );
+ },
+ blend: function( opaque ) {
+ // if we are already opaque - return ourself
+ if ( this._rgba[ 3 ] === 1 ) {
+ return this;
+ }
+
+ var rgb = this._rgba.slice(),
+ a = rgb.pop(),
+ blend = color( opaque )._rgba;
+
+ return color( jQuery.map( rgb, function( v, i ) {
+ return ( 1 - a ) * blend[ i ] + a * v;
+ }));
+ },
+ toRgbaString: function() {
+ var prefix = "rgba(",
+ rgba = jQuery.map( this._rgba, function( v, i ) {
+ return v == null ? ( i > 2 ? 1 : 0 ) : v;
+ });
+
+ if ( rgba[ 3 ] === 1 ) {
+ rgba.pop();
+ prefix = "rgb(";
+ }
+
+ return prefix + rgba.join() + ")";
+ },
+ toHslaString: function() {
+ var prefix = "hsla(",
+ hsla = jQuery.map( this.hsla(), function( v, i ) {
+ if ( v == null ) {
+ v = i > 2 ? 1 : 0;
+ }
+
+ // catch 1 and 2
+ if ( i && i < 3 ) {
+ v = Math.round( v * 100 ) + "%";
+ }
+ return v;
+ });
+
+ if ( hsla[ 3 ] === 1 ) {
+ hsla.pop();
+ prefix = "hsl(";
+ }
+ return prefix + hsla.join() + ")";
+ },
+ toHexString: function( includeAlpha ) {
+ var rgba = this._rgba.slice(),
+ alpha = rgba.pop();
+
+ if ( includeAlpha ) {
+ rgba.push( ~~( alpha * 255 ) );
+ }
+
+ return "#" + jQuery.map( rgba, function( v ) {
+
+ // default to 0 when nulls exist
+ v = ( v || 0 ).toString( 16 );
+ return v.length === 1 ? "0" + v : v;
+ }).join("");
+ },
+ toString: function() {
+ return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
+ }
+});
+color.fn.parse.prototype = color.fn;
+
+// hsla conversions adapted from:
+// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
+
+function hue2rgb( p, q, h ) {
+ h = ( h + 1 ) % 1;
+ if ( h * 6 < 1 ) {
+ return p + ( q - p ) * h * 6;
+ }
+ if ( h * 2 < 1) {
+ return q;
+ }
+ if ( h * 3 < 2 ) {
+ return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
+ }
+ return p;
+}
+
+spaces.hsla.to = function( rgba ) {
+ if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
+ return [ null, null, null, rgba[ 3 ] ];
+ }
+ var r = rgba[ 0 ] / 255,
+ g = rgba[ 1 ] / 255,
+ b = rgba[ 2 ] / 255,
+ a = rgba[ 3 ],
+ max = Math.max( r, g, b ),
+ min = Math.min( r, g, b ),
+ diff = max - min,
+ add = max + min,
+ l = add * 0.5,
+ h, s;
+
+ if ( min === max ) {
+ h = 0;
+ } else if ( r === max ) {
+ h = ( 60 * ( g - b ) / diff ) + 360;
+ } else if ( g === max ) {
+ h = ( 60 * ( b - r ) / diff ) + 120;
+ } else {
+ h = ( 60 * ( r - g ) / diff ) + 240;
+ }
+
+ // chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
+ // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
+ if ( diff === 0 ) {
+ s = 0;
+ } else if ( l <= 0.5 ) {
+ s = diff / add;
+ } else {
+ s = diff / ( 2 - add );
+ }
+ return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
+};
+
+spaces.hsla.from = function( hsla ) {
+ if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
+ return [ null, null, null, hsla[ 3 ] ];
+ }
+ var h = hsla[ 0 ] / 360,
+ s = hsla[ 1 ],
+ l = hsla[ 2 ],
+ a = hsla[ 3 ],
+ q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
+ p = 2 * l - q;
+
+ return [
+ Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
+ Math.round( hue2rgb( p, q, h ) * 255 ),
+ Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
+ a
+ ];
+};
+
+each( spaces, function( spaceName, space ) {
+ var props = space.props,
+ cache = space.cache,
+ to = space.to,
+ from = space.from;
+
+ // makes rgba() and hsla()
+ color.fn[ spaceName ] = function( value ) {
+
+ // generate a cache for this space if it doesn't exist
+ if ( to && !this[ cache ] ) {
+ this[ cache ] = to( this._rgba );
+ }
+ if ( value === undefined ) {
+ return this[ cache ].slice();
+ }
+
+ var ret,
+ type = jQuery.type( value ),
+ arr = ( type === "array" || type === "object" ) ? value : arguments,
+ local = this[ cache ].slice();
+
+ each( props, function( key, prop ) {
+ var val = arr[ type === "object" ? key : prop.idx ];
+ if ( val == null ) {
+ val = local[ prop.idx ];
+ }
+ local[ prop.idx ] = clamp( val, prop );
+ });
+
+ if ( from ) {
+ ret = color( from( local ) );
+ ret[ cache ] = local;
+ return ret;
+ } else {
+ return color( local );
+ }
+ };
+
+ // makes red() green() blue() alpha() hue() saturation() lightness()
+ each( props, function( key, prop ) {
+ // alpha is included in more than one space
+ if ( color.fn[ key ] ) {
+ return;
+ }
+ color.fn[ key ] = function( value ) {
+ var vtype = jQuery.type( value ),
+ fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
+ local = this[ fn ](),
+ cur = local[ prop.idx ],
+ match;
+
+ if ( vtype === "undefined" ) {
+ return cur;
+ }
+
+ if ( vtype === "function" ) {
+ value = value.call( this, cur );
+ vtype = jQuery.type( value );
+ }
+ if ( value == null && prop.empty ) {
+ return this;
+ }
+ if ( vtype === "string" ) {
+ match = rplusequals.exec( value );
+ if ( match ) {
+ value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
+ }
+ }
+ local[ prop.idx ] = value;
+ return this[ fn ]( local );
+ };
+ });
+});
+
+// add cssHook and .fx.step function for each named hook.
+// accept a space separated string of properties
+color.hook = function( hook ) {
+ var hooks = hook.split( " " );
+ each( hooks, function( i, hook ) {
+ jQuery.cssHooks[ hook ] = {
+ set: function( elem, value ) {
+ var parsed, curElem,
+ backgroundColor = "";
+
+ if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
+ value = color( parsed || value );
+ if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
+ curElem = hook === "backgroundColor" ? elem.parentNode : elem;
+ while (
+ (backgroundColor === "" || backgroundColor === "transparent") &&
+ curElem && curElem.style
+ ) {
+ try {
+ backgroundColor = jQuery.css( curElem, "backgroundColor" );
+ curElem = curElem.parentNode;
+ } catch ( e ) {
+ }
+ }
+
+ value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
+ backgroundColor :
+ "_default" );
+ }
+
+ value = value.toRgbaString();
+ }
+ try {
+ elem.style[ hook ] = value;
+ } catch ( e ) {
+ // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
+ }
+ }
+ };
+ jQuery.fx.step[ hook ] = function( fx ) {
+ if ( !fx.colorInit ) {
+ fx.start = color( fx.elem, hook );
+ fx.end = color( fx.end );
+ fx.colorInit = true;
+ }
+ jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
+ };
+ });
+
+};
+
+color.hook( stepHooks );
+
+jQuery.cssHooks.borderColor = {
+ expand: function( value ) {
+ var expanded = {};
+
+ each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
+ expanded[ "border" + part + "Color" ] = value;
+ });
+ return expanded;
+ }
+};
+
+// Basic color names only.
+// Usage of any of the other color names requires adding yourself or including
+// jquery.color.svg-names.js.
+colors = jQuery.Color.names = {
+ // 4.1. Basic color keywords
+ aqua: "#00ffff",
+ black: "#000000",
+ blue: "#0000ff",
+ fuchsia: "#ff00ff",
+ gray: "#808080",
+ green: "#008000",
+ lime: "#00ff00",
+ maroon: "#800000",
+ navy: "#000080",
+ olive: "#808000",
+ purple: "#800080",
+ red: "#ff0000",
+ silver: "#c0c0c0",
+ teal: "#008080",
+ white: "#ffffff",
+ yellow: "#ffff00",
+
+ // 4.2.3. "transparent" color keyword
+ transparent: [ null, null, null, 0 ],
+
+ _default: "#ffffff"
+};
+
+})( jQuery );
+
+/******************************************************************************/
+/****************************** CLASS ANIMATIONS ******************************/
+/******************************************************************************/
+(function() {
+
+var classAnimationActions = [ "add", "remove", "toggle" ],
+ shorthandStyles = {
+ border: 1,
+ borderBottom: 1,
+ borderColor: 1,
+ borderLeft: 1,
+ borderRight: 1,
+ borderTop: 1,
+ borderWidth: 1,
+ margin: 1,
+ padding: 1
+ };
+
+$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
+ $.fx.step[ prop ] = function( fx ) {
+ if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
+ jQuery.style( fx.elem, prop, fx.end );
+ fx.setAttr = true;
+ }
+ };
+});
+
+function getElementStyles( elem ) {
+ var key, len,
+ style = elem.ownerDocument.defaultView ?
+ elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
+ elem.currentStyle,
+ styles = {};
+
+ if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
+ len = style.length;
+ while ( len-- ) {
+ key = style[ len ];
+ if ( typeof style[ key ] === "string" ) {
+ styles[ $.camelCase( key ) ] = style[ key ];
+ }
+ }
+ // support: Opera, IE <9
+ } else {
+ for ( key in style ) {
+ if ( typeof style[ key ] === "string" ) {
+ styles[ key ] = style[ key ];
+ }
+ }
+ }
+
+ return styles;
+}
+
+function styleDifference( oldStyle, newStyle ) {
+ var diff = {},
+ name, value;
+
+ for ( name in newStyle ) {
+ value = newStyle[ name ];
+ if ( oldStyle[ name ] !== value ) {
+ if ( !shorthandStyles[ name ] ) {
+ if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
+ diff[ name ] = value;
+ }
+ }
+ }
+ }
+
+ return diff;
+}
+
+// support: jQuery <1.8
+if ( !$.fn.addBack ) {
+ $.fn.addBack = function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter( selector )
+ );
+ };
+}
+
+$.effects.animateClass = function( value, duration, easing, callback ) {
+ var o = $.speed( duration, easing, callback );
+
+ return this.queue( function() {
+ var animated = $( this ),
+ baseClass = animated.attr( "class" ) || "",
+ applyClassChange,
+ allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
+
+ // map the animated objects to store the original styles.
+ allAnimations = allAnimations.map(function() {
+ var el = $( this );
+ return {
+ el: el,
+ start: getElementStyles( this )
+ };
+ });
+
+ // apply class change
+ applyClassChange = function() {
+ $.each( classAnimationActions, function(i, action) {
+ if ( value[ action ] ) {
+ animated[ action + "Class" ]( value[ action ] );
+ }
+ });
+ };
+ applyClassChange();
+
+ // map all animated objects again - calculate new styles and diff
+ allAnimations = allAnimations.map(function() {
+ this.end = getElementStyles( this.el[ 0 ] );
+ this.diff = styleDifference( this.start, this.end );
+ return this;
+ });
+
+ // apply original class
+ animated.attr( "class", baseClass );
+
+ // map all animated objects again - this time collecting a promise
+ allAnimations = allAnimations.map(function() {
+ var styleInfo = this,
+ dfd = $.Deferred(),
+ opts = $.extend({}, o, {
+ queue: false,
+ complete: function() {
+ dfd.resolve( styleInfo );
+ }
+ });
+
+ this.el.animate( this.diff, opts );
+ return dfd.promise();
+ });
+
+ // once all animations have completed:
+ $.when.apply( $, allAnimations.get() ).done(function() {
+
+ // set the final class
+ applyClassChange();
+
+ // for each animated element,
+ // clear all css properties that were animated
+ $.each( arguments, function() {
+ var el = this.el;
+ $.each( this.diff, function(key) {
+ el.css( key, "" );
+ });
+ });
+
+ // this is guarnteed to be there if you use jQuery.speed()
+ // it also handles dequeuing the next anim...
+ o.complete.call( animated[ 0 ] );
+ });
+ });
+};
+
+$.fn.extend({
+ addClass: (function( orig ) {
+ return function( classNames, speed, easing, callback ) {
+ return speed ?
+ $.effects.animateClass.call( this,
+ { add: classNames }, speed, easing, callback ) :
+ orig.apply( this, arguments );
+ };
+ })( $.fn.addClass ),
+
+ removeClass: (function( orig ) {
+ return function( classNames, speed, easing, callback ) {
+ return arguments.length > 1 ?
+ $.effects.animateClass.call( this,
+ { remove: classNames }, speed, easing, callback ) :
+ orig.apply( this, arguments );
+ };
+ })( $.fn.removeClass ),
+
+ toggleClass: (function( orig ) {
+ return function( classNames, force, speed, easing, callback ) {
+ if ( typeof force === "boolean" || force === undefined ) {
+ if ( !speed ) {
+ // without speed parameter
+ return orig.apply( this, arguments );
+ } else {
+ return $.effects.animateClass.call( this,
+ (force ? { add: classNames } : { remove: classNames }),
+ speed, easing, callback );
+ }
+ } else {
+ // without force parameter
+ return $.effects.animateClass.call( this,
+ { toggle: classNames }, force, speed, easing );
+ }
+ };
+ })( $.fn.toggleClass ),
+
+ switchClass: function( remove, add, speed, easing, callback) {
+ return $.effects.animateClass.call( this, {
+ add: add,
+ remove: remove
+ }, speed, easing, callback );
+ }
+});
+
+})();
+
+/******************************************************************************/
+/*********************************** EFFECTS **********************************/
+/******************************************************************************/
+
+(function() {
+
+$.extend( $.effects, {
+ version: "1.11.4",
+
+ // Saves a set of properties in a data storage
+ save: function( element, set ) {
+ for ( var i = 0; i < set.length; i++ ) {
+ if ( set[ i ] !== null ) {
+ element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
+ }
+ }
+ },
+
+ // Restores a set of previously saved properties from a data storage
+ restore: function( element, set ) {
+ var val, i;
+ for ( i = 0; i < set.length; i++ ) {
+ if ( set[ i ] !== null ) {
+ val = element.data( dataSpace + set[ i ] );
+ // support: jQuery 1.6.2
+ // http://bugs.jquery.com/ticket/9917
+ // jQuery 1.6.2 incorrectly returns undefined for any falsy value.
+ // We can't differentiate between "" and 0 here, so we just assume
+ // empty string since it's likely to be a more common value...
+ if ( val === undefined ) {
+ val = "";
+ }
+ element.css( set[ i ], val );
+ }
+ }
+ },
+
+ setMode: function( el, mode ) {
+ if (mode === "toggle") {
+ mode = el.is( ":hidden" ) ? "show" : "hide";
+ }
+ return mode;
+ },
+
+ // Translates a [top,left] array into a baseline value
+ // this should be a little more flexible in the future to handle a string & hash
+ getBaseline: function( origin, original ) {
+ var y, x;
+ switch ( origin[ 0 ] ) {
+ case "top": y = 0; break;
+ case "middle": y = 0.5; break;
+ case "bottom": y = 1; break;
+ default: y = origin[ 0 ] / original.height;
+ }
+ switch ( origin[ 1 ] ) {
+ case "left": x = 0; break;
+ case "center": x = 0.5; break;
+ case "right": x = 1; break;
+ default: x = origin[ 1 ] / original.width;
+ }
+ return {
+ x: x,
+ y: y
+ };
+ },
+
+ // Wraps the element around a wrapper that copies position properties
+ createWrapper: function( element ) {
+
+ // if the element is already wrapped, return it
+ if ( element.parent().is( ".ui-effects-wrapper" )) {
+ return element.parent();
+ }
+
+ // wrap the element
+ var props = {
+ width: element.outerWidth(true),
+ height: element.outerHeight(true),
+ "float": element.css( "float" )
+ },
+ wrapper = $( "<div></div>" )
+ .addClass( "ui-effects-wrapper" )
+ .css({
+ fontSize: "100%",
+ background: "transparent",
+ border: "none",
+ margin: 0,
+ padding: 0
+ }),
+ // Store the size in case width/height are defined in % - Fixes #5245
+ size = {
+ width: element.width(),
+ height: element.height()
+ },
+ active = document.activeElement;
+
+ // support: Firefox
+ // Firefox incorrectly exposes anonymous content
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
+ try {
+ active.id;
+ } catch ( e ) {
+ active = document.body;
+ }
+
+ element.wrap( wrapper );
+
+ // Fixes #7595 - Elements lose focus when wrapped.
+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
+ $( active ).focus();
+ }
+
+ wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element
+
+ // transfer positioning properties to the wrapper
+ if ( element.css( "position" ) === "static" ) {
+ wrapper.css({ position: "relative" });
+ element.css({ position: "relative" });
+ } else {
+ $.extend( props, {
+ position: element.css( "position" ),
+ zIndex: element.css( "z-index" )
+ });
+ $.each([ "top", "left", "bottom", "right" ], function(i, pos) {
+ props[ pos ] = element.css( pos );
+ if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {
+ props[ pos ] = "auto";
+ }
+ });
+ element.css({
+ position: "relative",
+ top: 0,
+ left: 0,
+ right: "auto",
+ bottom: "auto"
+ });
+ }
+ element.css(size);
+
+ return wrapper.css( props ).show();
+ },
+
+ removeWrapper: function( element ) {
+ var active = document.activeElement;
+
+ if ( element.parent().is( ".ui-effects-wrapper" ) ) {
+ element.parent().replaceWith( element );
+
+ // Fixes #7595 - Elements lose focus when wrapped.
+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
+ $( active ).focus();
+ }
+ }
+
+ return element;
+ },
+
+ setTransition: function( element, list, factor, value ) {
+ value = value || {};
+ $.each( list, function( i, x ) {
+ var unit = element.cssUnit( x );
+ if ( unit[ 0 ] > 0 ) {
+ value[ x ] = unit[ 0 ] * factor + unit[ 1 ];
+ }
+ });
+ return value;
+ }
+});
+
+// return an effect options object for the given parameters:
+function _normalizeArguments( effect, options, speed, callback ) {
+
+ // allow passing all options as the first parameter
+ if ( $.isPlainObject( effect ) ) {
+ options = effect;
+ effect = effect.effect;
+ }
+
+ // convert to an object
+ effect = { effect: effect };
+
+ // catch (effect, null, ...)
+ if ( options == null ) {
+ options = {};
+ }
+
+ // catch (effect, callback)
+ if ( $.isFunction( options ) ) {
+ callback = options;
+ speed = null;
+ options = {};
+ }
+
+ // catch (effect, speed, ?)
+ if ( typeof options === "number" || $.fx.speeds[ options ] ) {
+ callback = speed;
+ speed = options;
+ options = {};
+ }
+
+ // catch (effect, options, callback)
+ if ( $.isFunction( speed ) ) {
+ callback = speed;
+ speed = null;
+ }
+
+ // add options to effect
+ if ( options ) {
+ $.extend( effect, options );
+ }
+
+ speed = speed || options.duration;
+ effect.duration = $.fx.off ? 0 :
+ typeof speed === "number" ? speed :
+ speed in $.fx.speeds ? $.fx.speeds[ speed ] :
+ $.fx.speeds._default;
+
+ effect.complete = callback || options.complete;
+
+ return effect;
+}
+
+function standardAnimationOption( option ) {
+ // Valid standard speeds (nothing, number, named speed)
+ if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
+ return true;
+ }
+
+ // Invalid strings - treat as "normal" speed
+ if ( typeof option === "string" && !$.effects.effect[ option ] ) {
+ return true;
+ }
+
+ // Complete callback
+ if ( $.isFunction( option ) ) {
+ return true;
+ }
+
+ // Options hash (but not naming an effect)
+ if ( typeof option === "object" && !option.effect ) {
+ return true;
+ }
+
+ // Didn't match any standard API
+ return false;
+}
+
+$.fn.extend({
+ effect: function( /* effect, options, speed, callback */ ) {
+ var args = _normalizeArguments.apply( this, arguments ),
+ mode = args.mode,
+ queue = args.queue,
+ effectMethod = $.effects.effect[ args.effect ];
+
+ if ( $.fx.off || !effectMethod ) {
+ // delegate to the original method (e.g., .show()) if possible
+ if ( mode ) {
+ return this[ mode ]( args.duration, args.complete );
+ } else {
+ return this.each( function() {
+ if ( args.complete ) {
+ args.complete.call( this );
+ }
+ });
+ }
+ }
+
+ function run( next ) {
+ var elem = $( this ),
+ complete = args.complete,
+ mode = args.mode;
+
+ function done() {
+ if ( $.isFunction( complete ) ) {
+ complete.call( elem[0] );
+ }
+ if ( $.isFunction( next ) ) {
+ next();
+ }
+ }
+
+ // If the element already has the correct final state, delegate to
+ // the core methods so the internal tracking of "olddisplay" works.
+ if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
+ elem[ mode ]();
+ done();
+ } else {
+ effectMethod.call( elem[0], args, done );
+ }
+ }
+
+ return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
+ },
+
+ show: (function( orig ) {
+ return function( option ) {
+ if ( standardAnimationOption( option ) ) {
+ return orig.apply( this, arguments );
+ } else {
+ var args = _normalizeArguments.apply( this, arguments );
+ args.mode = "show";
+ return this.effect.call( this, args );
+ }
+ };
+ })( $.fn.show ),
+
+ hide: (function( orig ) {
+ return function( option ) {
+ if ( standardAnimationOption( option ) ) {
+ return orig.apply( this, arguments );
+ } else {
+ var args = _normalizeArguments.apply( this, arguments );
+ args.mode = "hide";
+ return this.effect.call( this, args );
+ }
+ };
+ })( $.fn.hide ),
+
+ toggle: (function( orig ) {
+ return function( option ) {
+ if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
+ return orig.apply( this, arguments );
+ } else {
+ var args = _normalizeArguments.apply( this, arguments );
+ args.mode = "toggle";
+ return this.effect.call( this, args );
+ }
+ };
+ })( $.fn.toggle ),
+
+ // helper functions
+ cssUnit: function(key) {
+ var style = this.css( key ),
+ val = [];
+
+ $.each( [ "em", "px", "%", "pt" ], function( i, unit ) {
+ if ( style.indexOf( unit ) > 0 ) {
+ val = [ parseFloat( style ), unit ];
+ }
+ });
+ return val;
+ }
+});
+
+})();
+
+/******************************************************************************/
+/*********************************** EASING ***********************************/
+/******************************************************************************/
+
+(function() {
+
+// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
+
+var baseEasings = {};
+
+$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
+ baseEasings[ name ] = function( p ) {
+ return Math.pow( p, i + 2 );
+ };
+});
+
+$.extend( baseEasings, {
+ Sine: function( p ) {
+ return 1 - Math.cos( p * Math.PI / 2 );
+ },
+ Circ: function( p ) {
+ return 1 - Math.sqrt( 1 - p * p );
+ },
+ Elastic: function( p ) {
+ return p === 0 || p === 1 ? p :
+ -Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );
+ },
+ Back: function( p ) {
+ return p * p * ( 3 * p - 2 );
+ },
+ Bounce: function( p ) {
+ var pow2,
+ bounce = 4;
+
+ while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
+ return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
+ }
+});
+
+$.each( baseEasings, function( name, easeIn ) {
+ $.easing[ "easeIn" + name ] = easeIn;
+ $.easing[ "easeOut" + name ] = function( p ) {
+ return 1 - easeIn( 1 - p );
+ };
+ $.easing[ "easeInOut" + name ] = function( p ) {
+ return p < 0.5 ?
+ easeIn( p * 2 ) / 2 :
+ 1 - easeIn( p * -2 + 2 ) / 2;
+ };
+});
+
+})();
+
+var effect = $.effects;
+
+
+/*!
+ * jQuery UI Effects Blind 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/blind-effect/
+ */
+
+
+var effectBlind = $.effects.effect.blind = function( o, done ) {
+ // Create element
+ var el = $( this ),
+ rvertical = /up|down|vertical/,
+ rpositivemotion = /up|left|vertical|horizontal/,
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ direction = o.direction || "up",
+ vertical = rvertical.test( direction ),
+ ref = vertical ? "height" : "width",
+ ref2 = vertical ? "top" : "left",
+ motion = rpositivemotion.test( direction ),
+ animation = {},
+ show = mode === "show",
+ wrapper, distance, margin;
+
+ // if already wrapped, the wrapper's properties are my property. #6245
+ if ( el.parent().is( ".ui-effects-wrapper" ) ) {
+ $.effects.save( el.parent(), props );
+ } else {
+ $.effects.save( el, props );
+ }
+ el.show();
+ wrapper = $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+
+ distance = wrapper[ ref ]();
+ margin = parseFloat( wrapper.css( ref2 ) ) || 0;
+
+ animation[ ref ] = show ? distance : 0;
+ if ( !motion ) {
+ el
+ .css( vertical ? "bottom" : "right", 0 )
+ .css( vertical ? "top" : "left", "auto" )
+ .css({ position: "absolute" });
+
+ animation[ ref2 ] = show ? margin : distance + margin;
+ }
+
+ // start at 0 if we are showing
+ if ( show ) {
+ wrapper.css( ref, 0 );
+ if ( !motion ) {
+ wrapper.css( ref2, margin + distance );
+ }
+ }
+
+ // Animate
+ wrapper.animate( animation, {
+ duration: o.duration,
+ easing: o.easing,
+ queue: false,
+ complete: function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Bounce 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/bounce-effect/
+ */
+
+
+var effectBounce = $.effects.effect.bounce = function( o, done ) {
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+
+ // defaults:
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ hide = mode === "hide",
+ show = mode === "show",
+ direction = o.direction || "up",
+ distance = o.distance,
+ times = o.times || 5,
+
+ // number of internal animations
+ anims = times * 2 + ( show || hide ? 1 : 0 ),
+ speed = o.duration / anims,
+ easing = o.easing,
+
+ // utility:
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
+ motion = ( direction === "up" || direction === "left" ),
+ i,
+ upAnim,
+ downAnim,
+
+ // we will need to re-assemble the queue to stack our animations in place
+ queue = el.queue(),
+ queuelen = queue.length;
+
+ // Avoid touching opacity to prevent clearType and PNG issues in IE
+ if ( show || hide ) {
+ props.push( "opacity" );
+ }
+
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el ); // Create Wrapper
+
+ // default distance for the BIGGEST bounce is the outer Distance / 3
+ if ( !distance ) {
+ distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
+ }
+
+ if ( show ) {
+ downAnim = { opacity: 1 };
+ downAnim[ ref ] = 0;
+
+ // if we are showing, force opacity 0 and set the initial position
+ // then do the "first" animation
+ el.css( "opacity", 0 )
+ .css( ref, motion ? -distance * 2 : distance * 2 )
+ .animate( downAnim, speed, easing );
+ }
+
+ // start at the smallest distance if we are hiding
+ if ( hide ) {
+ distance = distance / Math.pow( 2, times - 1 );
+ }
+
+ downAnim = {};
+ downAnim[ ref ] = 0;
+ // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
+ for ( i = 0; i < times; i++ ) {
+ upAnim = {};
+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
+
+ el.animate( upAnim, speed, easing )
+ .animate( downAnim, speed, easing );
+
+ distance = hide ? distance * 2 : distance / 2;
+ }
+
+ // Last Bounce when Hiding
+ if ( hide ) {
+ upAnim = { opacity: 0 };
+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
+
+ el.animate( upAnim, speed, easing );
+ }
+
+ el.queue(function() {
+ if ( hide ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ });
+
+ // inject all the animations we just queued to be first in line (after "inprogress")
+ if ( queuelen > 1) {
+ queue.splice.apply( queue,
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
+ }
+ el.dequeue();
+
+};
+
+
+/*!
+ * jQuery UI Effects Clip 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/clip-effect/
+ */
+
+
+var effectClip = $.effects.effect.clip = function( o, done ) {
+ // Create element
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+ direction = o.direction || "vertical",
+ vert = direction === "vertical",
+ size = vert ? "height" : "width",
+ position = vert ? "top" : "left",
+ animation = {},
+ wrapper, animate, distance;
+
+ // Save & Show
+ $.effects.save( el, props );
+ el.show();
+
+ // Create Wrapper
+ wrapper = $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+ animate = ( el[0].tagName === "IMG" ) ? wrapper : el;
+ distance = animate[ size ]();
+
+ // Shift
+ if ( show ) {
+ animate.css( size, 0 );
+ animate.css( position, distance / 2 );
+ }
+
+ // Create Animation Object:
+ animation[ size ] = show ? distance : 0;
+ animation[ position ] = show ? 0 : distance / 2;
+
+ // Animate
+ animate.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( !show ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+
+};
+
+
+/*!
+ * jQuery UI Effects Drop 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/drop-effect/
+ */
+
+
+var effectDrop = $.effects.effect.drop = function( o, done ) {
+
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+ direction = o.direction || "left",
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
+ motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg",
+ animation = {
+ opacity: show ? 1 : 0
+ },
+ distance;
+
+ // Adjust
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el );
+
+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
+
+ if ( show ) {
+ el
+ .css( "opacity", 0 )
+ .css( ref, motion === "pos" ? -distance : distance );
+ }
+
+ // Animation
+ animation[ ref ] = ( show ?
+ ( motion === "pos" ? "+=" : "-=" ) :
+ ( motion === "pos" ? "-=" : "+=" ) ) +
+ distance;
+
+ // Animate
+ el.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Explode 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/explode-effect/
+ */
+
+
+var effectExplode = $.effects.effect.explode = function( o, done ) {
+
+ var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
+ cells = rows,
+ el = $( this ),
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+
+ // show and then visibility:hidden the element before calculating offset
+ offset = el.show().css( "visibility", "hidden" ).offset(),
+
+ // width and height of a piece
+ width = Math.ceil( el.outerWidth() / cells ),
+ height = Math.ceil( el.outerHeight() / rows ),
+ pieces = [],
+
+ // loop
+ i, j, left, top, mx, my;
+
+ // children animate complete:
+ function childComplete() {
+ pieces.push( this );
+ if ( pieces.length === rows * cells ) {
+ animComplete();
+ }
+ }
+
+ // clone the element for each row and cell.
+ for ( i = 0; i < rows ; i++ ) { // ===>
+ top = offset.top + i * height;
+ my = i - ( rows - 1 ) / 2 ;
+
+ for ( j = 0; j < cells ; j++ ) { // |||
+ left = offset.left + j * width;
+ mx = j - ( cells - 1 ) / 2 ;
+
+ // Create a clone of the now hidden main element that will be absolute positioned
+ // within a wrapper div off the -left and -top equal to size of our pieces
+ el
+ .clone()
+ .appendTo( "body" )
+ .wrap( "<div></div>" )
+ .css({
+ position: "absolute",
+ visibility: "visible",
+ left: -j * width,
+ top: -i * height
+ })
+
+ // select the wrapper - make it overflow: hidden and absolute positioned based on
+ // where the original was located +left and +top equal to the size of pieces
+ .parent()
+ .addClass( "ui-effects-explode" )
+ .css({
+ position: "absolute",
+ overflow: "hidden",
+ width: width,
+ height: height,
+ left: left + ( show ? mx * width : 0 ),
+ top: top + ( show ? my * height : 0 ),
+ opacity: show ? 0 : 1
+ }).animate({
+ left: left + ( show ? 0 : mx * width ),
+ top: top + ( show ? 0 : my * height ),
+ opacity: show ? 1 : 0
+ }, o.duration || 500, o.easing, childComplete );
+ }
+ }
+
+ function animComplete() {
+ el.css({
+ visibility: "visible"
+ });
+ $( pieces ).remove();
+ if ( !show ) {
+ el.hide();
+ }
+ done();
+ }
+};
+
+
+/*!
+ * jQuery UI Effects Fade 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/fade-effect/
+ */
+
+
+var effectFade = $.effects.effect.fade = function( o, done ) {
+ var el = $( this ),
+ mode = $.effects.setMode( el, o.mode || "toggle" );
+
+ el.animate({
+ opacity: mode
+ }, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: done
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Fold 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/fold-effect/
+ */
+
+
+var effectFold = $.effects.effect.fold = function( o, done ) {
+
+ // Create element
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+ hide = mode === "hide",
+ size = o.size || 15,
+ percent = /([0-9]+)%/.exec( size ),
+ horizFirst = !!o.horizFirst,
+ widthFirst = show !== horizFirst,
+ ref = widthFirst ? [ "width", "height" ] : [ "height", "width" ],
+ duration = o.duration / 2,
+ wrapper, distance,
+ animation1 = {},
+ animation2 = {};
+
+ $.effects.save( el, props );
+ el.show();
+
+ // Create Wrapper
+ wrapper = $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+ distance = widthFirst ?
+ [ wrapper.width(), wrapper.height() ] :
+ [ wrapper.height(), wrapper.width() ];
+
+ if ( percent ) {
+ size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
+ }
+ if ( show ) {
+ wrapper.css( horizFirst ? {
+ height: 0,
+ width: size
+ } : {
+ height: size,
+ width: 0
+ });
+ }
+
+ // Animation
+ animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size;
+ animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0;
+
+ // Animate
+ wrapper
+ .animate( animation1, duration, o.easing )
+ .animate( animation2, duration, o.easing, function() {
+ if ( hide ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ });
+
+};
+
+
+/*!
+ * jQuery UI Effects Highlight 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/highlight-effect/
+ */
+
+
+var effectHighlight = $.effects.effect.highlight = function( o, done ) {
+ var elem = $( this ),
+ props = [ "backgroundImage", "backgroundColor", "opacity" ],
+ mode = $.effects.setMode( elem, o.mode || "show" ),
+ animation = {
+ backgroundColor: elem.css( "backgroundColor" )
+ };
+
+ if (mode === "hide") {
+ animation.opacity = 0;
+ }
+
+ $.effects.save( elem, props );
+
+ elem
+ .show()
+ .css({
+ backgroundImage: "none",
+ backgroundColor: o.color || "#ffff99"
+ })
+ .animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( mode === "hide" ) {
+ elem.hide();
+ }
+ $.effects.restore( elem, props );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Size 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/size-effect/
+ */
+
+
+var effectSize = $.effects.effect.size = function( o, done ) {
+
+ // Create element
+ var original, baseline, factor,
+ el = $( this ),
+ props0 = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ],
+
+ // Always restore
+ props1 = [ "position", "top", "bottom", "left", "right", "overflow", "opacity" ],
+
+ // Copy for children
+ props2 = [ "width", "height", "overflow" ],
+ cProps = [ "fontSize" ],
+ vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
+ hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
+
+ // Set options
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ restore = o.restore || mode !== "effect",
+ scale = o.scale || "both",
+ origin = o.origin || [ "middle", "center" ],
+ position = el.css( "position" ),
+ props = restore ? props0 : props1,
+ zero = {
+ height: 0,
+ width: 0,
+ outerHeight: 0,
+ outerWidth: 0
+ };
+
+ if ( mode === "show" ) {
+ el.show();
+ }
+ original = {
+ height: el.height(),
+ width: el.width(),
+ outerHeight: el.outerHeight(),
+ outerWidth: el.outerWidth()
+ };
+
+ if ( o.mode === "toggle" && mode === "show" ) {
+ el.from = o.to || zero;
+ el.to = o.from || original;
+ } else {
+ el.from = o.from || ( mode === "show" ? zero : original );
+ el.to = o.to || ( mode === "hide" ? zero : original );
+ }
+
+ // Set scaling factor
+ factor = {
+ from: {
+ y: el.from.height / original.height,
+ x: el.from.width / original.width
+ },
+ to: {
+ y: el.to.height / original.height,
+ x: el.to.width / original.width
+ }
+ };
+
+ // Scale the css box
+ if ( scale === "box" || scale === "both" ) {
+
+ // Vertical props scaling
+ if ( factor.from.y !== factor.to.y ) {
+ props = props.concat( vProps );
+ el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );
+ el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );
+ }
+
+ // Horizontal props scaling
+ if ( factor.from.x !== factor.to.x ) {
+ props = props.concat( hProps );
+ el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );
+ el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );
+ }
+ }
+
+ // Scale the content
+ if ( scale === "content" || scale === "both" ) {
+
+ // Vertical props scaling
+ if ( factor.from.y !== factor.to.y ) {
+ props = props.concat( cProps ).concat( props2 );
+ el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );
+ el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );
+ }
+ }
+
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el );
+ el.css( "overflow", "hidden" ).css( el.from );
+
+ // Adjust
+ if (origin) { // Calculate baseline shifts
+ baseline = $.effects.getBaseline( origin, original );
+ el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y;
+ el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x;
+ el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y;
+ el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x;
+ }
+ el.css( el.from ); // set top & left
+
+ // Animate
+ if ( scale === "content" || scale === "both" ) { // Scale the children
+
+ // Add margins/font-size
+ vProps = vProps.concat([ "marginTop", "marginBottom" ]).concat(cProps);
+ hProps = hProps.concat([ "marginLeft", "marginRight" ]);
+ props2 = props0.concat(vProps).concat(hProps);
+
+ el.find( "*[width]" ).each( function() {
+ var child = $( this ),
+ c_original = {
+ height: child.height(),
+ width: child.width(),
+ outerHeight: child.outerHeight(),
+ outerWidth: child.outerWidth()
+ };
+ if (restore) {
+ $.effects.save(child, props2);
+ }
+
+ child.from = {
+ height: c_original.height * factor.from.y,
+ width: c_original.width * factor.from.x,
+ outerHeight: c_original.outerHeight * factor.from.y,
+ outerWidth: c_original.outerWidth * factor.from.x
+ };
+ child.to = {
+ height: c_original.height * factor.to.y,
+ width: c_original.width * factor.to.x,
+ outerHeight: c_original.height * factor.to.y,
+ outerWidth: c_original.width * factor.to.x
+ };
+
+ // Vertical props scaling
+ if ( factor.from.y !== factor.to.y ) {
+ child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );
+ child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );
+ }
+
+ // Horizontal props scaling
+ if ( factor.from.x !== factor.to.x ) {
+ child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from );
+ child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to );
+ }
+
+ // Animate children
+ child.css( child.from );
+ child.animate( child.to, o.duration, o.easing, function() {
+
+ // Restore children
+ if ( restore ) {
+ $.effects.restore( child, props2 );
+ }
+ });
+ });
+ }
+
+ // Animate
+ el.animate( el.to, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( el.to.opacity === 0 ) {
+ el.css( "opacity", el.from.opacity );
+ }
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ if ( !restore ) {
+
+ // we need to calculate our new positioning based on the scaling
+ if ( position === "static" ) {
+ el.css({
+ position: "relative",
+ top: el.to.top,
+ left: el.to.left
+ });
+ } else {
+ $.each([ "top", "left" ], function( idx, pos ) {
+ el.css( pos, function( _, str ) {
+ var val = parseInt( str, 10 ),
+ toRef = idx ? el.to.left : el.to.top;
+
+ // if original was "auto", recalculate the new value from wrapper
+ if ( str === "auto" ) {
+ return toRef + "px";
+ }
+
+ return val + toRef + "px";
+ });
+ });
+ }
+ }
+
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+
+};
+
+
+/*!
+ * jQuery UI Effects Scale 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/scale-effect/
+ */
+
+
+var effectScale = $.effects.effect.scale = function( o, done ) {
+
+ // Create element
+ var el = $( this ),
+ options = $.extend( true, {}, o ),
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ percent = parseInt( o.percent, 10 ) ||
+ ( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),
+ direction = o.direction || "both",
+ origin = o.origin,
+ original = {
+ height: el.height(),
+ width: el.width(),
+ outerHeight: el.outerHeight(),
+ outerWidth: el.outerWidth()
+ },
+ factor = {
+ y: direction !== "horizontal" ? (percent / 100) : 1,
+ x: direction !== "vertical" ? (percent / 100) : 1
+ };
+
+ // We are going to pass this effect to the size effect:
+ options.effect = "size";
+ options.queue = false;
+ options.complete = done;
+
+ // Set default origin and restore for show/hide
+ if ( mode !== "effect" ) {
+ options.origin = origin || [ "middle", "center" ];
+ options.restore = true;
+ }
+
+ options.from = o.from || ( mode === "show" ? {
+ height: 0,
+ width: 0,
+ outerHeight: 0,
+ outerWidth: 0
+ } : original );
+ options.to = {
+ height: original.height * factor.y,
+ width: original.width * factor.x,
+ outerHeight: original.outerHeight * factor.y,
+ outerWidth: original.outerWidth * factor.x
+ };
+
+ // Fade option to support puff
+ if ( options.fade ) {
+ if ( mode === "show" ) {
+ options.from.opacity = 0;
+ options.to.opacity = 1;
+ }
+ if ( mode === "hide" ) {
+ options.from.opacity = 1;
+ options.to.opacity = 0;
+ }
+ }
+
+ // Animate
+ el.effect( options );
+
+};
+
+
+/*!
+ * jQuery UI Effects Puff 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/puff-effect/
+ */
+
+
+var effectPuff = $.effects.effect.puff = function( o, done ) {
+ var elem = $( this ),
+ mode = $.effects.setMode( elem, o.mode || "hide" ),
+ hide = mode === "hide",
+ percent = parseInt( o.percent, 10 ) || 150,
+ factor = percent / 100,
+ original = {
+ height: elem.height(),
+ width: elem.width(),
+ outerHeight: elem.outerHeight(),
+ outerWidth: elem.outerWidth()
+ };
+
+ $.extend( o, {
+ effect: "scale",
+ queue: false,
+ fade: true,
+ mode: mode,
+ complete: done,
+ percent: hide ? percent : 100,
+ from: hide ?
+ original :
+ {
+ height: original.height * factor,
+ width: original.width * factor,
+ outerHeight: original.outerHeight * factor,
+ outerWidth: original.outerWidth * factor
+ }
+ });
+
+ elem.effect( o );
+};
+
+
+/*!
+ * jQuery UI Effects Pulsate 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/pulsate-effect/
+ */
+
+
+var effectPulsate = $.effects.effect.pulsate = function( o, done ) {
+ var elem = $( this ),
+ mode = $.effects.setMode( elem, o.mode || "show" ),
+ show = mode === "show",
+ hide = mode === "hide",
+ showhide = ( show || mode === "hide" ),
+
+ // showing or hiding leaves of the "last" animation
+ anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
+ duration = o.duration / anims,
+ animateTo = 0,
+ queue = elem.queue(),
+ queuelen = queue.length,
+ i;
+
+ if ( show || !elem.is(":visible")) {
+ elem.css( "opacity", 0 ).show();
+ animateTo = 1;
+ }
+
+ // anims - 1 opacity "toggles"
+ for ( i = 1; i < anims; i++ ) {
+ elem.animate({
+ opacity: animateTo
+ }, duration, o.easing );
+ animateTo = 1 - animateTo;
+ }
+
+ elem.animate({
+ opacity: animateTo
+ }, duration, o.easing);
+
+ elem.queue(function() {
+ if ( hide ) {
+ elem.hide();
+ }
+ done();
+ });
+
+ // We just queued up "anims" animations, we need to put them next in the queue
+ if ( queuelen > 1 ) {
+ queue.splice.apply( queue,
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
+ }
+ elem.dequeue();
+};
+
+
+/*!
+ * jQuery UI Effects Shake 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/shake-effect/
+ */
+
+
+var effectShake = $.effects.effect.shake = function( o, done ) {
+
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ direction = o.direction || "left",
+ distance = o.distance || 20,
+ times = o.times || 3,
+ anims = times * 2 + 1,
+ speed = Math.round( o.duration / anims ),
+ ref = (direction === "up" || direction === "down") ? "top" : "left",
+ positiveMotion = (direction === "up" || direction === "left"),
+ animation = {},
+ animation1 = {},
+ animation2 = {},
+ i,
+
+ // we will need to re-assemble the queue to stack our animations in place
+ queue = el.queue(),
+ queuelen = queue.length;
+
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el );
+
+ // Animation
+ animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
+ animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
+ animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
+
+ // Animate
+ el.animate( animation, speed, o.easing );
+
+ // Shakes
+ for ( i = 1; i < times; i++ ) {
+ el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );
+ }
+ el
+ .animate( animation1, speed, o.easing )
+ .animate( animation, speed / 2, o.easing )
+ .queue(function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ });
+
+ // inject all the animations we just queued to be first in line (after "inprogress")
+ if ( queuelen > 1) {
+ queue.splice.apply( queue,
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
+ }
+ el.dequeue();
+
+};
+
+
+/*!
+ * jQuery UI Effects Slide 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/slide-effect/
+ */
+
+
+var effectSlide = $.effects.effect.slide = function( o, done ) {
+
+ // Create element
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
+ mode = $.effects.setMode( el, o.mode || "show" ),
+ show = mode === "show",
+ direction = o.direction || "left",
+ ref = (direction === "up" || direction === "down") ? "top" : "left",
+ positiveMotion = (direction === "up" || direction === "left"),
+ distance,
+ animation = {};
+
+ // Adjust
+ $.effects.save( el, props );
+ el.show();
+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );
+
+ $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+
+ if ( show ) {
+ el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance );
+ }
+
+ // Animation
+ animation[ ref ] = ( show ?
+ ( positiveMotion ? "+=" : "-=") :
+ ( positiveMotion ? "-=" : "+=")) +
+ distance;
+
+ // Animate
+ el.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Transfer 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/transfer-effect/
+ */
+
+
+var effectTransfer = $.effects.effect.transfer = function( o, done ) {
+ var elem = $( this ),
+ target = $( o.to ),
+ targetFixed = target.css( "position" ) === "fixed",
+ body = $("body"),
+ fixTop = targetFixed ? body.scrollTop() : 0,
+ fixLeft = targetFixed ? body.scrollLeft() : 0,
+ endPosition = target.offset(),
+ animation = {
+ top: endPosition.top - fixTop,
+ left: endPosition.left - fixLeft,
+ height: target.innerHeight(),
+ width: target.innerWidth()
+ },
+ startPosition = elem.offset(),
+ transfer = $( "<div class='ui-effects-transfer'></div>" )
+ .appendTo( document.body )
+ .addClass( o.className )
+ .css({
+ top: startPosition.top - fixTop,
+ left: startPosition.left - fixLeft,
+ height: elem.innerHeight(),
+ width: elem.innerWidth(),
+ position: targetFixed ? "fixed" : "absolute"
+ })
+ .animate( animation, o.duration, o.easing, function() {
+ transfer.remove();
+ done();
+ });
+};
+
+
+
+}));
\ No newline at end of file
diff --git a/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js
new file mode 100644
index 0000000..3c99f61
--- /dev/null
+++ b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js
@@ -0,0 +1,14303 @@
+/**
+ * jQuery EasyUI 1.4.4
+ *
+ * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
+ *
+ * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
+ * To use it on other terms please contact us: info@jeasyui.com
+ *
+ */
+(function($){
+$.parser={auto:true,onComplete:function(_1){
+},plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","menubutton","splitbutton","switchbutton","progressbar","tree","textbox","filebox","combo","combobox","combotree","combogrid","numberbox","validatebox","searchbox","spinner","numberspinner","timespinner","datetimespinner","calendar","datebox","datetimebox","slider","layout","panel","datagrid","propertygrid","treegrid","datalist","tabs","accordion","window","dialog","form"],parse:function(_2){
+var aa=[];
+for(var i=0;i<$.parser.plugins.length;i++){
+var _3=$.parser.plugins[i];
+var r=$(".easyui-"+_3,_2);
+if(r.length){
+if(r[_3]){
+r[_3]();
+}else{
+aa.push({name:_3,jq:r});
+}
+}
+}
+if(aa.length&&window.easyloader){
+var _4=[];
+for(var i=0;i<aa.length;i++){
+_4.push(aa[i].name);
+}
+easyloader.load(_4,function(){
+for(var i=0;i<aa.length;i++){
+var _5=aa[i].name;
+var jq=aa[i].jq;
+jq[_5]();
+}
+$.parser.onComplete.call($.parser,_2);
+});
+}else{
+$.parser.onComplete.call($.parser,_2);
+}
+},parseValue:function(_6,_7,_8,_9){
+_9=_9||0;
+var v=$.trim(String(_7||""));
+var _a=v.substr(v.length-1,1);
+if(_a=="%"){
+v=parseInt(v.substr(0,v.length-1));
+if(_6.toLowerCase().indexOf("width")>=0){
+v=Math.floor((_8.width()-_9)*v/100);
+}else{
+v=Math.floor((_8.height()-_9)*v/100);
+}
+}else{
+v=parseInt(v)||undefined;
+}
+return v;
+},parseOptions:function(_b,_c){
+var t=$(_b);
+var _d={};
+var s=$.trim(t.attr("data-options"));
+if(s){
+if(s.substring(0,1)!="{"){
+s="{"+s+"}";
+}
+_d=(new Function("return "+s))();
+}
+$.map(["width","height","left","top","minWidth","maxWidth","minHeight","maxHeight"],function(p){
+var pv=$.trim(_b.style[p]||"");
+if(pv){
+if(pv.indexOf("%")==-1){
+pv=parseInt(pv)||undefined;
+}
+_d[p]=pv;
+}
+});
+if(_c){
+var _e={};
+for(var i=0;i<_c.length;i++){
+var pp=_c[i];
+if(typeof pp=="string"){
+_e[pp]=t.attr(pp);
+}else{
+for(var _f in pp){
+var _10=pp[_f];
+if(_10=="boolean"){
+_e[_f]=t.attr(_f)?(t.attr(_f)=="true"):undefined;
+}else{
+if(_10=="number"){
+_e[_f]=t.attr(_f)=="0"?0:parseFloat(t.attr(_f))||undefined;
+}
+}
+}
+}
+}
+$.extend(_d,_e);
+}
+return _d;
+}};
+$(function(){
+var d=$("<div style=\"position:absolute;top:-1000px;width:100px;height:100px;padding:5px\"></div>").appendTo("body");
+$._boxModel=d.outerWidth()!=100;
+d.remove();
+d=$("<div style=\"position:fixed\"></div>").appendTo("body");
+$._positionFixed=(d.css("position")=="fixed");
+d.remove();
+if(!window.easyloader&&$.parser.auto){
+$.parser.parse();
+}
+});
+$.fn._outerWidth=function(_11){
+if(_11==undefined){
+if(this[0]==window){
+return this.width()||document.body.clientWidth;
+}
+return this.outerWidth()||0;
+}
+return this._size("width",_11);
+};
+$.fn._outerHeight=function(_12){
+if(_12==undefined){
+if(this[0]==window){
+return this.height()||document.body.clientHeight;
+}
+return this.outerHeight()||0;
+}
+return this._size("height",_12);
+};
+$.fn._scrollLeft=function(_13){
+if(_13==undefined){
+return this.scrollLeft();
+}else{
+return this.each(function(){
+$(this).scrollLeft(_13);
+});
+}
+};
+$.fn._propAttr=$.fn.prop||$.fn.attr;
+$.fn._size=function(_14,_15){
+if(typeof _14=="string"){
+if(_14=="clear"){
+return this.each(function(){
+$(this).css({width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:""});
+});
+}else{
+if(_14=="fit"){
+return this.each(function(){
+_16(this,this.tagName=="BODY"?$("body"):$(this).parent(),true);
+});
+}else{
+if(_14=="unfit"){
+return this.each(function(){
+_16(this,$(this).parent(),false);
+});
+}else{
+if(_15==undefined){
+return _17(this[0],_14);
+}else{
+return this.each(function(){
+_17(this,_14,_15);
+});
+}
+}
+}
+}
+}else{
+return this.each(function(){
+_15=_15||$(this).parent();
+$.extend(_14,_16(this,_15,_14.fit)||{});
+var r1=_18(this,"width",_15,_14);
+var r2=_18(this,"height",_15,_14);
+if(r1||r2){
+$(this).addClass("easyui-fluid");
+}else{
+$(this).removeClass("easyui-fluid");
+}
+});
+}
+function _16(_19,_1a,fit){
+if(!_1a.length){
+return false;
+}
+var t=$(_19)[0];
+var p=_1a[0];
+var _1b=p.fcount||0;
+if(fit){
+if(!t.fitted){
+t.fitted=true;
+p.fcount=_1b+1;
+$(p).addClass("panel-noscroll");
+if(p.tagName=="BODY"){
+$("html").addClass("panel-fit");
+}
+}
+return {width:($(p).width()||1),height:($(p).height()||1)};
+}else{
+if(t.fitted){
+t.fitted=false;
+p.fcount=_1b-1;
+if(p.fcount==0){
+$(p).removeClass("panel-noscroll");
+if(p.tagName=="BODY"){
+$("html").removeClass("panel-fit");
+}
+}
+}
+return false;
+}
+};
+function _18(_1c,_1d,_1e,_1f){
+var t=$(_1c);
+var p=_1d;
+var p1=p.substr(0,1).toUpperCase()+p.substr(1);
+var min=$.parser.parseValue("min"+p1,_1f["min"+p1],_1e);
+var max=$.parser.parseValue("max"+p1,_1f["max"+p1],_1e);
+var val=$.parser.parseValue(p,_1f[p],_1e);
+var _20=(String(_1f[p]||"").indexOf("%")>=0?true:false);
+if(!isNaN(val)){
+var v=Math.min(Math.max(val,min||0),max||99999);
+if(!_20){
+_1f[p]=v;
+}
+t._size("min"+p1,"");
+t._size("max"+p1,"");
+t._size(p,v);
+}else{
+t._size(p,"");
+t._size("min"+p1,min);
+t._size("max"+p1,max);
+}
+return _20||_1f.fit;
+};
+function _17(_21,_22,_23){
+var t=$(_21);
+if(_23==undefined){
+_23=parseInt(_21.style[_22]);
+if(isNaN(_23)){
+return undefined;
+}
+if($._boxModel){
+_23+=_24();
+}
+return _23;
+}else{
+if(_23===""){
+t.css(_22,"");
+}else{
+if($._boxModel){
+_23-=_24();
+if(_23<0){
+_23=0;
+}
+}
+t.css(_22,_23+"px");
+}
+}
+function _24(){
+if(_22.toLowerCase().indexOf("width")>=0){
+return t.outerWidth()-t.width();
+}else{
+return t.outerHeight()-t.height();
+}
+};
+};
+};
+})(jQuery);
+(function($){
+var _25=null;
+var _26=null;
+var _27=false;
+function _28(e){
+if(e.touches.length!=1){
+return;
+}
+if(!_27){
+_27=true;
+dblClickTimer=setTimeout(function(){
+_27=false;
+},500);
+}else{
+clearTimeout(dblClickTimer);
+_27=false;
+_29(e,"dblclick");
+}
+_25=setTimeout(function(){
+_29(e,"contextmenu",3);
+},1000);
+_29(e,"mousedown");
+if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
+e.preventDefault();
+}
+};
+function _2a(e){
+if(e.touches.length!=1){
+return;
+}
+if(_25){
+clearTimeout(_25);
+}
+_29(e,"mousemove");
+if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
+e.preventDefault();
+}
+};
+function _2b(e){
+if(_25){
+clearTimeout(_25);
+}
+_29(e,"mouseup");
+if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
+e.preventDefault();
+}
+};
+function _29(e,_2c,_2d){
+var _2e=new $.Event(_2c);
+_2e.pageX=e.changedTouches[0].pageX;
+_2e.pageY=e.changedTouches[0].pageY;
+_2e.which=_2d||1;
+$(e.target).trigger(_2e);
+};
+if(document.addEventListener){
+document.addEventListener("touchstart",_28,true);
+document.addEventListener("touchmove",_2a,true);
+document.addEventListener("touchend",_2b,true);
+}
+})(jQuery);
+(function($){
+function _2f(e){
+var _30=$.data(e.data.target,"draggable");
+var _31=_30.options;
+var _32=_30.proxy;
+var _33=e.data;
+var _34=_33.startLeft+e.pageX-_33.startX;
+var top=_33.startTop+e.pageY-_33.startY;
+if(_32){
+if(_32.parent()[0]==document.body){
+if(_31.deltaX!=null&&_31.deltaX!=undefined){
+_34=e.pageX+_31.deltaX;
+}else{
+_34=e.pageX-e.data.offsetWidth;
+}
+if(_31.deltaY!=null&&_31.deltaY!=undefined){
+top=e.pageY+_31.deltaY;
+}else{
+top=e.pageY-e.data.offsetHeight;
+}
+}else{
+if(_31.deltaX!=null&&_31.deltaX!=undefined){
+_34+=e.data.offsetWidth+_31.deltaX;
+}
+if(_31.deltaY!=null&&_31.deltaY!=undefined){
+top+=e.data.offsetHeight+_31.deltaY;
+}
+}
+}
+if(e.data.parent!=document.body){
+_34+=$(e.data.parent).scrollLeft();
+top+=$(e.data.parent).scrollTop();
+}
+if(_31.axis=="h"){
+_33.left=_34;
+}else{
+if(_31.axis=="v"){
+_33.top=top;
+}else{
+_33.left=_34;
+_33.top=top;
+}
+}
+};
+function _35(e){
+var _36=$.data(e.data.target,"draggable");
+var _37=_36.options;
+var _38=_36.proxy;
+if(!_38){
+_38=$(e.data.target);
+}
+_38.css({left:e.data.left,top:e.data.top});
+$("body").css("cursor",_37.cursor);
+};
+function _39(e){
+if(!$.fn.draggable.isDragging){
+return false;
+}
+var _3a=$.data(e.data.target,"draggable");
+var _3b=_3a.options;
+var _3c=$(".droppable").filter(function(){
+return e.data.target!=this;
+}).filter(function(){
+var _3d=$.data(this,"droppable").options.accept;
+if(_3d){
+return $(_3d).filter(function(){
+return this==e.data.target;
+}).length>0;
+}else{
+return true;
+}
+});
+_3a.droppables=_3c;
+var _3e=_3a.proxy;
+if(!_3e){
+if(_3b.proxy){
+if(_3b.proxy=="clone"){
+_3e=$(e.data.target).clone().insertAfter(e.data.target);
+}else{
+_3e=_3b.proxy.call(e.data.target,e.data.target);
+}
+_3a.proxy=_3e;
+}else{
+_3e=$(e.data.target);
+}
+}
+_3e.css("position","absolute");
+_2f(e);
+_35(e);
+_3b.onStartDrag.call(e.data.target,e);
+return false;
+};
+function _3f(e){
+if(!$.fn.draggable.isDragging){
+return false;
+}
+var _40=$.data(e.data.target,"draggable");
+_2f(e);
+if(_40.options.onDrag.call(e.data.target,e)!=false){
+_35(e);
+}
+var _41=e.data.target;
+_40.droppables.each(function(){
+var _42=$(this);
+if(_42.droppable("options").disabled){
+return;
+}
+var p2=_42.offset();
+if(e.pageX>p2.left&&e.pageX<p2.left+_42.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_42.outerHeight()){
+if(!this.entered){
+$(this).trigger("_dragenter",[_41]);
+this.entered=true;
+}
+$(this).trigger("_dragover",[_41]);
+}else{
+if(this.entered){
+$(this).trigger("_dragleave",[_41]);
+this.entered=false;
+}
+}
+});
+return false;
+};
+function _43(e){
+if(!$.fn.draggable.isDragging){
+_44();
+return false;
+}
+_3f(e);
+var _45=$.data(e.data.target,"draggable");
+var _46=_45.proxy;
+var _47=_45.options;
+if(_47.revert){
+if(_48()==true){
+$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
+}else{
+if(_46){
+var _49,top;
+if(_46.parent()[0]==document.body){
+_49=e.data.startX-e.data.offsetWidth;
+top=e.data.startY-e.data.offsetHeight;
+}else{
+_49=e.data.startLeft;
+top=e.data.startTop;
+}
+_46.animate({left:_49,top:top},function(){
+_4a();
+});
+}else{
+$(e.data.target).animate({left:e.data.startLeft,top:e.data.startTop},function(){
+$(e.data.target).css("position",e.data.startPosition);
+});
+}
+}
+}else{
+$(e.data.target).css({position:"absolute",left:e.data.left,top:e.data.top});
+_48();
+}
+_47.onStopDrag.call(e.data.target,e);
+_44();
+function _4a(){
+if(_46){
+_46.remove();
+}
+_45.proxy=null;
+};
+function _48(){
+var _4b=false;
+_45.droppables.each(function(){
+var _4c=$(this);
+if(_4c.droppable("options").disabled){
+return;
+}
+var p2=_4c.offset();
+if(e.pageX>p2.left&&e.pageX<p2.left+_4c.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_4c.outerHeight()){
+if(_47.revert){
+$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
+}
+$(this).trigger("_drop",[e.data.target]);
+_4a();
+_4b=true;
+this.entered=false;
+return false;
+}
+});
+if(!_4b&&!_47.revert){
+_4a();
+}
+return _4b;
+};
+return false;
+};
+function _44(){
+if($.fn.draggable.timer){
+clearTimeout($.fn.draggable.timer);
+$.fn.draggable.timer=undefined;
+}
+$(document).unbind(".draggable");
+$.fn.draggable.isDragging=false;
+setTimeout(function(){
+$("body").css("cursor","");
+},100);
+};
+$.fn.draggable=function(_4d,_4e){
+if(typeof _4d=="string"){
+return $.fn.draggable.methods[_4d](this,_4e);
+}
+return this.each(function(){
+var _4f;
+var _50=$.data(this,"draggable");
+if(_50){
+_50.handle.unbind(".draggable");
+_4f=$.extend(_50.options,_4d);
+}else{
+_4f=$.extend({},$.fn.draggable.defaults,$.fn.draggable.parseOptions(this),_4d||{});
+}
+var _51=_4f.handle?(typeof _4f.handle=="string"?$(_4f.handle,this):_4f.handle):$(this);
+$.data(this,"draggable",{options:_4f,handle:_51});
+if(_4f.disabled){
+$(this).css("cursor","");
+return;
+}
+_51.unbind(".draggable").bind("mousemove.draggable",{target:this},function(e){
+if($.fn.draggable.isDragging){
+return;
+}
+var _52=$.data(e.data.target,"draggable").options;
+if(_53(e)){
+$(this).css("cursor",_52.cursor);
+}else{
+$(this).css("cursor","");
+}
+}).bind("mouseleave.draggable",{target:this},function(e){
+$(this).css("cursor","");
+}).bind("mousedown.draggable",{target:this},function(e){
+if(_53(e)==false){
+return;
+}
+$(this).css("cursor","");
+var _54=$(e.data.target).position();
+var _55=$(e.data.target).offset();
+var _56={startPosition:$(e.data.target).css("position"),startLeft:_54.left,startTop:_54.top,left:_54.left,top:_54.top,startX:e.pageX,startY:e.pageY,offsetWidth:(e.pageX-_55.left),offsetHeight:(e.pageY-_55.top),target:e.data.target,parent:$(e.data.target).parent()[0]};
+$.extend(e.data,_56);
+var _57=$.data(e.data.target,"draggable").options;
+if(_57.onBeforeDrag.call(e.data.target,e)==false){
+return;
+}
+$(document).bind("mousedown.draggable",e.data,_39);
+$(document).bind("mousemove.draggable",e.data,_3f);
+$(document).bind("mouseup.draggable",e.data,_43);
+$.fn.draggable.timer=setTimeout(function(){
+$.fn.draggable.isDragging=true;
+_39(e);
+},_57.delay);
+return false;
+});
+function _53(e){
+var _58=$.data(e.data.target,"draggable");
+var _59=_58.handle;
+var _5a=$(_59).offset();
+var _5b=$(_59).outerWidth();
+var _5c=$(_59).outerHeight();
+var t=e.pageY-_5a.top;
+var r=_5a.left+_5b-e.pageX;
+var b=_5a.top+_5c-e.pageY;
+var l=e.pageX-_5a.left;
+return Math.min(t,r,b,l)>_58.options.edge;
+};
+});
+};
+$.fn.draggable.methods={options:function(jq){
+return $.data(jq[0],"draggable").options;
+},proxy:function(jq){
+return $.data(jq[0],"draggable").proxy;
+},enable:function(jq){
+return jq.each(function(){
+$(this).draggable({disabled:false});
+});
+},disable:function(jq){
+return jq.each(function(){
+$(this).draggable({disabled:true});
+});
+}};
+$.fn.draggable.parseOptions=function(_5d){
+var t=$(_5d);
+return $.extend({},$.parser.parseOptions(_5d,["cursor","handle","axis",{"revert":"boolean","deltaX":"number","deltaY":"number","edge":"number","delay":"number"}]),{disabled:(t.attr("disabled")?true:undefined)});
+};
+$.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,delay:100,onBeforeDrag:function(e){
+},onStartDrag:function(e){
+},onDrag:function(e){
+},onStopDrag:function(e){
+}};
+$.fn.draggable.isDragging=false;
+})(jQuery);
+(function($){
+function _5e(_5f){
+$(_5f).addClass("droppable");
+$(_5f).bind("_dragenter",function(e,_60){
+$.data(_5f,"droppable").options.onDragEnter.apply(_5f,[e,_60]);
+});
+$(_5f).bind("_dragleave",function(e,_61){
+$.data(_5f,"droppable").options.onDragLeave.apply(_5f,[e,_61]);
+});
+$(_5f).bind("_dragover",function(e,_62){
+$.data(_5f,"droppable").options.onDragOver.apply(_5f,[e,_62]);
+});
+$(_5f).bind("_drop",function(e,_63){
+$.data(_5f,"droppable").options.onDrop.apply(_5f,[e,_63]);
+});
+};
+$.fn.droppable=function(_64,_65){
+if(typeof _64=="string"){
+return $.fn.droppable.methods[_64](this,_65);
+}
+_64=_64||{};
+return this.each(function(){
+var _66=$.data(this,"droppable");
+if(_66){
+$.extend(_66.options,_64);
+}else{
+_5e(this);
+$.data(this,"droppable",{options:$.extend({},$.fn.droppable.defaults,$.fn.droppable.parseOptions(this),_64)});
+}
+});
+};
+$.fn.droppable.methods={options:function(jq){
+return $.data(jq[0],"droppable").options;
+},enable:function(jq){
+return jq.each(function(){
+$(this).droppable({disabled:false});
+});
+},disable:function(jq){
+return jq.each(function(){
+$(this).droppable({disabled:true});
+});
+}};
+$.fn.droppable.parseOptions=function(_67){
+var t=$(_67);
+return $.extend({},$.parser.parseOptions(_67,["accept"]),{disabled:(t.attr("disabled")?true:undefined)});
+};
+$.fn.droppable.defaults={accept:null,disabled:false,onDragEnter:function(e,_68){
+},onDragOver:function(e,_69){
+},onDragLeave:function(e,_6a){
+},onDrop:function(e,_6b){
+}};
+})(jQuery);
+(function($){
+$.fn.resizable=function(_6c,_6d){
+if(typeof _6c=="string"){
+return $.fn.resizable.methods[_6c](this,_6d);
+}
+function _6e(e){
+var _6f=e.data;
+var _70=$.data(_6f.target,"resizable").options;
+if(_6f.dir.indexOf("e")!=-1){
+var _71=_6f.startWidth+e.pageX-_6f.startX;
+_71=Math.min(Math.max(_71,_70.minWidth),_70.maxWidth);
+_6f.width=_71;
+}
+if(_6f.dir.indexOf("s")!=-1){
+var _72=_6f.startHeight+e.pageY-_6f.startY;
+_72=Math.min(Math.max(_72,_70.minHeight),_70.maxHeight);
+_6f.height=_72;
+}
+if(_6f.dir.indexOf("w")!=-1){
+var _71=_6f.startWidth-e.pageX+_6f.startX;
+_71=Math.min(Math.max(_71,_70.minWidth),_70.maxWidth);
+_6f.width=_71;
+_6f.left=_6f.startLeft+_6f.startWidth-_6f.width;
+}
+if(_6f.dir.indexOf("n")!=-1){
+var _72=_6f.startHeight-e.pageY+_6f.startY;
+_72=Math.min(Math.max(_72,_70.minHeight),_70.maxHeight);
+_6f.height=_72;
+_6f.top=_6f.startTop+_6f.startHeight-_6f.height;
+}
+};
+function _73(e){
+var _74=e.data;
+var t=$(_74.target);
+t.css({left:_74.left,top:_74.top});
+if(t.outerWidth()!=_74.width){
+t._outerWidth(_74.width);
+}
+if(t.outerHeight()!=_74.height){
+t._outerHeight(_74.height);
+}
+};
+function _75(e){
+$.fn.resizable.isResizing=true;
+$.data(e.data.target,"resizable").options.onStartResize.call(e.data.target,e);
+return false;
+};
+function _76(e){
+_6e(e);
+if($.data(e.data.target,"resizable").options.onResize.call(e.data.target,e)!=false){
+_73(e);
+}
+return false;
+};
+function _77(e){
+$.fn.resizable.isResizing=false;
+_6e(e,true);
+_73(e);
+$.data(e.data.target,"resizable").options.onStopResize.call(e.data.target,e);
+$(document).unbind(".resizable");
+$("body").css("cursor","");
+return false;
+};
+return this.each(function(){
+var _78=null;
+var _79=$.data(this,"resizable");
+if(_79){
+$(this).unbind(".resizable");
+_78=$.extend(_79.options,_6c||{});
+}else{
+_78=$.extend({},$.fn.resizable.defaults,$.fn.resizable.parseOptions(this),_6c||{});
+$.data(this,"resizable",{options:_78});
+}
+if(_78.disabled==true){
+return;
+}
+$(this).bind("mousemove.resizable",{target:this},function(e){
+if($.fn.resizable.isResizing){
+return;
+}
+var dir=_7a(e);
+if(dir==""){
+$(e.data.target).css("cursor","");
+}else{
+$(e.data.target).css("cursor",dir+"-resize");
+}
+}).bind("mouseleave.resizable",{target:this},function(e){
+$(e.data.target).css("cursor","");
+}).bind("mousedown.resizable",{target:this},function(e){
+var dir=_7a(e);
+if(dir==""){
+return;
+}
+function _7b(css){
+var val=parseInt($(e.data.target).css(css));
+if(isNaN(val)){
+return 0;
+}else{
+return val;
+}
+};
+var _7c={target:e.data.target,dir:dir,startLeft:_7b("left"),startTop:_7b("top"),left:_7b("left"),top:_7b("top"),startX:e.pageX,startY:e.pageY,startWidth:$(e.data.target).outerWidth(),startHeight:$(e.data.target).outerHeight(),width:$(e.data.target).outerWidth(),height:$(e.data.target).outerHeight(),deltaWidth:$(e.data.target).outerWidth()-$(e.data.target).width(),deltaHeight:$(e.data.target).outerHeight()-$(e.data.target).height()};
+$(document).bind("mousedown.resizable",_7c,_75);
+$(document).bind("mousemove.resizable",_7c,_76);
+$(document).bind("mouseup.resizable",_7c,_77);
+$("body").css("cursor",dir+"-resize");
+});
+function _7a(e){
+var tt=$(e.data.target);
+var dir="";
+var _7d=tt.offset();
+var _7e=tt.outerWidth();
+var _7f=tt.outerHeight();
+var _80=_78.edge;
+if(e.pageY>_7d.top&&e.pageY<_7d.top+_80){
+dir+="n";
+}else{
+if(e.pageY<_7d.top+_7f&&e.pageY>_7d.top+_7f-_80){
+dir+="s";
+}
+}
+if(e.pageX>_7d.left&&e.pageX<_7d.left+_80){
+dir+="w";
+}else{
+if(e.pageX<_7d.left+_7e&&e.pageX>_7d.left+_7e-_80){
+dir+="e";
+}
+}
+var _81=_78.handles.split(",");
+for(var i=0;i<_81.length;i++){
+var _82=_81[i].replace(/(^\s*)|(\s*$)/g,"");
+if(_82=="all"||_82==dir){
+return dir;
+}
+}
+return "";
+};
+});
+};
+$.fn.resizable.methods={options:function(jq){
+return $.data(jq[0],"resizable").options;
+},enable:function(jq){
+return jq.each(function(){
+$(this).resizable({disabled:false});
+});
+},disable:function(jq){
+return jq.each(function(){
+$(this).resizable({disabled:true});
+});
+}};
+$.fn.resizable.parseOptions=function(_83){
+var t=$(_83);
+return $.extend({},$.parser.parseOptions(_83,["handles",{minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number",edge:"number"}]),{disabled:(t.attr("disabled")?true:undefined)});
+};
+$.fn.resizable.defaults={disabled:false,handles:"n, e, s, w, ne, se, sw, nw, all",minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000,edge:5,onStartResize:function(e){
+},onResize:function(e){
+},onStopResize:function(e){
+}};
+$.fn.resizable.isResizing=false;
+})(jQuery);
+(function($){
+function _84(_85,_86){
+var _87=$.data(_85,"linkbutton").options;
+if(_86){
+$.extend(_87,_86);
+}
+if(_87.width||_87.height||_87.fit){
+var btn=$(_85);
+var _88=btn.parent();
+var _89=btn.is(":visible");
+if(!_89){
+var _8a=$("<div style=\"display:none\"></div>").insertBefore(_85);
+var _8b={position:btn.css("position"),display:btn.css("display"),left:btn.css("left")};
+btn.appendTo("body");
+btn.css({position:"absolute",display:"inline-block",left:-20000});
+}
+btn._size(_87,_88);
+var _8c=btn.find(".l-btn-left");
+_8c.css("margin-top",0);
+_8c.css("margin-top",parseInt((btn.height()-_8c.height())/2)+"px");
+if(!_89){
+btn.insertAfter(_8a);
+btn.css(_8b);
+_8a.remove();
+}
+}
+};
+function _8d(_8e){
+var _8f=$.data(_8e,"linkbutton").options;
+var t=$(_8e).empty();
+t.addClass("l-btn").removeClass("l-btn-plain l-btn-selected l-btn-plain-selected l-btn-outline");
+t.removeClass("l-btn-small l-btn-medium l-btn-large").addClass("l-btn-"+_8f.size);
+if(_8f.plain){
+t.addClass("l-btn-plain");
+}
+if(_8f.outline){
+t.addClass("l-btn-outline");
+}
+if(_8f.selected){
+t.addClass(_8f.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
+}
+t.attr("group",_8f.group||"");
+t.attr("id",_8f.id||"");
+var _90=$("<span class=\"l-btn-left\"></span>").appendTo(t);
+if(_8f.text){
+$("<span class=\"l-btn-text\"></span>").html(_8f.text).appendTo(_90);
+}else{
+$("<span class=\"l-btn-text l-btn-empty\"> </span>").appendTo(_90);
+}
+if(_8f.iconCls){
+$("<span class=\"l-btn-icon\"> </span>").addClass(_8f.iconCls).appendTo(_90);
+_90.addClass("l-btn-icon-"+_8f.iconAlign);
+}
+t.unbind(".linkbutton").bind("focus.linkbutton",function(){
+if(!_8f.disabled){
+$(this).addClass("l-btn-focus");
+}
+}).bind("blur.linkbutton",function(){
+$(this).removeClass("l-btn-focus");
+}).bind("click.linkbutton",function(){
+if(!_8f.disabled){
+if(_8f.toggle){
+if(_8f.selected){
+$(this).linkbutton("unselect");
+}else{
+$(this).linkbutton("select");
+}
+}
+_8f.onClick.call(this);
+}
+});
+_91(_8e,_8f.selected);
+_92(_8e,_8f.disabled);
+};
+function _91(_93,_94){
+var _95=$.data(_93,"linkbutton").options;
+if(_94){
+if(_95.group){
+$("a.l-btn[group=\""+_95.group+"\"]").each(function(){
+var o=$(this).linkbutton("options");
+if(o.toggle){
+$(this).removeClass("l-btn-selected l-btn-plain-selected");
+o.selected=false;
+}
+});
+}
+$(_93).addClass(_95.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
+_95.selected=true;
+}else{
+if(!_95.group){
+$(_93).removeClass("l-btn-selected l-btn-plain-selected");
+_95.selected=false;
+}
+}
+};
+function _92(_96,_97){
+var _98=$.data(_96,"linkbutton");
+var _99=_98.options;
+$(_96).removeClass("l-btn-disabled l-btn-plain-disabled");
+if(_97){
+_99.disabled=true;
+var _9a=$(_96).attr("href");
+if(_9a){
+_98.href=_9a;
+$(_96).attr("href","javascript:void(0)");
+}
+if(_96.onclick){
+_98.onclick=_96.onclick;
+_96.onclick=null;
+}
+_99.plain?$(_96).addClass("l-btn-disabled l-btn-plain-disabled"):$(_96).addClass("l-btn-disabled");
+}else{
+_99.disabled=false;
+if(_98.href){
+$(_96).attr("href",_98.href);
+}
+if(_98.onclick){
+_96.onclick=_98.onclick;
+}
+}
+};
+$.fn.linkbutton=function(_9b,_9c){
+if(typeof _9b=="string"){
+return $.fn.linkbutton.methods[_9b](this,_9c);
+}
+_9b=_9b||{};
+return this.each(function(){
+var _9d=$.data(this,"linkbutton");
+if(_9d){
+$.extend(_9d.options,_9b);
+}else{
+$.data(this,"linkbutton",{options:$.extend({},$.fn.linkbutton.defaults,$.fn.linkbutton.parseOptions(this),_9b)});
+$(this).removeAttr("disabled");
+$(this).bind("_resize",function(e,_9e){
+if($(this).hasClass("easyui-fluid")||_9e){
+_84(this);
+}
+return false;
+});
+}
+_8d(this);
+_84(this);
+});
+};
+$.fn.linkbutton.methods={options:function(jq){
+return $.data(jq[0],"linkbutton").options;
+},resize:function(jq,_9f){
+return jq.each(function(){
+_84(this,_9f);
+});
+},enable:function(jq){
+return jq.each(function(){
+_92(this,false);
+});
+},disable:function(jq){
+return jq.each(function(){
+_92(this,true);
+});
+},select:function(jq){
+return jq.each(function(){
+_91(this,true);
+});
+},unselect:function(jq){
+return jq.each(function(){
+_91(this,false);
+});
+}};
+$.fn.linkbutton.parseOptions=function(_a0){
+var t=$(_a0);
+return $.extend({},$.parser.parseOptions(_a0,["id","iconCls","iconAlign","group","size","text",{plain:"boolean",toggle:"boolean",selected:"boolean",outline:"boolean"}]),{disabled:(t.attr("disabled")?true:undefined),text:($.trim(t.html())||undefined),iconCls:(t.attr("icon")||t.attr("iconCls"))});
+};
+$.fn.linkbutton.defaults={id:null,disabled:false,toggle:false,selected:false,outline:false,group:null,plain:false,text:"",iconCls:null,iconAlign:"left",size:"small",onClick:function(){
+}};
+})(jQuery);
+(function($){
+function _a1(_a2){
+var _a3=$.data(_a2,"pagination");
+var _a4=_a3.options;
+var bb=_a3.bb={};
+var _a5=$(_a2).addClass("pagination").html("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr></tr></table>");
+var tr=_a5.find("tr");
+var aa=$.extend([],_a4.layout);
+if(!_a4.showPageList){
+_a6(aa,"list");
+}
+if(!_a4.showRefresh){
+_a6(aa,"refresh");
+}
+if(aa[0]=="sep"){
+aa.shift();
+}
+if(aa[aa.length-1]=="sep"){
+aa.pop();
+}
+for(var _a7=0;_a7<aa.length;_a7++){
+var _a8=aa[_a7];
+if(_a8=="list"){
+var ps=$("<select class=\"pagination-page-list\"></select>");
+ps.bind("change",function(){
+_a4.pageSize=parseInt($(this).val());
+_a4.onChangePageSize.call(_a2,_a4.pageSize);
+_ae(_a2,_a4.pageNumber);
+});
+for(var i=0;i<_a4.pageList.length;i++){
+$("<option></option>").text(_a4.pageList[i]).appendTo(ps);
+}
+$("<td></td>").append(ps).appendTo(tr);
+}else{
+if(_a8=="sep"){
+$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
+}else{
+if(_a8=="first"){
+bb.first=_a9("first");
+}else{
+if(_a8=="prev"){
+bb.prev=_a9("prev");
+}else{
+if(_a8=="next"){
+bb.next=_a9("next");
+}else{
+if(_a8=="last"){
+bb.last=_a9("last");
+}else{
+if(_a8=="manual"){
+$("<span style=\"padding-left:6px;\"></span>").html(_a4.beforePageText).appendTo(tr).wrap("<td></td>");
+bb.num=$("<input class=\"pagination-num\" type=\"text\" value=\"1\" size=\"2\">").appendTo(tr).wrap("<td></td>");
+bb.num.unbind(".pagination").bind("keydown.pagination",function(e){
+if(e.keyCode==13){
+var _aa=parseInt($(this).val())||1;
+_ae(_a2,_aa);
+return false;
+}
+});
+bb.after=$("<span style=\"padding-right:6px;\"></span>").appendTo(tr).wrap("<td></td>");
+}else{
+if(_a8=="refresh"){
+bb.refresh=_a9("refresh");
+}else{
+if(_a8=="links"){
+$("<td class=\"pagination-links\"></td>").appendTo(tr);
+}
+}
+}
+}
+}
+}
+}
+}
+}
+}
+if(_a4.buttons){
+$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
+if($.isArray(_a4.buttons)){
+for(var i=0;i<_a4.buttons.length;i++){
+var btn=_a4.buttons[i];
+if(btn=="-"){
+$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
+}else{
+var td=$("<td></td>").appendTo(tr);
+var a=$("<a href=\"javascript:void(0)\"></a>").appendTo(td);
+a[0].onclick=eval(btn.handler||function(){
+});
+a.linkbutton($.extend({},btn,{plain:true}));
+}
+}
+}else{
+var td=$("<td></td>").appendTo(tr);
+$(_a4.buttons).appendTo(td).show();
+}
+}
+$("<div class=\"pagination-info\"></div>").appendTo(_a5);
+$("<div style=\"clear:both;\"></div>").appendTo(_a5);
+function _a9(_ab){
+var btn=_a4.nav[_ab];
+var a=$("<a href=\"javascript:void(0)\"></a>").appendTo(tr);
+a.wrap("<td></td>");
+a.linkbutton({iconCls:btn.iconCls,plain:true}).unbind(".pagination").bind("click.pagination",function(){
+btn.handler.call(_a2);
+});
+return a;
+};
+function _a6(aa,_ac){
+var _ad=$.inArray(_ac,aa);
+if(_ad>=0){
+aa.splice(_ad,1);
+}
+return aa;
+};
+};
+function _ae(_af,_b0){
+var _b1=$.data(_af,"pagination").options;
+_b2(_af,{pageNumber:_b0});
+_b1.onSelectPage.call(_af,_b1.pageNumber,_b1.pageSize);
+};
+function _b2(_b3,_b4){
+var _b5=$.data(_b3,"pagination");
+var _b6=_b5.options;
+var bb=_b5.bb;
+$.extend(_b6,_b4||{});
+var ps=$(_b3).find("select.pagination-page-list");
+if(ps.length){
+ps.val(_b6.pageSize+"");
+_b6.pageSize=parseInt(ps.val());
+}
+var _b7=Math.ceil(_b6.total/_b6.pageSize)||1;
+if(_b6.pageNumber<1){
+_b6.pageNumber=1;
+}
+if(_b6.pageNumber>_b7){
+_b6.pageNumber=_b7;
+}
+if(_b6.total==0){
+_b6.pageNumber=0;
+_b7=0;
+}
+if(bb.num){
+bb.num.val(_b6.pageNumber);
+}
+if(bb.after){
+bb.after.html(_b6.afterPageText.replace(/{pages}/,_b7));
+}
+var td=$(_b3).find("td.pagination-links");
+if(td.length){
+td.empty();
+var _b8=_b6.pageNumber-Math.floor(_b6.links/2);
+if(_b8<1){
+_b8=1;
+}
+var _b9=_b8+_b6.links-1;
+if(_b9>_b7){
+_b9=_b7;
+}
+_b8=_b9-_b6.links+1;
+if(_b8<1){
+_b8=1;
+}
+for(var i=_b8;i<=_b9;i++){
+var a=$("<a class=\"pagination-link\" href=\"javascript:void(0)\"></a>").appendTo(td);
+a.linkbutton({plain:true,text:i});
+if(i==_b6.pageNumber){
+a.linkbutton("select");
+}else{
+a.unbind(".pagination").bind("click.pagination",{pageNumber:i},function(e){
+_ae(_b3,e.data.pageNumber);
+});
+}
+}
+}
+var _ba=_b6.displayMsg;
+_ba=_ba.replace(/{from}/,_b6.total==0?0:_b6.pageSize*(_b6.pageNumber-1)+1);
+_ba=_ba.replace(/{to}/,Math.min(_b6.pageSize*(_b6.pageNumber),_b6.total));
+_ba=_ba.replace(/{total}/,_b6.total);
+$(_b3).find("div.pagination-info").html(_ba);
+if(bb.first){
+bb.first.linkbutton({disabled:((!_b6.total)||_b6.pageNumber==1)});
+}
+if(bb.prev){
+bb.prev.linkbutton({disabled:((!_b6.total)||_b6.pageNumber==1)});
+}
+if(bb.next){
+bb.next.linkbutton({disabled:(_b6.pageNumber==_b7)});
+}
+if(bb.last){
+bb.last.linkbutton({disabled:(_b6.pageNumber==_b7)});
+}
+_bb(_b3,_b6.loading);
+};
+function _bb(_bc,_bd){
+var _be=$.data(_bc,"pagination");
+var _bf=_be.options;
+_bf.loading=_bd;
+if(_bf.showRefresh&&_be.bb.refresh){
+_be.bb.refresh.linkbutton({iconCls:(_bf.loading?"pagination-loading":"pagination-load")});
+}
+};
+$.fn.pagination=function(_c0,_c1){
+if(typeof _c0=="string"){
+return $.fn.pagination.methods[_c0](this,_c1);
+}
+_c0=_c0||{};
+return this.each(function(){
+var _c2;
+var _c3=$.data(this,"pagination");
+if(_c3){
+_c2=$.extend(_c3.options,_c0);
+}else{
+_c2=$.extend({},$.fn.pagination.defaults,$.fn.pagination.parseOptions(this),_c0);
+$.data(this,"pagination",{options:_c2});
+}
+_a1(this);
+_b2(this);
+});
+};
+$.fn.pagination.methods={options:function(jq){
+return $.data(jq[0],"pagination").options;
+},loading:function(jq){
+return jq.each(function(){
+_bb(this,true);
+});
+},loaded:function(jq){
+return jq.each(function(){
+_bb(this,false);
+});
+},refresh:function(jq,_c4){
+return jq.each(function(){
+_b2(this,_c4);
+});
+},select:function(jq,_c5){
+return jq.each(function(){
+_ae(this,_c5);
+});
+}};
+$.fn.pagination.parseOptions=function(_c6){
+var t=$(_c6);
+return $.extend({},$.parser.parseOptions(_c6,[{total:"number",pageSize:"number",pageNumber:"number",links:"number"},{loading:"boolean",showPageList:"boolean",showRefresh:"boolean"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined)});
+};
+$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:false,buttons:null,showPageList:true,showRefresh:true,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh"],onSelectPage:function(_c7,_c8){
+},onBeforeRefresh:function(_c9,_ca){
+},onRefresh:function(_cb,_cc){
+},onChangePageSize:function(_cd){
+},beforePageText:"Page",afterPageText:"of {pages}",displayMsg:"Displaying {from} to {to} of {total} items",nav:{first:{iconCls:"pagination-first",handler:function(){
+var _ce=$(this).pagination("options");
+if(_ce.pageNumber>1){
+$(this).pagination("select",1);
+}
+}},prev:{iconCls:"pagination-prev",handler:function(){
+var _cf=$(this).pagination("options");
+if(_cf.pageNumber>1){
+$(this).pagination("select",_cf.pageNumber-1);
+}
+}},next:{iconCls:"pagination-next",handler:function(){
+var _d0=$(this).pagination("options");
+var _d1=Math.ceil(_d0.total/_d0.pageSize);
+if(_d0.pageNumber<_d1){
+$(this).pagination("select",_d0.pageNumber+1);
+}
+}},last:{iconCls:"pagination-last",handler:function(){
+var _d2=$(this).pagination("options");
+var _d3=Math.ceil(_d2.total/_d2.pageSize);
+if(_d2.pageNumber<_d3){
+$(this).pagination("select",_d3);
+}
+}},refresh:{iconCls:"pagination-refresh",handler:function(){
+var _d4=$(this).pagination("options");
+if(_d4.onBeforeRefresh.call(this,_d4.pageNumber,_d4.pageSize)!=false){
+$(this).pagination("select",_d4.pageNumber);
+_d4.onRefresh.call(this,_d4.pageNumber,_d4.pageSize);
+}
+}}}};
+})(jQuery);
+(function($){
+function _d5(_d6){
+var _d7=$(_d6);
+_d7.addClass("tree");
+return _d7;
+};
+function _d8(_d9){
+var _da=$.data(_d9,"tree").options;
+$(_d9).unbind().bind("mouseover",function(e){
+var tt=$(e.target);
+var _db=tt.closest("div.tree-node");
+if(!_db.length){
+return;
+}
+_db.addClass("tree-node-hover");
+if(tt.hasClass("tree-hit")){
+if(tt.hasClass("tree-expanded")){
+tt.addClass("tree-expanded-hover");
+}else{
+tt.addClass("tree-collapsed-hover");
+}
+}
+e.stopPropagation();
+}).bind("mouseout",function(e){
+var tt=$(e.target);
+var _dc=tt.closest("div.tree-node");
+if(!_dc.length){
+return;
+}
+_dc.removeClass("tree-node-hover");
+if(tt.hasClass("tree-hit")){
+if(tt.hasClass("tree-expanded")){
+tt.removeClass("tree-expanded-hover");
+}else{
+tt.removeClass("tree-collapsed-hover");
+}
+}
+e.stopPropagation();
+}).bind("click",function(e){
+var tt=$(e.target);
+var _dd=tt.closest("div.tree-node");
+if(!_dd.length){
+return;
+}
+if(tt.hasClass("tree-hit")){
+_144(_d9,_dd[0]);
+return false;
+}else{
+if(tt.hasClass("tree-checkbox")){
+_104(_d9,_dd[0]);
+return false;
+}else{
+_18a(_d9,_dd[0]);
+_da.onClick.call(_d9,_e0(_d9,_dd[0]));
+}
+}
+e.stopPropagation();
+}).bind("dblclick",function(e){
+var _de=$(e.target).closest("div.tree-node");
+if(!_de.length){
+return;
+}
+_18a(_d9,_de[0]);
+_da.onDblClick.call(_d9,_e0(_d9,_de[0]));
+e.stopPropagation();
+}).bind("contextmenu",function(e){
+var _df=$(e.target).closest("div.tree-node");
+if(!_df.length){
+return;
+}
+_da.onContextMenu.call(_d9,e,_e0(_d9,_df[0]));
+e.stopPropagation();
+});
+};
+function _e1(_e2){
+var _e3=$.data(_e2,"tree").options;
+_e3.dnd=false;
+var _e4=$(_e2).find("div.tree-node");
+_e4.draggable("disable");
+_e4.css("cursor","pointer");
+};
+function _e5(_e6){
+var _e7=$.data(_e6,"tree");
+var _e8=_e7.options;
+var _e9=_e7.tree;
+_e7.disabledNodes=[];
+_e8.dnd=true;
+_e9.find("div.tree-node").draggable({disabled:false,revert:true,cursor:"pointer",proxy:function(_ea){
+var p=$("<div class=\"tree-node-proxy\"></div>").appendTo("body");
+p.html("<span class=\"tree-dnd-icon tree-dnd-no\"> </span>"+$(_ea).find(".tree-title").html());
+p.hide();
+return p;
+},deltaX:15,deltaY:15,onBeforeDrag:function(e){
+if(_e8.onBeforeDrag.call(_e6,_e0(_e6,this))==false){
+return false;
+}
+if($(e.target).hasClass("tree-hit")||$(e.target).hasClass("tree-checkbox")){
+return false;
+}
+if(e.which!=1){
+return false;
+}
+var _eb=$(this).find("span.tree-indent");
+if(_eb.length){
+e.data.offsetWidth-=_eb.length*_eb.width();
+}
+},onStartDrag:function(e){
+$(this).next("ul").find("div.tree-node").each(function(){
+$(this).droppable("disable");
+_e7.disabledNodes.push(this);
+});
+$(this).draggable("proxy").css({left:-10000,top:-10000});
+_e8.onStartDrag.call(_e6,_e0(_e6,this));
+var _ec=_e0(_e6,this);
+if(_ec.id==undefined){
+_ec.id="easyui_tree_node_id_temp";
+_127(_e6,_ec);
+}
+_e7.draggingNodeId=_ec.id;
+},onDrag:function(e){
+var x1=e.pageX,y1=e.pageY,x2=e.data.startX,y2=e.data.startY;
+var d=Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
+if(d>3){
+$(this).draggable("proxy").show();
+}
+this.pageY=e.pageY;
+},onStopDrag:function(){
+for(var i=0;i<_e7.disabledNodes.length;i++){
+$(_e7.disabledNodes[i]).droppable("enable");
+}
+_e7.disabledNodes=[];
+var _ed=_182(_e6,_e7.draggingNodeId);
+if(_ed&&_ed.id=="easyui_tree_node_id_temp"){
+_ed.id="";
+_127(_e6,_ed);
+}
+_e8.onStopDrag.call(_e6,_ed);
+}}).droppable({accept:"div.tree-node",onDragEnter:function(e,_ee){
+if(_e8.onDragEnter.call(_e6,this,_ef(_ee))==false){
+_f0(_ee,false);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+$(this).droppable("disable");
+_e7.disabledNodes.push(this);
+}
+},onDragOver:function(e,_f1){
+if($(this).droppable("options").disabled){
+return;
+}
+var _f2=_f1.pageY;
+var top=$(this).offset().top;
+var _f3=top+$(this).outerHeight();
+_f0(_f1,true);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+if(_f2>top+(_f3-top)/2){
+if(_f3-_f2<5){
+$(this).addClass("tree-node-bottom");
+}else{
+$(this).addClass("tree-node-append");
+}
+}else{
+if(_f2-top<5){
+$(this).addClass("tree-node-top");
+}else{
+$(this).addClass("tree-node-append");
+}
+}
+if(_e8.onDragOver.call(_e6,this,_ef(_f1))==false){
+_f0(_f1,false);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+$(this).droppable("disable");
+_e7.disabledNodes.push(this);
+}
+},onDragLeave:function(e,_f4){
+_f0(_f4,false);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+_e8.onDragLeave.call(_e6,this,_ef(_f4));
+},onDrop:function(e,_f5){
+var _f6=this;
+var _f7,_f8;
+if($(this).hasClass("tree-node-append")){
+_f7=_f9;
+_f8="append";
+}else{
+_f7=_fa;
+_f8=$(this).hasClass("tree-node-top")?"top":"bottom";
+}
+if(_e8.onBeforeDrop.call(_e6,_f6,_ef(_f5),_f8)==false){
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+return;
+}
+_f7(_f5,_f6,_f8);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+}});
+function _ef(_fb,pop){
+return $(_fb).closest("ul.tree").tree(pop?"pop":"getData",_fb);
+};
+function _f0(_fc,_fd){
+var _fe=$(_fc).draggable("proxy").find("span.tree-dnd-icon");
+_fe.removeClass("tree-dnd-yes tree-dnd-no").addClass(_fd?"tree-dnd-yes":"tree-dnd-no");
+};
+function _f9(_ff,dest){
+if(_e0(_e6,dest).state=="closed"){
+_13c(_e6,dest,function(){
+_100();
+});
+}else{
+_100();
+}
+function _100(){
+var node=_ef(_ff,true);
+$(_e6).tree("append",{parent:dest,data:[node]});
+_e8.onDrop.call(_e6,dest,node,"append");
+};
+};
+function _fa(_101,dest,_102){
+var _103={};
+if(_102=="top"){
+_103.before=dest;
+}else{
+_103.after=dest;
+}
+var node=_ef(_101,true);
+_103.data=node;
+$(_e6).tree("insert",_103);
+_e8.onDrop.call(_e6,dest,node,_102);
+};
+};
+function _104(_105,_106,_107){
+var _108=$.data(_105,"tree");
+var opts=_108.options;
+if(!opts.checkbox){
+return;
+}
+var _109=_e0(_105,_106);
+if(_107==undefined){
+var ck=$(_106).find(".tree-checkbox");
+if(ck.hasClass("tree-checkbox1")){
+_107=false;
+}else{
+if(ck.hasClass("tree-checkbox0")){
+_107=true;
+}else{
+if(_109._checked==undefined){
+_109._checked=$(_106).find(".tree-checkbox").hasClass("tree-checkbox1");
+}
+_107=!_109._checked;
+}
+}
+}
+_109._checked=_107;
+if(opts.onBeforeCheck.call(_105,_109,_107)==false){
+return;
+}
+if(opts.cascadeCheck){
+_10a(_109,_107);
+_10b(_109,_107);
+}else{
+_10c($(_109.target),_107?"1":"0");
+}
+opts.onCheck.call(_105,_109,_107);
+function _10c(node,flag){
+var ck=node.find(".tree-checkbox");
+ck.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2");
+ck.addClass("tree-checkbox"+flag);
+};
+function _10a(_10d,_10e){
+if(opts.deepCheck){
+var node=$("#"+_10d.domId);
+var flag=_10e?"1":"0";
+_10c(node,flag);
+_10c(node.next(),flag);
+}else{
+_10f(_10d,_10e);
+_12a(_10d.children||[],function(n){
+_10f(n,_10e);
+});
+}
+};
+function _10f(_110,_111){
+if(_110.hidden){
+return;
+}
+var cls="tree-checkbox"+(_111?"1":"0");
+var node=$("#"+_110.domId);
+_10c(node,_111?"1":"0");
+if(_110.children){
+for(var i=0;i<_110.children.length;i++){
+if(_110.children[i].hidden){
+if(!$("#"+_110.children[i].domId).find("."+cls).length){
+_10c(node,"2");
+var _112=_14f(_105,node[0]);
+while(_112){
+_10c($(_112.target),"2");
+_112=_14f(_105,_112[0]);
+}
+return;
+}
+}
+}
+}
+};
+function _10b(_113,_114){
+var node=$("#"+_113.domId);
+var _115=_14f(_105,node[0]);
+if(_115){
+var flag="";
+if(_116(node,true)){
+flag="1";
+}else{
+if(_116(node,false)){
+flag="0";
+}else{
+flag="2";
+}
+}
+_10c($(_115.target),flag);
+_10b(_115,_114);
+}
+};
+function _116(node,_117){
+var cls="tree-checkbox"+(_117?"1":"0");
+var ck=node.find(".tree-checkbox");
+if(!ck.hasClass(cls)){
+return false;
+}
+var b=true;
+node.parent().siblings().each(function(){
+var ck=$(this).children("div.tree-node").children(".tree-checkbox");
+if(ck.length&&!ck.hasClass(cls)){
+b=false;
+return false;
+}
+});
+return b;
+};
+};
+function _118(_119,_11a){
+var opts=$.data(_119,"tree").options;
+if(!opts.checkbox){
+return;
+}
+var node=$(_11a);
+if(_11b(_119,_11a)){
+var ck=node.find(".tree-checkbox");
+if(ck.length){
+if(ck.hasClass("tree-checkbox1")){
+_104(_119,_11a,true);
+}else{
+_104(_119,_11a,false);
+}
+}else{
+if(opts.onlyLeafCheck){
+$("<span class=\"tree-checkbox tree-checkbox0\"></span>").insertBefore(node.find(".tree-title"));
+}
+}
+}else{
+var ck=node.find(".tree-checkbox");
+if(opts.onlyLeafCheck){
+ck.remove();
+}else{
+if(ck.hasClass("tree-checkbox1")){
+_104(_119,_11a,true);
+}else{
+if(ck.hasClass("tree-checkbox2")){
+var _11c=true;
+var _11d=true;
+var _11e=_11f(_119,_11a);
+for(var i=0;i<_11e.length;i++){
+if(_11e[i].checked){
+_11d=false;
+}else{
+_11c=false;
+}
+}
+if(_11c){
+_104(_119,_11a,true);
+}
+if(_11d){
+_104(_119,_11a,false);
+}
+}
+}
+}
+}
+};
+function _120(_121,ul,data,_122){
+var _123=$.data(_121,"tree");
+var opts=_123.options;
+var _124=$(ul).prevAll("div.tree-node:first");
+data=opts.loadFilter.call(_121,data,_124[0]);
+var _125=_126(_121,"domId",_124.attr("id"));
+if(!_122){
+_125?_125.children=data:_123.data=data;
+$(ul).empty();
+}else{
+if(_125){
+_125.children?_125.children=_125.children.concat(data):_125.children=data;
+}else{
+_123.data=_123.data.concat(data);
+}
+}
+opts.view.render.call(opts.view,_121,ul,data);
+if(opts.dnd){
+_e5(_121);
+}
+if(_125){
+_127(_121,_125);
+}
+var _128=[];
+var _129=[];
+for(var i=0;i<data.length;i++){
+var node=data[i];
+if(!node.checked){
+_128.push(node);
+}
+}
+_12a(data,function(node){
+if(node.checked){
+_129.push(node);
+}
+});
+var _12b=opts.onCheck;
+opts.onCheck=function(){
+};
+if(_128.length){
+_104(_121,$("#"+_128[0].domId)[0],false);
+}
+for(var i=0;i<_129.length;i++){
+_104(_121,$("#"+_129[i].domId)[0],true);
+}
+opts.onCheck=_12b;
+setTimeout(function(){
+_12c(_121,_121);
+},0);
+opts.onLoadSuccess.call(_121,_125,data);
+};
+function _12c(_12d,ul,_12e){
+var opts=$.data(_12d,"tree").options;
+if(opts.lines){
+$(_12d).addClass("tree-lines");
+}else{
+$(_12d).removeClass("tree-lines");
+return;
+}
+if(!_12e){
+_12e=true;
+$(_12d).find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom");
+$(_12d).find("div.tree-node").removeClass("tree-node-last tree-root-first tree-root-one");
+var _12f=$(_12d).tree("getRoots");
+if(_12f.length>1){
+$(_12f[0].target).addClass("tree-root-first");
+}else{
+if(_12f.length==1){
+$(_12f[0].target).addClass("tree-root-one");
+}
+}
+}
+$(ul).children("li").each(function(){
+var node=$(this).children("div.tree-node");
+var ul=node.next("ul");
+if(ul.length){
+if($(this).next().length){
+_130(node);
+}
+_12c(_12d,ul,_12e);
+}else{
+_131(node);
+}
+});
+var _132=$(ul).children("li:last").children("div.tree-node").addClass("tree-node-last");
+_132.children("span.tree-join").removeClass("tree-join").addClass("tree-joinbottom");
+function _131(node,_133){
+var icon=node.find("span.tree-icon");
+icon.prev("span.tree-indent").addClass("tree-join");
+};
+function _130(node){
+var _134=node.find("span.tree-indent, span.tree-hit").length;
+node.next().find("div.tree-node").each(function(){
+$(this).children("span:eq("+(_134-1)+")").addClass("tree-line");
+});
+};
+};
+function _135(_136,ul,_137,_138){
+var opts=$.data(_136,"tree").options;
+_137=$.extend({},opts.queryParams,_137||{});
+var _139=null;
+if(_136!=ul){
+var node=$(ul).prev();
+_139=_e0(_136,node[0]);
+}
+if(opts.onBeforeLoad.call(_136,_139,_137)==false){
+return;
+}
+var _13a=$(ul).prev().children("span.tree-folder");
+_13a.addClass("tree-loading");
+var _13b=opts.loader.call(_136,_137,function(data){
+_13a.removeClass("tree-loading");
+_120(_136,ul,data);
+if(_138){
+_138();
+}
+},function(){
+_13a.removeClass("tree-loading");
+opts.onLoadError.apply(_136,arguments);
+if(_138){
+_138();
+}
+});
+if(_13b==false){
+_13a.removeClass("tree-loading");
+}
+};
+function _13c(_13d,_13e,_13f){
+var opts=$.data(_13d,"tree").options;
+var hit=$(_13e).children("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-expanded")){
+return;
+}
+var node=_e0(_13d,_13e);
+if(opts.onBeforeExpand.call(_13d,node)==false){
+return;
+}
+hit.removeClass("tree-collapsed tree-collapsed-hover").addClass("tree-expanded");
+hit.next().addClass("tree-folder-open");
+var ul=$(_13e).next();
+if(ul.length){
+if(opts.animate){
+ul.slideDown("normal",function(){
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+});
+}else{
+ul.css("display","block");
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+}
+}else{
+var _140=$("<ul style=\"display:none\"></ul>").insertAfter(_13e);
+_135(_13d,_140[0],{id:node.id},function(){
+if(_140.is(":empty")){
+_140.remove();
+}
+if(opts.animate){
+_140.slideDown("normal",function(){
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+});
+}else{
+_140.css("display","block");
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+}
+});
+}
+};
+function _141(_142,_143){
+var opts=$.data(_142,"tree").options;
+var hit=$(_143).children("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-collapsed")){
+return;
+}
+var node=_e0(_142,_143);
+if(opts.onBeforeCollapse.call(_142,node)==false){
+return;
+}
+hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+hit.next().removeClass("tree-folder-open");
+var ul=$(_143).next();
+if(opts.animate){
+ul.slideUp("normal",function(){
+node.state="closed";
+opts.onCollapse.call(_142,node);
+});
+}else{
+ul.css("display","none");
+node.state="closed";
+opts.onCollapse.call(_142,node);
+}
+};
+function _144(_145,_146){
+var hit=$(_146).children("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-expanded")){
+_141(_145,_146);
+}else{
+_13c(_145,_146);
+}
+};
+function _147(_148,_149){
+var _14a=_11f(_148,_149);
+if(_149){
+_14a.unshift(_e0(_148,_149));
+}
+for(var i=0;i<_14a.length;i++){
+_13c(_148,_14a[i].target);
+}
+};
+function _14b(_14c,_14d){
+var _14e=[];
+var p=_14f(_14c,_14d);
+while(p){
+_14e.unshift(p);
+p=_14f(_14c,p.target);
+}
+for(var i=0;i<_14e.length;i++){
+_13c(_14c,_14e[i].target);
+}
+};
+function _150(_151,_152){
+var c=$(_151).parent();
+while(c[0].tagName!="BODY"&&c.css("overflow-y")!="auto"){
+c=c.parent();
+}
+var n=$(_152);
+var ntop=n.offset().top;
+if(c[0].tagName!="BODY"){
+var ctop=c.offset().top;
+if(ntop<ctop){
+c.scrollTop(c.scrollTop()+ntop-ctop);
+}else{
+if(ntop+n.outerHeight()>ctop+c.outerHeight()-18){
+c.scrollTop(c.scrollTop()+ntop+n.outerHeight()-ctop-c.outerHeight()+18);
+}
+}
+}else{
+c.scrollTop(ntop);
+}
+};
+function _153(_154,_155){
+var _156=_11f(_154,_155);
+if(_155){
+_156.unshift(_e0(_154,_155));
+}
+for(var i=0;i<_156.length;i++){
+_141(_154,_156[i].target);
+}
+};
+function _157(_158,_159){
+var node=$(_159.parent);
+var data=_159.data;
+if(!data){
+return;
+}
+data=$.isArray(data)?data:[data];
+if(!data.length){
+return;
+}
+var ul;
+if(node.length==0){
+ul=$(_158);
+}else{
+if(_11b(_158,node[0])){
+var _15a=node.find("span.tree-icon");
+_15a.removeClass("tree-file").addClass("tree-folder tree-folder-open");
+var hit=$("<span class=\"tree-hit tree-expanded\"></span>").insertBefore(_15a);
+if(hit.prev().length){
+hit.prev().remove();
+}
+}
+ul=node.next();
+if(!ul.length){
+ul=$("<ul></ul>").insertAfter(node);
+}
+}
+_120(_158,ul[0],data,true);
+_118(_158,ul.prev());
+};
+function _15b(_15c,_15d){
+var ref=_15d.before||_15d.after;
+var _15e=_14f(_15c,ref);
+var data=_15d.data;
+if(!data){
+return;
+}
+data=$.isArray(data)?data:[data];
+if(!data.length){
+return;
+}
+_157(_15c,{parent:(_15e?_15e.target:null),data:data});
+var _15f=_15e?_15e.children:$(_15c).tree("getRoots");
+for(var i=0;i<_15f.length;i++){
+if(_15f[i].domId==$(ref).attr("id")){
+for(var j=data.length-1;j>=0;j--){
+_15f.splice((_15d.before?i:(i+1)),0,data[j]);
+}
+_15f.splice(_15f.length-data.length,data.length);
+break;
+}
+}
+var li=$();
+for(var i=0;i<data.length;i++){
+li=li.add($("#"+data[i].domId).parent());
+}
+if(_15d.before){
+li.insertBefore($(ref).parent());
+}else{
+li.insertAfter($(ref).parent());
+}
+};
+function _160(_161,_162){
+var _163=del(_162);
+$(_162).parent().remove();
+if(_163){
+if(!_163.children||!_163.children.length){
+var node=$(_163.target);
+node.find(".tree-icon").removeClass("tree-folder").addClass("tree-file");
+node.find(".tree-hit").remove();
+$("<span class=\"tree-indent\"></span>").prependTo(node);
+node.next().remove();
+}
+_127(_161,_163);
+_118(_161,_163.target);
+}
+_12c(_161,_161);
+function del(_164){
+var id=$(_164).attr("id");
+var _165=_14f(_161,_164);
+var cc=_165?_165.children:$.data(_161,"tree").data;
+for(var i=0;i<cc.length;i++){
+if(cc[i].domId==id){
+cc.splice(i,1);
+break;
+}
+}
+return _165;
+};
+};
+function _127(_166,_167){
+var opts=$.data(_166,"tree").options;
+var node=$(_167.target);
+var data=_e0(_166,_167.target);
+var _168=data.checked;
+if(data.iconCls){
+node.find(".tree-icon").removeClass(data.iconCls);
+}
+$.extend(data,_167);
+node.find(".tree-title").html(opts.formatter.call(_166,data));
+if(data.iconCls){
+node.find(".tree-icon").addClass(data.iconCls);
+}
+if(_168!=data.checked){
+_104(_166,_167.target,data.checked);
+}
+};
+function _169(_16a,_16b){
+if(_16b){
+var p=_14f(_16a,_16b);
+while(p){
+_16b=p.target;
+p=_14f(_16a,_16b);
+}
+return _e0(_16a,_16b);
+}else{
+var _16c=_16d(_16a);
+return _16c.length?_16c[0]:null;
+}
+};
+function _16d(_16e){
+var _16f=$.data(_16e,"tree").data;
+for(var i=0;i<_16f.length;i++){
+_170(_16f[i]);
+}
+return _16f;
+};
+function _11f(_171,_172){
+var _173=[];
+var n=_e0(_171,_172);
+var data=n?(n.children||[]):$.data(_171,"tree").data;
+_12a(data,function(node){
+_173.push(_170(node));
+});
+return _173;
+};
+function _14f(_174,_175){
+var p=$(_175).closest("ul").prevAll("div.tree-node:first");
+return _e0(_174,p[0]);
+};
+function _176(_177,_178){
+_178=_178||"checked";
+if(!$.isArray(_178)){
+_178=[_178];
+}
+var _179=[];
+for(var i=0;i<_178.length;i++){
+var s=_178[i];
+if(s=="checked"){
+_179.push("span.tree-checkbox1");
+}else{
+if(s=="unchecked"){
+_179.push("span.tree-checkbox0");
+}else{
+if(s=="indeterminate"){
+_179.push("span.tree-checkbox2");
+}
+}
+}
+}
+var _17a=[];
+$(_177).find(_179.join(",")).each(function(){
+var node=$(this).parent();
+_17a.push(_e0(_177,node[0]));
+});
+return _17a;
+};
+function _17b(_17c){
+var node=$(_17c).find("div.tree-node-selected");
+return node.length?_e0(_17c,node[0]):null;
+};
+function _17d(_17e,_17f){
+var data=_e0(_17e,_17f);
+if(data&&data.children){
+_12a(data.children,function(node){
+_170(node);
+});
+}
+return data;
+};
+function _e0(_180,_181){
+return _126(_180,"domId",$(_181).attr("id"));
+};
+function _182(_183,id){
+return _126(_183,"id",id);
+};
+function _126(_184,_185,_186){
+var data=$.data(_184,"tree").data;
+var _187=null;
+_12a(data,function(node){
+if(node[_185]==_186){
+_187=_170(node);
+return false;
+}
+});
+return _187;
+};
+function _170(node){
+var d=$("#"+node.domId);
+node.target=d[0];
+node.checked=d.find(".tree-checkbox").hasClass("tree-checkbox1");
+return node;
+};
+function _12a(data,_188){
+var _189=[];
+for(var i=0;i<data.length;i++){
+_189.push(data[i]);
+}
+while(_189.length){
+var node=_189.shift();
+if(_188(node)==false){
+return;
+}
+if(node.children){
+for(var i=node.children.length-1;i>=0;i--){
+_189.unshift(node.children[i]);
+}
+}
+}
+};
+function _18a(_18b,_18c){
+var opts=$.data(_18b,"tree").options;
+var node=_e0(_18b,_18c);
+if(opts.onBeforeSelect.call(_18b,node)==false){
+return;
+}
+$(_18b).find("div.tree-node-selected").removeClass("tree-node-selected");
+$(_18c).addClass("tree-node-selected");
+opts.onSelect.call(_18b,node);
+};
+function _11b(_18d,_18e){
+return $(_18e).children("span.tree-hit").length==0;
+};
+function _18f(_190,_191){
+var opts=$.data(_190,"tree").options;
+var node=_e0(_190,_191);
+if(opts.onBeforeEdit.call(_190,node)==false){
+return;
+}
+$(_191).css("position","relative");
+var nt=$(_191).find(".tree-title");
+var _192=nt.outerWidth();
+nt.empty();
+var _193=$("<input class=\"tree-editor\">").appendTo(nt);
+_193.val(node.text).focus();
+_193.width(_192+20);
+_193.height(document.compatMode=="CSS1Compat"?(18-(_193.outerHeight()-_193.height())):18);
+_193.bind("click",function(e){
+return false;
+}).bind("mousedown",function(e){
+e.stopPropagation();
+}).bind("mousemove",function(e){
+e.stopPropagation();
+}).bind("keydown",function(e){
+if(e.keyCode==13){
+_194(_190,_191);
+return false;
+}else{
+if(e.keyCode==27){
+_198(_190,_191);
+return false;
+}
+}
+}).bind("blur",function(e){
+e.stopPropagation();
+_194(_190,_191);
+});
+};
+function _194(_195,_196){
+var opts=$.data(_195,"tree").options;
+$(_196).css("position","");
+var _197=$(_196).find("input.tree-editor");
+var val=_197.val();
+_197.remove();
+var node=_e0(_195,_196);
+node.text=val;
+_127(_195,node);
+opts.onAfterEdit.call(_195,node);
+};
+function _198(_199,_19a){
+var opts=$.data(_199,"tree").options;
+$(_19a).css("position","");
+$(_19a).find("input.tree-editor").remove();
+var node=_e0(_199,_19a);
+_127(_199,node);
+opts.onCancelEdit.call(_199,node);
+};
+function _19b(_19c,q){
+var _19d=$.data(_19c,"tree");
+var opts=_19d.options;
+var ids={};
+_12a(_19d.data,function(node){
+if(opts.filter.call(_19c,q,node)){
+$("#"+node.domId).removeClass("tree-node-hidden");
+ids[node.domId]=1;
+node.hidden=false;
+}else{
+$("#"+node.domId).addClass("tree-node-hidden");
+node.hidden=true;
+}
+});
+for(var id in ids){
+_19e(id);
+}
+function _19e(_19f){
+var p=$(_19c).tree("getParent",$("#"+_19f)[0]);
+while(p){
+$(p.target).removeClass("tree-node-hidden");
+p.hidden=false;
+p=$(_19c).tree("getParent",p.target);
+}
+};
+};
+$.fn.tree=function(_1a0,_1a1){
+if(typeof _1a0=="string"){
+return $.fn.tree.methods[_1a0](this,_1a1);
+}
+var _1a0=_1a0||{};
+return this.each(function(){
+var _1a2=$.data(this,"tree");
+var opts;
+if(_1a2){
+opts=$.extend(_1a2.options,_1a0);
+_1a2.options=opts;
+}else{
+opts=$.extend({},$.fn.tree.defaults,$.fn.tree.parseOptions(this),_1a0);
+$.data(this,"tree",{options:opts,tree:_d5(this),data:[]});
+var data=$.fn.tree.parseData(this);
+if(data.length){
+_120(this,this,data);
+}
+}
+_d8(this);
+if(opts.data){
+_120(this,this,$.extend(true,[],opts.data));
+}
+_135(this,this);
+});
+};
+$.fn.tree.methods={options:function(jq){
+return $.data(jq[0],"tree").options;
+},loadData:function(jq,data){
+return jq.each(function(){
+_120(this,this,data);
+});
+},getNode:function(jq,_1a3){
+return _e0(jq[0],_1a3);
+},getData:function(jq,_1a4){
+return _17d(jq[0],_1a4);
+},reload:function(jq,_1a5){
+return jq.each(function(){
+if(_1a5){
+var node=$(_1a5);
+var hit=node.children("span.tree-hit");
+hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+node.next().remove();
+_13c(this,_1a5);
+}else{
+$(this).empty();
+_135(this,this);
+}
+});
+},getRoot:function(jq,_1a6){
+return _169(jq[0],_1a6);
+},getRoots:function(jq){
+return _16d(jq[0]);
+},getParent:function(jq,_1a7){
+return _14f(jq[0],_1a7);
+},getChildren:function(jq,_1a8){
+return _11f(jq[0],_1a8);
+},getChecked:function(jq,_1a9){
+return _176(jq[0],_1a9);
+},getSelected:function(jq){
+return _17b(jq[0]);
+},isLeaf:function(jq,_1aa){
+return _11b(jq[0],_1aa);
+},find:function(jq,id){
+return _182(jq[0],id);
+},select:function(jq,_1ab){
+return jq.each(function(){
+_18a(this,_1ab);
+});
+},check:function(jq,_1ac){
+return jq.each(function(){
+_104(this,_1ac,true);
+});
+},uncheck:function(jq,_1ad){
+return jq.each(function(){
+_104(this,_1ad,false);
+});
+},collapse:function(jq,_1ae){
+return jq.each(function(){
+_141(this,_1ae);
+});
+},expand:function(jq,_1af){
+return jq.each(function(){
+_13c(this,_1af);
+});
+},collapseAll:function(jq,_1b0){
+return jq.each(function(){
+_153(this,_1b0);
+});
+},expandAll:function(jq,_1b1){
+return jq.each(function(){
+_147(this,_1b1);
+});
+},expandTo:function(jq,_1b2){
+return jq.each(function(){
+_14b(this,_1b2);
+});
+},scrollTo:function(jq,_1b3){
+return jq.each(function(){
+_150(this,_1b3);
+});
+},toggle:function(jq,_1b4){
+return jq.each(function(){
+_144(this,_1b4);
+});
+},append:function(jq,_1b5){
+return jq.each(function(){
+_157(this,_1b5);
+});
+},insert:function(jq,_1b6){
+return jq.each(function(){
+_15b(this,_1b6);
+});
+},remove:function(jq,_1b7){
+return jq.each(function(){
+_160(this,_1b7);
+});
+},pop:function(jq,_1b8){
+var node=jq.tree("getData",_1b8);
+jq.tree("remove",_1b8);
+return node;
+},update:function(jq,_1b9){
+return jq.each(function(){
+_127(this,_1b9);
+});
+},enableDnd:function(jq){
+return jq.each(function(){
+_e5(this);
+});
+},disableDnd:function(jq){
+return jq.each(function(){
+_e1(this);
+});
+},beginEdit:function(jq,_1ba){
+return jq.each(function(){
+_18f(this,_1ba);
+});
+},endEdit:function(jq,_1bb){
+return jq.each(function(){
+_194(this,_1bb);
+});
+},cancelEdit:function(jq,_1bc){
+return jq.each(function(){
+_198(this,_1bc);
+});
+},doFilter:function(jq,q){
+return jq.each(function(){
+_19b(this,q);
+});
+}};
+$.fn.tree.parseOptions=function(_1bd){
+var t=$(_1bd);
+return $.extend({},$.parser.parseOptions(_1bd,["url","method",{checkbox:"boolean",cascadeCheck:"boolean",onlyLeafCheck:"boolean"},{animate:"boolean",lines:"boolean",dnd:"boolean"}]));
+};
+$.fn.tree.parseData=function(_1be){
+var data=[];
+_1bf(data,$(_1be));
+return data;
+function _1bf(aa,tree){
+tree.children("li").each(function(){
+var node=$(this);
+var item=$.extend({},$.parser.parseOptions(this,["id","iconCls","state"]),{checked:(node.attr("checked")?true:undefined)});
+item.text=node.children("span").html();
+if(!item.text){
+item.text=node.html();
+}
+var _1c0=node.children("ul");
+if(_1c0.length){
+item.children=[];
+_1bf(item.children,_1c0);
+}
+aa.push(item);
+});
+};
+};
+var _1c1=1;
+var _1c2={render:function(_1c3,ul,data){
+var opts=$.data(_1c3,"tree").options;
+var _1c4=$(ul).prev("div.tree-node").find("span.tree-indent, span.tree-hit").length;
+var cc=_1c5(_1c4,data);
+$(ul).append(cc.join(""));
+function _1c5(_1c6,_1c7){
+var cc=[];
+for(var i=0;i<_1c7.length;i++){
+var item=_1c7[i];
+if(item.state!="open"&&item.state!="closed"){
+item.state="open";
+}
+item.domId="_easyui_tree_"+_1c1++;
+cc.push("<li>");
+cc.push("<div id=\""+item.domId+"\" class=\"tree-node\">");
+for(var j=0;j<_1c6;j++){
+cc.push("<span class=\"tree-indent\"></span>");
+}
+var _1c8=false;
+if(item.state=="closed"){
+cc.push("<span class=\"tree-hit tree-collapsed\"></span>");
+cc.push("<span class=\"tree-icon tree-folder "+(item.iconCls?item.iconCls:"")+"\"></span>");
+}else{
+if(item.children&&item.children.length){
+cc.push("<span class=\"tree-hit tree-expanded\"></span>");
+cc.push("<span class=\"tree-icon tree-folder tree-folder-open "+(item.iconCls?item.iconCls:"")+"\"></span>");
+}else{
+cc.push("<span class=\"tree-indent\"></span>");
+cc.push("<span class=\"tree-icon tree-file "+(item.iconCls?item.iconCls:"")+"\"></span>");
+_1c8=true;
+}
+}
+if(opts.checkbox){
+if((!opts.onlyLeafCheck)||_1c8){
+cc.push("<span class=\"tree-checkbox tree-checkbox0\"></span>");
+}
+}
+cc.push("<span class=\"tree-title\">"+opts.formatter.call(_1c3,item)+"</span>");
+cc.push("</div>");
+if(item.children&&item.children.length){
+var tmp=_1c5(_1c6+1,item.children);
+cc.push("<ul style=\"display:"+(item.state=="closed"?"none":"block")+"\">");
+cc=cc.concat(tmp);
+cc.push("</ul>");
+}
+cc.push("</li>");
+}
+return cc;
+};
+}};
+$.fn.tree.defaults={url:null,method:"post",animate:false,checkbox:false,cascadeCheck:true,onlyLeafCheck:false,lines:false,dnd:false,data:null,queryParams:{},formatter:function(node){
+return node.text;
+},filter:function(q,node){
+return node.text.toLowerCase().indexOf(q.toLowerCase())>=0;
+},loader:function(_1c9,_1ca,_1cb){
+var opts=$(this).tree("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_1c9,dataType:"json",success:function(data){
+_1ca(data);
+},error:function(){
+_1cb.apply(this,arguments);
+}});
+},loadFilter:function(data,_1cc){
+return data;
+},view:_1c2,onBeforeLoad:function(node,_1cd){
+},onLoadSuccess:function(node,data){
+},onLoadError:function(){
+},onClick:function(node){
+},onDblClick:function(node){
+},onBeforeExpand:function(node){
+},onExpand:function(node){
+},onBeforeCollapse:function(node){
+},onCollapse:function(node){
+},onBeforeCheck:function(node,_1ce){
+},onCheck:function(node,_1cf){
+},onBeforeSelect:function(node){
+},onSelect:function(node){
+},onContextMenu:function(e,node){
+},onBeforeDrag:function(node){
+},onStartDrag:function(node){
+},onStopDrag:function(node){
+},onDragEnter:function(_1d0,_1d1){
+},onDragOver:function(_1d2,_1d3){
+},onDragLeave:function(_1d4,_1d5){
+},onBeforeDrop:function(_1d6,_1d7,_1d8){
+},onDrop:function(_1d9,_1da,_1db){
+},onBeforeEdit:function(node){
+},onAfterEdit:function(node){
+},onCancelEdit:function(node){
+}};
+})(jQuery);
+(function($){
+function init(_1dc){
+$(_1dc).addClass("progressbar");
+$(_1dc).html("<div class=\"progressbar-text\"></div><div class=\"progressbar-value\"><div class=\"progressbar-text\"></div></div>");
+$(_1dc).bind("_resize",function(e,_1dd){
+if($(this).hasClass("easyui-fluid")||_1dd){
+_1de(_1dc);
+}
+return false;
+});
+return $(_1dc);
+};
+function _1de(_1df,_1e0){
+var opts=$.data(_1df,"progressbar").options;
+var bar=$.data(_1df,"progressbar").bar;
+if(_1e0){
+opts.width=_1e0;
+}
+bar._size(opts);
+bar.find("div.progressbar-text").css("width",bar.width());
+bar.find("div.progressbar-text,div.progressbar-value").css({height:bar.height()+"px",lineHeight:bar.height()+"px"});
+};
+$.fn.progressbar=function(_1e1,_1e2){
+if(typeof _1e1=="string"){
+var _1e3=$.fn.progressbar.methods[_1e1];
+if(_1e3){
+return _1e3(this,_1e2);
+}
+}
+_1e1=_1e1||{};
+return this.each(function(){
+var _1e4=$.data(this,"progressbar");
+if(_1e4){
+$.extend(_1e4.options,_1e1);
+}else{
+_1e4=$.data(this,"progressbar",{options:$.extend({},$.fn.progressbar.defaults,$.fn.progressbar.parseOptions(this),_1e1),bar:init(this)});
+}
+$(this).progressbar("setValue",_1e4.options.value);
+_1de(this);
+});
+};
+$.fn.progressbar.methods={options:function(jq){
+return $.data(jq[0],"progressbar").options;
+},resize:function(jq,_1e5){
+return jq.each(function(){
+_1de(this,_1e5);
+});
+},getValue:function(jq){
+return $.data(jq[0],"progressbar").options.value;
+},setValue:function(jq,_1e6){
+if(_1e6<0){
+_1e6=0;
+}
+if(_1e6>100){
+_1e6=100;
+}
+return jq.each(function(){
+var opts=$.data(this,"progressbar").options;
+var text=opts.text.replace(/{value}/,_1e6);
+var _1e7=opts.value;
+opts.value=_1e6;
+$(this).find("div.progressbar-value").width(_1e6+"%");
+$(this).find("div.progressbar-text").html(text);
+if(_1e7!=_1e6){
+opts.onChange.call(this,_1e6,_1e7);
+}
+});
+}};
+$.fn.progressbar.parseOptions=function(_1e8){
+return $.extend({},$.parser.parseOptions(_1e8,["width","height","text",{value:"number"}]));
+};
+$.fn.progressbar.defaults={width:"auto",height:22,value:0,text:"{value}%",onChange:function(_1e9,_1ea){
+}};
+})(jQuery);
+(function($){
+function init(_1eb){
+$(_1eb).addClass("tooltip-f");
+};
+function _1ec(_1ed){
+var opts=$.data(_1ed,"tooltip").options;
+$(_1ed).unbind(".tooltip").bind(opts.showEvent+".tooltip",function(e){
+$(_1ed).tooltip("show",e);
+}).bind(opts.hideEvent+".tooltip",function(e){
+$(_1ed).tooltip("hide",e);
+}).bind("mousemove.tooltip",function(e){
+if(opts.trackMouse){
+opts.trackMouseX=e.pageX;
+opts.trackMouseY=e.pageY;
+$(_1ed).tooltip("reposition");
+}
+});
+};
+function _1ee(_1ef){
+var _1f0=$.data(_1ef,"tooltip");
+if(_1f0.showTimer){
+clearTimeout(_1f0.showTimer);
+_1f0.showTimer=null;
+}
+if(_1f0.hideTimer){
+clearTimeout(_1f0.hideTimer);
+_1f0.hideTimer=null;
+}
+};
+function _1f1(_1f2){
+var _1f3=$.data(_1f2,"tooltip");
+if(!_1f3||!_1f3.tip){
+return;
+}
+var opts=_1f3.options;
+var tip=_1f3.tip;
+var pos={left:-100000,top:-100000};
+if($(_1f2).is(":visible")){
+pos=_1f4(opts.position);
+if(opts.position=="top"&&pos.top<0){
+pos=_1f4("bottom");
+}else{
+if((opts.position=="bottom")&&(pos.top+tip._outerHeight()>$(window)._outerHeight()+$(document).scrollTop())){
+pos=_1f4("top");
+}
+}
+if(pos.left<0){
+if(opts.position=="left"){
+pos=_1f4("right");
+}else{
+$(_1f2).tooltip("arrow").css("left",tip._outerWidth()/2+pos.left);
+pos.left=0;
+}
+}else{
+if(pos.left+tip._outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){
+if(opts.position=="right"){
+pos=_1f4("left");
+}else{
+var left=pos.left;
+pos.left=$(window)._outerWidth()+$(document)._scrollLeft()-tip._outerWidth();
+$(_1f2).tooltip("arrow").css("left",tip._outerWidth()/2-(pos.left-left));
+}
+}
+}
+}
+tip.css({left:pos.left,top:pos.top,zIndex:(opts.zIndex!=undefined?opts.zIndex:($.fn.window?$.fn.window.defaults.zIndex++:""))});
+opts.onPosition.call(_1f2,pos.left,pos.top);
+function _1f4(_1f5){
+opts.position=_1f5||"bottom";
+tip.removeClass("tooltip-top tooltip-bottom tooltip-left tooltip-right").addClass("tooltip-"+opts.position);
+var left,top;
+if(opts.trackMouse){
+t=$();
+left=opts.trackMouseX+opts.deltaX;
+top=opts.trackMouseY+opts.deltaY;
+}else{
+var t=$(_1f2);
+left=t.offset().left+opts.deltaX;
+top=t.offset().top+opts.deltaY;
+}
+switch(opts.position){
+case "right":
+left+=t._outerWidth()+12+(opts.trackMouse?12:0);
+top-=(tip._outerHeight()-t._outerHeight())/2;
+break;
+case "left":
+left-=tip._outerWidth()+12+(opts.trackMouse?12:0);
+top-=(tip._outerHeight()-t._outerHeight())/2;
+break;
+case "top":
+left-=(tip._outerWidth()-t._outerWidth())/2;
+top-=tip._outerHeight()+12+(opts.trackMouse?12:0);
+break;
+case "bottom":
+left-=(tip._outerWidth()-t._outerWidth())/2;
+top+=t._outerHeight()+12+(opts.trackMouse?12:0);
+break;
+}
+return {left:left,top:top};
+};
+};
+function _1f6(_1f7,e){
+var _1f8=$.data(_1f7,"tooltip");
+var opts=_1f8.options;
+var tip=_1f8.tip;
+if(!tip){
+tip=$("<div tabindex=\"-1\" class=\"tooltip\">"+"<div class=\"tooltip-content\"></div>"+"<div class=\"tooltip-arrow-outer\"></div>"+"<div class=\"tooltip-arrow\"></div>"+"</div>").appendTo("body");
+_1f8.tip=tip;
+_1f9(_1f7);
+}
+_1ee(_1f7);
+_1f8.showTimer=setTimeout(function(){
+$(_1f7).tooltip("reposition");
+tip.show();
+opts.onShow.call(_1f7,e);
+var _1fa=tip.children(".tooltip-arrow-outer");
+var _1fb=tip.children(".tooltip-arrow");
+var bc="border-"+opts.position+"-color";
+_1fa.add(_1fb).css({borderTopColor:"",borderBottomColor:"",borderLeftColor:"",borderRightColor:""});
+_1fa.css(bc,tip.css(bc));
+_1fb.css(bc,tip.css("backgroundColor"));
+},opts.showDelay);
+};
+function _1fc(_1fd,e){
+var _1fe=$.data(_1fd,"tooltip");
+if(_1fe&&_1fe.tip){
+_1ee(_1fd);
+_1fe.hideTimer=setTimeout(function(){
+_1fe.tip.hide();
+_1fe.options.onHide.call(_1fd,e);
+},_1fe.options.hideDelay);
+}
+};
+function _1f9(_1ff,_200){
+var _201=$.data(_1ff,"tooltip");
+var opts=_201.options;
+if(_200){
+opts.content=_200;
+}
+if(!_201.tip){
+return;
+}
+var cc=typeof opts.content=="function"?opts.content.call(_1ff):opts.content;
+_201.tip.children(".tooltip-content").html(cc);
+opts.onUpdate.call(_1ff,cc);
+};
+function _202(_203){
+var _204=$.data(_203,"tooltip");
+if(_204){
+_1ee(_203);
+var opts=_204.options;
+if(_204.tip){
+_204.tip.remove();
+}
+if(opts._title){
+$(_203).attr("title",opts._title);
+}
+$.removeData(_203,"tooltip");
+$(_203).unbind(".tooltip").removeClass("tooltip-f");
+opts.onDestroy.call(_203);
+}
+};
+$.fn.tooltip=function(_205,_206){
+if(typeof _205=="string"){
+return $.fn.tooltip.methods[_205](this,_206);
+}
+_205=_205||{};
+return this.each(function(){
+var _207=$.data(this,"tooltip");
+if(_207){
+$.extend(_207.options,_205);
+}else{
+$.data(this,"tooltip",{options:$.extend({},$.fn.tooltip.defaults,$.fn.tooltip.parseOptions(this),_205)});
+init(this);
+}
+_1ec(this);
+_1f9(this);
+});
+};
+$.fn.tooltip.methods={options:function(jq){
+return $.data(jq[0],"tooltip").options;
+},tip:function(jq){
+return $.data(jq[0],"tooltip").tip;
+},arrow:function(jq){
+return jq.tooltip("tip").children(".tooltip-arrow-outer,.tooltip-arrow");
+},show:function(jq,e){
+return jq.each(function(){
+_1f6(this,e);
+});
+},hide:function(jq,e){
+return jq.each(function(){
+_1fc(this,e);
+});
+},update:function(jq,_208){
+return jq.each(function(){
+_1f9(this,_208);
+});
+},reposition:function(jq){
+return jq.each(function(){
+_1f1(this);
+});
+},destroy:function(jq){
+return jq.each(function(){
+_202(this);
+});
+}};
+$.fn.tooltip.parseOptions=function(_209){
+var t=$(_209);
+var opts=$.extend({},$.parser.parseOptions(_209,["position","showEvent","hideEvent","content",{trackMouse:"boolean",deltaX:"number",deltaY:"number",showDelay:"number",hideDelay:"number"}]),{_title:t.attr("title")});
+t.attr("title","");
+if(!opts.content){
+opts.content=opts._title;
+}
+return opts;
+};
+$.fn.tooltip.defaults={position:"bottom",content:null,trackMouse:false,deltaX:0,deltaY:0,showEvent:"mouseenter",hideEvent:"mouseleave",showDelay:200,hideDelay:100,onShow:function(e){
+},onHide:function(e){
+},onUpdate:function(_20a){
+},onPosition:function(left,top){
+},onDestroy:function(){
+}};
+})(jQuery);
+(function($){
+$.fn._remove=function(){
+return this.each(function(){
+$(this).remove();
+try{
+this.outerHTML="";
+}
+catch(err){
+}
+});
+};
+function _20b(node){
+node._remove();
+};
+function _20c(_20d,_20e){
+var _20f=$.data(_20d,"panel");
+var opts=_20f.options;
+var _210=_20f.panel;
+var _211=_210.children(".panel-header");
+var _212=_210.children(".panel-body");
+var _213=_210.children(".panel-footer");
+if(_20e){
+$.extend(opts,{width:_20e.width,height:_20e.height,minWidth:_20e.minWidth,maxWidth:_20e.maxWidth,minHeight:_20e.minHeight,maxHeight:_20e.maxHeight,left:_20e.left,top:_20e.top});
+}
+_210._size(opts);
+_211.add(_212)._outerWidth(_210.width());
+if(!isNaN(parseInt(opts.height))){
+_212._outerHeight(_210.height()-_211._outerHeight()-_213._outerHeight());
+}else{
+_212.css("height","");
+var min=$.parser.parseValue("minHeight",opts.minHeight,_210.parent());
+var max=$.parser.parseValue("maxHeight",opts.maxHeight,_210.parent());
+var _214=_211._outerHeight()+_213._outerHeight()+_210._outerHeight()-_210.height();
+_212._size("minHeight",min?(min-_214):"");
+_212._size("maxHeight",max?(max-_214):"");
+}
+_210.css({height:"",minHeight:"",maxHeight:"",left:opts.left,top:opts.top});
+opts.onResize.apply(_20d,[opts.width,opts.height]);
+$(_20d).panel("doLayout");
+};
+function _215(_216,_217){
+var opts=$.data(_216,"panel").options;
+var _218=$.data(_216,"panel").panel;
+if(_217){
+if(_217.left!=null){
+opts.left=_217.left;
+}
+if(_217.top!=null){
+opts.top=_217.top;
+}
+}
+_218.css({left:opts.left,top:opts.top});
+opts.onMove.apply(_216,[opts.left,opts.top]);
+};
+function _219(_21a){
+$(_21a).addClass("panel-body")._size("clear");
+var _21b=$("<div class=\"panel\"></div>").insertBefore(_21a);
+_21b[0].appendChild(_21a);
+_21b.bind("_resize",function(e,_21c){
+if($(this).hasClass("easyui-fluid")||_21c){
+_20c(_21a);
+}
+return false;
+});
+return _21b;
+};
+function _21d(_21e){
+var _21f=$.data(_21e,"panel");
+var opts=_21f.options;
+var _220=_21f.panel;
+_220.css(opts.style);
+_220.addClass(opts.cls);
+_221();
+_222();
+var _223=$(_21e).panel("header");
+var body=$(_21e).panel("body");
+var _224=$(_21e).siblings(".panel-footer");
+if(opts.border){
+_223.removeClass("panel-header-noborder");
+body.removeClass("panel-body-noborder");
+_224.removeClass("panel-footer-noborder");
+}else{
+_223.addClass("panel-header-noborder");
+body.addClass("panel-body-noborder");
+_224.addClass("panel-footer-noborder");
+}
+_223.addClass(opts.headerCls);
+body.addClass(opts.bodyCls);
+$(_21e).attr("id",opts.id||"");
+if(opts.content){
+$(_21e).panel("clear");
+$(_21e).html(opts.content);
+$.parser.parse($(_21e));
+}
+function _221(){
+if(opts.noheader||(!opts.title&&!opts.header)){
+_20b(_220.children(".panel-header"));
+_220.children(".panel-body").addClass("panel-body-noheader");
+}else{
+if(opts.header){
+$(opts.header).addClass("panel-header").prependTo(_220);
+}else{
+var _225=_220.children(".panel-header");
+if(!_225.length){
+_225=$("<div class=\"panel-header\"></div>").prependTo(_220);
+}
+if(!$.isArray(opts.tools)){
+_225.find("div.panel-tool .panel-tool-a").appendTo(opts.tools);
+}
+_225.empty();
+var _226=$("<div class=\"panel-title\"></div>").html(opts.title).appendTo(_225);
+if(opts.iconCls){
+_226.addClass("panel-with-icon");
+$("<div class=\"panel-icon\"></div>").addClass(opts.iconCls).appendTo(_225);
+}
+var tool=$("<div class=\"panel-tool\"></div>").appendTo(_225);
+tool.bind("click",function(e){
+e.stopPropagation();
+});
+if(opts.tools){
+if($.isArray(opts.tools)){
+$.map(opts.tools,function(t){
+_227(tool,t.iconCls,eval(t.handler));
+});
+}else{
+$(opts.tools).children().each(function(){
+$(this).addClass($(this).attr("iconCls")).addClass("panel-tool-a").appendTo(tool);
+});
+}
+}
+if(opts.collapsible){
+_227(tool,"panel-tool-collapse",function(){
+if(opts.collapsed==true){
+_245(_21e,true);
+}else{
+_238(_21e,true);
+}
+});
+}
+if(opts.minimizable){
+_227(tool,"panel-tool-min",function(){
+_24b(_21e);
+});
+}
+if(opts.maximizable){
+_227(tool,"panel-tool-max",function(){
+if(opts.maximized==true){
+_24e(_21e);
+}else{
+_237(_21e);
+}
+});
+}
+if(opts.closable){
+_227(tool,"panel-tool-close",function(){
+_239(_21e);
+});
+}
+}
+_220.children("div.panel-body").removeClass("panel-body-noheader");
+}
+};
+function _227(c,icon,_228){
+var a=$("<a href=\"javascript:void(0)\"></a>").addClass(icon).appendTo(c);
+a.bind("click",_228);
+};
+function _222(){
+if(opts.footer){
+$(opts.footer).addClass("panel-footer").appendTo(_220);
+$(_21e).addClass("panel-body-nobottom");
+}else{
+_220.children(".panel-footer").remove();
+$(_21e).removeClass("panel-body-nobottom");
+}
+};
+};
+function _229(_22a,_22b){
+var _22c=$.data(_22a,"panel");
+var opts=_22c.options;
+if(_22d){
+opts.queryParams=_22b;
+}
+if(!opts.href){
+return;
+}
+if(!_22c.isLoaded||!opts.cache){
+var _22d=$.extend({},opts.queryParams);
+if(opts.onBeforeLoad.call(_22a,_22d)==false){
+return;
+}
+_22c.isLoaded=false;
+$(_22a).panel("clear");
+if(opts.loadingMessage){
+$(_22a).html($("<div class=\"panel-loading\"></div>").html(opts.loadingMessage));
+}
+opts.loader.call(_22a,_22d,function(data){
+var _22e=opts.extractor.call(_22a,data);
+$(_22a).html(_22e);
+$.parser.parse($(_22a));
+opts.onLoad.apply(_22a,arguments);
+_22c.isLoaded=true;
+},function(){
+opts.onLoadError.apply(_22a,arguments);
+});
+}
+};
+function _22f(_230){
+var t=$(_230);
+t.find(".combo-f").each(function(){
+$(this).combo("destroy");
+});
+t.find(".m-btn").each(function(){
+$(this).menubutton("destroy");
+});
+t.find(".s-btn").each(function(){
+$(this).splitbutton("destroy");
+});
+t.find(".tooltip-f").each(function(){
+$(this).tooltip("destroy");
+});
+t.children("div").each(function(){
+$(this)._size("unfit");
+});
+t.empty();
+};
+function _231(_232){
+$(_232).panel("doLayout",true);
+};
+function _233(_234,_235){
+var opts=$.data(_234,"panel").options;
+var _236=$.data(_234,"panel").panel;
+if(_235!=true){
+if(opts.onBeforeOpen.call(_234)==false){
+return;
+}
+}
+_236.stop(true,true);
+if($.isFunction(opts.openAnimation)){
+opts.openAnimation.call(_234,cb);
+}else{
+switch(opts.openAnimation){
+case "slide":
+_236.slideDown(opts.openDuration,cb);
+break;
+case "fade":
+_236.fadeIn(opts.openDuration,cb);
+break;
+case "show":
+_236.show(opts.openDuration,cb);
+break;
+default:
+_236.show();
+cb();
+}
+}
+function cb(){
+opts.closed=false;
+opts.minimized=false;
+var tool=_236.children(".panel-header").find("a.panel-tool-restore");
+if(tool.length){
+opts.maximized=true;
+}
+opts.onOpen.call(_234);
+if(opts.maximized==true){
+opts.maximized=false;
+_237(_234);
+}
+if(opts.collapsed==true){
+opts.collapsed=false;
+_238(_234);
+}
+if(!opts.collapsed){
+_229(_234);
+_231(_234);
+}
+};
+};
+function _239(_23a,_23b){
+var opts=$.data(_23a,"panel").options;
+var _23c=$.data(_23a,"panel").panel;
+if(_23b!=true){
+if(opts.onBeforeClose.call(_23a)==false){
+return;
+}
+}
+_23c.stop(true,true);
+_23c._size("unfit");
+if($.isFunction(opts.closeAnimation)){
+opts.closeAnimation.call(_23a,cb);
+}else{
+switch(opts.closeAnimation){
+case "slide":
+_23c.slideUp(opts.closeDuration,cb);
+break;
+case "fade":
+_23c.fadeOut(opts.closeDuration,cb);
+break;
+case "hide":
+_23c.hide(opts.closeDuration,cb);
+break;
+default:
+_23c.hide();
+cb();
+}
+}
+function cb(){
+opts.closed=true;
+opts.onClose.call(_23a);
+};
+};
+function _23d(_23e,_23f){
+var _240=$.data(_23e,"panel");
+var opts=_240.options;
+var _241=_240.panel;
+if(_23f!=true){
+if(opts.onBeforeDestroy.call(_23e)==false){
+return;
+}
+}
+$(_23e).panel("clear").panel("clear","footer");
+_20b(_241);
+opts.onDestroy.call(_23e);
+};
+function _238(_242,_243){
+var opts=$.data(_242,"panel").options;
+var _244=$.data(_242,"panel").panel;
+var body=_244.children(".panel-body");
+var tool=_244.children(".panel-header").find("a.panel-tool-collapse");
+if(opts.collapsed==true){
+return;
+}
+body.stop(true,true);
+if(opts.onBeforeCollapse.call(_242)==false){
+return;
+}
+tool.addClass("panel-tool-expand");
+if(_243==true){
+body.slideUp("normal",function(){
+opts.collapsed=true;
+opts.onCollapse.call(_242);
+});
+}else{
+body.hide();
+opts.collapsed=true;
+opts.onCollapse.call(_242);
+}
+};
+function _245(_246,_247){
+var opts=$.data(_246,"panel").options;
+var _248=$.data(_246,"panel").panel;
+var body=_248.children(".panel-body");
+var tool=_248.children(".panel-header").find("a.panel-tool-collapse");
+if(opts.collapsed==false){
+return;
+}
+body.stop(true,true);
+if(opts.onBeforeExpand.call(_246)==false){
+return;
+}
+tool.removeClass("panel-tool-expand");
+if(_247==true){
+body.slideDown("normal",function(){
+opts.collapsed=false;
+opts.onExpand.call(_246);
+_229(_246);
+_231(_246);
+});
+}else{
+body.show();
+opts.collapsed=false;
+opts.onExpand.call(_246);
+_229(_246);
+_231(_246);
+}
+};
+function _237(_249){
+var opts=$.data(_249,"panel").options;
+var _24a=$.data(_249,"panel").panel;
+var tool=_24a.children(".panel-header").find("a.panel-tool-max");
+if(opts.maximized==true){
+return;
+}
+tool.addClass("panel-tool-restore");
+if(!$.data(_249,"panel").original){
+$.data(_249,"panel").original={width:opts.width,height:opts.height,left:opts.left,top:opts.top,fit:opts.fit};
+}
+opts.left=0;
+opts.top=0;
+opts.fit=true;
+_20c(_249);
+opts.minimized=false;
+opts.maximized=true;
+opts.onMaximize.call(_249);
+};
+function _24b(_24c){
+var opts=$.data(_24c,"panel").options;
+var _24d=$.data(_24c,"panel").panel;
+_24d._size("unfit");
+_24d.hide();
+opts.minimized=true;
+opts.maximized=false;
+opts.onMinimize.call(_24c);
+};
+function _24e(_24f){
+var opts=$.data(_24f,"panel").options;
+var _250=$.data(_24f,"panel").panel;
+var tool=_250.children(".panel-header").find("a.panel-tool-max");
+if(opts.maximized==false){
+return;
+}
+_250.show();
+tool.removeClass("panel-tool-restore");
+$.extend(opts,$.data(_24f,"panel").original);
+_20c(_24f);
+opts.minimized=false;
+opts.maximized=false;
+$.data(_24f,"panel").original=null;
+opts.onRestore.call(_24f);
+};
+function _251(_252,_253){
+$.data(_252,"panel").options.title=_253;
+$(_252).panel("header").find("div.panel-title").html(_253);
+};
+var _254=null;
+$(window).unbind(".panel").bind("resize.panel",function(){
+if(_254){
+clearTimeout(_254);
+}
+_254=setTimeout(function(){
+var _255=$("body.layout");
+if(_255.length){
+_255.layout("resize");
+$("body").children(".easyui-fluid:visible").each(function(){
+$(this).triggerHandler("_resize");
+});
+}else{
+$("body").panel("doLayout");
+}
+_254=null;
+},100);
+});
+$.fn.panel=function(_256,_257){
+if(typeof _256=="string"){
+return $.fn.panel.methods[_256](this,_257);
+}
+_256=_256||{};
+return this.each(function(){
+var _258=$.data(this,"panel");
+var opts;
+if(_258){
+opts=$.extend(_258.options,_256);
+_258.isLoaded=false;
+}else{
+opts=$.extend({},$.fn.panel.defaults,$.fn.panel.parseOptions(this),_256);
+$(this).attr("title","");
+_258=$.data(this,"panel",{options:opts,panel:_219(this),isLoaded:false});
+}
+_21d(this);
+if(opts.doSize==true){
+_258.panel.css("display","block");
+_20c(this);
+}
+if(opts.closed==true||opts.minimized==true){
+_258.panel.hide();
+}else{
+_233(this);
+}
+});
+};
+$.fn.panel.methods={options:function(jq){
+return $.data(jq[0],"panel").options;
+},panel:function(jq){
+return $.data(jq[0],"panel").panel;
+},header:function(jq){
+return $.data(jq[0],"panel").panel.children(".panel-header");
+},footer:function(jq){
+return jq.panel("panel").children(".panel-footer");
+},body:function(jq){
+return $.data(jq[0],"panel").panel.children(".panel-body");
+},setTitle:function(jq,_259){
+return jq.each(function(){
+_251(this,_259);
+});
+},open:function(jq,_25a){
+return jq.each(function(){
+_233(this,_25a);
+});
+},close:function(jq,_25b){
+return jq.each(function(){
+_239(this,_25b);
+});
+},destroy:function(jq,_25c){
+return jq.each(function(){
+_23d(this,_25c);
+});
+},clear:function(jq,type){
+return jq.each(function(){
+_22f(type=="footer"?$(this).panel("footer"):this);
+});
+},refresh:function(jq,href){
+return jq.each(function(){
+var _25d=$.data(this,"panel");
+_25d.isLoaded=false;
+if(href){
+if(typeof href=="string"){
+_25d.options.href=href;
+}else{
+_25d.options.queryParams=href;
+}
+}
+_229(this);
+});
+},resize:function(jq,_25e){
+return jq.each(function(){
+_20c(this,_25e);
+});
+},doLayout:function(jq,all){
+return jq.each(function(){
+_25f(this,"body");
+_25f($(this).siblings(".panel-footer")[0],"footer");
+function _25f(_260,type){
+if(!_260){
+return;
+}
+var _261=_260==$("body")[0];
+var s=$(_260).find("div.panel:visible,div.accordion:visible,div.tabs-container:visible,div.layout:visible,.easyui-fluid:visible").filter(function(_262,el){
+var p=$(el).parents(".panel-"+type+":first");
+return _261?p.length==0:p[0]==_260;
+});
+s.each(function(){
+$(this).triggerHandler("_resize",[all||false]);
+});
+};
+});
+},move:function(jq,_263){
+return jq.each(function(){
+_215(this,_263);
+});
+},maximize:function(jq){
+return jq.each(function(){
+_237(this);
+});
+},minimize:function(jq){
+return jq.each(function(){
+_24b(this);
+});
+},restore:function(jq){
+return jq.each(function(){
+_24e(this);
+});
+},collapse:function(jq,_264){
+return jq.each(function(){
+_238(this,_264);
+});
+},expand:function(jq,_265){
+return jq.each(function(){
+_245(this,_265);
+});
+}};
+$.fn.panel.parseOptions=function(_266){
+var t=$(_266);
+var hh=t.children(".panel-header,header");
+var ff=t.children(".panel-footer,footer");
+return $.extend({},$.parser.parseOptions(_266,["id","width","height","left","top","title","iconCls","cls","headerCls","bodyCls","tools","href","method","header","footer",{cache:"boolean",fit:"boolean",border:"boolean",noheader:"boolean"},{collapsible:"boolean",minimizable:"boolean",maximizable:"boolean"},{closable:"boolean",collapsed:"boolean",minimized:"boolean",maximized:"boolean",closed:"boolean"},"openAnimation","closeAnimation",{openDuration:"number",closeDuration:"number"},]),{loadingMessage:(t.attr("loadingMessage")!=undefined?t.attr("loadingMessage"):undefined),header:(hh.length?hh.removeClass("panel-header"):undefined),footer:(ff.length?ff.removeClass("panel-footer"):undefined)});
+};
+$.fn.panel.defaults={id:null,title:null,iconCls:null,width:"auto",height:"auto",left:null,top:null,cls:null,headerCls:null,bodyCls:null,style:{},href:null,cache:true,fit:false,border:true,doSize:true,noheader:false,content:null,collapsible:false,minimizable:false,maximizable:false,closable:false,collapsed:false,minimized:false,maximized:false,closed:false,openAnimation:false,openDuration:400,closeAnimation:false,closeDuration:400,tools:null,footer:null,header:null,queryParams:{},method:"get",href:null,loadingMessage:"Loading...",loader:function(_267,_268,_269){
+var opts=$(this).panel("options");
+if(!opts.href){
+return false;
+}
+$.ajax({type:opts.method,url:opts.href,cache:false,data:_267,dataType:"html",success:function(data){
+_268(data);
+},error:function(){
+_269.apply(this,arguments);
+}});
+},extractor:function(data){
+var _26a=/<body[^>]*>((.|[\n\r])*)<\/body>/im;
+var _26b=_26a.exec(data);
+if(_26b){
+return _26b[1];
+}else{
+return data;
+}
+},onBeforeLoad:function(_26c){
+},onLoad:function(){
+},onLoadError:function(){
+},onBeforeOpen:function(){
+},onOpen:function(){
+},onBeforeClose:function(){
+},onClose:function(){
+},onBeforeDestroy:function(){
+},onDestroy:function(){
+},onResize:function(_26d,_26e){
+},onMove:function(left,top){
+},onMaximize:function(){
+},onRestore:function(){
+},onMinimize:function(){
+},onBeforeCollapse:function(){
+},onBeforeExpand:function(){
+},onCollapse:function(){
+},onExpand:function(){
+}};
+})(jQuery);
+(function($){
+function _26f(_270,_271){
+var _272=$.data(_270,"window");
+if(_271){
+if(_271.left!=null){
+_272.options.left=_271.left;
+}
+if(_271.top!=null){
+_272.options.top=_271.top;
+}
+}
+$(_270).panel("move",_272.options);
+if(_272.shadow){
+_272.shadow.css({left:_272.options.left,top:_272.options.top});
+}
+};
+function _273(_274,_275){
+var opts=$.data(_274,"window").options;
+var pp=$(_274).window("panel");
+var _276=pp._outerWidth();
+if(opts.inline){
+var _277=pp.parent();
+opts.left=Math.ceil((_277.width()-_276)/2+_277.scrollLeft());
+}else{
+opts.left=Math.ceil(($(window)._outerWidth()-_276)/2+$(document).scrollLeft());
+}
+if(_275){
+_26f(_274);
+}
+};
+function _278(_279,_27a){
+var opts=$.data(_279,"window").options;
+var pp=$(_279).window("panel");
+var _27b=pp._outerHeight();
+if(opts.inline){
+var _27c=pp.parent();
+opts.top=Math.ceil((_27c.height()-_27b)/2+_27c.scrollTop());
+}else{
+opts.top=Math.ceil(($(window)._outerHeight()-_27b)/2+$(document).scrollTop());
+}
+if(_27a){
+_26f(_279);
+}
+};
+function _27d(_27e){
+var _27f=$.data(_27e,"window");
+var opts=_27f.options;
+var win=$(_27e).panel($.extend({},_27f.options,{border:false,doSize:true,closed:true,cls:"window",headerCls:"window-header",bodyCls:"window-body "+(opts.noheader?"window-body-noheader":""),onBeforeDestroy:function(){
+if(opts.onBeforeDestroy.call(_27e)==false){
+return false;
+}
+if(_27f.shadow){
+_27f.shadow.remove();
+}
+if(_27f.mask){
+_27f.mask.remove();
+}
+},onClose:function(){
+if(_27f.shadow){
+_27f.shadow.hide();
+}
+if(_27f.mask){
+_27f.mask.hide();
+}
+opts.onClose.call(_27e);
+},onOpen:function(){
+if(_27f.mask){
+_27f.mask.css($.extend({display:"block",zIndex:$.fn.window.defaults.zIndex++},$.fn.window.getMaskSize(_27e)));
+}
+if(_27f.shadow){
+_27f.shadow.css({display:"block",zIndex:$.fn.window.defaults.zIndex++,left:opts.left,top:opts.top,width:_27f.window._outerWidth(),height:_27f.window._outerHeight()});
+}
+_27f.window.css("z-index",$.fn.window.defaults.zIndex++);
+opts.onOpen.call(_27e);
+},onResize:function(_280,_281){
+var _282=$(this).panel("options");
+$.extend(opts,{width:_282.width,height:_282.height,left:_282.left,top:_282.top});
+if(_27f.shadow){
+_27f.shadow.css({left:opts.left,top:opts.top,width:_27f.window._outerWidth(),height:_27f.window._outerHeight()});
+}
+opts.onResize.call(_27e,_280,_281);
+},onMinimize:function(){
+if(_27f.shadow){
+_27f.shadow.hide();
+}
+if(_27f.mask){
+_27f.mask.hide();
+}
+_27f.options.onMinimize.call(_27e);
+},onBeforeCollapse:function(){
+if(opts.onBeforeCollapse.call(_27e)==false){
+return false;
+}
+if(_27f.shadow){
+_27f.shadow.hide();
+}
+},onExpand:function(){
+if(_27f.shadow){
+_27f.shadow.show();
+}
+opts.onExpand.call(_27e);
+}}));
+_27f.window=win.panel("panel");
+if(_27f.mask){
+_27f.mask.remove();
+}
+if(opts.modal){
+_27f.mask=$("<div class=\"window-mask\" style=\"display:none\"></div>").insertAfter(_27f.window);
+}
+if(_27f.shadow){
+_27f.shadow.remove();
+}
+if(opts.shadow){
+_27f.shadow=$("<div class=\"window-shadow\" style=\"display:none\"></div>").insertAfter(_27f.window);
+}
+var _283=opts.closed;
+if(opts.left==null){
+_273(_27e);
+}
+if(opts.top==null){
+_278(_27e);
+}
+_26f(_27e);
+if(!_283){
+win.window("open");
+}
+};
+function _284(_285){
+var _286=$.data(_285,"window");
+_286.window.draggable({handle:">div.panel-header>div.panel-title",disabled:_286.options.draggable==false,onStartDrag:function(e){
+if(_286.mask){
+_286.mask.css("z-index",$.fn.window.defaults.zIndex++);
+}
+if(_286.shadow){
+_286.shadow.css("z-index",$.fn.window.defaults.zIndex++);
+}
+_286.window.css("z-index",$.fn.window.defaults.zIndex++);
+if(!_286.proxy){
+_286.proxy=$("<div class=\"window-proxy\"></div>").insertAfter(_286.window);
+}
+_286.proxy.css({display:"none",zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});
+_286.proxy._outerWidth(_286.window._outerWidth());
+_286.proxy._outerHeight(_286.window._outerHeight());
+setTimeout(function(){
+if(_286.proxy){
+_286.proxy.show();
+}
+},500);
+},onDrag:function(e){
+_286.proxy.css({display:"block",left:e.data.left,top:e.data.top});
+return false;
+},onStopDrag:function(e){
+_286.options.left=e.data.left;
+_286.options.top=e.data.top;
+$(_285).window("move");
+_286.proxy.remove();
+_286.proxy=null;
+}});
+_286.window.resizable({disabled:_286.options.resizable==false,onStartResize:function(e){
+if(_286.pmask){
+_286.pmask.remove();
+}
+_286.pmask=$("<div class=\"window-proxy-mask\"></div>").insertAfter(_286.window);
+_286.pmask.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top,width:_286.window._outerWidth(),height:_286.window._outerHeight()});
+if(_286.proxy){
+_286.proxy.remove();
+}
+_286.proxy=$("<div class=\"window-proxy\"></div>").insertAfter(_286.window);
+_286.proxy.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});
+_286.proxy._outerWidth(e.data.width)._outerHeight(e.data.height);
+},onResize:function(e){
+_286.proxy.css({left:e.data.left,top:e.data.top});
+_286.proxy._outerWidth(e.data.width);
+_286.proxy._outerHeight(e.data.height);
+return false;
+},onStopResize:function(e){
+$(_285).window("resize",e.data);
+_286.pmask.remove();
+_286.pmask=null;
+_286.proxy.remove();
+_286.proxy=null;
+}});
+};
+$(window).resize(function(){
+$("body>div.window-mask").css({width:$(window)._outerWidth(),height:$(window)._outerHeight()});
+setTimeout(function(){
+$("body>div.window-mask").css($.fn.window.getMaskSize());
+},50);
+});
+$.fn.window=function(_287,_288){
+if(typeof _287=="string"){
+var _289=$.fn.window.methods[_287];
+if(_289){
+return _289(this,_288);
+}else{
+return this.panel(_287,_288);
+}
+}
+_287=_287||{};
+return this.each(function(){
+var _28a=$.data(this,"window");
+if(_28a){
+$.extend(_28a.options,_287);
+}else{
+_28a=$.data(this,"window",{options:$.extend({},$.fn.window.defaults,$.fn.window.parseOptions(this),_287)});
+if(!_28a.options.inline){
+document.body.appendChild(this);
+}
+}
+_27d(this);
+_284(this);
+});
+};
+$.fn.window.methods={options:function(jq){
+var _28b=jq.panel("options");
+var _28c=$.data(jq[0],"window").options;
+return $.extend(_28c,{closed:_28b.closed,collapsed:_28b.collapsed,minimized:_28b.minimized,maximized:_28b.maximized});
+},window:function(jq){
+return $.data(jq[0],"window").window;
+},move:function(jq,_28d){
+return jq.each(function(){
+_26f(this,_28d);
+});
+},hcenter:function(jq){
+return jq.each(function(){
+_273(this,true);
+});
+},vcenter:function(jq){
+return jq.each(function(){
+_278(this,true);
+});
+},center:function(jq){
+return jq.each(function(){
+_273(this);
+_278(this);
+_26f(this);
+});
+}};
+$.fn.window.getMaskSize=function(_28e){
+var _28f=$(_28e).data("window");
+var _290=(_28f&&_28f.options.inline);
+return {width:(_290?"100%":$(document).width()),height:(_290?"100%":$(document).height())};
+};
+$.fn.window.parseOptions=function(_291){
+return $.extend({},$.fn.panel.parseOptions(_291),$.parser.parseOptions(_291,[{draggable:"boolean",resizable:"boolean",shadow:"boolean",modal:"boolean",inline:"boolean"}]));
+};
+$.fn.window.defaults=$.extend({},$.fn.panel.defaults,{zIndex:9000,draggable:true,resizable:true,shadow:true,modal:false,inline:false,title:"New Window",collapsible:true,minimizable:true,maximizable:true,closable:true,closed:false});
+})(jQuery);
+(function($){
+function _292(_293){
+var opts=$.data(_293,"dialog").options;
+opts.inited=false;
+$(_293).window($.extend({},opts,{onResize:function(w,h){
+if(opts.inited){
+_298(this);
+opts.onResize.call(this,w,h);
+}
+}}));
+var win=$(_293).window("window");
+if(opts.toolbar){
+if($.isArray(opts.toolbar)){
+$(_293).siblings("div.dialog-toolbar").remove();
+var _294=$("<div class=\"dialog-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").appendTo(win);
+var tr=_294.find("tr");
+for(var i=0;i<opts.toolbar.length;i++){
+var btn=opts.toolbar[i];
+if(btn=="-"){
+$("<td><div class=\"dialog-tool-separator\"></div></td>").appendTo(tr);
+}else{
+var td=$("<td></td>").appendTo(tr);
+var tool=$("<a href=\"javascript:void(0)\"></a>").appendTo(td);
+tool[0].onclick=eval(btn.handler||function(){
+});
+tool.linkbutton($.extend({},btn,{plain:true}));
+}
+}
+}else{
+$(opts.toolbar).addClass("dialog-toolbar").appendTo(win);
+$(opts.toolbar).show();
+}
+}else{
+$(_293).siblings("div.dialog-toolbar").remove();
+}
+if(opts.buttons){
+if($.isArray(opts.buttons)){
+$(_293).siblings("div.dialog-button").remove();
+var _295=$("<div class=\"dialog-button\"></div>").appendTo(win);
+for(var i=0;i<opts.buttons.length;i++){
+var p=opts.buttons[i];
+var _296=$("<a href=\"javascript:void(0)\"></a>").appendTo(_295);
+if(p.handler){
+_296[0].onclick=p.handler;
+}
+_296.linkbutton(p);
+}
+}else{
+$(opts.buttons).addClass("dialog-button").appendTo(win);
+$(opts.buttons).show();
+}
+}else{
+$(_293).siblings("div.dialog-button").remove();
+}
+opts.inited=true;
+var _297=opts.closed;
+win.show();
+$(_293).window("resize");
+if(_297){
+win.hide();
+}
+};
+function _298(_299,_29a){
+var t=$(_299);
+var opts=t.dialog("options");
+var _29b=opts.noheader;
+var tb=t.siblings(".dialog-toolbar");
+var bb=t.siblings(".dialog-button");
+tb.insertBefore(_299).css({position:"relative",borderTopWidth:(_29b?1:0),top:(_29b?tb.length:0)});
+bb.insertAfter(_299).css({position:"relative",top:-1});
+tb.add(bb)._outerWidth(t._outerWidth()).find(".easyui-fluid:visible").each(function(){
+$(this).triggerHandler("_resize");
+});
+var _29c=tb._outerHeight()+bb._outerHeight();
+if(!isNaN(parseInt(opts.height))){
+t._outerHeight(t._outerHeight()-_29c);
+}else{
+var _29d=t._size("min-height");
+if(_29d){
+t._size("min-height",_29d-_29c);
+}
+var _29e=t._size("max-height");
+if(_29e){
+t._size("max-height",_29e-_29c);
+}
+}
+var _29f=$.data(_299,"window").shadow;
+if(_29f){
+var cc=t.panel("panel");
+_29f.css({width:cc._outerWidth(),height:cc._outerHeight()});
+}
+};
+$.fn.dialog=function(_2a0,_2a1){
+if(typeof _2a0=="string"){
+var _2a2=$.fn.dialog.methods[_2a0];
+if(_2a2){
+return _2a2(this,_2a1);
+}else{
+return this.window(_2a0,_2a1);
+}
+}
+_2a0=_2a0||{};
+return this.each(function(){
+var _2a3=$.data(this,"dialog");
+if(_2a3){
+$.extend(_2a3.options,_2a0);
+}else{
+$.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),_2a0)});
+}
+_292(this);
+});
+};
+$.fn.dialog.methods={options:function(jq){
+var _2a4=$.data(jq[0],"dialog").options;
+var _2a5=jq.panel("options");
+$.extend(_2a4,{width:_2a5.width,height:_2a5.height,left:_2a5.left,top:_2a5.top,closed:_2a5.closed,collapsed:_2a5.collapsed,minimized:_2a5.minimized,maximized:_2a5.maximized});
+return _2a4;
+},dialog:function(jq){
+return jq.window("window");
+}};
+$.fn.dialog.parseOptions=function(_2a6){
+var t=$(_2a6);
+return $.extend({},$.fn.window.parseOptions(_2a6),$.parser.parseOptions(_2a6,["toolbar","buttons"]),{toolbar:(t.children(".dialog-toolbar").length?t.children(".dialog-toolbar").removeClass("dialog-toolbar"):undefined),buttons:(t.children(".dialog-button").length?t.children(".dialog-button").removeClass("dialog-button"):undefined)});
+};
+$.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null});
+})(jQuery);
+(function($){
+function _2a7(){
+$(document).unbind(".messager").bind("keydown.messager",function(e){
+if(e.keyCode==27){
+$("body").children("div.messager-window").children("div.messager-body").each(function(){
+$(this).dialog("close");
+});
+}else{
+if(e.keyCode==9){
+var win=$("body").children("div.messager-window");
+if(!win.length){
+return;
+}
+var _2a8=win.find(".messager-input,.messager-button .l-btn");
+for(var i=0;i<_2a8.length;i++){
+if($(_2a8[i]).is(":focus")){
+$(_2a8[i>=_2a8.length-1?0:i+1]).focus();
+return false;
+}
+}
+}
+}
+});
+};
+function _2a9(){
+$(document).unbind(".messager");
+};
+function _2aa(_2ab){
+var opts=$.extend({},$.messager.defaults,{modal:false,shadow:false,draggable:false,resizable:false,closed:true,style:{left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop},title:"",width:250,height:100,minHeight:0,showType:"slide",showSpeed:600,content:_2ab.msg,timeout:4000},_2ab);
+var dlg=$("<div class=\"messager-body\"></div>").appendTo("body");
+dlg.dialog($.extend({},opts,{noheader:(opts.title?false:true),openAnimation:(opts.showType),closeAnimation:(opts.showType=="show"?"hide":opts.showType),openDuration:opts.showSpeed,closeDuration:opts.showSpeed,onOpen:function(){
+dlg.dialog("dialog").hover(function(){
+if(opts.timer){
+clearTimeout(opts.timer);
+}
+},function(){
+_2ac();
+});
+_2ac();
+function _2ac(){
+if(opts.timeout>0){
+opts.timer=setTimeout(function(){
+if(dlg.length&&dlg.data("dialog")){
+dlg.dialog("close");
+}
+},opts.timeout);
+}
+};
+if(_2ab.onOpen){
+_2ab.onOpen.call(this);
+}else{
+opts.onOpen.call(this);
+}
+},onClose:function(){
+if(opts.timer){
+clearTimeout(opts.timer);
+}
+if(_2ab.onClose){
+_2ab.onClose.call(this);
+}else{
+opts.onClose.call(this);
+}
+dlg.dialog("destroy");
+}}));
+dlg.dialog("dialog").css(opts.style);
+dlg.dialog("open");
+return dlg;
+};
+function _2ad(_2ae){
+_2a7();
+var dlg=$("<div class=\"messager-body\"></div>").appendTo("body");
+dlg.dialog($.extend({},_2ae,{noheader:(_2ae.title?false:true),onClose:function(){
+_2a9();
+if(_2ae.onClose){
+_2ae.onClose.call(this);
+}
+setTimeout(function(){
+dlg.dialog("destroy");
+},100);
+}}));
+var win=dlg.dialog("dialog").addClass("messager-window");
+win.find(".dialog-button").addClass("messager-button").find("a:first").focus();
+return dlg;
+};
+function _2af(dlg,_2b0){
+dlg.dialog("close");
+dlg.dialog("options").fn(_2b0);
+};
+$.messager={show:function(_2b1){
+return _2aa(_2b1);
+},alert:function(_2b2,msg,icon,fn){
+var opts=typeof _2b2=="object"?_2b2:{title:_2b2,msg:msg,icon:icon,fn:fn};
+var cls=opts.icon?"messager-icon messager-"+opts.icon:"";
+opts=$.extend({},$.messager.defaults,{content:"<div class=\""+cls+"\"></div>"+"<div>"+opts.msg+"</div>"+"<div style=\"clear:both;\"/>"},opts);
+if(!opts.buttons){
+opts.buttons=[{text:opts.ok,onClick:function(){
+_2af(dlg);
+}}];
+}
+var dlg=_2ad(opts);
+return dlg;
+},confirm:function(_2b3,msg,fn){
+var opts=typeof _2b3=="object"?_2b3:{title:_2b3,msg:msg,fn:fn};
+opts=$.extend({},$.messager.defaults,{content:"<div class=\"messager-icon messager-question\"></div>"+"<div>"+opts.msg+"</div>"+"<div style=\"clear:both;\"/>"},opts);
+if(!opts.buttons){
+opts.buttons=[{text:opts.ok,onClick:function(){
+_2af(dlg,true);
+}},{text:opts.cancel,onClick:function(){
+_2af(dlg,false);
+}}];
+}
+var dlg=_2ad(opts);
+return dlg;
+},prompt:function(_2b4,msg,fn){
+var opts=typeof _2b4=="object"?_2b4:{title:_2b4,msg:msg,fn:fn};
+opts=$.extend({},$.messager.defaults,{content:"<div class=\"messager-icon messager-question\"></div>"+"<div>"+opts.msg+"</div>"+"<br/>"+"<div style=\"clear:both;\"/>"+"<div><input class=\"messager-input\" type=\"text\"/></div>"},opts);
+if(!opts.buttons){
+opts.buttons=[{text:opts.ok,onClick:function(){
+_2af(dlg,dlg.find(".messager-input").val());
+}},{text:opts.cancel,onClick:function(){
+_2af(dlg);
+}}];
+}
+var dlg=_2ad(opts);
+dlg.find("input.messager-input").focus();
+return dlg;
+},progress:function(_2b5){
+var _2b6={bar:function(){
+return $("body>div.messager-window").find("div.messager-p-bar");
+},close:function(){
+var dlg=$("body>div.messager-window>div.messager-body:has(div.messager-progress)");
+if(dlg.length){
+dlg.dialog("close");
+}
+}};
+if(typeof _2b5=="string"){
+var _2b7=_2b6[_2b5];
+return _2b7();
+}
+_2b5=_2b5||{};
+var opts=$.extend({},{title:"",minHeight:0,content:undefined,msg:"",text:undefined,interval:300},_2b5);
+var dlg=_2ad($.extend({},$.messager.defaults,{content:"<div class=\"messager-progress\"><div class=\"messager-p-msg\">"+opts.msg+"</div><div class=\"messager-p-bar\"></div></div>",closable:false,doSize:false},opts,{onClose:function(){
+if(this.timer){
+clearInterval(this.timer);
+}
+if(_2b5.onClose){
+_2b5.onClose.call(this);
+}else{
+$.messager.defaults.onClose.call(this);
+}
+}}));
+var bar=dlg.find("div.messager-p-bar");
+bar.progressbar({text:opts.text});
+dlg.dialog("resize");
+if(opts.interval){
+dlg[0].timer=setInterval(function(){
+var v=bar.progressbar("getValue");
+v+=10;
+if(v>100){
+v=0;
+}
+bar.progressbar("setValue",v);
+},opts.interval);
+}
+return dlg;
+}};
+$.messager.defaults=$.extend({},$.fn.dialog.defaults,{ok:"Ok",cancel:"Cancel",width:300,height:"auto",minHeight:150,modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,fn:function(){
+}});
+})(jQuery);
+(function($){
+function _2b8(_2b9,_2ba){
+var _2bb=$.data(_2b9,"accordion");
+var opts=_2bb.options;
+var _2bc=_2bb.panels;
+var cc=$(_2b9);
+if(_2ba){
+$.extend(opts,{width:_2ba.width,height:_2ba.height});
+}
+cc._size(opts);
+var _2bd=0;
+var _2be="auto";
+var _2bf=cc.find(">.panel>.accordion-header");
+if(_2bf.length){
+_2bd=$(_2bf[0]).css("height","")._outerHeight();
+}
+if(!isNaN(parseInt(opts.height))){
+_2be=cc.height()-_2bd*_2bf.length;
+}
+_2c0(true,_2be-_2c0(false)+1);
+function _2c0(_2c1,_2c2){
+var _2c3=0;
+for(var i=0;i<_2bc.length;i++){
+var p=_2bc[i];
+var h=p.panel("header")._outerHeight(_2bd);
+if(p.panel("options").collapsible==_2c1){
+var _2c4=isNaN(_2c2)?undefined:(_2c2+_2bd*h.length);
+p.panel("resize",{width:cc.width(),height:(_2c1?_2c4:undefined)});
+_2c3+=p.panel("panel").outerHeight()-_2bd*h.length;
+}
+}
+return _2c3;
+};
+};
+function _2c5(_2c6,_2c7,_2c8,all){
+var _2c9=$.data(_2c6,"accordion").panels;
+var pp=[];
+for(var i=0;i<_2c9.length;i++){
+var p=_2c9[i];
+if(_2c7){
+if(p.panel("options")[_2c7]==_2c8){
+pp.push(p);
+}
+}else{
+if(p[0]==$(_2c8)[0]){
+return i;
+}
+}
+}
+if(_2c7){
+return all?pp:(pp.length?pp[0]:null);
+}else{
+return -1;
+}
+};
+function _2ca(_2cb){
+return _2c5(_2cb,"collapsed",false,true);
+};
+function _2cc(_2cd){
+var pp=_2ca(_2cd);
+return pp.length?pp[0]:null;
+};
+function _2ce(_2cf,_2d0){
+return _2c5(_2cf,null,_2d0);
+};
+function _2d1(_2d2,_2d3){
+var _2d4=$.data(_2d2,"accordion").panels;
+if(typeof _2d3=="number"){
+if(_2d3<0||_2d3>=_2d4.length){
+return null;
+}else{
+return _2d4[_2d3];
+}
+}
+return _2c5(_2d2,"title",_2d3);
+};
+function _2d5(_2d6){
+var opts=$.data(_2d6,"accordion").options;
+var cc=$(_2d6);
+if(opts.border){
+cc.removeClass("accordion-noborder");
+}else{
+cc.addClass("accordion-noborder");
+}
+};
+function init(_2d7){
+var _2d8=$.data(_2d7,"accordion");
+var cc=$(_2d7);
+cc.addClass("accordion");
+_2d8.panels=[];
+cc.children("div").each(function(){
+var opts=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)});
+var pp=$(this);
+_2d8.panels.push(pp);
+_2da(_2d7,pp,opts);
+});
+cc.bind("_resize",function(e,_2d9){
+if($(this).hasClass("easyui-fluid")||_2d9){
+_2b8(_2d7);
+}
+return false;
+});
+};
+function _2da(_2db,pp,_2dc){
+var opts=$.data(_2db,"accordion").options;
+pp.panel($.extend({},{collapsible:true,minimizable:false,maximizable:false,closable:false,doSize:false,collapsed:true,headerCls:"accordion-header",bodyCls:"accordion-body"},_2dc,{onBeforeExpand:function(){
+if(_2dc.onBeforeExpand){
+if(_2dc.onBeforeExpand.call(this)==false){
+return false;
+}
+}
+if(!opts.multiple){
+var all=$.grep(_2ca(_2db),function(p){
+return p.panel("options").collapsible;
+});
+for(var i=0;i<all.length;i++){
+_2e4(_2db,_2ce(_2db,all[i]));
+}
+}
+var _2dd=$(this).panel("header");
+_2dd.addClass("accordion-header-selected");
+_2dd.find(".accordion-collapse").removeClass("accordion-expand");
+},onExpand:function(){
+if(_2dc.onExpand){
+_2dc.onExpand.call(this);
+}
+opts.onSelect.call(_2db,$(this).panel("options").title,_2ce(_2db,this));
+},onBeforeCollapse:function(){
+if(_2dc.onBeforeCollapse){
+if(_2dc.onBeforeCollapse.call(this)==false){
+return false;
+}
+}
+var _2de=$(this).panel("header");
+_2de.removeClass("accordion-header-selected");
+_2de.find(".accordion-collapse").addClass("accordion-expand");
+},onCollapse:function(){
+if(_2dc.onCollapse){
+_2dc.onCollapse.call(this);
+}
+opts.onUnselect.call(_2db,$(this).panel("options").title,_2ce(_2db,this));
+}}));
+var _2df=pp.panel("header");
+var tool=_2df.children("div.panel-tool");
+tool.children("a.panel-tool-collapse").hide();
+var t=$("<a href=\"javascript:void(0)\"></a>").addClass("accordion-collapse accordion-expand").appendTo(tool);
+t.bind("click",function(){
+_2e0(pp);
+return false;
+});
+pp.panel("options").collapsible?t.show():t.hide();
+_2df.click(function(){
+_2e0(pp);
+return false;
+});
+function _2e0(p){
+var _2e1=p.panel("options");
+if(_2e1.collapsible){
+var _2e2=_2ce(_2db,p);
+if(_2e1.collapsed){
+_2e3(_2db,_2e2);
+}else{
+_2e4(_2db,_2e2);
+}
+}
+};
+};
+function _2e3(_2e5,_2e6){
+var p=_2d1(_2e5,_2e6);
+if(!p){
+return;
+}
+_2e7(_2e5);
+var opts=$.data(_2e5,"accordion").options;
+p.panel("expand",opts.animate);
+};
+function _2e4(_2e8,_2e9){
+var p=_2d1(_2e8,_2e9);
+if(!p){
+return;
+}
+_2e7(_2e8);
+var opts=$.data(_2e8,"accordion").options;
+p.panel("collapse",opts.animate);
+};
+function _2ea(_2eb){
+var opts=$.data(_2eb,"accordion").options;
+var p=_2c5(_2eb,"selected",true);
+if(p){
+_2ec(_2ce(_2eb,p));
+}else{
+_2ec(opts.selected);
+}
+function _2ec(_2ed){
+var _2ee=opts.animate;
+opts.animate=false;
+_2e3(_2eb,_2ed);
+opts.animate=_2ee;
+};
+};
+function _2e7(_2ef){
+var _2f0=$.data(_2ef,"accordion").panels;
+for(var i=0;i<_2f0.length;i++){
+_2f0[i].stop(true,true);
+}
+};
+function add(_2f1,_2f2){
+var _2f3=$.data(_2f1,"accordion");
+var opts=_2f3.options;
+var _2f4=_2f3.panels;
+if(_2f2.selected==undefined){
+_2f2.selected=true;
+}
+_2e7(_2f1);
+var pp=$("<div></div>").appendTo(_2f1);
+_2f4.push(pp);
+_2da(_2f1,pp,_2f2);
+_2b8(_2f1);
+opts.onAdd.call(_2f1,_2f2.title,_2f4.length-1);
+if(_2f2.selected){
+_2e3(_2f1,_2f4.length-1);
+}
+};
+function _2f5(_2f6,_2f7){
+var _2f8=$.data(_2f6,"accordion");
+var opts=_2f8.options;
+var _2f9=_2f8.panels;
+_2e7(_2f6);
+var _2fa=_2d1(_2f6,_2f7);
+var _2fb=_2fa.panel("options").title;
+var _2fc=_2ce(_2f6,_2fa);
+if(!_2fa){
+return;
+}
+if(opts.onBeforeRemove.call(_2f6,_2fb,_2fc)==false){
+return;
+}
+_2f9.splice(_2fc,1);
+_2fa.panel("destroy");
+if(_2f9.length){
+_2b8(_2f6);
+var curr=_2cc(_2f6);
+if(!curr){
+_2e3(_2f6,0);
+}
+}
+opts.onRemove.call(_2f6,_2fb,_2fc);
+};
+$.fn.accordion=function(_2fd,_2fe){
+if(typeof _2fd=="string"){
+return $.fn.accordion.methods[_2fd](this,_2fe);
+}
+_2fd=_2fd||{};
+return this.each(function(){
+var _2ff=$.data(this,"accordion");
+if(_2ff){
+$.extend(_2ff.options,_2fd);
+}else{
+$.data(this,"accordion",{options:$.extend({},$.fn.accordion.defaults,$.fn.accordion.parseOptions(this),_2fd),accordion:$(this).addClass("accordion"),panels:[]});
+init(this);
+}
+_2d5(this);
+_2b8(this);
+_2ea(this);
+});
+};
+$.fn.accordion.methods={options:function(jq){
+return $.data(jq[0],"accordion").options;
+},panels:function(jq){
+return $.data(jq[0],"accordion").panels;
+},resize:function(jq,_300){
+return jq.each(function(){
+_2b8(this,_300);
+});
+},getSelections:function(jq){
+return _2ca(jq[0]);
+},getSelected:function(jq){
+return _2cc(jq[0]);
+},getPanel:function(jq,_301){
+return _2d1(jq[0],_301);
+},getPanelIndex:function(jq,_302){
+return _2ce(jq[0],_302);
+},select:function(jq,_303){
+return jq.each(function(){
+_2e3(this,_303);
+});
+},unselect:function(jq,_304){
+return jq.each(function(){
+_2e4(this,_304);
+});
+},add:function(jq,_305){
+return jq.each(function(){
+add(this,_305);
+});
+},remove:function(jq,_306){
+return jq.each(function(){
+_2f5(this,_306);
+});
+}};
+$.fn.accordion.parseOptions=function(_307){
+var t=$(_307);
+return $.extend({},$.parser.parseOptions(_307,["width","height",{fit:"boolean",border:"boolean",animate:"boolean",multiple:"boolean",selected:"number"}]));
+};
+$.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,multiple:false,selected:0,onSelect:function(_308,_309){
+},onUnselect:function(_30a,_30b){
+},onAdd:function(_30c,_30d){
+},onBeforeRemove:function(_30e,_30f){
+},onRemove:function(_310,_311){
+}};
+})(jQuery);
+(function($){
+function _312(c){
+var w=0;
+$(c).children().each(function(){
+w+=$(this).outerWidth(true);
+});
+return w;
+};
+function _313(_314){
+var opts=$.data(_314,"tabs").options;
+if(opts.tabPosition=="left"||opts.tabPosition=="right"||!opts.showHeader){
+return;
+}
+var _315=$(_314).children("div.tabs-header");
+var tool=_315.children("div.tabs-tool:not(.tabs-tool-hidden)");
+var _316=_315.children("div.tabs-scroller-left");
+var _317=_315.children("div.tabs-scroller-right");
+var wrap=_315.children("div.tabs-wrap");
+var _318=_315.outerHeight();
+if(opts.plain){
+_318-=_318-_315.height();
+}
+tool._outerHeight(_318);
+var _319=_312(_315.find("ul.tabs"));
+var _31a=_315.width()-tool._outerWidth();
+if(_319>_31a){
+_316.add(_317).show()._outerHeight(_318);
+if(opts.toolPosition=="left"){
+tool.css({left:_316.outerWidth(),right:""});
+wrap.css({marginLeft:_316.outerWidth()+tool._outerWidth(),marginRight:_317._outerWidth(),width:_31a-_316.outerWidth()-_317.outerWidth()});
+}else{
+tool.css({left:"",right:_317.outerWidth()});
+wrap.css({marginLeft:_316.outerWidth(),marginRight:_317.outerWidth()+tool._outerWidth(),width:_31a-_316.outerWidth()-_317.outerWidth()});
+}
+}else{
+_316.add(_317).hide();
+if(opts.toolPosition=="left"){
+tool.css({left:0,right:""});
+wrap.css({marginLeft:tool._outerWidth(),marginRight:0,width:_31a});
+}else{
+tool.css({left:"",right:0});
+wrap.css({marginLeft:0,marginRight:tool._outerWidth(),width:_31a});
+}
+}
+};
+function _31b(_31c){
+var opts=$.data(_31c,"tabs").options;
+var _31d=$(_31c).children("div.tabs-header");
+if(opts.tools){
+if(typeof opts.tools=="string"){
+$(opts.tools).addClass("tabs-tool").appendTo(_31d);
+$(opts.tools).show();
+}else{
+_31d.children("div.tabs-tool").remove();
+var _31e=$("<div class=\"tabs-tool\"><table cellspacing=\"0\" cellpadding=\"0\" style=\"height:100%\"><tr></tr></table></div>").appendTo(_31d);
+var tr=_31e.find("tr");
+for(var i=0;i<opts.tools.length;i++){
+var td=$("<td></td>").appendTo(tr);
+var tool=$("<a href=\"javascript:void(0);\"></a>").appendTo(td);
+tool[0].onclick=eval(opts.tools[i].handler||function(){
+});
+tool.linkbutton($.extend({},opts.tools[i],{plain:true}));
+}
+}
+}else{
+_31d.children("div.tabs-tool").remove();
+}
+};
+function _31f(_320,_321){
+var _322=$.data(_320,"tabs");
+var opts=_322.options;
+var cc=$(_320);
+if(!opts.doSize){
+return;
+}
+if(_321){
+$.extend(opts,{width:_321.width,height:_321.height});
+}
+cc._size(opts);
+var _323=cc.children("div.tabs-header");
+var _324=cc.children("div.tabs-panels");
+var wrap=_323.find("div.tabs-wrap");
+var ul=wrap.find(".tabs");
+ul.children("li").removeClass("tabs-first tabs-last");
+ul.children("li:first").addClass("tabs-first");
+ul.children("li:last").addClass("tabs-last");
+if(opts.tabPosition=="left"||opts.tabPosition=="right"){
+_323._outerWidth(opts.showHeader?opts.headerWidth:0);
+_324._outerWidth(cc.width()-_323.outerWidth());
+_323.add(_324)._size("height",isNaN(parseInt(opts.height))?"":cc.height());
+wrap._outerWidth(_323.width());
+ul._outerWidth(wrap.width()).css("height","");
+}else{
+_323.children("div.tabs-scroller-left,div.tabs-scroller-right,div.tabs-tool:not(.tabs-tool-hidden)").css("display",opts.showHeader?"block":"none");
+_323._outerWidth(cc.width()).css("height","");
+if(opts.showHeader){
+_323.css("background-color","");
+wrap.css("height","");
+}else{
+_323.css("background-color","transparent");
+_323._outerHeight(0);
+wrap._outerHeight(0);
+}
+ul._outerHeight(opts.tabHeight).css("width","");
+ul._outerHeight(ul.outerHeight()-ul.height()-1+opts.tabHeight).css("width","");
+_324._size("height",isNaN(parseInt(opts.height))?"":(cc.height()-_323.outerHeight()));
+_324._size("width",cc.width());
+}
+if(_322.tabs.length){
+var d1=ul.outerWidth(true)-ul.width();
+var li=ul.children("li:first");
+var d2=li.outerWidth(true)-li.width();
+var _325=_323.width()-_323.children(".tabs-tool:not(.tabs-tool-hidden)")._outerWidth();
+var _326=Math.floor((_325-d1-d2*_322.tabs.length)/_322.tabs.length);
+$.map(_322.tabs,function(p){
+_327(p,(opts.justified&&$.inArray(opts.tabPosition,["top","bottom"])>=0)?_326:undefined);
+});
+if(opts.justified&&$.inArray(opts.tabPosition,["top","bottom"])>=0){
+var _328=_325-d1-_312(ul);
+_327(_322.tabs[_322.tabs.length-1],_326+_328);
+}
+}
+_313(_320);
+function _327(p,_329){
+var _32a=p.panel("options");
+var p_t=_32a.tab.find("a.tabs-inner");
+var _329=_329?_329:(parseInt(_32a.tabWidth||opts.tabWidth||undefined));
+if(_329){
+p_t._outerWidth(_329);
+}else{
+p_t.css("width","");
+}
+p_t._outerHeight(opts.tabHeight);
+p_t.css("lineHeight",p_t.height()+"px");
+p_t.find(".easyui-fluid:visible").triggerHandler("_resize");
+};
+};
+function _32b(_32c){
+var opts=$.data(_32c,"tabs").options;
+var tab=_32d(_32c);
+if(tab){
+var _32e=$(_32c).children("div.tabs-panels");
+var _32f=opts.width=="auto"?"auto":_32e.width();
+var _330=opts.height=="auto"?"auto":_32e.height();
+tab.panel("resize",{width:_32f,height:_330});
+}
+};
+function _331(_332){
+var tabs=$.data(_332,"tabs").tabs;
+var cc=$(_332).addClass("tabs-container");
+var _333=$("<div class=\"tabs-panels\"></div>").insertBefore(cc);
+cc.children("div").each(function(){
+_333[0].appendChild(this);
+});
+cc[0].appendChild(_333[0]);
+$("<div class=\"tabs-header\">"+"<div class=\"tabs-scroller-left\"></div>"+"<div class=\"tabs-scroller-right\"></div>"+"<div class=\"tabs-wrap\">"+"<ul class=\"tabs\"></ul>"+"</div>"+"</div>").prependTo(_332);
+cc.children("div.tabs-panels").children("div").each(function(i){
+var opts=$.extend({},$.parser.parseOptions(this),{disabled:($(this).attr("disabled")?true:undefined),selected:($(this).attr("selected")?true:undefined)});
+_340(_332,opts,$(this));
+});
+cc.children("div.tabs-header").find(".tabs-scroller-left, .tabs-scroller-right").hover(function(){
+$(this).addClass("tabs-scroller-over");
+},function(){
+$(this).removeClass("tabs-scroller-over");
+});
+cc.bind("_resize",function(e,_334){
+if($(this).hasClass("easyui-fluid")||_334){
+_31f(_332);
+_32b(_332);
+}
+return false;
+});
+};
+function _335(_336){
+var _337=$.data(_336,"tabs");
+var opts=_337.options;
+$(_336).children("div.tabs-header").unbind().bind("click",function(e){
+if($(e.target).hasClass("tabs-scroller-left")){
+$(_336).tabs("scrollBy",-opts.scrollIncrement);
+}else{
+if($(e.target).hasClass("tabs-scroller-right")){
+$(_336).tabs("scrollBy",opts.scrollIncrement);
+}else{
+var li=$(e.target).closest("li");
+if(li.hasClass("tabs-disabled")){
+return false;
+}
+var a=$(e.target).closest("a.tabs-close");
+if(a.length){
+_359(_336,_338(li));
+}else{
+if(li.length){
+var _339=_338(li);
+var _33a=_337.tabs[_339].panel("options");
+if(_33a.collapsible){
+_33a.closed?_350(_336,_339):_36d(_336,_339);
+}else{
+_350(_336,_339);
+}
+}
+}
+return false;
+}
+}
+}).bind("contextmenu",function(e){
+var li=$(e.target).closest("li");
+if(li.hasClass("tabs-disabled")){
+return;
+}
+if(li.length){
+opts.onContextMenu.call(_336,e,li.find("span.tabs-title").html(),_338(li));
+}
+});
+function _338(li){
+var _33b=0;
+li.parent().children("li").each(function(i){
+if(li[0]==this){
+_33b=i;
+return false;
+}
+});
+return _33b;
+};
+};
+function _33c(_33d){
+var opts=$.data(_33d,"tabs").options;
+var _33e=$(_33d).children("div.tabs-header");
+var _33f=$(_33d).children("div.tabs-panels");
+_33e.removeClass("tabs-header-top tabs-header-bottom tabs-header-left tabs-header-right");
+_33f.removeClass("tabs-panels-top tabs-panels-bottom tabs-panels-left tabs-panels-right");
+if(opts.tabPosition=="top"){
+_33e.insertBefore(_33f);
+}else{
+if(opts.tabPosition=="bottom"){
+_33e.insertAfter(_33f);
+_33e.addClass("tabs-header-bottom");
+_33f.addClass("tabs-panels-top");
+}else{
+if(opts.tabPosition=="left"){
+_33e.addClass("tabs-header-left");
+_33f.addClass("tabs-panels-right");
+}else{
+if(opts.tabPosition=="right"){
+_33e.addClass("tabs-header-right");
+_33f.addClass("tabs-panels-left");
+}
+}
+}
+}
+if(opts.plain==true){
+_33e.addClass("tabs-header-plain");
+}else{
+_33e.removeClass("tabs-header-plain");
+}
+_33e.removeClass("tabs-header-narrow").addClass(opts.narrow?"tabs-header-narrow":"");
+var tabs=_33e.find(".tabs");
+tabs.removeClass("tabs-pill").addClass(opts.pill?"tabs-pill":"");
+tabs.removeClass("tabs-narrow").addClass(opts.narrow?"tabs-narrow":"");
+tabs.removeClass("tabs-justified").addClass(opts.justified?"tabs-justified":"");
+if(opts.border==true){
+_33e.removeClass("tabs-header-noborder");
+_33f.removeClass("tabs-panels-noborder");
+}else{
+_33e.addClass("tabs-header-noborder");
+_33f.addClass("tabs-panels-noborder");
+}
+opts.doSize=true;
+};
+function _340(_341,_342,pp){
+_342=_342||{};
+var _343=$.data(_341,"tabs");
+var tabs=_343.tabs;
+if(_342.index==undefined||_342.index>tabs.length){
+_342.index=tabs.length;
+}
+if(_342.index<0){
+_342.index=0;
+}
+var ul=$(_341).children("div.tabs-header").find("ul.tabs");
+var _344=$(_341).children("div.tabs-panels");
+var tab=$("<li>"+"<a href=\"javascript:void(0)\" class=\"tabs-inner\">"+"<span class=\"tabs-title\"></span>"+"<span class=\"tabs-icon\"></span>"+"</a>"+"</li>");
+if(!pp){
+pp=$("<div></div>");
+}
+if(_342.index>=tabs.length){
+tab.appendTo(ul);
+pp.appendTo(_344);
+tabs.push(pp);
+}else{
+tab.insertBefore(ul.children("li:eq("+_342.index+")"));
+pp.insertBefore(_344.children("div.panel:eq("+_342.index+")"));
+tabs.splice(_342.index,0,pp);
+}
+pp.panel($.extend({},_342,{tab:tab,border:false,noheader:true,closed:true,doSize:false,iconCls:(_342.icon?_342.icon:undefined),onLoad:function(){
+if(_342.onLoad){
+_342.onLoad.call(this,arguments);
+}
+_343.options.onLoad.call(_341,$(this));
+},onBeforeOpen:function(){
+if(_342.onBeforeOpen){
+if(_342.onBeforeOpen.call(this)==false){
+return false;
+}
+}
+var p=$(_341).tabs("getSelected");
+if(p){
+if(p[0]!=this){
+$(_341).tabs("unselect",_34b(_341,p));
+p=$(_341).tabs("getSelected");
+if(p){
+return false;
+}
+}else{
+_32b(_341);
+return false;
+}
+}
+var _345=$(this).panel("options");
+_345.tab.addClass("tabs-selected");
+var wrap=$(_341).find(">div.tabs-header>div.tabs-wrap");
+var left=_345.tab.position().left;
+var _346=left+_345.tab.outerWidth();
+if(left<0||_346>wrap.width()){
+var _347=left-(wrap.width()-_345.tab.width())/2;
+$(_341).tabs("scrollBy",_347);
+}else{
+$(_341).tabs("scrollBy",0);
+}
+var _348=$(this).panel("panel");
+_348.css("display","block");
+_32b(_341);
+_348.css("display","none");
+},onOpen:function(){
+if(_342.onOpen){
+_342.onOpen.call(this);
+}
+var _349=$(this).panel("options");
+_343.selectHis.push(_349.title);
+_343.options.onSelect.call(_341,_349.title,_34b(_341,this));
+},onBeforeClose:function(){
+if(_342.onBeforeClose){
+if(_342.onBeforeClose.call(this)==false){
+return false;
+}
+}
+$(this).panel("options").tab.removeClass("tabs-selected");
+},onClose:function(){
+if(_342.onClose){
+_342.onClose.call(this);
+}
+var _34a=$(this).panel("options");
+_343.options.onUnselect.call(_341,_34a.title,_34b(_341,this));
+}}));
+$(_341).tabs("update",{tab:pp,options:pp.panel("options"),type:"header"});
+};
+function _34c(_34d,_34e){
+var _34f=$.data(_34d,"tabs");
+var opts=_34f.options;
+if(_34e.selected==undefined){
+_34e.selected=true;
+}
+_340(_34d,_34e);
+opts.onAdd.call(_34d,_34e.title,_34e.index);
+if(_34e.selected){
+_350(_34d,_34e.index);
+}
+};
+function _351(_352,_353){
+_353.type=_353.type||"all";
+var _354=$.data(_352,"tabs").selectHis;
+var pp=_353.tab;
+var opts=pp.panel("options");
+var _355=opts.title;
+$.extend(opts,_353.options,{iconCls:(_353.options.icon?_353.options.icon:undefined)});
+if(_353.type=="all"||_353.type=="body"){
+pp.panel();
+}
+if(_353.type=="all"||_353.type=="header"){
+var tab=opts.tab;
+if(opts.header){
+tab.find(".tabs-inner").html($(opts.header));
+}else{
+var _356=tab.find("span.tabs-title");
+var _357=tab.find("span.tabs-icon");
+_356.html(opts.title);
+_357.attr("class","tabs-icon");
+tab.find("a.tabs-close").remove();
+if(opts.closable){
+_356.addClass("tabs-closable");
+$("<a href=\"javascript:void(0)\" class=\"tabs-close\"></a>").appendTo(tab);
+}else{
+_356.removeClass("tabs-closable");
+}
+if(opts.iconCls){
+_356.addClass("tabs-with-icon");
+_357.addClass(opts.iconCls);
+}else{
+_356.removeClass("tabs-with-icon");
+}
+if(opts.tools){
+var _358=tab.find("span.tabs-p-tool");
+if(!_358.length){
+var _358=$("<span class=\"tabs-p-tool\"></span>").insertAfter(tab.find("a.tabs-inner"));
+}
+if($.isArray(opts.tools)){
+_358.empty();
+for(var i=0;i<opts.tools.length;i++){
+var t=$("<a href=\"javascript:void(0)\"></a>").appendTo(_358);
+t.addClass(opts.tools[i].iconCls);
+if(opts.tools[i].handler){
+t.bind("click",{handler:opts.tools[i].handler},function(e){
+if($(this).parents("li").hasClass("tabs-disabled")){
+return;
+}
+e.data.handler.call(this);
+});
+}
+}
+}else{
+$(opts.tools).children().appendTo(_358);
+}
+var pr=_358.children().length*12;
+if(opts.closable){
+pr+=8;
+}else{
+pr-=3;
+_358.css("right","5px");
+}
+_356.css("padding-right",pr+"px");
+}else{
+tab.find("span.tabs-p-tool").remove();
+_356.css("padding-right","");
+}
+}
+if(_355!=opts.title){
+for(var i=0;i<_354.length;i++){
+if(_354[i]==_355){
+_354[i]=opts.title;
+}
+}
+}
+}
+if(opts.disabled){
+opts.tab.addClass("tabs-disabled");
+}else{
+opts.tab.removeClass("tabs-disabled");
+}
+_31f(_352);
+$.data(_352,"tabs").options.onUpdate.call(_352,opts.title,_34b(_352,pp));
+};
+function _359(_35a,_35b){
+var opts=$.data(_35a,"tabs").options;
+var tabs=$.data(_35a,"tabs").tabs;
+var _35c=$.data(_35a,"tabs").selectHis;
+if(!_35d(_35a,_35b)){
+return;
+}
+var tab=_35e(_35a,_35b);
+var _35f=tab.panel("options").title;
+var _360=_34b(_35a,tab);
+if(opts.onBeforeClose.call(_35a,_35f,_360)==false){
+return;
+}
+var tab=_35e(_35a,_35b,true);
+tab.panel("options").tab.remove();
+tab.panel("destroy");
+opts.onClose.call(_35a,_35f,_360);
+_31f(_35a);
+for(var i=0;i<_35c.length;i++){
+if(_35c[i]==_35f){
+_35c.splice(i,1);
+i--;
+}
+}
+var _361=_35c.pop();
+if(_361){
+_350(_35a,_361);
+}else{
+if(tabs.length){
+_350(_35a,0);
+}
+}
+};
+function _35e(_362,_363,_364){
+var tabs=$.data(_362,"tabs").tabs;
+if(typeof _363=="number"){
+if(_363<0||_363>=tabs.length){
+return null;
+}else{
+var tab=tabs[_363];
+if(_364){
+tabs.splice(_363,1);
+}
+return tab;
+}
+}
+for(var i=0;i<tabs.length;i++){
+var tab=tabs[i];
+if(tab.panel("options").title==_363){
+if(_364){
+tabs.splice(i,1);
+}
+return tab;
+}
+}
+return null;
+};
+function _34b(_365,tab){
+var tabs=$.data(_365,"tabs").tabs;
+for(var i=0;i<tabs.length;i++){
+if(tabs[i][0]==$(tab)[0]){
+return i;
+}
+}
+return -1;
+};
+function _32d(_366){
+var tabs=$.data(_366,"tabs").tabs;
+for(var i=0;i<tabs.length;i++){
+var tab=tabs[i];
+if(tab.panel("options").tab.hasClass("tabs-selected")){
+return tab;
+}
+}
+return null;
+};
+function _367(_368){
+var _369=$.data(_368,"tabs");
+var tabs=_369.tabs;
+for(var i=0;i<tabs.length;i++){
+var opts=tabs[i].panel("options");
+if(opts.selected&&!opts.disabled){
+_350(_368,i);
+return;
+}
+}
+_350(_368,_369.options.selected);
+};
+function _350(_36a,_36b){
+var p=_35e(_36a,_36b);
+if(p&&!p.is(":visible")){
+_36c(_36a);
+if(!p.panel("options").disabled){
+p.panel("open");
+}
+}
+};
+function _36d(_36e,_36f){
+var p=_35e(_36e,_36f);
+if(p&&p.is(":visible")){
+_36c(_36e);
+p.panel("close");
+}
+};
+function _36c(_370){
+$(_370).children("div.tabs-panels").each(function(){
+$(this).stop(true,true);
+});
+};
+function _35d(_371,_372){
+return _35e(_371,_372)!=null;
+};
+function _373(_374,_375){
+var opts=$.data(_374,"tabs").options;
+opts.showHeader=_375;
+$(_374).tabs("resize");
+};
+function _376(_377,_378){
+var tool=$(_377).find(">.tabs-header>.tabs-tool");
+if(_378){
+tool.removeClass("tabs-tool-hidden").show();
+}else{
+tool.addClass("tabs-tool-hidden").hide();
+}
+$(_377).tabs("resize").tabs("scrollBy",0);
+};
+$.fn.tabs=function(_379,_37a){
+if(typeof _379=="string"){
+return $.fn.tabs.methods[_379](this,_37a);
+}
+_379=_379||{};
+return this.each(function(){
+var _37b=$.data(this,"tabs");
+if(_37b){
+$.extend(_37b.options,_379);
+}else{
+$.data(this,"tabs",{options:$.extend({},$.fn.tabs.defaults,$.fn.tabs.parseOptions(this),_379),tabs:[],selectHis:[]});
+_331(this);
+}
+_31b(this);
+_33c(this);
+_31f(this);
+_335(this);
+_367(this);
+});
+};
+$.fn.tabs.methods={options:function(jq){
+var cc=jq[0];
+var opts=$.data(cc,"tabs").options;
+var s=_32d(cc);
+opts.selected=s?_34b(cc,s):-1;
+return opts;
+},tabs:function(jq){
+return $.data(jq[0],"tabs").tabs;
+},resize:function(jq,_37c){
+return jq.each(function(){
+_31f(this,_37c);
+_32b(this);
+});
+},add:function(jq,_37d){
+return jq.each(function(){
+_34c(this,_37d);
+});
+},close:function(jq,_37e){
+return jq.each(function(){
+_359(this,_37e);
+});
+},getTab:function(jq,_37f){
+return _35e(jq[0],_37f);
+},getTabIndex:function(jq,tab){
+return _34b(jq[0],tab);
+},getSelected:function(jq){
+return _32d(jq[0]);
+},select:function(jq,_380){
+return jq.each(function(){
+_350(this,_380);
+});
+},unselect:function(jq,_381){
+return jq.each(function(){
+_36d(this,_381);
+});
+},exists:function(jq,_382){
+return _35d(jq[0],_382);
+},update:function(jq,_383){
+return jq.each(function(){
+_351(this,_383);
+});
+},enableTab:function(jq,_384){
+return jq.each(function(){
+var opts=$(this).tabs("getTab",_384).panel("options");
+opts.tab.removeClass("tabs-disabled");
+opts.disabled=false;
+});
+},disableTab:function(jq,_385){
+return jq.each(function(){
+var opts=$(this).tabs("getTab",_385).panel("options");
+opts.tab.addClass("tabs-disabled");
+opts.disabled=true;
+});
+},showHeader:function(jq){
+return jq.each(function(){
+_373(this,true);
+});
+},hideHeader:function(jq){
+return jq.each(function(){
+_373(this,false);
+});
+},showTool:function(jq){
+return jq.each(function(){
+_376(this,true);
+});
+},hideTool:function(jq){
+return jq.each(function(){
+_376(this,false);
+});
+},scrollBy:function(jq,_386){
+return jq.each(function(){
+var opts=$(this).tabs("options");
+var wrap=$(this).find(">div.tabs-header>div.tabs-wrap");
+var pos=Math.min(wrap._scrollLeft()+_386,_387());
+wrap.animate({scrollLeft:pos},opts.scrollDuration);
+function _387(){
+var w=0;
+var ul=wrap.children("ul");
+ul.children("li").each(function(){
+w+=$(this).outerWidth(true);
+});
+return w-wrap.width()+(ul.outerWidth()-ul.width());
+};
+});
+}};
+$.fn.tabs.parseOptions=function(_388){
+return $.extend({},$.parser.parseOptions(_388,["tools","toolPosition","tabPosition",{fit:"boolean",border:"boolean",plain:"boolean"},{headerWidth:"number",tabWidth:"number",tabHeight:"number",selected:"number"},{showHeader:"boolean",justified:"boolean",narrow:"boolean",pill:"boolean"}]));
+};
+$.fn.tabs.defaults={width:"auto",height:"auto",headerWidth:150,tabWidth:"auto",tabHeight:27,selected:0,showHeader:true,plain:false,fit:false,border:true,justified:false,narrow:false,pill:false,tools:null,toolPosition:"right",tabPosition:"top",scrollIncrement:100,scrollDuration:400,onLoad:function(_389){
+},onSelect:function(_38a,_38b){
+},onUnselect:function(_38c,_38d){
+},onBeforeClose:function(_38e,_38f){
+},onClose:function(_390,_391){
+},onAdd:function(_392,_393){
+},onUpdate:function(_394,_395){
+},onContextMenu:function(e,_396,_397){
+}};
+})(jQuery);
+(function($){
+var _398=false;
+function _399(_39a,_39b){
+var _39c=$.data(_39a,"layout");
+var opts=_39c.options;
+var _39d=_39c.panels;
+var cc=$(_39a);
+if(_39b){
+$.extend(opts,{width:_39b.width,height:_39b.height});
+}
+if(_39a.tagName.toLowerCase()=="body"){
+cc._size("fit");
+}else{
+cc._size(opts);
+}
+var cpos={top:0,left:0,width:cc.width(),height:cc.height()};
+_39e(_39f(_39d.expandNorth)?_39d.expandNorth:_39d.north,"n");
+_39e(_39f(_39d.expandSouth)?_39d.expandSouth:_39d.south,"s");
+_3a0(_39f(_39d.expandEast)?_39d.expandEast:_39d.east,"e");
+_3a0(_39f(_39d.expandWest)?_39d.expandWest:_39d.west,"w");
+_39d.center.panel("resize",cpos);
+function _39e(pp,type){
+if(!pp.length||!_39f(pp)){
+return;
+}
+var opts=pp.panel("options");
+pp.panel("resize",{width:cc.width(),height:opts.height});
+var _3a1=pp.panel("panel").outerHeight();
+pp.panel("move",{left:0,top:(type=="n"?0:cc.height()-_3a1)});
+cpos.height-=_3a1;
+if(type=="n"){
+cpos.top+=_3a1;
+if(!opts.split&&opts.border){
+cpos.top--;
+}
+}
+if(!opts.split&&opts.border){
+cpos.height++;
+}
+};
+function _3a0(pp,type){
+if(!pp.length||!_39f(pp)){
+return;
+}
+var opts=pp.panel("options");
+pp.panel("resize",{width:opts.width,height:cpos.height});
+var _3a2=pp.panel("panel").outerWidth();
+pp.panel("move",{left:(type=="e"?cc.width()-_3a2:0),top:cpos.top});
+cpos.width-=_3a2;
+if(type=="w"){
+cpos.left+=_3a2;
+if(!opts.split&&opts.border){
+cpos.left--;
+}
+}
+if(!opts.split&&opts.border){
+cpos.width++;
+}
+};
+};
+function init(_3a3){
+var cc=$(_3a3);
+cc.addClass("layout");
+function _3a4(cc){
+var opts=cc.layout("options");
+var _3a5=opts.onAdd;
+opts.onAdd=function(){
+};
+cc.children("div").each(function(){
+var _3a6=$.fn.layout.parsePanelOptions(this);
+if("north,south,east,west,center".indexOf(_3a6.region)>=0){
+_3a8(_3a3,_3a6,this);
+}
+});
+opts.onAdd=_3a5;
+};
+cc.children("form").length?_3a4(cc.children("form")):_3a4(cc);
+cc.append("<div class=\"layout-split-proxy-h\"></div><div class=\"layout-split-proxy-v\"></div>");
+cc.bind("_resize",function(e,_3a7){
+if($(this).hasClass("easyui-fluid")||_3a7){
+_399(_3a3);
+}
+return false;
+});
+};
+function _3a8(_3a9,_3aa,el){
+_3aa.region=_3aa.region||"center";
+var _3ab=$.data(_3a9,"layout").panels;
+var cc=$(_3a9);
+var dir=_3aa.region;
+if(_3ab[dir].length){
+return;
+}
+var pp=$(el);
+if(!pp.length){
+pp=$("<div></div>").appendTo(cc);
+}
+var _3ac=$.extend({},$.fn.layout.paneldefaults,{width:(pp.length?parseInt(pp[0].style.width)||pp.outerWidth():"auto"),height:(pp.length?parseInt(pp[0].style.height)||pp.outerHeight():"auto"),doSize:false,collapsible:true,onOpen:function(){
+var tool=$(this).panel("header").children("div.panel-tool");
+tool.children("a.panel-tool-collapse").hide();
+var _3ad={north:"up",south:"down",east:"right",west:"left"};
+if(!_3ad[dir]){
+return;
+}
+var _3ae="layout-button-"+_3ad[dir];
+var t=tool.children("a."+_3ae);
+if(!t.length){
+t=$("<a href=\"javascript:void(0)\"></a>").addClass(_3ae).appendTo(tool);
+t.bind("click",{dir:dir},function(e){
+_3ba(_3a9,e.data.dir);
+return false;
+});
+}
+$(this).panel("options").collapsible?t.show():t.hide();
+}},_3aa,{cls:((_3aa.cls||"")+" layout-panel layout-panel-"+dir),bodyCls:((_3aa.bodyCls||"")+" layout-body")});
+pp.panel(_3ac);
+_3ab[dir]=pp;
+var _3af={north:"s",south:"n",east:"w",west:"e"};
+var _3b0=pp.panel("panel");
+if(pp.panel("options").split){
+_3b0.addClass("layout-split-"+dir);
+}
+_3b0.resizable($.extend({},{handles:(_3af[dir]||""),disabled:(!pp.panel("options").split),onStartResize:function(e){
+_398=true;
+if(dir=="north"||dir=="south"){
+var _3b1=$(">div.layout-split-proxy-v",_3a9);
+}else{
+var _3b1=$(">div.layout-split-proxy-h",_3a9);
+}
+var top=0,left=0,_3b2=0,_3b3=0;
+var pos={display:"block"};
+if(dir=="north"){
+pos.top=parseInt(_3b0.css("top"))+_3b0.outerHeight()-_3b1.height();
+pos.left=parseInt(_3b0.css("left"));
+pos.width=_3b0.outerWidth();
+pos.height=_3b1.height();
+}else{
+if(dir=="south"){
+pos.top=parseInt(_3b0.css("top"));
+pos.left=parseInt(_3b0.css("left"));
+pos.width=_3b0.outerWidth();
+pos.height=_3b1.height();
+}else{
+if(dir=="east"){
+pos.top=parseInt(_3b0.css("top"))||0;
+pos.left=parseInt(_3b0.css("left"))||0;
+pos.width=_3b1.width();
+pos.height=_3b0.outerHeight();
+}else{
+if(dir=="west"){
+pos.top=parseInt(_3b0.css("top"))||0;
+pos.left=_3b0.outerWidth()-_3b1.width();
+pos.width=_3b1.width();
+pos.height=_3b0.outerHeight();
+}
+}
+}
+}
+_3b1.css(pos);
+$("<div class=\"layout-mask\"></div>").css({left:0,top:0,width:cc.width(),height:cc.height()}).appendTo(cc);
+},onResize:function(e){
+if(dir=="north"||dir=="south"){
+var _3b4=$(">div.layout-split-proxy-v",_3a9);
+_3b4.css("top",e.pageY-$(_3a9).offset().top-_3b4.height()/2);
+}else{
+var _3b4=$(">div.layout-split-proxy-h",_3a9);
+_3b4.css("left",e.pageX-$(_3a9).offset().left-_3b4.width()/2);
+}
+return false;
+},onStopResize:function(e){
+cc.children("div.layout-split-proxy-v,div.layout-split-proxy-h").hide();
+pp.panel("resize",e.data);
+_399(_3a9);
+_398=false;
+cc.find(">div.layout-mask").remove();
+}},_3aa));
+cc.layout("options").onAdd.call(_3a9,dir);
+};
+function _3b5(_3b6,_3b7){
+var _3b8=$.data(_3b6,"layout").panels;
+if(_3b8[_3b7].length){
+_3b8[_3b7].panel("destroy");
+_3b8[_3b7]=$();
+var _3b9="expand"+_3b7.substring(0,1).toUpperCase()+_3b7.substring(1);
+if(_3b8[_3b9]){
+_3b8[_3b9].panel("destroy");
+_3b8[_3b9]=undefined;
+}
+$(_3b6).layout("options").onRemove.call(_3b6,_3b7);
+}
+};
+function _3ba(_3bb,_3bc,_3bd){
+if(_3bd==undefined){
+_3bd="normal";
+}
+var _3be=$.data(_3bb,"layout").panels;
+var p=_3be[_3bc];
+var _3bf=p.panel("options");
+if(_3bf.onBeforeCollapse.call(p)==false){
+return;
+}
+var _3c0="expand"+_3bc.substring(0,1).toUpperCase()+_3bc.substring(1);
+if(!_3be[_3c0]){
+_3be[_3c0]=_3c1(_3bc);
+var ep=_3be[_3c0].panel("panel");
+if(!_3bf.expandMode){
+ep.css("cursor","default");
+}else{
+ep.bind("click",function(){
+if(_3bf.expandMode=="dock"){
+_3cc(_3bb,_3bc);
+}else{
+p.panel("expand",false).panel("open");
+var _3c2=_3c3();
+p.panel("resize",_3c2.collapse);
+p.panel("panel").animate(_3c2.expand,function(){
+$(this).unbind(".layout").bind("mouseleave.layout",{region:_3bc},function(e){
+if(_398==true){
+return;
+}
+if($("body>div.combo-p>div.combo-panel:visible").length){
+return;
+}
+_3ba(_3bb,e.data.region);
+});
+$(_3bb).layout("options").onExpand.call(_3bb,_3bc);
+});
+}
+return false;
+});
+}
+}
+var _3c4=_3c3();
+if(!_39f(_3be[_3c0])){
+_3be.center.panel("resize",_3c4.resizeC);
+}
+p.panel("panel").animate(_3c4.collapse,_3bd,function(){
+p.panel("collapse",false).panel("close");
+_3be[_3c0].panel("open").panel("resize",_3c4.expandP);
+$(this).unbind(".layout");
+$(_3bb).layout("options").onCollapse.call(_3bb,_3bc);
+});
+function _3c1(dir){
+var _3c5={"east":"left","west":"right","north":"down","south":"up"};
+var isns=(_3bf.region=="north"||_3bf.region=="south");
+var icon="layout-button-"+_3c5[dir];
+var p=$("<div></div>").appendTo(_3bb);
+p.panel($.extend({},$.fn.layout.paneldefaults,{cls:("layout-expand layout-expand-"+dir),title:" ",iconCls:(_3bf.hideCollapsedContent?null:_3bf.iconCls),closed:true,minWidth:0,minHeight:0,doSize:false,region:_3bf.region,collapsedSize:_3bf.collapsedSize,noheader:(!isns&&_3bf.hideExpandTool),tools:((isns&&_3bf.hideExpandTool)?null:[{iconCls:icon,handler:function(){
+_3cc(_3bb,_3bc);
+return false;
+}}])}));
+if(!_3bf.hideCollapsedContent){
+var _3c6=typeof _3bf.collapsedContent=="function"?_3bf.collapsedContent.call(p[0],_3bf.title):_3bf.collapsedContent;
+isns?p.panel("setTitle",_3c6):p.html(_3c6);
+}
+p.panel("panel").hover(function(){
+$(this).addClass("layout-expand-over");
+},function(){
+$(this).removeClass("layout-expand-over");
+});
+return p;
+};
+function _3c3(){
+var cc=$(_3bb);
+var _3c7=_3be.center.panel("options");
+var _3c8=_3bf.collapsedSize;
+if(_3bc=="east"){
+var _3c9=p.panel("panel")._outerWidth();
+var _3ca=_3c7.width+_3c9-_3c8;
+if(_3bf.split||!_3bf.border){
+_3ca++;
+}
+return {resizeC:{width:_3ca},expand:{left:cc.width()-_3c9},expandP:{top:_3c7.top,left:cc.width()-_3c8,width:_3c8,height:_3c7.height},collapse:{left:cc.width(),top:_3c7.top,height:_3c7.height}};
+}else{
+if(_3bc=="west"){
+var _3c9=p.panel("panel")._outerWidth();
+var _3ca=_3c7.width+_3c9-_3c8;
+if(_3bf.split||!_3bf.border){
+_3ca++;
+}
+return {resizeC:{width:_3ca,left:_3c8-1},expand:{left:0},expandP:{left:0,top:_3c7.top,width:_3c8,height:_3c7.height},collapse:{left:-_3c9,top:_3c7.top,height:_3c7.height}};
+}else{
+if(_3bc=="north"){
+var _3cb=p.panel("panel")._outerHeight();
+var hh=_3c7.height;
+if(!_39f(_3be.expandNorth)){
+hh+=_3cb-_3c8+((_3bf.split||!_3bf.border)?1:0);
+}
+_3be.east.add(_3be.west).add(_3be.expandEast).add(_3be.expandWest).panel("resize",{top:_3c8-1,height:hh});
+return {resizeC:{top:_3c8-1,height:hh},expand:{top:0},expandP:{top:0,left:0,width:cc.width(),height:_3c8},collapse:{top:-_3cb,width:cc.width()}};
+}else{
+if(_3bc=="south"){
+var _3cb=p.panel("panel")._outerHeight();
+var hh=_3c7.height;
+if(!_39f(_3be.expandSouth)){
+hh+=_3cb-_3c8+((_3bf.split||!_3bf.border)?1:0);
+}
+_3be.east.add(_3be.west).add(_3be.expandEast).add(_3be.expandWest).panel("resize",{height:hh});
+return {resizeC:{height:hh},expand:{top:cc.height()-_3cb},expandP:{top:cc.height()-_3c8,left:0,width:cc.width(),height:_3c8},collapse:{top:cc.height(),width:cc.width()}};
+}
+}
+}
+}
+};
+};
+function _3cc(_3cd,_3ce){
+var _3cf=$.data(_3cd,"layout").panels;
+var p=_3cf[_3ce];
+var _3d0=p.panel("options");
+if(_3d0.onBeforeExpand.call(p)==false){
+return;
+}
+var _3d1="expand"+_3ce.substring(0,1).toUpperCase()+_3ce.substring(1);
+if(_3cf[_3d1]){
+_3cf[_3d1].panel("close");
+p.panel("panel").stop(true,true);
+p.panel("expand",false).panel("open");
+var _3d2=_3d3();
+p.panel("resize",_3d2.collapse);
+p.panel("panel").animate(_3d2.expand,function(){
+_399(_3cd);
+$(_3cd).layout("options").onExpand.call(_3cd,_3ce);
+});
+}
+function _3d3(){
+var cc=$(_3cd);
+var _3d4=_3cf.center.panel("options");
+if(_3ce=="east"&&_3cf.expandEast){
+return {collapse:{left:cc.width(),top:_3d4.top,height:_3d4.height},expand:{left:cc.width()-p.panel("panel")._outerWidth()}};
+}else{
+if(_3ce=="west"&&_3cf.expandWest){
+return {collapse:{left:-p.panel("panel")._outerWidth(),top:_3d4.top,height:_3d4.height},expand:{left:0}};
+}else{
+if(_3ce=="north"&&_3cf.expandNorth){
+return {collapse:{top:-p.panel("panel")._outerHeight(),width:cc.width()},expand:{top:0}};
+}else{
+if(_3ce=="south"&&_3cf.expandSouth){
+return {collapse:{top:cc.height(),width:cc.width()},expand:{top:cc.height()-p.panel("panel")._outerHeight()}};
+}
+}
+}
+}
+};
+};
+function _39f(pp){
+if(!pp){
+return false;
+}
+if(pp.length){
+return pp.panel("panel").is(":visible");
+}else{
+return false;
+}
+};
+function _3d5(_3d6){
+var _3d7=$.data(_3d6,"layout");
+var opts=_3d7.options;
+var _3d8=_3d7.panels;
+var _3d9=opts.onCollapse;
+opts.onCollapse=function(){
+};
+_3da("east");
+_3da("west");
+_3da("north");
+_3da("south");
+opts.onCollapse=_3d9;
+function _3da(_3db){
+var p=_3d8[_3db];
+if(p.length&&p.panel("options").collapsed){
+_3ba(_3d6,_3db,0);
+}
+};
+};
+function _3dc(_3dd,_3de,_3df){
+var p=$(_3dd).layout("panel",_3de);
+p.panel("options").split=_3df;
+var cls="layout-split-"+_3de;
+var _3e0=p.panel("panel").removeClass(cls);
+if(_3df){
+_3e0.addClass(cls);
+}
+_3e0.resizable({disabled:(!_3df)});
+_399(_3dd);
+};
+$.fn.layout=function(_3e1,_3e2){
+if(typeof _3e1=="string"){
+return $.fn.layout.methods[_3e1](this,_3e2);
+}
+_3e1=_3e1||{};
+return this.each(function(){
+var _3e3=$.data(this,"layout");
+if(_3e3){
+$.extend(_3e3.options,_3e1);
+}else{
+var opts=$.extend({},$.fn.layout.defaults,$.fn.layout.parseOptions(this),_3e1);
+$.data(this,"layout",{options:opts,panels:{center:$(),north:$(),south:$(),east:$(),west:$()}});
+init(this);
+}
+_399(this);
+_3d5(this);
+});
+};
+$.fn.layout.methods={options:function(jq){
+return $.data(jq[0],"layout").options;
+},resize:function(jq,_3e4){
+return jq.each(function(){
+_399(this,_3e4);
+});
+},panel:function(jq,_3e5){
+return $.data(jq[0],"layout").panels[_3e5];
+},collapse:function(jq,_3e6){
+return jq.each(function(){
+_3ba(this,_3e6);
+});
+},expand:function(jq,_3e7){
+return jq.each(function(){
+_3cc(this,_3e7);
+});
+},add:function(jq,_3e8){
+return jq.each(function(){
+_3a8(this,_3e8);
+_399(this);
+if($(this).layout("panel",_3e8.region).panel("options").collapsed){
+_3ba(this,_3e8.region,0);
+}
+});
+},remove:function(jq,_3e9){
+return jq.each(function(){
+_3b5(this,_3e9);
+_399(this);
+});
+},split:function(jq,_3ea){
+return jq.each(function(){
+_3dc(this,_3ea,true);
+});
+},unsplit:function(jq,_3eb){
+return jq.each(function(){
+_3dc(this,_3eb,false);
+});
+}};
+$.fn.layout.parseOptions=function(_3ec){
+return $.extend({},$.parser.parseOptions(_3ec,[{fit:"boolean"}]));
+};
+$.fn.layout.defaults={fit:false,onExpand:function(_3ed){
+},onCollapse:function(_3ee){
+},onAdd:function(_3ef){
+},onRemove:function(_3f0){
+}};
+$.fn.layout.parsePanelOptions=function(_3f1){
+var t=$(_3f1);
+return $.extend({},$.fn.panel.parseOptions(_3f1),$.parser.parseOptions(_3f1,["region",{split:"boolean",collpasedSize:"number",minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number"}]));
+};
+$.fn.layout.paneldefaults=$.extend({},$.fn.panel.defaults,{region:null,split:false,collapsedSize:28,expandMode:"float",hideExpandTool:false,hideCollapsedContent:true,collapsedContent:function(_3f2){
+var p=$(this);
+var opts=p.panel("options");
+if(opts.region=="north"||opts.region=="south"){
+return _3f2;
+}
+var size=opts.collapsedSize-2;
+var left=(size-16)/2;
+left=size-left;
+var cc=[];
+if(opts.iconCls){
+cc.push("<div class=\"panel-icon "+opts.iconCls+"\"></div>");
+}
+cc.push("<div class=\"panel-title layout-expand-title");
+cc.push(opts.iconCls?" layout-expand-with-icon":"");
+cc.push("\" style=\"left:"+left+"px\">");
+cc.push(_3f2);
+cc.push("</div>");
+return cc.join("");
+},minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000});
+})(jQuery);
+(function($){
+$(function(){
+$(document).unbind(".menu").bind("mousedown.menu",function(e){
+var m=$(e.target).closest("div.menu,div.combo-p");
+if(m.length){
+return;
+}
+$("body>div.menu-top:visible").not(".menu-inline").menu("hide");
+_3f3($("body>div.menu:visible").not(".menu-inline"));
+});
+});
+function init(_3f4){
+var opts=$.data(_3f4,"menu").options;
+$(_3f4).addClass("menu-top");
+opts.inline?$(_3f4).addClass("menu-inline"):$(_3f4).appendTo("body");
+$(_3f4).bind("_resize",function(e,_3f5){
+if($(this).hasClass("easyui-fluid")||_3f5){
+$(_3f4).menu("resize",_3f4);
+}
+return false;
+});
+var _3f6=_3f7($(_3f4));
+for(var i=0;i<_3f6.length;i++){
+_3f8(_3f6[i]);
+}
+function _3f7(menu){
+var _3f9=[];
+menu.addClass("menu");
+_3f9.push(menu);
+if(!menu.hasClass("menu-content")){
+menu.children("div").each(function(){
+var _3fa=$(this).children("div");
+if(_3fa.length){
+_3fa.appendTo("body");
+this.submenu=_3fa;
+var mm=_3f7(_3fa);
+_3f9=_3f9.concat(mm);
+}
+});
+}
+return _3f9;
+};
+function _3f8(menu){
+var wh=$.parser.parseOptions(menu[0],["width","height"]);
+menu[0].originalHeight=wh.height||0;
+if(menu.hasClass("menu-content")){
+menu[0].originalWidth=wh.width||menu._outerWidth();
+}else{
+menu[0].originalWidth=wh.width||0;
+menu.children("div").each(function(){
+var item=$(this);
+var _3fb=$.extend({},$.parser.parseOptions(this,["name","iconCls","href",{separator:"boolean"}]),{disabled:(item.attr("disabled")?true:undefined)});
+if(_3fb.separator){
+item.addClass("menu-sep");
+}
+if(!item.hasClass("menu-sep")){
+item[0].itemName=_3fb.name||"";
+item[0].itemHref=_3fb.href||"";
+var text=item.addClass("menu-item").html();
+item.empty().append($("<div class=\"menu-text\"></div>").html(text));
+if(_3fb.iconCls){
+$("<div class=\"menu-icon\"></div>").addClass(_3fb.iconCls).appendTo(item);
+}
+if(_3fb.disabled){
+_3fc(_3f4,item[0],true);
+}
+if(item[0].submenu){
+$("<div class=\"menu-rightarrow\"></div>").appendTo(item);
+}
+_3fd(_3f4,item);
+}
+});
+$("<div class=\"menu-line\"></div>").prependTo(menu);
+}
+_3fe(_3f4,menu);
+if(!menu.hasClass("menu-inline")){
+menu.hide();
+}
+_3ff(_3f4,menu);
+};
+};
+function _3fe(_400,menu){
+var opts=$.data(_400,"menu").options;
+var _401=menu.attr("style")||"";
+menu.css({display:"block",left:-10000,height:"auto",overflow:"hidden"});
+menu.find(".menu-item").each(function(){
+$(this)._outerHeight(opts.itemHeight);
+$(this).find(".menu-text").css({height:(opts.itemHeight-2)+"px",lineHeight:(opts.itemHeight-2)+"px"});
+});
+menu.removeClass("menu-noline").addClass(opts.noline?"menu-noline":"");
+var _402=menu[0].originalWidth||"auto";
+if(isNaN(parseInt(_402))){
+_402=0;
+menu.find("div.menu-text").each(function(){
+if(_402<$(this)._outerWidth()){
+_402=$(this)._outerWidth();
+}
+});
+_402+=40;
+}
+var _403=menu.outerHeight();
+var _404=menu[0].originalHeight||"auto";
+if(isNaN(parseInt(_404))){
+_404=_403;
+if(menu.hasClass("menu-top")&&opts.alignTo){
+var at=$(opts.alignTo);
+var h1=at.offset().top-$(document).scrollTop();
+var h2=$(window)._outerHeight()+$(document).scrollTop()-at.offset().top-at._outerHeight();
+_404=Math.min(_404,Math.max(h1,h2));
+}else{
+if(_404>$(window)._outerHeight()){
+_404=$(window).height();
+}
+}
+}
+menu.attr("style",_401);
+menu._size({fit:(menu[0]==_400?opts.fit:false),width:_402,minWidth:opts.minWidth,height:_404});
+menu.css("overflow",menu.outerHeight()<_403?"auto":"hidden");
+menu.children("div.menu-line")._outerHeight(_403-2);
+};
+function _3ff(_405,menu){
+if(menu.hasClass("menu-inline")){
+return;
+}
+var _406=$.data(_405,"menu");
+menu.unbind(".menu").bind("mouseenter.menu",function(){
+if(_406.timer){
+clearTimeout(_406.timer);
+_406.timer=null;
+}
+}).bind("mouseleave.menu",function(){
+if(_406.options.hideOnUnhover){
+_406.timer=setTimeout(function(){
+_407(_405,$(_405).hasClass("menu-inline"));
+},_406.options.duration);
+}
+});
+};
+function _3fd(_408,item){
+if(!item.hasClass("menu-item")){
+return;
+}
+item.unbind(".menu");
+item.bind("click.menu",function(){
+if($(this).hasClass("menu-item-disabled")){
+return;
+}
+if(!this.submenu){
+_407(_408,$(_408).hasClass("menu-inline"));
+var href=this.itemHref;
+if(href){
+location.href=href;
+}
+}
+$(this).trigger("mouseenter");
+var item=$(_408).menu("getItem",this);
+$.data(_408,"menu").options.onClick.call(_408,item);
+}).bind("mouseenter.menu",function(e){
+item.siblings().each(function(){
+if(this.submenu){
+_3f3(this.submenu);
+}
+$(this).removeClass("menu-active");
+});
+item.addClass("menu-active");
+if($(this).hasClass("menu-item-disabled")){
+item.addClass("menu-active-disabled");
+return;
+}
+var _409=item[0].submenu;
+if(_409){
+$(_408).menu("show",{menu:_409,parent:item});
+}
+}).bind("mouseleave.menu",function(e){
+item.removeClass("menu-active menu-active-disabled");
+var _40a=item[0].submenu;
+if(_40a){
+if(e.pageX>=parseInt(_40a.css("left"))){
+item.addClass("menu-active");
+}else{
+_3f3(_40a);
+}
+}else{
+item.removeClass("menu-active");
+}
+});
+};
+function _407(_40b,_40c){
+var _40d=$.data(_40b,"menu");
+if(_40d){
+if($(_40b).is(":visible")){
+_3f3($(_40b));
+if(_40c){
+$(_40b).show();
+}else{
+_40d.options.onHide.call(_40b);
+}
+}
+}
+return false;
+};
+function _40e(_40f,_410){
+var left,top;
+_410=_410||{};
+var menu=$(_410.menu||_40f);
+$(_40f).menu("resize",menu[0]);
+if(menu.hasClass("menu-top")){
+var opts=$.data(_40f,"menu").options;
+$.extend(opts,_410);
+left=opts.left;
+top=opts.top;
+if(opts.alignTo){
+var at=$(opts.alignTo);
+left=at.offset().left;
+top=at.offset().top+at._outerHeight();
+if(opts.align=="right"){
+left+=at.outerWidth()-menu.outerWidth();
+}
+}
+if(left+menu.outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){
+left=$(window)._outerWidth()+$(document).scrollLeft()-menu.outerWidth()-5;
+}
+if(left<0){
+left=0;
+}
+top=_411(top,opts.alignTo);
+}else{
+var _412=_410.parent;
+left=_412.offset().left+_412.outerWidth()-2;
+if(left+menu.outerWidth()+5>$(window)._outerWidth()+$(document).scrollLeft()){
+left=_412.offset().left-menu.outerWidth()+2;
+}
+top=_411(_412.offset().top-3);
+}
+function _411(top,_413){
+if(top+menu.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
+if(_413){
+top=$(_413).offset().top-menu._outerHeight();
+}else{
+top=$(window)._outerHeight()+$(document).scrollTop()-menu.outerHeight();
+}
+}
+if(top<0){
+top=0;
+}
+return top;
+};
+menu.css({left:left,top:top});
+menu.show(0,function(){
+if(!menu[0].shadow){
+menu[0].shadow=$("<div class=\"menu-shadow\"></div>").insertAfter(menu);
+}
+menu[0].shadow.css({display:(menu.hasClass("menu-inline")?"none":"block"),zIndex:$.fn.menu.defaults.zIndex++,left:menu.css("left"),top:menu.css("top"),width:menu.outerWidth(),height:menu.outerHeight()});
+menu.css("z-index",$.fn.menu.defaults.zIndex++);
+if(menu.hasClass("menu-top")){
+$.data(menu[0],"menu").options.onShow.call(menu[0]);
+}
+});
+};
+function _3f3(menu){
+if(menu&&menu.length){
+_414(menu);
+menu.find("div.menu-item").each(function(){
+if(this.submenu){
+_3f3(this.submenu);
+}
+$(this).removeClass("menu-active");
+});
+}
+function _414(m){
+m.stop(true,true);
+if(m[0].shadow){
+m[0].shadow.hide();
+}
+m.hide();
+};
+};
+function _415(_416,text){
+var _417=null;
+var tmp=$("<div></div>");
+function find(menu){
+menu.children("div.menu-item").each(function(){
+var item=$(_416).menu("getItem",this);
+var s=tmp.empty().html(item.text).text();
+if(text==$.trim(s)){
+_417=item;
+}else{
+if(this.submenu&&!_417){
+find(this.submenu);
+}
+}
+});
+};
+find($(_416));
+tmp.remove();
+return _417;
+};
+function _3fc(_418,_419,_41a){
+var t=$(_419);
+if(!t.hasClass("menu-item")){
+return;
+}
+if(_41a){
+t.addClass("menu-item-disabled");
+if(_419.onclick){
+_419.onclick1=_419.onclick;
+_419.onclick=null;
+}
+}else{
+t.removeClass("menu-item-disabled");
+if(_419.onclick1){
+_419.onclick=_419.onclick1;
+_419.onclick1=null;
+}
+}
+};
+function _41b(_41c,_41d){
+var opts=$.data(_41c,"menu").options;
+var menu=$(_41c);
+if(_41d.parent){
+if(!_41d.parent.submenu){
+var _41e=$("<div class=\"menu\"><div class=\"menu-line\"></div></div>").appendTo("body");
+_41e.hide();
+_41d.parent.submenu=_41e;
+$("<div class=\"menu-rightarrow\"></div>").appendTo(_41d.parent);
+}
+menu=_41d.parent.submenu;
+}
+if(_41d.separator){
+var item=$("<div class=\"menu-sep\"></div>").appendTo(menu);
+}else{
+var item=$("<div class=\"menu-item\"></div>").appendTo(menu);
+$("<div class=\"menu-text\"></div>").html(_41d.text).appendTo(item);
+}
+if(_41d.iconCls){
+$("<div class=\"menu-icon\"></div>").addClass(_41d.iconCls).appendTo(item);
+}
+if(_41d.id){
+item.attr("id",_41d.id);
+}
+if(_41d.name){
+item[0].itemName=_41d.name;
+}
+if(_41d.href){
+item[0].itemHref=_41d.href;
+}
+if(_41d.onclick){
+if(typeof _41d.onclick=="string"){
+item.attr("onclick",_41d.onclick);
+}else{
+item[0].onclick=eval(_41d.onclick);
+}
+}
+if(_41d.handler){
+item[0].onclick=eval(_41d.handler);
+}
+if(_41d.disabled){
+_3fc(_41c,item[0],true);
+}
+_3fd(_41c,item);
+_3ff(_41c,menu);
+_3fe(_41c,menu);
+};
+function _41f(_420,_421){
+function _422(el){
+if(el.submenu){
+el.submenu.children("div.menu-item").each(function(){
+_422(this);
+});
+var _423=el.submenu[0].shadow;
+if(_423){
+_423.remove();
+}
+el.submenu.remove();
+}
+$(el).remove();
+};
+var menu=$(_421).parent();
+_422(_421);
+_3fe(_420,menu);
+};
+function _424(_425,_426,_427){
+var menu=$(_426).parent();
+if(_427){
+$(_426).show();
+}else{
+$(_426).hide();
+}
+_3fe(_425,menu);
+};
+function _428(_429){
+$(_429).children("div.menu-item").each(function(){
+_41f(_429,this);
+});
+if(_429.shadow){
+_429.shadow.remove();
+}
+$(_429).remove();
+};
+$.fn.menu=function(_42a,_42b){
+if(typeof _42a=="string"){
+return $.fn.menu.methods[_42a](this,_42b);
+}
+_42a=_42a||{};
+return this.each(function(){
+var _42c=$.data(this,"menu");
+if(_42c){
+$.extend(_42c.options,_42a);
+}else{
+_42c=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,$.fn.menu.parseOptions(this),_42a)});
+init(this);
+}
+$(this).css({left:_42c.options.left,top:_42c.options.top});
+});
+};
+$.fn.menu.methods={options:function(jq){
+return $.data(jq[0],"menu").options;
+},show:function(jq,pos){
+return jq.each(function(){
+_40e(this,pos);
+});
+},hide:function(jq){
+return jq.each(function(){
+_407(this);
+});
+},destroy:function(jq){
+return jq.each(function(){
+_428(this);
+});
+},setText:function(jq,_42d){
+return jq.each(function(){
+$(_42d.target).children("div.menu-text").html(_42d.text);
+});
+},setIcon:function(jq,_42e){
+return jq.each(function(){
+$(_42e.target).children("div.menu-icon").remove();
+if(_42e.iconCls){
+$("<div class=\"menu-icon\"></div>").addClass(_42e.iconCls).appendTo(_42e.target);
+}
+});
+},getItem:function(jq,_42f){
+var t=$(_42f);
+var item={target:_42f,id:t.attr("id"),text:$.trim(t.children("div.menu-text").html()),disabled:t.hasClass("menu-item-disabled"),name:_42f.itemName,href:_42f.itemHref,onclick:_42f.onclick};
+var icon=t.children("div.menu-icon");
+if(icon.length){
+var cc=[];
+var aa=icon.attr("class").split(" ");
+for(var i=0;i<aa.length;i++){
+if(aa[i]!="menu-icon"){
+cc.push(aa[i]);
+}
+}
+item.iconCls=cc.join(" ");
+}
+return item;
+},findItem:function(jq,text){
+return _415(jq[0],text);
+},appendItem:function(jq,_430){
+return jq.each(function(){
+_41b(this,_430);
+});
+},removeItem:function(jq,_431){
+return jq.each(function(){
+_41f(this,_431);
+});
+},enableItem:function(jq,_432){
+return jq.each(function(){
+_3fc(this,_432,false);
+});
+},disableItem:function(jq,_433){
+return jq.each(function(){
+_3fc(this,_433,true);
+});
+},showItem:function(jq,_434){
+return jq.each(function(){
+_424(this,_434,true);
+});
+},hideItem:function(jq,_435){
+return jq.each(function(){
+_424(this,_435,false);
+});
+},resize:function(jq,_436){
+return jq.each(function(){
+_3fe(this,$(_436));
+});
+}};
+$.fn.menu.parseOptions=function(_437){
+return $.extend({},$.parser.parseOptions(_437,[{minWidth:"number",itemHeight:"number",duration:"number",hideOnUnhover:"boolean"},{fit:"boolean",inline:"boolean",noline:"boolean"}]));
+};
+$.fn.menu.defaults={zIndex:110000,left:0,top:0,alignTo:null,align:"left",minWidth:120,itemHeight:22,duration:100,hideOnUnhover:true,inline:false,fit:false,noline:false,onShow:function(){
+},onHide:function(){
+},onClick:function(item){
+}};
+})(jQuery);
+(function($){
+function init(_438){
+var opts=$.data(_438,"menubutton").options;
+var btn=$(_438);
+btn.linkbutton(opts);
+if(opts.hasDownArrow){
+btn.removeClass(opts.cls.btn1+" "+opts.cls.btn2).addClass("m-btn");
+btn.removeClass("m-btn-small m-btn-medium m-btn-large").addClass("m-btn-"+opts.size);
+var _439=btn.find(".l-btn-left");
+$("<span></span>").addClass(opts.cls.arrow).appendTo(_439);
+$("<span></span>").addClass("m-btn-line").appendTo(_439);
+}
+$(_438).menubutton("resize");
+if(opts.menu){
+$(opts.menu).menu({duration:opts.duration});
+var _43a=$(opts.menu).menu("options");
+var _43b=_43a.onShow;
+var _43c=_43a.onHide;
+$.extend(_43a,{onShow:function(){
+var _43d=$(this).menu("options");
+var btn=$(_43d.alignTo);
+var opts=btn.menubutton("options");
+btn.addClass((opts.plain==true)?opts.cls.btn2:opts.cls.btn1);
+_43b.call(this);
+},onHide:function(){
+var _43e=$(this).menu("options");
+var btn=$(_43e.alignTo);
+var opts=btn.menubutton("options");
+btn.removeClass((opts.plain==true)?opts.cls.btn2:opts.cls.btn1);
+_43c.call(this);
+}});
+}
+};
+function _43f(_440){
+var opts=$.data(_440,"menubutton").options;
+var btn=$(_440);
+var t=btn.find("."+opts.cls.trigger);
+if(!t.length){
+t=btn;
+}
+t.unbind(".menubutton");
+var _441=null;
+t.bind("click.menubutton",function(){
+if(!_442()){
+_443(_440);
+return false;
+}
+}).bind("mouseenter.menubutton",function(){
+if(!_442()){
+_441=setTimeout(function(){
+_443(_440);
+},opts.duration);
+return false;
+}
+}).bind("mouseleave.menubutton",function(){
+if(_441){
+clearTimeout(_441);
+}
+$(opts.menu).triggerHandler("mouseleave");
+});
+function _442(){
+return $(_440).linkbutton("options").disabled;
+};
+};
+function _443(_444){
+var opts=$(_444).menubutton("options");
+if(opts.disabled||!opts.menu){
+return;
+}
+$("body>div.menu-top").menu("hide");
+var btn=$(_444);
+var mm=$(opts.menu);
+if(mm.length){
+mm.menu("options").alignTo=btn;
+mm.menu("show",{alignTo:btn,align:opts.menuAlign});
+}
+btn.blur();
+};
+$.fn.menubutton=function(_445,_446){
+if(typeof _445=="string"){
+var _447=$.fn.menubutton.methods[_445];
+if(_447){
+return _447(this,_446);
+}else{
+return this.linkbutton(_445,_446);
+}
+}
+_445=_445||{};
+return this.each(function(){
+var _448=$.data(this,"menubutton");
+if(_448){
+$.extend(_448.options,_445);
+}else{
+$.data(this,"menubutton",{options:$.extend({},$.fn.menubutton.defaults,$.fn.menubutton.parseOptions(this),_445)});
+$(this).removeAttr("disabled");
+}
+init(this);
+_43f(this);
+});
+};
+$.fn.menubutton.methods={options:function(jq){
+var _449=jq.linkbutton("options");
+return $.extend($.data(jq[0],"menubutton").options,{toggle:_449.toggle,selected:_449.selected,disabled:_449.disabled});
+},destroy:function(jq){
+return jq.each(function(){
+var opts=$(this).menubutton("options");
+if(opts.menu){
+$(opts.menu).menu("destroy");
+}
+$(this).remove();
+});
+}};
+$.fn.menubutton.parseOptions=function(_44a){
+var t=$(_44a);
+return $.extend({},$.fn.linkbutton.parseOptions(_44a),$.parser.parseOptions(_44a,["menu",{plain:"boolean",hasDownArrow:"boolean",duration:"number"}]));
+};
+$.fn.menubutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,hasDownArrow:true,menu:null,menuAlign:"left",duration:100,cls:{btn1:"m-btn-active",btn2:"m-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn"}});
+})(jQuery);
+(function($){
+function init(_44b){
+var opts=$.data(_44b,"splitbutton").options;
+$(_44b).menubutton(opts);
+$(_44b).addClass("s-btn");
+};
+$.fn.splitbutton=function(_44c,_44d){
+if(typeof _44c=="string"){
+var _44e=$.fn.splitbutton.methods[_44c];
+if(_44e){
+return _44e(this,_44d);
+}else{
+return this.menubutton(_44c,_44d);
+}
+}
+_44c=_44c||{};
+return this.each(function(){
+var _44f=$.data(this,"splitbutton");
+if(_44f){
+$.extend(_44f.options,_44c);
+}else{
+$.data(this,"splitbutton",{options:$.extend({},$.fn.splitbutton.defaults,$.fn.splitbutton.parseOptions(this),_44c)});
+$(this).removeAttr("disabled");
+}
+init(this);
+});
+};
+$.fn.splitbutton.methods={options:function(jq){
+var _450=jq.menubutton("options");
+var _451=$.data(jq[0],"splitbutton").options;
+$.extend(_451,{disabled:_450.disabled,toggle:_450.toggle,selected:_450.selected});
+return _451;
+}};
+$.fn.splitbutton.parseOptions=function(_452){
+var t=$(_452);
+return $.extend({},$.fn.linkbutton.parseOptions(_452),$.parser.parseOptions(_452,["menu",{plain:"boolean",duration:"number"}]));
+};
+$.fn.splitbutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,duration:100,cls:{btn1:"m-btn-active s-btn-active",btn2:"m-btn-plain-active s-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn-line"}});
+})(jQuery);
+(function($){
+function init(_453){
+var _454=$("<span class=\"switchbutton\">"+"<span class=\"switchbutton-inner\">"+"<span class=\"switchbutton-on\"></span>"+"<span class=\"switchbutton-handle\"></span>"+"<span class=\"switchbutton-off\"></span>"+"<input class=\"switchbutton-value\" type=\"checkbox\">"+"</span>"+"</span>").insertAfter(_453);
+var t=$(_453);
+t.addClass("switchbutton-f").hide();
+var name=t.attr("name");
+if(name){
+t.removeAttr("name").attr("switchbuttonName",name);
+_454.find(".switchbutton-value").attr("name",name);
+}
+_454.bind("_resize",function(e,_455){
+if($(this).hasClass("easyui-fluid")||_455){
+_456(_453);
+}
+return false;
+});
+return _454;
+};
+function _456(_457,_458){
+var _459=$.data(_457,"switchbutton");
+var opts=_459.options;
+var _45a=_459.switchbutton;
+if(_458){
+$.extend(opts,_458);
+}
+var _45b=_45a.is(":visible");
+if(!_45b){
+_45a.appendTo("body");
+}
+_45a._size(opts);
+var w=_45a.width();
+var h=_45a.height();
+var w=_45a.outerWidth();
+var h=_45a.outerHeight();
+var _45c=parseInt(opts.handleWidth)||_45a.height();
+var _45d=w*2-_45c;
+_45a.find(".switchbutton-inner").css({width:_45d+"px",height:h+"px",lineHeight:h+"px"});
+_45a.find(".switchbutton-handle")._outerWidth(_45c)._outerHeight(h).css({marginLeft:-_45c/2+"px"});
+_45a.find(".switchbutton-on").css({width:(w-_45c/2)+"px",textIndent:(opts.reversed?"":"-")+_45c/2+"px"});
+_45a.find(".switchbutton-off").css({width:(w-_45c/2)+"px",textIndent:(opts.reversed?"-":"")+_45c/2+"px"});
+opts.marginWidth=w-_45c;
+_45e(_457,opts.checked,false);
+if(!_45b){
+_45a.insertAfter(_457);
+}
+};
+function _45f(_460){
+var _461=$.data(_460,"switchbutton");
+var opts=_461.options;
+var _462=_461.switchbutton;
+var _463=_462.find(".switchbutton-inner");
+var on=_463.find(".switchbutton-on").html(opts.onText);
+var off=_463.find(".switchbutton-off").html(opts.offText);
+var _464=_463.find(".switchbutton-handle").html(opts.handleText);
+if(opts.reversed){
+off.prependTo(_463);
+on.insertAfter(_464);
+}else{
+on.prependTo(_463);
+off.insertAfter(_464);
+}
+_462.find(".switchbutton-value")._propAttr("checked",opts.checked);
+_462.removeClass("switchbutton-disabled").addClass(opts.disabled?"switchbutton-disabled":"");
+_462.removeClass("switchbutton-reversed").addClass(opts.reversed?"switchbutton-reversed":"");
+_45e(_460,opts.checked);
+_465(_460,opts.readonly);
+$(_460).switchbutton("setValue",opts.value);
+};
+function _45e(_466,_467,_468){
+var _469=$.data(_466,"switchbutton");
+var opts=_469.options;
+opts.checked=_467;
+var _46a=_469.switchbutton.find(".switchbutton-inner");
+var _46b=_46a.find(".switchbutton-on");
+var _46c=opts.reversed?(opts.checked?opts.marginWidth:0):(opts.checked?0:opts.marginWidth);
+var dir=_46b.css("float").toLowerCase();
+var css={};
+css["margin-"+dir]=-_46c+"px";
+_468?_46a.animate(css,200):_46a.css(css);
+var _46d=_46a.find(".switchbutton-value");
+var ck=_46d.is(":checked");
+$(_466).add(_46d)._propAttr("checked",opts.checked);
+if(ck!=opts.checked){
+opts.onChange.call(_466,opts.checked);
+}
+};
+function _46e(_46f,_470){
+var _471=$.data(_46f,"switchbutton");
+var opts=_471.options;
+var _472=_471.switchbutton;
+var _473=_472.find(".switchbutton-value");
+if(_470){
+opts.disabled=true;
+$(_46f).add(_473).attr("disabled","disabled");
+_472.addClass("switchbutton-disabled");
+}else{
+opts.disabled=false;
+$(_46f).add(_473).removeAttr("disabled");
+_472.removeClass("switchbutton-disabled");
+}
+};
+function _465(_474,mode){
+var _475=$.data(_474,"switchbutton");
+var opts=_475.options;
+opts.readonly=mode==undefined?true:mode;
+_475.switchbutton.removeClass("switchbutton-readonly").addClass(opts.readonly?"switchbutton-readonly":"");
+};
+function _476(_477){
+var _478=$.data(_477,"switchbutton");
+var opts=_478.options;
+_478.switchbutton.unbind(".switchbutton").bind("click.switchbutton",function(){
+if(!opts.disabled&&!opts.readonly){
+_45e(_477,opts.checked?false:true,true);
+}
+});
+};
+$.fn.switchbutton=function(_479,_47a){
+if(typeof _479=="string"){
+return $.fn.switchbutton.methods[_479](this,_47a);
+}
+_479=_479||{};
+return this.each(function(){
+var _47b=$.data(this,"switchbutton");
+if(_47b){
+$.extend(_47b.options,_479);
+}else{
+_47b=$.data(this,"switchbutton",{options:$.extend({},$.fn.switchbutton.defaults,$.fn.switchbutton.parseOptions(this),_479),switchbutton:init(this)});
+}
+_47b.options.originalChecked=_47b.options.checked;
+_45f(this);
+_456(this);
+_476(this);
+});
+};
+$.fn.switchbutton.methods={options:function(jq){
+var _47c=jq.data("switchbutton");
+return $.extend(_47c.options,{value:_47c.switchbutton.find(".switchbutton-value").val()});
+},resize:function(jq,_47d){
+return jq.each(function(){
+_456(this,_47d);
+});
+},enable:function(jq){
+return jq.each(function(){
+_46e(this,false);
+});
+},disable:function(jq){
+return jq.each(function(){
+_46e(this,true);
+});
+},readonly:function(jq,mode){
+return jq.each(function(){
+_465(this,mode);
+});
+},check:function(jq){
+return jq.each(function(){
+_45e(this,true);
+});
+},uncheck:function(jq){
+return jq.each(function(){
+_45e(this,false);
+});
+},clear:function(jq){
+return jq.each(function(){
+_45e(this,false);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).switchbutton("options");
+_45e(this,opts.originalChecked);
+});
+},setValue:function(jq,_47e){
+return jq.each(function(){
+$(this).val(_47e);
+$.data(this,"switchbutton").switchbutton.find(".switchbutton-value").val(_47e);
+});
+}};
+$.fn.switchbutton.parseOptions=function(_47f){
+var t=$(_47f);
+return $.extend({},$.parser.parseOptions(_47f,["onText","offText","handleText",{handleWidth:"number",reversed:"boolean"}]),{value:(t.val()||undefined),checked:(t.attr("checked")?true:undefined),disabled:(t.attr("disabled")?true:undefined),readonly:(t.attr("readonly")?true:undefined)});
+};
+$.fn.switchbutton.defaults={handleWidth:"auto",width:60,height:26,checked:false,disabled:false,readonly:false,reversed:false,onText:"ON",offText:"OFF",handleText:"",value:"on",onChange:function(_480){
+}};
+})(jQuery);
+(function($){
+function init(_481){
+$(_481).addClass("validatebox-text");
+};
+function _482(_483){
+var _484=$.data(_483,"validatebox");
+_484.validating=false;
+if(_484.timer){
+clearTimeout(_484.timer);
+}
+$(_483).tooltip("destroy");
+$(_483).unbind();
+$(_483).remove();
+};
+function _485(_486){
+var opts=$.data(_486,"validatebox").options;
+var box=$(_486);
+box.unbind(".validatebox");
+if(opts.novalidate||box.is(":disabled")){
+return;
+}
+for(var _487 in opts.events){
+$(_486).bind(_487+".validatebox",{target:_486},opts.events[_487]);
+}
+};
+function _488(e){
+var _489=e.data.target;
+var _48a=$.data(_489,"validatebox");
+var box=$(_489);
+if($(_489).attr("readonly")){
+return;
+}
+_48a.validating=true;
+_48a.value=undefined;
+(function(){
+if(_48a.validating){
+if(_48a.value!=box.val()){
+_48a.value=box.val();
+if(_48a.timer){
+clearTimeout(_48a.timer);
+}
+_48a.timer=setTimeout(function(){
+$(_489).validatebox("validate");
+},_48a.options.delay);
+}else{
+_48b(_489);
+}
+setTimeout(arguments.callee,200);
+}
+})();
+};
+function _48c(e){
+var _48d=e.data.target;
+var _48e=$.data(_48d,"validatebox");
+if(_48e.timer){
+clearTimeout(_48e.timer);
+_48e.timer=undefined;
+}
+_48e.validating=false;
+_48f(_48d);
+};
+function _490(e){
+var _491=e.data.target;
+if($(_491).hasClass("validatebox-invalid")){
+_492(_491);
+}
+};
+function _493(e){
+var _494=e.data.target;
+var _495=$.data(_494,"validatebox");
+if(!_495.validating){
+_48f(_494);
+}
+};
+function _492(_496){
+var _497=$.data(_496,"validatebox");
+var opts=_497.options;
+$(_496).tooltip($.extend({},opts.tipOptions,{content:_497.message,position:opts.tipPosition,deltaX:opts.deltaX})).tooltip("show");
+_497.tip=true;
+};
+function _48b(_498){
+var _499=$.data(_498,"validatebox");
+if(_499&&_499.tip){
+$(_498).tooltip("reposition");
+}
+};
+function _48f(_49a){
+var _49b=$.data(_49a,"validatebox");
+_49b.tip=false;
+$(_49a).tooltip("hide");
+};
+function _49c(_49d){
+var _49e=$.data(_49d,"validatebox");
+var opts=_49e.options;
+var box=$(_49d);
+opts.onBeforeValidate.call(_49d);
+var _49f=_4a0();
+opts.onValidate.call(_49d,_49f);
+return _49f;
+function _4a1(msg){
+_49e.message=msg;
+};
+function _4a2(_4a3,_4a4){
+var _4a5=box.val();
+var _4a6=/([a-zA-Z_]+)(.*)/.exec(_4a3);
+var rule=opts.rules[_4a6[1]];
+if(rule&&_4a5){
+var _4a7=_4a4||opts.validParams||eval(_4a6[2]);
+if(!rule["validator"].call(_49d,_4a5,_4a7)){
+box.addClass("validatebox-invalid");
+var _4a8=rule["message"];
+if(_4a7){
+for(var i=0;i<_4a7.length;i++){
+_4a8=_4a8.replace(new RegExp("\\{"+i+"\\}","g"),_4a7[i]);
+}
+}
+_4a1(opts.invalidMessage||_4a8);
+if(_49e.validating){
+_492(_49d);
+}
+return false;
+}
+}
+return true;
+};
+function _4a0(){
+box.removeClass("validatebox-invalid");
+_48f(_49d);
+if(opts.novalidate||box.is(":disabled")){
+return true;
+}
+if(opts.required){
+if(box.val()==""){
+box.addClass("validatebox-invalid");
+_4a1(opts.missingMessage);
+if(_49e.validating){
+_492(_49d);
+}
+return false;
+}
+}
+if(opts.validType){
+if($.isArray(opts.validType)){
+for(var i=0;i<opts.validType.length;i++){
+if(!_4a2(opts.validType[i])){
+return false;
+}
+}
+}else{
+if(typeof opts.validType=="string"){
+if(!_4a2(opts.validType)){
+return false;
+}
+}else{
+for(var _4a9 in opts.validType){
+var _4aa=opts.validType[_4a9];
+if(!_4a2(_4a9,_4aa)){
+return false;
+}
+}
+}
+}
+}
+return true;
+};
+};
+function _4ab(_4ac,_4ad){
+var opts=$.data(_4ac,"validatebox").options;
+if(_4ad!=undefined){
+opts.novalidate=_4ad;
+}
+if(opts.novalidate){
+$(_4ac).removeClass("validatebox-invalid");
+_48f(_4ac);
+}
+_49c(_4ac);
+_485(_4ac);
+};
+$.fn.validatebox=function(_4ae,_4af){
+if(typeof _4ae=="string"){
+return $.fn.validatebox.methods[_4ae](this,_4af);
+}
+_4ae=_4ae||{};
+return this.each(function(){
+var _4b0=$.data(this,"validatebox");
+if(_4b0){
+$.extend(_4b0.options,_4ae);
+}else{
+init(this);
+$.data(this,"validatebox",{options:$.extend({},$.fn.validatebox.defaults,$.fn.validatebox.parseOptions(this),_4ae)});
+}
+_4ab(this);
+_49c(this);
+});
+};
+$.fn.validatebox.methods={options:function(jq){
+return $.data(jq[0],"validatebox").options;
+},destroy:function(jq){
+return jq.each(function(){
+_482(this);
+});
+},validate:function(jq){
+return jq.each(function(){
+_49c(this);
+});
+},isValid:function(jq){
+return _49c(jq[0]);
+},enableValidation:function(jq){
+return jq.each(function(){
+_4ab(this,false);
+});
+},disableValidation:function(jq){
+return jq.each(function(){
+_4ab(this,true);
+});
+}};
+$.fn.validatebox.parseOptions=function(_4b1){
+var t=$(_4b1);
+return $.extend({},$.parser.parseOptions(_4b1,["validType","missingMessage","invalidMessage","tipPosition",{delay:"number",deltaX:"number"}]),{required:(t.attr("required")?true:undefined),novalidate:(t.attr("novalidate")!=undefined?true:undefined)});
+};
+$.fn.validatebox.defaults={required:false,validType:null,validParams:null,delay:200,missingMessage:"This field is required.",invalidMessage:null,tipPosition:"right",deltaX:0,novalidate:false,events:{focus:_488,blur:_48c,mouseenter:_490,mouseleave:_493,click:function(e){
+var t=$(e.data.target);
+if(!t.is(":focus")){
+t.trigger("focus");
+}
+}},tipOptions:{showEvent:"none",hideEvent:"none",showDelay:0,hideDelay:0,zIndex:"",onShow:function(){
+$(this).tooltip("tip").css({color:"#000",borderColor:"#CC9933",backgroundColor:"#FFFFCC"});
+},onHide:function(){
+$(this).tooltip("destroy");
+}},rules:{email:{validator:function(_4b2){
+return /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(_4b2);
+},message:"Please enter a valid email address."},url:{validator:function(_4b3){
+return /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(_4b3);
+},message:"Please enter a valid URL."},length:{validator:function(_4b4,_4b5){
+var len=$.trim(_4b4).length;
+return len>=_4b5[0]&&len<=_4b5[1];
+},message:"Please enter a value between {0} and {1}."},remote:{validator:function(_4b6,_4b7){
+var data={};
+data[_4b7[1]]=_4b6;
+var _4b8=$.ajax({url:_4b7[0],dataType:"json",data:data,async:false,cache:false,type:"post"}).responseText;
+return _4b8=="true";
+},message:"Please fix this field."}},onBeforeValidate:function(){
+},onValidate:function(_4b9){
+}};
+})(jQuery);
+(function($){
+function init(_4ba){
+$(_4ba).addClass("textbox-f").hide();
+var span=$("<span class=\"textbox\">"+"<input class=\"textbox-text\" autocomplete=\"off\">"+"<input type=\"hidden\" class=\"textbox-value\">"+"</span>").insertAfter(_4ba);
+var name=$(_4ba).attr("name");
+if(name){
+span.find("input.textbox-value").attr("name",name);
+$(_4ba).removeAttr("name").attr("textboxName",name);
+}
+return span;
+};
+function _4bb(_4bc){
+var _4bd=$.data(_4bc,"textbox");
+var opts=_4bd.options;
+var tb=_4bd.textbox;
+tb.find(".textbox-text").remove();
+if(opts.multiline){
+$("<textarea class=\"textbox-text\" autocomplete=\"off\"></textarea>").prependTo(tb);
+}else{
+$("<input type=\""+opts.type+"\" class=\"textbox-text\" autocomplete=\"off\">").prependTo(tb);
+}
+tb.find(".textbox-addon").remove();
+var bb=opts.icons?$.extend(true,[],opts.icons):[];
+if(opts.iconCls){
+bb.push({iconCls:opts.iconCls,disabled:true});
+}
+if(bb.length){
+var bc=$("<span class=\"textbox-addon\"></span>").prependTo(tb);
+bc.addClass("textbox-addon-"+opts.iconAlign);
+for(var i=0;i<bb.length;i++){
+bc.append("<a href=\"javascript:void(0)\" class=\"textbox-icon "+bb[i].iconCls+"\" icon-index=\""+i+"\" tabindex=\"-1\"></a>");
+}
+}
+tb.find(".textbox-button").remove();
+if(opts.buttonText||opts.buttonIcon){
+var btn=$("<a href=\"javascript:void(0)\" class=\"textbox-button\"></a>").prependTo(tb);
+btn.addClass("textbox-button-"+opts.buttonAlign).linkbutton({text:opts.buttonText,iconCls:opts.buttonIcon});
+}
+_4be(_4bc,opts.disabled);
+_4bf(_4bc,opts.readonly);
+};
+function _4c0(_4c1){
+var tb=$.data(_4c1,"textbox").textbox;
+tb.find(".textbox-text").validatebox("destroy");
+tb.remove();
+$(_4c1).remove();
+};
+function _4c2(_4c3,_4c4){
+var _4c5=$.data(_4c3,"textbox");
+var opts=_4c5.options;
+var tb=_4c5.textbox;
+var _4c6=tb.parent();
+if(_4c4){
+opts.width=_4c4;
+}
+if(isNaN(parseInt(opts.width))){
+var c=$(_4c3).clone();
+c.css("visibility","hidden");
+c.insertAfter(_4c3);
+opts.width=c.outerWidth();
+c.remove();
+}
+var _4c7=tb.is(":visible");
+if(!_4c7){
+tb.appendTo("body");
+}
+var _4c8=tb.find(".textbox-text");
+var btn=tb.find(".textbox-button");
+var _4c9=tb.find(".textbox-addon");
+var _4ca=_4c9.find(".textbox-icon");
+tb._size(opts,_4c6);
+btn.linkbutton("resize",{height:tb.height()});
+btn.css({left:(opts.buttonAlign=="left"?0:""),right:(opts.buttonAlign=="right"?0:"")});
+_4c9.css({left:(opts.iconAlign=="left"?(opts.buttonAlign=="left"?btn._outerWidth():0):""),right:(opts.iconAlign=="right"?(opts.buttonAlign=="right"?btn._outerWidth():0):"")});
+_4ca.css({width:opts.iconWidth+"px",height:tb.height()+"px"});
+_4c8.css({paddingLeft:(_4c3.style.paddingLeft||""),paddingRight:(_4c3.style.paddingRight||""),marginLeft:_4cb("left"),marginRight:_4cb("right")});
+if(opts.multiline){
+_4c8.css({paddingTop:(_4c3.style.paddingTop||""),paddingBottom:(_4c3.style.paddingBottom||"")});
+_4c8._outerHeight(tb.height());
+}else{
+var _4cc=Math.floor((tb.height()-_4c8.height())/2);
+_4c8.css({paddingTop:_4cc+"px",paddingBottom:_4cc+"px"});
+}
+_4c8._outerWidth(tb.width()-_4ca.length*opts.iconWidth-btn._outerWidth());
+if(!_4c7){
+tb.insertAfter(_4c3);
+}
+opts.onResize.call(_4c3,opts.width,opts.height);
+function _4cb(_4cd){
+return (opts.iconAlign==_4cd?_4c9._outerWidth():0)+(opts.buttonAlign==_4cd?btn._outerWidth():0);
+};
+};
+function _4ce(_4cf){
+var opts=$(_4cf).textbox("options");
+var _4d0=$(_4cf).textbox("textbox");
+_4d0.validatebox($.extend({},opts,{deltaX:$(_4cf).textbox("getTipX"),onBeforeValidate:function(){
+var box=$(this);
+if(!box.is(":focus")){
+opts.oldInputValue=box.val();
+box.val(opts.value);
+}
+},onValidate:function(_4d1){
+var box=$(this);
+if(opts.oldInputValue!=undefined){
+box.val(opts.oldInputValue);
+opts.oldInputValue=undefined;
+}
+var tb=box.parent();
+if(_4d1){
+tb.removeClass("textbox-invalid");
+}else{
+tb.addClass("textbox-invalid");
+}
+}}));
+};
+function _4d2(_4d3){
+var _4d4=$.data(_4d3,"textbox");
+var opts=_4d4.options;
+var tb=_4d4.textbox;
+var _4d5=tb.find(".textbox-text");
+_4d5.attr("placeholder",opts.prompt);
+_4d5.unbind(".textbox");
+if(!opts.disabled&&!opts.readonly){
+_4d5.bind("blur.textbox",function(e){
+if(!tb.hasClass("textbox-focused")){
+return;
+}
+opts.value=$(this).val();
+if(opts.value==""){
+$(this).val(opts.prompt).addClass("textbox-prompt");
+}else{
+$(this).removeClass("textbox-prompt");
+}
+tb.removeClass("textbox-focused");
+}).bind("focus.textbox",function(e){
+if(tb.hasClass("textbox-focused")){
+return;
+}
+if($(this).val()!=opts.value){
+$(this).val(opts.value);
+}
+$(this).removeClass("textbox-prompt");
+tb.addClass("textbox-focused");
+});
+for(var _4d6 in opts.inputEvents){
+_4d5.bind(_4d6+".textbox",{target:_4d3},opts.inputEvents[_4d6]);
+}
+}
+var _4d7=tb.find(".textbox-addon");
+_4d7.unbind().bind("click",{target:_4d3},function(e){
+var icon=$(e.target).closest("a.textbox-icon:not(.textbox-icon-disabled)");
+if(icon.length){
+var _4d8=parseInt(icon.attr("icon-index"));
+var conf=opts.icons[_4d8];
+if(conf&&conf.handler){
+conf.handler.call(icon[0],e);
+opts.onClickIcon.call(_4d3,_4d8);
+}
+}
+});
+_4d7.find(".textbox-icon").each(function(_4d9){
+var conf=opts.icons[_4d9];
+var icon=$(this);
+if(!conf||conf.disabled||opts.disabled||opts.readonly){
+icon.addClass("textbox-icon-disabled");
+}else{
+icon.removeClass("textbox-icon-disabled");
+}
+});
+var btn=tb.find(".textbox-button");
+btn.unbind(".textbox").bind("click.textbox",function(){
+if(!btn.linkbutton("options").disabled){
+opts.onClickButton.call(_4d3);
+}
+});
+btn.linkbutton((opts.disabled||opts.readonly)?"disable":"enable");
+tb.unbind(".textbox").bind("_resize.textbox",function(e,_4da){
+if($(this).hasClass("easyui-fluid")||_4da){
+_4c2(_4d3);
+}
+return false;
+});
+};
+function _4be(_4db,_4dc){
+var _4dd=$.data(_4db,"textbox");
+var opts=_4dd.options;
+var tb=_4dd.textbox;
+if(_4dc){
+opts.disabled=true;
+$(_4db).attr("disabled","disabled");
+tb.addClass("textbox-disabled");
+tb.find(".textbox-text,.textbox-value").attr("disabled","disabled");
+}else{
+opts.disabled=false;
+tb.removeClass("textbox-disabled");
+$(_4db).removeAttr("disabled");
+tb.find(".textbox-text,.textbox-value").removeAttr("disabled");
+}
+};
+function _4bf(_4de,mode){
+var _4df=$.data(_4de,"textbox");
+var opts=_4df.options;
+opts.readonly=mode==undefined?true:mode;
+_4df.textbox.removeClass("textbox-readonly").addClass(opts.readonly?"textbox-readonly":"");
+var _4e0=_4df.textbox.find(".textbox-text");
+_4e0.removeAttr("readonly");
+if(opts.readonly||!opts.editable){
+_4e0.attr("readonly","readonly");
+}
+};
+$.fn.textbox=function(_4e1,_4e2){
+if(typeof _4e1=="string"){
+var _4e3=$.fn.textbox.methods[_4e1];
+if(_4e3){
+return _4e3(this,_4e2);
+}else{
+return this.each(function(){
+var _4e4=$(this).textbox("textbox");
+_4e4.validatebox(_4e1,_4e2);
+});
+}
+}
+_4e1=_4e1||{};
+return this.each(function(){
+var _4e5=$.data(this,"textbox");
+if(_4e5){
+$.extend(_4e5.options,_4e1);
+if(_4e1.value!=undefined){
+_4e5.options.originalValue=_4e1.value;
+}
+}else{
+_4e5=$.data(this,"textbox",{options:$.extend({},$.fn.textbox.defaults,$.fn.textbox.parseOptions(this),_4e1),textbox:init(this)});
+_4e5.options.originalValue=_4e5.options.value;
+}
+_4bb(this);
+_4d2(this);
+_4c2(this);
+_4ce(this);
+$(this).textbox("initValue",_4e5.options.value);
+});
+};
+$.fn.textbox.methods={options:function(jq){
+return $.data(jq[0],"textbox").options;
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+var t=$(this);
+if(t.data("textbox")){
+return;
+}
+if(!$(from).data("textbox")){
+$(from).textbox();
+}
+var name=t.attr("name")||"";
+t.addClass("textbox-f").hide();
+t.removeAttr("name").attr("textboxName",name);
+var span=$(from).next().clone().insertAfter(t);
+span.find("input.textbox-value").attr("name",name);
+$.data(this,"textbox",{options:$.extend(true,{},$(from).textbox("options")),textbox:span});
+var _4e6=$(from).textbox("button");
+if(_4e6.length){
+t.textbox("button").linkbutton($.extend(true,{},_4e6.linkbutton("options")));
+}
+_4d2(this);
+_4ce(this);
+});
+},textbox:function(jq){
+return $.data(jq[0],"textbox").textbox.find(".textbox-text");
+},button:function(jq){
+return $.data(jq[0],"textbox").textbox.find(".textbox-button");
+},destroy:function(jq){
+return jq.each(function(){
+_4c0(this);
+});
+},resize:function(jq,_4e7){
+return jq.each(function(){
+_4c2(this,_4e7);
+});
+},disable:function(jq){
+return jq.each(function(){
+_4be(this,true);
+_4d2(this);
+});
+},enable:function(jq){
+return jq.each(function(){
+_4be(this,false);
+_4d2(this);
+});
+},readonly:function(jq,mode){
+return jq.each(function(){
+_4bf(this,mode);
+_4d2(this);
+});
+},isValid:function(jq){
+return jq.textbox("textbox").validatebox("isValid");
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("setValue","");
+});
+},setText:function(jq,_4e8){
+return jq.each(function(){
+var opts=$(this).textbox("options");
+var _4e9=$(this).textbox("textbox");
+_4e8=_4e8==undefined?"":String(_4e8);
+if($(this).textbox("getText")!=_4e8){
+_4e9.val(_4e8);
+}
+opts.value=_4e8;
+if(!_4e9.is(":focus")){
+if(_4e8){
+_4e9.removeClass("textbox-prompt");
+}else{
+_4e9.val(opts.prompt).addClass("textbox-prompt");
+}
+}
+$(this).textbox("validate");
+});
+},initValue:function(jq,_4ea){
+return jq.each(function(){
+var _4eb=$.data(this,"textbox");
+_4eb.options.value="";
+$(this).textbox("setText",_4ea);
+_4eb.textbox.find(".textbox-value").val(_4ea);
+$(this).val(_4ea);
+});
+},setValue:function(jq,_4ec){
+return jq.each(function(){
+var opts=$.data(this,"textbox").options;
+var _4ed=$(this).textbox("getValue");
+$(this).textbox("initValue",_4ec);
+if(_4ed!=_4ec){
+opts.onChange.call(this,_4ec,_4ed);
+$(this).closest("form").trigger("_change",[this]);
+}
+});
+},getText:function(jq){
+var _4ee=jq.textbox("textbox");
+if(_4ee.is(":focus")){
+return _4ee.val();
+}else{
+return jq.textbox("options").value;
+}
+},getValue:function(jq){
+return jq.data("textbox").textbox.find(".textbox-value").val();
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).textbox("options");
+$(this).textbox("setValue",opts.originalValue);
+});
+},getIcon:function(jq,_4ef){
+return jq.data("textbox").textbox.find(".textbox-icon:eq("+_4ef+")");
+},getTipX:function(jq){
+var _4f0=jq.data("textbox");
+var opts=_4f0.options;
+var tb=_4f0.textbox;
+var _4f1=tb.find(".textbox-text");
+var _4f2=tb.find(".textbox-addon")._outerWidth();
+var _4f3=tb.find(".textbox-button")._outerWidth();
+if(opts.tipPosition=="right"){
+return (opts.iconAlign=="right"?_4f2:0)+(opts.buttonAlign=="right"?_4f3:0)+1;
+}else{
+if(opts.tipPosition=="left"){
+return (opts.iconAlign=="left"?-_4f2:0)+(opts.buttonAlign=="left"?-_4f3:0)-1;
+}else{
+return _4f2/2*(opts.iconAlign=="right"?1:-1);
+}
+}
+}};
+$.fn.textbox.parseOptions=function(_4f4){
+var t=$(_4f4);
+return $.extend({},$.fn.validatebox.parseOptions(_4f4),$.parser.parseOptions(_4f4,["prompt","iconCls","iconAlign","buttonText","buttonIcon","buttonAlign",{multiline:"boolean",editable:"boolean",iconWidth:"number"}]),{value:(t.val()||undefined),type:(t.attr("type")?t.attr("type"):undefined),disabled:(t.attr("disabled")?true:undefined),readonly:(t.attr("readonly")?true:undefined)});
+};
+$.fn.textbox.defaults=$.extend({},$.fn.validatebox.defaults,{width:"auto",height:22,prompt:"",value:"",type:"text",multiline:false,editable:true,disabled:false,readonly:false,icons:[],iconCls:null,iconAlign:"right",iconWidth:18,buttonText:"",buttonIcon:null,buttonAlign:"right",inputEvents:{blur:function(e){
+var t=$(e.data.target);
+var opts=t.textbox("options");
+t.textbox("setValue",opts.value);
+},keydown:function(e){
+if(e.keyCode==13){
+var t=$(e.data.target);
+t.textbox("setValue",t.textbox("getText"));
+}
+}},onChange:function(_4f5,_4f6){
+},onResize:function(_4f7,_4f8){
+},onClickButton:function(){
+},onClickIcon:function(_4f9){
+}});
+})(jQuery);
+(function($){
+var _4fa=0;
+function _4fb(_4fc){
+var _4fd=$.data(_4fc,"filebox");
+var opts=_4fd.options;
+opts.fileboxId="filebox_file_id_"+(++_4fa);
+$(_4fc).addClass("filebox-f").textbox(opts);
+$(_4fc).textbox("textbox").attr("readonly","readonly");
+_4fd.filebox=$(_4fc).next().addClass("filebox");
+var file=_4fe(_4fc);
+var btn=$(_4fc).filebox("button");
+if(btn.length){
+$("<label class=\"filebox-label\" for=\""+opts.fileboxId+"\"></label>").appendTo(btn);
+if(btn.linkbutton("options").disabled){
+file.attr("disabled","disabled");
+}else{
+file.removeAttr("disabled");
+}
+}
+};
+function _4fe(_4ff){
+var _500=$.data(_4ff,"filebox");
+var opts=_500.options;
+_500.filebox.find(".textbox-value").remove();
+opts.oldValue="";
+var file=$("<input type=\"file\" class=\"textbox-value\">").appendTo(_500.filebox);
+file.attr("id",opts.fileboxId).attr("name",$(_4ff).attr("textboxName")||"");
+file.change(function(){
+$(_4ff).filebox("setText",this.value);
+opts.onChange.call(_4ff,this.value,opts.oldValue);
+opts.oldValue=this.value;
+});
+return file;
+};
+$.fn.filebox=function(_501,_502){
+if(typeof _501=="string"){
+var _503=$.fn.filebox.methods[_501];
+if(_503){
+return _503(this,_502);
+}else{
+return this.textbox(_501,_502);
+}
+}
+_501=_501||{};
+return this.each(function(){
+var _504=$.data(this,"filebox");
+if(_504){
+$.extend(_504.options,_501);
+}else{
+$.data(this,"filebox",{options:$.extend({},$.fn.filebox.defaults,$.fn.filebox.parseOptions(this),_501)});
+}
+_4fb(this);
+});
+};
+$.fn.filebox.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"filebox").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("clear");
+_4fe(this);
+});
+},reset:function(jq){
+return jq.each(function(){
+$(this).filebox("clear");
+});
+}};
+$.fn.filebox.parseOptions=function(_505){
+return $.extend({},$.fn.textbox.parseOptions(_505),{});
+};
+$.fn.filebox.defaults=$.extend({},$.fn.textbox.defaults,{buttonIcon:null,buttonText:"Choose File",buttonAlign:"right",inputEvents:{}});
+})(jQuery);
+(function($){
+function _506(_507){
+var _508=$.data(_507,"searchbox");
+var opts=_508.options;
+var _509=$.extend(true,[],opts.icons);
+_509.push({iconCls:"searchbox-button",handler:function(e){
+var t=$(e.data.target);
+var opts=t.searchbox("options");
+opts.searcher.call(e.data.target,t.searchbox("getValue"),t.searchbox("getName"));
+}});
+_50a();
+var _50b=_50c();
+$(_507).addClass("searchbox-f").textbox($.extend({},opts,{icons:_509,buttonText:(_50b?_50b.text:"")}));
+$(_507).attr("searchboxName",$(_507).attr("textboxName"));
+_508.searchbox=$(_507).next();
+_508.searchbox.addClass("searchbox");
+_50d(_50b);
+function _50a(){
+if(opts.menu){
+_508.menu=$(opts.menu).menu();
+var _50e=_508.menu.menu("options");
+var _50f=_50e.onClick;
+_50e.onClick=function(item){
+_50d(item);
+_50f.call(this,item);
+};
+}else{
+if(_508.menu){
+_508.menu.menu("destroy");
+}
+_508.menu=null;
+}
+};
+function _50c(){
+if(_508.menu){
+var item=_508.menu.children("div.menu-item:first");
+_508.menu.children("div.menu-item").each(function(){
+var _510=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)});
+if(_510.selected){
+item=$(this);
+return false;
+}
+});
+return _508.menu.menu("getItem",item[0]);
+}else{
+return null;
+}
+};
+function _50d(item){
+if(!item){
+return;
+}
+$(_507).textbox("button").menubutton({text:item.text,iconCls:(item.iconCls||null),menu:_508.menu,menuAlign:opts.buttonAlign,plain:false});
+_508.searchbox.find("input.textbox-value").attr("name",item.name||item.text);
+$(_507).searchbox("resize");
+};
+};
+$.fn.searchbox=function(_511,_512){
+if(typeof _511=="string"){
+var _513=$.fn.searchbox.methods[_511];
+if(_513){
+return _513(this,_512);
+}else{
+return this.textbox(_511,_512);
+}
+}
+_511=_511||{};
+return this.each(function(){
+var _514=$.data(this,"searchbox");
+if(_514){
+$.extend(_514.options,_511);
+}else{
+$.data(this,"searchbox",{options:$.extend({},$.fn.searchbox.defaults,$.fn.searchbox.parseOptions(this),_511)});
+}
+_506(this);
+});
+};
+$.fn.searchbox.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"searchbox").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},menu:function(jq){
+return $.data(jq[0],"searchbox").menu;
+},getName:function(jq){
+return $.data(jq[0],"searchbox").searchbox.find("input.textbox-value").attr("name");
+},selectName:function(jq,name){
+return jq.each(function(){
+var menu=$.data(this,"searchbox").menu;
+if(menu){
+menu.children("div.menu-item").each(function(){
+var item=menu.menu("getItem",this);
+if(item.name==name){
+$(this).triggerHandler("click");
+return false;
+}
+});
+}
+});
+},destroy:function(jq){
+return jq.each(function(){
+var menu=$(this).searchbox("menu");
+if(menu){
+menu.menu("destroy");
+}
+$(this).textbox("destroy");
+});
+}};
+$.fn.searchbox.parseOptions=function(_515){
+var t=$(_515);
+return $.extend({},$.fn.textbox.parseOptions(_515),$.parser.parseOptions(_515,["menu"]),{searcher:(t.attr("searcher")?eval(t.attr("searcher")):undefined)});
+};
+$.fn.searchbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{keydown:function(e){
+if(e.keyCode==13){
+e.preventDefault();
+var t=$(e.data.target);
+var opts=t.searchbox("options");
+t.searchbox("setValue",$(this).val());
+opts.searcher.call(e.data.target,t.searchbox("getValue"),t.searchbox("getName"));
+return false;
+}
+}}),buttonAlign:"left",menu:null,searcher:function(_516,name){
+}});
+})(jQuery);
+(function($){
+function _517(_518,_519){
+var opts=$.data(_518,"form").options;
+$.extend(opts,_519||{});
+var _51a=$.extend({},opts.queryParams);
+if(opts.onSubmit.call(_518,_51a)==false){
+return;
+}
+$(_518).find(".textbox-text:focus").blur();
+var _51b="easyui_frame_"+(new Date().getTime());
+var _51c=$("<iframe id="+_51b+" name="+_51b+"></iframe>").appendTo("body");
+_51c.attr("src",window.ActiveXObject?"javascript:false":"about:blank");
+_51c.css({position:"absolute",top:-1000,left:-1000});
+_51c.bind("load",cb);
+_51d(_51a);
+function _51d(_51e){
+var form=$(_518);
+if(opts.url){
+form.attr("action",opts.url);
+}
+var t=form.attr("target"),a=form.attr("action");
+form.attr("target",_51b);
+var _51f=$();
+try{
+for(var n in _51e){
+var _520=$("<input type=\"hidden\" name=\""+n+"\">").val(_51e[n]).appendTo(form);
+_51f=_51f.add(_520);
+}
+_521();
+form[0].submit();
+}
+finally{
+form.attr("action",a);
+t?form.attr("target",t):form.removeAttr("target");
+_51f.remove();
+}
+};
+function _521(){
+var f=$("#"+_51b);
+if(!f.length){
+return;
+}
+try{
+var s=f.contents()[0].readyState;
+if(s&&s.toLowerCase()=="uninitialized"){
+setTimeout(_521,100);
+}
+}
+catch(e){
+cb();
+}
+};
+var _522=10;
+function cb(){
+var f=$("#"+_51b);
+if(!f.length){
+return;
+}
+f.unbind();
+var data="";
+try{
+var body=f.contents().find("body");
+data=body.html();
+if(data==""){
+if(--_522){
+setTimeout(cb,100);
+return;
+}
+}
+var ta=body.find(">textarea");
+if(ta.length){
+data=ta.val();
+}else{
+var pre=body.find(">pre");
+if(pre.length){
+data=pre.html();
+}
+}
+}
+catch(e){
+}
+opts.success(data);
+setTimeout(function(){
+f.unbind();
+f.remove();
+},100);
+};
+};
+function load(_523,data){
+var opts=$.data(_523,"form").options;
+if(typeof data=="string"){
+var _524={};
+if(opts.onBeforeLoad.call(_523,_524)==false){
+return;
+}
+$.ajax({url:data,data:_524,dataType:"json",success:function(data){
+_525(data);
+},error:function(){
+opts.onLoadError.apply(_523,arguments);
+}});
+}else{
+_525(data);
+}
+function _525(data){
+var form=$(_523);
+for(var name in data){
+var val=data[name];
+if(!_526(name,val)){
+if(!_527(name,val)){
+form.find("input[name=\""+name+"\"]").val(val);
+form.find("textarea[name=\""+name+"\"]").val(val);
+form.find("select[name=\""+name+"\"]").val(val);
+}
+}
+}
+opts.onLoadSuccess.call(_523,data);
+form.form("validate");
+};
+function _526(name,val){
+var cc=$(_523).find("[switchbuttonName=\""+name+"\"]");
+if(cc.length){
+cc.switchbutton("uncheck");
+cc.each(function(){
+if(_528($(this).switchbutton("options").value,val)){
+$(this).switchbutton("check");
+}
+});
+return true;
+}
+cc=$(_523).find("input[name=\""+name+"\"][type=radio], input[name=\""+name+"\"][type=checkbox]");
+if(cc.length){
+cc._propAttr("checked",false);
+cc.each(function(){
+if(_528($(this).val(),val)){
+$(this)._propAttr("checked",true);
+}
+});
+return true;
+}
+return false;
+};
+function _528(v,val){
+if(v==String(val)||$.inArray(v,$.isArray(val)?val:[val])>=0){
+return true;
+}else{
+return false;
+}
+};
+function _527(name,val){
+var _529=$(_523).find("[textboxName=\""+name+"\"],[sliderName=\""+name+"\"]");
+if(_529.length){
+for(var i=0;i<opts.fieldTypes.length;i++){
+var type=opts.fieldTypes[i];
+var _52a=_529.data(type);
+if(_52a){
+if(_52a.options.multiple||_52a.options.range){
+_529[type]("setValues",val);
+}else{
+_529[type]("setValue",val);
+}
+return true;
+}
+}
+}
+return false;
+};
+};
+function _52b(_52c){
+$("input,select,textarea",_52c).each(function(){
+var t=this.type,tag=this.tagName.toLowerCase();
+if(t=="text"||t=="hidden"||t=="password"||tag=="textarea"){
+this.value="";
+}else{
+if(t=="file"){
+var file=$(this);
+if(!file.hasClass("textbox-value")){
+var _52d=file.clone().val("");
+_52d.insertAfter(file);
+if(file.data("validatebox")){
+file.validatebox("destroy");
+_52d.validatebox();
+}else{
+file.remove();
+}
+}
+}else{
+if(t=="checkbox"||t=="radio"){
+this.checked=false;
+}else{
+if(tag=="select"){
+this.selectedIndex=-1;
+}
+}
+}
+}
+});
+var form=$(_52c);
+var opts=$.data(_52c,"form").options;
+for(var i=opts.fieldTypes.length-1;i>=0;i--){
+var type=opts.fieldTypes[i];
+var _52e=form.find("."+type+"-f");
+if(_52e.length&&_52e[type]){
+_52e[type]("clear");
+}
+}
+form.form("validate");
+};
+function _52f(_530){
+_530.reset();
+var form=$(_530);
+var opts=$.data(_530,"form").options;
+for(var i=opts.fieldTypes.length-1;i>=0;i--){
+var type=opts.fieldTypes[i];
+var _531=form.find("."+type+"-f");
+if(_531.length&&_531[type]){
+_531[type]("reset");
+}
+}
+form.form("validate");
+};
+function _532(_533){
+var _534=$.data(_533,"form").options;
+$(_533).unbind(".form");
+if(_534.ajax){
+$(_533).bind("submit.form",function(){
+setTimeout(function(){
+_517(_533,_534);
+},0);
+return false;
+});
+}
+$(_533).bind("_change.form",function(e,t){
+_534.onChange.call(this,t);
+}).bind("change.form",function(e){
+var t=e.target;
+if(!$(t).hasClass("textbox-text")){
+_534.onChange.call(this,t);
+}
+});
+_535(_533,_534.novalidate);
+};
+function _536(_537,_538){
+_538=_538||{};
+var _539=$.data(_537,"form");
+if(_539){
+$.extend(_539.options,_538);
+}else{
+$.data(_537,"form",{options:$.extend({},$.fn.form.defaults,$.fn.form.parseOptions(_537),_538)});
+}
+};
+function _53a(_53b){
+if($.fn.validatebox){
+var t=$(_53b);
+t.find(".validatebox-text:not(:disabled)").validatebox("validate");
+var _53c=t.find(".validatebox-invalid");
+_53c.filter(":not(:disabled):first").focus();
+return _53c.length==0;
+}
+return true;
+};
+function _535(_53d,_53e){
+var opts=$.data(_53d,"form").options;
+opts.novalidate=_53e;
+$(_53d).find(".validatebox-text:not(:disabled)").validatebox(_53e?"disableValidation":"enableValidation");
+};
+$.fn.form=function(_53f,_540){
+if(typeof _53f=="string"){
+this.each(function(){
+_536(this);
+});
+return $.fn.form.methods[_53f](this,_540);
+}
+return this.each(function(){
+_536(this,_53f);
+_532(this);
+});
+};
+$.fn.form.methods={options:function(jq){
+return $.data(jq[0],"form").options;
+},submit:function(jq,_541){
+return jq.each(function(){
+_517(this,_541);
+});
+},load:function(jq,data){
+return jq.each(function(){
+load(this,data);
+});
+},clear:function(jq){
+return jq.each(function(){
+_52b(this);
+});
+},reset:function(jq){
+return jq.each(function(){
+_52f(this);
+});
+},validate:function(jq){
+return _53a(jq[0]);
+},disableValidation:function(jq){
+return jq.each(function(){
+_535(this,true);
+});
+},enableValidation:function(jq){
+return jq.each(function(){
+_535(this,false);
+});
+}};
+$.fn.form.parseOptions=function(_542){
+var t=$(_542);
+return $.extend({},$.parser.parseOptions(_542,[{ajax:"boolean"}]),{url:(t.attr("action")?t.attr("action"):undefined)});
+};
+$.fn.form.defaults={fieldTypes:["combobox","combotree","combogrid","datetimebox","datebox","combo","datetimespinner","timespinner","numberspinner","spinner","slider","searchbox","numberbox","textbox","switchbutton"],novalidate:false,ajax:true,url:null,queryParams:{},onSubmit:function(_543){
+return $(this).form("validate");
+},success:function(data){
+},onBeforeLoad:function(_544){
+},onLoadSuccess:function(data){
+},onLoadError:function(){
+},onChange:function(_545){
+}};
+})(jQuery);
+(function($){
+function _546(_547){
+var _548=$.data(_547,"numberbox");
+var opts=_548.options;
+$(_547).addClass("numberbox-f").textbox(opts);
+$(_547).textbox("textbox").css({imeMode:"disabled"});
+$(_547).attr("numberboxName",$(_547).attr("textboxName"));
+_548.numberbox=$(_547).next();
+_548.numberbox.addClass("numberbox");
+var _549=opts.parser.call(_547,opts.value);
+var _54a=opts.formatter.call(_547,_549);
+$(_547).numberbox("initValue",_549).numberbox("setText",_54a);
+};
+function _54b(_54c,_54d){
+var _54e=$.data(_54c,"numberbox");
+var opts=_54e.options;
+var _54d=opts.parser.call(_54c,_54d);
+var text=opts.formatter.call(_54c,_54d);
+opts.value=_54d;
+$(_54c).textbox("setText",text).textbox("setValue",_54d);
+text=opts.formatter.call(_54c,$(_54c).textbox("getValue"));
+$(_54c).textbox("setText",text);
+};
+$.fn.numberbox=function(_54f,_550){
+if(typeof _54f=="string"){
+var _551=$.fn.numberbox.methods[_54f];
+if(_551){
+return _551(this,_550);
+}else{
+return this.textbox(_54f,_550);
+}
+}
+_54f=_54f||{};
+return this.each(function(){
+var _552=$.data(this,"numberbox");
+if(_552){
+$.extend(_552.options,_54f);
+}else{
+_552=$.data(this,"numberbox",{options:$.extend({},$.fn.numberbox.defaults,$.fn.numberbox.parseOptions(this),_54f)});
+}
+_546(this);
+});
+};
+$.fn.numberbox.methods={options:function(jq){
+var opts=jq.data("textbox")?jq.textbox("options"):{};
+return $.extend($.data(jq[0],"numberbox").options,{width:opts.width,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},fix:function(jq){
+return jq.each(function(){
+$(this).numberbox("setValue",$(this).numberbox("getText"));
+});
+},setValue:function(jq,_553){
+return jq.each(function(){
+_54b(this,_553);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("clear");
+$(this).numberbox("options").value="";
+});
+},reset:function(jq){
+return jq.each(function(){
+$(this).textbox("reset");
+$(this).numberbox("setValue",$(this).numberbox("getValue"));
+});
+}};
+$.fn.numberbox.parseOptions=function(_554){
+var t=$(_554);
+return $.extend({},$.fn.textbox.parseOptions(_554),$.parser.parseOptions(_554,["decimalSeparator","groupSeparator","suffix",{min:"number",max:"number",precision:"number"}]),{prefix:(t.attr("prefix")?t.attr("prefix"):undefined)});
+};
+$.fn.numberbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{keypress:function(e){
+var _555=e.data.target;
+var opts=$(_555).numberbox("options");
+return opts.filter.call(_555,e);
+},blur:function(e){
+var _556=e.data.target;
+$(_556).numberbox("setValue",$(_556).numberbox("getText"));
+},keydown:function(e){
+if(e.keyCode==13){
+var _557=e.data.target;
+$(_557).numberbox("setValue",$(_557).numberbox("getText"));
+}
+}},min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",filter:function(e){
+var opts=$(this).numberbox("options");
+var s=$(this).numberbox("getText");
+if(e.which==13){
+return true;
+}
+if(e.which==45){
+return (s.indexOf("-")==-1?true:false);
+}
+var c=String.fromCharCode(e.which);
+if(c==opts.decimalSeparator){
+return (s.indexOf(c)==-1?true:false);
+}else{
+if(c==opts.groupSeparator){
+return true;
+}else{
+if((e.which>=48&&e.which<=57&&e.ctrlKey==false&&e.shiftKey==false)||e.which==0||e.which==8){
+return true;
+}else{
+if(e.ctrlKey==true&&(e.which==99||e.which==118)){
+return true;
+}else{
+return false;
+}
+}
+}
+}
+},formatter:function(_558){
+if(!_558){
+return _558;
+}
+_558=_558+"";
+var opts=$(this).numberbox("options");
+var s1=_558,s2="";
+var dpos=_558.indexOf(".");
+if(dpos>=0){
+s1=_558.substring(0,dpos);
+s2=_558.substring(dpos+1,_558.length);
+}
+if(opts.groupSeparator){
+var p=/(\d+)(\d{3})/;
+while(p.test(s1)){
+s1=s1.replace(p,"$1"+opts.groupSeparator+"$2");
+}
+}
+if(s2){
+return opts.prefix+s1+opts.decimalSeparator+s2+opts.suffix;
+}else{
+return opts.prefix+s1+opts.suffix;
+}
+},parser:function(s){
+s=s+"";
+var opts=$(this).numberbox("options");
+if(parseFloat(s)!=s){
+if(opts.prefix){
+s=$.trim(s.replace(new RegExp("\\"+$.trim(opts.prefix),"g"),""));
+}
+if(opts.suffix){
+s=$.trim(s.replace(new RegExp("\\"+$.trim(opts.suffix),"g"),""));
+}
+if(opts.groupSeparator){
+s=$.trim(s.replace(new RegExp("\\"+opts.groupSeparator,"g"),""));
+}
+if(opts.decimalSeparator){
+s=$.trim(s.replace(new RegExp("\\"+opts.decimalSeparator,"g"),"."));
+}
+s=s.replace(/\s/g,"");
+}
+var val=parseFloat(s).toFixed(opts.precision);
+if(isNaN(val)){
+val="";
+}else{
+if(typeof (opts.min)=="number"&&val<opts.min){
+val=opts.min.toFixed(opts.precision);
+}else{
+if(typeof (opts.max)=="number"&&val>opts.max){
+val=opts.max.toFixed(opts.precision);
+}
+}
+}
+return val;
+}});
+})(jQuery);
+(function($){
+function _559(_55a,_55b){
+var opts=$.data(_55a,"calendar").options;
+var t=$(_55a);
+if(_55b){
+$.extend(opts,{width:_55b.width,height:_55b.height});
+}
+t._size(opts,t.parent());
+t.find(".calendar-body")._outerHeight(t.height()-t.find(".calendar-header")._outerHeight());
+if(t.find(".calendar-menu").is(":visible")){
+_55c(_55a);
+}
+};
+function init(_55d){
+$(_55d).addClass("calendar").html("<div class=\"calendar-header\">"+"<div class=\"calendar-nav calendar-prevmonth\"></div>"+"<div class=\"calendar-nav calendar-nextmonth\"></div>"+"<div class=\"calendar-nav calendar-prevyear\"></div>"+"<div class=\"calendar-nav calendar-nextyear\"></div>"+"<div class=\"calendar-title\">"+"<span class=\"calendar-text\"></span>"+"</div>"+"</div>"+"<div class=\"calendar-body\">"+"<div class=\"calendar-menu\">"+"<div class=\"calendar-menu-year-inner\">"+"<span class=\"calendar-nav calendar-menu-prev\"></span>"+"<span><input class=\"calendar-menu-year\" type=\"text\"></input></span>"+"<span class=\"calendar-nav calendar-menu-next\"></span>"+"</div>"+"<div class=\"calendar-menu-month-inner\">"+"</div>"+"</div>"+"</div>");
+$(_55d).bind("_resize",function(e,_55e){
+if($(this).hasClass("easyui-fluid")||_55e){
+_559(_55d);
+}
+return false;
+});
+};
+function _55f(_560){
+var opts=$.data(_560,"calendar").options;
+var menu=$(_560).find(".calendar-menu");
+menu.find(".calendar-menu-year").unbind(".calendar").bind("keypress.calendar",function(e){
+if(e.keyCode==13){
+_561(true);
+}
+});
+$(_560).unbind(".calendar").bind("mouseover.calendar",function(e){
+var t=_562(e.target);
+if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
+t.addClass("calendar-nav-hover");
+}
+}).bind("mouseout.calendar",function(e){
+var t=_562(e.target);
+if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
+t.removeClass("calendar-nav-hover");
+}
+}).bind("click.calendar",function(e){
+var t=_562(e.target);
+if(t.hasClass("calendar-menu-next")||t.hasClass("calendar-nextyear")){
+_563(1);
+}else{
+if(t.hasClass("calendar-menu-prev")||t.hasClass("calendar-prevyear")){
+_563(-1);
+}else{
+if(t.hasClass("calendar-menu-month")){
+menu.find(".calendar-selected").removeClass("calendar-selected");
+t.addClass("calendar-selected");
+_561(true);
+}else{
+if(t.hasClass("calendar-prevmonth")){
+_564(-1);
+}else{
+if(t.hasClass("calendar-nextmonth")){
+_564(1);
+}else{
+if(t.hasClass("calendar-text")){
+if(menu.is(":visible")){
+menu.hide();
+}else{
+_55c(_560);
+}
+}else{
+if(t.hasClass("calendar-day")){
+if(t.hasClass("calendar-disabled")){
+return;
+}
+var _565=opts.current;
+t.closest("div.calendar-body").find(".calendar-selected").removeClass("calendar-selected");
+t.addClass("calendar-selected");
+var _566=t.attr("abbr").split(",");
+var y=parseInt(_566[0]);
+var m=parseInt(_566[1]);
+var d=parseInt(_566[2]);
+opts.current=new Date(y,m-1,d);
+opts.onSelect.call(_560,opts.current);
+if(!_565||_565.getTime()!=opts.current.getTime()){
+opts.onChange.call(_560,opts.current,_565);
+}
+if(opts.year!=y||opts.month!=m){
+opts.year=y;
+opts.month=m;
+show(_560);
+}
+}
+}
+}
+}
+}
+}
+}
+});
+function _562(t){
+var day=$(t).closest(".calendar-day");
+if(day.length){
+return day;
+}else{
+return $(t);
+}
+};
+function _561(_567){
+var menu=$(_560).find(".calendar-menu");
+var year=menu.find(".calendar-menu-year").val();
+var _568=menu.find(".calendar-selected").attr("abbr");
+if(!isNaN(year)){
+opts.year=parseInt(year);
+opts.month=parseInt(_568);
+show(_560);
+}
+if(_567){
+menu.hide();
+}
+};
+function _563(_569){
+opts.year+=_569;
+show(_560);
+menu.find(".calendar-menu-year").val(opts.year);
+};
+function _564(_56a){
+opts.month+=_56a;
+if(opts.month>12){
+opts.year++;
+opts.month=1;
+}else{
+if(opts.month<1){
+opts.year--;
+opts.month=12;
+}
+}
+show(_560);
+menu.find("td.calendar-selected").removeClass("calendar-selected");
+menu.find("td:eq("+(opts.month-1)+")").addClass("calendar-selected");
+};
+};
+function _55c(_56b){
+var opts=$.data(_56b,"calendar").options;
+$(_56b).find(".calendar-menu").show();
+if($(_56b).find(".calendar-menu-month-inner").is(":empty")){
+$(_56b).find(".calendar-menu-month-inner").empty();
+var t=$("<table class=\"calendar-mtable\"></table>").appendTo($(_56b).find(".calendar-menu-month-inner"));
+var idx=0;
+for(var i=0;i<3;i++){
+var tr=$("<tr></tr>").appendTo(t);
+for(var j=0;j<4;j++){
+$("<td class=\"calendar-nav calendar-menu-month\"></td>").html(opts.months[idx++]).attr("abbr",idx).appendTo(tr);
+}
+}
+}
+var body=$(_56b).find(".calendar-body");
+var sele=$(_56b).find(".calendar-menu");
+var _56c=sele.find(".calendar-menu-year-inner");
+var _56d=sele.find(".calendar-menu-month-inner");
+_56c.find("input").val(opts.year).focus();
+_56d.find("td.calendar-selected").removeClass("calendar-selected");
+_56d.find("td:eq("+(opts.month-1)+")").addClass("calendar-selected");
+sele._outerWidth(body._outerWidth());
+sele._outerHeight(body._outerHeight());
+_56d._outerHeight(sele.height()-_56c._outerHeight());
+};
+function _56e(_56f,year,_570){
+var opts=$.data(_56f,"calendar").options;
+var _571=[];
+var _572=new Date(year,_570,0).getDate();
+for(var i=1;i<=_572;i++){
+_571.push([year,_570,i]);
+}
+var _573=[],week=[];
+var _574=-1;
+while(_571.length>0){
+var date=_571.shift();
+week.push(date);
+var day=new Date(date[0],date[1]-1,date[2]).getDay();
+if(_574==day){
+day=0;
+}else{
+if(day==(opts.firstDay==0?7:opts.firstDay)-1){
+_573.push(week);
+week=[];
+}
+}
+_574=day;
+}
+if(week.length){
+_573.push(week);
+}
+var _575=_573[0];
+if(_575.length<7){
+while(_575.length<7){
+var _576=_575[0];
+var date=new Date(_576[0],_576[1]-1,_576[2]-1);
+_575.unshift([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+}else{
+var _576=_575[0];
+var week=[];
+for(var i=1;i<=7;i++){
+var date=new Date(_576[0],_576[1]-1,_576[2]-i);
+week.unshift([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+_573.unshift(week);
+}
+var _577=_573[_573.length-1];
+while(_577.length<7){
+var _578=_577[_577.length-1];
+var date=new Date(_578[0],_578[1]-1,_578[2]+1);
+_577.push([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+if(_573.length<6){
+var _578=_577[_577.length-1];
+var week=[];
+for(var i=1;i<=7;i++){
+var date=new Date(_578[0],_578[1]-1,_578[2]+i);
+week.push([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+_573.push(week);
+}
+return _573;
+};
+function show(_579){
+var opts=$.data(_579,"calendar").options;
+if(opts.current&&!opts.validator.call(_579,opts.current)){
+opts.current=null;
+}
+var now=new Date();
+var _57a=now.getFullYear()+","+(now.getMonth()+1)+","+now.getDate();
+var _57b=opts.current?(opts.current.getFullYear()+","+(opts.current.getMonth()+1)+","+opts.current.getDate()):"";
+var _57c=6-opts.firstDay;
+var _57d=_57c+1;
+if(_57c>=7){
+_57c-=7;
+}
+if(_57d>=7){
+_57d-=7;
+}
+$(_579).find(".calendar-title span").html(opts.months[opts.month-1]+" "+opts.year);
+var body=$(_579).find("div.calendar-body");
+body.children("table").remove();
+var data=["<table class=\"calendar-dtable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"];
+data.push("<thead><tr>");
+for(var i=opts.firstDay;i<opts.weeks.length;i++){
+data.push("<th>"+opts.weeks[i]+"</th>");
+}
+for(var i=0;i<opts.firstDay;i++){
+data.push("<th>"+opts.weeks[i]+"</th>");
+}
+data.push("</tr></thead>");
+data.push("<tbody>");
+var _57e=_56e(_579,opts.year,opts.month);
+for(var i=0;i<_57e.length;i++){
+var week=_57e[i];
+var cls="";
+if(i==0){
+cls="calendar-first";
+}else{
+if(i==_57e.length-1){
+cls="calendar-last";
+}
+}
+data.push("<tr class=\""+cls+"\">");
+for(var j=0;j<week.length;j++){
+var day=week[j];
+var s=day[0]+","+day[1]+","+day[2];
+var _57f=new Date(day[0],parseInt(day[1])-1,day[2]);
+var d=opts.formatter.call(_579,_57f);
+var css=opts.styler.call(_579,_57f);
+var _580="";
+var _581="";
+if(typeof css=="string"){
+_581=css;
+}else{
+if(css){
+_580=css["class"]||"";
+_581=css["style"]||"";
+}
+}
+var cls="calendar-day";
+if(!(opts.year==day[0]&&opts.month==day[1])){
+cls+=" calendar-other-month";
+}
+if(s==_57a){
+cls+=" calendar-today";
+}
+if(s==_57b){
+cls+=" calendar-selected";
+}
+if(j==_57c){
+cls+=" calendar-saturday";
+}else{
+if(j==_57d){
+cls+=" calendar-sunday";
+}
+}
+if(j==0){
+cls+=" calendar-first";
+}else{
+if(j==week.length-1){
+cls+=" calendar-last";
+}
+}
+cls+=" "+_580;
+if(!opts.validator.call(_579,_57f)){
+cls+=" calendar-disabled";
+}
+data.push("<td class=\""+cls+"\" abbr=\""+s+"\" style=\""+_581+"\">"+d+"</td>");
+}
+data.push("</tr>");
+}
+data.push("</tbody>");
+data.push("</table>");
+body.append(data.join(""));
+body.children("table.calendar-dtable").prependTo(body);
+opts.onNavigate.call(_579,opts.year,opts.month);
+};
+$.fn.calendar=function(_582,_583){
+if(typeof _582=="string"){
+return $.fn.calendar.methods[_582](this,_583);
+}
+_582=_582||{};
+return this.each(function(){
+var _584=$.data(this,"calendar");
+if(_584){
+$.extend(_584.options,_582);
+}else{
+_584=$.data(this,"calendar",{options:$.extend({},$.fn.calendar.defaults,$.fn.calendar.parseOptions(this),_582)});
+init(this);
+}
+if(_584.options.border==false){
+$(this).addClass("calendar-noborder");
+}
+_559(this);
+_55f(this);
+show(this);
+$(this).find("div.calendar-menu").hide();
+});
+};
+$.fn.calendar.methods={options:function(jq){
+return $.data(jq[0],"calendar").options;
+},resize:function(jq,_585){
+return jq.each(function(){
+_559(this,_585);
+});
+},moveTo:function(jq,date){
+return jq.each(function(){
+if(!date){
+var now=new Date();
+$(this).calendar({year:now.getFullYear(),month:now.getMonth()+1,current:date});
+return;
+}
+var opts=$(this).calendar("options");
+if(opts.validator.call(this,date)){
+var _586=opts.current;
+$(this).calendar({year:date.getFullYear(),month:date.getMonth()+1,current:date});
+if(!_586||_586.getTime()!=date.getTime()){
+opts.onChange.call(this,opts.current,_586);
+}
+}
+});
+}};
+$.fn.calendar.parseOptions=function(_587){
+var t=$(_587);
+return $.extend({},$.parser.parseOptions(_587,[{firstDay:"number",fit:"boolean",border:"boolean"}]));
+};
+$.fn.calendar.defaults={width:180,height:180,fit:false,border:true,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:new Date().getFullYear(),month:new Date().getMonth()+1,current:(function(){
+var d=new Date();
+return new Date(d.getFullYear(),d.getMonth(),d.getDate());
+})(),formatter:function(date){
+return date.getDate();
+},styler:function(date){
+return "";
+},validator:function(date){
+return true;
+},onSelect:function(date){
+},onChange:function(_588,_589){
+},onNavigate:function(year,_58a){
+}};
+})(jQuery);
+(function($){
+function _58b(_58c){
+var _58d=$.data(_58c,"spinner");
+var opts=_58d.options;
+var _58e=$.extend(true,[],opts.icons);
+_58e.push({iconCls:"spinner-arrow",handler:function(e){
+_58f(e);
+}});
+$(_58c).addClass("spinner-f").textbox($.extend({},opts,{icons:_58e}));
+var _590=$(_58c).textbox("getIcon",_58e.length-1);
+_590.append("<a href=\"javascript:void(0)\" class=\"spinner-arrow-up\" tabindex=\"-1\"></a>");
+_590.append("<a href=\"javascript:void(0)\" class=\"spinner-arrow-down\" tabindex=\"-1\"></a>");
+$(_58c).attr("spinnerName",$(_58c).attr("textboxName"));
+_58d.spinner=$(_58c).next();
+_58d.spinner.addClass("spinner");
+};
+function _58f(e){
+var _591=e.data.target;
+var opts=$(_591).spinner("options");
+var up=$(e.target).closest("a.spinner-arrow-up");
+if(up.length){
+opts.spin.call(_591,false);
+opts.onSpinUp.call(_591);
+$(_591).spinner("validate");
+}
+var down=$(e.target).closest("a.spinner-arrow-down");
+if(down.length){
+opts.spin.call(_591,true);
+opts.onSpinDown.call(_591);
+$(_591).spinner("validate");
+}
+};
+$.fn.spinner=function(_592,_593){
+if(typeof _592=="string"){
+var _594=$.fn.spinner.methods[_592];
+if(_594){
+return _594(this,_593);
+}else{
+return this.textbox(_592,_593);
+}
+}
+_592=_592||{};
+return this.each(function(){
+var _595=$.data(this,"spinner");
+if(_595){
+$.extend(_595.options,_592);
+}else{
+_595=$.data(this,"spinner",{options:$.extend({},$.fn.spinner.defaults,$.fn.spinner.parseOptions(this),_592)});
+}
+_58b(this);
+});
+};
+$.fn.spinner.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"spinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+}};
+$.fn.spinner.parseOptions=function(_596){
+return $.extend({},$.fn.textbox.parseOptions(_596),$.parser.parseOptions(_596,["min","max",{increment:"number"}]));
+};
+$.fn.spinner.defaults=$.extend({},$.fn.textbox.defaults,{min:null,max:null,increment:1,spin:function(down){
+},onSpinUp:function(){
+},onSpinDown:function(){
+}});
+})(jQuery);
+(function($){
+function _597(_598){
+$(_598).addClass("numberspinner-f");
+var opts=$.data(_598,"numberspinner").options;
+$(_598).numberbox(opts).spinner(opts);
+$(_598).numberbox("setValue",opts.value);
+};
+function _599(_59a,down){
+var opts=$.data(_59a,"numberspinner").options;
+var v=parseFloat($(_59a).numberbox("getValue")||opts.value)||0;
+if(down){
+v-=opts.increment;
+}else{
+v+=opts.increment;
+}
+$(_59a).numberbox("setValue",v);
+};
+$.fn.numberspinner=function(_59b,_59c){
+if(typeof _59b=="string"){
+var _59d=$.fn.numberspinner.methods[_59b];
+if(_59d){
+return _59d(this,_59c);
+}else{
+return this.numberbox(_59b,_59c);
+}
+}
+_59b=_59b||{};
+return this.each(function(){
+var _59e=$.data(this,"numberspinner");
+if(_59e){
+$.extend(_59e.options,_59b);
+}else{
+$.data(this,"numberspinner",{options:$.extend({},$.fn.numberspinner.defaults,$.fn.numberspinner.parseOptions(this),_59b)});
+}
+_597(this);
+});
+};
+$.fn.numberspinner.methods={options:function(jq){
+var opts=jq.numberbox("options");
+return $.extend($.data(jq[0],"numberspinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+}};
+$.fn.numberspinner.parseOptions=function(_59f){
+return $.extend({},$.fn.spinner.parseOptions(_59f),$.fn.numberbox.parseOptions(_59f),{});
+};
+$.fn.numberspinner.defaults=$.extend({},$.fn.spinner.defaults,$.fn.numberbox.defaults,{spin:function(down){
+_599(this,down);
+}});
+})(jQuery);
+(function($){
+function _5a0(_5a1){
+var _5a2=0;
+if(typeof _5a1.selectionStart=="number"){
+_5a2=_5a1.selectionStart;
+}else{
+if(_5a1.createTextRange){
+var _5a3=_5a1.createTextRange();
+var s=document.selection.createRange();
+s.setEndPoint("StartToStart",_5a3);
+_5a2=s.text.length;
+}
+}
+return _5a2;
+};
+function _5a4(_5a5,_5a6,end){
+if(_5a5.setSelectionRange){
+_5a5.setSelectionRange(_5a6,end);
+}else{
+if(_5a5.createTextRange){
+var _5a7=_5a5.createTextRange();
+_5a7.collapse();
+_5a7.moveEnd("character",end);
+_5a7.moveStart("character",_5a6);
+_5a7.select();
+}
+}
+};
+function _5a8(_5a9){
+var opts=$.data(_5a9,"timespinner").options;
+$(_5a9).addClass("timespinner-f").spinner(opts);
+var _5aa=opts.formatter.call(_5a9,opts.parser.call(_5a9,opts.value));
+$(_5a9).timespinner("initValue",_5aa);
+};
+function _5ab(e){
+var _5ac=e.data.target;
+var opts=$.data(_5ac,"timespinner").options;
+var _5ad=_5a0(this);
+for(var i=0;i<opts.selections.length;i++){
+var _5ae=opts.selections[i];
+if(_5ad>=_5ae[0]&&_5ad<=_5ae[1]){
+_5af(_5ac,i);
+return;
+}
+}
+};
+function _5af(_5b0,_5b1){
+var opts=$.data(_5b0,"timespinner").options;
+if(_5b1!=undefined){
+opts.highlight=_5b1;
+}
+var _5b2=opts.selections[opts.highlight];
+if(_5b2){
+var tb=$(_5b0).timespinner("textbox");
+_5a4(tb[0],_5b2[0],_5b2[1]);
+tb.focus();
+}
+};
+function _5b3(_5b4,_5b5){
+var opts=$.data(_5b4,"timespinner").options;
+var _5b5=opts.parser.call(_5b4,_5b5);
+var text=opts.formatter.call(_5b4,_5b5);
+$(_5b4).spinner("setValue",text);
+};
+function _5b6(_5b7,down){
+var opts=$.data(_5b7,"timespinner").options;
+var s=$(_5b7).timespinner("getValue");
+var _5b8=opts.selections[opts.highlight];
+var s1=s.substring(0,_5b8[0]);
+var s2=s.substring(_5b8[0],_5b8[1]);
+var s3=s.substring(_5b8[1]);
+var v=s1+((parseInt(s2,10)||0)+opts.increment*(down?-1:1))+s3;
+$(_5b7).timespinner("setValue",v);
+_5af(_5b7);
+};
+$.fn.timespinner=function(_5b9,_5ba){
+if(typeof _5b9=="string"){
+var _5bb=$.fn.timespinner.methods[_5b9];
+if(_5bb){
+return _5bb(this,_5ba);
+}else{
+return this.spinner(_5b9,_5ba);
+}
+}
+_5b9=_5b9||{};
+return this.each(function(){
+var _5bc=$.data(this,"timespinner");
+if(_5bc){
+$.extend(_5bc.options,_5b9);
+}else{
+$.data(this,"timespinner",{options:$.extend({},$.fn.timespinner.defaults,$.fn.timespinner.parseOptions(this),_5b9)});
+}
+_5a8(this);
+});
+};
+$.fn.timespinner.methods={options:function(jq){
+var opts=jq.data("spinner")?jq.spinner("options"):{};
+return $.extend($.data(jq[0],"timespinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},setValue:function(jq,_5bd){
+return jq.each(function(){
+_5b3(this,_5bd);
+});
+},getHours:function(jq){
+var opts=$.data(jq[0],"timespinner").options;
+var vv=jq.timespinner("getValue").split(opts.separator);
+return parseInt(vv[0],10);
+},getMinutes:function(jq){
+var opts=$.data(jq[0],"timespinner").options;
+var vv=jq.timespinner("getValue").split(opts.separator);
+return parseInt(vv[1],10);
+},getSeconds:function(jq){
+var opts=$.data(jq[0],"timespinner").options;
+var vv=jq.timespinner("getValue").split(opts.separator);
+return parseInt(vv[2],10)||0;
+}};
+$.fn.timespinner.parseOptions=function(_5be){
+return $.extend({},$.fn.spinner.parseOptions(_5be),$.parser.parseOptions(_5be,["separator",{showSeconds:"boolean",highlight:"number"}]));
+};
+$.fn.timespinner.defaults=$.extend({},$.fn.spinner.defaults,{inputEvents:$.extend({},$.fn.spinner.defaults.inputEvents,{click:function(e){
+_5ab.call(this,e);
+},blur:function(e){
+var t=$(e.data.target);
+t.timespinner("setValue",t.timespinner("getText"));
+},keydown:function(e){
+if(e.keyCode==13){
+var t=$(e.data.target);
+t.timespinner("setValue",t.timespinner("getText"));
+}
+}}),formatter:function(date){
+if(!date){
+return "";
+}
+var opts=$(this).timespinner("options");
+var tt=[_5bf(date.getHours()),_5bf(date.getMinutes())];
+if(opts.showSeconds){
+tt.push(_5bf(date.getSeconds()));
+}
+return tt.join(opts.separator);
+function _5bf(_5c0){
+return (_5c0<10?"0":"")+_5c0;
+};
+},parser:function(s){
+var opts=$(this).timespinner("options");
+var date=_5c1(s);
+if(date){
+var min=_5c1(opts.min);
+var max=_5c1(opts.max);
+if(min&&min>date){
+date=min;
+}
+if(max&&max<date){
+date=max;
+}
+}
+return date;
+function _5c1(s){
+if(!s){
+return null;
+}
+var tt=s.split(opts.separator);
+return new Date(1900,0,0,parseInt(tt[0],10)||0,parseInt(tt[1],10)||0,parseInt(tt[2],10)||0);
+};
+},selections:[[0,2],[3,5],[6,8]],separator:":",showSeconds:false,highlight:0,spin:function(down){
+_5b6(this,down);
+}});
+})(jQuery);
+(function($){
+function _5c2(_5c3){
+var opts=$.data(_5c3,"datetimespinner").options;
+$(_5c3).addClass("datetimespinner-f").timespinner(opts);
+};
+$.fn.datetimespinner=function(_5c4,_5c5){
+if(typeof _5c4=="string"){
+var _5c6=$.fn.datetimespinner.methods[_5c4];
+if(_5c6){
+return _5c6(this,_5c5);
+}else{
+return this.timespinner(_5c4,_5c5);
+}
+}
+_5c4=_5c4||{};
+return this.each(function(){
+var _5c7=$.data(this,"datetimespinner");
+if(_5c7){
+$.extend(_5c7.options,_5c4);
+}else{
+$.data(this,"datetimespinner",{options:$.extend({},$.fn.datetimespinner.defaults,$.fn.datetimespinner.parseOptions(this),_5c4)});
+}
+_5c2(this);
+});
+};
+$.fn.datetimespinner.methods={options:function(jq){
+var opts=jq.timespinner("options");
+return $.extend($.data(jq[0],"datetimespinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+}};
+$.fn.datetimespinner.parseOptions=function(_5c8){
+return $.extend({},$.fn.timespinner.parseOptions(_5c8),$.parser.parseOptions(_5c8,[]));
+};
+$.fn.datetimespinner.defaults=$.extend({},$.fn.timespinner.defaults,{formatter:function(date){
+if(!date){
+return "";
+}
+return $.fn.datebox.defaults.formatter.call(this,date)+" "+$.fn.timespinner.defaults.formatter.call(this,date);
+},parser:function(s){
+s=$.trim(s);
+if(!s){
+return null;
+}
+var dt=s.split(" ");
+var _5c9=$.fn.datebox.defaults.parser.call(this,dt[0]);
+if(dt.length<2){
+return _5c9;
+}
+var _5ca=$.fn.timespinner.defaults.parser.call(this,dt[1]);
+return new Date(_5c9.getFullYear(),_5c9.getMonth(),_5c9.getDate(),_5ca.getHours(),_5ca.getMinutes(),_5ca.getSeconds());
+},selections:[[0,2],[3,5],[6,10],[11,13],[14,16],[17,19]]});
+})(jQuery);
+(function($){
+var _5cb=0;
+function _5cc(a,o){
+for(var i=0,len=a.length;i<len;i++){
+if(a[i]==o){
+return i;
+}
+}
+return -1;
+};
+function _5cd(a,o,id){
+if(typeof o=="string"){
+for(var i=0,len=a.length;i<len;i++){
+if(a[i][o]==id){
+a.splice(i,1);
+return;
+}
+}
+}else{
+var _5ce=_5cc(a,o);
+if(_5ce!=-1){
+a.splice(_5ce,1);
+}
+}
+};
+function _5cf(a,o,r){
+for(var i=0,len=a.length;i<len;i++){
+if(a[i][o]==r[o]){
+return;
+}
+}
+a.push(r);
+};
+function _5d0(_5d1,aa){
+return $.data(_5d1,"treegrid")?aa.slice(1):aa;
+};
+function _5d2(_5d3){
+var _5d4=$.data(_5d3,"datagrid");
+var opts=_5d4.options;
+var _5d5=_5d4.panel;
+var dc=_5d4.dc;
+var ss=null;
+if(opts.sharedStyleSheet){
+ss=typeof opts.sharedStyleSheet=="boolean"?"head":opts.sharedStyleSheet;
+}else{
+ss=_5d5.closest("div.datagrid-view");
+if(!ss.length){
+ss=dc.view;
+}
+}
+var cc=$(ss);
+var _5d6=$.data(cc[0],"ss");
+if(!_5d6){
+_5d6=$.data(cc[0],"ss",{cache:{},dirty:[]});
+}
+return {add:function(_5d7){
+var ss=["<style type=\"text/css\" easyui=\"true\">"];
+for(var i=0;i<_5d7.length;i++){
+_5d6.cache[_5d7[i][0]]={width:_5d7[i][1]};
+}
+var _5d8=0;
+for(var s in _5d6.cache){
+var item=_5d6.cache[s];
+item.index=_5d8++;
+ss.push(s+"{width:"+item.width+"}");
+}
+ss.push("</style>");
+$(ss.join("\n")).appendTo(cc);
+cc.children("style[easyui]:not(:last)").remove();
+},getRule:function(_5d9){
+var _5da=cc.children("style[easyui]:last")[0];
+var _5db=_5da.styleSheet?_5da.styleSheet:(_5da.sheet||document.styleSheets[document.styleSheets.length-1]);
+var _5dc=_5db.cssRules||_5db.rules;
+return _5dc[_5d9];
+},set:function(_5dd,_5de){
+var item=_5d6.cache[_5dd];
+if(item){
+item.width=_5de;
+var rule=this.getRule(item.index);
+if(rule){
+rule.style["width"]=_5de;
+}
+}
+},remove:function(_5df){
+var tmp=[];
+for(var s in _5d6.cache){
+if(s.indexOf(_5df)==-1){
+tmp.push([s,_5d6.cache[s].width]);
+}
+}
+_5d6.cache={};
+this.add(tmp);
+},dirty:function(_5e0){
+if(_5e0){
+_5d6.dirty.push(_5e0);
+}
+},clean:function(){
+for(var i=0;i<_5d6.dirty.length;i++){
+this.remove(_5d6.dirty[i]);
+}
+_5d6.dirty=[];
+}};
+};
+function _5e1(_5e2,_5e3){
+var _5e4=$.data(_5e2,"datagrid");
+var opts=_5e4.options;
+var _5e5=_5e4.panel;
+if(_5e3){
+$.extend(opts,_5e3);
+}
+if(opts.fit==true){
+var p=_5e5.panel("panel").parent();
+opts.width=p.width();
+opts.height=p.height();
+}
+_5e5.panel("resize",opts);
+};
+function _5e6(_5e7){
+var _5e8=$.data(_5e7,"datagrid");
+var opts=_5e8.options;
+var dc=_5e8.dc;
+var wrap=_5e8.panel;
+var _5e9=wrap.width();
+var _5ea=wrap.height();
+var view=dc.view;
+var _5eb=dc.view1;
+var _5ec=dc.view2;
+var _5ed=_5eb.children("div.datagrid-header");
+var _5ee=_5ec.children("div.datagrid-header");
+var _5ef=_5ed.find("table");
+var _5f0=_5ee.find("table");
+view.width(_5e9);
+var _5f1=_5ed.children("div.datagrid-header-inner").show();
+_5eb.width(_5f1.find("table").width());
+if(!opts.showHeader){
+_5f1.hide();
+}
+_5ec.width(_5e9-_5eb._outerWidth());
+_5eb.children()._outerWidth(_5eb.width());
+_5ec.children()._outerWidth(_5ec.width());
+var all=_5ed.add(_5ee).add(_5ef).add(_5f0);
+all.css("height","");
+var hh=Math.max(_5ef.height(),_5f0.height());
+all._outerHeight(hh);
+dc.body1.add(dc.body2).children("table.datagrid-btable-frozen").css({position:"absolute",top:dc.header2._outerHeight()});
+var _5f2=dc.body2.children("table.datagrid-btable-frozen")._outerHeight();
+var _5f3=_5f2+_5ee._outerHeight()+_5ec.children(".datagrid-footer")._outerHeight();
+wrap.children(":not(.datagrid-view,.datagrid-mask,.datagrid-mask-msg)").each(function(){
+_5f3+=$(this)._outerHeight();
+});
+var _5f4=wrap.outerHeight()-wrap.height();
+var _5f5=wrap._size("minHeight")||"";
+var _5f6=wrap._size("maxHeight")||"";
+_5eb.add(_5ec).children("div.datagrid-body").css({marginTop:_5f2,height:(isNaN(parseInt(opts.height))?"":(_5ea-_5f3)),minHeight:(_5f5?_5f5-_5f4-_5f3:""),maxHeight:(_5f6?_5f6-_5f4-_5f3:"")});
+view.height(_5ec.height());
+};
+function _5f7(_5f8,_5f9,_5fa){
+var rows=$.data(_5f8,"datagrid").data.rows;
+var opts=$.data(_5f8,"datagrid").options;
+var dc=$.data(_5f8,"datagrid").dc;
+if(!dc.body1.is(":empty")&&(!opts.nowrap||opts.autoRowHeight||_5fa)){
+if(_5f9!=undefined){
+var tr1=opts.finder.getTr(_5f8,_5f9,"body",1);
+var tr2=opts.finder.getTr(_5f8,_5f9,"body",2);
+_5fb(tr1,tr2);
+}else{
+var tr1=opts.finder.getTr(_5f8,0,"allbody",1);
+var tr2=opts.finder.getTr(_5f8,0,"allbody",2);
+_5fb(tr1,tr2);
+if(opts.showFooter){
+var tr1=opts.finder.getTr(_5f8,0,"allfooter",1);
+var tr2=opts.finder.getTr(_5f8,0,"allfooter",2);
+_5fb(tr1,tr2);
+}
+}
+}
+_5e6(_5f8);
+if(opts.height=="auto"){
+var _5fc=dc.body1.parent();
+var _5fd=dc.body2;
+var _5fe=_5ff(_5fd);
+var _600=_5fe.height;
+if(_5fe.width>_5fd.width()){
+_600+=18;
+}
+_600-=parseInt(_5fd.css("marginTop"))||0;
+_5fc.height(_600);
+_5fd.height(_600);
+dc.view.height(dc.view2.height());
+}
+dc.body2.triggerHandler("scroll");
+function _5fb(trs1,trs2){
+for(var i=0;i<trs2.length;i++){
+var tr1=$(trs1[i]);
+var tr2=$(trs2[i]);
+tr1.css("height","");
+tr2.css("height","");
+var _601=Math.max(tr1.height(),tr2.height());
+tr1.css("height",_601);
+tr2.css("height",_601);
+}
+};
+function _5ff(cc){
+var _602=0;
+var _603=0;
+$(cc).children().each(function(){
+var c=$(this);
+if(c.is(":visible")){
+_603+=c._outerHeight();
+if(_602<c._outerWidth()){
+_602=c._outerWidth();
+}
+}
+});
+return {width:_602,height:_603};
+};
+};
+function _604(_605,_606){
+var _607=$.data(_605,"datagrid");
+var opts=_607.options;
+var dc=_607.dc;
+if(!dc.body2.children("table.datagrid-btable-frozen").length){
+dc.body1.add(dc.body2).prepend("<table class=\"datagrid-btable datagrid-btable-frozen\" cellspacing=\"0\" cellpadding=\"0\"></table>");
+}
+_608(true);
+_608(false);
+_5e6(_605);
+function _608(_609){
+var _60a=_609?1:2;
+var tr=opts.finder.getTr(_605,_606,"body",_60a);
+(_609?dc.body1:dc.body2).children("table.datagrid-btable-frozen").append(tr);
+};
+};
+function _60b(_60c,_60d){
+function _60e(){
+var _60f=[];
+var _610=[];
+$(_60c).children("thead").each(function(){
+var opt=$.parser.parseOptions(this,[{frozen:"boolean"}]);
+$(this).find("tr").each(function(){
+var cols=[];
+$(this).find("th").each(function(){
+var th=$(this);
+var col=$.extend({},$.parser.parseOptions(this,["field","align","halign","order","width",{sortable:"boolean",checkbox:"boolean",resizable:"boolean",fixed:"boolean"},{rowspan:"number",colspan:"number"}]),{title:(th.html()||undefined),hidden:(th.attr("hidden")?true:undefined),formatter:(th.attr("formatter")?eval(th.attr("formatter")):undefined),styler:(th.attr("styler")?eval(th.attr("styler")):undefined),sorter:(th.attr("sorter")?eval(th.attr("sorter")):undefined)});
+if(col.width&&String(col.width).indexOf("%")==-1){
+col.width=parseInt(col.width);
+}
+if(th.attr("editor")){
+var s=$.trim(th.attr("editor"));
+if(s.substr(0,1)=="{"){
+col.editor=eval("("+s+")");
+}else{
+col.editor=s;
+}
+}
+cols.push(col);
+});
+opt.frozen?_60f.push(cols):_610.push(cols);
+});
+});
+return [_60f,_610];
+};
+var _611=$("<div class=\"datagrid-wrap\">"+"<div class=\"datagrid-view\">"+"<div class=\"datagrid-view1\">"+"<div class=\"datagrid-header\">"+"<div class=\"datagrid-header-inner\"></div>"+"</div>"+"<div class=\"datagrid-body\">"+"<div class=\"datagrid-body-inner\"></div>"+"</div>"+"<div class=\"datagrid-footer\">"+"<div class=\"datagrid-footer-inner\"></div>"+"</div>"+"</div>"+"<div class=\"datagrid-view2\">"+"<div class=\"datagrid-header\">"+"<div class=\"datagrid-header-inner\"></div>"+"</div>"+"<div class=\"datagrid-body\"></div>"+"<div class=\"datagrid-footer\">"+"<div class=\"datagrid-footer-inner\"></div>"+"</div>"+"</div>"+"</div>"+"</div>").insertAfter(_60c);
+_611.panel({doSize:false,cls:"datagrid"});
+$(_60c).addClass("datagrid-f").hide().appendTo(_611.children("div.datagrid-view"));
+var cc=_60e();
+var view=_611.children("div.datagrid-view");
+var _612=view.children("div.datagrid-view1");
+var _613=view.children("div.datagrid-view2");
+return {panel:_611,frozenColumns:cc[0],columns:cc[1],dc:{view:view,view1:_612,view2:_613,header1:_612.children("div.datagrid-header").children("div.datagrid-header-inner"),header2:_613.children("div.datagrid-header").children("div.datagrid-header-inner"),body1:_612.children("div.datagrid-body").children("div.datagrid-body-inner"),body2:_613.children("div.datagrid-body"),footer1:_612.children("div.datagrid-footer").children("div.datagrid-footer-inner"),footer2:_613.children("div.datagrid-footer").children("div.datagrid-footer-inner")}};
+};
+function _614(_615){
+var _616=$.data(_615,"datagrid");
+var opts=_616.options;
+var dc=_616.dc;
+var _617=_616.panel;
+_616.ss=$(_615).datagrid("createStyleSheet");
+_617.panel($.extend({},opts,{id:null,doSize:false,onResize:function(_618,_619){
+if($.data(_615,"datagrid")){
+_5e6(_615);
+$(_615).datagrid("fitColumns");
+opts.onResize.call(_617,_618,_619);
+}
+},onExpand:function(){
+if($.data(_615,"datagrid")){
+$(_615).datagrid("fixRowHeight").datagrid("fitColumns");
+opts.onExpand.call(_617);
+}
+}}));
+_616.rowIdPrefix="datagrid-row-r"+(++_5cb);
+_616.cellClassPrefix="datagrid-cell-c"+_5cb;
+_61a(dc.header1,opts.frozenColumns,true);
+_61a(dc.header2,opts.columns,false);
+_61b();
+dc.header1.add(dc.header2).css("display",opts.showHeader?"block":"none");
+dc.footer1.add(dc.footer2).css("display",opts.showFooter?"block":"none");
+if(opts.toolbar){
+if($.isArray(opts.toolbar)){
+$("div.datagrid-toolbar",_617).remove();
+var tb=$("<div class=\"datagrid-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").prependTo(_617);
+var tr=tb.find("tr");
+for(var i=0;i<opts.toolbar.length;i++){
+var btn=opts.toolbar[i];
+if(btn=="-"){
+$("<td><div class=\"datagrid-btn-separator\"></div></td>").appendTo(tr);
+}else{
+var td=$("<td></td>").appendTo(tr);
+var tool=$("<a href=\"javascript:void(0)\"></a>").appendTo(td);
+tool[0].onclick=eval(btn.handler||function(){
+});
+tool.linkbutton($.extend({},btn,{plain:true}));
+}
+}
+}else{
+$(opts.toolbar).addClass("datagrid-toolbar").prependTo(_617);
+$(opts.toolbar).show();
+}
+}else{
+$("div.datagrid-toolbar",_617).remove();
+}
+$("div.datagrid-pager",_617).remove();
+if(opts.pagination){
+var _61c=$("<div class=\"datagrid-pager\"></div>");
+if(opts.pagePosition=="bottom"){
+_61c.appendTo(_617);
+}else{
+if(opts.pagePosition=="top"){
+_61c.addClass("datagrid-pager-top").prependTo(_617);
+}else{
+var ptop=$("<div class=\"datagrid-pager datagrid-pager-top\"></div>").prependTo(_617);
+_61c.appendTo(_617);
+_61c=_61c.add(ptop);
+}
+}
+_61c.pagination({total:(opts.pageNumber*opts.pageSize),pageNumber:opts.pageNumber,pageSize:opts.pageSize,pageList:opts.pageList,onSelectPage:function(_61d,_61e){
+opts.pageNumber=_61d||1;
+opts.pageSize=_61e;
+_61c.pagination("refresh",{pageNumber:_61d,pageSize:_61e});
+_65a(_615);
+}});
+opts.pageSize=_61c.pagination("options").pageSize;
+}
+function _61a(_61f,_620,_621){
+if(!_620){
+return;
+}
+$(_61f).show();
+$(_61f).empty();
+var _622=[];
+var _623=[];
+if(opts.sortName){
+_622=opts.sortName.split(",");
+_623=opts.sortOrder.split(",");
+}
+var t=$("<table class=\"datagrid-htable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody></tbody></table>").appendTo(_61f);
+for(var i=0;i<_620.length;i++){
+var tr=$("<tr class=\"datagrid-header-row\"></tr>").appendTo($("tbody",t));
+var cols=_620[i];
+for(var j=0;j<cols.length;j++){
+var col=cols[j];
+var attr="";
+if(col.rowspan){
+attr+="rowspan=\""+col.rowspan+"\" ";
+}
+if(col.colspan){
+attr+="colspan=\""+col.colspan+"\" ";
+}
+var td=$("<td "+attr+"></td>").appendTo(tr);
+if(col.checkbox){
+td.attr("field",col.field);
+$("<div class=\"datagrid-header-check\"></div>").html("<input type=\"checkbox\"/>").appendTo(td);
+}else{
+if(col.field){
+td.attr("field",col.field);
+td.append("<div class=\"datagrid-cell\"><span></span><span class=\"datagrid-sort-icon\"> </span></div>");
+td.find("span:first").html(col.title);
+var cell=td.find("div.datagrid-cell");
+var pos=_5cc(_622,col.field);
+if(pos>=0){
+cell.addClass("datagrid-sort-"+_623[pos]);
+}
+if(col.sortable){
+cell.addClass("datagrid-sort");
+}
+if(col.resizable==false){
+cell.attr("resizable","false");
+}
+if(col.width){
+var _624=$.parser.parseValue("width",col.width,dc.view,opts.scrollbarSize);
+cell._outerWidth(_624-1);
+col.boxWidth=parseInt(cell[0].style.width);
+col.deltaWidth=_624-col.boxWidth;
+}else{
+col.auto=true;
+}
+cell.css("text-align",(col.halign||col.align||""));
+col.cellClass=_616.cellClassPrefix+"-"+col.field.replace(/[\.|\s]/g,"-");
+cell.addClass(col.cellClass).css("width","");
+}else{
+$("<div class=\"datagrid-cell-group\"></div>").html(col.title).appendTo(td);
+}
+}
+if(col.hidden){
+td.hide();
+}
+}
+}
+if(_621&&opts.rownumbers){
+var td=$("<td rowspan=\""+opts.frozenColumns.length+"\"><div class=\"datagrid-header-rownumber\"></div></td>");
+if($("tr",t).length==0){
+td.wrap("<tr class=\"datagrid-header-row\"></tr>").parent().appendTo($("tbody",t));
+}else{
+td.prependTo($("tr:first",t));
+}
+}
+};
+function _61b(){
+var _625=[];
+var _626=_627(_615,true).concat(_627(_615));
+for(var i=0;i<_626.length;i++){
+var col=_628(_615,_626[i]);
+if(col&&!col.checkbox){
+_625.push(["."+col.cellClass,col.boxWidth?col.boxWidth+"px":"auto"]);
+}
+}
+_616.ss.add(_625);
+_616.ss.dirty(_616.cellSelectorPrefix);
+_616.cellSelectorPrefix="."+_616.cellClassPrefix;
+};
+};
+function _629(_62a){
+var _62b=$.data(_62a,"datagrid");
+var _62c=_62b.panel;
+var opts=_62b.options;
+var dc=_62b.dc;
+var _62d=dc.header1.add(dc.header2);
+_62d.find("input[type=checkbox]").unbind(".datagrid").bind("click.datagrid",function(e){
+if(opts.singleSelect&&opts.selectOnCheck){
+return false;
+}
+if($(this).is(":checked")){
+_6c4(_62a);
+}else{
+_6ca(_62a);
+}
+e.stopPropagation();
+});
+var _62e=_62d.find("div.datagrid-cell");
+_62e.closest("td").unbind(".datagrid").bind("mouseenter.datagrid",function(){
+if(_62b.resizing){
+return;
+}
+$(this).addClass("datagrid-header-over");
+}).bind("mouseleave.datagrid",function(){
+$(this).removeClass("datagrid-header-over");
+}).bind("contextmenu.datagrid",function(e){
+var _62f=$(this).attr("field");
+opts.onHeaderContextMenu.call(_62a,e,_62f);
+});
+_62e.unbind(".datagrid").bind("click.datagrid",function(e){
+var p1=$(this).offset().left+5;
+var p2=$(this).offset().left+$(this)._outerWidth()-5;
+if(e.pageX<p2&&e.pageX>p1){
+_64f(_62a,$(this).parent().attr("field"));
+}
+}).bind("dblclick.datagrid",function(e){
+var p1=$(this).offset().left+5;
+var p2=$(this).offset().left+$(this)._outerWidth()-5;
+var cond=opts.resizeHandle=="right"?(e.pageX>p2):(opts.resizeHandle=="left"?(e.pageX<p1):(e.pageX<p1||e.pageX>p2));
+if(cond){
+var _630=$(this).parent().attr("field");
+var col=_628(_62a,_630);
+if(col.resizable==false){
+return;
+}
+$(_62a).datagrid("autoSizeColumn",_630);
+col.auto=false;
+}
+});
+var _631=opts.resizeHandle=="right"?"e":(opts.resizeHandle=="left"?"w":"e,w");
+_62e.each(function(){
+$(this).resizable({handles:_631,disabled:($(this).attr("resizable")?$(this).attr("resizable")=="false":false),minWidth:25,onStartResize:function(e){
+_62b.resizing=true;
+_62d.css("cursor",$("body").css("cursor"));
+if(!_62b.proxy){
+_62b.proxy=$("<div class=\"datagrid-resize-proxy\"></div>").appendTo(dc.view);
+}
+_62b.proxy.css({left:e.pageX-$(_62c).offset().left-1,display:"none"});
+setTimeout(function(){
+if(_62b.proxy){
+_62b.proxy.show();
+}
+},500);
+},onResize:function(e){
+_62b.proxy.css({left:e.pageX-$(_62c).offset().left-1,display:"block"});
+return false;
+},onStopResize:function(e){
+_62d.css("cursor","");
+$(this).css("height","");
+var _632=$(this).parent().attr("field");
+var col=_628(_62a,_632);
+col.width=$(this)._outerWidth();
+col.boxWidth=col.width-col.deltaWidth;
+col.auto=undefined;
+$(this).css("width","");
+$(_62a).datagrid("fixColumnSize",_632);
+_62b.proxy.remove();
+_62b.proxy=null;
+if($(this).parents("div:first.datagrid-header").parent().hasClass("datagrid-view1")){
+_5e6(_62a);
+}
+$(_62a).datagrid("fitColumns");
+opts.onResizeColumn.call(_62a,_632,col.width);
+setTimeout(function(){
+_62b.resizing=false;
+},0);
+}});
+});
+var bb=dc.body1.add(dc.body2);
+bb.unbind();
+for(var _633 in opts.rowEvents){
+bb.bind(_633,opts.rowEvents[_633]);
+}
+dc.body1.bind("mousewheel DOMMouseScroll",function(e){
+var e1=e.originalEvent||window.event;
+var _634=e1.wheelDelta||e1.detail*(-1);
+var dg=$(e.target).closest("div.datagrid-view").children(".datagrid-f");
+var dc=dg.data("datagrid").dc;
+dc.body2.scrollTop(dc.body2.scrollTop()-_634);
+});
+dc.body2.bind("scroll",function(){
+var b1=dc.view1.children("div.datagrid-body");
+b1.scrollTop($(this).scrollTop());
+var c1=dc.body1.children(":first");
+var c2=dc.body2.children(":first");
+if(c1.length&&c2.length){
+var top1=c1.offset().top;
+var top2=c2.offset().top;
+if(top1!=top2){
+b1.scrollTop(b1.scrollTop()+top1-top2);
+}
+}
+dc.view2.children("div.datagrid-header,div.datagrid-footer")._scrollLeft($(this)._scrollLeft());
+dc.body2.children("table.datagrid-btable-frozen").css("left",-$(this)._scrollLeft());
+});
+};
+function _635(_636){
+return function(e){
+var tr=_637(e.target);
+if(!tr){
+return;
+}
+var _638=_639(tr);
+if($.data(_638,"datagrid").resizing){
+return;
+}
+var _63a=_63b(tr);
+if(_636){
+_63c(_638,_63a);
+}else{
+var opts=$.data(_638,"datagrid").options;
+opts.finder.getTr(_638,_63a).removeClass("datagrid-row-over");
+}
+};
+};
+function _63d(e){
+var tr=_637(e.target);
+if(!tr){
+return;
+}
+var _63e=_639(tr);
+var opts=$.data(_63e,"datagrid").options;
+var _63f=_63b(tr);
+var tt=$(e.target);
+if(tt.parent().hasClass("datagrid-cell-check")){
+if(opts.singleSelect&&opts.selectOnCheck){
+tt._propAttr("checked",!tt.is(":checked"));
+_640(_63e,_63f);
+}else{
+if(tt.is(":checked")){
+tt._propAttr("checked",false);
+_640(_63e,_63f);
+}else{
+tt._propAttr("checked",true);
+_641(_63e,_63f);
+}
+}
+}else{
+var row=opts.finder.getRow(_63e,_63f);
+var td=tt.closest("td[field]",tr);
+if(td.length){
+var _642=td.attr("field");
+opts.onClickCell.call(_63e,_63f,_642,row[_642]);
+}
+if(opts.singleSelect==true){
+_643(_63e,_63f);
+}else{
+if(opts.ctrlSelect){
+if(e.ctrlKey){
+if(tr.hasClass("datagrid-row-selected")){
+_644(_63e,_63f);
+}else{
+_643(_63e,_63f);
+}
+}else{
+if(e.shiftKey){
+$(_63e).datagrid("clearSelections");
+var _645=Math.min(opts.lastSelectedIndex||0,_63f);
+var _646=Math.max(opts.lastSelectedIndex||0,_63f);
+for(var i=_645;i<=_646;i++){
+_643(_63e,i);
+}
+}else{
+$(_63e).datagrid("clearSelections");
+_643(_63e,_63f);
+opts.lastSelectedIndex=_63f;
+}
+}
+}else{
+if(tr.hasClass("datagrid-row-selected")){
+_644(_63e,_63f);
+}else{
+_643(_63e,_63f);
+}
+}
+}
+opts.onClickRow.apply(_63e,_5d0(_63e,[_63f,row]));
+}
+};
+function _647(e){
+var tr=_637(e.target);
+if(!tr){
+return;
+}
+var _648=_639(tr);
+var opts=$.data(_648,"datagrid").options;
+var _649=_63b(tr);
+var row=opts.finder.getRow(_648,_649);
+var td=$(e.target).closest("td[field]",tr);
+if(td.length){
+var _64a=td.attr("field");
+opts.onDblClickCell.call(_648,_649,_64a,row[_64a]);
+}
+opts.onDblClickRow.apply(_648,_5d0(_648,[_649,row]));
+};
+function _64b(e){
+var tr=_637(e.target);
+if(tr){
+var _64c=_639(tr);
+var opts=$.data(_64c,"datagrid").options;
+var _64d=_63b(tr);
+var row=opts.finder.getRow(_64c,_64d);
+opts.onRowContextMenu.call(_64c,e,_64d,row);
+}else{
+var body=_637(e.target,".datagrid-body");
+if(body){
+var _64c=_639(body);
+var opts=$.data(_64c,"datagrid").options;
+opts.onRowContextMenu.call(_64c,e,-1,null);
+}
+}
+};
+function _639(t){
+return $(t).closest("div.datagrid-view").children(".datagrid-f")[0];
+};
+function _637(t,_64e){
+var tr=$(t).closest(_64e||"tr.datagrid-row");
+if(tr.length&&tr.parent().length){
+return tr;
+}else{
+return undefined;
+}
+};
+function _63b(tr){
+if(tr.attr("datagrid-row-index")){
+return parseInt(tr.attr("datagrid-row-index"));
+}else{
+return tr.attr("node-id");
+}
+};
+function _64f(_650,_651){
+var _652=$.data(_650,"datagrid");
+var opts=_652.options;
+_651=_651||{};
+var _653={sortName:opts.sortName,sortOrder:opts.sortOrder};
+if(typeof _651=="object"){
+$.extend(_653,_651);
+}
+var _654=[];
+var _655=[];
+if(_653.sortName){
+_654=_653.sortName.split(",");
+_655=_653.sortOrder.split(",");
+}
+if(typeof _651=="string"){
+var _656=_651;
+var col=_628(_650,_656);
+if(!col.sortable||_652.resizing){
+return;
+}
+var _657=col.order||"asc";
+var pos=_5cc(_654,_656);
+if(pos>=0){
+var _658=_655[pos]=="asc"?"desc":"asc";
+if(opts.multiSort&&_658==_657){
+_654.splice(pos,1);
+_655.splice(pos,1);
+}else{
+_655[pos]=_658;
+}
+}else{
+if(opts.multiSort){
+_654.push(_656);
+_655.push(_657);
+}else{
+_654=[_656];
+_655=[_657];
+}
+}
+_653.sortName=_654.join(",");
+_653.sortOrder=_655.join(",");
+}
+if(opts.onBeforeSortColumn.call(_650,_653.sortName,_653.sortOrder)==false){
+return;
+}
+$.extend(opts,_653);
+var dc=_652.dc;
+var _659=dc.header1.add(dc.header2);
+_659.find("div.datagrid-cell").removeClass("datagrid-sort-asc datagrid-sort-desc");
+for(var i=0;i<_654.length;i++){
+var col=_628(_650,_654[i]);
+_659.find("div."+col.cellClass).addClass("datagrid-sort-"+_655[i]);
+}
+if(opts.remoteSort){
+_65a(_650);
+}else{
+_65b(_650,$(_650).datagrid("getData"));
+}
+opts.onSortColumn.call(_650,opts.sortName,opts.sortOrder);
+};
+function _65c(_65d){
+var _65e=$.data(_65d,"datagrid");
+var opts=_65e.options;
+var dc=_65e.dc;
+var _65f=dc.view2.children("div.datagrid-header");
+dc.body2.css("overflow-x","");
+_660();
+_661();
+_662();
+_660(true);
+if(_65f.width()>=_65f.find("table").width()){
+dc.body2.css("overflow-x","hidden");
+}
+function _662(){
+if(!opts.fitColumns){
+return;
+}
+if(!_65e.leftWidth){
+_65e.leftWidth=0;
+}
+var _663=0;
+var cc=[];
+var _664=_627(_65d,false);
+for(var i=0;i<_664.length;i++){
+var col=_628(_65d,_664[i]);
+if(_665(col)){
+_663+=col.width;
+cc.push({field:col.field,col:col,addingWidth:0});
+}
+}
+if(!_663){
+return;
+}
+cc[cc.length-1].addingWidth-=_65e.leftWidth;
+var _666=_65f.children("div.datagrid-header-inner").show();
+var _667=_65f.width()-_65f.find("table").width()-opts.scrollbarSize+_65e.leftWidth;
+var rate=_667/_663;
+if(!opts.showHeader){
+_666.hide();
+}
+for(var i=0;i<cc.length;i++){
+var c=cc[i];
+var _668=parseInt(c.col.width*rate);
+c.addingWidth+=_668;
+_667-=_668;
+}
+cc[cc.length-1].addingWidth+=_667;
+for(var i=0;i<cc.length;i++){
+var c=cc[i];
+if(c.col.boxWidth+c.addingWidth>0){
+c.col.boxWidth+=c.addingWidth;
+c.col.width+=c.addingWidth;
+}
+}
+_65e.leftWidth=_667;
+$(_65d).datagrid("fixColumnSize");
+};
+function _661(){
+var _669=false;
+var _66a=_627(_65d,true).concat(_627(_65d,false));
+$.map(_66a,function(_66b){
+var col=_628(_65d,_66b);
+if(String(col.width||"").indexOf("%")>=0){
+var _66c=$.parser.parseValue("width",col.width,dc.view,opts.scrollbarSize)-col.deltaWidth;
+if(_66c>0){
+col.boxWidth=_66c;
+_669=true;
+}
+}
+});
+if(_669){
+$(_65d).datagrid("fixColumnSize");
+}
+};
+function _660(fit){
+var _66d=dc.header1.add(dc.header2).find(".datagrid-cell-group");
+if(_66d.length){
+_66d.each(function(){
+$(this)._outerWidth(fit?$(this).parent().width():10);
+});
+if(fit){
+_5e6(_65d);
+}
+}
+};
+function _665(col){
+if(String(col.width||"").indexOf("%")>=0){
+return false;
+}
+if(!col.hidden&&!col.checkbox&&!col.auto&&!col.fixed){
+return true;
+}
+};
+};
+function _66e(_66f,_670){
+var _671=$.data(_66f,"datagrid");
+var opts=_671.options;
+var dc=_671.dc;
+var tmp=$("<div class=\"datagrid-cell\" style=\"position:absolute;left:-9999px\"></div>").appendTo("body");
+if(_670){
+_5e1(_670);
+$(_66f).datagrid("fitColumns");
+}else{
+var _672=false;
+var _673=_627(_66f,true).concat(_627(_66f,false));
+for(var i=0;i<_673.length;i++){
+var _670=_673[i];
+var col=_628(_66f,_670);
+if(col.auto){
+_5e1(_670);
+_672=true;
+}
+}
+if(_672){
+$(_66f).datagrid("fitColumns");
+}
+}
+tmp.remove();
+function _5e1(_674){
+var _675=dc.view.find("div.datagrid-header td[field=\""+_674+"\"] div.datagrid-cell");
+_675.css("width","");
+var col=$(_66f).datagrid("getColumnOption",_674);
+col.width=undefined;
+col.boxWidth=undefined;
+col.auto=true;
+$(_66f).datagrid("fixColumnSize",_674);
+var _676=Math.max(_677("header"),_677("allbody"),_677("allfooter"))+1;
+_675._outerWidth(_676-1);
+col.width=_676;
+col.boxWidth=parseInt(_675[0].style.width);
+col.deltaWidth=_676-col.boxWidth;
+_675.css("width","");
+$(_66f).datagrid("fixColumnSize",_674);
+opts.onResizeColumn.call(_66f,_674,col.width);
+function _677(type){
+var _678=0;
+if(type=="header"){
+_678=_679(_675);
+}else{
+opts.finder.getTr(_66f,0,type).find("td[field=\""+_674+"\"] div.datagrid-cell").each(function(){
+var w=_679($(this));
+if(_678<w){
+_678=w;
+}
+});
+}
+return _678;
+function _679(cell){
+return cell.is(":visible")?cell._outerWidth():tmp.html(cell.html())._outerWidth();
+};
+};
+};
+};
+function _67a(_67b,_67c){
+var _67d=$.data(_67b,"datagrid");
+var opts=_67d.options;
+var dc=_67d.dc;
+var _67e=dc.view.find("table.datagrid-btable,table.datagrid-ftable");
+_67e.css("table-layout","fixed");
+if(_67c){
+fix(_67c);
+}else{
+var ff=_627(_67b,true).concat(_627(_67b,false));
+for(var i=0;i<ff.length;i++){
+fix(ff[i]);
+}
+}
+_67e.css("table-layout","");
+_67f(_67b);
+_5f7(_67b);
+_680(_67b);
+function fix(_681){
+var col=_628(_67b,_681);
+if(col.cellClass){
+_67d.ss.set("."+col.cellClass,col.boxWidth?col.boxWidth+"px":"auto");
+}
+};
+};
+function _67f(_682){
+var dc=$.data(_682,"datagrid").dc;
+dc.view.find("td.datagrid-td-merged").each(function(){
+var td=$(this);
+var _683=td.attr("colspan")||1;
+var col=_628(_682,td.attr("field"));
+var _684=col.boxWidth+col.deltaWidth-1;
+for(var i=1;i<_683;i++){
+td=td.next();
+col=_628(_682,td.attr("field"));
+_684+=col.boxWidth+col.deltaWidth;
+}
+$(this).children("div.datagrid-cell")._outerWidth(_684);
+});
+};
+function _680(_685){
+var dc=$.data(_685,"datagrid").dc;
+dc.view.find("div.datagrid-editable").each(function(){
+var cell=$(this);
+var _686=cell.parent().attr("field");
+var col=$(_685).datagrid("getColumnOption",_686);
+cell._outerWidth(col.boxWidth+col.deltaWidth-1);
+var ed=$.data(this,"datagrid.editor");
+if(ed.actions.resize){
+ed.actions.resize(ed.target,cell.width());
+}
+});
+};
+function _628(_687,_688){
+function find(_689){
+if(_689){
+for(var i=0;i<_689.length;i++){
+var cc=_689[i];
+for(var j=0;j<cc.length;j++){
+var c=cc[j];
+if(c.field==_688){
+return c;
+}
+}
+}
+}
+return null;
+};
+var opts=$.data(_687,"datagrid").options;
+var col=find(opts.columns);
+if(!col){
+col=find(opts.frozenColumns);
+}
+return col;
+};
+function _627(_68a,_68b){
+var opts=$.data(_68a,"datagrid").options;
+var _68c=(_68b==true)?(opts.frozenColumns||[[]]):opts.columns;
+if(_68c.length==0){
+return [];
+}
+var aa=[];
+var _68d=_68e();
+for(var i=0;i<_68c.length;i++){
+aa[i]=new Array(_68d);
+}
+for(var _68f=0;_68f<_68c.length;_68f++){
+$.map(_68c[_68f],function(col){
+var _690=_691(aa[_68f]);
+if(_690>=0){
+var _692=col.field||"";
+for(var c=0;c<(col.colspan||1);c++){
+for(var r=0;r<(col.rowspan||1);r++){
+aa[_68f+r][_690]=_692;
+}
+_690++;
+}
+}
+});
+}
+return aa[aa.length-1];
+function _68e(){
+var _693=0;
+$.map(_68c[0],function(col){
+_693+=col.colspan||1;
+});
+return _693;
+};
+function _691(a){
+for(var i=0;i<a.length;i++){
+if(a[i]==undefined){
+return i;
+}
+}
+return -1;
+};
+};
+function _65b(_694,data){
+var _695=$.data(_694,"datagrid");
+var opts=_695.options;
+var dc=_695.dc;
+data=opts.loadFilter.call(_694,data);
+data.total=parseInt(data.total);
+_695.data=data;
+if(data.footer){
+_695.footer=data.footer;
+}
+if(!opts.remoteSort&&opts.sortName){
+var _696=opts.sortName.split(",");
+var _697=opts.sortOrder.split(",");
+data.rows.sort(function(r1,r2){
+var r=0;
+for(var i=0;i<_696.length;i++){
+var sn=_696[i];
+var so=_697[i];
+var col=_628(_694,sn);
+var _698=col.sorter||function(a,b){
+return a==b?0:(a>b?1:-1);
+};
+r=_698(r1[sn],r2[sn])*(so=="asc"?1:-1);
+if(r!=0){
+return r;
+}
+}
+return r;
+});
+}
+if(opts.view.onBeforeRender){
+opts.view.onBeforeRender.call(opts.view,_694,data.rows);
+}
+opts.view.render.call(opts.view,_694,dc.body2,false);
+opts.view.render.call(opts.view,_694,dc.body1,true);
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,_694,dc.footer2,false);
+opts.view.renderFooter.call(opts.view,_694,dc.footer1,true);
+}
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,_694);
+}
+_695.ss.clean();
+var _699=$(_694).datagrid("getPager");
+if(_699.length){
+var _69a=_699.pagination("options");
+if(_69a.total!=data.total){
+_699.pagination("refresh",{total:data.total});
+if(opts.pageNumber!=_69a.pageNumber&&_69a.pageNumber>0){
+opts.pageNumber=_69a.pageNumber;
+_65a(_694);
+}
+}
+}
+_5f7(_694);
+dc.body2.triggerHandler("scroll");
+$(_694).datagrid("setSelectionState");
+$(_694).datagrid("autoSizeColumn");
+opts.onLoadSuccess.call(_694,data);
+};
+function _69b(_69c){
+var _69d=$.data(_69c,"datagrid");
+var opts=_69d.options;
+var dc=_69d.dc;
+dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked",false);
+if(opts.idField){
+var _69e=$.data(_69c,"treegrid")?true:false;
+var _69f=opts.onSelect;
+var _6a0=opts.onCheck;
+opts.onSelect=opts.onCheck=function(){
+};
+var rows=opts.finder.getRows(_69c);
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var _6a1=_69e?row[opts.idField]:i;
+if(_6a2(_69d.selectedRows,row)){
+_643(_69c,_6a1,true);
+}
+if(_6a2(_69d.checkedRows,row)){
+_640(_69c,_6a1,true);
+}
+}
+opts.onSelect=_69f;
+opts.onCheck=_6a0;
+}
+function _6a2(a,r){
+for(var i=0;i<a.length;i++){
+if(a[i][opts.idField]==r[opts.idField]){
+a[i]=r;
+return true;
+}
+}
+return false;
+};
+};
+function _6a3(_6a4,row){
+var _6a5=$.data(_6a4,"datagrid");
+var opts=_6a5.options;
+var rows=_6a5.data.rows;
+if(typeof row=="object"){
+return _5cc(rows,row);
+}else{
+for(var i=0;i<rows.length;i++){
+if(rows[i][opts.idField]==row){
+return i;
+}
+}
+return -1;
+}
+};
+function _6a6(_6a7){
+var _6a8=$.data(_6a7,"datagrid");
+var opts=_6a8.options;
+var data=_6a8.data;
+if(opts.idField){
+return _6a8.selectedRows;
+}else{
+var rows=[];
+opts.finder.getTr(_6a7,"","selected",2).each(function(){
+rows.push(opts.finder.getRow(_6a7,$(this)));
+});
+return rows;
+}
+};
+function _6a9(_6aa){
+var _6ab=$.data(_6aa,"datagrid");
+var opts=_6ab.options;
+if(opts.idField){
+return _6ab.checkedRows;
+}else{
+var rows=[];
+opts.finder.getTr(_6aa,"","checked",2).each(function(){
+rows.push(opts.finder.getRow(_6aa,$(this)));
+});
+return rows;
+}
+};
+function _6ac(_6ad,_6ae){
+var _6af=$.data(_6ad,"datagrid");
+var dc=_6af.dc;
+var opts=_6af.options;
+var tr=opts.finder.getTr(_6ad,_6ae);
+if(tr.length){
+if(tr.closest("table").hasClass("datagrid-btable-frozen")){
+return;
+}
+var _6b0=dc.view2.children("div.datagrid-header")._outerHeight();
+var _6b1=dc.body2;
+var _6b2=_6b1.outerHeight(true)-_6b1.outerHeight();
+var top=tr.position().top-_6b0-_6b2;
+if(top<0){
+_6b1.scrollTop(_6b1.scrollTop()+top);
+}else{
+if(top+tr._outerHeight()>_6b1.height()-18){
+_6b1.scrollTop(_6b1.scrollTop()+top+tr._outerHeight()-_6b1.height()+18);
+}
+}
+}
+};
+function _63c(_6b3,_6b4){
+var _6b5=$.data(_6b3,"datagrid");
+var opts=_6b5.options;
+opts.finder.getTr(_6b3,_6b5.highlightIndex).removeClass("datagrid-row-over");
+opts.finder.getTr(_6b3,_6b4).addClass("datagrid-row-over");
+_6b5.highlightIndex=_6b4;
+};
+function _643(_6b6,_6b7,_6b8){
+var _6b9=$.data(_6b6,"datagrid");
+var opts=_6b9.options;
+var row=opts.finder.getRow(_6b6,_6b7);
+if(opts.onBeforeSelect.apply(_6b6,_5d0(_6b6,[_6b7,row]))==false){
+return;
+}
+if(opts.singleSelect){
+_6ba(_6b6,true);
+_6b9.selectedRows=[];
+}
+if(!_6b8&&opts.checkOnSelect){
+_640(_6b6,_6b7,true);
+}
+if(opts.idField){
+_5cf(_6b9.selectedRows,opts.idField,row);
+}
+opts.finder.getTr(_6b6,_6b7).addClass("datagrid-row-selected");
+opts.onSelect.apply(_6b6,_5d0(_6b6,[_6b7,row]));
+_6ac(_6b6,_6b7);
+};
+function _644(_6bb,_6bc,_6bd){
+var _6be=$.data(_6bb,"datagrid");
+var dc=_6be.dc;
+var opts=_6be.options;
+var row=opts.finder.getRow(_6bb,_6bc);
+if(opts.onBeforeUnselect.apply(_6bb,_5d0(_6bb,[_6bc,row]))==false){
+return;
+}
+if(!_6bd&&opts.checkOnSelect){
+_641(_6bb,_6bc,true);
+}
+opts.finder.getTr(_6bb,_6bc).removeClass("datagrid-row-selected");
+if(opts.idField){
+_5cd(_6be.selectedRows,opts.idField,row[opts.idField]);
+}
+opts.onUnselect.apply(_6bb,_5d0(_6bb,[_6bc,row]));
+};
+function _6bf(_6c0,_6c1){
+var _6c2=$.data(_6c0,"datagrid");
+var opts=_6c2.options;
+var rows=opts.finder.getRows(_6c0);
+var _6c3=$.data(_6c0,"datagrid").selectedRows;
+if(!_6c1&&opts.checkOnSelect){
+_6c4(_6c0,true);
+}
+opts.finder.getTr(_6c0,"","allbody").addClass("datagrid-row-selected");
+if(opts.idField){
+for(var _6c5=0;_6c5<rows.length;_6c5++){
+_5cf(_6c3,opts.idField,rows[_6c5]);
+}
+}
+opts.onSelectAll.call(_6c0,rows);
+};
+function _6ba(_6c6,_6c7){
+var _6c8=$.data(_6c6,"datagrid");
+var opts=_6c8.options;
+var rows=opts.finder.getRows(_6c6);
+var _6c9=$.data(_6c6,"datagrid").selectedRows;
+if(!_6c7&&opts.checkOnSelect){
+_6ca(_6c6,true);
+}
+opts.finder.getTr(_6c6,"","selected").removeClass("datagrid-row-selected");
+if(opts.idField){
+for(var _6cb=0;_6cb<rows.length;_6cb++){
+_5cd(_6c9,opts.idField,rows[_6cb][opts.idField]);
+}
+}
+opts.onUnselectAll.call(_6c6,rows);
+};
+function _640(_6cc,_6cd,_6ce){
+var _6cf=$.data(_6cc,"datagrid");
+var opts=_6cf.options;
+var row=opts.finder.getRow(_6cc,_6cd);
+if(opts.onBeforeCheck.apply(_6cc,_5d0(_6cc,[_6cd,row]))==false){
+return;
+}
+if(opts.singleSelect&&opts.selectOnCheck){
+_6ca(_6cc,true);
+_6cf.checkedRows=[];
+}
+if(!_6ce&&opts.selectOnCheck){
+_643(_6cc,_6cd,true);
+}
+var tr=opts.finder.getTr(_6cc,_6cd).addClass("datagrid-row-checked");
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
+tr=opts.finder.getTr(_6cc,"","checked",2);
+if(tr.length==opts.finder.getRows(_6cc).length){
+var dc=_6cf.dc;
+dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked",true);
+}
+if(opts.idField){
+_5cf(_6cf.checkedRows,opts.idField,row);
+}
+opts.onCheck.apply(_6cc,_5d0(_6cc,[_6cd,row]));
+};
+function _641(_6d0,_6d1,_6d2){
+var _6d3=$.data(_6d0,"datagrid");
+var opts=_6d3.options;
+var row=opts.finder.getRow(_6d0,_6d1);
+if(opts.onBeforeUncheck.apply(_6d0,_5d0(_6d0,[_6d1,row]))==false){
+return;
+}
+if(!_6d2&&opts.selectOnCheck){
+_644(_6d0,_6d1,true);
+}
+var tr=opts.finder.getTr(_6d0,_6d1).removeClass("datagrid-row-checked");
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",false);
+var dc=_6d3.dc;
+var _6d4=dc.header1.add(dc.header2);
+_6d4.find("input[type=checkbox]")._propAttr("checked",false);
+if(opts.idField){
+_5cd(_6d3.checkedRows,opts.idField,row[opts.idField]);
+}
+opts.onUncheck.apply(_6d0,_5d0(_6d0,[_6d1,row]));
+};
+function _6c4(_6d5,_6d6){
+var _6d7=$.data(_6d5,"datagrid");
+var opts=_6d7.options;
+var rows=opts.finder.getRows(_6d5);
+if(!_6d6&&opts.selectOnCheck){
+_6bf(_6d5,true);
+}
+var dc=_6d7.dc;
+var hck=dc.header1.add(dc.header2).find("input[type=checkbox]");
+var bck=opts.finder.getTr(_6d5,"","allbody").addClass("datagrid-row-checked").find("div.datagrid-cell-check input[type=checkbox]");
+hck.add(bck)._propAttr("checked",true);
+if(opts.idField){
+for(var i=0;i<rows.length;i++){
+_5cf(_6d7.checkedRows,opts.idField,rows[i]);
+}
+}
+opts.onCheckAll.call(_6d5,rows);
+};
+function _6ca(_6d8,_6d9){
+var _6da=$.data(_6d8,"datagrid");
+var opts=_6da.options;
+var rows=opts.finder.getRows(_6d8);
+if(!_6d9&&opts.selectOnCheck){
+_6ba(_6d8,true);
+}
+var dc=_6da.dc;
+var hck=dc.header1.add(dc.header2).find("input[type=checkbox]");
+var bck=opts.finder.getTr(_6d8,"","checked").removeClass("datagrid-row-checked").find("div.datagrid-cell-check input[type=checkbox]");
+hck.add(bck)._propAttr("checked",false);
+if(opts.idField){
+for(var i=0;i<rows.length;i++){
+_5cd(_6da.checkedRows,opts.idField,rows[i][opts.idField]);
+}
+}
+opts.onUncheckAll.call(_6d8,rows);
+};
+function _6db(_6dc,_6dd){
+var opts=$.data(_6dc,"datagrid").options;
+var tr=opts.finder.getTr(_6dc,_6dd);
+var row=opts.finder.getRow(_6dc,_6dd);
+if(tr.hasClass("datagrid-row-editing")){
+return;
+}
+if(opts.onBeforeEdit.apply(_6dc,_5d0(_6dc,[_6dd,row]))==false){
+return;
+}
+tr.addClass("datagrid-row-editing");
+_6de(_6dc,_6dd);
+_680(_6dc);
+tr.find("div.datagrid-editable").each(function(){
+var _6df=$(this).parent().attr("field");
+var ed=$.data(this,"datagrid.editor");
+ed.actions.setValue(ed.target,row[_6df]);
+});
+_6e0(_6dc,_6dd);
+opts.onBeginEdit.apply(_6dc,_5d0(_6dc,[_6dd,row]));
+};
+function _6e1(_6e2,_6e3,_6e4){
+var _6e5=$.data(_6e2,"datagrid");
+var opts=_6e5.options;
+var _6e6=_6e5.updatedRows;
+var _6e7=_6e5.insertedRows;
+var tr=opts.finder.getTr(_6e2,_6e3);
+var row=opts.finder.getRow(_6e2,_6e3);
+if(!tr.hasClass("datagrid-row-editing")){
+return;
+}
+if(!_6e4){
+if(!_6e0(_6e2,_6e3)){
+return;
+}
+var _6e8=false;
+var _6e9={};
+tr.find("div.datagrid-editable").each(function(){
+var _6ea=$(this).parent().attr("field");
+var ed=$.data(this,"datagrid.editor");
+var t=$(ed.target);
+var _6eb=t.data("textbox")?t.textbox("textbox"):t;
+_6eb.triggerHandler("blur");
+var _6ec=ed.actions.getValue(ed.target);
+if(row[_6ea]!=_6ec){
+row[_6ea]=_6ec;
+_6e8=true;
+_6e9[_6ea]=_6ec;
+}
+});
+if(_6e8){
+if(_5cc(_6e7,row)==-1){
+if(_5cc(_6e6,row)==-1){
+_6e6.push(row);
+}
+}
+}
+opts.onEndEdit.apply(_6e2,_5d0(_6e2,[_6e3,row,_6e9]));
+}
+tr.removeClass("datagrid-row-editing");
+_6ed(_6e2,_6e3);
+$(_6e2).datagrid("refreshRow",_6e3);
+if(!_6e4){
+opts.onAfterEdit.apply(_6e2,_5d0(_6e2,[_6e3,row,_6e9]));
+}else{
+opts.onCancelEdit.apply(_6e2,_5d0(_6e2,[_6e3,row]));
+}
+};
+function _6ee(_6ef,_6f0){
+var opts=$.data(_6ef,"datagrid").options;
+var tr=opts.finder.getTr(_6ef,_6f0);
+var _6f1=[];
+tr.children("td").each(function(){
+var cell=$(this).find("div.datagrid-editable");
+if(cell.length){
+var ed=$.data(cell[0],"datagrid.editor");
+_6f1.push(ed);
+}
+});
+return _6f1;
+};
+function _6f2(_6f3,_6f4){
+var _6f5=_6ee(_6f3,_6f4.index!=undefined?_6f4.index:_6f4.id);
+for(var i=0;i<_6f5.length;i++){
+if(_6f5[i].field==_6f4.field){
+return _6f5[i];
+}
+}
+return null;
+};
+function _6de(_6f6,_6f7){
+var opts=$.data(_6f6,"datagrid").options;
+var tr=opts.finder.getTr(_6f6,_6f7);
+tr.children("td").each(function(){
+var cell=$(this).find("div.datagrid-cell");
+var _6f8=$(this).attr("field");
+var col=_628(_6f6,_6f8);
+if(col&&col.editor){
+var _6f9,_6fa;
+if(typeof col.editor=="string"){
+_6f9=col.editor;
+}else{
+_6f9=col.editor.type;
+_6fa=col.editor.options;
+}
+var _6fb=opts.editors[_6f9];
+if(_6fb){
+var _6fc=cell.html();
+var _6fd=cell._outerWidth();
+cell.addClass("datagrid-editable");
+cell._outerWidth(_6fd);
+cell.html("<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr><td></td></tr></table>");
+cell.children("table").bind("click dblclick contextmenu",function(e){
+e.stopPropagation();
+});
+$.data(cell[0],"datagrid.editor",{actions:_6fb,target:_6fb.init(cell.find("td"),_6fa),field:_6f8,type:_6f9,oldHtml:_6fc});
+}
+}
+});
+_5f7(_6f6,_6f7,true);
+};
+function _6ed(_6fe,_6ff){
+var opts=$.data(_6fe,"datagrid").options;
+var tr=opts.finder.getTr(_6fe,_6ff);
+tr.children("td").each(function(){
+var cell=$(this).find("div.datagrid-editable");
+if(cell.length){
+var ed=$.data(cell[0],"datagrid.editor");
+if(ed.actions.destroy){
+ed.actions.destroy(ed.target);
+}
+cell.html(ed.oldHtml);
+$.removeData(cell[0],"datagrid.editor");
+cell.removeClass("datagrid-editable");
+cell.css("width","");
+}
+});
+};
+function _6e0(_700,_701){
+var tr=$.data(_700,"datagrid").options.finder.getTr(_700,_701);
+if(!tr.hasClass("datagrid-row-editing")){
+return true;
+}
+var vbox=tr.find(".validatebox-text");
+vbox.validatebox("validate");
+vbox.trigger("mouseleave");
+var _702=tr.find(".validatebox-invalid");
+return _702.length==0;
+};
+function _703(_704,_705){
+var _706=$.data(_704,"datagrid").insertedRows;
+var _707=$.data(_704,"datagrid").deletedRows;
+var _708=$.data(_704,"datagrid").updatedRows;
+if(!_705){
+var rows=[];
+rows=rows.concat(_706);
+rows=rows.concat(_707);
+rows=rows.concat(_708);
+return rows;
+}else{
+if(_705=="inserted"){
+return _706;
+}else{
+if(_705=="deleted"){
+return _707;
+}else{
+if(_705=="updated"){
+return _708;
+}
+}
+}
+}
+return [];
+};
+function _709(_70a,_70b){
+var _70c=$.data(_70a,"datagrid");
+var opts=_70c.options;
+var data=_70c.data;
+var _70d=_70c.insertedRows;
+var _70e=_70c.deletedRows;
+$(_70a).datagrid("cancelEdit",_70b);
+var row=opts.finder.getRow(_70a,_70b);
+if(_5cc(_70d,row)>=0){
+_5cd(_70d,row);
+}else{
+_70e.push(row);
+}
+_5cd(_70c.selectedRows,opts.idField,row[opts.idField]);
+_5cd(_70c.checkedRows,opts.idField,row[opts.idField]);
+opts.view.deleteRow.call(opts.view,_70a,_70b);
+if(opts.height=="auto"){
+_5f7(_70a);
+}
+$(_70a).datagrid("getPager").pagination("refresh",{total:data.total});
+};
+function _70f(_710,_711){
+var data=$.data(_710,"datagrid").data;
+var view=$.data(_710,"datagrid").options.view;
+var _712=$.data(_710,"datagrid").insertedRows;
+view.insertRow.call(view,_710,_711.index,_711.row);
+_712.push(_711.row);
+$(_710).datagrid("getPager").pagination("refresh",{total:data.total});
+};
+function _713(_714,row){
+var data=$.data(_714,"datagrid").data;
+var view=$.data(_714,"datagrid").options.view;
+var _715=$.data(_714,"datagrid").insertedRows;
+view.insertRow.call(view,_714,null,row);
+_715.push(row);
+$(_714).datagrid("getPager").pagination("refresh",{total:data.total});
+};
+function _716(_717){
+var _718=$.data(_717,"datagrid");
+var data=_718.data;
+var rows=data.rows;
+var _719=[];
+for(var i=0;i<rows.length;i++){
+_719.push($.extend({},rows[i]));
+}
+_718.originalRows=_719;
+_718.updatedRows=[];
+_718.insertedRows=[];
+_718.deletedRows=[];
+};
+function _71a(_71b){
+var data=$.data(_71b,"datagrid").data;
+var ok=true;
+for(var i=0,len=data.rows.length;i<len;i++){
+if(_6e0(_71b,i)){
+$(_71b).datagrid("endEdit",i);
+}else{
+ok=false;
+}
+}
+if(ok){
+_716(_71b);
+}
+};
+function _71c(_71d){
+var _71e=$.data(_71d,"datagrid");
+var opts=_71e.options;
+var _71f=_71e.originalRows;
+var _720=_71e.insertedRows;
+var _721=_71e.deletedRows;
+var _722=_71e.selectedRows;
+var _723=_71e.checkedRows;
+var data=_71e.data;
+function _724(a){
+var ids=[];
+for(var i=0;i<a.length;i++){
+ids.push(a[i][opts.idField]);
+}
+return ids;
+};
+function _725(ids,_726){
+for(var i=0;i<ids.length;i++){
+var _727=_6a3(_71d,ids[i]);
+if(_727>=0){
+(_726=="s"?_643:_640)(_71d,_727,true);
+}
+}
+};
+for(var i=0;i<data.rows.length;i++){
+$(_71d).datagrid("cancelEdit",i);
+}
+var _728=_724(_722);
+var _729=_724(_723);
+_722.splice(0,_722.length);
+_723.splice(0,_723.length);
+data.total+=_721.length-_720.length;
+data.rows=_71f;
+_65b(_71d,data);
+_725(_728,"s");
+_725(_729,"c");
+_716(_71d);
+};
+function _65a(_72a,_72b,cb){
+var opts=$.data(_72a,"datagrid").options;
+if(_72b){
+opts.queryParams=_72b;
+}
+var _72c=$.extend({},opts.queryParams);
+if(opts.pagination){
+$.extend(_72c,{page:opts.pageNumber||1,rows:opts.pageSize});
+}
+if(opts.sortName){
+$.extend(_72c,{sort:opts.sortName,order:opts.sortOrder});
+}
+if(opts.onBeforeLoad.call(_72a,_72c)==false){
+return;
+}
+$(_72a).datagrid("loading");
+var _72d=opts.loader.call(_72a,_72c,function(data){
+$(_72a).datagrid("loaded");
+$(_72a).datagrid("loadData",data);
+if(cb){
+cb();
+}
+},function(){
+$(_72a).datagrid("loaded");
+opts.onLoadError.apply(_72a,arguments);
+});
+if(_72d==false){
+$(_72a).datagrid("loaded");
+}
+};
+function _72e(_72f,_730){
+var opts=$.data(_72f,"datagrid").options;
+_730.type=_730.type||"body";
+_730.rowspan=_730.rowspan||1;
+_730.colspan=_730.colspan||1;
+if(_730.rowspan==1&&_730.colspan==1){
+return;
+}
+var tr=opts.finder.getTr(_72f,(_730.index!=undefined?_730.index:_730.id),_730.type);
+if(!tr.length){
+return;
+}
+var td=tr.find("td[field=\""+_730.field+"\"]");
+td.attr("rowspan",_730.rowspan).attr("colspan",_730.colspan);
+td.addClass("datagrid-td-merged");
+_731(td.next(),_730.colspan-1);
+for(var i=1;i<_730.rowspan;i++){
+tr=tr.next();
+if(!tr.length){
+break;
+}
+td=tr.find("td[field=\""+_730.field+"\"]");
+_731(td,_730.colspan);
+}
+_67f(_72f);
+function _731(td,_732){
+for(var i=0;i<_732;i++){
+td.hide();
+td=td.next();
+}
+};
+};
+$.fn.datagrid=function(_733,_734){
+if(typeof _733=="string"){
+return $.fn.datagrid.methods[_733](this,_734);
+}
+_733=_733||{};
+return this.each(function(){
+var _735=$.data(this,"datagrid");
+var opts;
+if(_735){
+opts=$.extend(_735.options,_733);
+_735.options=opts;
+}else{
+opts=$.extend({},$.extend({},$.fn.datagrid.defaults,{queryParams:{}}),$.fn.datagrid.parseOptions(this),_733);
+$(this).css("width","").css("height","");
+var _736=_60b(this,opts.rownumbers);
+if(!opts.columns){
+opts.columns=_736.columns;
+}
+if(!opts.frozenColumns){
+opts.frozenColumns=_736.frozenColumns;
+}
+opts.columns=$.extend(true,[],opts.columns);
+opts.frozenColumns=$.extend(true,[],opts.frozenColumns);
+opts.view=$.extend({},opts.view);
+$.data(this,"datagrid",{options:opts,panel:_736.panel,dc:_736.dc,ss:null,selectedRows:[],checkedRows:[],data:{total:0,rows:[]},originalRows:[],updatedRows:[],insertedRows:[],deletedRows:[]});
+}
+_614(this);
+_629(this);
+_5e1(this);
+if(opts.data){
+$(this).datagrid("loadData",opts.data);
+}else{
+var data=$.fn.datagrid.parseData(this);
+if(data.total>0){
+$(this).datagrid("loadData",data);
+}else{
+opts.view.renderEmptyRow(this);
+$(this).datagrid("autoSizeColumn");
+}
+}
+_65a(this);
+});
+};
+function _737(_738){
+var _739={};
+$.map(_738,function(name){
+_739[name]=_73a(name);
+});
+return _739;
+function _73a(name){
+function isA(_73b){
+return $.data($(_73b)[0],name)!=undefined;
+};
+return {init:function(_73c,_73d){
+var _73e=$("<input type=\"text\" class=\"datagrid-editable-input\">").appendTo(_73c);
+if(_73e[name]&&name!="text"){
+return _73e[name](_73d);
+}else{
+return _73e;
+}
+},destroy:function(_73f){
+if(isA(_73f,name)){
+$(_73f)[name]("destroy");
+}
+},getValue:function(_740){
+if(isA(_740,name)){
+var opts=$(_740)[name]("options");
+if(opts.multiple){
+return $(_740)[name]("getValues").join(opts.separator);
+}else{
+return $(_740)[name]("getValue");
+}
+}else{
+return $(_740).val();
+}
+},setValue:function(_741,_742){
+if(isA(_741,name)){
+var opts=$(_741)[name]("options");
+if(opts.multiple){
+if(_742){
+$(_741)[name]("setValues",_742.split(opts.separator));
+}else{
+$(_741)[name]("clear");
+}
+}else{
+$(_741)[name]("setValue",_742);
+}
+}else{
+$(_741).val(_742);
+}
+},resize:function(_743,_744){
+if(isA(_743,name)){
+$(_743)[name]("resize",_744);
+}else{
+$(_743)._outerWidth(_744)._outerHeight(22);
+}
+}};
+};
+};
+var _745=$.extend({},_737(["text","textbox","numberbox","numberspinner","combobox","combotree","combogrid","datebox","datetimebox","timespinner","datetimespinner"]),{textarea:{init:function(_746,_747){
+var _748=$("<textarea class=\"datagrid-editable-input\"></textarea>").appendTo(_746);
+return _748;
+},getValue:function(_749){
+return $(_749).val();
+},setValue:function(_74a,_74b){
+$(_74a).val(_74b);
+},resize:function(_74c,_74d){
+$(_74c)._outerWidth(_74d);
+}},checkbox:{init:function(_74e,_74f){
+var _750=$("<input type=\"checkbox\">").appendTo(_74e);
+_750.val(_74f.on);
+_750.attr("offval",_74f.off);
+return _750;
+},getValue:function(_751){
+if($(_751).is(":checked")){
+return $(_751).val();
+}else{
+return $(_751).attr("offval");
+}
+},setValue:function(_752,_753){
+var _754=false;
+if($(_752).val()==_753){
+_754=true;
+}
+$(_752)._propAttr("checked",_754);
+}},validatebox:{init:function(_755,_756){
+var _757=$("<input type=\"text\" class=\"datagrid-editable-input\">").appendTo(_755);
+_757.validatebox(_756);
+return _757;
+},destroy:function(_758){
+$(_758).validatebox("destroy");
+},getValue:function(_759){
+return $(_759).val();
+},setValue:function(_75a,_75b){
+$(_75a).val(_75b);
+},resize:function(_75c,_75d){
+$(_75c)._outerWidth(_75d)._outerHeight(22);
+}}});
+$.fn.datagrid.methods={options:function(jq){
+var _75e=$.data(jq[0],"datagrid").options;
+var _75f=$.data(jq[0],"datagrid").panel.panel("options");
+var opts=$.extend(_75e,{width:_75f.width,height:_75f.height,closed:_75f.closed,collapsed:_75f.collapsed,minimized:_75f.minimized,maximized:_75f.maximized});
+return opts;
+},setSelectionState:function(jq){
+return jq.each(function(){
+_69b(this);
+});
+},createStyleSheet:function(jq){
+return _5d2(jq[0]);
+},getPanel:function(jq){
+return $.data(jq[0],"datagrid").panel;
+},getPager:function(jq){
+return $.data(jq[0],"datagrid").panel.children("div.datagrid-pager");
+},getColumnFields:function(jq,_760){
+return _627(jq[0],_760);
+},getColumnOption:function(jq,_761){
+return _628(jq[0],_761);
+},resize:function(jq,_762){
+return jq.each(function(){
+_5e1(this,_762);
+});
+},load:function(jq,_763){
+return jq.each(function(){
+var opts=$(this).datagrid("options");
+if(typeof _763=="string"){
+opts.url=_763;
+_763=null;
+}
+opts.pageNumber=1;
+var _764=$(this).datagrid("getPager");
+_764.pagination("refresh",{pageNumber:1});
+_65a(this,_763);
+});
+},reload:function(jq,_765){
+return jq.each(function(){
+var opts=$(this).datagrid("options");
+if(typeof _765=="string"){
+opts.url=_765;
+_765=null;
+}
+_65a(this,_765);
+});
+},reloadFooter:function(jq,_766){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+var dc=$.data(this,"datagrid").dc;
+if(_766){
+$.data(this,"datagrid").footer=_766;
+}
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,this,dc.footer2,false);
+opts.view.renderFooter.call(opts.view,this,dc.footer1,true);
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,this);
+}
+$(this).datagrid("fixRowHeight");
+}
+});
+},loading:function(jq){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+$(this).datagrid("getPager").pagination("loading");
+if(opts.loadMsg){
+var _767=$(this).datagrid("getPanel");
+if(!_767.children("div.datagrid-mask").length){
+$("<div class=\"datagrid-mask\" style=\"display:block\"></div>").appendTo(_767);
+var msg=$("<div class=\"datagrid-mask-msg\" style=\"display:block;left:50%\"></div>").html(opts.loadMsg).appendTo(_767);
+msg._outerHeight(40);
+msg.css({marginLeft:(-msg.outerWidth()/2),lineHeight:(msg.height()+"px")});
+}
+}
+});
+},loaded:function(jq){
+return jq.each(function(){
+$(this).datagrid("getPager").pagination("loaded");
+var _768=$(this).datagrid("getPanel");
+_768.children("div.datagrid-mask-msg").remove();
+_768.children("div.datagrid-mask").remove();
+});
+},fitColumns:function(jq){
+return jq.each(function(){
+_65c(this);
+});
+},fixColumnSize:function(jq,_769){
+return jq.each(function(){
+_67a(this,_769);
+});
+},fixRowHeight:function(jq,_76a){
+return jq.each(function(){
+_5f7(this,_76a);
+});
+},freezeRow:function(jq,_76b){
+return jq.each(function(){
+_604(this,_76b);
+});
+},autoSizeColumn:function(jq,_76c){
+return jq.each(function(){
+_66e(this,_76c);
+});
+},loadData:function(jq,data){
+return jq.each(function(){
+_65b(this,data);
+_716(this);
+});
+},getData:function(jq){
+return $.data(jq[0],"datagrid").data;
+},getRows:function(jq){
+return $.data(jq[0],"datagrid").data.rows;
+},getFooterRows:function(jq){
+return $.data(jq[0],"datagrid").footer;
+},getRowIndex:function(jq,id){
+return _6a3(jq[0],id);
+},getChecked:function(jq){
+return _6a9(jq[0]);
+},getSelected:function(jq){
+var rows=_6a6(jq[0]);
+return rows.length>0?rows[0]:null;
+},getSelections:function(jq){
+return _6a6(jq[0]);
+},clearSelections:function(jq){
+return jq.each(function(){
+var _76d=$.data(this,"datagrid");
+var _76e=_76d.selectedRows;
+var _76f=_76d.checkedRows;
+_76e.splice(0,_76e.length);
+_6ba(this);
+if(_76d.options.checkOnSelect){
+_76f.splice(0,_76f.length);
+}
+});
+},clearChecked:function(jq){
+return jq.each(function(){
+var _770=$.data(this,"datagrid");
+var _771=_770.selectedRows;
+var _772=_770.checkedRows;
+_772.splice(0,_772.length);
+_6ca(this);
+if(_770.options.selectOnCheck){
+_771.splice(0,_771.length);
+}
+});
+},scrollTo:function(jq,_773){
+return jq.each(function(){
+_6ac(this,_773);
+});
+},highlightRow:function(jq,_774){
+return jq.each(function(){
+_63c(this,_774);
+_6ac(this,_774);
+});
+},selectAll:function(jq){
+return jq.each(function(){
+_6bf(this);
+});
+},unselectAll:function(jq){
+return jq.each(function(){
+_6ba(this);
+});
+},selectRow:function(jq,_775){
+return jq.each(function(){
+_643(this,_775);
+});
+},selectRecord:function(jq,id){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+if(opts.idField){
+var _776=_6a3(this,id);
+if(_776>=0){
+$(this).datagrid("selectRow",_776);
+}
+}
+});
+},unselectRow:function(jq,_777){
+return jq.each(function(){
+_644(this,_777);
+});
+},checkRow:function(jq,_778){
+return jq.each(function(){
+_640(this,_778);
+});
+},uncheckRow:function(jq,_779){
+return jq.each(function(){
+_641(this,_779);
+});
+},checkAll:function(jq){
+return jq.each(function(){
+_6c4(this);
+});
+},uncheckAll:function(jq){
+return jq.each(function(){
+_6ca(this);
+});
+},beginEdit:function(jq,_77a){
+return jq.each(function(){
+_6db(this,_77a);
+});
+},endEdit:function(jq,_77b){
+return jq.each(function(){
+_6e1(this,_77b,false);
+});
+},cancelEdit:function(jq,_77c){
+return jq.each(function(){
+_6e1(this,_77c,true);
+});
+},getEditors:function(jq,_77d){
+return _6ee(jq[0],_77d);
+},getEditor:function(jq,_77e){
+return _6f2(jq[0],_77e);
+},refreshRow:function(jq,_77f){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+opts.view.refreshRow.call(opts.view,this,_77f);
+});
+},validateRow:function(jq,_780){
+return _6e0(jq[0],_780);
+},updateRow:function(jq,_781){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+opts.view.updateRow.call(opts.view,this,_781.index,_781.row);
+});
+},appendRow:function(jq,row){
+return jq.each(function(){
+_713(this,row);
+});
+},insertRow:function(jq,_782){
+return jq.each(function(){
+_70f(this,_782);
+});
+},deleteRow:function(jq,_783){
+return jq.each(function(){
+_709(this,_783);
+});
+},getChanges:function(jq,_784){
+return _703(jq[0],_784);
+},acceptChanges:function(jq){
+return jq.each(function(){
+_71a(this);
+});
+},rejectChanges:function(jq){
+return jq.each(function(){
+_71c(this);
+});
+},mergeCells:function(jq,_785){
+return jq.each(function(){
+_72e(this,_785);
+});
+},showColumn:function(jq,_786){
+return jq.each(function(){
+var _787=$(this).datagrid("getPanel");
+_787.find("td[field=\""+_786+"\"]").show();
+$(this).datagrid("getColumnOption",_786).hidden=false;
+$(this).datagrid("fitColumns");
+});
+},hideColumn:function(jq,_788){
+return jq.each(function(){
+var _789=$(this).datagrid("getPanel");
+_789.find("td[field=\""+_788+"\"]").hide();
+$(this).datagrid("getColumnOption",_788).hidden=true;
+$(this).datagrid("fitColumns");
+});
+},sort:function(jq,_78a){
+return jq.each(function(){
+_64f(this,_78a);
+});
+},gotoPage:function(jq,_78b){
+return jq.each(function(){
+var _78c=this;
+var page,cb;
+if(typeof _78b=="object"){
+page=_78b.page;
+cb=_78b.callback;
+}else{
+page=_78b;
+}
+$(_78c).datagrid("options").pageNumber=page;
+$(_78c).datagrid("getPager").pagination("refresh",{pageNumber:page});
+_65a(_78c,null,function(){
+if(cb){
+cb.call(_78c,page);
+}
+});
+});
+}};
+$.fn.datagrid.parseOptions=function(_78d){
+var t=$(_78d);
+return $.extend({},$.fn.panel.parseOptions(_78d),$.parser.parseOptions(_78d,["url","toolbar","idField","sortName","sortOrder","pagePosition","resizeHandle",{sharedStyleSheet:"boolean",fitColumns:"boolean",autoRowHeight:"boolean",striped:"boolean",nowrap:"boolean"},{rownumbers:"boolean",singleSelect:"boolean",ctrlSelect:"boolean",checkOnSelect:"boolean",selectOnCheck:"boolean"},{pagination:"boolean",pageSize:"number",pageNumber:"number"},{multiSort:"boolean",remoteSort:"boolean",showHeader:"boolean",showFooter:"boolean"},{scrollbarSize:"number"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined),loadMsg:(t.attr("loadMsg")!=undefined?t.attr("loadMsg"):undefined),rowStyler:(t.attr("rowStyler")?eval(t.attr("rowStyler")):undefined)});
+};
+$.fn.datagrid.parseData=function(_78e){
+var t=$(_78e);
+var data={total:0,rows:[]};
+var _78f=t.datagrid("getColumnFields",true).concat(t.datagrid("getColumnFields",false));
+t.find("tbody tr").each(function(){
+data.total++;
+var row={};
+$.extend(row,$.parser.parseOptions(this,["iconCls","state"]));
+for(var i=0;i<_78f.length;i++){
+row[_78f[i]]=$(this).find("td:eq("+i+")").html();
+}
+data.rows.push(row);
+});
+return data;
+};
+var _790={render:function(_791,_792,_793){
+var rows=$(_791).datagrid("getRows");
+$(_792).html(this.renderTable(_791,0,rows,_793));
+},renderFooter:function(_794,_795,_796){
+var opts=$.data(_794,"datagrid").options;
+var rows=$.data(_794,"datagrid").footer||[];
+var _797=$(_794).datagrid("getColumnFields",_796);
+var _798=["<table class=\"datagrid-ftable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<rows.length;i++){
+_798.push("<tr class=\"datagrid-row\" datagrid-row-index=\""+i+"\">");
+_798.push(this.renderRow.call(this,_794,_797,_796,i,rows[i]));
+_798.push("</tr>");
+}
+_798.push("</tbody></table>");
+$(_795).html(_798.join(""));
+},renderTable:function(_799,_79a,rows,_79b){
+var _79c=$.data(_799,"datagrid");
+var opts=_79c.options;
+if(_79b){
+if(!(opts.rownumbers||(opts.frozenColumns&&opts.frozenColumns.length))){
+return "";
+}
+}
+var _79d=$(_799).datagrid("getColumnFields",_79b);
+var _79e=["<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var css=opts.rowStyler?opts.rowStyler.call(_799,_79a,row):"";
+var _79f="";
+var _7a0="";
+if(typeof css=="string"){
+_7a0=css;
+}else{
+if(css){
+_79f=css["class"]||"";
+_7a0=css["style"]||"";
+}
+}
+var cls="class=\"datagrid-row "+(_79a%2&&opts.striped?"datagrid-row-alt ":" ")+_79f+"\"";
+var _7a1=_7a0?"style=\""+_7a0+"\"":"";
+var _7a2=_79c.rowIdPrefix+"-"+(_79b?1:2)+"-"+_79a;
+_79e.push("<tr id=\""+_7a2+"\" datagrid-row-index=\""+_79a+"\" "+cls+" "+_7a1+">");
+_79e.push(this.renderRow.call(this,_799,_79d,_79b,_79a,row));
+_79e.push("</tr>");
+_79a++;
+}
+_79e.push("</tbody></table>");
+return _79e.join("");
+},renderRow:function(_7a3,_7a4,_7a5,_7a6,_7a7){
+var opts=$.data(_7a3,"datagrid").options;
+var cc=[];
+if(_7a5&&opts.rownumbers){
+var _7a8=_7a6+1;
+if(opts.pagination){
+_7a8+=(opts.pageNumber-1)*opts.pageSize;
+}
+cc.push("<td class=\"datagrid-td-rownumber\"><div class=\"datagrid-cell-rownumber\">"+_7a8+"</div></td>");
+}
+for(var i=0;i<_7a4.length;i++){
+var _7a9=_7a4[i];
+var col=$(_7a3).datagrid("getColumnOption",_7a9);
+if(col){
+var _7aa=_7a7[_7a9];
+var css=col.styler?(col.styler(_7aa,_7a7,_7a6)||""):"";
+var _7ab="";
+var _7ac="";
+if(typeof css=="string"){
+_7ac=css;
+}else{
+if(css){
+_7ab=css["class"]||"";
+_7ac=css["style"]||"";
+}
+}
+var cls=_7ab?"class=\""+_7ab+"\"":"";
+var _7ad=col.hidden?"style=\"display:none;"+_7ac+"\"":(_7ac?"style=\""+_7ac+"\"":"");
+cc.push("<td field=\""+_7a9+"\" "+cls+" "+_7ad+">");
+var _7ad="";
+if(!col.checkbox){
+if(col.align){
+_7ad+="text-align:"+col.align+";";
+}
+if(!opts.nowrap){
+_7ad+="white-space:normal;height:auto;";
+}else{
+if(opts.autoRowHeight){
+_7ad+="height:auto;";
+}
+}
+}
+cc.push("<div style=\""+_7ad+"\" ");
+cc.push(col.checkbox?"class=\"datagrid-cell-check\"":"class=\"datagrid-cell "+col.cellClass+"\"");
+cc.push(">");
+if(col.checkbox){
+cc.push("<input type=\"checkbox\" "+(_7a7.checked?"checked=\"checked\"":""));
+cc.push(" name=\""+_7a9+"\" value=\""+(_7aa!=undefined?_7aa:"")+"\">");
+}else{
+if(col.formatter){
+cc.push(col.formatter(_7aa,_7a7,_7a6));
+}else{
+cc.push(_7aa);
+}
+}
+cc.push("</div>");
+cc.push("</td>");
+}
+}
+return cc.join("");
+},refreshRow:function(_7ae,_7af){
+this.updateRow.call(this,_7ae,_7af,{});
+},updateRow:function(_7b0,_7b1,row){
+var opts=$.data(_7b0,"datagrid").options;
+var rows=$(_7b0).datagrid("getRows");
+var _7b2=_7b3(_7b1);
+$.extend(rows[_7b1],row);
+var _7b4=_7b3(_7b1);
+var _7b5=_7b2.c;
+var _7b6=_7b4.s;
+var _7b7="datagrid-row "+(_7b1%2&&opts.striped?"datagrid-row-alt ":" ")+_7b4.c;
+function _7b3(_7b8){
+var css=opts.rowStyler?opts.rowStyler.call(_7b0,_7b8,rows[_7b8]):"";
+var _7b9="";
+var _7ba="";
+if(typeof css=="string"){
+_7ba=css;
+}else{
+if(css){
+_7b9=css["class"]||"";
+_7ba=css["style"]||"";
+}
+}
+return {c:_7b9,s:_7ba};
+};
+function _7bb(_7bc){
+var _7bd=$(_7b0).datagrid("getColumnFields",_7bc);
+var tr=opts.finder.getTr(_7b0,_7b1,"body",(_7bc?1:2));
+var _7be=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked");
+tr.html(this.renderRow.call(this,_7b0,_7bd,_7bc,_7b1,rows[_7b1]));
+tr.attr("style",_7b6).removeClass(_7b5).addClass(_7b7);
+if(_7be){
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
+}
+};
+_7bb.call(this,true);
+_7bb.call(this,false);
+$(_7b0).datagrid("fixRowHeight",_7b1);
+},insertRow:function(_7bf,_7c0,row){
+var _7c1=$.data(_7bf,"datagrid");
+var opts=_7c1.options;
+var dc=_7c1.dc;
+var data=_7c1.data;
+if(_7c0==undefined||_7c0==null){
+_7c0=data.rows.length;
+}
+if(_7c0>data.rows.length){
+_7c0=data.rows.length;
+}
+function _7c2(_7c3){
+var _7c4=_7c3?1:2;
+for(var i=data.rows.length-1;i>=_7c0;i--){
+var tr=opts.finder.getTr(_7bf,i,"body",_7c4);
+tr.attr("datagrid-row-index",i+1);
+tr.attr("id",_7c1.rowIdPrefix+"-"+_7c4+"-"+(i+1));
+if(_7c3&&opts.rownumbers){
+var _7c5=i+2;
+if(opts.pagination){
+_7c5+=(opts.pageNumber-1)*opts.pageSize;
+}
+tr.find("div.datagrid-cell-rownumber").html(_7c5);
+}
+if(opts.striped){
+tr.removeClass("datagrid-row-alt").addClass((i+1)%2?"datagrid-row-alt":"");
+}
+}
+};
+function _7c6(_7c7){
+var _7c8=_7c7?1:2;
+var _7c9=$(_7bf).datagrid("getColumnFields",_7c7);
+var _7ca=_7c1.rowIdPrefix+"-"+_7c8+"-"+_7c0;
+var tr="<tr id=\""+_7ca+"\" class=\"datagrid-row\" datagrid-row-index=\""+_7c0+"\"></tr>";
+if(_7c0>=data.rows.length){
+if(data.rows.length){
+opts.finder.getTr(_7bf,"","last",_7c8).after(tr);
+}else{
+var cc=_7c7?dc.body1:dc.body2;
+cc.html("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"+tr+"</tbody></table>");
+}
+}else{
+opts.finder.getTr(_7bf,_7c0+1,"body",_7c8).before(tr);
+}
+};
+_7c2.call(this,true);
+_7c2.call(this,false);
+_7c6.call(this,true);
+_7c6.call(this,false);
+data.total+=1;
+data.rows.splice(_7c0,0,row);
+this.refreshRow.call(this,_7bf,_7c0);
+},deleteRow:function(_7cb,_7cc){
+var _7cd=$.data(_7cb,"datagrid");
+var opts=_7cd.options;
+var data=_7cd.data;
+function _7ce(_7cf){
+var _7d0=_7cf?1:2;
+for(var i=_7cc+1;i<data.rows.length;i++){
+var tr=opts.finder.getTr(_7cb,i,"body",_7d0);
+tr.attr("datagrid-row-index",i-1);
+tr.attr("id",_7cd.rowIdPrefix+"-"+_7d0+"-"+(i-1));
+if(_7cf&&opts.rownumbers){
+var _7d1=i;
+if(opts.pagination){
+_7d1+=(opts.pageNumber-1)*opts.pageSize;
+}
+tr.find("div.datagrid-cell-rownumber").html(_7d1);
+}
+if(opts.striped){
+tr.removeClass("datagrid-row-alt").addClass((i-1)%2?"datagrid-row-alt":"");
+}
+}
+};
+opts.finder.getTr(_7cb,_7cc).remove();
+_7ce.call(this,true);
+_7ce.call(this,false);
+data.total-=1;
+data.rows.splice(_7cc,1);
+},onBeforeRender:function(_7d2,rows){
+},onAfterRender:function(_7d3){
+var _7d4=$.data(_7d3,"datagrid");
+var opts=_7d4.options;
+if(opts.showFooter){
+var _7d5=$(_7d3).datagrid("getPanel").find("div.datagrid-footer");
+_7d5.find("div.datagrid-cell-rownumber,div.datagrid-cell-check").css("visibility","hidden");
+}
+if(opts.finder.getRows(_7d3).length==0){
+this.renderEmptyRow(_7d3);
+}
+},renderEmptyRow:function(_7d6){
+var cols=$.map($(_7d6).datagrid("getColumnFields"),function(_7d7){
+return $(_7d6).datagrid("getColumnOption",_7d7);
+});
+$.map(cols,function(col){
+col.formatter1=col.formatter;
+col.styler1=col.styler;
+col.formatter=col.styler=undefined;
+});
+var _7d8=$.data(_7d6,"datagrid").dc.body2;
+_7d8.html(this.renderTable(_7d6,0,[{}],false));
+_7d8.find("tbody *").css({height:1,borderColor:"transparent",background:"transparent"});
+var tr=_7d8.find(".datagrid-row");
+tr.removeClass("datagrid-row").removeAttr("datagrid-row-index");
+tr.find(".datagrid-cell,.datagrid-cell-check").empty();
+$.map(cols,function(col){
+col.formatter=col.formatter1;
+col.styler=col.styler1;
+col.formatter1=col.styler1=undefined;
+});
+}};
+$.fn.datagrid.defaults=$.extend({},$.fn.panel.defaults,{sharedStyleSheet:false,frozenColumns:undefined,columns:undefined,fitColumns:false,resizeHandle:"right",autoRowHeight:true,toolbar:null,striped:false,method:"post",nowrap:true,idField:null,url:null,data:null,loadMsg:"Processing, please wait ...",rownumbers:false,singleSelect:false,ctrlSelect:false,selectOnCheck:true,checkOnSelect:true,pagination:false,pagePosition:"bottom",pageNumber:1,pageSize:10,pageList:[10,20,30,40,50],queryParams:{},sortName:null,sortOrder:"asc",multiSort:false,remoteSort:true,showHeader:true,showFooter:false,scrollbarSize:18,rowEvents:{mouseover:_635(true),mouseout:_635(false),click:_63d,dblclick:_647,contextmenu:_64b},rowStyler:function(_7d9,_7da){
+},loader:function(_7db,_7dc,_7dd){
+var opts=$(this).datagrid("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_7db,dataType:"json",success:function(data){
+_7dc(data);
+},error:function(){
+_7dd.apply(this,arguments);
+}});
+},loadFilter:function(data){
+if(typeof data.length=="number"&&typeof data.splice=="function"){
+return {total:data.length,rows:data};
+}else{
+return data;
+}
+},editors:_745,finder:{getTr:function(_7de,_7df,type,_7e0){
+type=type||"body";
+_7e0=_7e0||0;
+var _7e1=$.data(_7de,"datagrid");
+var dc=_7e1.dc;
+var opts=_7e1.options;
+if(_7e0==0){
+var tr1=opts.finder.getTr(_7de,_7df,type,1);
+var tr2=opts.finder.getTr(_7de,_7df,type,2);
+return tr1.add(tr2);
+}else{
+if(type=="body"){
+var tr=$("#"+_7e1.rowIdPrefix+"-"+_7e0+"-"+_7df);
+if(!tr.length){
+tr=(_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index="+_7df+"]");
+}
+return tr;
+}else{
+if(type=="footer"){
+return (_7e0==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index="+_7df+"]");
+}else{
+if(type=="selected"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-selected");
+}else{
+if(type=="highlight"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-over");
+}else{
+if(type=="checked"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-checked");
+}else{
+if(type=="editing"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-editing");
+}else{
+if(type=="last"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]:last");
+}else{
+if(type=="allbody"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]");
+}else{
+if(type=="allfooter"){
+return (_7e0==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index]");
+}
+}
+}
+}
+}
+}
+}
+}
+}
+}
+},getRow:function(_7e2,p){
+var _7e3=(typeof p=="object")?p.attr("datagrid-row-index"):p;
+return $.data(_7e2,"datagrid").data.rows[parseInt(_7e3)];
+},getRows:function(_7e4){
+return $(_7e4).datagrid("getRows");
+}},view:_790,onBeforeLoad:function(_7e5){
+},onLoadSuccess:function(){
+},onLoadError:function(){
+},onClickRow:function(_7e6,_7e7){
+},onDblClickRow:function(_7e8,_7e9){
+},onClickCell:function(_7ea,_7eb,_7ec){
+},onDblClickCell:function(_7ed,_7ee,_7ef){
+},onBeforeSortColumn:function(sort,_7f0){
+},onSortColumn:function(sort,_7f1){
+},onResizeColumn:function(_7f2,_7f3){
+},onBeforeSelect:function(_7f4,_7f5){
+},onSelect:function(_7f6,_7f7){
+},onBeforeUnselect:function(_7f8,_7f9){
+},onUnselect:function(_7fa,_7fb){
+},onSelectAll:function(rows){
+},onUnselectAll:function(rows){
+},onBeforeCheck:function(_7fc,_7fd){
+},onCheck:function(_7fe,_7ff){
+},onBeforeUncheck:function(_800,_801){
+},onUncheck:function(_802,_803){
+},onCheckAll:function(rows){
+},onUncheckAll:function(rows){
+},onBeforeEdit:function(_804,_805){
+},onBeginEdit:function(_806,_807){
+},onEndEdit:function(_808,_809,_80a){
+},onAfterEdit:function(_80b,_80c,_80d){
+},onCancelEdit:function(_80e,_80f){
+},onHeaderContextMenu:function(e,_810){
+},onRowContextMenu:function(e,_811,_812){
+}});
+})(jQuery);
+(function($){
+var _813;
+$(document).unbind(".propertygrid").bind("mousedown.propertygrid",function(e){
+var p=$(e.target).closest("div.datagrid-view,div.combo-panel");
+if(p.length){
+return;
+}
+_814(_813);
+_813=undefined;
+});
+function _815(_816){
+var _817=$.data(_816,"propertygrid");
+var opts=$.data(_816,"propertygrid").options;
+$(_816).datagrid($.extend({},opts,{cls:"propertygrid",view:(opts.showGroup?opts.groupView:opts.view),onBeforeEdit:function(_818,row){
+if(opts.onBeforeEdit.call(_816,_818,row)==false){
+return false;
+}
+var dg=$(this);
+var row=dg.datagrid("getRows")[_818];
+var col=dg.datagrid("getColumnOption","value");
+ if(row === undefined){
+ return false;
+ }else{
+ col.editor=row.editor;
+ }
+},onClickCell:function(_819,_81a,_81b){
+if(_813!=this){
+_814(_813);
+_813=this;
+}
+if(opts.editIndex!=_819){
+_814(_813);
+$(this).datagrid("beginEdit",_819);
+var ed=$(this).datagrid("getEditor",{index:_819,field:_81a});
+if(!ed){
+ed=$(this).datagrid("getEditor",{index:_819,field:"value"});
+}
+if(ed){
+var t=$(ed.target);
+var _81c=t.data("textbox")?t.textbox("textbox"):t;
+_81c.focus();
+opts.editIndex=_819;
+}
+}
+opts.onClickCell.call(_816,_819,_81a,_81b);
+},loadFilter:function(data){
+_814(this);
+return opts.loadFilter.call(this,data);
+}}));
+};
+function _814(_81d){
+var t=$(_81d);
+if(!t.length){
+return;
+}
+var opts=$.data(_81d,"propertygrid").options;
+opts.finder.getTr(_81d,null,"editing").each(function(){
+var _81e=parseInt($(this).attr("datagrid-row-index"));
+if(t.datagrid("validateRow",_81e)){
+t.datagrid("endEdit",_81e);
+}else{
+t.datagrid("cancelEdit",_81e);
+}
+});
+opts.editIndex=undefined;
+};
+$.fn.propertygrid=function(_81f,_820){
+if(typeof _81f=="string"){
+var _821=$.fn.propertygrid.methods[_81f];
+if(_821){
+return _821(this,_820);
+}else{
+return this.datagrid(_81f,_820);
+}
+}
+_81f=_81f||{};
+return this.each(function(){
+var _822=$.data(this,"propertygrid");
+if(_822){
+$.extend(_822.options,_81f);
+}else{
+var opts=$.extend({},$.fn.propertygrid.defaults,$.fn.propertygrid.parseOptions(this),_81f);
+opts.frozenColumns=$.extend(true,[],opts.frozenColumns);
+opts.columns=$.extend(true,[],opts.columns);
+$.data(this,"propertygrid",{options:opts});
+}
+_815(this);
+});
+};
+$.fn.propertygrid.methods={options:function(jq){
+return $.data(jq[0],"propertygrid").options;
+}};
+$.fn.propertygrid.parseOptions=function(_823){
+return $.extend({},$.fn.datagrid.parseOptions(_823),$.parser.parseOptions(_823,[{showGroup:"boolean"}]));
+};
+var _824=$.extend({},$.fn.datagrid.defaults.view,{render:function(_825,_826,_827){
+var _828=[];
+var _829=this.groups;
+for(var i=0;i<_829.length;i++){
+_828.push(this.renderGroup.call(this,_825,i,_829[i],_827));
+}
+$(_826).html(_828.join(""));
+},renderGroup:function(_82a,_82b,_82c,_82d){
+var _82e=$.data(_82a,"datagrid");
+var opts=_82e.options;
+var _82f=$(_82a).datagrid("getColumnFields",_82d);
+var _830=[];
+_830.push("<div class=\"datagrid-group\" group-index="+_82b+">");
+if((_82d&&(opts.rownumbers||opts.frozenColumns.length))||(!_82d&&!(opts.rownumbers||opts.frozenColumns.length))){
+_830.push("<span class=\"datagrid-group-expander\">");
+_830.push("<span class=\"datagrid-row-expander datagrid-row-collapse\"> </span>");
+_830.push("</span>");
+}
+if(!_82d){
+_830.push("<span class=\"datagrid-group-title\">");
+_830.push(opts.groupFormatter.call(_82a,_82c.value,_82c.rows));
+_830.push("</span>");
+}
+_830.push("</div>");
+_830.push("<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>");
+var _831=_82c.startIndex;
+for(var j=0;j<_82c.rows.length;j++){
+var css=opts.rowStyler?opts.rowStyler.call(_82a,_831,_82c.rows[j]):"";
+var _832="";
+var _833="";
+if(typeof css=="string"){
+_833=css;
+}else{
+if(css){
+_832=css["class"]||"";
+_833=css["style"]||"";
+}
+}
+var cls="class=\"datagrid-row "+(_831%2&&opts.striped?"datagrid-row-alt ":" ")+_832+"\"";
+var _834=_833?"style=\""+_833+"\"":"";
+var _835=_82e.rowIdPrefix+"-"+(_82d?1:2)+"-"+_831;
+_830.push("<tr id=\""+_835+"\" datagrid-row-index=\""+_831+"\" "+cls+" "+_834+">");
+_830.push(this.renderRow.call(this,_82a,_82f,_82d,_831,_82c.rows[j]));
+_830.push("</tr>");
+_831++;
+}
+_830.push("</tbody></table>");
+return _830.join("");
+},bindEvents:function(_836){
+var _837=$.data(_836,"datagrid");
+var dc=_837.dc;
+var body=dc.body1.add(dc.body2);
+var _838=($.data(body[0],"events")||$._data(body[0],"events")).click[0].handler;
+body.unbind("click").bind("click",function(e){
+var tt=$(e.target);
+var _839=tt.closest("span.datagrid-row-expander");
+if(_839.length){
+var _83a=_839.closest("div.datagrid-group").attr("group-index");
+if(_839.hasClass("datagrid-row-collapse")){
+$(_836).datagrid("collapseGroup",_83a);
+}else{
+$(_836).datagrid("expandGroup",_83a);
+}
+}else{
+_838(e);
+}
+e.stopPropagation();
+});
+},onBeforeRender:function(_83b,rows){
+var _83c=$.data(_83b,"datagrid");
+var opts=_83c.options;
+_83d();
+var _83e=[];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var _83f=_840(row[opts.groupField]);
+if(!_83f){
+_83f={value:row[opts.groupField],rows:[row]};
+_83e.push(_83f);
+}else{
+_83f.rows.push(row);
+}
+}
+var _841=0;
+var _842=[];
+for(var i=0;i<_83e.length;i++){
+var _83f=_83e[i];
+_83f.startIndex=_841;
+_841+=_83f.rows.length;
+_842=_842.concat(_83f.rows);
+}
+_83c.data.rows=_842;
+this.groups=_83e;
+var that=this;
+setTimeout(function(){
+that.bindEvents(_83b);
+},0);
+function _840(_843){
+for(var i=0;i<_83e.length;i++){
+var _844=_83e[i];
+if(_844.value==_843){
+return _844;
+}
+}
+return null;
+};
+function _83d(){
+if(!$("#datagrid-group-style").length){
+$("head").append("<style id=\"datagrid-group-style\">"+".datagrid-group{height:"+opts.groupHeight+"px;overflow:hidden;font-weight:bold;border-bottom:1px solid #ccc;}"+".datagrid-group-title,.datagrid-group-expander{display:inline-block;vertical-align:bottom;height:100%;line-height:"+opts.groupHeight+"px;padding:0 4px;}"+".datagrid-group-expander{width:"+opts.expanderWidth+"px;text-align:center;padding:0}"+".datagrid-row-expander{margin:"+Math.floor((opts.groupHeight-16)/2)+"px 0;display:inline-block;width:16px;height:16px;cursor:pointer}"+"</style>");
+}
+};
+}});
+$.extend($.fn.datagrid.methods,{groups:function(jq){
+return jq.datagrid("options").view.groups;
+},expandGroup:function(jq,_845){
+return jq.each(function(){
+var view=$.data(this,"datagrid").dc.view;
+var _846=view.find(_845!=undefined?"div.datagrid-group[group-index=\""+_845+"\"]":"div.datagrid-group");
+var _847=_846.find("span.datagrid-row-expander");
+if(_847.hasClass("datagrid-row-expand")){
+_847.removeClass("datagrid-row-expand").addClass("datagrid-row-collapse");
+_846.next("table").show();
+}
+$(this).datagrid("fixRowHeight");
+});
+},collapseGroup:function(jq,_848){
+return jq.each(function(){
+var view=$.data(this,"datagrid").dc.view;
+var _849=view.find(_848!=undefined?"div.datagrid-group[group-index=\""+_848+"\"]":"div.datagrid-group");
+var _84a=_849.find("span.datagrid-row-expander");
+if(_84a.hasClass("datagrid-row-collapse")){
+_84a.removeClass("datagrid-row-collapse").addClass("datagrid-row-expand");
+_849.next("table").hide();
+}
+$(this).datagrid("fixRowHeight");
+});
+}});
+$.extend(_824,{refreshGroupTitle:function(_84b,_84c){
+var _84d=$.data(_84b,"datagrid");
+var opts=_84d.options;
+var dc=_84d.dc;
+var _84e=this.groups[_84c];
+var span=dc.body2.children("div.datagrid-group[group-index="+_84c+"]").find("span.datagrid-group-title");
+span.html(opts.groupFormatter.call(_84b,_84e.value,_84e.rows));
+},insertRow:function(_84f,_850,row){
+var _851=$.data(_84f,"datagrid");
+var opts=_851.options;
+var dc=_851.dc;
+var _852=null;
+var _853;
+if(!_851.data.rows.length){
+$(_84f).datagrid("loadData",[row]);
+return;
+}
+for(var i=0;i<this.groups.length;i++){
+if(this.groups[i].value==row[opts.groupField]){
+_852=this.groups[i];
+_853=i;
+break;
+}
+}
+if(_852){
+if(_850==undefined||_850==null){
+_850=_851.data.rows.length;
+}
+if(_850<_852.startIndex){
+_850=_852.startIndex;
+}else{
+if(_850>_852.startIndex+_852.rows.length){
+_850=_852.startIndex+_852.rows.length;
+}
+}
+$.fn.datagrid.defaults.view.insertRow.call(this,_84f,_850,row);
+if(_850>=_852.startIndex+_852.rows.length){
+_854(_850,true);
+_854(_850,false);
+}
+_852.rows.splice(_850-_852.startIndex,0,row);
+}else{
+_852={value:row[opts.groupField],rows:[row],startIndex:_851.data.rows.length};
+_853=this.groups.length;
+dc.body1.append(this.renderGroup.call(this,_84f,_853,_852,true));
+dc.body2.append(this.renderGroup.call(this,_84f,_853,_852,false));
+this.groups.push(_852);
+_851.data.rows.push(row);
+}
+this.refreshGroupTitle(_84f,_853);
+function _854(_855,_856){
+var _857=_856?1:2;
+var _858=opts.finder.getTr(_84f,_855-1,"body",_857);
+var tr=opts.finder.getTr(_84f,_855,"body",_857);
+tr.insertAfter(_858);
+};
+},updateRow:function(_859,_85a,row){
+var opts=$.data(_859,"datagrid").options;
+$.fn.datagrid.defaults.view.updateRow.call(this,_859,_85a,row);
+var tb=opts.finder.getTr(_859,_85a,"body",2).closest("table.datagrid-btable");
+var _85b=parseInt(tb.prev().attr("group-index"));
+this.refreshGroupTitle(_859,_85b);
+},deleteRow:function(_85c,_85d){
+var _85e=$.data(_85c,"datagrid");
+var opts=_85e.options;
+var dc=_85e.dc;
+var body=dc.body1.add(dc.body2);
+var tb=opts.finder.getTr(_85c,_85d,"body",2).closest("table.datagrid-btable");
+var _85f=parseInt(tb.prev().attr("group-index"));
+$.fn.datagrid.defaults.view.deleteRow.call(this,_85c,_85d);
+var _860=this.groups[_85f];
+if(_860.rows.length>1){
+_860.rows.splice(_85d-_860.startIndex,1);
+this.refreshGroupTitle(_85c,_85f);
+}else{
+body.children("div.datagrid-group[group-index="+_85f+"]").remove();
+for(var i=_85f+1;i<this.groups.length;i++){
+body.children("div.datagrid-group[group-index="+i+"]").attr("group-index",i-1);
+}
+this.groups.splice(_85f,1);
+}
+var _85d=0;
+for(var i=0;i<this.groups.length;i++){
+var _860=this.groups[i];
+_860.startIndex=_85d;
+_85d+=_860.rows.length;
+}
+}});
+$.fn.propertygrid.defaults=$.extend({},$.fn.datagrid.defaults,{groupHeight:21,expanderWidth:16,singleSelect:true,remoteSort:false,fitColumns:true,loadMsg:"",frozenColumns:[[{field:"f",width:16,resizable:false}]],columns:[[{field:"name",title:"Name",width:100,sortable:true},{field:"value",title:"Value",width:100,resizable:false}]],showGroup:false,groupView:_824,groupField:"group",groupFormatter:function(_861,rows){
+return _861;
+}});
+})(jQuery);
+(function($){
+function _862(_863){
+var _864=$.data(_863,"treegrid");
+var opts=_864.options;
+$(_863).datagrid($.extend({},opts,{url:null,data:null,loader:function(){
+return false;
+},onBeforeLoad:function(){
+return false;
+},onLoadSuccess:function(){
+},onResizeColumn:function(_865,_866){
+_873(_863);
+opts.onResizeColumn.call(_863,_865,_866);
+},onBeforeSortColumn:function(sort,_867){
+if(opts.onBeforeSortColumn.call(_863,sort,_867)==false){
+return false;
+}
+},onSortColumn:function(sort,_868){
+opts.sortName=sort;
+opts.sortOrder=_868;
+if(opts.remoteSort){
+_872(_863);
+}else{
+var data=$(_863).treegrid("getData");
+_889(_863,0,data);
+}
+opts.onSortColumn.call(_863,sort,_868);
+},onClickCell:function(_869,_86a){
+opts.onClickCell.call(_863,_86a,find(_863,_869));
+},onDblClickCell:function(_86b,_86c){
+opts.onDblClickCell.call(_863,_86c,find(_863,_86b));
+},onRowContextMenu:function(e,_86d){
+opts.onContextMenu.call(_863,e,find(_863,_86d));
+}}));
+var _86e=$.data(_863,"datagrid").options;
+opts.columns=_86e.columns;
+opts.frozenColumns=_86e.frozenColumns;
+_864.dc=$.data(_863,"datagrid").dc;
+if(opts.pagination){
+var _86f=$(_863).datagrid("getPager");
+_86f.pagination({pageNumber:opts.pageNumber,pageSize:opts.pageSize,pageList:opts.pageList,onSelectPage:function(_870,_871){
+opts.pageNumber=_870;
+opts.pageSize=_871;
+_872(_863);
+}});
+opts.pageSize=_86f.pagination("options").pageSize;
+}
+};
+function _873(_874,_875){
+var opts=$.data(_874,"datagrid").options;
+var dc=$.data(_874,"datagrid").dc;
+if(!dc.body1.is(":empty")&&(!opts.nowrap||opts.autoRowHeight)){
+if(_875!=undefined){
+var _876=_877(_874,_875);
+for(var i=0;i<_876.length;i++){
+_878(_876[i][opts.idField]);
+}
+}
+}
+$(_874).datagrid("fixRowHeight",_875);
+function _878(_879){
+var tr1=opts.finder.getTr(_874,_879,"body",1);
+var tr2=opts.finder.getTr(_874,_879,"body",2);
+tr1.css("height","");
+tr2.css("height","");
+var _87a=Math.max(tr1.height(),tr2.height());
+tr1.css("height",_87a);
+tr2.css("height",_87a);
+};
+};
+function _87b(_87c){
+var dc=$.data(_87c,"datagrid").dc;
+var opts=$.data(_87c,"treegrid").options;
+if(!opts.rownumbers){
+return;
+}
+dc.body1.find("div.datagrid-cell-rownumber").each(function(i){
+$(this).html(i+1);
+});
+};
+function _87d(_87e){
+return function(e){
+$.fn.datagrid.defaults.rowEvents[_87e?"mouseover":"mouseout"](e);
+var tt=$(e.target);
+var fn=_87e?"addClass":"removeClass";
+if(tt.hasClass("tree-hit")){
+tt.hasClass("tree-expanded")?tt[fn]("tree-expanded-hover"):tt[fn]("tree-collapsed-hover");
+}
+};
+};
+function _87f(e){
+var tt=$(e.target);
+if(tt.hasClass("tree-hit")){
+var tr=tt.closest("tr.datagrid-row");
+var _880=tr.closest("div.datagrid-view").children(".datagrid-f")[0];
+_881(_880,tr.attr("node-id"));
+}else{
+$.fn.datagrid.defaults.rowEvents.click(e);
+}
+};
+function _882(_883,_884){
+var opts=$.data(_883,"treegrid").options;
+var tr1=opts.finder.getTr(_883,_884,"body",1);
+var tr2=opts.finder.getTr(_883,_884,"body",2);
+var _885=$(_883).datagrid("getColumnFields",true).length+(opts.rownumbers?1:0);
+var _886=$(_883).datagrid("getColumnFields",false).length;
+_887(tr1,_885);
+_887(tr2,_886);
+function _887(tr,_888){
+$("<tr class=\"treegrid-tr-tree\">"+"<td style=\"border:0px\" colspan=\""+_888+"\">"+"<div></div>"+"</td>"+"</tr>").insertAfter(tr);
+};
+};
+function _889(_88a,_88b,data,_88c){
+var _88d=$.data(_88a,"treegrid");
+var opts=_88d.options;
+var dc=_88d.dc;
+data=opts.loadFilter.call(_88a,data,_88b);
+var node=find(_88a,_88b);
+if(node){
+var _88e=opts.finder.getTr(_88a,_88b,"body",1);
+var _88f=opts.finder.getTr(_88a,_88b,"body",2);
+var cc1=_88e.next("tr.treegrid-tr-tree").children("td").children("div");
+var cc2=_88f.next("tr.treegrid-tr-tree").children("td").children("div");
+if(!_88c){
+node.children=[];
+}
+}else{
+var cc1=dc.body1;
+var cc2=dc.body2;
+if(!_88c){
+_88d.data=[];
+}
+}
+if(!_88c){
+cc1.empty();
+cc2.empty();
+}
+if(opts.view.onBeforeRender){
+opts.view.onBeforeRender.call(opts.view,_88a,_88b,data);
+}
+opts.view.render.call(opts.view,_88a,cc1,true);
+opts.view.render.call(opts.view,_88a,cc2,false);
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,_88a,dc.footer1,true);
+opts.view.renderFooter.call(opts.view,_88a,dc.footer2,false);
+}
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,_88a);
+}
+if(!_88b&&opts.pagination){
+var _890=$.data(_88a,"treegrid").total;
+var _891=$(_88a).datagrid("getPager");
+if(_891.pagination("options").total!=_890){
+_891.pagination({total:_890});
+}
+}
+_873(_88a);
+_87b(_88a);
+$(_88a).treegrid("showLines");
+$(_88a).treegrid("setSelectionState");
+$(_88a).treegrid("autoSizeColumn");
+opts.onLoadSuccess.call(_88a,node,data);
+};
+function _872(_892,_893,_894,_895,_896){
+var opts=$.data(_892,"treegrid").options;
+var body=$(_892).datagrid("getPanel").find("div.datagrid-body");
+if(_894){
+opts.queryParams=_894;
+}
+var _897=$.extend({},opts.queryParams);
+if(opts.pagination){
+$.extend(_897,{page:opts.pageNumber,rows:opts.pageSize});
+}
+if(opts.sortName){
+$.extend(_897,{sort:opts.sortName,order:opts.sortOrder});
+}
+var row=find(_892,_893);
+if(opts.onBeforeLoad.call(_892,row,_897)==false){
+return;
+}
+var _898=body.find("tr[node-id=\""+_893+"\"] span.tree-folder");
+_898.addClass("tree-loading");
+$(_892).treegrid("loading");
+var _899=opts.loader.call(_892,_897,function(data){
+_898.removeClass("tree-loading");
+$(_892).treegrid("loaded");
+_889(_892,_893,data,_895);
+if(_896){
+_896();
+}
+},function(){
+_898.removeClass("tree-loading");
+$(_892).treegrid("loaded");
+opts.onLoadError.apply(_892,arguments);
+if(_896){
+_896();
+}
+});
+if(_899==false){
+_898.removeClass("tree-loading");
+$(_892).treegrid("loaded");
+}
+};
+function _89a(_89b){
+var rows=_89c(_89b);
+if(rows.length){
+return rows[0];
+}else{
+return null;
+}
+};
+function _89c(_89d){
+return $.data(_89d,"treegrid").data;
+};
+function _89e(_89f,_8a0){
+var row=find(_89f,_8a0);
+if(row._parentId){
+return find(_89f,row._parentId);
+}else{
+return null;
+}
+};
+function _877(_8a1,_8a2){
+var opts=$.data(_8a1,"treegrid").options;
+var body=$(_8a1).datagrid("getPanel").find("div.datagrid-view2 div.datagrid-body");
+var _8a3=[];
+if(_8a2){
+_8a4(_8a2);
+}else{
+var _8a5=_89c(_8a1);
+for(var i=0;i<_8a5.length;i++){
+_8a3.push(_8a5[i]);
+_8a4(_8a5[i][opts.idField]);
+}
+}
+function _8a4(_8a6){
+var _8a7=find(_8a1,_8a6);
+if(_8a7&&_8a7.children){
+for(var i=0,len=_8a7.children.length;i<len;i++){
+var _8a8=_8a7.children[i];
+_8a3.push(_8a8);
+_8a4(_8a8[opts.idField]);
+}
+}
+};
+return _8a3;
+};
+function _8a9(_8aa,_8ab){
+var opts=$.data(_8aa,"treegrid").options;
+var tr=opts.finder.getTr(_8aa,_8ab);
+var node=tr.children("td[field=\""+opts.treeField+"\"]");
+return node.find("span.tree-indent,span.tree-hit").length;
+};
+function find(_8ac,_8ad){
+var opts=$.data(_8ac,"treegrid").options;
+var data=$.data(_8ac,"treegrid").data;
+var cc=[data];
+while(cc.length){
+var c=cc.shift();
+for(var i=0;i<c.length;i++){
+var node=c[i];
+if(node[opts.idField]==_8ad){
+return node;
+}else{
+if(node["children"]){
+cc.push(node["children"]);
+}
+}
+}
+}
+return null;
+};
+function _8ae(_8af,_8b0){
+var opts=$.data(_8af,"treegrid").options;
+var row=find(_8af,_8b0);
+var tr=opts.finder.getTr(_8af,_8b0);
+var hit=tr.find("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-collapsed")){
+return;
+}
+if(opts.onBeforeCollapse.call(_8af,row)==false){
+return;
+}
+hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+hit.next().removeClass("tree-folder-open");
+row.state="closed";
+tr=tr.next("tr.treegrid-tr-tree");
+var cc=tr.children("td").children("div");
+if(opts.animate){
+cc.slideUp("normal",function(){
+$(_8af).treegrid("autoSizeColumn");
+_873(_8af,_8b0);
+opts.onCollapse.call(_8af,row);
+});
+}else{
+cc.hide();
+$(_8af).treegrid("autoSizeColumn");
+_873(_8af,_8b0);
+opts.onCollapse.call(_8af,row);
+}
+};
+function _8b1(_8b2,_8b3){
+var opts=$.data(_8b2,"treegrid").options;
+var tr=opts.finder.getTr(_8b2,_8b3);
+var hit=tr.find("span.tree-hit");
+var row=find(_8b2,_8b3);
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-expanded")){
+return;
+}
+if(opts.onBeforeExpand.call(_8b2,row)==false){
+return;
+}
+hit.removeClass("tree-collapsed tree-collapsed-hover").addClass("tree-expanded");
+hit.next().addClass("tree-folder-open");
+var _8b4=tr.next("tr.treegrid-tr-tree");
+if(_8b4.length){
+var cc=_8b4.children("td").children("div");
+_8b5(cc);
+}else{
+_882(_8b2,row[opts.idField]);
+var _8b4=tr.next("tr.treegrid-tr-tree");
+var cc=_8b4.children("td").children("div");
+cc.hide();
+var _8b6=$.extend({},opts.queryParams||{});
+_8b6.id=row[opts.idField];
+_872(_8b2,row[opts.idField],_8b6,true,function(){
+if(cc.is(":empty")){
+_8b4.remove();
+}else{
+_8b5(cc);
+}
+});
+}
+function _8b5(cc){
+row.state="open";
+if(opts.animate){
+cc.slideDown("normal",function(){
+$(_8b2).treegrid("autoSizeColumn");
+_873(_8b2,_8b3);
+opts.onExpand.call(_8b2,row);
+});
+}else{
+cc.show();
+$(_8b2).treegrid("autoSizeColumn");
+_873(_8b2,_8b3);
+opts.onExpand.call(_8b2,row);
+}
+};
+};
+function _881(_8b7,_8b8){
+var opts=$.data(_8b7,"treegrid").options;
+var tr=opts.finder.getTr(_8b7,_8b8);
+var hit=tr.find("span.tree-hit");
+if(hit.hasClass("tree-expanded")){
+_8ae(_8b7,_8b8);
+}else{
+_8b1(_8b7,_8b8);
+}
+};
+function _8b9(_8ba,_8bb){
+var opts=$.data(_8ba,"treegrid").options;
+var _8bc=_877(_8ba,_8bb);
+if(_8bb){
+_8bc.unshift(find(_8ba,_8bb));
+}
+for(var i=0;i<_8bc.length;i++){
+_8ae(_8ba,_8bc[i][opts.idField]);
+}
+};
+function _8bd(_8be,_8bf){
+var opts=$.data(_8be,"treegrid").options;
+var _8c0=_877(_8be,_8bf);
+if(_8bf){
+_8c0.unshift(find(_8be,_8bf));
+}
+for(var i=0;i<_8c0.length;i++){
+_8b1(_8be,_8c0[i][opts.idField]);
+}
+};
+function _8c1(_8c2,_8c3){
+var opts=$.data(_8c2,"treegrid").options;
+var ids=[];
+var p=_89e(_8c2,_8c3);
+while(p){
+var id=p[opts.idField];
+ids.unshift(id);
+p=_89e(_8c2,id);
+}
+for(var i=0;i<ids.length;i++){
+_8b1(_8c2,ids[i]);
+}
+};
+function _8c4(_8c5,_8c6){
+var opts=$.data(_8c5,"treegrid").options;
+if(_8c6.parent){
+var tr=opts.finder.getTr(_8c5,_8c6.parent);
+if(tr.next("tr.treegrid-tr-tree").length==0){
+_882(_8c5,_8c6.parent);
+}
+var cell=tr.children("td[field=\""+opts.treeField+"\"]").children("div.datagrid-cell");
+var _8c7=cell.children("span.tree-icon");
+if(_8c7.hasClass("tree-file")){
+_8c7.removeClass("tree-file").addClass("tree-folder tree-folder-open");
+var hit=$("<span class=\"tree-hit tree-expanded\"></span>").insertBefore(_8c7);
+if(hit.prev().length){
+hit.prev().remove();
+}
+}
+}
+_889(_8c5,_8c6.parent,_8c6.data,true);
+};
+function _8c8(_8c9,_8ca){
+var ref=_8ca.before||_8ca.after;
+var opts=$.data(_8c9,"treegrid").options;
+var _8cb=_89e(_8c9,ref);
+_8c4(_8c9,{parent:(_8cb?_8cb[opts.idField]:null),data:[_8ca.data]});
+var _8cc=_8cb?_8cb.children:$(_8c9).treegrid("getRoots");
+for(var i=0;i<_8cc.length;i++){
+if(_8cc[i][opts.idField]==ref){
+var _8cd=_8cc[_8cc.length-1];
+_8cc.splice(_8ca.before?i:(i+1),0,_8cd);
+_8cc.splice(_8cc.length-1,1);
+break;
+}
+}
+_8ce(true);
+_8ce(false);
+_87b(_8c9);
+$(_8c9).treegrid("showLines");
+function _8ce(_8cf){
+var _8d0=_8cf?1:2;
+var tr=opts.finder.getTr(_8c9,_8ca.data[opts.idField],"body",_8d0);
+var _8d1=tr.closest("table.datagrid-btable");
+tr=tr.parent().children();
+var dest=opts.finder.getTr(_8c9,ref,"body",_8d0);
+if(_8ca.before){
+tr.insertBefore(dest);
+}else{
+var sub=dest.next("tr.treegrid-tr-tree");
+tr.insertAfter(sub.length?sub:dest);
+}
+_8d1.remove();
+};
+};
+function _8d2(_8d3,_8d4){
+var _8d5=$.data(_8d3,"treegrid");
+$(_8d3).datagrid("deleteRow",_8d4);
+_87b(_8d3);
+_8d5.total-=1;
+$(_8d3).datagrid("getPager").pagination("refresh",{total:_8d5.total});
+$(_8d3).treegrid("showLines");
+};
+function _8d6(_8d7){
+var t=$(_8d7);
+var opts=t.treegrid("options");
+if(opts.lines){
+t.treegrid("getPanel").addClass("tree-lines");
+}else{
+t.treegrid("getPanel").removeClass("tree-lines");
+return;
+}
+t.treegrid("getPanel").find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom");
+t.treegrid("getPanel").find("div.datagrid-cell").removeClass("tree-node-last tree-root-first tree-root-one");
+var _8d8=t.treegrid("getRoots");
+if(_8d8.length>1){
+_8d9(_8d8[0]).addClass("tree-root-first");
+}else{
+if(_8d8.length==1){
+_8d9(_8d8[0]).addClass("tree-root-one");
+}
+}
+_8da(_8d8);
+_8db(_8d8);
+function _8da(_8dc){
+$.map(_8dc,function(node){
+if(node.children&&node.children.length){
+_8da(node.children);
+}else{
+var cell=_8d9(node);
+cell.find(".tree-icon").prev().addClass("tree-join");
+}
+});
+if(_8dc.length){
+var cell=_8d9(_8dc[_8dc.length-1]);
+cell.addClass("tree-node-last");
+cell.find(".tree-join").removeClass("tree-join").addClass("tree-joinbottom");
+}
+};
+function _8db(_8dd){
+$.map(_8dd,function(node){
+if(node.children&&node.children.length){
+_8db(node.children);
+}
+});
+for(var i=0;i<_8dd.length-1;i++){
+var node=_8dd[i];
+var _8de=t.treegrid("getLevel",node[opts.idField]);
+var tr=opts.finder.getTr(_8d7,node[opts.idField]);
+var cc=tr.next().find("tr.datagrid-row td[field=\""+opts.treeField+"\"] div.datagrid-cell");
+cc.find("span:eq("+(_8de-1)+")").addClass("tree-line");
+}
+};
+function _8d9(node){
+var tr=opts.finder.getTr(_8d7,node[opts.idField]);
+var cell=tr.find("td[field=\""+opts.treeField+"\"] div.datagrid-cell");
+return cell;
+};
+};
+$.fn.treegrid=function(_8df,_8e0){
+if(typeof _8df=="string"){
+var _8e1=$.fn.treegrid.methods[_8df];
+if(_8e1){
+return _8e1(this,_8e0);
+}else{
+return this.datagrid(_8df,_8e0);
+}
+}
+_8df=_8df||{};
+return this.each(function(){
+var _8e2=$.data(this,"treegrid");
+if(_8e2){
+$.extend(_8e2.options,_8df);
+}else{
+_8e2=$.data(this,"treegrid",{options:$.extend({},$.fn.treegrid.defaults,$.fn.treegrid.parseOptions(this),_8df),data:[]});
+}
+_862(this);
+if(_8e2.options.data){
+$(this).treegrid("loadData",_8e2.options.data);
+}
+_872(this);
+});
+};
+$.fn.treegrid.methods={options:function(jq){
+return $.data(jq[0],"treegrid").options;
+},resize:function(jq,_8e3){
+return jq.each(function(){
+$(this).datagrid("resize",_8e3);
+});
+},fixRowHeight:function(jq,_8e4){
+return jq.each(function(){
+_873(this,_8e4);
+});
+},loadData:function(jq,data){
+return jq.each(function(){
+_889(this,data.parent,data);
+});
+},load:function(jq,_8e5){
+return jq.each(function(){
+$(this).treegrid("options").pageNumber=1;
+$(this).treegrid("getPager").pagination({pageNumber:1});
+$(this).treegrid("reload",_8e5);
+});
+},reload:function(jq,id){
+return jq.each(function(){
+var opts=$(this).treegrid("options");
+var _8e6={};
+if(typeof id=="object"){
+_8e6=id;
+}else{
+_8e6=$.extend({},opts.queryParams);
+_8e6.id=id;
+}
+if(_8e6.id){
+var node=$(this).treegrid("find",_8e6.id);
+if(node.children){
+node.children.splice(0,node.children.length);
+}
+opts.queryParams=_8e6;
+var tr=opts.finder.getTr(this,_8e6.id);
+tr.next("tr.treegrid-tr-tree").remove();
+tr.find("span.tree-hit").removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+_8b1(this,_8e6.id);
+}else{
+_872(this,null,_8e6);
+}
+});
+},reloadFooter:function(jq,_8e7){
+return jq.each(function(){
+var opts=$.data(this,"treegrid").options;
+var dc=$.data(this,"datagrid").dc;
+if(_8e7){
+$.data(this,"treegrid").footer=_8e7;
+}
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,this,dc.footer1,true);
+opts.view.renderFooter.call(opts.view,this,dc.footer2,false);
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,this);
+}
+$(this).treegrid("fixRowHeight");
+}
+});
+},getData:function(jq){
+return $.data(jq[0],"treegrid").data;
+},getFooterRows:function(jq){
+return $.data(jq[0],"treegrid").footer;
+},getRoot:function(jq){
+return _89a(jq[0]);
+},getRoots:function(jq){
+return _89c(jq[0]);
+},getParent:function(jq,id){
+return _89e(jq[0],id);
+},getChildren:function(jq,id){
+return _877(jq[0],id);
+},getLevel:function(jq,id){
+return _8a9(jq[0],id);
+},find:function(jq,id){
+return find(jq[0],id);
+},isLeaf:function(jq,id){
+var opts=$.data(jq[0],"treegrid").options;
+var tr=opts.finder.getTr(jq[0],id);
+var hit=tr.find("span.tree-hit");
+return hit.length==0;
+},select:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("selectRow",id);
+});
+},unselect:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("unselectRow",id);
+});
+},collapse:function(jq,id){
+return jq.each(function(){
+_8ae(this,id);
+});
+},expand:function(jq,id){
+return jq.each(function(){
+_8b1(this,id);
+});
+},toggle:function(jq,id){
+return jq.each(function(){
+_881(this,id);
+});
+},collapseAll:function(jq,id){
+return jq.each(function(){
+_8b9(this,id);
+});
+},expandAll:function(jq,id){
+return jq.each(function(){
+_8bd(this,id);
+});
+},expandTo:function(jq,id){
+return jq.each(function(){
+_8c1(this,id);
+});
+},append:function(jq,_8e8){
+return jq.each(function(){
+_8c4(this,_8e8);
+});
+},insert:function(jq,_8e9){
+return jq.each(function(){
+_8c8(this,_8e9);
+});
+},remove:function(jq,id){
+return jq.each(function(){
+_8d2(this,id);
+});
+},pop:function(jq,id){
+var row=jq.treegrid("find",id);
+jq.treegrid("remove",id);
+return row;
+},refresh:function(jq,id){
+return jq.each(function(){
+var opts=$.data(this,"treegrid").options;
+opts.view.refreshRow.call(opts.view,this,id);
+});
+},update:function(jq,_8ea){
+return jq.each(function(){
+var opts=$.data(this,"treegrid").options;
+opts.view.updateRow.call(opts.view,this,_8ea.id,_8ea.row);
+});
+},beginEdit:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("beginEdit",id);
+$(this).treegrid("fixRowHeight",id);
+});
+},endEdit:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("endEdit",id);
+});
+},cancelEdit:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("cancelEdit",id);
+});
+},showLines:function(jq){
+return jq.each(function(){
+_8d6(this);
+});
+}};
+$.fn.treegrid.parseOptions=function(_8eb){
+return $.extend({},$.fn.datagrid.parseOptions(_8eb),$.parser.parseOptions(_8eb,["treeField",{animate:"boolean"}]));
+};
+var _8ec=$.extend({},$.fn.datagrid.defaults.view,{render:function(_8ed,_8ee,_8ef){
+var opts=$.data(_8ed,"treegrid").options;
+var _8f0=$(_8ed).datagrid("getColumnFields",_8ef);
+var _8f1=$.data(_8ed,"datagrid").rowIdPrefix;
+if(_8ef){
+if(!(opts.rownumbers||(opts.frozenColumns&&opts.frozenColumns.length))){
+return;
+}
+}
+var view=this;
+if(this.treeNodes&&this.treeNodes.length){
+var _8f2=_8f3(_8ef,this.treeLevel,this.treeNodes);
+$(_8ee).append(_8f2.join(""));
+}
+function _8f3(_8f4,_8f5,_8f6){
+var _8f7=$(_8ed).treegrid("getParent",_8f6[0][opts.idField]);
+var _8f8=(_8f7?_8f7.children.length:$(_8ed).treegrid("getRoots").length)-_8f6.length;
+var _8f9=["<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<_8f6.length;i++){
+var row=_8f6[i];
+if(row.state!="open"&&row.state!="closed"){
+row.state="open";
+}
+var css=opts.rowStyler?opts.rowStyler.call(_8ed,row):"";
+var _8fa="";
+var _8fb="";
+if(typeof css=="string"){
+_8fb=css;
+}else{
+if(css){
+_8fa=css["class"]||"";
+_8fb=css["style"]||"";
+}
+}
+var cls="class=\"datagrid-row "+(_8f8++%2&&opts.striped?"datagrid-row-alt ":" ")+_8fa+"\"";
+var _8fc=_8fb?"style=\""+_8fb+"\"":"";
+var _8fd=_8f1+"-"+(_8f4?1:2)+"-"+row[opts.idField];
+_8f9.push("<tr id=\""+_8fd+"\" node-id=\""+row[opts.idField]+"\" "+cls+" "+_8fc+">");
+_8f9=_8f9.concat(view.renderRow.call(view,_8ed,_8f0,_8f4,_8f5,row));
+_8f9.push("</tr>");
+if(row.children&&row.children.length){
+var tt=_8f3(_8f4,_8f5+1,row.children);
+var v=row.state=="closed"?"none":"block";
+_8f9.push("<tr class=\"treegrid-tr-tree\"><td style=\"border:0px\" colspan="+(_8f0.length+(opts.rownumbers?1:0))+"><div style=\"display:"+v+"\">");
+_8f9=_8f9.concat(tt);
+_8f9.push("</div></td></tr>");
+}
+}
+_8f9.push("</tbody></table>");
+return _8f9;
+};
+},renderFooter:function(_8fe,_8ff,_900){
+var opts=$.data(_8fe,"treegrid").options;
+var rows=$.data(_8fe,"treegrid").footer||[];
+var _901=$(_8fe).datagrid("getColumnFields",_900);
+var _902=["<table class=\"datagrid-ftable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+row[opts.idField]=row[opts.idField]||("foot-row-id"+i);
+_902.push("<tr class=\"datagrid-row\" node-id=\""+row[opts.idField]+"\">");
+_902.push(this.renderRow.call(this,_8fe,_901,_900,0,row));
+_902.push("</tr>");
+}
+_902.push("</tbody></table>");
+$(_8ff).html(_902.join(""));
+},renderRow:function(_903,_904,_905,_906,row){
+var opts=$.data(_903,"treegrid").options;
+var cc=[];
+if(_905&&opts.rownumbers){
+cc.push("<td class=\"datagrid-td-rownumber\"><div class=\"datagrid-cell-rownumber\">0</div></td>");
+}
+for(var i=0;i<_904.length;i++){
+var _907=_904[i];
+var col=$(_903).datagrid("getColumnOption",_907);
+if(col){
+var css=col.styler?(col.styler(row[_907],row)||""):"";
+var _908="";
+var _909="";
+if(typeof css=="string"){
+_909=css;
+}else{
+if(cc){
+_908=css["class"]||"";
+_909=css["style"]||"";
+}
+}
+var cls=_908?"class=\""+_908+"\"":"";
+var _90a=col.hidden?"style=\"display:none;"+_909+"\"":(_909?"style=\""+_909+"\"":"");
+cc.push("<td field=\""+_907+"\" "+cls+" "+_90a+">");
+var _90a="";
+if(!col.checkbox){
+if(col.align){
+_90a+="text-align:"+col.align+";";
+}
+if(!opts.nowrap){
+_90a+="white-space:normal;height:auto;";
+}else{
+if(opts.autoRowHeight){
+_90a+="height:auto;";
+}
+}
+}
+cc.push("<div style=\""+_90a+"\" ");
+if(col.checkbox){
+cc.push("class=\"datagrid-cell-check ");
+}else{
+cc.push("class=\"datagrid-cell "+col.cellClass);
+}
+cc.push("\">");
+if(col.checkbox){
+if(row.checked){
+cc.push("<input type=\"checkbox\" checked=\"checked\"");
+}else{
+cc.push("<input type=\"checkbox\"");
+}
+cc.push(" name=\""+_907+"\" value=\""+(row[_907]!=undefined?row[_907]:"")+"\">");
+}else{
+var val=null;
+if(col.formatter){
+val=col.formatter(row[_907],row);
+}else{
+val=row[_907];
+}
+if(_907==opts.treeField){
+for(var j=0;j<_906;j++){
+cc.push("<span class=\"tree-indent\"></span>");
+}
+if(row.state=="closed"){
+cc.push("<span class=\"tree-hit tree-collapsed\"></span>");
+cc.push("<span class=\"tree-icon tree-folder "+(row.iconCls?row.iconCls:"")+"\"></span>");
+}else{
+if(row.children&&row.children.length){
+cc.push("<span class=\"tree-hit tree-expanded\"></span>");
+cc.push("<span class=\"tree-icon tree-folder tree-folder-open "+(row.iconCls?row.iconCls:"")+"\"></span>");
+}else{
+cc.push("<span class=\"tree-indent\"></span>");
+cc.push("<span class=\"tree-icon tree-file "+(row.iconCls?row.iconCls:"")+"\"></span>");
+}
+}
+cc.push("<span class=\"tree-title\">"+val+"</span>");
+}else{
+cc.push(val);
+}
+}
+cc.push("</div>");
+cc.push("</td>");
+}
+}
+return cc.join("");
+},refreshRow:function(_90b,id){
+this.updateRow.call(this,_90b,id,{});
+},updateRow:function(_90c,id,row){
+var opts=$.data(_90c,"treegrid").options;
+var _90d=$(_90c).treegrid("find",id);
+$.extend(_90d,row);
+var _90e=$(_90c).treegrid("getLevel",id)-1;
+var _90f=opts.rowStyler?opts.rowStyler.call(_90c,_90d):"";
+var _910=$.data(_90c,"datagrid").rowIdPrefix;
+var _911=_90d[opts.idField];
+function _912(_913){
+var _914=$(_90c).treegrid("getColumnFields",_913);
+var tr=opts.finder.getTr(_90c,id,"body",(_913?1:2));
+var _915=tr.find("div.datagrid-cell-rownumber").html();
+var _916=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked");
+tr.html(this.renderRow(_90c,_914,_913,_90e,_90d));
+tr.attr("style",_90f||"");
+tr.find("div.datagrid-cell-rownumber").html(_915);
+if(_916){
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
+}
+if(_911!=id){
+tr.attr("id",_910+"-"+(_913?1:2)+"-"+_911);
+tr.attr("node-id",_911);
+}
+};
+_912.call(this,true);
+_912.call(this,false);
+$(_90c).treegrid("fixRowHeight",id);
+},deleteRow:function(_917,id){
+var opts=$.data(_917,"treegrid").options;
+var tr=opts.finder.getTr(_917,id);
+tr.next("tr.treegrid-tr-tree").remove();
+tr.remove();
+var _918=del(id);
+if(_918){
+if(_918.children.length==0){
+tr=opts.finder.getTr(_917,_918[opts.idField]);
+tr.next("tr.treegrid-tr-tree").remove();
+var cell=tr.children("td[field=\""+opts.treeField+"\"]").children("div.datagrid-cell");
+cell.find(".tree-icon").removeClass("tree-folder").addClass("tree-file");
+cell.find(".tree-hit").remove();
+$("<span class=\"tree-indent\"></span>").prependTo(cell);
+}
+}
+function del(id){
+var cc;
+var _919=$(_917).treegrid("getParent",id);
+if(_919){
+cc=_919.children;
+}else{
+cc=$(_917).treegrid("getData");
+}
+for(var i=0;i<cc.length;i++){
+if(cc[i][opts.idField]==id){
+cc.splice(i,1);
+break;
+}
+}
+return _919;
+};
+},onBeforeRender:function(_91a,_91b,data){
+if($.isArray(_91b)){
+data={total:_91b.length,rows:_91b};
+_91b=null;
+}
+if(!data){
+return false;
+}
+var _91c=$.data(_91a,"treegrid");
+var opts=_91c.options;
+if(data.length==undefined){
+if(data.footer){
+_91c.footer=data.footer;
+}
+if(data.total){
+_91c.total=data.total;
+}
+data=this.transfer(_91a,_91b,data.rows);
+}else{
+function _91d(_91e,_91f){
+for(var i=0;i<_91e.length;i++){
+var row=_91e[i];
+row._parentId=_91f;
+if(row.children&&row.children.length){
+_91d(row.children,row[opts.idField]);
+}
+}
+};
+_91d(data,_91b);
+}
+var node=find(_91a,_91b);
+if(node){
+if(node.children){
+node.children=node.children.concat(data);
+}else{
+node.children=data;
+}
+}else{
+_91c.data=_91c.data.concat(data);
+}
+this.sort(_91a,data);
+this.treeNodes=data;
+this.treeLevel=$(_91a).treegrid("getLevel",_91b);
+},sort:function(_920,data){
+var opts=$.data(_920,"treegrid").options;
+if(!opts.remoteSort&&opts.sortName){
+var _921=opts.sortName.split(",");
+var _922=opts.sortOrder.split(",");
+_923(data);
+}
+function _923(rows){
+rows.sort(function(r1,r2){
+var r=0;
+for(var i=0;i<_921.length;i++){
+var sn=_921[i];
+var so=_922[i];
+var col=$(_920).treegrid("getColumnOption",sn);
+var _924=col.sorter||function(a,b){
+return a==b?0:(a>b?1:-1);
+};
+r=_924(r1[sn],r2[sn])*(so=="asc"?1:-1);
+if(r!=0){
+return r;
+}
+}
+return r;
+});
+for(var i=0;i<rows.length;i++){
+var _925=rows[i].children;
+if(_925&&_925.length){
+_923(_925);
+}
+}
+};
+},transfer:function(_926,_927,data){
+var opts=$.data(_926,"treegrid").options;
+var rows=[];
+for(var i=0;i<data.length;i++){
+rows.push(data[i]);
+}
+var _928=[];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+if(!_927){
+if(!row._parentId){
+_928.push(row);
+rows.splice(i,1);
+i--;
+}
+}else{
+if(row._parentId==_927){
+_928.push(row);
+rows.splice(i,1);
+i--;
+}
+}
+}
+var toDo=[];
+for(var i=0;i<_928.length;i++){
+toDo.push(_928[i]);
+}
+while(toDo.length){
+var node=toDo.shift();
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+if(row._parentId==node[opts.idField]){
+if(node.children){
+node.children.push(row);
+}else{
+node.children=[row];
+}
+toDo.push(row);
+rows.splice(i,1);
+i--;
+}
+}
+}
+return _928;
+}});
+$.fn.treegrid.defaults=$.extend({},$.fn.datagrid.defaults,{treeField:null,lines:false,animate:false,singleSelect:true,view:_8ec,rowEvents:$.extend({},$.fn.datagrid.defaults.rowEvents,{mouseover:_87d(true),mouseout:_87d(false),click:_87f}),loader:function(_929,_92a,_92b){
+var opts=$(this).treegrid("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_929,dataType:"json",success:function(data){
+_92a(data);
+},error:function(){
+_92b.apply(this,arguments);
+}});
+},loadFilter:function(data,_92c){
+return data;
+},finder:{getTr:function(_92d,id,type,_92e){
+type=type||"body";
+_92e=_92e||0;
+var dc=$.data(_92d,"datagrid").dc;
+if(_92e==0){
+var opts=$.data(_92d,"treegrid").options;
+var tr1=opts.finder.getTr(_92d,id,type,1);
+var tr2=opts.finder.getTr(_92d,id,type,2);
+return tr1.add(tr2);
+}else{
+if(type=="body"){
+var tr=$("#"+$.data(_92d,"datagrid").rowIdPrefix+"-"+_92e+"-"+id);
+if(!tr.length){
+tr=(_92e==1?dc.body1:dc.body2).find("tr[node-id=\""+id+"\"]");
+}
+return tr;
+}else{
+if(type=="footer"){
+return (_92e==1?dc.footer1:dc.footer2).find("tr[node-id=\""+id+"\"]");
+}else{
+if(type=="selected"){
+return (_92e==1?dc.body1:dc.body2).find("tr.datagrid-row-selected");
+}else{
+if(type=="highlight"){
+return (_92e==1?dc.body1:dc.body2).find("tr.datagrid-row-over");
+}else{
+if(type=="checked"){
+return (_92e==1?dc.body1:dc.body2).find("tr.datagrid-row-checked");
+}else{
+if(type=="last"){
+return (_92e==1?dc.body1:dc.body2).find("tr:last[node-id]");
+}else{
+if(type=="allbody"){
+return (_92e==1?dc.body1:dc.body2).find("tr[node-id]");
+}else{
+if(type=="allfooter"){
+return (_92e==1?dc.footer1:dc.footer2).find("tr[node-id]");
+}
+}
+}
+}
+}
+}
+}
+}
+}
+},getRow:function(_92f,p){
+var id=(typeof p=="object")?p.attr("node-id"):p;
+return $(_92f).treegrid("find",id);
+},getRows:function(_930){
+return $(_930).treegrid("getChildren");
+}},onBeforeLoad:function(row,_931){
+},onLoadSuccess:function(row,data){
+},onLoadError:function(){
+},onBeforeCollapse:function(row){
+},onCollapse:function(row){
+},onBeforeExpand:function(row){
+},onExpand:function(row){
+},onClickRow:function(row){
+},onDblClickRow:function(row){
+},onClickCell:function(_932,row){
+},onDblClickCell:function(_933,row){
+},onContextMenu:function(e,row){
+},onBeforeEdit:function(row){
+},onAfterEdit:function(row,_934){
+},onCancelEdit:function(row){
+}});
+})(jQuery);
+(function($){
+function _935(_936){
+var opts=$.data(_936,"datalist").options;
+$(_936).datagrid($.extend({},opts,{cls:"datalist"+(opts.lines?" datalist-lines":""),frozenColumns:(opts.frozenColumns&&opts.frozenColumns.length)?opts.frozenColumns:(opts.checkbox?[[{field:"_ck",checkbox:true}]]:undefined),columns:(opts.columns&&opts.columns.length)?opts.columns:[[{field:opts.textField,width:"100%",formatter:function(_937,row,_938){
+return opts.textFormatter?opts.textFormatter(_937,row,_938):_937;
+}}]]}));
+};
+var _939=$.extend({},$.fn.datagrid.defaults.view,{render:function(_93a,_93b,_93c){
+var _93d=$.data(_93a,"datagrid");
+var opts=_93d.options;
+if(opts.groupField){
+var g=this.groupRows(_93a,_93d.data.rows);
+this.groups=g.groups;
+_93d.data.rows=g.rows;
+var _93e=[];
+for(var i=0;i<g.groups.length;i++){
+_93e.push(this.renderGroup.call(this,_93a,i,g.groups[i],_93c));
+}
+$(_93b).html(_93e.join(""));
+}else{
+$(_93b).html(this.renderTable(_93a,0,_93d.data.rows,_93c));
+}
+},renderGroup:function(_93f,_940,_941,_942){
+var _943=$.data(_93f,"datagrid");
+var opts=_943.options;
+var _944=$(_93f).datagrid("getColumnFields",_942);
+var _945=[];
+_945.push("<div class=\"datagrid-group\" group-index="+_940+">");
+if(!_942){
+_945.push("<span class=\"datagrid-group-title\">");
+_945.push(opts.groupFormatter.call(_93f,_941.value,_941.rows));
+_945.push("</span>");
+}
+_945.push("</div>");
+_945.push(this.renderTable(_93f,_941.startIndex,_941.rows,_942));
+return _945.join("");
+},groupRows:function(_946,rows){
+var _947=$.data(_946,"datagrid");
+var opts=_947.options;
+var _948=[];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var _949=_94a(row[opts.groupField]);
+if(!_949){
+_949={value:row[opts.groupField],rows:[row]};
+_948.push(_949);
+}else{
+_949.rows.push(row);
+}
+}
+var _94b=0;
+var rows=[];
+for(var i=0;i<_948.length;i++){
+var _949=_948[i];
+_949.startIndex=_94b;
+_94b+=_949.rows.length;
+rows=rows.concat(_949.rows);
+}
+return {groups:_948,rows:rows};
+function _94a(_94c){
+for(var i=0;i<_948.length;i++){
+var _94d=_948[i];
+if(_94d.value==_94c){
+return _94d;
+}
+}
+return null;
+};
+}});
+$.fn.datalist=function(_94e,_94f){
+if(typeof _94e=="string"){
+var _950=$.fn.datalist.methods[_94e];
+if(_950){
+return _950(this,_94f);
+}else{
+return this.datagrid(_94e,_94f);
+}
+}
+_94e=_94e||{};
+return this.each(function(){
+var _951=$.data(this,"datalist");
+if(_951){
+$.extend(_951.options,_94e);
+}else{
+var opts=$.extend({},$.fn.datalist.defaults,$.fn.datalist.parseOptions(this),_94e);
+opts.columns=$.extend(true,[],opts.columns);
+_951=$.data(this,"datalist",{options:opts});
+}
+_935(this);
+if(!_951.options.data){
+var data=$.fn.datalist.parseData(this);
+if(data.total){
+$(this).datalist("loadData",data);
+}
+}
+});
+};
+$.fn.datalist.methods={options:function(jq){
+return $.data(jq[0],"datalist").options;
+}};
+$.fn.datalist.parseOptions=function(_952){
+return $.extend({},$.fn.datagrid.parseOptions(_952),$.parser.parseOptions(_952,["valueField","textField","groupField",{checkbox:"boolean",lines:"boolean"}]));
+};
+$.fn.datalist.parseData=function(_953){
+var opts=$.data(_953,"datalist").options;
+var data={total:0,rows:[]};
+$(_953).children().each(function(){
+var _954=$.parser.parseOptions(this,["value","group"]);
+var row={};
+var html=$(this).html();
+row[opts.valueField]=_954.value!=undefined?_954.value:html;
+row[opts.textField]=html;
+if(opts.groupField){
+row[opts.groupField]=_954.group;
+}
+data.total++;
+data.rows.push(row);
+});
+return data;
+};
+$.fn.datalist.defaults=$.extend({},$.fn.datagrid.defaults,{fitColumns:true,singleSelect:true,showHeader:false,checkbox:false,lines:false,valueField:"value",textField:"text",groupField:"",view:_939,textFormatter:function(_955,row){
+return _955;
+},groupFormatter:function(_956,rows){
+return _956;
+}});
+})(jQuery);
+(function($){
+$(function(){
+$(document).unbind(".combo").bind("mousedown.combo mousewheel.combo",function(e){
+var p=$(e.target).closest("span.combo,div.combo-p,div.menu");
+if(p.length){
+_957(p);
+return;
+}
+$("body>div.combo-p>div.combo-panel:visible").panel("close");
+});
+});
+function _958(_959){
+var _95a=$.data(_959,"combo");
+var opts=_95a.options;
+if(!_95a.panel){
+_95a.panel=$("<div class=\"combo-panel\"></div>").appendTo("body");
+_95a.panel.panel({minWidth:opts.panelMinWidth,maxWidth:opts.panelMaxWidth,minHeight:opts.panelMinHeight,maxHeight:opts.panelMaxHeight,doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){
+var _95b=$(this).panel("options").comboTarget;
+var _95c=$.data(_95b,"combo");
+if(_95c){
+_95c.options.onShowPanel.call(_95b);
+}
+},onBeforeClose:function(){
+_957(this);
+},onClose:function(){
+var _95d=$(this).panel("options").comboTarget;
+var _95e=$(_95d).data("combo");
+if(_95e){
+_95e.options.onHidePanel.call(_95d);
+}
+}});
+}
+var _95f=$.extend(true,[],opts.icons);
+if(opts.hasDownArrow){
+_95f.push({iconCls:"combo-arrow",handler:function(e){
+_963(e.data.target);
+}});
+}
+$(_959).addClass("combo-f").textbox($.extend({},opts,{icons:_95f,onChange:function(){
+}}));
+$(_959).attr("comboName",$(_959).attr("textboxName"));
+_95a.combo=$(_959).next();
+_95a.combo.addClass("combo");
+};
+function _960(_961){
+var _962=$.data(_961,"combo");
+var opts=_962.options;
+var p=_962.panel;
+if(p.is(":visible")){
+p.panel("close");
+}
+if(!opts.cloned){
+p.panel("destroy");
+}
+$(_961).textbox("destroy");
+};
+function _963(_964){
+var _965=$.data(_964,"combo").panel;
+if(_965.is(":visible")){
+_966(_964);
+}else{
+var p=$(_964).closest("div.combo-panel");
+$("div.combo-panel:visible").not(_965).not(p).panel("close");
+$(_964).combo("showPanel");
+}
+$(_964).combo("textbox").focus();
+};
+function _957(_967){
+$(_967).find(".combo-f").each(function(){
+var p=$(this).combo("panel");
+if(p.is(":visible")){
+p.panel("close");
+}
+});
+};
+function _968(e){
+var _969=e.data.target;
+var _96a=$.data(_969,"combo");
+var opts=_96a.options;
+var _96b=_96a.panel;
+if(!opts.editable){
+_963(_969);
+}else{
+var p=$(_969).closest("div.combo-panel");
+$("div.combo-panel:visible").not(_96b).not(p).panel("close");
+}
+};
+function _96c(e){
+var _96d=e.data.target;
+var t=$(_96d);
+var _96e=t.data("combo");
+var opts=t.combo("options");
+switch(e.keyCode){
+case 38:
+opts.keyHandler.up.call(_96d,e);
+break;
+case 40:
+opts.keyHandler.down.call(_96d,e);
+break;
+case 37:
+opts.keyHandler.left.call(_96d,e);
+break;
+case 39:
+opts.keyHandler.right.call(_96d,e);
+break;
+case 13:
+e.preventDefault();
+opts.keyHandler.enter.call(_96d,e);
+return false;
+case 9:
+case 27:
+_966(_96d);
+break;
+default:
+if(opts.editable){
+if(_96e.timer){
+clearTimeout(_96e.timer);
+}
+_96e.timer=setTimeout(function(){
+var q=t.combo("getText");
+if(_96e.previousText!=q){
+_96e.previousText=q;
+t.combo("showPanel");
+opts.keyHandler.query.call(_96d,q,e);
+t.combo("validate");
+}
+},opts.delay);
+}
+}
+};
+function _96f(_970){
+var _971=$.data(_970,"combo");
+var _972=_971.combo;
+var _973=_971.panel;
+var opts=$(_970).combo("options");
+var _974=_973.panel("options");
+_974.comboTarget=_970;
+if(_974.closed){
+_973.panel("panel").show().css({zIndex:($.fn.menu?$.fn.menu.defaults.zIndex++:($.fn.window?$.fn.window.defaults.zIndex++:99)),left:-999999});
+_973.panel("resize",{width:(opts.panelWidth?opts.panelWidth:_972._outerWidth()),height:opts.panelHeight});
+_973.panel("panel").hide();
+_973.panel("open");
+}
+(function(){
+if(_973.is(":visible")){
+_973.panel("move",{left:_975(),top:_976()});
+setTimeout(arguments.callee,200);
+}
+})();
+function _975(){
+var left=_972.offset().left;
+if(opts.panelAlign=="right"){
+left+=_972._outerWidth()-_973._outerWidth();
+}
+if(left+_973._outerWidth()>$(window)._outerWidth()+$(document).scrollLeft()){
+left=$(window)._outerWidth()+$(document).scrollLeft()-_973._outerWidth();
+}
+if(left<0){
+left=0;
+}
+return left;
+};
+function _976(){
+var top=_972.offset().top+_972._outerHeight();
+if(top+_973._outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
+top=_972.offset().top-_973._outerHeight();
+}
+if(top<$(document).scrollTop()){
+top=_972.offset().top+_972._outerHeight();
+}
+return top;
+};
+};
+function _966(_977){
+var _978=$.data(_977,"combo").panel;
+_978.panel("close");
+};
+function _979(_97a,text){
+var _97b=$.data(_97a,"combo");
+var _97c=$(_97a).textbox("getText");
+if(_97c!=text){
+$(_97a).textbox("setText",text);
+_97b.previousText=text;
+}
+};
+function _97d(_97e){
+var _97f=[];
+var _980=$.data(_97e,"combo").combo;
+_980.find(".textbox-value").each(function(){
+_97f.push($(this).val());
+});
+return _97f;
+};
+function _981(_982,_983){
+var _984=$.data(_982,"combo");
+var opts=_984.options;
+var _985=_984.combo;
+if(!$.isArray(_983)){
+_983=_983.split(opts.separator);
+}
+var _986=_97d(_982);
+_985.find(".textbox-value").remove();
+var name=$(_982).attr("textboxName")||"";
+for(var i=0;i<_983.length;i++){
+var _987=$("<input type=\"hidden\" class=\"textbox-value\">").appendTo(_985);
+_987.attr("name",name);
+if(opts.disabled){
+_987.attr("disabled","disabled");
+}
+_987.val(_983[i]);
+}
+var _988=(function(){
+if(_986.length!=_983.length){
+return true;
+}
+var a1=$.extend(true,[],_986);
+var a2=$.extend(true,[],_983);
+a1.sort();
+a2.sort();
+for(var i=0;i<a1.length;i++){
+if(a1[i]!=a2[i]){
+return true;
+}
+}
+return false;
+})();
+if(_988){
+if(opts.multiple){
+opts.onChange.call(_982,_983,_986);
+}else{
+opts.onChange.call(_982,_983[0],_986[0]);
+}
+$(_982).closest("form").trigger("_change",[_982]);
+}
+};
+function _989(_98a){
+var _98b=_97d(_98a);
+return _98b[0];
+};
+function _98c(_98d,_98e){
+_981(_98d,[_98e]);
+};
+function _98f(_990){
+var opts=$.data(_990,"combo").options;
+var _991=opts.onChange;
+opts.onChange=function(){
+};
+if(opts.multiple){
+_981(_990,opts.value?opts.value:[]);
+}else{
+_98c(_990,opts.value);
+}
+opts.onChange=_991;
+};
+$.fn.combo=function(_992,_993){
+if(typeof _992=="string"){
+var _994=$.fn.combo.methods[_992];
+if(_994){
+return _994(this,_993);
+}else{
+return this.textbox(_992,_993);
+}
+}
+_992=_992||{};
+return this.each(function(){
+var _995=$.data(this,"combo");
+if(_995){
+$.extend(_995.options,_992);
+if(_992.value!=undefined){
+_995.options.originalValue=_992.value;
+}
+}else{
+_995=$.data(this,"combo",{options:$.extend({},$.fn.combo.defaults,$.fn.combo.parseOptions(this),_992),previousText:""});
+_995.options.originalValue=_995.options.value;
+}
+_958(this);
+_98f(this);
+});
+};
+$.fn.combo.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"combo").options,{width:opts.width,height:opts.height,disabled:opts.disabled,readonly:opts.readonly});
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+$(this).textbox("cloneFrom",from);
+$.data(this,"combo",{options:$.extend(true,{cloned:true},$(from).combo("options")),combo:$(this).next(),panel:$(from).combo("panel")});
+$(this).addClass("combo-f").attr("comboName",$(this).attr("textboxName"));
+});
+},panel:function(jq){
+return $.data(jq[0],"combo").panel;
+},destroy:function(jq){
+return jq.each(function(){
+_960(this);
+});
+},showPanel:function(jq){
+return jq.each(function(){
+_96f(this);
+});
+},hidePanel:function(jq){
+return jq.each(function(){
+_966(this);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("setText","");
+var opts=$.data(this,"combo").options;
+if(opts.multiple){
+$(this).combo("setValues",[]);
+}else{
+$(this).combo("setValue","");
+}
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$.data(this,"combo").options;
+if(opts.multiple){
+$(this).combo("setValues",opts.originalValue);
+}else{
+$(this).combo("setValue",opts.originalValue);
+}
+});
+},setText:function(jq,text){
+return jq.each(function(){
+_979(this,text);
+});
+},getValues:function(jq){
+return _97d(jq[0]);
+},setValues:function(jq,_996){
+return jq.each(function(){
+_981(this,_996);
+});
+},getValue:function(jq){
+return _989(jq[0]);
+},setValue:function(jq,_997){
+return jq.each(function(){
+_98c(this,_997);
+});
+}};
+$.fn.combo.parseOptions=function(_998){
+var t=$(_998);
+return $.extend({},$.fn.textbox.parseOptions(_998),$.parser.parseOptions(_998,["separator","panelAlign",{panelWidth:"number",hasDownArrow:"boolean",delay:"number",selectOnNavigation:"boolean"},{panelMinWidth:"number",panelMaxWidth:"number",panelMinHeight:"number",panelMaxHeight:"number"}]),{panelHeight:(t.attr("panelHeight")=="auto"?"auto":parseInt(t.attr("panelHeight"))||undefined),multiple:(t.attr("multiple")?true:undefined)});
+};
+$.fn.combo.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{click:_968,keydown:_96c,paste:_96c,drop:_96c},panelWidth:null,panelHeight:200,panelMinWidth:null,panelMaxWidth:null,panelMinHeight:null,panelMaxHeight:null,panelAlign:"left",multiple:false,selectOnNavigation:true,separator:",",hasDownArrow:true,delay:200,keyHandler:{up:function(e){
+},down:function(e){
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+},query:function(q,e){
+}},onShowPanel:function(){
+},onHidePanel:function(){
+},onChange:function(_999,_99a){
+}});
+})(jQuery);
+(function($){
+var _99b=0;
+function _99c(_99d,_99e){
+var _99f=$.data(_99d,"combobox");
+var opts=_99f.options;
+var data=_99f.data;
+for(var i=0;i<data.length;i++){
+if(data[i][opts.valueField]==_99e){
+return i;
+}
+}
+return -1;
+};
+function _9a0(_9a1,_9a2){
+var opts=$.data(_9a1,"combobox").options;
+var _9a3=$(_9a1).combo("panel");
+var item=opts.finder.getEl(_9a1,_9a2);
+if(item.length){
+if(item.position().top<=0){
+var h=_9a3.scrollTop()+item.position().top;
+_9a3.scrollTop(h);
+}else{
+if(item.position().top+item.outerHeight()>_9a3.height()){
+var h=_9a3.scrollTop()+item.position().top+item.outerHeight()-_9a3.height();
+_9a3.scrollTop(h);
+}
+}
+}
+};
+function nav(_9a4,dir){
+var opts=$.data(_9a4,"combobox").options;
+var _9a5=$(_9a4).combobox("panel");
+var item=_9a5.children("div.combobox-item-hover");
+if(!item.length){
+item=_9a5.children("div.combobox-item-selected");
+}
+item.removeClass("combobox-item-hover");
+var _9a6="div.combobox-item:visible:not(.combobox-item-disabled):first";
+var _9a7="div.combobox-item:visible:not(.combobox-item-disabled):last";
+if(!item.length){
+item=_9a5.children(dir=="next"?_9a6:_9a7);
+}else{
+if(dir=="next"){
+item=item.nextAll(_9a6);
+if(!item.length){
+item=_9a5.children(_9a6);
+}
+}else{
+item=item.prevAll(_9a6);
+if(!item.length){
+item=_9a5.children(_9a7);
+}
+}
+}
+if(item.length){
+item.addClass("combobox-item-hover");
+var row=opts.finder.getRow(_9a4,item);
+if(row){
+_9a0(_9a4,row[opts.valueField]);
+if(opts.selectOnNavigation){
+_9a8(_9a4,row[opts.valueField]);
+}
+}
+}
+};
+function _9a8(_9a9,_9aa){
+var opts=$.data(_9a9,"combobox").options;
+var _9ab=$(_9a9).combo("getValues");
+if($.inArray(_9aa+"",_9ab)==-1){
+if(opts.multiple){
+_9ab.push(_9aa);
+}else{
+_9ab=[_9aa];
+}
+_9ac(_9a9,_9ab);
+opts.onSelect.call(_9a9,opts.finder.getRow(_9a9,_9aa));
+}
+};
+function _9ad(_9ae,_9af){
+var opts=$.data(_9ae,"combobox").options;
+var _9b0=$(_9ae).combo("getValues");
+var _9b1=$.inArray(_9af+"",_9b0);
+if(_9b1>=0){
+_9b0.splice(_9b1,1);
+_9ac(_9ae,_9b0);
+opts.onUnselect.call(_9ae,opts.finder.getRow(_9ae,_9af));
+}
+};
+function _9ac(_9b2,_9b3,_9b4){
+var opts=$.data(_9b2,"combobox").options;
+var _9b5=$(_9b2).combo("panel");
+if(!$.isArray(_9b3)){
+_9b3=_9b3.split(opts.separator);
+}
+_9b5.find("div.combobox-item-selected").removeClass("combobox-item-selected");
+var vv=[],ss=[];
+for(var i=0;i<_9b3.length;i++){
+var v=_9b3[i];
+var s=v;
+opts.finder.getEl(_9b2,v).addClass("combobox-item-selected");
+var row=opts.finder.getRow(_9b2,v);
+if(row){
+s=row[opts.textField];
+}
+vv.push(v);
+ss.push(s);
+}
+if(!_9b4){
+$(_9b2).combo("setText",ss.join(opts.separator));
+}
+$(_9b2).combo("setValues",vv);
+};
+function _9b6(_9b7,data,_9b8){
+var _9b9=$.data(_9b7,"combobox");
+var opts=_9b9.options;
+_9b9.data=opts.loadFilter.call(_9b7,data);
+_9b9.groups=[];
+data=_9b9.data;
+var _9ba=$(_9b7).combobox("getValues");
+var dd=[];
+var _9bb=undefined;
+for(var i=0;i<data.length;i++){
+var row=data[i];
+var v=row[opts.valueField]+"";
+var s=row[opts.textField];
+var g=row[opts.groupField];
+if(g){
+if(_9bb!=g){
+_9bb=g;
+_9b9.groups.push(g);
+dd.push("<div id=\""+(_9b9.groupIdPrefix+"_"+(_9b9.groups.length-1))+"\" class=\"combobox-group\">");
+dd.push(opts.groupFormatter?opts.groupFormatter.call(_9b7,g):g);
+dd.push("</div>");
+}
+}else{
+_9bb=undefined;
+}
+var cls="combobox-item"+(row.disabled?" combobox-item-disabled":"")+(g?" combobox-gitem":"");
+dd.push("<div id=\""+(_9b9.itemIdPrefix+"_"+i)+"\" class=\""+cls+"\">");
+dd.push(opts.formatter?opts.formatter.call(_9b7,row):s);
+dd.push("</div>");
+if(row["selected"]&&$.inArray(v,_9ba)==-1){
+_9ba.push(v);
+}
+}
+$(_9b7).combo("panel").html(dd.join(""));
+if(opts.multiple){
+_9ac(_9b7,_9ba,_9b8);
+}else{
+_9ac(_9b7,_9ba.length?[_9ba[_9ba.length-1]]:[],_9b8);
+}
+opts.onLoadSuccess.call(_9b7,data);
+};
+function _9bc(_9bd,url,_9be,_9bf){
+var opts=$.data(_9bd,"combobox").options;
+if(url){
+opts.url=url;
+}
+_9be=$.extend({},opts.queryParams,_9be||{});
+if(opts.onBeforeLoad.call(_9bd,_9be)==false){
+return;
+}
+opts.loader.call(_9bd,_9be,function(data){
+_9b6(_9bd,data,_9bf);
+},function(){
+opts.onLoadError.apply(this,arguments);
+});
+};
+function _9c0(_9c1,q){
+var _9c2=$.data(_9c1,"combobox");
+var opts=_9c2.options;
+var qq=opts.multiple?q.split(opts.separator):[q];
+if(opts.mode=="remote"){
+_9c3(qq);
+_9bc(_9c1,null,{q:q},true);
+}else{
+var _9c4=$(_9c1).combo("panel");
+_9c4.find("div.combobox-item-selected,div.combobox-item-hover").removeClass("combobox-item-selected combobox-item-hover");
+_9c4.find("div.combobox-item,div.combobox-group").hide();
+var data=_9c2.data;
+var vv=[];
+$.map(qq,function(q){
+q=$.trim(q);
+var _9c5=q;
+var _9c6=undefined;
+for(var i=0;i<data.length;i++){
+var row=data[i];
+if(opts.filter.call(_9c1,q,row)){
+var v=row[opts.valueField];
+var s=row[opts.textField];
+var g=row[opts.groupField];
+var item=opts.finder.getEl(_9c1,v).show();
+if(s.toLowerCase()==q.toLowerCase()){
+_9c5=v;
+item.addClass("combobox-item-selected");
+opts.onSelect.call(_9c1,row);
+}
+if(opts.groupField&&_9c6!=g){
+$("#"+_9c2.groupIdPrefix+"_"+$.inArray(g,_9c2.groups)).show();
+_9c6=g;
+}
+}
+}
+vv.push(_9c5);
+});
+_9c3(vv);
+}
+function _9c3(vv){
+_9ac(_9c1,opts.multiple?(q?vv:[]):vv,true);
+};
+};
+function _9c7(_9c8){
+var t=$(_9c8);
+var opts=t.combobox("options");
+var _9c9=t.combobox("panel");
+var item=_9c9.children("div.combobox-item-hover");
+if(item.length){
+var row=opts.finder.getRow(_9c8,item);
+var _9ca=row[opts.valueField];
+if(opts.multiple){
+if(item.hasClass("combobox-item-selected")){
+t.combobox("unselect",_9ca);
+}else{
+t.combobox("select",_9ca);
+}
+}else{
+t.combobox("select",_9ca);
+}
+}
+var vv=[];
+$.map(t.combobox("getValues"),function(v){
+if(_99c(_9c8,v)>=0){
+vv.push(v);
+}
+});
+t.combobox("setValues",vv);
+if(!opts.multiple){
+t.combobox("hidePanel");
+}
+};
+function _9cb(_9cc){
+var _9cd=$.data(_9cc,"combobox");
+var opts=_9cd.options;
+_99b++;
+_9cd.itemIdPrefix="_easyui_combobox_i"+_99b;
+_9cd.groupIdPrefix="_easyui_combobox_g"+_99b;
+$(_9cc).addClass("combobox-f");
+$(_9cc).combo($.extend({},opts,{onShowPanel:function(){
+$(_9cc).combo("panel").find("div.combobox-item:hidden,div.combobox-group:hidden").show();
+_9a0(_9cc,$(_9cc).combobox("getValue"));
+opts.onShowPanel.call(_9cc);
+}}));
+$(_9cc).combo("panel").unbind().bind("mouseover",function(e){
+$(this).children("div.combobox-item-hover").removeClass("combobox-item-hover");
+var item=$(e.target).closest("div.combobox-item");
+if(!item.hasClass("combobox-item-disabled")){
+item.addClass("combobox-item-hover");
+}
+e.stopPropagation();
+}).bind("mouseout",function(e){
+$(e.target).closest("div.combobox-item").removeClass("combobox-item-hover");
+e.stopPropagation();
+}).bind("click",function(e){
+var item=$(e.target).closest("div.combobox-item");
+if(!item.length||item.hasClass("combobox-item-disabled")){
+return;
+}
+var row=opts.finder.getRow(_9cc,item);
+if(!row){
+return;
+}
+var _9ce=row[opts.valueField];
+if(opts.multiple){
+if(item.hasClass("combobox-item-selected")){
+_9ad(_9cc,_9ce);
+}else{
+_9a8(_9cc,_9ce);
+}
+}else{
+_9a8(_9cc,_9ce);
+$(_9cc).combo("hidePanel");
+}
+e.stopPropagation();
+});
+};
+$.fn.combobox=function(_9cf,_9d0){
+if(typeof _9cf=="string"){
+var _9d1=$.fn.combobox.methods[_9cf];
+if(_9d1){
+return _9d1(this,_9d0);
+}else{
+return this.combo(_9cf,_9d0);
+}
+}
+_9cf=_9cf||{};
+return this.each(function(){
+var _9d2=$.data(this,"combobox");
+if(_9d2){
+$.extend(_9d2.options,_9cf);
+}else{
+_9d2=$.data(this,"combobox",{options:$.extend({},$.fn.combobox.defaults,$.fn.combobox.parseOptions(this),_9cf),data:[]});
+}
+_9cb(this);
+if(_9d2.options.data){
+_9b6(this,_9d2.options.data);
+}else{
+var data=$.fn.combobox.parseData(this);
+if(data.length){
+_9b6(this,data);
+}
+}
+_9bc(this);
+});
+};
+$.fn.combobox.methods={options:function(jq){
+var _9d3=jq.combo("options");
+return $.extend($.data(jq[0],"combobox").options,{width:_9d3.width,height:_9d3.height,originalValue:_9d3.originalValue,disabled:_9d3.disabled,readonly:_9d3.readonly});
+},getData:function(jq){
+return $.data(jq[0],"combobox").data;
+},setValues:function(jq,_9d4){
+return jq.each(function(){
+_9ac(this,_9d4);
+});
+},setValue:function(jq,_9d5){
+return jq.each(function(){
+_9ac(this,[_9d5]);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).combo("clear");
+var _9d6=$(this).combo("panel");
+_9d6.find("div.combobox-item-selected").removeClass("combobox-item-selected");
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).combobox("options");
+if(opts.multiple){
+$(this).combobox("setValues",opts.originalValue);
+}else{
+$(this).combobox("setValue",opts.originalValue);
+}
+});
+},loadData:function(jq,data){
+return jq.each(function(){
+_9b6(this,data);
+});
+},reload:function(jq,url){
+return jq.each(function(){
+if(typeof url=="string"){
+_9bc(this,url);
+}else{
+if(url){
+var opts=$(this).combobox("options");
+opts.queryParams=url;
+}
+_9bc(this);
+}
+});
+},select:function(jq,_9d7){
+return jq.each(function(){
+_9a8(this,_9d7);
+});
+},unselect:function(jq,_9d8){
+return jq.each(function(){
+_9ad(this,_9d8);
+});
+}};
+$.fn.combobox.parseOptions=function(_9d9){
+var t=$(_9d9);
+return $.extend({},$.fn.combo.parseOptions(_9d9),$.parser.parseOptions(_9d9,["valueField","textField","groupField","mode","method","url"]));
+};
+$.fn.combobox.parseData=function(_9da){
+var data=[];
+var opts=$(_9da).combobox("options");
+$(_9da).children().each(function(){
+if(this.tagName.toLowerCase()=="optgroup"){
+var _9db=$(this).attr("label");
+$(this).children().each(function(){
+_9dc(this,_9db);
+});
+}else{
+_9dc(this);
+}
+});
+return data;
+function _9dc(el,_9dd){
+var t=$(el);
+var row={};
+row[opts.valueField]=t.attr("value")!=undefined?t.attr("value"):t.text();
+row[opts.textField]=t.text();
+row["selected"]=t.is(":selected");
+row["disabled"]=t.is(":disabled");
+if(_9dd){
+opts.groupField=opts.groupField||"group";
+row[opts.groupField]=_9dd;
+}
+data.push(row);
+};
+};
+$.fn.combobox.defaults=$.extend({},$.fn.combo.defaults,{valueField:"value",textField:"text",groupField:null,groupFormatter:function(_9de){
+return _9de;
+},mode:"local",method:"post",url:null,data:null,queryParams:{},keyHandler:{up:function(e){
+nav(this,"prev");
+e.preventDefault();
+},down:function(e){
+nav(this,"next");
+e.preventDefault();
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_9c7(this);
+},query:function(q,e){
+_9c0(this,q);
+}},filter:function(q,row){
+var opts=$(this).combobox("options");
+return row[opts.textField].toLowerCase().indexOf(q.toLowerCase())==0;
+},formatter:function(row){
+var opts=$(this).combobox("options");
+return row[opts.textField];
+},loader:function(_9df,_9e0,_9e1){
+var opts=$(this).combobox("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_9df,dataType:"json",success:function(data){
+_9e0(data);
+},error:function(){
+_9e1.apply(this,arguments);
+}});
+},loadFilter:function(data){
+return data;
+},finder:{getEl:function(_9e2,_9e3){
+var _9e4=_99c(_9e2,_9e3);
+var id=$.data(_9e2,"combobox").itemIdPrefix+"_"+_9e4;
+return $("#"+id);
+},getRow:function(_9e5,p){
+var _9e6=$.data(_9e5,"combobox");
+var _9e7=(p instanceof jQuery)?p.attr("id").substr(_9e6.itemIdPrefix.length+1):_99c(_9e5,p);
+return _9e6.data[parseInt(_9e7)];
+}},onBeforeLoad:function(_9e8){
+},onLoadSuccess:function(){
+},onLoadError:function(){
+},onSelect:function(_9e9){
+},onUnselect:function(_9ea){
+}});
+})(jQuery);
+(function($){
+function _9eb(_9ec){
+var _9ed=$.data(_9ec,"combotree");
+var opts=_9ed.options;
+var tree=_9ed.tree;
+$(_9ec).addClass("combotree-f");
+$(_9ec).combo(opts);
+var _9ee=$(_9ec).combo("panel");
+if(!tree){
+tree=$("<ul></ul>").appendTo(_9ee);
+$.data(_9ec,"combotree").tree=tree;
+}
+tree.tree($.extend({},opts,{checkbox:opts.multiple,onLoadSuccess:function(node,data){
+var _9ef=$(_9ec).combotree("getValues");
+if(opts.multiple){
+var _9f0=tree.tree("getChecked");
+for(var i=0;i<_9f0.length;i++){
+var id=_9f0[i].id;
+(function(){
+for(var i=0;i<_9ef.length;i++){
+if(id==_9ef[i]){
+return;
+}
+}
+_9ef.push(id);
+})();
+}
+}
+$(_9ec).combotree("setValues",_9ef);
+opts.onLoadSuccess.call(this,node,data);
+},onClick:function(node){
+if(opts.multiple){
+$(this).tree(node.checked?"uncheck":"check",node.target);
+}else{
+$(_9ec).combo("hidePanel");
+}
+_9f2(_9ec);
+opts.onClick.call(this,node);
+},onCheck:function(node,_9f1){
+_9f2(_9ec);
+opts.onCheck.call(this,node,_9f1);
+}}));
+};
+function _9f2(_9f3){
+var _9f4=$.data(_9f3,"combotree");
+var opts=_9f4.options;
+var tree=_9f4.tree;
+var vv=[],ss=[];
+if(opts.multiple){
+var _9f5=tree.tree("getChecked");
+for(var i=0;i<_9f5.length;i++){
+vv.push(_9f5[i].id);
+ss.push(_9f5[i].text);
+}
+}else{
+var node=tree.tree("getSelected");
+if(node){
+vv.push(node.id);
+ss.push(node.text);
+}
+}
+$(_9f3).combo("setText",ss.join(opts.separator)).combo("setValues",opts.multiple?vv:(vv.length?vv:[""]));
+};
+function _9f6(_9f7,_9f8){
+var _9f9=$.data(_9f7,"combotree");
+var opts=_9f9.options;
+var tree=_9f9.tree;
+var _9fa=tree.tree("options");
+var _9fb=_9fa.onCheck;
+var _9fc=_9fa.onSelect;
+_9fa.onCheck=_9fa.onSelect=function(){
+};
+tree.find("span.tree-checkbox").addClass("tree-checkbox0").removeClass("tree-checkbox1 tree-checkbox2");
+if(!$.isArray(_9f8)){
+_9f8=_9f8.split(opts.separator);
+}
+var vv=$.map(_9f8,function(_9fd){
+return String(_9fd);
+});
+var ss=[];
+$.map(vv,function(v){
+var node=tree.tree("find",v);
+if(node){
+tree.tree("check",node.target).tree("select",node.target);
+ss.push(node.text);
+}else{
+ss.push(v);
+}
+});
+if(opts.multiple){
+var _9fe=tree.tree("getChecked");
+$.map(_9fe,function(node){
+var id=String(node.id);
+if($.inArray(id,vv)==-1){
+vv.push(id);
+ss.push(node.text);
+}
+});
+}
+_9fa.onCheck=_9fb;
+_9fa.onSelect=_9fc;
+$(_9f7).combo("setText",ss.join(opts.separator)).combo("setValues",opts.multiple?vv:(vv.length?vv:[""]));
+};
+$.fn.combotree=function(_9ff,_a00){
+if(typeof _9ff=="string"){
+var _a01=$.fn.combotree.methods[_9ff];
+if(_a01){
+return _a01(this,_a00);
+}else{
+return this.combo(_9ff,_a00);
+}
+}
+_9ff=_9ff||{};
+return this.each(function(){
+var _a02=$.data(this,"combotree");
+if(_a02){
+$.extend(_a02.options,_9ff);
+}else{
+$.data(this,"combotree",{options:$.extend({},$.fn.combotree.defaults,$.fn.combotree.parseOptions(this),_9ff)});
+}
+_9eb(this);
+});
+};
+$.fn.combotree.methods={options:function(jq){
+var _a03=jq.combo("options");
+return $.extend($.data(jq[0],"combotree").options,{width:_a03.width,height:_a03.height,originalValue:_a03.originalValue,disabled:_a03.disabled,readonly:_a03.readonly});
+},clone:function(jq,_a04){
+var t=jq.combo("clone",_a04);
+t.data("combotree",{options:$.extend(true,{},jq.combotree("options")),tree:jq.combotree("tree")});
+return t;
+},tree:function(jq){
+return $.data(jq[0],"combotree").tree;
+},loadData:function(jq,data){
+return jq.each(function(){
+var opts=$.data(this,"combotree").options;
+opts.data=data;
+var tree=$.data(this,"combotree").tree;
+tree.tree("loadData",data);
+});
+},reload:function(jq,url){
+return jq.each(function(){
+var opts=$.data(this,"combotree").options;
+var tree=$.data(this,"combotree").tree;
+if(url){
+opts.url=url;
+}
+tree.tree({url:opts.url});
+});
+},setValues:function(jq,_a05){
+return jq.each(function(){
+_9f6(this,_a05);
+});
+},setValue:function(jq,_a06){
+return jq.each(function(){
+_9f6(this,[_a06]);
+});
+},clear:function(jq){
+return jq.each(function(){
+var tree=$.data(this,"combotree").tree;
+tree.find("div.tree-node-selected").removeClass("tree-node-selected");
+var cc=tree.tree("getChecked");
+for(var i=0;i<cc.length;i++){
+tree.tree("uncheck",cc[i].target);
+}
+$(this).combo("clear");
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).combotree("options");
+if(opts.multiple){
+$(this).combotree("setValues",opts.originalValue);
+}else{
+$(this).combotree("setValue",opts.originalValue);
+}
+});
+}};
+$.fn.combotree.parseOptions=function(_a07){
+return $.extend({},$.fn.combo.parseOptions(_a07),$.fn.tree.parseOptions(_a07));
+};
+$.fn.combotree.defaults=$.extend({},$.fn.combo.defaults,$.fn.tree.defaults,{editable:false});
+})(jQuery);
+(function($){
+function _a08(_a09){
+var _a0a=$.data(_a09,"combogrid");
+var opts=_a0a.options;
+var grid=_a0a.grid;
+$(_a09).addClass("combogrid-f").combo($.extend({},opts,{onShowPanel:function(){
+var p=$(this).combogrid("panel");
+var _a0b=p.outerHeight()-p.height();
+var _a0c=p._size("minHeight");
+var _a0d=p._size("maxHeight");
+var dg=$(this).combogrid("grid");
+dg.datagrid("resize",{width:"100%",height:(isNaN(parseInt(opts.panelHeight))?"auto":"100%"),minHeight:(_a0c?_a0c-_a0b:""),maxHeight:(_a0d?_a0d-_a0b:"")});
+var row=dg.datagrid("getSelected");
+if(row){
+dg.datagrid("scrollTo",dg.datagrid("getRowIndex",row));
+}
+opts.onShowPanel.call(this);
+}}));
+var _a0e=$(_a09).combo("panel");
+if(!grid){
+grid=$("<table></table>").appendTo(_a0e);
+_a0a.grid=grid;
+}
+grid.datagrid($.extend({},opts,{border:false,singleSelect:(!opts.multiple),onLoadSuccess:function(data){
+var _a0f=$(_a09).combo("getValues");
+var _a10=opts.onSelect;
+opts.onSelect=function(){
+};
+_a16(_a09,_a0f,_a0a.remainText);
+opts.onSelect=_a10;
+opts.onLoadSuccess.apply(_a09,arguments);
+},onClickRow:_a11,onSelect:function(_a12,row){
+_a13();
+opts.onSelect.call(this,_a12,row);
+},onUnselect:function(_a14,row){
+_a13();
+opts.onUnselect.call(this,_a14,row);
+},onSelectAll:function(rows){
+_a13();
+opts.onSelectAll.call(this,rows);
+},onUnselectAll:function(rows){
+if(opts.multiple){
+_a13();
+}
+opts.onUnselectAll.call(this,rows);
+}}));
+function _a11(_a15,row){
+_a0a.remainText=false;
+_a13();
+if(!opts.multiple){
+$(_a09).combo("hidePanel");
+}
+opts.onClickRow.call(this,_a15,row);
+};
+function _a13(){
+var vv=$.map(grid.datagrid("getSelections"),function(row){
+return row[opts.idField];
+});
+vv=vv.concat(opts.unselectedValues);
+if(!opts.multiple){
+vv=vv.length?[vv[0]]:[""];
+}
+_a16(_a09,vv,_a0a.remainText);
+};
+};
+function nav(_a17,dir){
+var _a18=$.data(_a17,"combogrid");
+var opts=_a18.options;
+var grid=_a18.grid;
+var _a19=grid.datagrid("getRows").length;
+if(!_a19){
+return;
+}
+var tr=opts.finder.getTr(grid[0],null,"highlight");
+if(!tr.length){
+tr=opts.finder.getTr(grid[0],null,"selected");
+}
+var _a1a;
+if(!tr.length){
+_a1a=(dir=="next"?0:_a19-1);
+}else{
+var _a1a=parseInt(tr.attr("datagrid-row-index"));
+_a1a+=(dir=="next"?1:-1);
+if(_a1a<0){
+_a1a=_a19-1;
+}
+if(_a1a>=_a19){
+_a1a=0;
+}
+}
+grid.datagrid("highlightRow",_a1a);
+if(opts.selectOnNavigation){
+_a18.remainText=false;
+grid.datagrid("selectRow",_a1a);
+}
+};
+function _a16(_a1b,_a1c,_a1d){
+var _a1e=$.data(_a1b,"combogrid");
+var opts=_a1e.options;
+var grid=_a1e.grid;
+var _a1f=$(_a1b).combo("getValues");
+var _a20=$(_a1b).combo("options");
+var _a21=_a20.onChange;
+_a20.onChange=function(){
+};
+var _a22=grid.datagrid("options");
+var _a23=_a22.onSelect;
+var _a24=_a22.onUnselectAll;
+_a22.onSelect=_a22.onUnselectAll=function(){
+};
+if(!$.isArray(_a1c)){
+_a1c=_a1c.split(opts.separator);
+}
+var _a25=[];
+$.map(grid.datagrid("getSelections"),function(row){
+if($.inArray(row[opts.idField],_a1c)>=0){
+_a25.push(row);
+}
+});
+grid.datagrid("clearSelections");
+grid.data("datagrid").selectedRows=_a25;
+var ss=[];
+for(var i=0;i<_a1c.length;i++){
+var _a26=_a1c[i];
+var _a27=grid.datagrid("getRowIndex",_a26);
+if(_a27>=0){
+grid.datagrid("selectRow",_a27);
+}
+ss.push(_a28(_a26,grid.datagrid("getRows"))||_a28(_a26,grid.datagrid("getSelections"))||_a28(_a26,opts.mappingRows)||_a26);
+}
+opts.unselectedValues=[];
+var _a29=$.map(_a25,function(row){
+return row[opts.idField];
+});
+$.map(_a1c,function(_a2a){
+if($.inArray(_a2a,_a29)==-1){
+opts.unselectedValues.push(_a2a);
+}
+});
+$(_a1b).combo("setValues",_a1f);
+_a20.onChange=_a21;
+_a22.onSelect=_a23;
+_a22.onUnselectAll=_a24;
+if(!_a1d){
+var s=ss.join(opts.separator);
+if($(_a1b).combo("getText")!=s){
+$(_a1b).combo("setText",s);
+}
+}
+$(_a1b).combo("setValues",_a1c);
+function _a28(_a2b,a){
+for(var i=0;i<a.length;i++){
+if(_a2b==a[i][opts.idField]){
+return a[i][opts.textField];
+}
+}
+return undefined;
+};
+};
+function _a2c(_a2d,q){
+var _a2e=$.data(_a2d,"combogrid");
+var opts=_a2e.options;
+var grid=_a2e.grid;
+_a2e.remainText=true;
+if(opts.multiple&&!q){
+_a16(_a2d,[],true);
+}else{
+_a16(_a2d,[q],true);
+}
+if(opts.mode=="remote"){
+grid.datagrid("clearSelections");
+grid.datagrid("load",$.extend({},opts.queryParams,{q:q}));
+}else{
+if(!q){
+return;
+}
+grid.datagrid("clearSelections").datagrid("highlightRow",-1);
+var rows=grid.datagrid("getRows");
+var qq=opts.multiple?q.split(opts.separator):[q];
+$.map(qq,function(q){
+q=$.trim(q);
+if(q){
+$.map(rows,function(row,i){
+if(q==row[opts.textField]){
+grid.datagrid("selectRow",i);
+}else{
+if(opts.filter.call(_a2d,q,row)){
+grid.datagrid("highlightRow",i);
+}
+}
+});
+}
+});
+}
+};
+function _a2f(_a30){
+var _a31=$.data(_a30,"combogrid");
+var opts=_a31.options;
+var grid=_a31.grid;
+var tr=opts.finder.getTr(grid[0],null,"highlight");
+_a31.remainText=false;
+if(tr.length){
+var _a32=parseInt(tr.attr("datagrid-row-index"));
+if(opts.multiple){
+if(tr.hasClass("datagrid-row-selected")){
+grid.datagrid("unselectRow",_a32);
+}else{
+grid.datagrid("selectRow",_a32);
+}
+}else{
+grid.datagrid("selectRow",_a32);
+}
+}
+var vv=[];
+$.map(grid.datagrid("getSelections"),function(row){
+vv.push(row[opts.idField]);
+});
+$(_a30).combogrid("setValues",vv);
+if(!opts.multiple){
+$(_a30).combogrid("hidePanel");
+}
+};
+$.fn.combogrid=function(_a33,_a34){
+if(typeof _a33=="string"){
+var _a35=$.fn.combogrid.methods[_a33];
+if(_a35){
+return _a35(this,_a34);
+}else{
+return this.combo(_a33,_a34);
+}
+}
+_a33=_a33||{};
+return this.each(function(){
+var _a36=$.data(this,"combogrid");
+if(_a36){
+$.extend(_a36.options,_a33);
+}else{
+_a36=$.data(this,"combogrid",{options:$.extend({},$.fn.combogrid.defaults,$.fn.combogrid.parseOptions(this),_a33)});
+}
+_a08(this);
+});
+};
+$.fn.combogrid.methods={options:function(jq){
+var _a37=jq.combo("options");
+return $.extend($.data(jq[0],"combogrid").options,{width:_a37.width,height:_a37.height,originalValue:_a37.originalValue,disabled:_a37.disabled,readonly:_a37.readonly});
+},grid:function(jq){
+return $.data(jq[0],"combogrid").grid;
+},setValues:function(jq,_a38){
+return jq.each(function(){
+var opts=$(this).combogrid("options");
+if($.isArray(_a38)){
+_a38=$.map(_a38,function(_a39){
+if(typeof _a39=="object"){
+var v=_a39[opts.idField];
+(function(){
+for(var i=0;i<opts.mappingRows.length;i++){
+if(v==opts.mappingRows[i][opts.idField]){
+return;
+}
+}
+opts.mappingRows.push(_a39);
+})();
+return v;
+}else{
+return _a39;
+}
+});
+}
+_a16(this,_a38);
+});
+},setValue:function(jq,_a3a){
+return jq.each(function(){
+$(this).combogrid("setValues",[_a3a]);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).combogrid("grid").datagrid("clearSelections");
+$(this).combo("clear");
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).combogrid("options");
+if(opts.multiple){
+$(this).combogrid("setValues",opts.originalValue);
+}else{
+$(this).combogrid("setValue",opts.originalValue);
+}
+});
+}};
+$.fn.combogrid.parseOptions=function(_a3b){
+var t=$(_a3b);
+return $.extend({},$.fn.combo.parseOptions(_a3b),$.fn.datagrid.parseOptions(_a3b),$.parser.parseOptions(_a3b,["idField","textField","mode"]));
+};
+$.fn.combogrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.datagrid.defaults,{height:22,loadMsg:null,idField:null,textField:null,unselectedValues:[],mappingRows:[],mode:"local",keyHandler:{up:function(e){
+nav(this,"prev");
+e.preventDefault();
+},down:function(e){
+nav(this,"next");
+e.preventDefault();
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_a2f(this);
+},query:function(q,e){
+_a2c(this,q);
+}},filter:function(q,row){
+var opts=$(this).combogrid("options");
+return (row[opts.textField]||"").toLowerCase().indexOf(q.toLowerCase())==0;
+}});
+})(jQuery);
+(function($){
+function _a3c(_a3d){
+var _a3e=$.data(_a3d,"datebox");
+var opts=_a3e.options;
+$(_a3d).addClass("datebox-f").combo($.extend({},opts,{onShowPanel:function(){
+_a3f(this);
+_a40(this);
+_a41(this);
+_a4f(this,$(this).datebox("getText"),true);
+opts.onShowPanel.call(this);
+}}));
+if(!_a3e.calendar){
+var _a42=$(_a3d).combo("panel").css("overflow","hidden");
+_a42.panel("options").onBeforeDestroy=function(){
+var c=$(this).find(".calendar-shared");
+if(c.length){
+c.insertBefore(c[0].pholder);
+}
+};
+var cc=$("<div class=\"datebox-calendar-inner\"></div>").prependTo(_a42);
+if(opts.sharedCalendar){
+var c=$(opts.sharedCalendar);
+if(!c[0].pholder){
+c[0].pholder=$("<div class=\"calendar-pholder\" style=\"display:none\"></div>").insertAfter(c);
+}
+c.addClass("calendar-shared").appendTo(cc);
+if(!c.hasClass("calendar")){
+c.calendar();
+}
+_a3e.calendar=c;
+}else{
+_a3e.calendar=$("<div></div>").appendTo(cc).calendar();
+}
+$.extend(_a3e.calendar.calendar("options"),{fit:true,border:false,onSelect:function(date){
+var _a43=this.target;
+var opts=$(_a43).datebox("options");
+_a4f(_a43,opts.formatter.call(_a43,date));
+$(_a43).combo("hidePanel");
+opts.onSelect.call(_a43,date);
+}});
+}
+$(_a3d).combo("textbox").parent().addClass("datebox");
+$(_a3d).datebox("initValue",opts.value);
+function _a3f(_a44){
+var opts=$(_a44).datebox("options");
+var _a45=$(_a44).combo("panel");
+_a45.unbind(".datebox").bind("click.datebox",function(e){
+if($(e.target).hasClass("datebox-button-a")){
+var _a46=parseInt($(e.target).attr("datebox-button-index"));
+opts.buttons[_a46].handler.call(e.target,_a44);
+}
+});
+};
+function _a40(_a47){
+var _a48=$(_a47).combo("panel");
+if(_a48.children("div.datebox-button").length){
+return;
+}
+var _a49=$("<div class=\"datebox-button\"><table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%\"><tr></tr></table></div>").appendTo(_a48);
+var tr=_a49.find("tr");
+for(var i=0;i<opts.buttons.length;i++){
+var td=$("<td></td>").appendTo(tr);
+var btn=opts.buttons[i];
+var t=$("<a class=\"datebox-button-a\" href=\"javascript:void(0)\"></a>").html($.isFunction(btn.text)?btn.text(_a47):btn.text).appendTo(td);
+t.attr("datebox-button-index",i);
+}
+tr.find("td").css("width",(100/opts.buttons.length)+"%");
+};
+function _a41(_a4a){
+var _a4b=$(_a4a).combo("panel");
+var cc=_a4b.children("div.datebox-calendar-inner");
+_a4b.children()._outerWidth(_a4b.width());
+_a3e.calendar.appendTo(cc);
+_a3e.calendar[0].target=_a4a;
+if(opts.panelHeight!="auto"){
+var _a4c=_a4b.height();
+_a4b.children().not(cc).each(function(){
+_a4c-=$(this).outerHeight();
+});
+cc._outerHeight(_a4c);
+}
+_a3e.calendar.calendar("resize");
+};
+};
+function _a4d(_a4e,q){
+_a4f(_a4e,q,true);
+};
+function _a50(_a51){
+var _a52=$.data(_a51,"datebox");
+var opts=_a52.options;
+var _a53=_a52.calendar.calendar("options").current;
+if(_a53){
+_a4f(_a51,opts.formatter.call(_a51,_a53));
+$(_a51).combo("hidePanel");
+}
+};
+function _a4f(_a54,_a55,_a56){
+var _a57=$.data(_a54,"datebox");
+var opts=_a57.options;
+var _a58=_a57.calendar;
+_a58.calendar("moveTo",opts.parser.call(_a54,_a55));
+if(_a56){
+$(_a54).combo("setValue",_a55);
+}else{
+if(_a55){
+_a55=opts.formatter.call(_a54,_a58.calendar("options").current);
+}
+$(_a54).combo("setText",_a55).combo("setValue",_a55);
+}
+};
+$.fn.datebox=function(_a59,_a5a){
+if(typeof _a59=="string"){
+var _a5b=$.fn.datebox.methods[_a59];
+if(_a5b){
+return _a5b(this,_a5a);
+}else{
+return this.combo(_a59,_a5a);
+}
+}
+_a59=_a59||{};
+return this.each(function(){
+var _a5c=$.data(this,"datebox");
+if(_a5c){
+$.extend(_a5c.options,_a59);
+}else{
+$.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_a59)});
+}
+_a3c(this);
+});
+};
+$.fn.datebox.methods={options:function(jq){
+var _a5d=jq.combo("options");
+return $.extend($.data(jq[0],"datebox").options,{width:_a5d.width,height:_a5d.height,originalValue:_a5d.originalValue,disabled:_a5d.disabled,readonly:_a5d.readonly});
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+$(this).combo("cloneFrom",from);
+$.data(this,"datebox",{options:$.extend(true,{},$(from).datebox("options")),calendar:$(from).datebox("calendar")});
+$(this).addClass("datebox-f");
+});
+},calendar:function(jq){
+return $.data(jq[0],"datebox").calendar;
+},initValue:function(jq,_a5e){
+return jq.each(function(){
+var opts=$(this).datebox("options");
+var _a5f=opts.value;
+if(_a5f){
+_a5f=opts.formatter.call(this,opts.parser.call(this,_a5f));
+}
+$(this).combo("initValue",_a5f).combo("setText",_a5f);
+});
+},setValue:function(jq,_a60){
+return jq.each(function(){
+_a4f(this,_a60);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).datebox("options");
+$(this).datebox("setValue",opts.originalValue);
+});
+}};
+$.fn.datebox.parseOptions=function(_a61){
+return $.extend({},$.fn.combo.parseOptions(_a61),$.parser.parseOptions(_a61,["sharedCalendar"]));
+};
+$.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:180,panelHeight:"auto",sharedCalendar:null,keyHandler:{up:function(e){
+},down:function(e){
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_a50(this);
+},query:function(q,e){
+_a4d(this,q);
+}},currentText:"Today",closeText:"Close",okText:"Ok",buttons:[{text:function(_a62){
+return $(_a62).datebox("options").currentText;
+},handler:function(_a63){
+var now=new Date();
+$(_a63).datebox("calendar").calendar({year:now.getFullYear(),month:now.getMonth()+1,current:new Date(now.getFullYear(),now.getMonth(),now.getDate())});
+_a50(_a63);
+}},{text:function(_a64){
+return $(_a64).datebox("options").closeText;
+},handler:function(_a65){
+$(this).closest("div.combo-panel").panel("close");
+}}],formatter:function(date){
+var y=date.getFullYear();
+var m=date.getMonth()+1;
+var d=date.getDate();
+return (m<10?("0"+m):m)+"/"+(d<10?("0"+d):d)+"/"+y;
+},parser:function(s){
+if(!s){
+return new Date();
+}
+var ss=s.split("/");
+var m=parseInt(ss[0],10);
+var d=parseInt(ss[1],10);
+var y=parseInt(ss[2],10);
+if(!isNaN(y)&&!isNaN(m)&&!isNaN(d)){
+return new Date(y,m-1,d);
+}else{
+return new Date();
+}
+},onSelect:function(date){
+}});
+})(jQuery);
+(function($){
+function _a66(_a67){
+var _a68=$.data(_a67,"datetimebox");
+var opts=_a68.options;
+$(_a67).datebox($.extend({},opts,{onShowPanel:function(){
+var _a69=$(this).datetimebox("getValue");
+_a6f(this,_a69,true);
+opts.onShowPanel.call(this);
+},formatter:$.fn.datebox.defaults.formatter,parser:$.fn.datebox.defaults.parser}));
+$(_a67).removeClass("datebox-f").addClass("datetimebox-f");
+$(_a67).datebox("calendar").calendar({onSelect:function(date){
+opts.onSelect.call(this.target,date);
+}});
+if(!_a68.spinner){
+var _a6a=$(_a67).datebox("panel");
+var p=$("<div style=\"padding:2px\"><input></div>").insertAfter(_a6a.children("div.datebox-calendar-inner"));
+_a68.spinner=p.children("input");
+}
+_a68.spinner.timespinner({width:opts.spinnerWidth,showSeconds:opts.showSeconds,separator:opts.timeSeparator});
+$(_a67).datetimebox("initValue",opts.value);
+};
+function _a6b(_a6c){
+var c=$(_a6c).datetimebox("calendar");
+var t=$(_a6c).datetimebox("spinner");
+var date=c.calendar("options").current;
+return new Date(date.getFullYear(),date.getMonth(),date.getDate(),t.timespinner("getHours"),t.timespinner("getMinutes"),t.timespinner("getSeconds"));
+};
+function _a6d(_a6e,q){
+_a6f(_a6e,q,true);
+};
+function _a70(_a71){
+var opts=$.data(_a71,"datetimebox").options;
+var date=_a6b(_a71);
+_a6f(_a71,opts.formatter.call(_a71,date));
+$(_a71).combo("hidePanel");
+};
+function _a6f(_a72,_a73,_a74){
+var opts=$.data(_a72,"datetimebox").options;
+$(_a72).combo("setValue",_a73);
+if(!_a74){
+if(_a73){
+var date=opts.parser.call(_a72,_a73);
+$(_a72).combo("setText",opts.formatter.call(_a72,date));
+$(_a72).combo("setValue",opts.formatter.call(_a72,date));
+}else{
+$(_a72).combo("setText",_a73);
+}
+}
+var date=opts.parser.call(_a72,_a73);
+$(_a72).datetimebox("calendar").calendar("moveTo",date);
+$(_a72).datetimebox("spinner").timespinner("setValue",_a75(date));
+function _a75(date){
+function _a76(_a77){
+return (_a77<10?"0":"")+_a77;
+};
+var tt=[_a76(date.getHours()),_a76(date.getMinutes())];
+if(opts.showSeconds){
+tt.push(_a76(date.getSeconds()));
+}
+return tt.join($(_a72).datetimebox("spinner").timespinner("options").separator);
+};
+};
+$.fn.datetimebox=function(_a78,_a79){
+if(typeof _a78=="string"){
+var _a7a=$.fn.datetimebox.methods[_a78];
+if(_a7a){
+return _a7a(this,_a79);
+}else{
+return this.datebox(_a78,_a79);
+}
+}
+_a78=_a78||{};
+return this.each(function(){
+var _a7b=$.data(this,"datetimebox");
+if(_a7b){
+$.extend(_a7b.options,_a78);
+}else{
+$.data(this,"datetimebox",{options:$.extend({},$.fn.datetimebox.defaults,$.fn.datetimebox.parseOptions(this),_a78)});
+}
+_a66(this);
+});
+};
+$.fn.datetimebox.methods={options:function(jq){
+var _a7c=jq.datebox("options");
+return $.extend($.data(jq[0],"datetimebox").options,{originalValue:_a7c.originalValue,disabled:_a7c.disabled,readonly:_a7c.readonly});
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+$(this).datebox("cloneFrom",from);
+$.data(this,"datetimebox",{options:$.extend(true,{},$(from).datetimebox("options")),spinner:$(from).datetimebox("spinner")});
+$(this).removeClass("datebox-f").addClass("datetimebox-f");
+});
+},spinner:function(jq){
+return $.data(jq[0],"datetimebox").spinner;
+},initValue:function(jq,_a7d){
+return jq.each(function(){
+var opts=$(this).datetimebox("options");
+var _a7e=opts.value;
+if(_a7e){
+_a7e=opts.formatter.call(this,opts.parser.call(this,_a7e));
+}
+$(this).combo("initValue",_a7e).combo("setText",_a7e);
+});
+},setValue:function(jq,_a7f){
+return jq.each(function(){
+_a6f(this,_a7f);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).datetimebox("options");
+$(this).datetimebox("setValue",opts.originalValue);
+});
+}};
+$.fn.datetimebox.parseOptions=function(_a80){
+var t=$(_a80);
+return $.extend({},$.fn.datebox.parseOptions(_a80),$.parser.parseOptions(_a80,["timeSeparator","spinnerWidth",{showSeconds:"boolean"}]));
+};
+$.fn.datetimebox.defaults=$.extend({},$.fn.datebox.defaults,{spinnerWidth:"100%",showSeconds:true,timeSeparator:":",keyHandler:{up:function(e){
+},down:function(e){
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_a70(this);
+},query:function(q,e){
+_a6d(this,q);
+}},buttons:[{text:function(_a81){
+return $(_a81).datetimebox("options").currentText;
+},handler:function(_a82){
+var opts=$(_a82).datetimebox("options");
+_a6f(_a82,opts.formatter.call(_a82,new Date()));
+$(_a82).datetimebox("hidePanel");
+}},{text:function(_a83){
+return $(_a83).datetimebox("options").okText;
+},handler:function(_a84){
+_a70(_a84);
+}},{text:function(_a85){
+return $(_a85).datetimebox("options").closeText;
+},handler:function(_a86){
+$(_a86).datetimebox("hidePanel");
+}}],formatter:function(date){
+var h=date.getHours();
+var M=date.getMinutes();
+var s=date.getSeconds();
+function _a87(_a88){
+return (_a88<10?"0":"")+_a88;
+};
+var _a89=$(this).datetimebox("spinner").timespinner("options").separator;
+var r=$.fn.datebox.defaults.formatter(date)+" "+_a87(h)+_a89+_a87(M);
+if($(this).datetimebox("options").showSeconds){
+r+=_a89+_a87(s);
+}
+return r;
+},parser:function(s){
+if($.trim(s)==""){
+return new Date();
+}
+var dt=s.split(" ");
+var d=$.fn.datebox.defaults.parser(dt[0]);
+if(dt.length<2){
+return d;
+}
+var _a8a=$(this).datetimebox("spinner").timespinner("options").separator;
+var tt=dt[1].split(_a8a);
+var hour=parseInt(tt[0],10)||0;
+var _a8b=parseInt(tt[1],10)||0;
+var _a8c=parseInt(tt[2],10)||0;
+return new Date(d.getFullYear(),d.getMonth(),d.getDate(),hour,_a8b,_a8c);
+}});
+})(jQuery);
+(function($){
+function init(_a8d){
+var _a8e=$("<div class=\"slider\">"+"<div class=\"slider-inner\">"+"<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>"+"</div>"+"<div class=\"slider-rule\"></div>"+"<div class=\"slider-rulelabel\"></div>"+"<div style=\"clear:both\"></div>"+"<input type=\"hidden\" class=\"slider-value\">"+"</div>").insertAfter(_a8d);
+var t=$(_a8d);
+t.addClass("slider-f").hide();
+var name=t.attr("name");
+if(name){
+_a8e.find("input.slider-value").attr("name",name);
+t.removeAttr("name").attr("sliderName",name);
+}
+_a8e.bind("_resize",function(e,_a8f){
+if($(this).hasClass("easyui-fluid")||_a8f){
+_a90(_a8d);
+}
+return false;
+});
+return _a8e;
+};
+function _a90(_a91,_a92){
+var _a93=$.data(_a91,"slider");
+var opts=_a93.options;
+var _a94=_a93.slider;
+if(_a92){
+if(_a92.width){
+opts.width=_a92.width;
+}
+if(_a92.height){
+opts.height=_a92.height;
+}
+}
+_a94._size(opts);
+if(opts.mode=="h"){
+_a94.css("height","");
+_a94.children("div").css("height","");
+}else{
+_a94.css("width","");
+_a94.children("div").css("width","");
+_a94.children("div.slider-rule,div.slider-rulelabel,div.slider-inner")._outerHeight(_a94._outerHeight());
+}
+_a95(_a91);
+};
+function _a96(_a97){
+var _a98=$.data(_a97,"slider");
+var opts=_a98.options;
+var _a99=_a98.slider;
+var aa=opts.mode=="h"?opts.rule:opts.rule.slice(0).reverse();
+if(opts.reversed){
+aa=aa.slice(0).reverse();
+}
+_a9a(aa);
+function _a9a(aa){
+var rule=_a99.find("div.slider-rule");
+var _a9b=_a99.find("div.slider-rulelabel");
+rule.empty();
+_a9b.empty();
+for(var i=0;i<aa.length;i++){
+var _a9c=i*100/(aa.length-1)+"%";
+var span=$("<span></span>").appendTo(rule);
+span.css((opts.mode=="h"?"left":"top"),_a9c);
+if(aa[i]!="|"){
+span=$("<span></span>").appendTo(_a9b);
+span.html(aa[i]);
+if(opts.mode=="h"){
+span.css({left:_a9c,marginLeft:-Math.round(span.outerWidth()/2)});
+}else{
+span.css({top:_a9c,marginTop:-Math.round(span.outerHeight()/2)});
+}
+}
+}
+};
+};
+function _a9d(_a9e){
+var _a9f=$.data(_a9e,"slider");
+var opts=_a9f.options;
+var _aa0=_a9f.slider;
+_aa0.removeClass("slider-h slider-v slider-disabled");
+_aa0.addClass(opts.mode=="h"?"slider-h":"slider-v");
+_aa0.addClass(opts.disabled?"slider-disabled":"");
+var _aa1=_aa0.find(".slider-inner");
+_aa1.html("<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>");
+if(opts.range){
+_aa1.append("<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>");
+}
+_aa0.find("a.slider-handle").draggable({axis:opts.mode,cursor:"pointer",disabled:opts.disabled,onDrag:function(e){
+var left=e.data.left;
+var _aa2=_aa0.width();
+if(opts.mode!="h"){
+left=e.data.top;
+_aa2=_aa0.height();
+}
+if(left<0||left>_aa2){
+return false;
+}else{
+_aa3(left,this);
+return false;
+}
+},onStartDrag:function(){
+_a9f.isDragging=true;
+opts.onSlideStart.call(_a9e,opts.value);
+},onStopDrag:function(e){
+_aa3(opts.mode=="h"?e.data.left:e.data.top,this);
+opts.onSlideEnd.call(_a9e,opts.value);
+opts.onComplete.call(_a9e,opts.value);
+_a9f.isDragging=false;
+}});
+_aa0.find("div.slider-inner").unbind(".slider").bind("mousedown.slider",function(e){
+if(_a9f.isDragging||opts.disabled){
+return;
+}
+var pos=$(this).offset();
+_aa3(opts.mode=="h"?(e.pageX-pos.left):(e.pageY-pos.top));
+opts.onComplete.call(_a9e,opts.value);
+});
+function _aa3(pos,_aa4){
+var _aa5=_aa6(_a9e,pos);
+var s=Math.abs(_aa5%opts.step);
+if(s<opts.step/2){
+_aa5-=s;
+}else{
+_aa5=_aa5-s+opts.step;
+}
+if(opts.range){
+var v1=opts.value[0];
+var v2=opts.value[1];
+var m=parseFloat((v1+v2)/2);
+if(_aa4){
+var _aa7=$(_aa4).nextAll(".slider-handle").length>0;
+if(_aa5<=v2&&_aa7){
+v1=_aa5;
+}else{
+if(_aa5>=v1&&(!_aa7)){
+v2=_aa5;
+}
+}
+}else{
+if(_aa5<v1){
+v1=_aa5;
+}else{
+if(_aa5>v2){
+v2=_aa5;
+}else{
+_aa5<m?v1=_aa5:v2=_aa5;
+}
+}
+}
+$(_a9e).slider("setValues",[v1,v2]);
+}else{
+$(_a9e).slider("setValue",_aa5);
+}
+};
+};
+function _aa8(_aa9,_aaa){
+var _aab=$.data(_aa9,"slider");
+var opts=_aab.options;
+var _aac=_aab.slider;
+var _aad=$.isArray(opts.value)?opts.value:[opts.value];
+var _aae=[];
+if(!$.isArray(_aaa)){
+_aaa=$.map(String(_aaa).split(opts.separator),function(v){
+return parseFloat(v);
+});
+}
+_aac.find(".slider-value").remove();
+var name=$(_aa9).attr("sliderName")||"";
+for(var i=0;i<_aaa.length;i++){
+var _aaf=_aaa[i];
+if(_aaf<opts.min){
+_aaf=opts.min;
+}
+if(_aaf>opts.max){
+_aaf=opts.max;
+}
+var _ab0=$("<input type=\"hidden\" class=\"slider-value\">").appendTo(_aac);
+_ab0.attr("name",name);
+_ab0.val(_aaf);
+_aae.push(_aaf);
+var _ab1=_aac.find(".slider-handle:eq("+i+")");
+var tip=_ab1.next();
+var pos=_ab2(_aa9,_aaf);
+if(opts.showTip){
+tip.show();
+tip.html(opts.tipFormatter.call(_aa9,_aaf));
+}else{
+tip.hide();
+}
+if(opts.mode=="h"){
+var _ab3="left:"+pos+"px;";
+_ab1.attr("style",_ab3);
+tip.attr("style",_ab3+"margin-left:"+(-Math.round(tip.outerWidth()/2))+"px");
+}else{
+var _ab3="top:"+pos+"px;";
+_ab1.attr("style",_ab3);
+tip.attr("style",_ab3+"margin-left:"+(-Math.round(tip.outerWidth()))+"px");
+}
+}
+opts.value=opts.range?_aae:_aae[0];
+$(_aa9).val(opts.range?_aae.join(opts.separator):_aae[0]);
+if(_aad.join(",")!=_aae.join(",")){
+opts.onChange.call(_aa9,opts.value,(opts.range?_aad:_aad[0]));
+}
+};
+function _a95(_ab4){
+var opts=$.data(_ab4,"slider").options;
+var fn=opts.onChange;
+opts.onChange=function(){
+};
+_aa8(_ab4,opts.value);
+opts.onChange=fn;
+};
+function _ab2(_ab5,_ab6){
+var _ab7=$.data(_ab5,"slider");
+var opts=_ab7.options;
+var _ab8=_ab7.slider;
+var size=opts.mode=="h"?_ab8.width():_ab8.height();
+var pos=opts.converter.toPosition.call(_ab5,_ab6,size);
+if(opts.mode=="v"){
+pos=_ab8.height()-pos;
+}
+if(opts.reversed){
+pos=size-pos;
+}
+return pos.toFixed(0);
+};
+function _aa6(_ab9,pos){
+var _aba=$.data(_ab9,"slider");
+var opts=_aba.options;
+var _abb=_aba.slider;
+var size=opts.mode=="h"?_abb.width():_abb.height();
+var pos=opts.mode=="h"?(opts.reversed?(size-pos):pos):(opts.reversed?pos:(size-pos));
+var _abc=opts.converter.toValue.call(_ab9,pos,size);
+return _abc.toFixed(0);
+};
+$.fn.slider=function(_abd,_abe){
+if(typeof _abd=="string"){
+return $.fn.slider.methods[_abd](this,_abe);
+}
+_abd=_abd||{};
+return this.each(function(){
+var _abf=$.data(this,"slider");
+if(_abf){
+$.extend(_abf.options,_abd);
+}else{
+_abf=$.data(this,"slider",{options:$.extend({},$.fn.slider.defaults,$.fn.slider.parseOptions(this),_abd),slider:init(this)});
+$(this).removeAttr("disabled");
+}
+var opts=_abf.options;
+opts.min=parseFloat(opts.min);
+opts.max=parseFloat(opts.max);
+if(opts.range){
+if(!$.isArray(opts.value)){
+opts.value=$.map(String(opts.value).split(opts.separator),function(v){
+return parseFloat(v);
+});
+}
+if(opts.value.length<2){
+opts.value.push(opts.max);
+}
+}else{
+opts.value=parseFloat(opts.value);
+}
+opts.step=parseFloat(opts.step);
+opts.originalValue=opts.value;
+_a9d(this);
+_a96(this);
+_a90(this);
+});
+};
+$.fn.slider.methods={options:function(jq){
+return $.data(jq[0],"slider").options;
+},destroy:function(jq){
+return jq.each(function(){
+$.data(this,"slider").slider.remove();
+$(this).remove();
+});
+},resize:function(jq,_ac0){
+return jq.each(function(){
+_a90(this,_ac0);
+});
+},getValue:function(jq){
+return jq.slider("options").value;
+},getValues:function(jq){
+return jq.slider("options").value;
+},setValue:function(jq,_ac1){
+return jq.each(function(){
+_aa8(this,[_ac1]);
+});
+},setValues:function(jq,_ac2){
+return jq.each(function(){
+_aa8(this,_ac2);
+});
+},clear:function(jq){
+return jq.each(function(){
+var opts=$(this).slider("options");
+_aa8(this,opts.range?[opts.min,opts.max]:[opts.min]);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).slider("options");
+$(this).slider(opts.range?"setValues":"setValue",opts.originalValue);
+});
+},enable:function(jq){
+return jq.each(function(){
+$.data(this,"slider").options.disabled=false;
+_a9d(this);
+});
+},disable:function(jq){
+return jq.each(function(){
+$.data(this,"slider").options.disabled=true;
+_a9d(this);
+});
+}};
+$.fn.slider.parseOptions=function(_ac3){
+var t=$(_ac3);
+return $.extend({},$.parser.parseOptions(_ac3,["width","height","mode",{reversed:"boolean",showTip:"boolean",range:"boolean",min:"number",max:"number",step:"number"}]),{value:(t.val()||undefined),disabled:(t.attr("disabled")?true:undefined),rule:(t.attr("rule")?eval(t.attr("rule")):undefined)});
+};
+$.fn.slider.defaults={width:"auto",height:"auto",mode:"h",reversed:false,showTip:false,disabled:false,range:false,value:0,separator:",",min:0,max:100,step:1,rule:[],tipFormatter:function(_ac4){
+return _ac4;
+},converter:{toPosition:function(_ac5,size){
+var opts=$(this).slider("options");
+return (_ac5-opts.min)/(opts.max-opts.min)*size;
+},toValue:function(pos,size){
+var opts=$(this).slider("options");
+return opts.min+(opts.max-opts.min)*(pos/size);
+}},onChange:function(_ac6,_ac7){
+},onSlideStart:function(_ac8){
+},onSlideEnd:function(_ac9){
+},onComplete:function(_aca){
+}};
+})(jQuery);
+
diff --git a/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js
new file mode 100644
index 0000000..0f60b7b
--- /dev/null
+++ b/Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js
@@ -0,0 +1,5 @@
+/*! 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 id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",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;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;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 href='#'></a>","#"===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="<input/>",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.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;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=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",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<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},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></$2>")+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)?"<table>"!==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></$2>");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("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return 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="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;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),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){
+return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
diff --git a/Zplot/js/plotPanelControl/zTree/css/zTreeStyle.css b/Zplot/js/plotPanelControl/zTree/css/zTreeStyle.css
new file mode 100644
index 0000000..efca838
--- /dev/null
+++ b/Zplot/js/plotPanelControl/zTree/css/zTreeStyle.css
@@ -0,0 +1,97 @@
+/*-------------------------------------
+zTree Style
+
+version: 3.5.19
+author: Hunter.z
+email: hunter.z@263.net
+website: http://code.google.com/p/jquerytree/
+
+-------------------------------------*/
+
+.ztree * {padding:0; margin:0; font-size:16px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
+.ztree {margin:0; padding:5px; color:#333}
+.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0}
+.ztree li ul{ margin:0; padding:0 0 0 18px}
+.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;}
+
+.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent;
+ text-decoration:none; vertical-align:top; display: inline-block}
+.ztree li a:hover {text-decoration:underline}
+.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;}
+.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;}
+.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid;
+ opacity:0.8; filter:alpha(opacity=80)}
+.ztree li a.tmpTargetNode_prev {}
+.ztree li a.tmpTargetNode_next {}
+.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
+ font-size:12px; border:1px #7EC4CC solid; *border:0px}
+.ztree li span {line-height:16px; margin-right:2px}
+.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle;
+ border:0 none; cursor: pointer;outline:none;
+ background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
+ background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
+
+.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto}
+.ztree li span.button.chk.checkbox_false_full {background-position:0 0}
+.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px}
+.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px}
+.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px}
+.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px}
+.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0}
+.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px}
+.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px}
+.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px}
+.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px}
+.ztree li span.button.chk.radio_false_full {background-position:-28px 0}
+.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px}
+.ztree li span.button.chk.radio_false_part {background-position:-28px -28px}
+.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px}
+.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px}
+.ztree li span.button.chk.radio_true_full {background-position:-42px 0}
+.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px}
+.ztree li span.button.chk.radio_true_part {background-position:-42px -28px}
+.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px}
+.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px}
+
+.ztree li span.button.switch {width:18px; height:18px}
+.ztree li span.button.root_open{background-position:-92px -54px}
+.ztree li span.button.root_close{background-position:-74px -54px}
+.ztree li span.button.roots_open{background-position:-92px 0}
+.ztree li span.button.roots_close{background-position:-74px 0}
+.ztree li span.button.center_open{background-position:-92px -18px}
+.ztree li span.button.center_close{background-position:-74px -18px}
+.ztree li span.button.bottom_open{background-position:-92px -36px}
+.ztree li span.button.bottom_close{background-position:-74px -36px}
+.ztree li span.button.noline_open{background-position:-92px -72px}
+.ztree li span.button.noline_close{background-position:-74px -72px}
+.ztree li span.button.root_docu{ background:none;}
+.ztree li span.button.roots_docu{background-position:-56px 0}
+.ztree li span.button.center_docu{background-position:-56px -18px}
+.ztree li span.button.bottom_docu{background-position:-56px -36px}
+.ztree li span.button.noline_docu{ background:none;}
+
+.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle}
+
+.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
+
+ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
+
+span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
+ background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
+ background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
+
+ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
+.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
+
+/* level style*/
+/*.ztree li span.button.level0 {
+ display:none;
+}
+.ztree li ul.level0 {
+ padding:0;
+ background:none;
+}*/
\ No newline at end of file
diff --git a/Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js b/Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js
new file mode 100644
index 0000000..1711dae
--- /dev/null
+++ b/Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js
@@ -0,0 +1,1819 @@
+/*
+ * JQuery zTree core v3.5.23
+ * http://zTree.me/
+ *
+ * Copyright (c) 2010 Hunter.z
+ *
+ * Licensed same as jquery - MIT License
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * email: hunter.z@263.net
+ * Date: 2016-04-01
+ */
+(function($){
+ var settings = {}, roots = {}, caches = {},
+ //default consts of core
+ _consts = {
+ className: {
+ BUTTON: "button",
+ LEVEL: "level",
+ ICO_LOADING: "ico_loading",
+ SWITCH: "switch",
+ NAME: 'node_name'
+ },
+ event: {
+ NODECREATED: "ztree_nodeCreated",
+ CLICK: "ztree_click",
+ EXPAND: "ztree_expand",
+ COLLAPSE: "ztree_collapse",
+ ASYNC_SUCCESS: "ztree_async_success",
+ ASYNC_ERROR: "ztree_async_error",
+ REMOVE: "ztree_remove",
+ SELECTED: "ztree_selected",
+ UNSELECTED: "ztree_unselected"
+ },
+ id: {
+ A: "_a",
+ ICON: "_ico",
+ SPAN: "_span",
+ SWITCH: "_switch",
+ UL: "_ul"
+ },
+ line: {
+ ROOT: "root",
+ ROOTS: "roots",
+ CENTER: "center",
+ BOTTOM: "bottom",
+ NOLINE: "noline",
+ LINE: "line"
+ },
+ folder: {
+ OPEN: "open",
+ CLOSE: "close",
+ DOCU: "docu"
+ },
+ node: {
+ CURSELECTED: "curSelectedNode"
+ }
+ },
+ //default setting of core
+ _setting = {
+ treeId: "",
+ treeObj: null,
+ view: {
+ addDiyDom: null,
+ autoCancelSelected: true,
+ dblClickExpand: true,
+ expandSpeed: "fast",
+ fontCss: {},
+ nameIsHTML: false,
+ selectedMulti: true,
+ showIcon: true,
+ showLine: true,
+ showTitle: true,
+ txtSelectedEnable: false
+ },
+ data: {
+ key: {
+ children: "children",
+ name: "name",
+ title: "",
+ url: "url",
+ icon: "icon"
+ },
+ simpleData: {
+ enable: false,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: null
+ },
+ keep: {
+ parent: false,
+ leaf: false
+ }
+ },
+ async: {
+ enable: false,
+ contentType: "application/x-www-form-urlencoded",
+ type: "post",
+ dataType: "text",
+ url: "",
+ autoParam: [],
+ otherParam: [],
+ dataFilter: null
+ },
+ callback: {
+ beforeAsync:null,
+ beforeClick:null,
+ beforeDblClick:null,
+ beforeRightClick:null,
+ beforeMouseDown:null,
+ beforeMouseUp:null,
+ beforeExpand:null,
+ beforeCollapse:null,
+ beforeRemove:null,
+
+ onAsyncError:null,
+ onAsyncSuccess:null,
+ onNodeCreated:null,
+ onClick:null,
+ onDblClick:null,
+ onRightClick:null,
+ onMouseDown:null,
+ onMouseUp:null,
+ onExpand:null,
+ onCollapse:null,
+ onRemove:null
+ }
+ },
+ //default root of core
+ //zTree use root to save full data
+ _initRoot = function (setting) {
+ var r = data.getRoot(setting);
+ if (!r) {
+ r = {};
+ data.setRoot(setting, r);
+ }
+ r[setting.data.key.children] = [];
+ r.expandTriggerFlag = false;
+ r.curSelectedList = [];
+ r.noSelection = true;
+ r.createdNodes = [];
+ r.zId = 0;
+ r._ver = (new Date()).getTime();
+ },
+ //default cache of core
+ _initCache = function(setting) {
+ var c = data.getCache(setting);
+ if (!c) {
+ c = {};
+ data.setCache(setting, c);
+ }
+ c.nodes = [];
+ c.doms = [];
+ },
+ //default bindEvent of core
+ _bindEvent = function(setting) {
+ var o = setting.treeObj,
+ c = consts.event;
+ o.bind(c.NODECREATED, function (event, treeId, node) {
+ tools.apply(setting.callback.onNodeCreated, [event, treeId, node]);
+ });
+
+ o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) {
+ tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]);
+ });
+
+ o.bind(c.EXPAND, function (event, treeId, node) {
+ tools.apply(setting.callback.onExpand, [event, treeId, node]);
+ });
+
+ o.bind(c.COLLAPSE, function (event, treeId, node) {
+ tools.apply(setting.callback.onCollapse, [event, treeId, node]);
+ });
+
+ o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) {
+ tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]);
+ });
+
+ o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) {
+ tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]);
+ });
+
+ o.bind(c.REMOVE, function (event, treeId, treeNode) {
+ tools.apply(setting.callback.onRemove, [event, treeId, treeNode]);
+ });
+
+ o.bind(c.SELECTED, function (event, treeId, node) {
+ tools.apply(setting.callback.onSelected, [treeId, node]);
+ });
+ o.bind(c.UNSELECTED, function (event, treeId, node) {
+ tools.apply(setting.callback.onUnSelected, [treeId, node]);
+ });
+ },
+ _unbindEvent = function(setting) {
+ var o = setting.treeObj,
+ c = consts.event;
+ o.unbind(c.NODECREATED)
+ .unbind(c.CLICK)
+ .unbind(c.EXPAND)
+ .unbind(c.COLLAPSE)
+ .unbind(c.ASYNC_SUCCESS)
+ .unbind(c.ASYNC_ERROR)
+ .unbind(c.REMOVE)
+ .unbind(c.SELECTED)
+ .unbind(c.UNSELECTED);
+ },
+ //default event proxy of core
+ _eventProxy = function(event) {
+ var target = event.target,
+ setting = data.getSetting(event.data.treeId),
+ tId = "", node = null,
+ nodeEventType = "", treeEventType = "",
+ nodeEventCallback = null, treeEventCallback = null,
+ tmp = null;
+
+ if (tools.eqs(event.type, "mousedown")) {
+ treeEventType = "mousedown";
+ } else if (tools.eqs(event.type, "mouseup")) {
+ treeEventType = "mouseup";
+ } else if (tools.eqs(event.type, "contextmenu")) {
+ treeEventType = "contextmenu";
+ } else if (tools.eqs(event.type, "click")) {
+ if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) {
+ tId = tools.getNodeMainDom(target).id;
+ nodeEventType = "switchNode";
+ } else {
+ tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
+ if (tmp) {
+ tId = tools.getNodeMainDom(tmp).id;
+ nodeEventType = "clickNode";
+ }
+ }
+ } else if (tools.eqs(event.type, "dblclick")) {
+ treeEventType = "dblclick";
+ tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
+ if (tmp) {
+ tId = tools.getNodeMainDom(tmp).id;
+ nodeEventType = "switchNode";
+ }
+ }
+ if (treeEventType.length > 0 && tId.length == 0) {
+ tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
+ if (tmp) {tId = tools.getNodeMainDom(tmp).id;}
+ }
+ // event to node
+ if (tId.length>0) {
+ node = data.getNodeCache(setting, tId);
+ switch (nodeEventType) {
+ case "switchNode" :
+ if (!node.isParent) {
+ nodeEventType = "";
+ } else if (tools.eqs(event.type, "click")
+ || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) {
+ nodeEventCallback = handler.onSwitchNode;
+ } else {
+ nodeEventType = "";
+ }
+ break;
+ case "clickNode" :
+ nodeEventCallback = handler.onClickNode;
+ break;
+ }
+ }
+ // event to zTree
+ switch (treeEventType) {
+ case "mousedown" :
+ treeEventCallback = handler.onZTreeMousedown;
+ break;
+ case "mouseup" :
+ treeEventCallback = handler.onZTreeMouseup;
+ break;
+ case "dblclick" :
+ treeEventCallback = handler.onZTreeDblclick;
+ break;
+ case "contextmenu" :
+ treeEventCallback = handler.onZTreeContextmenu;
+ break;
+ }
+ var proxyResult = {
+ stop: false,
+ node: node,
+ nodeEventType: nodeEventType,
+ nodeEventCallback: nodeEventCallback,
+ treeEventType: treeEventType,
+ treeEventCallback: treeEventCallback
+ };
+ return proxyResult
+ },
+ //default init node of core
+ _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
+ if (!n) return;
+ var r = data.getRoot(setting),
+ childKey = setting.data.key.children;
+ n.level = level;
+ n.tId = setting.treeId + "_" + (++r.zId);
+ n.parentTId = parentNode ? parentNode.tId : null;
+ n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open;
+ if (n[childKey] && n[childKey].length > 0) {
+ n.isParent = true;
+ n.zAsync = true;
+ } else {
+ n.isParent = (typeof n.isParent == "string") ? tools.eqs(n.isParent, "true") : !!n.isParent;
+ n.open = (n.isParent && !setting.async.enable) ? n.open : false;
+ n.zAsync = !n.isParent;
+ }
+ n.isFirstNode = isFirstNode;
+ n.isLastNode = isLastNode;
+ n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);};
+ n.getPreNode = function() {return data.getPreNode(setting, n);};
+ n.getNextNode = function() {return data.getNextNode(setting, n);};
+ n.getIndex = function() {return data.getNodeIndex(setting, n);};
+ n.getPath = function() {return data.getNodePath(setting, n);};
+ n.isAjaxing = false;
+ data.fixPIdKeyValue(setting, n);
+ },
+ _init = {
+ bind: [_bindEvent],
+ unbind: [_unbindEvent],
+ caches: [_initCache],
+ nodes: [_initNode],
+ proxys: [_eventProxy],
+ roots: [_initRoot],
+ beforeA: [],
+ afterA: [],
+ innerBeforeA: [],
+ innerAfterA: [],
+ zTreeTools: []
+ },
+ //method of operate data
+ data = {
+ addNodeCache: function(setting, node) {
+ data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node;
+ },
+ getNodeCacheId: function(tId) {
+ return tId.substring(tId.lastIndexOf("_")+1);
+ },
+ addAfterA: function(afterA) {
+ _init.afterA.push(afterA);
+ },
+ addBeforeA: function(beforeA) {
+ _init.beforeA.push(beforeA);
+ },
+ addInnerAfterA: function(innerAfterA) {
+ _init.innerAfterA.push(innerAfterA);
+ },
+ addInnerBeforeA: function(innerBeforeA) {
+ _init.innerBeforeA.push(innerBeforeA);
+ },
+ addInitBind: function(bindEvent) {
+ _init.bind.push(bindEvent);
+ },
+ addInitUnBind: function(unbindEvent) {
+ _init.unbind.push(unbindEvent);
+ },
+ addInitCache: function(initCache) {
+ _init.caches.push(initCache);
+ },
+ addInitNode: function(initNode) {
+ _init.nodes.push(initNode);
+ },
+ addInitProxy: function(initProxy, isFirst) {
+ if (!!isFirst) {
+ _init.proxys.splice(0,0,initProxy);
+ } else {
+ _init.proxys.push(initProxy);
+ }
+ },
+ addInitRoot: function(initRoot) {
+ _init.roots.push(initRoot);
+ },
+ addNodesData: function(setting, parentNode, index, nodes) {
+ var childKey = setting.data.key.children, params;
+ if (!parentNode[childKey]) {
+ parentNode[childKey] = [];
+ index = -1;
+ } else if (index >= parentNode[childKey].length) {
+ index = -1;
+ }
+
+ if (parentNode[childKey].length > 0 && index === 0) {
+ parentNode[childKey][0].isFirstNode = false;
+ view.setNodeLineIcos(setting, parentNode[childKey][0]);
+ } else if (parentNode[childKey].length > 0 && index < 0) {
+ parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false;
+ view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]);
+ }
+ parentNode.isParent = true;
+
+ if (index<0) {
+ parentNode[childKey] = parentNode[childKey].concat(nodes);
+ } else {
+ params = [index, 0].concat(nodes);
+ parentNode[childKey].splice.apply(parentNode[childKey], params);
+ }
+ },
+ addSelectedNode: function(setting, node) {
+ var root = data.getRoot(setting);
+ if (!data.isSelectedNode(setting, node)) {
+ root.curSelectedList.push(node);
+ }
+ },
+ addCreatedNode: function(setting, node) {
+ if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
+ var root = data.getRoot(setting);
+ root.createdNodes.push(node);
+ }
+ },
+ addZTreeTools: function(zTreeTools) {
+ _init.zTreeTools.push(zTreeTools);
+ },
+ exSetting: function(s) {
+ $.extend(true, _setting, s);
+ },
+ fixPIdKeyValue: function(setting, node) {
+ if (setting.data.simpleData.enable) {
+ node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId;
+ }
+ },
+ getAfterA: function(setting, node, array) {
+ for (var i=0, j=_init.afterA.length; i<j; i++) {
+ _init.afterA[i].apply(this, arguments);
+ }
+ },
+ getBeforeA: function(setting, node, array) {
+ for (var i=0, j=_init.beforeA.length; i<j; i++) {
+ _init.beforeA[i].apply(this, arguments);
+ }
+ },
+ getInnerAfterA: function(setting, node, array) {
+ for (var i=0, j=_init.innerAfterA.length; i<j; i++) {
+ _init.innerAfterA[i].apply(this, arguments);
+ }
+ },
+ getInnerBeforeA: function(setting, node, array) {
+ for (var i=0, j=_init.innerBeforeA.length; i<j; i++) {
+ _init.innerBeforeA[i].apply(this, arguments);
+ }
+ },
+ getCache: function(setting) {
+ return caches[setting.treeId];
+ },
+ getNodeIndex: function(setting, node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l=p[childKey].length-1; i<=l; i++) {
+ if (p[childKey][i] === node) {
+ return i;
+ }
+ }
+ return -1;
+ },
+ getNextNode: function(setting, node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l=p[childKey].length-1; i<=l; i++) {
+ if (p[childKey][i] === node) {
+ return (i==l ? null : p[childKey][i+1]);
+ }
+ }
+ return null;
+ },
+ getNodeByParam: function(setting, nodes, key, value) {
+ if (!nodes || !key) return null;
+ var childKey = setting.data.key.children;
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (nodes[i][key] == value) {
+ return nodes[i];
+ }
+ var tmp = data.getNodeByParam(setting, nodes[i][childKey], key, value);
+ if (tmp) return tmp;
+ }
+ return null;
+ },
+ getNodeCache: function(setting, tId) {
+ if (!tId) return null;
+ var n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)];
+ return n ? n : null;
+ },
+ getNodeName: function(setting, node) {
+ var nameKey = setting.data.key.name;
+ return "" + node[nameKey];
+ },
+ getNodePath: function(setting, node) {
+ if (!node) return null;
+
+ var path;
+ if(node.parentTId) {
+ path = node.getParentNode().getPath();
+ } else {
+ path = [];
+ }
+
+ if (path) {
+ path.push(node);
+ }
+
+ return path;
+ },
+ getNodeTitle: function(setting, node) {
+ var t = setting.data.key.title === "" ? setting.data.key.name : setting.data.key.title;
+ return "" + node[t];
+ },
+ getNodes: function(setting) {
+ return data.getRoot(setting)[setting.data.key.children];
+ },
+ getNodesByParam: function(setting, nodes, key, value) {
+ if (!nodes || !key) return [];
+ var childKey = setting.data.key.children,
+ result = [];
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (nodes[i][key] == value) {
+ result.push(nodes[i]);
+ }
+ result = result.concat(data.getNodesByParam(setting, nodes[i][childKey], key, value));
+ }
+ return result;
+ },
+ getNodesByParamFuzzy: function(setting, nodes, key, value) {
+ if (!nodes || !key) return [];
+ var childKey = setting.data.key.children,
+ result = [];
+ value = value.toLowerCase();
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (typeof nodes[i][key] == "string" && nodes[i][key].toLowerCase().indexOf(value)>-1) {
+ result.push(nodes[i]);
+ }
+ result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value));
+ }
+ return result;
+ },
+ getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) {
+ if (!nodes) return (isSingle ? null : []);
+ var childKey = setting.data.key.children,
+ result = isSingle ? null : [];
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (tools.apply(filter, [nodes[i], invokeParam], false)) {
+ if (isSingle) {return nodes[i];}
+ result.push(nodes[i]);
+ }
+ var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam);
+ if (isSingle && !!tmpResult) {return tmpResult;}
+ result = isSingle ? tmpResult : result.concat(tmpResult);
+ }
+ return result;
+ },
+ getPreNode: function(setting, node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l=p[childKey].length; i<l; i++) {
+ if (p[childKey][i] === node) {
+ return (i==0 ? null : p[childKey][i-1]);
+ }
+ }
+ return null;
+ },
+ getRoot: function(setting) {
+ return setting ? roots[setting.treeId] : null;
+ },
+ getRoots: function() {
+ return roots;
+ },
+ getSetting: function(treeId) {
+ return settings[treeId];
+ },
+ getSettings: function() {
+ return settings;
+ },
+ getZTreeTools: function(treeId) {
+ var r = this.getRoot(this.getSetting(treeId));
+ return r ? r.treeTools : null;
+ },
+ initCache: function(setting) {
+ for (var i=0, j=_init.caches.length; i<j; i++) {
+ _init.caches[i].apply(this, arguments);
+ }
+ },
+ initNode: function(setting, level, node, parentNode, preNode, nextNode) {
+ for (var i=0, j=_init.nodes.length; i<j; i++) {
+ _init.nodes[i].apply(this, arguments);
+ }
+ },
+ initRoot: function(setting) {
+ for (var i=0, j=_init.roots.length; i<j; i++) {
+ _init.roots[i].apply(this, arguments);
+ }
+ },
+ isSelectedNode: function(setting, node) {
+ var root = data.getRoot(setting);
+ for (var i=0, j=root.curSelectedList.length; i<j; i++) {
+ if(node === root.curSelectedList[i]) return true;
+ }
+ return false;
+ },
+ removeNodeCache: function(setting, node) {
+ var childKey = setting.data.key.children;
+ if (node[childKey]) {
+ for (var i=0, l=node[childKey].length; i<l; i++) {
+ arguments.callee(setting, node[childKey][i]);
+ }
+ }
+ data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null;
+ },
+ removeSelectedNode: function(setting, node) {
+ var root = data.getRoot(setting);
+ for (var i=0, j=root.curSelectedList.length; i<j; i++) {
+ if(node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) {
+ root.curSelectedList.splice(i, 1);
+ setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, node]);
+ i--;j--;
+ }
+ }
+ },
+ setCache: function(setting, cache) {
+ caches[setting.treeId] = cache;
+ },
+ setRoot: function(setting, root) {
+ roots[setting.treeId] = root;
+ },
+ setZTreeTools: function(setting, zTreeTools) {
+ for (var i=0, j=_init.zTreeTools.length; i<j; i++) {
+ _init.zTreeTools[i].apply(this, arguments);
+ }
+ },
+ transformToArrayFormat: function (setting, nodes) {
+ if (!nodes) return [];
+ var childKey = setting.data.key.children,
+ r = [];
+ if (tools.isArray(nodes)) {
+ for (var i=0, l=nodes.length; i<l; i++) {
+ r.push(nodes[i]);
+ if (nodes[i][childKey])
+ r = r.concat(data.transformToArrayFormat(setting, nodes[i][childKey]));
+ }
+ } else {
+ r.push(nodes);
+ if (nodes[childKey])
+ r = r.concat(data.transformToArrayFormat(setting, nodes[childKey]));
+ }
+ return r;
+ },
+ transformTozTreeFormat: function(setting, sNodes) {
+ var i,l,
+ key = setting.data.simpleData.idKey,
+ parentKey = setting.data.simpleData.pIdKey,
+ childKey = setting.data.key.children;
+ if (!key || key=="" || !sNodes) return [];
+
+ if (tools.isArray(sNodes)) {
+ var r = [];
+ var tmpMap = [];
+ for (i=0, l=sNodes.length; i<l; i++) {
+ tmpMap[sNodes[i][key]] = sNodes[i];
+ }
+ for (i=0, l=sNodes.length; i<l; i++) {
+ if (tmpMap[sNodes[i][parentKey]] && sNodes[i][key] != sNodes[i][parentKey]) {
+ if (!tmpMap[sNodes[i][parentKey]][childKey])
+ tmpMap[sNodes[i][parentKey]][childKey] = [];
+ tmpMap[sNodes[i][parentKey]][childKey].push(sNodes[i]);
+ } else {
+ r.push(sNodes[i]);
+ }
+ }
+ return r;
+ }else {
+ return [sNodes];
+ }
+ }
+ },
+ //method of event proxy
+ event = {
+ bindEvent: function(setting) {
+ for (var i=0, j=_init.bind.length; i<j; i++) {
+ _init.bind[i].apply(this, arguments);
+ }
+ },
+ unbindEvent: function(setting) {
+ for (var i=0, j=_init.unbind.length; i<j; i++) {
+ _init.unbind[i].apply(this, arguments);
+ }
+ },
+ bindTree: function(setting) {
+ var eventParam = {
+ treeId: setting.treeId
+ },
+ o = setting.treeObj;
+ if (!setting.view.txtSelectedEnable) {
+ // for can't select text
+ o.bind('selectstart', handler.onSelectStart).css({
+ "-moz-user-select":"-moz-none"
+ });
+ }
+ o.bind('click', eventParam, event.proxy);
+ o.bind('dblclick', eventParam, event.proxy);
+ o.bind('mouseover', eventParam, event.proxy);
+ o.bind('mouseout', eventParam, event.proxy);
+ o.bind('mousedown', eventParam, event.proxy);
+ o.bind('mouseup', eventParam, event.proxy);
+ o.bind('contextmenu', eventParam, event.proxy);
+ },
+ unbindTree: function(setting) {
+ var o = setting.treeObj;
+ o.unbind('selectstart', handler.onSelectStart)
+ .unbind('click', event.proxy)
+ .unbind('dblclick', event.proxy)
+ .unbind('mouseover', event.proxy)
+ .unbind('mouseout', event.proxy)
+ .unbind('mousedown', event.proxy)
+ .unbind('mouseup', event.proxy)
+ .unbind('contextmenu', event.proxy);
+ },
+ doProxy: function(e) {
+ var results = [];
+ for (var i=0, j=_init.proxys.length; i<j; i++) {
+ var proxyResult = _init.proxys[i].apply(this, arguments);
+ results.push(proxyResult);
+ if (proxyResult.stop) {
+ break;
+ }
+ }
+ return results;
+ },
+ proxy: function(e) {
+ var setting = data.getSetting(e.data.treeId);
+ if (!tools.uCanDo(setting, e)) return true;
+ var results = event.doProxy(e),
+ r = true, x = false;
+ for (var i=0, l=results.length; i<l; i++) {
+ var proxyResult = results[i];
+ if (proxyResult.nodeEventCallback) {
+ x = true;
+ r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
+ }
+ if (proxyResult.treeEventCallback) {
+ x = true;
+ r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
+ }
+ }
+ return r;
+ }
+ },
+ //method of event handler
+ handler = {
+ onSwitchNode: function (event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (node.open) {
+ if (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true;
+ data.getRoot(setting).expandTriggerFlag = true;
+ view.switchNode(setting, node);
+ } else {
+ if (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true;
+ data.getRoot(setting).expandTriggerFlag = true;
+ view.switchNode(setting, node);
+ }
+ return true;
+ },
+ onClickNode: function (event, node) {
+ var setting = data.getSetting(event.data.treeId),
+ clickFlag = ( (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1;
+ if (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true;
+ if (clickFlag === 0) {
+ view.cancelPreSelectedNode(setting, node);
+ } else {
+ view.selectNode(setting, node, clickFlag === 2);
+ }
+ setting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]);
+ return true;
+ },
+ onZTreeMousedown: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]);
+ }
+ return true;
+ },
+ onZTreeMouseup: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]);
+ }
+ return true;
+ },
+ onZTreeDblclick: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onDblClick, [event, setting.treeId, node]);
+ }
+ return true;
+ },
+ onZTreeContextmenu: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onRightClick, [event, setting.treeId, node]);
+ }
+ return (typeof setting.callback.onRightClick) != "function";
+ },
+ onSelectStart: function(e){
+ var n = e.originalEvent.srcElement.nodeName.toLowerCase();
+ return (n === "input" || n === "textarea" );
+ }
+ },
+ //method of tools for zTree
+ tools = {
+ apply: function(fun, param, defaultValue) {
+ if ((typeof fun) == "function") {
+ return fun.apply(zt, param?param:[]);
+ }
+ return defaultValue;
+ },
+ canAsync: function(setting, node) {
+ var childKey = setting.data.key.children;
+ return (setting.async.enable && node && node.isParent && !(node.zAsync || (node[childKey] && node[childKey].length > 0)));
+ },
+ clone: function (obj){
+ if (obj === null) return null;
+ var o = tools.isArray(obj) ? [] : {};
+ for(var i in obj){
+ o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]);
+ }
+ return o;
+ },
+ eqs: function(str1, str2) {
+ return str1.toLowerCase() === str2.toLowerCase();
+ },
+ isArray: function(arr) {
+ return Object.prototype.toString.apply(arr) === "[object Array]";
+ },
+ $: function(node, exp, setting) {
+ if (!!exp && typeof exp != "string") {
+ setting = exp;
+ exp = "";
+ }
+ if (typeof node == "string") {
+ return $(node, setting ? setting.treeObj.get(0).ownerDocument : null);
+ } else {
+ return $("#" + node.tId + exp, setting ? setting.treeObj : null);
+ }
+ },
+ getMDom: function (setting, curDom, targetExpr) {
+ if (!curDom) return null;
+ while (curDom && curDom.id !== setting.treeId) {
+ for (var i=0, l=targetExpr.length; curDom.tagName && i<l; i++) {
+ if (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) {
+ return curDom;
+ }
+ }
+ curDom = curDom.parentNode;
+ }
+ return null;
+ },
+ getNodeMainDom:function(target) {
+ return ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0));
+ },
+ isChildOrSelf: function(dom, parentId) {
+ return ( $(dom).closest("#" + parentId).length> 0 );
+ },
+ uCanDo: function(setting, e) {
+ return true;
+ }
+ },
+ //method of operate ztree dom
+ view = {
+ addNodes: function(setting, parentNode, index, newNodes, isSilent) {
+ if (setting.data.keep.leaf && parentNode && !parentNode.isParent) {
+ return;
+ }
+ if (!tools.isArray(newNodes)) {
+ newNodes = [newNodes];
+ }
+ if (setting.data.simpleData.enable) {
+ newNodes = data.transformTozTreeFormat(setting, newNodes);
+ }
+ if (parentNode) {
+ var target_switchObj = $$(parentNode, consts.id.SWITCH, setting),
+ target_icoObj = $$(parentNode, consts.id.ICON, setting),
+ target_ulObj = $$(parentNode, consts.id.UL, setting);
+
+ if (!parentNode.open) {
+ view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE);
+ view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE);
+ parentNode.open = false;
+ target_ulObj.css({
+ "display": "none"
+ });
+ }
+
+ data.addNodesData(setting, parentNode, index, newNodes);
+ view.createNodes(setting, parentNode.level + 1, newNodes, parentNode, index);
+ if (!isSilent) {
+ view.expandCollapseParentNode(setting, parentNode, true);
+ }
+ } else {
+ data.addNodesData(setting, data.getRoot(setting), index, newNodes);
+ view.createNodes(setting, 0, newNodes, null, index);
+ }
+ },
+ appendNodes: function(setting, level, nodes, parentNode, index, initFlag, openFlag) {
+ if (!nodes) return [];
+ var html = [],
+ childKey = setting.data.key.children;
+
+ var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting),
+ tmpPChild = tmpPNode[childKey],
+ isFirstNode, isLastNode;
+
+ if (!tmpPChild || index >= tmpPChild.length) {
+ index = -1;
+ }
+
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ var node = nodes[i];
+ if (initFlag) {
+ isFirstNode = ((index===0 || tmpPChild.length == nodes.length) && (i == 0));
+ isLastNode = (index < 0 && i == (nodes.length - 1));
+ data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag);
+ data.addNodeCache(setting, node);
+ }
+
+ var childHtml = [];
+ if (node[childKey] && node[childKey].length > 0) {
+ //make child html first, because checkType
+ childHtml = view.appendNodes(setting, level + 1, node[childKey], node, -1, initFlag, openFlag && node.open);
+ }
+ if (openFlag) {
+
+ view.makeDOMNodeMainBefore(html, setting, node);
+ view.makeDOMNodeLine(html, setting, node);
+ data.getBeforeA(setting, node, html);
+ view.makeDOMNodeNameBefore(html, setting, node);
+ data.getInnerBeforeA(setting, node, html);
+ view.makeDOMNodeIcon(html, setting, node);
+ data.getInnerAfterA(setting, node, html);
+ view.makeDOMNodeNameAfter(html, setting, node);
+ data.getAfterA(setting, node, html);
+ if (node.isParent && node.open) {
+ view.makeUlHtml(setting, node, html, childHtml.join(''));
+ }
+ view.makeDOMNodeMainAfter(html, setting, node);
+ data.addCreatedNode(setting, node);
+ }
+ }
+ return html;
+ },
+ appendParentULDom: function(setting, node) {
+ var html = [],
+ nObj = $$(node, setting);
+ if (!nObj.get(0) && !!node.parentTId) {
+ view.appendParentULDom(setting, node.getParentNode());
+ nObj = $$(node, setting);
+ }
+ var ulObj = $$(node, consts.id.UL, setting);
+ if (ulObj.get(0)) {
+ ulObj.remove();
+ }
+ var childKey = setting.data.key.children,
+ childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, -1, false, true);
+ view.makeUlHtml(setting, node, html, childHtml.join(''));
+ nObj.append(html.join(''));
+ },
+ asyncNode: function(setting, node, isSilent, callback) {
+ var i, l;
+ if (node && !node.isParent) {
+ tools.apply(callback);
+ return false;
+ } else if (node && node.isAjaxing) {
+ return false;
+ } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) {
+ tools.apply(callback);
+ return false;
+ }
+ if (node) {
+ node.isAjaxing = true;
+ var icoObj = $$(node, consts.id.ICON, setting);
+ icoObj.attr({"style":"", "class":consts.className.BUTTON + " " + consts.className.ICO_LOADING});
+ }
+
+ var tmpParam = {};
+ for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) {
+ var pKey = setting.async.autoParam[i].split("="), spKey = pKey;
+ if (pKey.length>1) {
+ spKey = pKey[1];
+ pKey = pKey[0];
+ }
+ tmpParam[spKey] = node[pKey];
+ }
+ if (tools.isArray(setting.async.otherParam)) {
+ for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) {
+ tmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1];
+ }
+ } else {
+ for (var p in setting.async.otherParam) {
+ tmpParam[p] = setting.async.otherParam[p];
+ }
+ }
+
+ var _tmpV = data.getRoot(setting)._ver;
+ $.ajax({
+ contentType: setting.async.contentType,
+ cache: false,
+ type: setting.async.type,
+ url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url),
+ data: tmpParam,
+ dataType: setting.async.dataType,
+ success: function(msg) {
+ if (_tmpV != data.getRoot(setting)._ver) {
+ return;
+ }
+ var newNodes = [];
+ try {
+ if (!msg || msg.length == 0) {
+ newNodes = [];
+ } else if (typeof msg == "string") {
+ newNodes = eval("(" + msg + ")");
+ } else {
+ newNodes = msg;
+ }
+ } catch(err) {
+ newNodes = msg;
+ }
+
+ if (node) {
+ node.isAjaxing = null;
+ node.zAsync = true;
+ }
+ view.setNodeLineIcos(setting, node);
+ if (newNodes && newNodes !== "") {
+ newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes);
+ view.addNodes(setting, node, -1, !!newNodes ? tools.clone(newNodes) : [], !!isSilent);
+ } else {
+ view.addNodes(setting, node, -1, [], !!isSilent);
+ }
+ setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]);
+ tools.apply(callback);
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ if (_tmpV != data.getRoot(setting)._ver) {
+ return;
+ }
+ if (node) node.isAjaxing = null;
+ view.setNodeLineIcos(setting, node);
+ setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]);
+ }
+ });
+ return true;
+ },
+ cancelPreSelectedNode: function (setting, node, excludeNode) {
+ var list = data.getRoot(setting).curSelectedList,
+ i, n;
+ for (i=list.length-1; i>=0; i--) {
+ n = list[i];
+ if (node === n || (!node && (!excludeNode || excludeNode !== n))) {
+ $$(n, consts.id.A, setting).removeClass(consts.node.CURSELECTED);
+ if (node) {
+ data.removeSelectedNode(setting, node);
+ break;
+ } else {
+ list.splice(i, 1);
+ setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, n]);
+ }
+ }
+ }
+ },
+ createNodeCallback: function(setting) {
+ if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
+ var root = data.getRoot(setting);
+ while (root.createdNodes.length>0) {
+ var node = root.createdNodes.shift();
+ tools.apply(setting.view.addDiyDom, [setting.treeId, node]);
+ if (!!setting.callback.onNodeCreated) {
+ setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]);
+ }
+ }
+ }
+ },
+ createNodes: function(setting, level, nodes, parentNode, index) {
+ if (!nodes || nodes.length == 0) return;
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children,
+ openFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0);
+ root.createdNodes = [];
+ var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, index, true, openFlag),
+ parentObj, nextObj;
+
+ if (!parentNode) {
+ parentObj = setting.treeObj;
+ //setting.treeObj.append(zTreeHtml.join(''));
+ } else {
+ var ulObj = $$(parentNode, consts.id.UL, setting);
+ if (ulObj.get(0)) {
+ parentObj = ulObj;
+ //ulObj.append(zTreeHtml.join(''));
+ }
+ }
+ if (parentObj) {
+ if (index >= 0) {
+ nextObj = parentObj.children()[index];
+ }
+ if (index >=0 && nextObj) {
+ $(nextObj).before(zTreeHtml.join(''));
+ } else {
+ parentObj.append(zTreeHtml.join(''));
+ }
+ }
+
+ view.createNodeCallback(setting);
+ },
+ destroy: function(setting) {
+ if (!setting) return;
+ data.initCache(setting);
+ data.initRoot(setting);
+ event.unbindTree(setting);
+ event.unbindEvent(setting);
+ setting.treeObj.empty();
+ delete settings[setting.treeId];
+ },
+ expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) {
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children;
+ if (!node) {
+ tools.apply(callback, []);
+ return;
+ }
+ if (root.expandTriggerFlag) {
+ var _callback = callback;
+ callback = function(){
+ if (_callback) _callback();
+ if (node.open) {
+ setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]);
+ } else {
+ setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]);
+ }
+ };
+ root.expandTriggerFlag = false;
+ }
+ if (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) {
+ view.appendParentULDom(setting, node);
+ view.createNodeCallback(setting);
+ }
+ if (node.open == expandFlag) {
+ tools.apply(callback, []);
+ return;
+ }
+ var ulObj = $$(node, consts.id.UL, setting),
+ switchObj = $$(node, consts.id.SWITCH, setting),
+ icoObj = $$(node, consts.id.ICON, setting);
+
+ if (node.isParent) {
+ node.open = !node.open;
+ if (node.iconOpen && node.iconClose) {
+ icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
+ }
+
+ if (node.open) {
+ view.replaceSwitchClass(node, switchObj, consts.folder.OPEN);
+ view.replaceIcoClass(node, icoObj, consts.folder.OPEN);
+ if (animateFlag == false || setting.view.expandSpeed == "") {
+ ulObj.show();
+ tools.apply(callback, []);
+ } else {
+ if (node[childKey] && node[childKey].length > 0) {
+ ulObj.slideDown(setting.view.expandSpeed, callback);
+ } else {
+ ulObj.show();
+ tools.apply(callback, []);
+ }
+ }
+ } else {
+ view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE);
+ view.replaceIcoClass(node, icoObj, consts.folder.CLOSE);
+ if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) {
+ ulObj.hide();
+ tools.apply(callback, []);
+ } else {
+ ulObj.slideUp(setting.view.expandSpeed, callback);
+ }
+ }
+ } else {
+ tools.apply(callback, []);
+ }
+ },
+ expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) {
+ if (!node) return;
+ if (!node.parentTId) {
+ view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback);
+ return;
+ } else {
+ view.expandCollapseNode(setting, node, expandFlag, animateFlag);
+ }
+ if (node.parentTId) {
+ view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback);
+ }
+ },
+ expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) {
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children,
+ treeNodes = (node) ? node[childKey]: root[childKey],
+ selfAnimateSign = (node) ? false : animateFlag,
+ expandTriggerFlag = data.getRoot(setting).expandTriggerFlag;
+ data.getRoot(setting).expandTriggerFlag = false;
+ if (treeNodes) {
+ for (var i = 0, l = treeNodes.length; i < l; i++) {
+ if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign);
+ }
+ }
+ data.getRoot(setting).expandTriggerFlag = expandTriggerFlag;
+ view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback );
+ },
+ isSelectedNode: function (setting, node) {
+ if (!node) {
+ return false;
+ }
+ var list = data.getRoot(setting).curSelectedList,
+ i;
+ for (i=list.length-1; i>=0; i--) {
+ if (node === list[i]) {
+ return true;
+ }
+ }
+ return false;
+ },
+ makeDOMNodeIcon: function(html, setting, node) {
+ var nameStr = data.getNodeName(setting, node),
+ name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ html.push("<span id='", node.tId, consts.id.ICON,
+ "' title='' treeNode", consts.id.ICON," class='", view.makeNodeIcoClass(setting, node),
+ "' style='", view.makeNodeIcoStyle(setting, node), "'></span><span id='", node.tId, consts.id.SPAN,
+ "' class='", consts.className.NAME,
+ "'>",name,"</span>");
+ },
+ makeDOMNodeLine: function(html, setting, node) {
+ html.push("<span id='", node.tId, consts.id.SWITCH, "' title='' class='", view.makeNodeLineClass(setting, node), "' treeNode", consts.id.SWITCH,"></span>");
+ },
+ makeDOMNodeMainAfter: function(html, setting, node) {
+ html.push("</li>");
+ },
+ makeDOMNodeMainBefore: function(html, setting, node) {
+ html.push("<li id='", node.tId, "' class='", consts.className.LEVEL, node.level,"' tabindex='0' hidefocus='true' treenode>");
+ },
+ makeDOMNodeNameAfter: function(html, setting, node) {
+ html.push("</a>");
+ },
+ makeDOMNodeNameBefore: function(html, setting, node) {
+ var title = data.getNodeTitle(setting, node),
+ url = view.makeNodeUrl(setting, node),
+ fontcss = view.makeNodeFontCss(setting, node),
+ fontStyle = [];
+ for (var f in fontcss) {
+ fontStyle.push(f, ":", fontcss[f], ";");
+ }
+ html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,"' treeNode", consts.id.A," onclick=\"", (node.click || ''),
+ "\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''),
+ "'");
+ if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(/</g,'<').replace(/>/g,'>'),"'");}
+ html.push(">");
+ },
+ makeNodeFontCss: function(setting, node) {
+ var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss);
+ return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {};
+ },
+ makeNodeIcoClass: function(setting, node) {
+ var icoCss = ["ico"];
+ if (!node.isAjaxing) {
+ icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0];
+ if (node.isParent) {
+ icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
+ } else {
+ icoCss.push(consts.folder.DOCU);
+ }
+ }
+ return consts.className.BUTTON + " " + icoCss.join('_');
+ },
+ makeNodeIcoStyle: function(setting, node) {
+ var icoStyle = [];
+ if (!node.isAjaxing) {
+ var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node[setting.data.key.icon];
+ if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;");
+ if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) {
+ icoStyle.push("width:0px;height:0px;");
+ }
+ }
+ return icoStyle.join('');
+ },
+ makeNodeLineClass: function(setting, node) {
+ var lineClass = [];
+ if (setting.view.showLine) {
+ if (node.level == 0 && node.isFirstNode && node.isLastNode) {
+ lineClass.push(consts.line.ROOT);
+ } else if (node.level == 0 && node.isFirstNode) {
+ lineClass.push(consts.line.ROOTS);
+ } else if (node.isLastNode) {
+ lineClass.push(consts.line.BOTTOM);
+ } else {
+ lineClass.push(consts.line.CENTER);
+ }
+ } else {
+ lineClass.push(consts.line.NOLINE);
+ }
+ if (node.isParent) {
+ lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
+ } else {
+ lineClass.push(consts.folder.DOCU);
+ }
+ return view.makeNodeLineClassEx(node) + lineClass.join('_');
+ },
+ makeNodeLineClassEx: function(node) {
+ return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " ";
+ },
+ makeNodeTarget: function(node) {
+ return (node.target || "_blank");
+ },
+ makeNodeUrl: function(setting, node) {
+ var urlKey = setting.data.key.url;
+ return node[urlKey] ? node[urlKey] : null;
+ },
+ makeUlHtml: function(setting, node, html, content) {
+ html.push("<ul id='", node.tId, consts.id.UL, "' class='", consts.className.LEVEL, node.level, " ", view.makeUlLineClass(setting, node), "' style='display:", (node.open ? "block": "none"),"'>");
+ html.push(content);
+ html.push("</ul>");
+ },
+ makeUlLineClass: function(setting, node) {
+ return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : "");
+ },
+ removeChildNodes: function(setting, node) {
+ if (!node) return;
+ var childKey = setting.data.key.children,
+ nodes = node[childKey];
+ if (!nodes) return;
+
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ data.removeNodeCache(setting, nodes[i]);
+ }
+ data.removeSelectedNode(setting);
+ delete node[childKey];
+
+ if (!setting.data.keep.parent) {
+ node.isParent = false;
+ node.open = false;
+ var tmp_switchObj = $$(node, consts.id.SWITCH, setting),
+ tmp_icoObj = $$(node, consts.id.ICON, setting);
+ view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU);
+ view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU);
+ $$(node, consts.id.UL, setting).remove();
+ } else {
+ $$(node, consts.id.UL, setting).empty();
+ }
+ },
+ scrollIntoView: function(dom) {
+ if (!dom) {
+ return;
+ }
+ if (dom.scrollIntoViewIfNeeded) {
+ dom.scrollIntoViewIfNeeded();
+ } else if (dom.scrollIntoView) {
+ dom.scrollIntoView(false);
+ } else {
+ try{dom.focus().blur();}catch(e){}
+ }
+ },
+ setFirstNode: function(setting, parentNode) {
+ var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
+ if ( childLength > 0) {
+ parentNode[childKey][0].isFirstNode = true;
+ }
+ },
+ setLastNode: function(setting, parentNode) {
+ var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
+ if ( childLength > 0) {
+ parentNode[childKey][childLength - 1].isLastNode = true;
+ }
+ },
+ removeNode: function(setting, node) {
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children,
+ parentNode = (node.parentTId) ? node.getParentNode() : root;
+
+ node.isFirstNode = false;
+ node.isLastNode = false;
+ node.getPreNode = function() {return null;};
+ node.getNextNode = function() {return null;};
+
+ if (!data.getNodeCache(setting, node.tId)) {
+ return;
+ }
+
+ $$(node, setting).remove();
+ data.removeNodeCache(setting, node);
+ data.removeSelectedNode(setting, node);
+
+ for (var i = 0, l = parentNode[childKey].length; i < l; i++) {
+ if (parentNode[childKey][i].tId == node.tId) {
+ parentNode[childKey].splice(i, 1);
+ break;
+ }
+ }
+ view.setFirstNode(setting, parentNode);
+ view.setLastNode(setting, parentNode);
+
+ var tmp_ulObj,tmp_switchObj,tmp_icoObj,
+ childLength = parentNode[childKey].length;
+
+ //repair nodes old parent
+ if (!setting.data.keep.parent && childLength == 0) {
+ //old parentNode has no child nodes
+ parentNode.isParent = false;
+ parentNode.open = false;
+ tmp_ulObj = $$(parentNode, consts.id.UL, setting);
+ tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting);
+ tmp_icoObj = $$(parentNode, consts.id.ICON, setting);
+ view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU);
+ view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU);
+ tmp_ulObj.css("display", "none");
+
+ } else if (setting.view.showLine && childLength > 0) {
+ //old parentNode has child nodes
+ var newLast = parentNode[childKey][childLength - 1];
+ tmp_ulObj = $$(newLast, consts.id.UL, setting);
+ tmp_switchObj = $$(newLast, consts.id.SWITCH, setting);
+ tmp_icoObj = $$(newLast, consts.id.ICON, setting);
+ if (parentNode == root) {
+ if (parentNode[childKey].length == 1) {
+ //node was root, and ztree has only one root after move node
+ view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT);
+ } else {
+ var tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting);
+ view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS);
+ view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
+ }
+ } else {
+ view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
+ }
+ tmp_ulObj.removeClass(consts.line.LINE);
+ }
+ },
+ replaceIcoClass: function(node, obj, newName) {
+ if (!obj || node.isAjaxing) return;
+ var tmpName = obj.attr("class");
+ if (tmpName == undefined) return;
+ var tmpList = tmpName.split("_");
+ switch (newName) {
+ case consts.folder.OPEN:
+ case consts.folder.CLOSE:
+ case consts.folder.DOCU:
+ tmpList[tmpList.length-1] = newName;
+ break;
+ }
+ obj.attr("class", tmpList.join("_"));
+ },
+ replaceSwitchClass: function(node, obj, newName) {
+ if (!obj) return;
+ var tmpName = obj.attr("class");
+ if (tmpName == undefined) return;
+ var tmpList = tmpName.split("_");
+ switch (newName) {
+ case consts.line.ROOT:
+ case consts.line.ROOTS:
+ case consts.line.CENTER:
+ case consts.line.BOTTOM:
+ case consts.line.NOLINE:
+ tmpList[0] = view.makeNodeLineClassEx(node) + newName;
+ break;
+ case consts.folder.OPEN:
+ case consts.folder.CLOSE:
+ case consts.folder.DOCU:
+ tmpList[1] = newName;
+ break;
+ }
+ obj.attr("class", tmpList.join("_"));
+ if (newName !== consts.folder.DOCU) {
+ obj.removeAttr("disabled");
+ } else {
+ obj.attr("disabled", "disabled");
+ }
+ },
+ selectNode: function(setting, node, addFlag) {
+ if (!addFlag) {
+ view.cancelPreSelectedNode(setting, null, node);
+ }
+ $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED);
+ data.addSelectedNode(setting, node);
+ setting.treeObj.trigger(consts.event.SELECTED, [setting.treeId, node]);
+ },
+ setNodeFontCss: function(setting, treeNode) {
+ var aObj = $$(treeNode, consts.id.A, setting),
+ fontCss = view.makeNodeFontCss(setting, treeNode);
+ if (fontCss) {
+ aObj.css(fontCss);
+ }
+ },
+ setNodeLineIcos: function(setting, node) {
+ if (!node) return;
+ var switchObj = $$(node, consts.id.SWITCH, setting),
+ ulObj = $$(node, consts.id.UL, setting),
+ icoObj = $$(node, consts.id.ICON, setting),
+ ulLine = view.makeUlLineClass(setting, node);
+ if (ulLine.length==0) {
+ ulObj.removeClass(consts.line.LINE);
+ } else {
+ ulObj.addClass(ulLine);
+ }
+ switchObj.attr("class", view.makeNodeLineClass(setting, node));
+ if (node.isParent) {
+ switchObj.removeAttr("disabled");
+ } else {
+ switchObj.attr("disabled", "disabled");
+ }
+ icoObj.removeAttr("style");
+ icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
+ icoObj.attr("class", view.makeNodeIcoClass(setting, node));
+ },
+ setNodeName: function(setting, node) {
+ var title = data.getNodeTitle(setting, node),
+ nObj = $$(node, consts.id.SPAN, setting);
+ nObj.empty();
+ if (setting.view.nameIsHTML) {
+ nObj.html(data.getNodeName(setting, node));
+ } else {
+ nObj.text(data.getNodeName(setting, node));
+ }
+ if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) {
+ var aObj = $$(node, consts.id.A, setting);
+ aObj.attr("title", !title ? "" : title);
+ }
+ },
+ setNodeTarget: function(setting, node) {
+ var aObj = $$(node, consts.id.A, setting);
+ aObj.attr("target", view.makeNodeTarget(node));
+ },
+ setNodeUrl: function(setting, node) {
+ var aObj = $$(node, consts.id.A, setting),
+ url = view.makeNodeUrl(setting, node);
+ if (url == null || url.length == 0) {
+ aObj.removeAttr("href");
+ } else {
+ aObj.attr("href", url);
+ }
+ },
+ switchNode: function(setting, node) {
+ if (node.open || !tools.canAsync(setting, node)) {
+ view.expandCollapseNode(setting, node, !node.open);
+ } else if (setting.async.enable) {
+ if (!view.asyncNode(setting, node)) {
+ view.expandCollapseNode(setting, node, !node.open);
+ return;
+ }
+ } else if (node) {
+ view.expandCollapseNode(setting, node, !node.open);
+ }
+ }
+ };
+ // zTree defind
+ $.fn.zTree = {
+ consts : _consts,
+ _z : {
+ tools: tools,
+ view: view,
+ event: event,
+ data: data
+ },
+ getZTreeObj: function(treeId) {
+ var o = data.getZTreeTools(treeId);
+ return o ? o : null;
+ },
+ destroy: function(treeId) {
+ if (!!treeId && treeId.length > 0) {
+ view.destroy(data.getSetting(treeId));
+ } else {
+ for(var s in settings) {
+ view.destroy(settings[s]);
+ }
+ }
+ },
+ init: function(obj, zSetting, zNodes) {
+ var setting = tools.clone(_setting);
+ $.extend(true, setting, zSetting);
+ setting.treeId = obj.attr("id");
+ setting.treeObj = obj;
+ setting.treeObj.empty();
+ settings[setting.treeId] = setting;
+ //For some older browser,(e.g., ie6)
+ if(typeof document.body.style.maxHeight === "undefined") {
+ setting.view.expandSpeed = "";
+ }
+ data.initRoot(setting);
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children;
+ zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : [];
+ if (setting.data.simpleData.enable) {
+ root[childKey] = data.transformTozTreeFormat(setting, zNodes);
+ } else {
+ root[childKey] = zNodes;
+ }
+
+ data.initCache(setting);
+ event.unbindTree(setting);
+ event.bindTree(setting);
+ event.unbindEvent(setting);
+ event.bindEvent(setting);
+
+ var zTreeTools = {
+ setting : setting,
+ addNodes : function(parentNode, index, newNodes, isSilent) {
+ if (!parentNode) parentNode = null;
+ if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null;
+
+ var i = parseInt(index, 10);
+ if (isNaN(i)) {
+ isSilent = !!newNodes;
+ newNodes = index;
+ index = -1;
+ } else {
+ index = i;
+ }
+ if (!newNodes) return null;
+
+
+ var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]);
+ function addCallback() {
+ view.addNodes(setting, parentNode, index, xNewNodes, (isSilent==true));
+ }
+
+ if (tools.canAsync(setting, parentNode)) {
+ view.asyncNode(setting, parentNode, isSilent, addCallback);
+ } else {
+ addCallback();
+ }
+ return xNewNodes;
+ },
+ cancelSelectedNode : function(node) {
+ view.cancelPreSelectedNode(setting, node);
+ },
+ destroy : function() {
+ view.destroy(setting);
+ },
+ expandAll : function(expandFlag) {
+ expandFlag = !!expandFlag;
+ view.expandCollapseSonNode(setting, null, expandFlag, true);
+ return expandFlag;
+ },
+ expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) {
+ if (!node || !node.isParent) return null;
+ if (expandFlag !== true && expandFlag !== false) {
+ expandFlag = !node.open;
+ }
+ callbackFlag = !!callbackFlag;
+
+ if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) {
+ return null;
+ } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) {
+ return null;
+ }
+ if (expandFlag && node.parentTId) {
+ view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false);
+ }
+ if (expandFlag === node.open && !sonSign) {
+ return null;
+ }
+
+ data.getRoot(setting).expandTriggerFlag = callbackFlag;
+ if (!tools.canAsync(setting, node) && sonSign) {
+ view.expandCollapseSonNode(setting, node, expandFlag, true, showNodeFocus);
+ } else {
+ node.open = !expandFlag;
+ view.switchNode(this.setting, node);
+ showNodeFocus();
+ }
+ return expandFlag;
+
+ function showNodeFocus() {
+ var a = $$(node, setting).get(0);
+ if (a && focus !== false) {
+ view.scrollIntoView(a);
+ }
+ }
+ },
+ getNodes : function() {
+ return data.getNodes(setting);
+ },
+ getNodeByParam : function(key, value, parentNode) {
+ if (!key) return null;
+ return data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
+ },
+ getNodeByTId : function(tId) {
+ return data.getNodeCache(setting, tId);
+ },
+ getNodesByParam : function(key, value, parentNode) {
+ if (!key) return null;
+ return data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
+ },
+ getNodesByParamFuzzy : function(key, value, parentNode) {
+ if (!key) return null;
+ return data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
+ },
+ getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) {
+ isSingle = !!isSingle;
+ if (!filter || (typeof filter != "function")) return (isSingle ? null : []);
+ return data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam);
+ },
+ getNodeIndex : function(node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l = parentNode[childKey].length; i < l; i++) {
+ if (parentNode[childKey][i] == node) return i;
+ }
+ return -1;
+ },
+ getSelectedNodes : function() {
+ var r = [], list = data.getRoot(setting).curSelectedList;
+ for (var i=0, l=list.length; i<l; i++) {
+ r.push(list[i]);
+ }
+ return r;
+ },
+ isSelectedNode : function(node) {
+ return data.isSelectedNode(setting, node);
+ },
+ reAsyncChildNodes : function(parentNode, reloadType, isSilent) {
+ if (!this.setting.async.enable) return;
+ var isRoot = !parentNode;
+ if (isRoot) {
+ parentNode = data.getRoot(setting);
+ }
+ if (reloadType=="refresh") {
+ var childKey = this.setting.data.key.children;
+ for (var i = 0, l = parentNode[childKey] ? parentNode[childKey].length : 0; i < l; i++) {
+ data.removeNodeCache(setting, parentNode[childKey][i]);
+ }
+ data.removeSelectedNode(setting);
+ parentNode[childKey] = [];
+ if (isRoot) {
+ this.setting.treeObj.empty();
+ } else {
+ var ulObj = $$(parentNode, consts.id.UL, setting);
+ ulObj.empty();
+ }
+ }
+ view.asyncNode(this.setting, isRoot? null:parentNode, !!isSilent);
+ },
+ refresh : function() {
+ this.setting.treeObj.empty();
+ var root = data.getRoot(setting),
+ nodes = root[setting.data.key.children]
+ data.initRoot(setting);
+ root[setting.data.key.children] = nodes
+ data.initCache(setting);
+ view.createNodes(setting, 0, root[setting.data.key.children], null, -1);
+ },
+ removeChildNodes : function(node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ nodes = node[childKey];
+ view.removeChildNodes(setting, node);
+ return nodes ? nodes : null;
+ },
+ removeNode : function(node, callbackFlag) {
+ if (!node) return;
+ callbackFlag = !!callbackFlag;
+ if (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return;
+ view.removeNode(setting, node);
+ if (callbackFlag) {
+ this.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);
+ }
+ },
+ selectNode : function(node, addFlag, isSilent) {
+ if (!node) return;
+ if (tools.uCanDo(setting)) {
+ addFlag = setting.view.selectedMulti && addFlag;
+ if (node.parentTId) {
+ view.expandCollapseParentNode(setting, node.getParentNode(), true, false, showNodeFocus);
+ } else {
+ try{$$(node, setting).focus().blur();}catch(e){}
+ }
+ view.selectNode(setting, node, addFlag);
+ }
+
+ function showNodeFocus() {
+ if (isSilent) {
+ return;
+ }
+ var a = $$(node, setting).get(0);
+ view.scrollIntoView(a);
+ }
+ },
+ transformTozTreeNodes : function(simpleNodes) {
+ return data.transformTozTreeFormat(setting, simpleNodes);
+ },
+ transformToArray : function(nodes) {
+ return data.transformToArrayFormat(setting, nodes);
+ },
+ updateNode : function(node, checkTypeFlag) {
+ if (!node) return;
+ var nObj = $$(node, setting);
+ if (nObj.get(0) && tools.uCanDo(setting)) {
+ view.setNodeName(setting, node);
+ view.setNodeTarget(setting, node);
+ view.setNodeUrl(setting, node);
+ view.setNodeLineIcos(setting, node);
+ view.setNodeFontCss(setting, node);
+ }
+ }
+ }
+ root.treeTools = zTreeTools;
+ data.setZTreeTools(setting, zTreeTools);
+
+ if (root[childKey] && root[childKey].length > 0) {
+ view.createNodes(setting, 0, root[childKey], null, -1);
+ } else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
+ view.asyncNode(setting);
+ }
+ return zTreeTools;
+ }
+ };
+
+ var zt = $.fn.zTree,
+ $$ = tools.$,
+ consts = zt.consts;
+})(jQuery);
\ No newline at end of file
diff --git a/config.json b/config.json
index ec6c721..15ed21d 100644
--- a/config.json
+++ b/config.json
@@ -171,10 +171,10 @@
"name": "左侧导航栏",
"uri": "widgets/LeftNavigationBar/Widget"
}, {
- "name": "图上量算",
- "uri": "widgets/plotting/Widget",
+ "name": "要素标绘",
+ "uri": "widgets/plottingP/Widget",
"position": {
- "right": 10,
+ "right": 600,
"top": 96,
"width": "350px",
"height": "800px",
diff --git a/index.html b/index.html
index 77891bd..d8dff07 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,51 @@
<link rel="stylesheet" href="libs/layui/layui/css/layui.css">
<!-- axios -->
<script src='libs/axios/axios.js'></script>
- <!--<link rel="shortcut icon" href="images/shortcut.ico">-->
+ <!-- 动态标绘 -->
+ <!-- <script src='libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude.js'></script> -->
+
+ <!-- <script src='Zplot/js/plotPanelControl/PlottingUI.Include.js'></script> -->
+ <!-- <script src='Zplot/js/plotPanelControl/PlottingUI.js'></script> -->
+ <!-- <script src='Zplot/js/bootstrap.min.js'></script>
+ <script src='Zplot/js/jquery.min.js'></script>
+ <script src='Zplot/js/plotPanelControl/PlotPanel.js'></script> -->
+ <!-- <script src='Zplot/js/plotPanelControl/StylePanel.js'></script>
+ <script src='Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js'></script>
+ <script src='Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js'></script>
+ <script src='Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js'></script>
+ <script src='Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js'></script>
+ <script src='Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/colorpicker.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/colorpickerEditor.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/eye.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/layout.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/utils.js'></script> -->
+
+
+ <!-- <link rel="stylesheet" href="libs/Cesium/Widgets/shared.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/InfoBox/InfoBoxDescription.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Navigation/navigation.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Viewer/Viewer.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Timeline/Timeline.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/SceneModePicker/SceneModePicker.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/InfoBox/InfoBox.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Geocoder/Geocoder.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/VRButton/VRButton.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/FullscreenButton/FullscreenButton.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/CesiumInspector/CesiumInspector.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/CesiumWidget/CesiumWidget.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Animation/Animation.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/widgets.css"> -->
+
+
+
+ <!-- <link rel="shortcut icon" href="images/shortcut.ico"> -->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="jimu.js/css/jimu-ie.css"/>
<![endif]-->
diff --git a/jimu.js/MapManager.js b/jimu.js/MapManager.js
index 36b5d0c..22f8af9 100644
--- a/jimu.js/MapManager.js
+++ b/jimu.js/MapManager.js
@@ -71,7 +71,7 @@
},
- _createMap: function (mode, appConfig) {
+ _createMap: function (mode, appConfig) {//创建地图js
Cesium.Ion.defaultAccessToken = appConfig.cesiumToken;
@@ -81,7 +81,7 @@
this.map.scene.highDynamicRange = false;
this.map._cesiumWidget._creditContainer.style.display = "none";
-
+ // console.log(this.map.scene)
this.map.scene.globe.depthTestAgainstTerrain = true;
this.map.scene.logarithmicDepthBuffer = false;
this.map.scene.globe.baseColor = Cesium.Color.BLACK;
diff --git a/js/bootstrap.min.js b/js/bootstrap.min.js
new file mode 100644
index 0000000..9bcd2fc
--- /dev/null
+++ b/js/bootstrap.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
+ * Copyright 2011-2016 Twitter, Inc.
+ * Licensed under the MIT license
+ */
+if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){
+this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
\ No newline at end of file
diff --git a/js/jquery.min.js b/js/jquery.min.js
new file mode 100644
index 0000000..4024b66
--- /dev/null
+++ b/js/jquery.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v2.2.4 | (c) jQuery Foundation | 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=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.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()},push:g,sort:c.sort,splice:c.splice},n.extend=n.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||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;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,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=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=ga(),z=ga(),A=ga(),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="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),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")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=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)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){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 fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(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 la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(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 oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.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]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);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"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",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(".#.+[+~]")}),ia(function(a){var b=n.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=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.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===n||a.ownerDocument===v&&t(v,a)?-1:b===n||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,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!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 fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.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},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.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=fa.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=fa.selectors={cacheLength:50,createPseudo:ha,match:W,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(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===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]||fa.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]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.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(ba,ca).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=fa.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(P," ")+" ").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,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(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:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(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:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).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 Y.test(a.nodeName)},input:function(a){return X.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:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(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,k=[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(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(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 ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(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 va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(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=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(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=[ra(sa(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 va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.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(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.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(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(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}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(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&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.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=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;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},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
+}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.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=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.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 N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!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&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
+void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=n.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
diff --git a/js/plotPanelControl/PlotPanel.js b/js/plotPanelControl/PlotPanel.js
new file mode 100644
index 0000000..cab1d86
--- /dev/null
+++ b/js/plotPanelControl/PlotPanel.js
@@ -0,0 +1,226 @@
+function initPlotPanel(div, serverUrl, drawControl,plotEditControl,plotting){
+ var plotPanel = document.getElementById(div);
+
+ var treeNodeStyle = document.createElement("div");
+ treeNodeStyle.style.height = '50%';
+ treeNodeStyle.style.width = '100%';
+ treeNodeStyle.style.border = '1px solid #617775';
+ treeNodeStyle.style.overflow ='scroll';
+
+ var treeNode = document.createElement("div");
+ treeNode.id = "tree";
+ treeNode.className = "ztree";
+
+ var iconNodeStyle = document.createElement("div");
+ iconNodeStyle.style.height = '50%';
+ iconNodeStyle.style.width = '100%';
+
+ var iconNode = document.createElement("div");
+ iconNode.id = "icon";
+ iconNode.style.height = '100%';
+ iconNode.style.width = '100%';
+ iconNode.style.border = '1px solid #617775';
+ iconNode.style.overflow ='scroll';
+
+ treeNodeStyle.appendChild(treeNode);
+ iconNodeStyle.appendChild(iconNode);
+
+ plotPanel.appendChild(treeNodeStyle);
+ plotPanel.appendChild(iconNodeStyle);
+
+ function beforeClickTreeNode(treeId, treeNode){
+ var tree = $.fn.zTree.getZTreeObj(treeId);
+ if (treeNode.isParent) {
+ tree.expandNode(treeNode);
+ return false;
+ } else {
+ var iconNode = document.getElementById("icon");
+ iconNode.innerHTML = "";
+ createDrawNodes(treeNode, iconNode, drawControl, serverUrl);
+ }
+ }
+
+ var setting = {
+ view: {
+ dblClickExpand: false,
+ showLine: true,
+ selectedMulti: false
+ },
+ data: {
+ simpleData: {
+ enable:true,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: 0
+ }
+ },
+ callback: {
+ beforeClick: beforeClickTreeNode
+ }
+ };
+ var symbolLibManager = plotting.getSymbolLibManager();
+ if(symbolLibManager.isInitializeOK()){
+ var symbolTreeData = analysisSymbolTree(symbolLibManager);
+ $.fn.zTree.init($("#tree"), setting, symbolTreeData);
+ } else {
+ symbolLibManager.initializecompleted.addEventListener(function (result) {
+ if(result.libIDs.length !== 0){
+ var symbolTreeData = analysisSymbolTree(symbolLibManager);
+ $.fn.zTree.init($("#tree"), setting, symbolTreeData);
+ }
+ });
+ symbolLibManager.initializeAsync();
+ }
+}
+
+function analysisSymbolTree(symbolLibManager) {
+ var treeData = [];
+ var idIndex = addBasicCellTreeNodes(treeData);
+
+ for(var i = 0; i < symbolLibManager.getSymbolLibNumber(); i++){
+ var symbolLib = symbolLibManager.getSymbolLibByIndex(i);
+ var rootSymbolInfo = symbolLib.getRootSymbolInfo();
+ var rootSymbolIconUrl = symbolLib.getRootSymbolIconUrl();
+
+ if(rootSymbolInfo.symbolNodeType === "SYMBOL_GROUP"){
+ var rootNode = new Object();
+ rootNode.id = idIndex+i;
+ rootNode.pId = 0;
+ rootNode.name = rootSymbolInfo.symbolName;
+ rootNode.fullName = rootSymbolInfo.symbolName +"/";
+ treeData.push(rootNode);
+
+ idIndex = innerAnalysisSymbolTree(rootSymbolInfo.childNodes, treeData, rootNode, rootSymbolIconUrl);
+ }
+
+ }
+
+ return treeData;
+}
+
+function createDrawNodes(treeNode, iconNode, drawControl, serverUrl){
+ var drawNodeClick = function(){
+ if(drawControl !== null){
+ drawControl.deactivate();
+ drawControl.libID = this.libID;
+ drawControl.code = this.symbolCode;
+ //设置标号默认的模型路径
+ drawControl.drawFinishEvent.addEventListener(function (geo) {
+ if(geo.symbolType === SuperMap.Plot.SymbolType.DOTSYMBOL ){
+ geo.modelPath = './SampleData/plot/Cesium_Air.gltf';
+ }
+ });
+ drawControl.serverUrl = this.serverUrl;
+
+ drawControl.activate();
+ if(undefined !== plotEditControl){
+ plotEditControl.deactivate();
+ }
+ }
+ }
+
+ var me = this;
+ var drawData = treeNode.drawData;
+
+ var table = document.createElement("table");
+ table.style.height = "100%";
+ table.style.width = "100%";
+ var i = 0;
+ var rowLength = (drawData.length%3 === 0) ? drawData.length/3 : drawData.length/3+1;
+ for(var j = 0; j < rowLength; j++){
+ var tr = document.createElement("tr");
+ for(var k = 0; k < 3; k++){
+ if(drawData[i]){
+ //存储菜单信息
+ var td = document.createElement("td");
+ var drawNode = document.createElement("div");
+ drawNode.onclick = drawNodeClick;
+ drawNode.style.textAlign = "center";
+ drawNode.id = drawData[i].libID+ ""+ drawData[i].symbolCode;
+ drawNode.libID = drawData[i].libID;
+ drawNode.symbolCode = drawData[i].symbolCode;
+ drawNode.serverUrl = serverUrl;
+ //图片
+ var img = document.createElement("img");
+ img.src = drawData[i].icon;
+ //文本
+ var text = document.createElement("div");
+ text.innerHTML = drawData[i].symbolName;
+
+ drawNode.appendChild(img);
+ drawNode.appendChild(text);
+ td.appendChild(drawNode);
+
+ tr.appendChild(td);
+ }
+ i++;
+ }
+ table.appendChild(tr);
+ }
+
+ iconNode.appendChild(table);
+}
+
+function addBasicCellTreeNodes(treeData){
+ var cellRootNode = new Object();
+ cellRootNode.id = 1;
+ cellRootNode.pId = 0;
+ cellRootNode.name = "基本标号";
+ cellRootNode.fullName = "BasicCell" +"/";
+ cellRootNode.drawData = [];
+ treeData.push(cellRootNode);
+
+ var symbolCode = [24, 28, 29, 31, 34, 410, 32, 590, 360, 390, 400, 350, 26, 370, 380, 44, 48, /*320,*/
+ 1019, 1022, /*1024, 321,1023,*/ 1025, 1013, 1014,3801,4401 /*1016, 1017, 1026,*/ /*1001 1003, 1004*/];
+ var symbolName = ["折线", "平行四边形", "圆", "椭圆", "注记", "正多边形", "多边形", "贝塞尔曲线", "闭合贝塞尔曲线",
+ "集结地", "大括号", "梯形", "矩形", "弓形", "扇形", "弧线", "平行线", /*"注记指示框",*/ "同心圆", "组合圆",
+ /*"标注框", "多角标注框","自由线",*/ "节点链", "跑道形", "八字形","扇形","弧线"/*"箭头线", "沿线注记", "线型标注", "对象间连线"*/
+ /*"多边形区域", "扇形区域"*/];
+ var cellId = cellRootNode.id + 1;
+ for(var i = 0; i < symbolCode.length; i++){
+ var drawCellNode = {
+ id: cellId++,
+ pId: 0,
+ icon:"js/plotPanelControl/" + cellRootNode.fullName + symbolCode[i] + ".png",
+ symbolCode: symbolCode[i],
+ libID: 0,
+ symbolName: symbolName[i]
+ };
+ cellRootNode.drawData.push(drawCellNode);
+ }
+
+ return cellId;
+}
+
+
+function innerAnalysisSymbolTree(childSymbolInfos, treeData, parentNode, rootSymbolIconUrl){
+ var drawData = [];
+ var treeNodeId = parentNode.id+1;
+ for(var i = 0; i < childSymbolInfos.length; i++){
+ if(childSymbolInfos[i].symbolNodeType === "SYMBOL_GROUP"){
+ var treeNode = new Object();
+ treeNode.id = treeNodeId++;
+ treeNode.pId = parentNode.id;
+ treeNode.name = childSymbolInfos[i].symbolName;
+ treeNode.fullName = parentNode.fullName + childSymbolInfos[i].symbolName+"/";
+ treeData.push(treeNode);
+
+ treeNodeId = innerAnalysisSymbolTree(childSymbolInfos[i].childNodes, treeData, treeNode, rootSymbolIconUrl);
+ } else if(childSymbolInfos[i].symbolNodeType === "SYMBOL_NODE"){
+ var drawNode = new Object();
+ drawNode.id = treeNodeId++;
+ drawNode.pId = parentNode.id;
+ drawNode.icon = rootSymbolIconUrl + parentNode.fullName + childSymbolInfos[i].symbolCode + ".png";
+ drawNode.symbolCode = childSymbolInfos[i].symbolCode;
+ drawNode.libID = childSymbolInfos[i].libID;
+ drawNode.symbolName = childSymbolInfos[i].symbolName + "_" + childSymbolInfos[i].symbolCode;
+ drawData.push(drawNode);
+ }
+ }
+
+ if(drawData.length !== 0){
+ parentNode.drawData = drawData;
+ }
+
+ return treeNodeId;
+}
\ No newline at end of file
diff --git a/js/plotPanelControl/PlottingUI.Include.js b/js/plotPanelControl/PlottingUI.Include.js
new file mode 100644
index 0000000..497bec7
--- /dev/null
+++ b/js/plotPanelControl/PlottingUI.Include.js
@@ -0,0 +1,31 @@
+(function() {
+ // var isWinRT = (typeof Windows === "undefined") ? false : true;
+ var r = new RegExp("(^|(.*?\\/))(PlottingUI.Include\.js)(\\?|$)"),
+ s = document.getElementsByTagName('script'),
+ src, m, baseurl = "";
+ for(var i=0, len=s.length; i<len; i++) {
+ src = s[i].getAttribute('src');
+ if(src) {
+ var m = src.match(r);
+ if(m) {
+ baseurl = m[1];
+ break;
+ }
+ }
+ }
+ function inputScript(inc){
+ // if (!isWinRT) {
+ var script = '<' + 'script type="text/javascript" src="' + inc + '"' + '><' + '/script>';
+ document.writeln(script);
+ // } else {
+ // var script = document.createElement("script");
+ // script.src = inc;
+ // document.getElementsByTagName("HEAD")[0].appendChild(script);
+ // }
+ }
+ //加载类库资源文件
+ function loadSMLibs() {
+ inputScript(baseurl+'PlottingUI.js');
+ }
+ loadSMLibs();
+})();
diff --git a/js/plotPanelControl/PlottingUI.js b/js/plotPanelControl/PlottingUI.js
new file mode 100644
index 0000000..809c5a6
--- /dev/null
+++ b/js/plotPanelControl/PlottingUI.js
@@ -0,0 +1,46 @@
+//var isWinRT = (typeof Windows === "undefined") ? false : true;
+{
+ inputLink("colorpicker/css/colorpicker.css");
+ inputLink("colorpicker/css/layout.css");
+ inputLink("jquery-easyui-1.4.4/css/easyui.css");
+ inputLink("zTree/css/zTreeStyle.css");
+
+ inputScript("jquery-easyui-1.4.4/jquery.min.js");
+ inputScript("jquery-easyui-1.4.4/jquery-ui.js");
+ inputScript("jquery-easyui-1.4.4/jquery.easyui.min.js");
+
+ inputScript("colorpicker/js/colorpicker.js");
+ inputScript("colorpicker/js/colorpickerEditor.js");
+ inputScript("colorpicker/js/eye.js");
+ inputScript("colorpicker/js/utils.js");
+ inputScript("colorpicker/js/layout.js");
+
+ inputScript("zTree/jquery.ztree.core.js");
+
+ inputScript("./PlotPanel.js");
+ inputScript("./StylePanel.js");
+ // inputScript("TreePanel.js");
+
+}
+
+function inputLink(inc){
+ //if (!isWinRT) {
+ var link = '<' + 'link rel="stylesheet" type="text/css" media="screen,projection" href="js/plotPanelControl/' + inc + '"' + '><' + '/>';
+ document.writeln(link);
+ //} else {
+ // var link = document.createElement("link");
+ // link.href = "../PlottingPanel/zTree/" + inc;
+ // document.getElementsByTagName("HEAD")[0].appendChild(link);
+ //}
+}
+
+function inputScript(inc){
+ //if (!isWinRT) {
+ var script = '<' + 'script type="text/javascript" src="js/plotPanelControl/' + inc + '"' + '><' + '/script>';
+ document.writeln(script);
+ //} else {
+ // var script = document.createElement("script");
+ // script.src = "../PlottingPanel/zTree/" + inc;
+ // document.getElementsByTagName("HEAD")[0].appendChild(script);
+ //}
+}
diff --git a/js/plotPanelControl/StylePanel.js b/js/plotPanelControl/StylePanel.js
new file mode 100644
index 0000000..2918944
--- /dev/null
+++ b/js/plotPanelControl/StylePanel.js
@@ -0,0 +1,1250 @@
+/**
+ * Created by Administrator on 2017/12/8 0008.
+ */
+
+ /**
+ * 属性面板管理器
+ * @param options
+ * {
+ * div - 属性面板div
+ * scene - viewer.scene
+ * graphicObjectHandler - 标绘Handler
+ * }
+ * @constructor
+ * @example
+ */
+ var StylePanel = function(div,plotEditControl,plotting) {
+ var _self = this;
+ this._div = div;
+ this._plottingEdit = plotEditControl;
+ this._plotting = plotting;
+ this._selectedFeature = undefined;
+ this._group = ["基本", "衬线", "军标大小", "线型", "填充", "文本", "子标号", "箭头类型", "缩放比例", "旋转角度", "图片大小"];
+ this._displayName = ["镜像", "标号级别", "点标号显示模式", "模型路径", "图片路径", "整体高度", "Width", "Height", "x", "y", "z", "拉伸高度", "模型缩放","矢量缩放"];
+ this._displayLineStyleName = ["线宽", "边线颜色", "线型"];
+ this._displayFillStyleName = ["背景色", "背景透明", "渐变填充角度", "渐变填充模式", "渐变填充竖直偏移", "渐变填充水平偏移", "前景色", "填充模式", "填充透明度"];
+ this._displayTextContentName = ["注记内容", "注记位置", "字体背景颜色", "注记大小", "注记字体", "注记颜色", "字体边框", "边框宽度", "边框颜色"];
+ this._displaySurroundLineName = ["衬线类型", "衬线宽", "衬线颜色", "衬线透明度"];
+ this._displayPositionName = ["经度", "纬度", "高度"];
+ this._displayExtendWallName = ["绘制墙"];
+ this.init();
+ // 标号被选中回调函数
+ this._plottingEdit.SelectedEvent.addEventListener(function(geoGraphicObject) {
+ _self._selectedFeature = geoGraphicObject;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ });
+
+ // 选中标号被释放回调函数
+ this._plottingEdit.UnSelectedEvent.addEventListener(function() {
+ _self._selectedFeature = undefined;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ });
+
+ this._plottingEdit.ModifiedEvent.addEventListener(function (geoGraphicObject) {
+ _self._selectedFeature = geoGraphicObject;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+
+ });
+
+ this._plottingEdit.RemoveFeatureEvent.addEventListener(function() {
+ _self._selectedFeature = undefined;
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ });
+
+ };
+
+
+
+
+ /**
+ * @private
+ * @function init
+ * @description 初始化属性面板
+ */
+ StylePanel.prototype.init = function() {
+
+ var _self = this;
+
+ function afterModifySelectFeature() {
+ var updated = $('#pg').propertygrid('getChanges', "updated");
+ if (updated.length !== 0) {
+ _self.updateSelectFeature(updated[0], _self._selectedFeature);
+ }
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ }
+
+ var stylePanel = document.getElementById(_self._div);
+ var propertygrid = document.createElement('table');
+ propertygrid.id = "pg";
+ propertygrid.className = "easyui-propertygrid";
+ stylePanel.appendChild(propertygrid);
+
+ $('#pg').propertygrid({
+ showGroup:true,
+ columns : [[
+ { field : 'name', title: 'Name', width: 100, resizable: true },
+ { field : 'value', title: 'Value', width: 100, resizable: true }
+ ]],
+ onAfterEdit : afterModifySelectFeature
+ });
+ };
+
+ /**
+ * @param graphicObject
+ * @returns {Array}
+ */
+ StylePanel.prototype.collectionPropertyGridRows = function(graphicObject) {
+
+ if (null === graphicObject || undefined === graphicObject || graphicObject.symbolName === "GroupObject") {
+ return [];
+ }
+
+ var rows = [];
+ if (null !== graphicObject && undefined !== graphicObject) {
+ rows = [
+ {"name": "标号ID", "value": graphicObject.id, "group": "标号"},
+ {"name": "标号库ID", "value": graphicObject.libID, "group": "标号"},
+ {"name": "标号code", "value": graphicObject.code, "group": "标号"},
+ {"name": "标号名字", "value": graphicObject.symbolName, "group": "标号"}
+ ];
+
+ var annotationRows = this.getAnnotationRows(graphicObject);
+ var symbolRankRows = this.getSymbolRankRows(graphicObject);
+ var surroundLineTypeRows = this.getSurroundLineTypeRows(graphicObject);
+ var dotShowModeRows = this.getDotShowModeRows(graphicObject);
+ var fillSymbolIDRows = this.getFillSymbolIDRows(graphicObject);
+ var fillGradientRows = this.getFillGradientModeRows(graphicObject);
+ var lineStyleRows = this.getLineStyleRows(graphicObject);
+ var subSymbolsTypeRows = this.getSubSymbolsTypeRows(graphicObject);
+
+
+ // 镜像
+ var dotSymbolNegativeImageObj = new Object();
+ dotSymbolNegativeImageObj.name = this._displayName[0];
+ dotSymbolNegativeImageObj.value = this.checkboxValueToString(this._selectedFeature.isNegativeImage);
+ dotSymbolNegativeImageObj.group = this._group[0];
+ dotSymbolNegativeImageObj.editor = {"type": 'checkbox', "options": {"on": true, "off": false}};
+
+ // 标号级别
+ var dotSymbolRankObj = new Object();
+ dotSymbolRankObj.name = this._displayName[1];
+ dotSymbolRankObj.value = this.symbolRankToString(this._selectedFeature.symbolRank);
+ dotSymbolRankObj.group = this._group[0];
+ dotSymbolRankObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": symbolRankRows}
+ };
+
+ // 显示模式
+ var dotSymbolShowModeObj = new Object();
+ dotSymbolShowModeObj.name = this._displayName[2];
+ dotSymbolShowModeObj.value = this.showModeToString(this._selectedFeature.showMode);
+ dotSymbolShowModeObj.group = this._group[0];
+ dotSymbolShowModeObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": dotShowModeRows}
+ };
+
+ // 模型ID
+ var modelIdObj = new Object();
+ modelIdObj.name = this._displayName[3];
+ modelIdObj.value = this._selectedFeature.modelPath;
+ modelIdObj.group = this._group[0];
+ modelIdObj.editor = "text";
+
+ // 图片路径
+ var picturePathObj = new Object();
+ picturePathObj.name = this._displayName[4];
+ picturePathObj.value = this._selectedFeature.picturePath;
+ picturePathObj.group = this._group[0];
+ picturePathObj.editor = "text";
+
+
+ // 线宽
+ var lineWidthObj = new Object();
+ lineWidthObj.name = this._displayLineStyleName[0];
+ lineWidthObj.value = 1 === graphicObject._symbolType ? this._selectedFeature.gridLineWidth : this._selectedFeature.symbolStyle.lineWidth;
+ lineWidthObj.group = this._group[3];
+ lineWidthObj.editor = "text";
+
+ // 线色
+ var lineColorObj = new Object();
+ lineColorObj.name = this._displayLineStyleName[1];
+ lineColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.lineColor);
+ lineColorObj.group = this._group[3];
+ lineColorObj.editor = "colorpicker";
+
+ //拉伸墙
+ var extendWallObj = new Object();
+ extendWallObj.name = this._displayExtendWallName[0];
+ extendWallObj.value = this._selectedFeature.extendWallHeight;
+ extendWallObj.group = "绘制墙";
+ extendWallObj.editor = "text";
+
+ // 线型
+ var lineStyleObj = new Object();
+ lineStyleObj.name = this._displayLineStyleName[2];
+ lineStyleObj.value = this.lineStyleToString(this._selectedFeature.lineSymbolID);
+ lineStyleObj.group = this._group[3];
+ lineStyleObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": lineStyleRows}
+ };
+
+ // 填充背景色
+ var fillBackColorObj = new Object();
+ fillBackColorObj.name = this._displayFillStyleName[0];
+ fillBackColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.fillBackColor);
+ fillBackColorObj.group = this._group[4];
+ fillBackColorObj.editor = "colorpicker";
+
+ // 背景透明
+ var fillBackOpaqueObj = new Object();
+ fillBackOpaqueObj.name = this._displayFillStyleName[1];
+ fillBackOpaqueObj.value = this._selectedFeature.symbolStyle.fillBackOpaque;
+ fillBackOpaqueObj.group = this._group[4];
+ fillBackOpaqueObj.editor = {"type": "checkbox", "options": {"on": true, "off": false}};
+
+ // 渐变填充角度
+ var fillGradientAngleObj = new Object();
+ fillGradientAngleObj.name = this._displayFillStyleName[2];
+ fillGradientAngleObj.value = this._selectedFeature.symbolStyle.fillGradientAngle;
+ fillGradientAngleObj.group = this._group[4];
+ fillGradientAngleObj.editor = "text";
+
+ // 渐变填充模式
+ var fillGradientModeObj = new Object();
+ fillGradientModeObj.name = this._displayFillStyleName[3];
+ fillGradientModeObj.value = this.fillGradientModeToString(this._selectedFeature.symbolStyle.fillGradientMode);
+ fillGradientModeObj.group = this._group[4];
+ fillGradientModeObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": fillGradientRows}
+ };
+
+ // 渐变填充竖直偏移
+ var fillGradientOffsetRatioYObj = new Object();
+ fillGradientOffsetRatioYObj.name = this._displayFillStyleName[4];
+ fillGradientOffsetRatioYObj.value = this._selectedFeature.symbolStyle.fillGradientOffsetRatioY;
+ fillGradientOffsetRatioYObj.group = this._group[4];
+ fillGradientOffsetRatioYObj.editor = "text";
+
+ // 渐变填充水平偏移
+ var fillGradientOffsetRatioXObj = new Object();
+ fillGradientOffsetRatioXObj.name = this._displayFillStyleName[5];
+ fillGradientOffsetRatioXObj.value = this._selectedFeature.symbolStyle.fillGradientOffsetRatioY;
+ fillGradientOffsetRatioXObj.group = this._group[4];
+ fillGradientOffsetRatioXObj.editor = "text";
+
+ // 前景色
+ var fillForeColorObj = new Object();
+ fillForeColorObj.name = this._displayFillStyleName[6];
+ fillForeColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.fillForeColor);
+ fillForeColorObj.group = this._group[4];
+ fillForeColorObj.editor = "colorpicker";
+
+ // 填充模式
+ var fillSymbolIdObj = new Object();
+ fillSymbolIdObj.name = this._displayFillStyleName[7];
+ fillSymbolIdObj.value = this.fillSymbolIdToString(this._selectedFeature.symbolStyle.fillSymbolID);
+ fillSymbolIdObj.group = this._group[4];
+ fillSymbolIdObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": fillSymbolIDRows}
+ };
+
+ // 填充透明度
+ var fillOpaqueRateObj = new Object();
+ fillOpaqueRateObj.name = this._displayFillStyleName[8];
+ fillOpaqueRateObj.value = this._selectedFeature.symbolStyle.fillOpaqueRate;
+ fillOpaqueRateObj.group = this._group[4];
+ fillOpaqueRateObj.editor = "text";
+
+ // 文本内容
+ var textContentObj = new Object();
+ textContentObj.name = this._displayTextContentName[0];
+ if (34 == this._selectedFeature.symbolType) {
+ textContentObj.value = this._selectedFeature.textContent;
+ } else {
+ textContentObj.value = this._selectedFeature.textContent;
+ }
+ textContentObj.group = this._group[5];
+ textContentObj.editor = "text";
+
+ // 注记位置
+ var markPosObj = new Object();
+ markPosObj.name = this._displayTextContentName[1];
+ markPosObj.value = this.annotationToString(this._selectedFeature.textPos);
+ markPosObj.group = this._group[5];
+ markPosObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": annotationRows}
+ };
+
+ // 字体背景颜色
+ var fontBackColor = new Object();
+ fontBackColor.name = this._displayTextContentName[2];
+ fontBackColor.value = this.colorGeometryToString(this._selectedFeature.symbolTextStyle.backColor);
+ fontBackColor.group = this._group[5];
+ fontBackColor.editor = "colorpicker";
+
+ // 注记字体大小
+ var fontSizeObj = new Object();
+ fontSizeObj.name = this._displayTextContentName[3];
+ fontSizeObj.value = this._selectedFeature.symbolTextStyle.fontSize;
+ fontSizeObj.group = this._group[5];
+ fontSizeObj.editor = "text";
+
+ // 注记字体名称
+ var fontFamilyObj = new Object();
+ fontFamilyObj.name = this._displayTextContentName[4];
+ fontFamilyObj.value = this._selectedFeature.symbolTextStyle.fontName;
+ fontFamilyObj.group = this._group[5];
+ fontFamilyObj.editor = "text";
+
+ // 注记字体颜色
+ var fontColorObj = new Object();
+ fontColorObj.name = this._displayTextContentName[5];
+ fontColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolTextStyle.foreColor);
+ fontColorObj.group = this._group[5];
+ fontColorObj.editor = "colorpicker";
+
+ // 注记边框
+ var fontHaloObj = new Object();
+ fontHaloObj.name = this._displayTextContentName[6];
+ fontHaloObj.value = this.checkboxValueToString(this._selectedFeature.symbolTextStyle.outline);
+ fontHaloObj.group = this._group[5];
+ fontHaloObj.editor = {"type": "checkbox", "options": {"on": true, "off": false}};
+
+ // 注记边框宽度
+ var outlineWidthObj = new Object();
+ outlineWidthObj.name = this._displayTextContentName[7];
+ outlineWidthObj.value = this._selectedFeature.symbolTextStyle.outlineWidth;
+ outlineWidthObj.group = this._group[5];
+ outlineWidthObj.editor = "text";
+
+ // 注记边框颜色
+ var outlineColorObj = new Object();
+ outlineColorObj.name = this._displayTextContentName[8];
+ outlineColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolTextStyle.outlineColor);
+ outlineColorObj.group = this._group[5];
+ outlineColorObj.editor = "colorpicker";
+
+ // 衬线类型
+ var surroundLineTypeObj = new Object();
+ surroundLineTypeObj.name = this._displaySurroundLineName[0];
+ surroundLineTypeObj.value = this.surroundLineTypeToString(this._selectedFeature);
+ surroundLineTypeObj.group = this._group[1];
+ surroundLineTypeObj.editor = {
+ "type": 'combobox',
+ "options": {"valueField": 'value', "textField": 'text', "data": surroundLineTypeRows}
+ };
+
+ // 衬线宽
+ var surroundLineWidthObj = new Object();
+ surroundLineWidthObj.name = this._displaySurroundLineName[1];
+ surroundLineWidthObj.value = 1===this._selectedFeature.symbolType ? this._selectedFeature.gridSurroundLineWidth : this._selectedFeature.symbolStyle.surroundLineWidth;
+ surroundLineWidthObj.group = this._group[1];
+ surroundLineWidthObj.editor = "text";
+
+ // 衬线色
+ var surroundLineColorObj = new Object();
+ surroundLineColorObj.name = this._displaySurroundLineName[2];
+ surroundLineColorObj.value = this.colorGeometryToString(this._selectedFeature.symbolStyle.surroundLineColor);
+ surroundLineColorObj.group = this._group[1];
+ surroundLineColorObj.editor = "colorpicker";
+
+ // 标号大小
+ var gridSymbolSizeXObj, gridSymbolSizeYObj,pictureSymbolSizeXObj,pictureSymbolSizeYObj,rotationX, rotationY,rotationZ,scaleX,scaleY,scaleZ;
+ var modelScale, modelRotateX, modelRotateY, modelRotateZ;
+ if (this._selectedFeature._symbolType === 1) {
+ gridSymbolSizeXObj = new Object();
+ gridSymbolSizeXObj.name = this._displayName[6];
+ gridSymbolSizeXObj.value = parseInt(this._selectedFeature.gridSymbolSize.x);
+ gridSymbolSizeXObj.group = this._group[2];
+ gridSymbolSizeXObj.editor = "text";
+
+ // 标号大小
+ gridSymbolSizeYObj = new Object();
+ gridSymbolSizeYObj.name = this._displayName[7];
+ gridSymbolSizeYObj.value = parseInt(this._selectedFeature.gridSymbolSize.y);
+ gridSymbolSizeYObj.group = this._group[2];
+ gridSymbolSizeYObj.editor = "text";
+
+
+
+
+ // 图片大小X
+ pictureSymbolSizeXObj = new Object();
+ pictureSymbolSizeXObj.name = this._displayName[6];
+ pictureSymbolSizeXObj.value = this._selectedFeature.pictureSymbolSize.x;
+ pictureSymbolSizeXObj.group = this._group[10];
+ pictureSymbolSizeXObj.editor = "text";
+
+ // 图片大小Y
+ pictureSymbolSizeYObj = new Object();
+ pictureSymbolSizeYObj.name = this._displayName[7];
+ pictureSymbolSizeYObj.value = this._selectedFeature.pictureSymbolSize.y;
+ pictureSymbolSizeYObj.group = this._group[10];
+ pictureSymbolSizeYObj.editor = "text";
+ if(2 === this._selectedFeature.showMode){
+ modelScale = new Object();
+ modelScale.name = this._displayName[12];
+ modelScale.value = this._selectedFeature.modelScale.x;
+ modelScale.group = this._group[8];
+ modelScale.editor = "text";
+ }else if(0 === this._selectedFeature.showMode){
+
+ // 缩放比例X
+ scaleX = new Object();
+ scaleX.name = this._displayName[13];
+ scaleX.value = this._selectedFeature.vectorScale;
+ scaleX.group = this._group[8];
+ scaleX.editor = "text";
+ }
+
+ if(2 === this._selectedFeature.showMode){
+ modelRotateX = new Object();
+ modelRotateX.name = this._displayName[8];
+ modelRotateX.value = this._selectedFeature.modelRotate.x;
+ modelRotateX.group = this._group[9];
+ modelRotateX.editor = "text";
+
+ modelRotateY = new Object();
+ modelRotateY.name = this._displayName[9];
+ modelRotateY.value = this._selectedFeature.modelRotate.y;
+ modelRotateY.group = this._group[9];
+ modelRotateY.editor = "text";
+
+ modelRotateZ = new Object();
+ modelRotateZ.name = this._displayName[10];
+ modelRotateZ.value = this._selectedFeature.modelRotate.z;
+ modelRotateZ.group = this._group[9];
+ modelRotateZ.editor = "text";
+ }else if(0 === this._selectedFeature.showMode){
+ // 旋转角度X
+ rotationX = new Object();
+ rotationX.name = this._displayName[8];
+ rotationX.value = this._selectedFeature.vectorRotate.x;
+ rotationX.group = this._group[9];
+ rotationX.editor = "text";
+
+ // 旋转角度Y
+ rotationY = new Object();
+ rotationY.name = this._displayName[9];
+ rotationY.value = this._selectedFeature.vectorRotate.y;
+ rotationY.group = this._group[9];
+ rotationY.editor = "text";
+
+ // 旋转角度Z
+ rotationZ = new Object();
+ rotationZ.name = this._displayName[10];
+ rotationZ.value = this._selectedFeature.vectorRotate.z;
+ rotationZ.group = this._group[9];
+ rotationZ.editor = "text";
+ }
+
+ }
+
+ var selectedFeature = this._selectedFeature;
+
+ if (34 === selectedFeature.symbolType
+ || 20 === selectedFeature.symbolType) {
+ if (20 === selectedFeature.symbolType) {
+ rows.push(picturePathObj);
+ rows.push(pictureSymbolSizeXObj);
+ rows.push(pictureSymbolSizeYObj);
+ } else {
+ rows.push(textContentObj);
+ rows.push(fontHaloObj);
+ rows.push(fontBackColor);
+ rows.push(fontSizeObj);
+ rows.push(fontFamilyObj);
+ rows.push(fontColorObj);
+ rows.push(outlineWidthObj);
+ rows.push(outlineColorObj);
+ }
+ }
+ // 点标号
+ if (1 === selectedFeature.symbolType) {
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode) {
+ rows.push(surroundLineTypeObj);
+ rows.push(surroundLineWidthObj);
+ rows.push(surroundLineColorObj);
+ rows.push(dotSymbolRankObj);
+ }
+ rows.push(dotSymbolShowModeObj);
+ if (1 === selectedFeature.showMode) {
+ rows.push(dotSymbolNegativeImageObj);
+ }
+ rows.push(modelIdObj);
+ if (0 === selectedFeature.showMode) {
+ rows.push(scaleX);
+ rows.push(rotationX);
+ rows.push(rotationY);
+ rows.push(rotationZ);
+ }
+ if (2 === selectedFeature.showMode) {
+ rows.push(modelScale);
+ rows.push(modelRotateX);
+ rows.push(modelRotateY);
+ rows.push(modelRotateZ);
+ }
+ if (3 === selectedFeature.showMode) {
+ rows.push(pictureSymbolSizeXObj);
+ rows.push(pictureSymbolSizeYObj);
+ }
+ rows.push(picturePathObj);
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode) {
+ rows.push(fillBackColorObj);
+ rows.push(fillBackOpaqueObj);
+ rows.push(fillGradientAngleObj);
+ rows.push(fillGradientModeObj);
+ rows.push(fillGradientOffsetRatioYObj);
+ rows.push(fillGradientOffsetRatioXObj);
+ rows.push(fillForeColorObj);
+ rows.push(fillSymbolIdObj);
+ rows.push(fillOpaqueRateObj);
+ }
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode
+ || 2 === selectedFeature.showMode) {
+ rows.push(textContentObj);
+ rows.push(fontSizeObj);
+ rows.push(fontColorObj);
+ rows.push(fontFamilyObj);
+ rows.push(markPosObj);
+ rows.push(fontHaloObj);
+ rows.push(outlineWidthObj);
+ rows.push(outlineColorObj);
+ }
+ if (0 === selectedFeature.showMode
+ || 1 === selectedFeature.showMode) {
+ rows.push(lineWidthObj);
+ rows.push(lineColorObj);
+ if (1 === selectedFeature.showMode) {
+ rows.push(lineStyleObj);
+ rows.push(gridSymbolSizeXObj);
+ rows.push(gridSymbolSizeYObj);
+ }
+ }
+
+ var longitudeObj = new Object();
+ longitudeObj.name = this._displayPositionName[0];
+ longitudeObj.value = selectedFeature.localPoints[0].x;
+ longitudeObj.group = "位置点";
+ longitudeObj.index = 0;
+ longitudeObj.editor = "text";
+
+ var latitudeObj = new Object();
+ latitudeObj.name = this._displayPositionName[1];
+ latitudeObj.value = selectedFeature.localPoints[0].y;
+ latitudeObj.group = "位置点";
+ latitudeObj.index = 0;
+ latitudeObj.editor = "text";
+
+ var altitudeObj = new Object();
+ altitudeObj.name = this._displayPositionName[2];
+ altitudeObj.value = selectedFeature.localPoints[0].z;
+ altitudeObj.group = "位置点";
+ altitudeObj.index = 0;
+ altitudeObj.editor = "text";
+
+ rows.push(longitudeObj);
+ rows.push(latitudeObj);
+ rows.push(altitudeObj);
+ }
+ else {
+ rows.push(surroundLineTypeObj);
+ rows.push(surroundLineWidthObj);
+ rows.push(surroundLineColorObj);
+ rows.push(fillBackColorObj);
+ rows.push(fillBackOpaqueObj);
+ rows.push(fillGradientAngleObj);
+ rows.push(fillGradientModeObj);
+ rows.push(fillGradientOffsetRatioYObj);
+ rows.push(fillGradientOffsetRatioXObj);
+ rows.push(fillForeColorObj);
+ rows.push(fillSymbolIdObj);
+ rows.push(fillOpaqueRateObj);
+ rows.push(lineWidthObj);
+ rows.push(lineColorObj);
+ rows.push(extendWallObj);
+
+ if(selectedFeature.subSymbols){
+ //子标号
+ for (var i=0; i<selectedFeature.subSymbols.length; ++i) {
+ var objectSubCode = new Object();
+ objectSubCode.name = "Code";
+ objectSubCode.value = selectedFeature.subSymbols[i].code;
+ objectSubCode.group = this._group[6];
+ objectSubCode.editor = {"type":'combobox', "options" : { "valueField": 'value', "textField": 'text', "data" : subSymbolsTypeRows }};
+ objectSubCode.index = i;
+ rows.push(objectSubCode);
+ }
+ if ((0 === selectedFeature.subSymbols.length && 0 === selectedFeature.libID && 1025 === selectedFeature.code) ||
+ (0 === selectedFeature.subSymbols.length && 100 === selectedFeature.libID && 25200 === selectedFeature.code) ||
+ (0 === selectedFeature.subSymbols.length && 100 === selectedFeature.libID && 3020901 === selectedFeature.code)) {
+ var objectSubCode1 = new Object();
+ objectSubCode1.name = "Code";
+ objectSubCode1.value = subSymbolsTypeString(selectedFeature.subSymbols.length, selectedFeature);
+ objectSubCode1.group = this._group[6];
+ objectSubCode1.editor = {"type" : 'combobox', "options" : { "valueField" : 'value', "textField" : "text", "data" : subSymbolsTypeRows }};
+ objectSubCode1.index = i;
+ rows.push(objectSubCode1);
+ }
+ }
+
+
+ if (1025 === selectedFeature.symbolType && selectedFeature.subSymbols.length > 0) {
+ var objectLibID = new Object();
+ objectLibID.name = "LibID";
+ objectLibID.value = libIDToString(selectedFeature.subSymbols[0].libID);
+ objectLibID.group = this._group[6];
+ objectLibID.editor = "text";
+ rows.push(objectLibID);
+ }
+
+ for (var i=0; i<selectedFeature.localPoints.length; ++i) {
+ var longitudeObj = new Object();
+ longitudeObj.name = this._displayPositionName[0];
+ longitudeObj.value = selectedFeature.localPoints[i].x;
+ longitudeObj.group = "位置点"+(i+1);
+ longitudeObj.index = i;
+ longitudeObj.editor = "text";
+
+ var latitudeObj = new Object();
+ latitudeObj.name = this._displayPositionName[1];
+ latitudeObj.value = selectedFeature.localPoints[i].y;
+ latitudeObj.group = "位置点"+(i+1);
+ latitudeObj.index = i;
+ latitudeObj.editor = "text";
+
+ var altitudeObj = new Object();
+ altitudeObj.name = this._displayPositionName[2];
+ altitudeObj.value = selectedFeature.localPoints[i].z;
+ altitudeObj.group = "位置点"+(i+1);
+ altitudeObj.index = i;
+ altitudeObj.editor = "text";
+
+ rows.push(longitudeObj);
+ rows.push(latitudeObj);
+ rows.push(altitudeObj);
+ }
+ }
+ return rows;
+ }
+ };
+
+ StylePanel.prototype.updateSelectFeature = function(updated, selectFeature) {
+ var _self = this;
+ if (null != updated && selectFeature) {
+ switch (updated.name) {
+ case this._displayName[0]:
+ selectFeature.isNegativeImage = this.fromCheckboxValue(updated.value);
+ break;
+ case this._displayName[1]:
+ selectFeature.symbolRank = parseInt(updated.value);
+ break;
+ case this._displayName[2]:
+ var mode = parseInt(updated.value);
+ if (2 === mode && 0 === selectFeature.modelPath.length) {
+ return;
+ }
+ if (3 === mode && 0 === selectFeature.picturePath.length) {
+ return;
+ }
+ selectFeature.showMode = parseInt(updated.value);
+ break;
+ case this._displayName[3]:
+ selectFeature.modelPath = updated.value;
+ break;
+ case this._displayName[4]:
+ selectFeature.picturePath = updated.value;
+ break;
+ case this._displayName[5]:
+ selectFeature.symbolStyle.wholeHeight = parseInt(updated.value);
+ break;
+ case this._displayName[6]:
+ if (updated.group === this._group[10]) {
+ selectFeature.pictureSymbolSize = new cesium.Cartesian2(x = parseInt(updated.value),y = selectFeature.pictureSymbolSize.y);
+ } else {
+ selectFeature.gridSymbolSize = new cesium.Cartesian2(x = parseInt(updated.value),y = selectFeature.gridSymbolSize.y);
+ }
+ break;
+ case this._displayName[7]:
+ if (updated.group === this._group[10]) {
+ selectFeature.pictureSymbolSize = new cesium.Cartesian2(x = selectFeature.pictureSymbolSize.x,y = parseInt(updated.value));
+ } else {
+ selectFeature.gridSymbolSize = new cesium.Cartesian2(x = selectFeature.gridSymbolSize.x,y = parseInt(updated.value));
+ }
+ break;
+ case this._displayName[8]:
+ if (updated.group === this._group[8]) {
+ selectFeature.scale.x = parseInt(updated.value);
+ } else if (updated.group === this._group[9]) {
+ if (2 === selectFeature.showMode) {
+ var rotate = selectFeature.modelRotate;
+ selectFeature.setModelRotate(parseInt(updated.value), rotate.y , rotate.z);
+ } else {
+ var rotate = selectFeature.vectorRotate;
+ selectFeature.setVectorRotate(parseInt(updated.value), rotate.y , rotate.z);
+ }
+ }
+ break;
+ case this._displayName[9]:
+ if (updated.group === this._group[8]) {
+ selectFeature.scale.y = parseInt(updated.value);
+ } else if (updated.group === this._group[9]) {
+ if (2 === selectFeature.showMode) {
+ var rotate = selectFeature.modelRotate;
+ selectFeature.setModelRotate(rotate.x, parseInt(updated.value), rotate.z);
+ } else {
+ var rotate = selectFeature.vectorRotate;
+ selectFeature.setVectorRotate(rotate.x, parseInt(updated.value), rotate.z);
+ }
+ }
+ break;
+ case this._displayName[10]:
+ if (updated.group === this._group[8]) {
+ selectFeature.scale.z = parseInt(updated.value);
+ } else if (updated.group === this._group[9]) {
+ if (2 === selectFeature.showMode) {
+ var rotate = selectFeature.modelRotate;
+ selectFeature.setModelRotate(rotate.x, rotate.y, parseInt(updated.value));
+ } else {
+ var rotate = selectFeature.vectorRotate;
+ selectFeature.setVectorRotate(rotate.x, rotate.y, parseInt(updated.value));
+ }
+ }
+ break;
+ case this._displayName[12]:
+ var modelScale = selectFeature.modelScale;
+ selectFeature.modelScale = new cesium.Cartesian3(parseInt(updated.value),modelScale.y,modelScale.z);
+ break;
+ case this._displayName[13]:
+ selectFeature.vectorScale = parseFloat(updated.value);
+ break;
+ case this._displaySurroundLineName[0]:
+ selectFeature.symbolStyle.surroundLineType = parseInt(updated.value);
+ break;
+ case this._displaySurroundLineName[1]:
+ if (1 === selectFeature.symbolType) {
+ selectFeature.gridSurroundLineWidth = parseInt(updated.value);
+ } else {
+ selectFeature.symbolStyle.surroundLineWidth = parseInt(updated.value);
+ }
+ break;
+ case this._displaySurroundLineName[2]:
+ selectFeature.symbolStyle.surroundLineColor = colorConvert(updated.value);
+ break;
+ case this._displaySurroundLineName[3]:
+ break;
+ case this._displayFillStyleName[0]:
+ selectFeature.symbolStyle.fillBackColor = colorConvert(updated.value);
+ break;
+ case this._displayFillStyleName[1]:
+ selectFeature.symbolStyle.fillBackOpaque = this.fromCheckboxValue(updated.value);
+ break;
+ case this._displayFillStyleName[2]:
+ selectFeature.symbolStyle.fillGradientAngle = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[3]:
+ selectFeature.symbolStyle.fillGradientMode = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[4]:
+ selectFeature.symbolStyle.fillGradientOffsetRatioY = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[5]:
+ selectFeature.symbolStyle.fillGradientOffsetRatioX = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[6]:
+ selectFeature.symbolStyle.fillForeColor = colorConvert(updated.value);
+ break;
+ case this._displayFillStyleName[7]:
+ selectFeature.symbolStyle.fillSymbolID = parseInt(updated.value);
+ break;
+ case this._displayFillStyleName[8]:
+ selectFeature.symbolStyle.fillOpaqueRate = parseInt(updated.value);
+ break;
+ case this._displayLineStyleName[0]:
+ if (1===selectFeature.symbolType) {
+ selectFeature.gridLineWidth = parseFloat(updated.value);
+ } else {
+ selectFeature.symbolStyle.lineWidth = parseFloat(updated.value);
+ }
+ break;
+ case this._displayLineStyleName[1]:
+ selectFeature.symbolStyle.lineColor = colorConvert(updated.value);
+ break;
+ case this._displayLineStyleName[2]:
+ selectFeature.lineSymbolID = parseInt(updated.value);
+ break;
+ case this._displayTextContentName[0]:
+ selectFeature.textContent = updated.value;
+ break;
+ case this._displayTextContentName[1]:
+ selectFeature.textPos = parseInt(updated.value);
+ break;
+ case this._displayTextContentName[2]:
+ selectFeature.symbolTextStyle.backColor = colorConvert(updated.value);
+ break;
+ case this._displayTextContentName[3]:
+ selectFeature.symbolTextStyle.fontSize = parseInt(updated.value);
+ break;
+ case this._displayTextContentName[4]:
+ selectFeature.symbolTextStyle.fontName = updated.value;
+ break;
+ case this._displayTextContentName[5]:
+ selectFeature.symbolTextStyle.foreColor = colorConvert(updated.value);
+ break;
+ case this._displayTextContentName[6]:
+ selectFeature.symbolTextStyle.outline = this.fromCheckboxValue(updated.value);
+ break;
+ case this._displayTextContentName[7]:
+ selectFeature.symbolTextStyle.outlineWidth = parseFloat(updated.value);
+ break;
+ case this._displayTextContentName[8]:
+ selectFeature.symbolTextStyle.outlineColor = colorConvert(updated.value);
+ break;
+ case this._displayPositionName[0]:
+ var pts = [];
+ for (var i=0; i<selectFeature.localPoints.length; ++i) {
+ pts.push(selectFeature.localPoints[i].clone());
+ }
+ pts[updated.index].x = parseInt(updated.value);
+ selectFeature.localPoints = pts;
+ break;
+ case this._displayPositionName[1]:
+ var pts = [];
+ for (var i=0; i<selectFeature.localPoints.length; ++i) {
+ pts.push(selectFeature.localPoints[i].clone());
+ }
+ pts[updated.index].y = parseInt(updated.value);
+ selectFeature.localPoints = pts;
+ break;
+ case this._displayPositionName[2]:
+ var pts = [];
+ for (var i=0; i<selectFeature.localPoints.length; ++i) {
+ pts.push(selectFeature.localPoints[i].clone());
+ }
+ pts[updated.index].z = parseInt(updated.value);
+ selectFeature.localPoints = pts;
+ break;
+ case this._displayExtendWallName[0]:
+ selectFeature.extendWallHeight = updated.value;
+ break;
+ default:
+ break;
+ }
+ if (updated.group == this._group[6]) {
+ if (updated.name == "LibID") {
+ if (null !== updated.value) {
+ selectFeature.subSymbols[0].libID = parseInt(updated.value);
+ }
+ }
+ //设置子标号
+ if (updated.name == "Code") {
+ var code = parseInt(updated.value);
+
+ if(selectFeature.symbolType === 1025 && code != null) {
+ var symbolLibManager = this._plotting.getSymbolLibManager();
+ var subCode = symbolLibManager.findSymbolByCode(code);
+ if(subCode.length !== 0 && subCode[0].symbolType === "SYMBOL_DOT"){
+ //selectFeature.subSymbols[updated.index] = {libID : subCode[0].libID, code : code};
+ var temp = {libID : subCode[0].libID, code : code};
+ selectFeature.setSubSymbols(temp,updated.index);
+ }
+
+ } else {
+ var temp = {libID:selectFeature.libID,code:code };
+ selectFeature.setSubSymbols(temp,updated.index);
+ }
+ }
+ }
+ }
+ var rows = _self.collectionPropertyGridRows(_self._selectedFeature);
+ $('#pg').propertygrid('loadData', rows);
+ };
+
+ function colorConvert(colorString) {
+ var red = parseInt(colorString.slice(1, 3), 16) / 255;
+ var green = parseInt(colorString.slice(3, 5), 16) / 255;
+ var blue = parseInt(colorString.slice(5, 7), 16) / 255;
+ return new Cesium.Color(red,green,blue);
+ }
+
+ StylePanel.prototype.getAnnotationRows = function(graphicObject) {
+ var annotationRows = [];
+ annotationRows.push({"value" : "0", "text" : "左上"});
+ annotationRows.push({"value" : "1", "text" : "左下"});
+ annotationRows.push({"value" : "2", "text" : "右上"});
+ annotationRows.push({"value" : "3", "text" : "右下"});
+ annotationRows.push({"value" : "4", "text" : "上"});
+ annotationRows.push({"value" : "5", "text" : "下"});
+ annotationRows.push({"value" : "6", "text" : "左"});
+ annotationRows.push({"value" : "7", "text" : "右"});
+ if (graphicObject.middleMarkExist) {
+ annotationRows.push({"value" : "8", "text" : "中间"});
+ }
+ return annotationRows;
+ };
+
+ StylePanel.prototype.getSymbolRankRows = function(graphicObject) {
+ var symbolRanks = [];
+ if (graphicObject && graphicObject.symbolRanks) {
+ symbolRanks = graphicObject.symbolRanks;
+ }
+ var rows = [];
+ rows.push({"value" : "0", "text" : "无级别"});
+ for (var i=0; i<symbolRanks.length; ++i) {
+ if (1 == symbolRanks[i]) {
+ rows.push({"value" : "1", "text" : "军区级"});
+ } else if (2 == symbolRanks[i]) {
+ rows.push({"value" : "2", "text" : "副大军区级"});
+ } else if (3 == symbolRanks[i]) {
+ rows.push({"value" : "3", "text" : "集团军级"});
+ } else if (4 == symbolRanks[i]) {
+ rows.push({"value" : "4", "text" : "师级"});
+ } else if (5 == symbolRanks[i]) {
+ rows.push({"value" : "5", "text" : "旅级"});
+ } else if (6 == symbolRanks[i]) {
+ rows.push({"value" : "6", "text" : "团级"});
+ } else if (7 == symbolRanks[i]) {
+ rows.push({'value' : "7", "text" : "营级"});
+ } else if (8 == symbolRanks[i]) {
+ rows.push({'value' : "8", "text" : "连级"});
+ } else if (9 == symbolRanks[i]) {
+ rows.push({'value' : "9", "text" : "排级"});
+ }
+ }
+ return rows;
+ };
+
+ StylePanel.prototype.getSurroundLineTypeRows = function(graphicObject) {
+ var rows = [];
+ if (null == graphicObject || undefined == graphicObject) {
+ return [];
+ }
+ var symbolType = graphicObject.symbolType;
+ if (1 == symbolType) {
+ rows.push({"value" : "0", "text" : "无衬线"});
+ rows.push({"value" : "1", "text" : "有衬线"});
+ } else {
+ rows.push({"value" : "0", "text" : "无衬线"});
+ rows.push({"value" : "1", "text" : "内侧衬线"});
+ rows.push({"value" : "2", "text" : "外侧衬线"});
+ rows.push({"value" : "3", "text" : "双侧衬线"});
+ }
+ return rows;
+ };
+
+
+ StylePanel.prototype.getDotShowModeRows = function(graphicObject) {
+
+ var rows = [];
+ rows.push({"value" : "0", "text" : "矢量模式"});
+ rows.push({"value" : "1", "text" : "公告板模式"});
+ rows.push({"value" : "2", "text" : "模型模式"});
+ rows.push({"value" : "3", "text" : "图片模式"});
+ return rows;
+
+ };
+
+ StylePanel.prototype.getFillGradientModeRows = function(graphicObject) {
+ var rows = [];
+
+ rows.push({"value" : "0", "text" : "无渐变"});
+ rows.push({"value" : "1", "text" : "线性渐变"});
+ rows.push({"value" : "2", "text" : "辐射渐变"});
+
+ return rows;
+ };
+
+ StylePanel.prototype.getLineStyleRows = function(graphicObject) {
+ var rows = [];
+
+ rows.push({"value" : "0", "text" : "实线"});
+ rows.push({"value" : "1", "text" : "长虚线"});
+ rows.push({"value" : "2", "text" : "由点构成的直线"});
+ rows.push({"value" : "3", "text" : "由线划线段构成的直线"});
+ rows.push({"value" : "4", "text" : "由重复的线划点图案构成的直线"});
+
+ return rows;
+ };
+
+ StylePanel.prototype.getSubSymbolsTypeRows = function(graphicObject) {
+
+ var rows = [];
+ rows.push({"value" : "0", "text" : ""});
+
+ if (100 === graphicObject.libID) {
+ rows.push({"value" : "100", "text" : "陆军"});
+ rows.push({"value" : "200", "text" : "海军"});
+ rows.push({"value" : "300", "text" : "空军"});
+ } else if (123 === graphicObject.libID) {
+ rows.push({"value" : "10101", "text" : "武装警察部队"});
+ rows.push({"value" : "10102", "text" : "防爆装甲"});
+ rows.push({"value" : "10103", "text" : "火炮"});
+ } else if (900 === graphicObject.libID) {
+ rows.push({"value" : "910200", "text" : "人民防空重点城市"});
+ rows.push({"value" : "910300", "text" : "人民防空基本指挥所"});
+ rows.push({"value" : "910402", "text" : "水路抢修专业队"});
+ } else if (0 === graphicObject.libID) {
+ rows.push({"value" : "9", "text" : "刑警"});
+ rows.push({"value" : "80103", "text" : "交警"});
+ rows.push({"value" : "80109", "text" : "专业警"});
+ }
+ return rows;
+ };
+
+ function subSymbolsTypeString(subSymbolsLength, geometry) {
+
+ if (0 === subSymbolsLength) {
+ return "";
+ } else {
+ if (100 === geometry.libID) {
+ if (100 === geometry.subSymbols[0].code) {
+ return "陆军";
+ }
+ if (123 === geometry.subSymbols[0].code) {
+ return "海军";
+ }
+ if (300 === geometry.subSymbols[0].code) {
+ return "空军";
+ }
+ } else if (123 === geometry.libID) {
+ if (10101 === geometry.subSymbols[0].code) {
+ return "武装警察部队";
+ }
+ if (10102 === geometry.subSymbols[0].code) {
+ return "防爆装甲";
+ }
+ if (10103 === geometry.subSymbols[0].code) {
+ return "火炮";
+ }
+ } else if (900 === geometry.libID) {
+ if (910200 === geometry.subSymbols[0].code) {
+ return "人民防空重点城市";
+ }
+ if (910300 === geometry.subSymbols[0].code) {
+ return "人民防空基本指挥所";
+ }
+ if (910402 === geometry.subSymbols[0].code) {
+ return "水路抢修专业队";
+ }
+ } else if (0 === geometry.libID) {
+ if (9 === geometry.subSymbols[0].code) {
+ return "刑警";
+ }
+ if (80103 === geometry.subSymbols[0].code) {
+ return "交警";
+ }
+ if (80109 === geometry.subSymbols[0].code) {
+ return "专业警";
+ }
+ }
+ }
+ }
+
+ function libIDToString(libID) {
+ if (421 == libID) {
+ return "421(警用库)";
+ } else if (100 == libID) {
+ return "100(军队库)";
+ } else if (123 == libID) {
+ return "123(武警库)";
+ } else if (900 == libID) {
+ return "900(人防库)";
+ }
+ }
+
+ StylePanel.prototype.getFillSymbolIDRows = function(graphicObject) {
+
+ var rows = [];
+ rows.push({"value" : "0", "text" : "实填充"});
+ rows.push({"value" : "1", "text" : "无填充"});
+ // rows.push({"value" : "2", "text" : "向上斜填充"});
+ // rows.push({"value" : "3", "text" : "十字填充"});
+ // rows.push({"value" : "4", "text" : "交叉填充"});
+ // rows.push({"value" : "5", "text" : "反斜线填充"});
+ // rows.push({"value" : "6", "text" : "水平填充"});
+ // rows.push({"value" : "7", "text" : "竖直填充"});
+ return rows;
+ };
+
+ StylePanel.prototype.displayToString = function(display) {
+ if (display && display === "none") {
+ return "不显示";
+ }
+ return "显示";
+ };
+
+ StylePanel.prototype.checkboxValueToString = function(checkboxValue) {
+ if (true === checkboxValue) {
+ return "true";
+ } else if (false === checkboxValue) {
+ return "false";
+ }
+ };
+
+ StylePanel.prototype.fromCheckboxValue = function(checkboxStr) {
+ if ("true" === checkboxStr) {
+ return true;
+ } else if ("false" === checkboxStr) {
+ return false;
+ }
+ };
+
+ StylePanel.prototype.symbolRankToString = function(symbolRank) {
+ if (0 == symbolRank) {
+ return "无级别";
+ } else if (1 == symbolRank) {
+ return "军区级";
+ } else if (2 == symbolRank) {
+ return "副大军区级";
+ } else if (3 == symbolRank) {
+ return "集团军级";
+ } else if (4 == symbolRank) {
+ return "师级";
+ } else if (5 == symbolRank) {
+ return "旅级";
+ } else if (6 == symbolRank) {
+ return "团级";
+ } else if (7 == symbolRank) {
+ return "营级";
+ } else if (8 == symbolRank) {
+ return "连级";
+ } else if (9 == symbolRank) {
+ return "排级";
+ }
+ };
+
+ StylePanel.prototype.showModeToString = function(dotShowMode) {
+
+ if (0 === dotShowMode) {
+ return "矢量模式";
+ } else if (1 === dotShowMode) {
+ return "公告板模式";
+ } else if (2 === dotShowMode) {
+ return "模型模式";
+ } else if (3 === dotShowMode) {
+ return "图片模式";
+ } else {
+ return "未定义";
+ }
+
+ };
+
+ StylePanel.prototype.fillGradientModeToString = function(fillGradientMode) {
+
+ if (0 === fillGradientMode) {
+ return "无渐变";
+ } else if (1 === fillGradientMode) {
+ return "线性渐变";
+ } else if (2 === fillGradientMode) {
+ return "辐射渐变";
+ }
+
+ };
+
+ StylePanel.prototype.annotationToString = function(annotation) {
+
+ if (0 === annotation) {
+ return "左上";
+ } else if (1 === annotation) {
+ return "左下";
+ } else if (2 === annotation) {
+ return "右上";
+ } else if (3 === annotation) {
+ return "右下";
+ } else if (4 === annotation) {
+ return "上";
+ } else if (5 === annotation) {
+ return "下";
+ } else if (6 === annotation) {
+ return "左";
+ } else if (7 === annotation) {
+ return "右";
+ } else if (8 === annotation) {
+ return "中间";
+ }
+
+ };
+
+ StylePanel.prototype.surroundLineTypeToString = function(graphicObject) {
+
+ if (1 === graphicObject.symbolType) {
+ if (0 === graphicObject.symbolStyle.surroundLineType) {
+ return "无衬线";
+ } else if (1 === graphicObject.symbolStyle.surroundLineType) {
+ return "有衬线";
+ }
+ } else {
+ if (0 === graphicObject.symbolStyle.surroundLineType) {
+ return "无衬线";
+ } else if (1 === graphicObject.symbolStyle.surroundLineType) {
+ return "内侧衬线";
+ } else if (2 === graphicObject.symbolStyle.surroundLineType) {
+ return "外侧衬线";
+ } else if (3 === graphicObject.symbolStyle.surroundLineType) {
+ return "双侧衬线";
+ }
+ }
+ };
+
+ StylePanel.prototype.colorGeometryToString = function(color) {
+
+ var value = color.value;
+ var red, green, blue;
+
+ if (undefined !== value && null !== value) {
+ red = value[2]>15 ? value[2].toString(16) : "0" + value[2].toString(16);
+ green = value[1]>15 ? value[2].toString(16) : "0" + value[1].toString(16);
+ blue = value[0]>15 ? value[0].toString(16) : "0" + value[0].toString(16);
+ } else {
+ red = color.red * 255;
+ red = red > 15 ? red.toString(16) : "0" + red;
+ green = color.green * 255;
+ green = green > 15 ? green.toString(16) : "0" + green;
+ blue = color.blue * 255;
+ blue = blue > 15 ? blue.toString(16) : "0" + blue;
+ }
+ return "#" + red + green + blue;
+ };
+
+
+
+ StylePanel.prototype.lineStyleToString = function(lineStyle) {
+
+ if (0 === lineStyle) {
+ return "实线";
+ } else if (1 === lineStyle) {
+ return "长虚线";
+ } else if (2 === lineStyle) {
+ return "由点构成的直线";
+ } else if (3 === lineStyle) {
+ return "由线划线段构成的直线";
+ } else if (4 === lineStyle) {
+ return "由重复的线划点图案构成的直线";
+ }
+ };
+
+ StylePanel.prototype.fillSymbolIdToString = function(fillSymbolID) {
+
+ switch (fillSymbolID) {
+ case 0:
+ return "实填充";
+ case 1:
+ return "无填充";
+ }
+ };
+
+
diff --git a/js/plotPanelControl/colorpicker/css/colorpicker.css b/js/plotPanelControl/colorpicker/css/colorpicker.css
new file mode 100644
index 0000000..bf72eca
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/css/colorpicker.css
@@ -0,0 +1,162 @@
+.colorpicker {
+ width: 356px;
+ height: 176px;
+ overflow: hidden;
+ position: absolute;
+ background: url(../images/colorpicker_background.png);
+ font-family: Arial, Helvetica, sans-serif;
+ display: none;
+ z-index: 99;
+}
+.colorpicker_color {
+ width: 150px;
+ height: 150px;
+ left: 14px;
+ top: 13px;
+ position: absolute;
+ background: #f00;
+ overflow: hidden;
+ cursor: crosshair;
+}
+.colorpicker_color div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 150px;
+ height: 150px;
+ background: url(../images/colorpicker_overlay.png);
+}
+.colorpicker_color div div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 11px;
+ height: 11px;
+ overflow: hidden;
+ background: url(../images/colorpicker_select.gif);
+ margin: -5px 0 0 -5px;
+}
+.colorpicker_hue {
+ position: absolute;
+ top: 13px;
+ left: 171px;
+ width: 35px;
+ height: 150px;
+ cursor: n-resize;
+}
+.colorpicker_hue div {
+ position: absolute;
+ width: 35px;
+ height: 9px;
+ overflow: hidden;
+ background: url(../images/colorpicker_indic.gif) left top;
+ margin: -4px 0 0 0;
+ left: 0px;
+}
+.colorpicker_new_color {
+ position: absolute;
+ width: 60px;
+ height: 30px;
+ left: 213px;
+ top: 13px;
+ background: #f00;
+}
+.colorpicker_current_color {
+ position: absolute;
+ width: 60px;
+ height: 30px;
+ left: 283px;
+ top: 13px;
+ background: #f00;
+}
+.colorpicker input {
+ background-color: transparent;
+ border: 1px solid transparent;
+ position: absolute;
+ font-size: 10px;
+ font-family: Arial, Helvetica, sans-serif;
+ color: #898989;
+ top: 4px;
+ right: 11px;
+ text-align: right;
+ margin: 0;
+ padding: 0;
+ height: 11px;
+}
+.colorpicker_hex {
+ position: absolute;
+ width: 72px;
+ height: 22px;
+ background: url(../images/colorpicker_hex.png) top;
+ left: 212px;
+ top: 142px;
+}
+.colorpicker_hex input {
+ right: 6px;
+}
+.colorpicker_field {
+ height: 22px;
+ width: 62px;
+ background-position: top;
+ position: absolute;
+}
+.colorpicker_field span {
+ position: absolute;
+ width: 12px;
+ height: 22px;
+ overflow: hidden;
+ top: 0;
+ right: 0;
+ cursor: n-resize;
+}
+.colorpicker_rgb_r {
+ background-image: url(../images/colorpicker_rgb_r.png);
+ top: 52px;
+ left: 212px;
+}
+.colorpicker_rgb_g {
+ background-image: url(../images/colorpicker_rgb_g.png);
+ top: 82px;
+ left: 212px;
+}
+.colorpicker_rgb_b {
+ background-image: url(../images/colorpicker_rgb_b.png);
+ top: 112px;
+ left: 212px;
+}
+.colorpicker_hsb_h {
+ background-image: url(../images/colorpicker_hsb_h.png);
+ top: 52px;
+ left: 282px;
+}
+.colorpicker_hsb_s {
+ background-image: url(../images/colorpicker_hsb_s.png);
+ top: 82px;
+ left: 282px;
+}
+.colorpicker_hsb_b {
+ background-image: url(../images/colorpicker_hsb_b.png);
+ top: 112px;
+ left: 282px;
+}
+.colorpicker_submit {
+ position: absolute;
+ width: 22px;
+ height: 22px;
+ background: url(../images/colorpicker_submit.png) top;
+ left: 322px;
+ top: 142px;
+ overflow: hidden;
+}
+.colorpicker_focus {
+ background-position: center;
+}
+.colorpicker_hex.colorpicker_focus {
+ background-position: bottom;
+}
+.colorpicker_submit.colorpicker_focus {
+ background-position: bottom;
+}
+.colorpicker_slider {
+ background-position: bottom;
+}
diff --git a/js/plotPanelControl/colorpicker/css/layout.css b/js/plotPanelControl/colorpicker/css/layout.css
new file mode 100644
index 0000000..5e0ec5f
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/css/layout.css
@@ -0,0 +1,217 @@
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
+ margin:0;
+ padding:0;
+}
+table {
+ border-collapse:collapse;
+ border-spacing:0;
+}
+fieldset,img {
+ border:0;
+}
+address,caption,cite,code,dfn,em,strong,th,var {
+ font-style:normal;
+ font-weight:normal;
+}
+ol,ul {
+ list-style:none;
+}
+caption,th {
+ text-align:left;
+}
+h1,h2,h3,h4,h5,h6 {
+ font-size:100%;
+ font-weight:normal;
+}
+q:before,q:after {
+ content:'';
+}
+abbr,acronym { border:0;
+}
+html, body {
+ background-color: #fff;
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ line-height: 18px;
+ color: #52697E;
+}
+body {
+ overflow: auto;
+}
+.wrapper {
+ width: 700px;
+ margin: 0 auto;
+ text-align: left;
+}
+h1 {
+ font-size: 21px;
+ height: 47px;
+ line-height: 47px;
+ text-transform: uppercase;
+}
+.navigationTabs {
+ height: 23px;
+ line-height: 23px;
+ border-bottom: 1px solid #ccc;
+}
+.navigationTabs li {
+ float: left;
+ height: 23px;
+ line-height: 23px;
+ padding-right: 3px;
+}
+.navigationTabs li a{
+ float: left;
+ dispaly: block;
+ height: 23px;
+ line-height: 23px;
+ padding: 0 10px;
+ overflow: hidden;
+ color: #52697E;
+ background-color: #eee;
+ position: relative;
+ text-decoration: none;
+}
+.navigationTabs li a:hover {
+ background-color: #f0f0f0;
+}
+.navigationTabs li a.active {
+ background-color: #fff;
+ border: 1px solid #ccc;
+ border-bottom: 0px solid;
+}
+.tabsContent {
+ border: 1px solid #ccc;
+ border-top: 0px solid;
+ width: 698px;
+ overflow: hidden;
+}
+.tab {
+ padding: 16px;
+ display: none;
+}
+.tab h2 {
+ font-weight: bold;
+ font-size: 16px;
+}
+.tab h3 {
+ font-weight: bold;
+ font-size: 14px;
+ margin-top: 20px;
+}
+.tab p {
+ margin-top: 16px;
+ clear: both;
+}
+.tab ul {
+ margin-top: 16px;
+ list-style: disc;
+}
+.tab li {
+ margin: 10px 0 0 35px;
+}
+.tab a {
+ color: #8FB0CF;
+}
+.tab strong {
+ font-weight: bold;
+}
+.tab pre {
+ font-size: 11px;
+ margin-top: 20px;
+ width: 668px;
+ overflow: auto;
+ clear: both;
+}
+.tab table {
+ width: 100%;
+}
+.tab table td {
+ padding: 6px 10px 6px 0;
+ vertical-align: top;
+}
+.tab dt {
+ margin-top: 16px;
+}
+
+#colorSelector {
+ position: relative;
+ width: 36px;
+ height: 36px;
+ background: url(../images/select.png);
+}
+#colorSelector div {
+ position: absolute;
+ top: 3px;
+ left: 3px;
+ width: 30px;
+ height: 30px;
+ background: url(../images/select.png) center;
+}
+#colorSelector2 {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 36px;
+ height: 36px;
+ background: url(../images/select2.png);
+}
+#colorSelector2 div {
+ position: absolute;
+ top: 4px;
+ left: 4px;
+ width: 28px;
+ height: 28px;
+ background: url(../images/select2.png) center;
+}
+#colorpickerHolder2 {
+ top: 32px;
+ left: 0;
+ width: 356px;
+ height: 0;
+ overflow: hidden;
+ position: absolute;
+}
+#colorpickerHolder2 .colorpicker {
+ background-image: url(../images/custom_background.png);
+ position: absolute;
+ bottom: 0;
+ left: 0;
+}
+#colorpickerHolder2 .colorpicker_hue div {
+ background-image: url(../images/custom_indic.gif);
+}
+#colorpickerHolder2 .colorpicker_hex {
+ background-image: url(../images/custom_hex.png);
+}
+#colorpickerHolder2 .colorpicker_rgb_r {
+ background-image: url(../images/custom_rgb_r.png);
+}
+#colorpickerHolder2 .colorpicker_rgb_g {
+ background-image: url(../images/custom_rgb_g.png);
+}
+#colorpickerHolder2 .colorpicker_rgb_b {
+ background-image: url(../images/custom_rgb_b.png);
+}
+#colorpickerHolder2 .colorpicker_hsb_s {
+ background-image: url(../images/custom_hsb_s.png);
+ display: none;
+}
+#colorpickerHolder2 .colorpicker_hsb_h {
+ background-image: url(../images/custom_hsb_h.png);
+ display: none;
+}
+#colorpickerHolder2 .colorpicker_hsb_b {
+ background-image: url(../images/custom_hsb_b.png);
+ display: none;
+}
+#colorpickerHolder2 .colorpicker_submit {
+ background-image: url(../images/custom_submit.png);
+}
+#colorpickerHolder2 .colorpicker input {
+ color: #778398;
+}
+#customWidget {
+ position: relative;
+ height: 36px;
+}
diff --git a/js/plotPanelControl/colorpicker/js/colorpicker.js b/js/plotPanelControl/colorpicker/js/colorpicker.js
new file mode 100644
index 0000000..5adb2e6
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/js/colorpicker.js
@@ -0,0 +1,495 @@
+/**
+ *
+ * Color picker
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ * Dual licensed under the MIT and GPL licenses
+ *
+ */
+(function ($) {
+ var ColorPicker = function () {
+ var
+ ids = {},
+ inAction,
+ charMin = 65,
+ visible,
+ tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
+ defaults = {
+ eventName: 'click',
+ onShow: function () {},
+ onBeforeShow: function(){},
+ onHide: function () {},
+ onChange: function () {},
+ onSubmit: function () {},
+ color: 'ff0000',
+ livePreview: true,
+ flat: false
+ },
+ fillRGBFields = function (hsb, cal) {
+ var rgb = HSBToRGB(hsb);
+ $(cal).data('colorpicker').fields
+ .eq(1).val(rgb.r).end()
+ .eq(2).val(rgb.g).end()
+ .eq(3).val(rgb.b).end();
+ },
+ fillHSBFields = function (hsb, cal) {
+ $(cal).data('colorpicker').fields
+ .eq(4).val(hsb.h).end()
+ .eq(5).val(hsb.s).end()
+ .eq(6).val(hsb.b).end();
+ },
+ fillHexFields = function (hsb, cal) {
+ $(cal).data('colorpicker').fields
+ .eq(0).val(HSBToHex(hsb)).end();
+ },
+ setSelector = function (hsb, cal) {
+ $(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
+ $(cal).data('colorpicker').selectorIndic.css({
+ left: parseInt(150 * hsb.s/100, 10),
+ top: parseInt(150 * (100-hsb.b)/100, 10)
+ });
+ },
+ setHue = function (hsb, cal) {
+ $(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
+ },
+ setCurrentColor = function (hsb, cal) {
+ $(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
+ },
+ setNewColor = function (hsb, cal) {
+ $(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
+ },
+ keyDown = function (ev) {
+ var pressedKey = ev.charCode || ev.keyCode || -1;
+ if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
+ return false;
+ }
+ var cal = $(this).parent().parent();
+ if (cal.data('colorpicker').livePreview === true) {
+ change.apply(this);
+ }
+ ev.stopPropagation();
+ },
+ mouseDown = function (ev) {
+ ev.stopPropagation();
+ },
+ change = function (ev) {
+ var cal = $(this).parent().parent(), col;
+ if (this.parentNode.className.indexOf('_hex') > 0) {
+ cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
+ } else if (this.parentNode.className.indexOf('_hsb') > 0) {
+ cal.data('colorpicker').color = col = fixHSB({
+ h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
+ s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
+ b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
+ });
+ } else {
+ cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
+ r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
+ g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
+ b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
+ }));
+ }
+ if (ev) {
+ fillRGBFields(col, cal.get(0));
+ fillHexFields(col, cal.get(0));
+ fillHSBFields(col, cal.get(0));
+ }
+ setSelector(col, cal.get(0));
+ setHue(col, cal.get(0));
+ setNewColor(col, cal.get(0));
+ cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
+ },
+ blur = function (ev) {
+ var cal = $(this).parent().parent();
+ cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
+ },
+ focus = function () {
+ charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
+ $(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
+ $(this).parent().addClass('colorpicker_focus');
+ },
+ downIncrement = function (ev) {
+ var field = $(this).parent().find('input').focus();
+ var current = {
+ el: $(this).parent().addClass('colorpicker_slider'),
+ max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
+ y: ev.pageY,
+ field: field,
+ val: parseInt(field.val(), 10),
+ preview: $(this).parent().parent().data('colorpicker').livePreview
+ };
+ $(document).bind('mouseup', current, upIncrement);
+ $(document).bind('mousemove', current, moveIncrement);
+ ev.stopPropagation();
+ },
+ moveIncrement = function (ev) {
+ ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
+ if (ev.data.preview) {
+ change.apply(ev.data.field.get(0), [true]);
+ }
+ return false;
+ },
+ upIncrement = function (ev) {
+ change.apply(ev.data.field.get(0), [true]);
+ ev.data.el.removeClass('colorpicker_slider').find('input').focus();
+ $(document).unbind('mouseup', upIncrement);
+ $(document).unbind('mousemove', moveIncrement);
+ return false;
+ },
+ downHue = function (ev) {
+ var current = {
+ cal: $(this).parent(),
+ y: $(this).offset().top
+ };
+ current.preview = current.cal.data('colorpicker').livePreview;
+ $(document).bind('mouseup', current, upHue);
+ $(document).bind('mousemove', current, moveHue);
+ ev.stopPropagation();
+ },
+ moveHue = function (ev) {
+ change.apply(
+ ev.data.cal.data('colorpicker')
+ .fields
+ .eq(4)
+ .val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
+ .get(0),
+ [ev.data.preview]
+ );
+ return false;
+ },
+ upHue = function (ev) {
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ $(document).unbind('mouseup', upHue);
+ $(document).unbind('mousemove', moveHue);
+ return false;
+ },
+ downSelector = function (ev) {
+ var current = {
+ cal: $(this).parent(),
+ pos: $(this).offset()
+ };
+ current.preview = current.cal.data('colorpicker').livePreview;
+ $(document).bind('mouseup', current, upSelector);
+ $(document).bind('mousemove', current, moveSelector);
+ ev.stopPropagation();
+ },
+ moveSelector = function (ev) {
+ change.apply(
+ ev.data.cal.data('colorpicker')
+ .fields
+ .eq(6)
+ .val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
+ .end()
+ .eq(5)
+ .val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
+ .get(0),
+ [ev.data.preview]
+ );
+ return false;
+ },
+ upSelector = function (ev) {
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
+ $(document).unbind('mouseup', upSelector);
+ $(document).unbind('mousemove', moveSelector);
+ return false;
+ },
+ enterSubmit = function (ev) {
+ $(this).addClass('colorpicker_focus');
+ ev.stopPropagation();
+ },
+ leaveSubmit = function (ev) {
+ $(this).removeClass('colorpicker_focus');
+ },
+ clickSubmit = function (ev) {
+ var cal = $(this).parent();
+ var col = cal.data('colorpicker').color;
+ cal.data('colorpicker').origColor = col;
+ setCurrentColor(col, cal.get(0));
+ cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
+ ev.stopPropagation();
+ },
+ show = function (ev) {
+ var cal = $('#' + $(this).data('colorpickerId'));
+ cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
+ var pos = $(this).offset();
+ var viewPort = getViewport();
+ var top = pos.top + this.offsetHeight;
+ var left = pos.left;
+ if (top + 176 > viewPort.t + viewPort.h) {
+ top -= this.offsetHeight + 176;
+ }
+ if (left + 356 > viewPort.l + viewPort.w) {
+ left -= 356;
+ }
+ cal.css({left: left + 'px', top: top + 'px'});
+ if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
+ cal.show();
+ }
+ $(document).bind('mousedown', {cal: cal}, hide);
+ return false;
+ },
+ hide = function (ev) {
+ if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
+ if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
+ ev.data.cal.hide();
+ }
+ $(document).unbind('mousedown', hide);
+ }
+ },
+ isChildOf = function(parentEl, el, container) {
+ if (parentEl == el) {
+ return true;
+ }
+ if (parentEl.contains) {
+ return parentEl.contains(el);
+ }
+ if ( parentEl.compareDocumentPosition ) {
+ return !!(parentEl.compareDocumentPosition(el) & 16);
+ }
+ var prEl = el.parentNode;
+ while(prEl && prEl != container) {
+ if (prEl == parentEl)
+ return true;
+ prEl = prEl.parentNode;
+ }
+ return false;
+ },
+ getViewport = function () {
+ var m = document.compatMode == 'CSS1Compat';
+ return {
+ l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
+ t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
+ w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
+ h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
+ };
+ },
+ fixHSB = function (hsb) {
+ return {
+ h: Math.min(360, Math.max(0, hsb.h)),
+ s: Math.min(100, Math.max(0, hsb.s)),
+ b: Math.min(100, Math.max(0, hsb.b))
+ };
+ },
+ fixRGB = function (rgb) {
+ return {
+ r: Math.min(255, Math.max(0, rgb.r)),
+ g: Math.min(255, Math.max(0, rgb.g)),
+ b: Math.min(255, Math.max(0, rgb.b))
+ };
+ },
+ fixHex = function (hex) {
+ var len = 6 - hex.length;
+ if (len > 0) {
+ var o = [];
+ for (var i=0; i<len; i++) {
+ o.push('0');
+ }
+ o.push(hex);
+ hex = o.join('');
+ }
+ return hex;
+ },
+ HexToRGB = function (hex) {
+ var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
+ return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
+ },
+ HexToHSB = function (hex) {
+ return RGBToHSB(HexToRGB(hex));
+ },
+ RGBToHSB = function (rgb) {
+ var hsb = {
+ h: 0,
+ s: 0,
+ b: 0
+ };
+ var min = Math.min(rgb.r, rgb.g, rgb.b);
+ var max = Math.max(rgb.r, rgb.g, rgb.b);
+ var delta = max - min;
+ hsb.b = max;
+ if (max != 0) {
+
+ }
+ hsb.s = max != 0 ? 255 * delta / max : 0;
+ if (hsb.s != 0) {
+ if (rgb.r == max) {
+ hsb.h = (rgb.g - rgb.b) / delta;
+ } else if (rgb.g == max) {
+ hsb.h = 2 + (rgb.b - rgb.r) / delta;
+ } else {
+ hsb.h = 4 + (rgb.r - rgb.g) / delta;
+ }
+ } else {
+ hsb.h = -1;
+ }
+ hsb.h *= 60;
+ if (hsb.h < 0) {
+ hsb.h += 360;
+ }
+ hsb.s *= 100/255;
+ hsb.b *= 100/255;
+ return hsb;
+ },
+ HSBToRGB = function (hsb) {
+ var rgb = {};
+ var h = Math.round(hsb.h);
+ var s = Math.round(hsb.s*255/100);
+ var v = Math.round(hsb.b*255/100);
+ if(s == 0) {
+ rgb.r = rgb.g = rgb.b = v;
+ } else {
+ var t1 = v;
+ var t2 = (255-s)*v/255;
+ var t3 = (t1-t2)*(h%60)/60;
+ if(h==360) h = 0;
+ if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
+ else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
+ else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
+ else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
+ else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
+ else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
+ else {rgb.r=0; rgb.g=0; rgb.b=0}
+ }
+ return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
+ },
+ RGBToHex = function (rgb) {
+ var hex = [
+ rgb.r.toString(16),
+ rgb.g.toString(16),
+ rgb.b.toString(16)
+ ];
+ $.each(hex, function (nr, val) {
+ if (val.length == 1) {
+ hex[nr] = '0' + val;
+ }
+ });
+ return hex.join('');
+ },
+ HSBToHex = function (hsb) {
+ return RGBToHex(HSBToRGB(hsb));
+ },
+ restoreOriginal = function () {
+ var cal = $(this).parent();
+ var col = cal.data('colorpicker').origColor;
+ cal.data('colorpicker').color = col;
+ fillRGBFields(col, cal.get(0));
+ fillHexFields(col, cal.get(0));
+ fillHSBFields(col, cal.get(0));
+ setSelector(col, cal.get(0));
+ setHue(col, cal.get(0));
+ setNewColor(col, cal.get(0));
+ };
+ return {
+ init: function (opt) {
+ opt = $.extend({}, defaults, opt||{});
+ if (typeof opt.color == 'string') {
+ opt.color = HexToHSB(opt.color);
+ } else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
+ opt.color = RGBToHSB(opt.color);
+ } else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
+ opt.color = fixHSB(opt.color);
+ } else {
+ return this;
+ }
+ return this.each(function () {
+ if (!$(this).data('colorpickerId')) {
+ var options = $.extend({}, opt);
+ options.origColor = opt.color;
+ var id = 'collorpicker_' + parseInt(Math.random() * 1000);
+ $(this).data('colorpickerId', id);
+ var cal = $(tpl).attr('id', id);
+ if (options.flat) {
+ cal.appendTo(this).show();
+ } else {
+ cal.appendTo(document.body);
+ }
+ options.fields = cal
+ .find('input')
+ .bind('keyup', keyDown)
+ .bind('change', change)
+ .bind('blur', blur)
+ .bind('focus', focus)
+ .bind('mousedown', mouseDown);
+ cal
+ .find('span').bind('mousedown', downIncrement).end()
+ .find('>div.colorpicker_current_color').bind('click', restoreOriginal);
+ options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
+ options.selectorIndic = options.selector.find('div div');
+ options.el = this;
+ options.hue = cal.find('div.colorpicker_hue div');
+ cal.find('div.colorpicker_hue').bind('mousedown', downHue);
+ options.newColor = cal.find('div.colorpicker_new_color').bind('mousedown', mouseDown);
+ options.currentColor = cal.find('div.colorpicker_current_color').bind('mousedown', mouseDown);
+ cal.data('colorpicker', options);
+ cal.find('div.colorpicker_submit')
+ .bind('mouseenter', enterSubmit)
+ .bind('mouseleave', leaveSubmit)
+ .bind('click', clickSubmit)
+ .bind('mousedown', mouseDown);
+ fillRGBFields(options.color, cal.get(0));
+ fillHSBFields(options.color, cal.get(0));
+ fillHexFields(options.color, cal.get(0));
+ setHue(options.color, cal.get(0));
+ setSelector(options.color, cal.get(0));
+ setCurrentColor(options.color, cal.get(0));
+ setNewColor(options.color, cal.get(0));
+ if (options.flat) {
+ cal.css({
+ position: 'relative',
+ display: 'block'
+ });
+ } else {
+ $(this).bind(options.eventName, show);
+ }
+ }
+ });
+ },
+ showPicker: function() {
+ return this.each( function () {
+ if ($(this).data('colorpickerId')) {
+ show.apply(this);
+ }
+ });
+ },
+ hidePicker: function() {
+ return this.each( function () {
+ if ($(this).data('colorpickerId')) {
+ $('#' + $(this).data('colorpickerId')).hide();
+ }
+ });
+ },
+ setColor: function(col) {
+ if (typeof col == 'string') {
+ col = HexToHSB(col);
+ } else if (col.r != undefined && col.g != undefined && col.b != undefined) {
+ col = RGBToHSB(col);
+ } else if (col.h != undefined && col.s != undefined && col.b != undefined) {
+ col = fixHSB(col);
+ } else {
+ return this;
+ }
+ return this.each(function(){
+ if ($(this).data('colorpickerId')) {
+ var cal = $('#' + $(this).data('colorpickerId'));
+ cal.data('colorpicker').color = col;
+ cal.data('colorpicker').origColor = col;
+ fillRGBFields(col, cal.get(0));
+ fillHSBFields(col, cal.get(0));
+ fillHexFields(col, cal.get(0));
+ setHue(col, cal.get(0));
+ setSelector(col, cal.get(0));
+ setCurrentColor(col, cal.get(0));
+ setNewColor(col, cal.get(0));
+ }
+ });
+ }
+ };
+ }();
+ $.fn.extend({
+ ColorPicker: ColorPicker.init,
+ ColorPickerHide: ColorPicker.hidePicker,
+ ColorPickerShow: ColorPicker.showPicker,
+ ColorPickerSetColor: ColorPicker.setColor
+ });
+})(jQuery)
\ No newline at end of file
diff --git a/js/plotPanelControl/colorpicker/js/colorpickerEditor.js b/js/plotPanelControl/colorpicker/js/colorpickerEditor.js
new file mode 100644
index 0000000..b13dc51
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/js/colorpickerEditor.js
@@ -0,0 +1,60 @@
+$.extend($.fn.datagrid.defaults.editors, {
+ colorpicker: {//colorpicker就是你要自定义editor的名称
+ init: function (container, options) {
+ //var colorSector = $('<div id="colorSelector" class="colorSelector">').appendTo(container);
+ //$('#colorSelector').ColorPicker({
+ // color: '#0000ff',
+ // onShow: function (colpkr) {
+ // $(colpkr).fadeIn(500);
+ // return false;
+ // },
+ // onHide: function (colpkr) {
+ // $(colpkr).fadeOut(500);
+ // return false;
+ // },
+ // onChange: function (hsb, hex, rgb) {
+ // $('#colorSelector div').css('backgroundColor', '#' + hex);
+ // }
+ //});
+ //
+ //return $('#colorSelector div');
+ var input = $('<input>').appendTo(container);
+ input.ColorPicker({
+ color: '#0000ff',
+ onShow: function (colpkr) {
+ $(colpkr).fadeIn(500);
+ return false;
+ },
+ onHide: function (colpkr) {
+ $(colpkr).fadeOut(500);
+ return false;
+ },
+ onChange: function (hsb, hex, rgb) {
+ input.css('backgroundColor', '#' + hex);
+ input.val('0x' + hex);
+ }
+ });
+ return input;
+ },
+ getValue: function (target) {
+ return $(target).val().replace(/0x/, "#");
+ },
+ setValue: function (target, value) {
+ // 特殊处理, 因为在flash里使用的是0x16进制格式
+ value = value.replace(/0x/, "#");
+ $(target).val(value);
+ $(target).css('backgroundColor', value);
+ $(target).ColorPickerSetColor(value);
+ },
+ resize: function (target, width) {
+ var input = $(target);
+ if ($.boxModel == true) {
+ input.width(width - (input.outerWidth() - input.width()));
+ } else {
+ input.width(width);
+ }
+ }
+ }
+});
+
+
diff --git a/js/plotPanelControl/colorpicker/js/eye.js b/js/plotPanelControl/colorpicker/js/eye.js
new file mode 100644
index 0000000..8a281dc
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/js/eye.js
@@ -0,0 +1,34 @@
+/**
+ *
+ * Zoomimage
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ */
+(function($){
+ var EYE = window.EYE = function() {
+ var _registered = {
+ init: []
+ };
+ return {
+ init: function() {
+ $.each(_registered.init, function(nr, fn){
+ fn.call();
+ });
+ },
+ extend: function(prop) {
+ for (var i in prop) {
+ if (prop[i] != undefined) {
+ this[i] = prop[i];
+ }
+ }
+ },
+ register: function(fn, type) {
+ if (!_registered[type]) {
+ _registered[type] = [];
+ }
+ _registered[type].push(fn);
+ }
+ };
+ }();
+ $(EYE.init);
+})(jQuery);
diff --git a/js/plotPanelControl/colorpicker/js/layout.js b/js/plotPanelControl/colorpicker/js/layout.js
new file mode 100644
index 0000000..6aa7d36
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/js/layout.js
@@ -0,0 +1,67 @@
+(function($){
+ var initLayout = function() {
+ var hash = window.location.hash.replace('#', '');
+ var currentTab = $('ul.navigationTabs a')
+ .bind('click', showTab);
+ //.filter('a[rel=' + hash + ']');
+ if (currentTab.size() == 0) {
+ currentTab = $('ul.navigationTabs a:first');
+ }
+ showTab.apply(currentTab.get(0));
+ $('#colorpickerHolder').ColorPicker({flat: true});
+ $('#colorpickerHolder2').ColorPicker({
+ flat: true,
+ color: '#00ff00',
+ onSubmit: function(hsb, hex, rgb) {
+ $('#colorSelector2 div').css('backgroundColor', '#' + hex);
+ }
+ });
+ $('#colorpickerHolder2>div').css('position', 'absolute');
+ var widt = false;
+ $('#colorSelector2').bind('click', function() {
+ $('#colorpickerHolder2').stop().animate({height: widt ? 0 : 173}, 500);
+ widt = !widt;
+ });
+ $('#colorpickerField1, #colorpickerField2, #colorpickerField3').ColorPicker({
+ onSubmit: function(hsb, hex, rgb, el) {
+ $(el).val(hex);
+ $(el).ColorPickerHide();
+ },
+ onBeforeShow: function () {
+ $(this).ColorPickerSetColor(this.value);
+ }
+ })
+ .bind('keyup', function(){
+ $(this).ColorPickerSetColor(this.value);
+ });
+ $('#colorSelector').ColorPicker({
+ color: '#0000ff',
+ onShow: function (colpkr) {
+ $(colpkr).fadeIn(500);
+ return false;
+ },
+ onHide: function (colpkr) {
+ $(colpkr).fadeOut(500);
+ return false;
+ },
+ onChange: function (hsb, hex, rgb) {
+ $('#colorSelector div').css('backgroundColor', '#' + hex);
+ }
+ });
+ };
+
+ var showTab = function(e) {
+ var tabIndex = $('ul.navigationTabs a')
+ .removeClass('active')
+ .index(this);
+ $(this)
+ .addClass('active')
+ .blur();
+ $('div.tab')
+ .hide()
+ .eq(tabIndex)
+ .show();
+ };
+
+ EYE.register(initLayout, 'init');
+})(jQuery)
\ No newline at end of file
diff --git a/js/plotPanelControl/colorpicker/js/utils.js b/js/plotPanelControl/colorpicker/js/utils.js
new file mode 100644
index 0000000..d9be853
--- /dev/null
+++ b/js/plotPanelControl/colorpicker/js/utils.js
@@ -0,0 +1,252 @@
+/**
+ *
+ * Utilities
+ * Author: Stefan Petre www.eyecon.ro
+ *
+ */
+(function($) {
+EYE.extend({
+ getPosition : function(e, forceIt)
+ {
+ var x = 0;
+ var y = 0;
+ var es = e.style;
+ var restoreStyles = false;
+ if (forceIt && jQuery.curCSS(e,'display') == 'none') {
+ var oldVisibility = es.visibility;
+ var oldPosition = es.position;
+ restoreStyles = true;
+ es.visibility = 'hidden';
+ es.display = 'block';
+ es.position = 'absolute';
+ }
+ var el = e;
+ if (el.getBoundingClientRect) { // IE
+ var box = el.getBoundingClientRect();
+ x = box.left + Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) - 2;
+ y = box.top + Math.max(document.documentElement.scrollTop, document.body.scrollTop) - 2;
+ } else {
+ x = el.offsetLeft;
+ y = el.offsetTop;
+ el = el.offsetParent;
+ if (e != el) {
+ while (el) {
+ x += el.offsetLeft;
+ y += el.offsetTop;
+ el = el.offsetParent;
+ }
+ }
+ if (jQuery.browser.safari && jQuery.curCSS(e, 'position') == 'absolute' ) {
+ x -= document.body.offsetLeft;
+ y -= document.body.offsetTop;
+ }
+ el = e.parentNode;
+ while (el && el.tagName.toUpperCase() != 'BODY' && el.tagName.toUpperCase() != 'HTML')
+ {
+ if (jQuery.curCSS(el, 'display') != 'inline') {
+ x -= el.scrollLeft;
+ y -= el.scrollTop;
+ }
+ el = el.parentNode;
+ }
+ }
+ if (restoreStyles == true) {
+ es.display = 'none';
+ es.position = oldPosition;
+ es.visibility = oldVisibility;
+ }
+ return {x:x, y:y};
+ },
+ getSize : function(e)
+ {
+ var w = parseInt(jQuery.curCSS(e,'width'), 10);
+ var h = parseInt(jQuery.curCSS(e,'height'), 10);
+ var wb = 0;
+ var hb = 0;
+ if (jQuery.curCSS(e, 'display') != 'none') {
+ wb = e.offsetWidth;
+ hb = e.offsetHeight;
+ } else {
+ var es = e.style;
+ var oldVisibility = es.visibility;
+ var oldPosition = es.position;
+ es.visibility = 'hidden';
+ es.display = 'block';
+ es.position = 'absolute';
+ wb = e.offsetWidth;
+ hb = e.offsetHeight;
+ es.display = 'none';
+ es.position = oldPosition;
+ es.visibility = oldVisibility;
+ }
+ return {w:w, h:h, wb:wb, hb:hb};
+ },
+ getClient : function(e)
+ {
+ var h, w;
+ if (e) {
+ w = e.clientWidth;
+ h = e.clientHeight;
+ } else {
+ var de = document.documentElement;
+ w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
+ h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
+ }
+ return {w:w,h:h};
+ },
+ getScroll : function (e)
+ {
+ var t=0, l=0, w=0, h=0, iw=0, ih=0;
+ if (e && e.nodeName.toLowerCase() != 'body') {
+ t = e.scrollTop;
+ l = e.scrollLeft;
+ w = e.scrollWidth;
+ h = e.scrollHeight;
+ } else {
+ if (document.documentElement) {
+ t = document.documentElement.scrollTop;
+ l = document.documentElement.scrollLeft;
+ w = document.documentElement.scrollWidth;
+ h = document.documentElement.scrollHeight;
+ } else if (document.body) {
+ t = document.body.scrollTop;
+ l = document.body.scrollLeft;
+ w = document.body.scrollWidth;
+ h = document.body.scrollHeight;
+ }
+ if (typeof pageYOffset != 'undefined') {
+ t = pageYOffset;
+ l = pageXOffset;
+ }
+ iw = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
+ ih = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
+ }
+ return { t: t, l: l, w: w, h: h, iw: iw, ih: ih };
+ },
+ getMargins : function(e, toInteger)
+ {
+ var t = jQuery.curCSS(e,'marginTop') || '';
+ var r = jQuery.curCSS(e,'marginRight') || '';
+ var b = jQuery.curCSS(e,'marginBottom') || '';
+ var l = jQuery.curCSS(e,'marginLeft') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t, 10)||0,
+ r: parseInt(r, 10)||0,
+ b: parseInt(b, 10)||0,
+ l: parseInt(l, 10)
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getPadding : function(e, toInteger)
+ {
+ var t = jQuery.curCSS(e,'paddingTop') || '';
+ var r = jQuery.curCSS(e,'paddingRight') || '';
+ var b = jQuery.curCSS(e,'paddingBottom') || '';
+ var l = jQuery.curCSS(e,'paddingLeft') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t, 10)||0,
+ r: parseInt(r, 10)||0,
+ b: parseInt(b, 10)||0,
+ l: parseInt(l, 10)
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getBorder : function(e, toInteger)
+ {
+ var t = jQuery.curCSS(e,'borderTopWidth') || '';
+ var r = jQuery.curCSS(e,'borderRightWidth') || '';
+ var b = jQuery.curCSS(e,'borderBottomWidth') || '';
+ var l = jQuery.curCSS(e,'borderLeftWidth') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t, 10)||0,
+ r: parseInt(r, 10)||0,
+ b: parseInt(b, 10)||0,
+ l: parseInt(l, 10)||0
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ traverseDOM : function(nodeEl, func)
+ {
+ func(nodeEl);
+ nodeEl = nodeEl.firstChild;
+ while(nodeEl){
+ EYE.traverseDOM(nodeEl, func);
+ nodeEl = nodeEl.nextSibling;
+ }
+ },
+ getInnerWidth : function(el, scroll) {
+ var offsetW = el.offsetWidth;
+ return scroll ? Math.max(el.scrollWidth,offsetW) - offsetW + el.clientWidth:el.clientWidth;
+ },
+ getInnerHeight : function(el, scroll) {
+ var offsetH = el.offsetHeight;
+ return scroll ? Math.max(el.scrollHeight,offsetH) - offsetH + el.clientHeight:el.clientHeight;
+ },
+ getExtraWidth : function(el) {
+ if($.boxModel)
+ return (parseInt($.curCSS(el, 'paddingLeft'))||0)
+ + (parseInt($.curCSS(el, 'paddingRight'))||0)
+ + (parseInt($.curCSS(el, 'borderLeftWidth'))||0)
+ + (parseInt($.curCSS(el, 'borderRightWidth'))||0);
+ return 0;
+ },
+ getExtraHeight : function(el) {
+ if($.boxModel)
+ return (parseInt($.curCSS(el, 'paddingTop'))||0)
+ + (parseInt($.curCSS(el, 'paddingBottom'))||0)
+ + (parseInt($.curCSS(el, 'borderTopWidth'))||0)
+ + (parseInt($.curCSS(el, 'borderBottomWidth'))||0);
+ return 0;
+ },
+ isChildOf: function(parentEl, el, container) {
+ if (parentEl == el) {
+ return true;
+ }
+ if (!el || !el.nodeType || el.nodeType != 1) {
+ return false;
+ }
+ if (parentEl.contains && !$.browser.safari) {
+ return parentEl.contains(el);
+ }
+ if ( parentEl.compareDocumentPosition ) {
+ return !!(parentEl.compareDocumentPosition(el) & 16);
+ }
+ var prEl = el.parentNode;
+ while(prEl && prEl != container) {
+ if (prEl == parentEl)
+ return true;
+ prEl = prEl.parentNode;
+ }
+ return false;
+ },
+ centerEl : function(el, axis)
+ {
+ var clientScroll = EYE.getScroll();
+ var size = EYE.getSize(el);
+ if (!axis || axis == 'vertically')
+ $(el).css(
+ {
+ top: clientScroll.t + ((Math.min(clientScroll.h,clientScroll.ih) - size.hb)/2) + 'px'
+ }
+ );
+ if (!axis || axis == 'horizontally')
+ $(el).css(
+ {
+ left: clientScroll.l + ((Math.min(clientScroll.w,clientScroll.iw) - size.wb)/2) + 'px'
+ }
+ );
+ }
+});
+if (!$.easing.easeout) {
+ $.easing.easeout = function(p, n, firstNum, delta, duration) {
+ return -delta * ((n=n/duration-1)*n*n*n - 1) + firstNum;
+ };
+}
+
+})(jQuery);
\ No newline at end of file
diff --git a/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css b/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css
new file mode 100644
index 0000000..4e21c27
--- /dev/null
+++ b/js/plotPanelControl/jquery-easyui-1.4.4/css/easyui.css
@@ -0,0 +1,2869 @@
+.panel {
+ overflow: hidden;
+ text-align: left;
+ margin: 0;
+ border: 0;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.panel-header,
+.panel-body {
+ border-width: 1px;
+ border-style: solid;
+}
+.panel-header {
+ padding: 5px;
+ position: relative;
+}
+.panel-title {
+ background: url('images/blank.gif') no-repeat;
+}
+.panel-header-noborder {
+ border-width: 0 0 1px 0;
+}
+.panel-body {
+ overflow: auto;
+ border-top-width: 0;
+ padding: 0;
+}
+.panel-body-noheader {
+ border-top-width: 1px;
+}
+.panel-body-noborder {
+ border-width: 0px;
+}
+.panel-body-nobottom {
+ border-bottom-width: 0;
+}
+.panel-with-icon {
+ padding-left: 18px;
+}
+.panel-icon,
+.panel-tool {
+ position: absolute;
+ top: 50%;
+ margin-top: -8px;
+ height: 16px;
+ overflow: hidden;
+}
+.panel-icon {
+ left: 5px;
+ width: 16px;
+}
+.panel-tool {
+ right: 5px;
+ width: auto;
+}
+.panel-tool a {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ margin: 0 0 0 2px;
+ vertical-align: top;
+}
+.panel-tool a:hover {
+ opacity: 1;
+ filter: alpha(opacity=100);
+ background-color: #eaf2ff;
+ -moz-border-radius: 3px 3px 3px 3px;
+ -webkit-border-radius: 3px 3px 3px 3px;
+ border-radius: 3px 3px 3px 3px;
+}
+.panel-loading {
+ padding: 11px 0px 10px 30px;
+}
+.panel-noscroll {
+ overflow: hidden;
+}
+.panel-fit,
+.panel-fit body {
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ overflow: hidden;
+}
+.panel-loading {
+ background: url('images/loading.gif') no-repeat 10px 10px;
+}
+.panel-tool-close {
+ background: url('images/panel_tools.png') no-repeat -16px 0px;
+}
+.panel-tool-min {
+ background: url('images/panel_tools.png') no-repeat 0px 0px;
+}
+.panel-tool-max {
+ background: url('images/panel_tools.png') no-repeat 0px -16px;
+}
+.panel-tool-restore {
+ background: url('images/panel_tools.png') no-repeat -16px -16px;
+}
+.panel-tool-collapse {
+ background: url('images/panel_tools.png') no-repeat -32px 0;
+}
+.panel-tool-expand {
+ background: url('images/panel_tools.png') no-repeat -32px -16px;
+}
+.panel-header,
+.panel-body {
+ border-color: #95B8E7;
+}
+.panel-header {
+ background-color: #E0ECFF;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
+}
+.panel-body {
+ background-color: #ffffff;
+ color: #000000;
+ font-size: 12px;
+}
+.panel-title {
+ font-size: 12px;
+ font-weight: bold;
+ color: #0E2D5F;
+ height: 16px;
+ line-height: 16px;
+}
+.panel-footer {
+ border: 1px solid #95B8E7;
+ overflow: hidden;
+ background: #F4F4F4;
+}
+.panel-footer-noborder {
+ border-width: 1px 0 0 0;
+}
+.accordion {
+ overflow: hidden;
+ border-width: 1px;
+ border-style: solid;
+}
+.accordion .accordion-header {
+ border-width: 0 0 1px;
+ cursor: pointer;
+}
+.accordion .accordion-body {
+ border-width: 0 0 1px;
+}
+.accordion-noborder {
+ border-width: 0;
+}
+.accordion-noborder .accordion-header {
+ border-width: 0 0 1px;
+}
+.accordion-noborder .accordion-body {
+ border-width: 0 0 1px;
+}
+.accordion-collapse {
+ background: url('images/accordion_arrows.png') no-repeat 0 0;
+}
+.accordion-expand {
+ background: url('images/accordion_arrows.png') no-repeat -16px 0;
+}
+.accordion {
+ background: #ffffff;
+ border-color: #95B8E7;
+}
+.accordion .accordion-header {
+ background: #E0ECFF;
+ filter: none;
+}
+.accordion .accordion-header-selected {
+ background: #ffe48d;
+}
+.accordion .accordion-header-selected .panel-title {
+ color: #000000;
+}
+.window {
+ overflow: hidden;
+ padding: 5px;
+ border-width: 1px;
+ border-style: solid;
+}
+.window .window-header {
+ background: transparent;
+ padding: 0px 0px 6px 0px;
+}
+.window .window-body {
+ border-width: 1px;
+ border-style: solid;
+ border-top-width: 0px;
+}
+.window .window-body-noheader {
+ border-top-width: 1px;
+}
+.window .panel-body-nobottom {
+ border-bottom-width: 0;
+}
+.window .window-header .panel-icon,
+.window .window-header .panel-tool {
+ top: 50%;
+ margin-top: -11px;
+}
+.window .window-header .panel-icon {
+ left: 1px;
+}
+.window .window-header .panel-tool {
+ right: 1px;
+}
+.window .window-header .panel-with-icon {
+ padding-left: 18px;
+}
+.window-proxy {
+ position: absolute;
+ overflow: hidden;
+}
+.window-proxy-mask {
+ position: absolute;
+ filter: alpha(opacity=5);
+ opacity: 0.05;
+}
+.window-mask {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ filter: alpha(opacity=40);
+ opacity: 0.40;
+ font-size: 1px;
+ overflow: hidden;
+}
+.window,
+.window-shadow {
+ position: absolute;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.window-shadow {
+ background: #ccc;
+ -moz-box-shadow: 2px 2px 3px #cccccc;
+ -webkit-box-shadow: 2px 2px 3px #cccccc;
+ box-shadow: 2px 2px 3px #cccccc;
+ filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
+}
+.window,
+.window .window-body {
+ border-color: #95B8E7;
+}
+.window {
+ background-color: #E0ECFF;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 20%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 20%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
+}
+.window-proxy {
+ border: 1px dashed #95B8E7;
+}
+.window-proxy-mask,
+.window-mask {
+ background: #ccc;
+}
+.window .panel-footer {
+ border: 1px solid #95B8E7;
+ position: relative;
+ top: -1px;
+}
+.dialog-content {
+ overflow: auto;
+}
+.dialog-toolbar {
+ padding: 2px 5px;
+}
+.dialog-tool-separator {
+ float: left;
+ height: 24px;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+ margin: 2px 1px;
+}
+.dialog-button {
+ padding: 5px;
+ text-align: right;
+}
+.dialog-button .l-btn {
+ margin-left: 5px;
+}
+.dialog-toolbar,
+.dialog-button {
+ background: #F4F4F4;
+ border-width: 1px;
+ border-style: solid;
+}
+.dialog-toolbar {
+ border-color: #95B8E7 #95B8E7 #dddddd #95B8E7;
+}
+.dialog-button {
+ border-color: #dddddd #95B8E7 #95B8E7 #95B8E7;
+}
+.l-btn {
+ text-decoration: none;
+ display: inline-block;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+ cursor: pointer;
+ outline: none;
+ text-align: center;
+ vertical-align: middle;
+ line-height: normal;
+}
+.l-btn-plain {
+ border-width: 0;
+ padding: 1px;
+}
+.l-btn-left {
+ display: inline-block;
+ position: relative;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+ vertical-align: top;
+}
+.l-btn-text {
+ display: inline-block;
+ vertical-align: top;
+ width: auto;
+ line-height: 24px;
+ font-size: 12px;
+ padding: 0;
+ margin: 0 4px;
+}
+.l-btn-icon {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ line-height: 16px;
+ position: absolute;
+ top: 50%;
+ margin-top: -8px;
+ font-size: 1px;
+}
+.l-btn span span .l-btn-empty {
+ display: inline-block;
+ margin: 0;
+ width: 16px;
+ height: 24px;
+ font-size: 1px;
+ vertical-align: top;
+}
+.l-btn span .l-btn-icon-left {
+ padding: 0 0 0 20px;
+ background-position: left center;
+}
+.l-btn span .l-btn-icon-right {
+ padding: 0 20px 0 0;
+ background-position: right center;
+}
+.l-btn-icon-left .l-btn-text {
+ margin: 0 4px 0 24px;
+}
+.l-btn-icon-left .l-btn-icon {
+ left: 4px;
+}
+.l-btn-icon-right .l-btn-text {
+ margin: 0 24px 0 4px;
+}
+.l-btn-icon-right .l-btn-icon {
+ right: 4px;
+}
+.l-btn-icon-top .l-btn-text {
+ margin: 20px 4px 0 4px;
+}
+.l-btn-icon-top .l-btn-icon {
+ top: 4px;
+ left: 50%;
+ margin: 0 0 0 -8px;
+}
+.l-btn-icon-bottom .l-btn-text {
+ margin: 0 4px 20px 4px;
+}
+.l-btn-icon-bottom .l-btn-icon {
+ top: auto;
+ bottom: 4px;
+ left: 50%;
+ margin: 0 0 0 -8px;
+}
+.l-btn-left .l-btn-empty {
+ margin: 0 4px;
+ width: 16px;
+}
+.l-btn-plain:hover {
+ padding: 0;
+}
+.l-btn-focus {
+ outline: #0000FF dotted thin;
+}
+.l-btn-large .l-btn-text {
+ line-height: 40px;
+}
+.l-btn-large .l-btn-icon {
+ width: 32px;
+ height: 32px;
+ line-height: 32px;
+ margin-top: -16px;
+}
+.l-btn-large .l-btn-icon-left .l-btn-text {
+ margin-left: 40px;
+}
+.l-btn-large .l-btn-icon-right .l-btn-text {
+ margin-right: 40px;
+}
+.l-btn-large .l-btn-icon-top .l-btn-text {
+ margin-top: 36px;
+ line-height: 24px;
+ min-width: 32px;
+}
+.l-btn-large .l-btn-icon-top .l-btn-icon {
+ margin: 0 0 0 -16px;
+}
+.l-btn-large .l-btn-icon-bottom .l-btn-text {
+ margin-bottom: 36px;
+ line-height: 24px;
+ min-width: 32px;
+}
+.l-btn-large .l-btn-icon-bottom .l-btn-icon {
+ margin: 0 0 0 -16px;
+}
+.l-btn-large .l-btn-left .l-btn-empty {
+ margin: 0 4px;
+ width: 32px;
+}
+.l-btn {
+ color: #444;
+ background: #fafafa;
+ background-repeat: repeat-x;
+ border: 1px solid #bbb;
+ background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0);
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.l-btn:hover {
+ background: #eaf2ff;
+ color: #000000;
+ border: 1px solid #b7d2ff;
+ filter: none;
+}
+.l-btn-plain {
+ background: transparent;
+ border-width: 0;
+ filter: none;
+}
+.l-btn-outline {
+ border-width: 1px;
+ border-color: #b7d2ff;
+ padding: 0;
+}
+.l-btn-plain:hover {
+ background: #eaf2ff;
+ color: #000000;
+ border: 1px solid #b7d2ff;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.l-btn-disabled,
+.l-btn-disabled:hover {
+ opacity: 0.5;
+ cursor: default;
+ background: #fafafa;
+ color: #444;
+ background: -webkit-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -moz-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: -o-linear-gradient(top,#ffffff 0,#eeeeee 100%);
+ background: linear-gradient(to bottom,#ffffff 0,#eeeeee 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#eeeeee,GradientType=0);
+}
+.l-btn-disabled .l-btn-text,
+.l-btn-disabled .l-btn-icon {
+ filter: alpha(opacity=50);
+}
+.l-btn-plain-disabled,
+.l-btn-plain-disabled:hover {
+ background: transparent;
+ filter: alpha(opacity=50);
+}
+.l-btn-selected,
+.l-btn-selected:hover {
+ background: #ddd;
+ filter: none;
+}
+.l-btn-plain-selected,
+.l-btn-plain-selected:hover {
+ background: #ddd;
+}
+.textbox {
+ position: relative;
+ border: 1px solid #95B8E7;
+ background-color: #fff;
+ vertical-align: middle;
+ display: inline-block;
+ overflow: hidden;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.textbox .textbox-text {
+ font-size: 12px;
+ border: 0;
+ margin: 0;
+ padding: 4px;
+ white-space: normal;
+ vertical-align: top;
+ outline-style: none;
+ resize: none;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.textbox textarea.textbox-text {
+ white-space: pre-wrap;
+}
+.textbox .textbox-prompt {
+ font-size: 12px;
+ color: #aaa;
+}
+.textbox .textbox-button,
+.textbox .textbox-button:hover {
+ position: absolute;
+ top: 0;
+ padding: 0;
+ vertical-align: top;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.textbox-button-right,
+.textbox-button-right:hover {
+ border-width: 0 0 0 1px;
+}
+.textbox-button-left,
+.textbox-button-left:hover {
+ border-width: 0 1px 0 0;
+}
+.textbox-addon {
+ position: absolute;
+ top: 0;
+}
+.textbox-icon {
+ display: inline-block;
+ width: 18px;
+ height: 20px;
+ overflow: hidden;
+ vertical-align: top;
+ background-position: center center;
+ cursor: pointer;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ text-decoration: none;
+ outline-style: none;
+}
+.textbox-icon-disabled,
+.textbox-icon-readonly {
+ cursor: default;
+}
+.textbox-icon:hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.textbox-icon-disabled:hover {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.textbox-focused {
+ -moz-box-shadow: 0 0 3px 0 #95B8E7;
+ -webkit-box-shadow: 0 0 3px 0 #95B8E7;
+ box-shadow: 0 0 3px 0 #95B8E7;
+}
+.textbox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+}
+.filebox .textbox-value {
+ vertical-align: top;
+ position: absolute;
+ top: 0;
+ left: -5000px;
+}
+.filebox-label {
+ display: inline-block;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ cursor: pointer;
+ left: 0;
+ top: 0;
+ z-index: 10;
+ background: url('images/blank.gif') no-repeat;
+}
+.l-btn-disabled .filebox-label {
+ cursor: default;
+}
+.combo {
+ display: inline-block;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.combo .combo-text {
+ font-size: 12px;
+ border: 0px;
+ margin: 0;
+ padding: 0px 2px;
+ vertical-align: baseline;
+}
+.combo-arrow {
+ width: 18px;
+ height: 20px;
+ overflow: hidden;
+ display: inline-block;
+ vertical-align: top;
+ cursor: pointer;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.combo-arrow-hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.combo-panel {
+ overflow: auto;
+}
+.combo-arrow {
+ background: url('images/combo_arrow.png') no-repeat center center;
+}
+.combo-panel {
+ background-color: #ffffff;
+}
+.combo {
+ border-color: #95B8E7;
+ background-color: #fff;
+}
+.combo-arrow {
+ background-color: #E0ECFF;
+}
+.combo-arrow-hover {
+ background-color: #eaf2ff;
+}
+.combo-arrow:hover {
+ background-color: #eaf2ff;
+}
+.combo .textbox-icon-disabled:hover {
+ cursor: default;
+}
+.textbox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+}
+.combobox-item,
+.combobox-group {
+ font-size: 12px;
+ padding: 3px;
+ padding-right: 0px;
+}
+.combobox-item-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.combobox-gitem {
+ padding-left: 10px;
+}
+.combobox-group {
+ font-weight: bold;
+}
+.combobox-item-hover {
+ background-color: #eaf2ff;
+ color: #000000;
+}
+.combobox-item-selected {
+ background-color: #ffe48d;
+ color: #000000;
+}
+.layout {
+ position: relative;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+ z-index: 0;
+}
+.layout-panel {
+ position: absolute;
+ overflow: hidden;
+}
+.layout-body {
+ min-width: 1px;
+ min-height: 1px;
+}
+.layout-panel-east,
+.layout-panel-west {
+ z-index: 2;
+}
+.layout-panel-north,
+.layout-panel-south {
+ z-index: 3;
+}
+.layout-expand {
+ position: absolute;
+ padding: 0px;
+ font-size: 1px;
+ cursor: pointer;
+ z-index: 1;
+}
+.layout-expand .panel-header,
+.layout-expand .panel-body {
+ background: transparent;
+ filter: none;
+ overflow: hidden;
+}
+.layout-expand .panel-header {
+ border-bottom-width: 0px;
+}
+.layout-expand .panel-body {
+ position: relative;
+}
+.layout-expand .panel-body .panel-icon {
+ margin-top: 0;
+ top: 0;
+ left: 50%;
+ margin-left: -8px;
+}
+.layout-expand-west .panel-header .panel-icon,
+.layout-expand-east .panel-header .panel-icon {
+ display: none;
+}
+.layout-expand-title {
+ position: absolute;
+ top: 0;
+ left: 21px;
+ white-space: nowrap;
+ word-wrap: normal;
+ -webkit-transform: rotate(90deg);
+ -webkit-transform-origin: 0 0;
+ -moz-transform: rotate(90deg);
+ -moz-transform-origin: 0 0;
+ -o-transform: rotate(90deg);
+ -o-transform-origin: 0 0;
+ transform: rotate(90deg);
+ transform-origin: 0 0;
+}
+.layout-expand-with-icon {
+ top: 18px;
+}
+.layout-expand .panel-body-noheader .layout-expand-title,
+.layout-expand .panel-body-noheader .panel-icon {
+ top: 5px;
+}
+.layout-expand .panel-body-noheader .layout-expand-with-icon {
+ top: 23px;
+}
+.layout-split-proxy-h,
+.layout-split-proxy-v {
+ position: absolute;
+ font-size: 1px;
+ display: none;
+ z-index: 5;
+}
+.layout-split-proxy-h {
+ width: 5px;
+ cursor: e-resize;
+}
+.layout-split-proxy-v {
+ height: 5px;
+ cursor: n-resize;
+}
+.layout-mask {
+ position: absolute;
+ background: #fafafa;
+ filter: alpha(opacity=10);
+ opacity: 0.10;
+ z-index: 4;
+}
+.layout-button-up {
+ background: url('images/layout_arrows.png') no-repeat -16px -16px;
+}
+.layout-button-down {
+ background: url('images/layout_arrows.png') no-repeat -16px 0;
+}
+.layout-button-left {
+ background: url('images/layout_arrows.png') no-repeat 0 0;
+}
+.layout-button-right {
+ background: url('images/layout_arrows.png') no-repeat 0 -16px;
+}
+.layout-split-proxy-h,
+.layout-split-proxy-v {
+ background-color: #aac5e7;
+}
+.layout-split-north {
+ border-bottom: 5px solid #E6EEF8;
+}
+.layout-split-south {
+ border-top: 5px solid #E6EEF8;
+}
+.layout-split-east {
+ border-left: 5px solid #E6EEF8;
+}
+.layout-split-west {
+ border-right: 5px solid #E6EEF8;
+}
+.layout-expand {
+ background-color: #E0ECFF;
+}
+.layout-expand-over {
+ background-color: #E0ECFF;
+}
+.tabs-container {
+ overflow: hidden;
+}
+.tabs-header {
+ border-width: 1px;
+ border-style: solid;
+ border-bottom-width: 0;
+ position: relative;
+ padding: 0;
+ padding-top: 2px;
+ overflow: hidden;
+}
+.tabs-scroller-left,
+.tabs-scroller-right {
+ position: absolute;
+ top: auto;
+ bottom: 0;
+ width: 18px;
+ font-size: 1px;
+ display: none;
+ cursor: pointer;
+ border-width: 1px;
+ border-style: solid;
+}
+.tabs-scroller-left {
+ left: 0;
+}
+.tabs-scroller-right {
+ right: 0;
+}
+.tabs-tool {
+ position: absolute;
+ bottom: 0;
+ padding: 1px;
+ overflow: hidden;
+ border-width: 1px;
+ border-style: solid;
+}
+.tabs-header-plain .tabs-tool {
+ padding: 0 1px;
+}
+.tabs-wrap {
+ position: relative;
+ left: 0;
+ overflow: hidden;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+}
+.tabs-scrolling {
+ margin-left: 18px;
+ margin-right: 18px;
+}
+.tabs-disabled {
+ opacity: 0.3;
+ filter: alpha(opacity=30);
+}
+.tabs {
+ list-style-type: none;
+ height: 26px;
+ margin: 0px;
+ padding: 0px;
+ padding-left: 4px;
+ width: 50000px;
+ border-style: solid;
+ border-width: 0 0 1px 0;
+}
+.tabs li {
+ float: left;
+ display: inline-block;
+ margin: 0 4px -1px 0;
+ padding: 0;
+ position: relative;
+ border: 0;
+}
+.tabs li a.tabs-inner {
+ display: inline-block;
+ text-decoration: none;
+ margin: 0;
+ padding: 0 10px;
+ height: 25px;
+ line-height: 25px;
+ text-align: center;
+ white-space: nowrap;
+ border-width: 1px;
+ border-style: solid;
+ -moz-border-radius: 5px 5px 0 0;
+ -webkit-border-radius: 5px 5px 0 0;
+ border-radius: 5px 5px 0 0;
+}
+.tabs li.tabs-selected a.tabs-inner {
+ font-weight: bold;
+ outline: none;
+}
+.tabs li.tabs-selected a:hover.tabs-inner {
+ cursor: default;
+ pointer: default;
+}
+.tabs li a.tabs-close,
+.tabs-p-tool {
+ position: absolute;
+ font-size: 1px;
+ display: block;
+ height: 12px;
+ padding: 0;
+ top: 50%;
+ margin-top: -6px;
+ overflow: hidden;
+}
+.tabs li a.tabs-close {
+ width: 12px;
+ right: 5px;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.tabs-p-tool {
+ right: 16px;
+}
+.tabs-p-tool a {
+ display: inline-block;
+ font-size: 1px;
+ width: 12px;
+ height: 12px;
+ margin: 0;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.tabs li a:hover.tabs-close,
+.tabs-p-tool a:hover {
+ opacity: 1;
+ filter: alpha(opacity=100);
+ cursor: hand;
+ cursor: pointer;
+}
+.tabs-with-icon {
+ padding-left: 18px;
+}
+.tabs-icon {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ left: 10px;
+ top: 50%;
+ margin-top: -8px;
+}
+.tabs-title {
+ font-size: 12px;
+}
+.tabs-closable {
+ padding-right: 8px;
+}
+.tabs-panels {
+ margin: 0px;
+ padding: 0px;
+ border-width: 1px;
+ border-style: solid;
+ border-top-width: 0;
+ overflow: hidden;
+}
+.tabs-header-bottom {
+ border-width: 0 1px 1px 1px;
+ padding: 0 0 2px 0;
+}
+.tabs-header-bottom .tabs {
+ border-width: 1px 0 0 0;
+}
+.tabs-header-bottom .tabs li {
+ margin: -1px 4px 0 0;
+}
+.tabs-header-bottom .tabs li a.tabs-inner {
+ -moz-border-radius: 0 0 5px 5px;
+ -webkit-border-radius: 0 0 5px 5px;
+ border-radius: 0 0 5px 5px;
+}
+.tabs-header-bottom .tabs-tool {
+ top: 0;
+}
+.tabs-header-bottom .tabs-scroller-left,
+.tabs-header-bottom .tabs-scroller-right {
+ top: 0;
+ bottom: auto;
+}
+.tabs-panels-top {
+ border-width: 1px 1px 0 1px;
+}
+.tabs-header-left {
+ float: left;
+ border-width: 1px 0 1px 1px;
+ padding: 0;
+}
+.tabs-header-right {
+ float: right;
+ border-width: 1px 1px 1px 0;
+ padding: 0;
+}
+.tabs-header-left .tabs-wrap,
+.tabs-header-right .tabs-wrap {
+ height: 100%;
+}
+.tabs-header-left .tabs {
+ height: 100%;
+ padding: 4px 0 0 2px;
+ border-width: 0 1px 0 0;
+}
+.tabs-header-right .tabs {
+ height: 100%;
+ padding: 4px 2px 0 0;
+ border-width: 0 0 0 1px;
+}
+.tabs-header-left .tabs li,
+.tabs-header-right .tabs li {
+ display: block;
+ width: 100%;
+ position: relative;
+}
+.tabs-header-left .tabs li {
+ left: auto;
+ right: 0;
+ margin: 0 -1px 4px 0;
+ float: right;
+}
+.tabs-header-right .tabs li {
+ left: 0;
+ right: auto;
+ margin: 0 0 4px -1px;
+ float: left;
+}
+.tabs-justified li a.tabs-inner {
+ padding-left: 0;
+ padding-right: 0;
+}
+.tabs-header-left .tabs li a.tabs-inner {
+ display: block;
+ text-align: left;
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-border-radius: 5px 0 0 5px;
+ -webkit-border-radius: 5px 0 0 5px;
+ border-radius: 5px 0 0 5px;
+}
+.tabs-header-right .tabs li a.tabs-inner {
+ display: block;
+ text-align: left;
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-border-radius: 0 5px 5px 0;
+ -webkit-border-radius: 0 5px 5px 0;
+ border-radius: 0 5px 5px 0;
+}
+.tabs-panels-right {
+ float: right;
+ border-width: 1px 1px 1px 0;
+}
+.tabs-panels-left {
+ float: left;
+ border-width: 1px 0 1px 1px;
+}
+.tabs-header-noborder,
+.tabs-panels-noborder {
+ border: 0px;
+}
+.tabs-header-plain {
+ border: 0px;
+ background: transparent;
+}
+.tabs-pill {
+ padding-bottom: 3px;
+}
+.tabs-header-bottom .tabs-pill {
+ padding-top: 3px;
+ padding-bottom: 0;
+}
+.tabs-header-left .tabs-pill {
+ padding-right: 3px;
+}
+.tabs-header-right .tabs-pill {
+ padding-left: 3px;
+}
+.tabs-header .tabs-pill li a.tabs-inner {
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.tabs-header-narrow,
+.tabs-header-narrow .tabs-narrow {
+ padding: 0;
+}
+.tabs-narrow li,
+.tabs-header-bottom .tabs-narrow li {
+ margin-left: 0;
+ margin-right: -1px;
+}
+.tabs-narrow li.tabs-last,
+.tabs-header-bottom .tabs-narrow li.tabs-last {
+ margin-right: 0;
+}
+.tabs-header-left .tabs-narrow,
+.tabs-header-right .tabs-narrow {
+ padding-top: 0;
+}
+.tabs-header-left .tabs-narrow li {
+ margin-bottom: -1px;
+ margin-right: -1px;
+}
+.tabs-header-left .tabs-narrow li.tabs-last,
+.tabs-header-right .tabs-narrow li.tabs-last {
+ margin-bottom: 0;
+}
+.tabs-header-right .tabs-narrow li {
+ margin-bottom: -1px;
+ margin-left: -1px;
+}
+.tabs-scroller-left {
+ background: #E0ECFF url('images/tabs_icons.png') no-repeat 1px center;
+}
+.tabs-scroller-right {
+ background: #E0ECFF url('images/tabs_icons.png') no-repeat -15px center;
+}
+.tabs li a.tabs-close {
+ background: url('images/tabs_icons.png') no-repeat -34px center;
+}
+.tabs li a.tabs-inner:hover {
+ background: #eaf2ff;
+ color: #000000;
+ filter: none;
+}
+.tabs li.tabs-selected a.tabs-inner {
+ background-color: #ffffff;
+ color: #0E2D5F;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#ffffff 100%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#ffffff 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=0);
+}
+.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner {
+ background: -webkit-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
+ background: -moz-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
+ background: -o-linear-gradient(top,#ffffff 0,#EFF5FF 100%);
+ background: linear-gradient(to bottom,#ffffff 0,#EFF5FF 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=0);
+}
+.tabs-header-left .tabs li.tabs-selected a.tabs-inner {
+ background: -webkit-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
+ background: -moz-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
+ background: -o-linear-gradient(left,#EFF5FF 0,#ffffff 100%);
+ background: linear-gradient(to right,#EFF5FF 0,#ffffff 100%);
+ background-repeat: repeat-y;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#ffffff,GradientType=1);
+}
+.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
+ background: -webkit-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
+ background: -moz-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
+ background: -o-linear-gradient(left,#ffffff 0,#EFF5FF 100%);
+ background: linear-gradient(to right,#ffffff 0,#EFF5FF 100%);
+ background-repeat: repeat-y;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff,endColorstr=#EFF5FF,GradientType=1);
+}
+.tabs li a.tabs-inner {
+ color: #0E2D5F;
+ background-color: #E0ECFF;
+ background: -webkit-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -moz-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: -o-linear-gradient(top,#EFF5FF 0,#E0ECFF 100%);
+ background: linear-gradient(to bottom,#EFF5FF 0,#E0ECFF 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFF5FF,endColorstr=#E0ECFF,GradientType=0);
+}
+.tabs-header,
+.tabs-tool {
+ background-color: #E0ECFF;
+}
+.tabs-header-plain {
+ background: transparent;
+}
+.tabs-header,
+.tabs-scroller-left,
+.tabs-scroller-right,
+.tabs-tool,
+.tabs,
+.tabs-panels,
+.tabs li a.tabs-inner,
+.tabs li.tabs-selected a.tabs-inner,
+.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner,
+.tabs-header-left .tabs li.tabs-selected a.tabs-inner,
+.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
+ border-color: #95B8E7;
+}
+.tabs-p-tool a:hover,
+.tabs li a:hover.tabs-close,
+.tabs-scroller-over {
+ background-color: #eaf2ff;
+}
+.tabs li.tabs-selected a.tabs-inner {
+ border-bottom: 1px solid #ffffff;
+}
+.tabs-header-bottom .tabs li.tabs-selected a.tabs-inner {
+ border-top: 1px solid #ffffff;
+}
+.tabs-header-left .tabs li.tabs-selected a.tabs-inner {
+ border-right: 1px solid #ffffff;
+}
+.tabs-header-right .tabs li.tabs-selected a.tabs-inner {
+ border-left: 1px solid #ffffff;
+}
+.tabs-header .tabs-pill li.tabs-selected a.tabs-inner {
+ background: #ffe48d;
+ color: #000000;
+ filter: none;
+ border-color: #95B8E7;
+}
+.datagrid .panel-body {
+ overflow: hidden;
+ position: relative;
+}
+.datagrid-view {
+ position: relative;
+ overflow: hidden;
+}
+.datagrid-view1,
+.datagrid-view2 {
+ position: absolute;
+ overflow: hidden;
+ top: 0;
+}
+.datagrid-view1 {
+ left: 0;
+}
+.datagrid-view2 {
+ right: 0;
+}
+.datagrid-mask {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0.3;
+ filter: alpha(opacity=30);
+ display: none;
+}
+.datagrid-mask-msg {
+ position: absolute;
+ top: 50%;
+ margin-top: -20px;
+ padding: 10px 5px 10px 30px;
+ width: auto;
+ height: 16px;
+ border-width: 2px;
+ border-style: solid;
+ display: none;
+}
+.datagrid-sort-icon {
+ padding: 0;
+ display: none;
+}
+.datagrid-toolbar {
+ height: auto;
+ padding: 1px 2px;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+}
+.datagrid-btn-separator {
+ float: left;
+ height: 24px;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+ margin: 2px 1px;
+}
+.datagrid .datagrid-pager {
+ display: block;
+ margin: 0;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+}
+.datagrid .datagrid-pager-top {
+ border-width: 0 0 1px 0;
+}
+.datagrid-header {
+ overflow: hidden;
+ cursor: default;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+}
+.datagrid-header-inner {
+ float: left;
+ width: 10000px;
+}
+.datagrid-header-row,
+.datagrid-row {
+ height: 25px;
+}
+.datagrid-header td,
+.datagrid-body td,
+.datagrid-footer td {
+ border-width: 0 1px 1px 0;
+ border-style: dotted;
+ margin: 0;
+ padding: 0;
+}
+.datagrid-cell,
+.datagrid-cell-group,
+.datagrid-header-rownumber,
+.datagrid-cell-rownumber {
+ margin: 0;
+ padding: 0 4px;
+ white-space: nowrap;
+ word-wrap: normal;
+ overflow: hidden;
+ height: 18px;
+ line-height: 18px;
+ font-size: 12px;
+}
+.datagrid-header .datagrid-cell {
+ height: auto;
+}
+.datagrid-header .datagrid-cell span {
+ font-size: 12px;
+}
+.datagrid-cell-group {
+ text-align: center;
+ text-overflow: ellipsis;
+}
+.datagrid-header-rownumber,
+.datagrid-cell-rownumber {
+ width: 30px;
+ text-align: center;
+ margin: 0;
+ padding: 0;
+}
+.datagrid-body {
+ margin: 0;
+ padding: 0;
+ overflow: auto;
+ zoom: 1;
+}
+.datagrid-view1 .datagrid-body-inner {
+ padding-bottom: 20px;
+}
+.datagrid-view1 .datagrid-body {
+ overflow: hidden;
+}
+.datagrid-footer {
+ overflow: hidden;
+}
+.datagrid-footer-inner {
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ width: 10000px;
+ float: left;
+}
+.datagrid-row-editing .datagrid-cell {
+ height: auto;
+}
+.datagrid-header-check,
+.datagrid-cell-check {
+ padding: 0;
+ width: 27px;
+ height: 18px;
+ font-size: 1px;
+ text-align: center;
+ overflow: hidden;
+}
+.datagrid-header-check input,
+.datagrid-cell-check input {
+ margin: 0;
+ padding: 0;
+ width: 15px;
+ height: 18px;
+}
+.datagrid-resize-proxy {
+ position: absolute;
+ width: 1px;
+ height: 10000px;
+ top: 0;
+ cursor: e-resize;
+ display: none;
+}
+.datagrid-body .datagrid-editable {
+ margin: 0;
+ padding: 0;
+}
+.datagrid-body .datagrid-editable table {
+ width: 100%;
+ height: 100%;
+}
+.datagrid-body .datagrid-editable td {
+ border: 0;
+ margin: 0;
+ padding: 0;
+}
+.datagrid-view .datagrid-editable-input {
+ margin: 0;
+ padding: 2px 4px;
+ border: 1px solid #95B8E7;
+ font-size: 12px;
+ outline-style: none;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.datagrid-sort .datagrid-sort-icon {
+ display: inline;
+ padding: 0 13px 0 0;
+ background: url('images/datagrid_icons.png') no-repeat -64px center;
+}
+.datagrid-sort-desc .datagrid-sort-icon {
+ display: inline;
+ padding: 0 13px 0 0;
+ background: url('images/datagrid_icons.png') no-repeat -16px center;
+}
+.datagrid-sort-asc .datagrid-sort-icon {
+ display: inline;
+ padding: 0 13px 0 0;
+ background: url('images/datagrid_icons.png') no-repeat 0px center;
+}
+.datagrid-row-collapse {
+ background: url('images/datagrid_icons.png') no-repeat -48px center;
+}
+.datagrid-row-expand {
+ background: url('images/datagrid_icons.png') no-repeat -32px center;
+}
+.datagrid-mask-msg {
+ background: #ffffff url('images/loading.gif') no-repeat scroll 5px center;
+}
+.datagrid-header,
+.datagrid-td-rownumber {
+ background-color: #efefef;
+ background: -webkit-linear-gradient(top,#F9F9F9 0,#efefef 100%);
+ background: -moz-linear-gradient(top,#F9F9F9 0,#efefef 100%);
+ background: -o-linear-gradient(top,#F9F9F9 0,#efefef 100%);
+ background: linear-gradient(to bottom,#F9F9F9 0,#efefef 100%);
+ background-repeat: repeat-x;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,endColorstr=#efefef,GradientType=0);
+}
+.datagrid-cell-rownumber {
+ color: #000000;
+}
+.datagrid-resize-proxy {
+ background: #aac5e7;
+}
+.datagrid-mask {
+ background: #ccc;
+}
+.datagrid-mask-msg {
+ border-color: #95B8E7;
+}
+.datagrid-toolbar,
+.datagrid-pager {
+ background: #F4F4F4;
+}
+.datagrid-header,
+.datagrid-toolbar,
+.datagrid-pager,
+.datagrid-footer-inner {
+ border-color: #dddddd;
+}
+.datagrid-header td,
+.datagrid-body td,
+.datagrid-footer td {
+ border-color: #ccc;
+}
+.datagrid-htable,
+.datagrid-btable,
+.datagrid-ftable {
+ color: #000000;
+ border-collapse: separate;
+}
+.datagrid-row-alt {
+ background: #fafafa;
+}
+.datagrid-row-over,
+.datagrid-header td.datagrid-header-over {
+ background: #eaf2ff;
+ color: #000000;
+ cursor: default;
+}
+.datagrid-row-selected {
+ background: #ffe48d;
+ color: #000000;
+}
+.datagrid-row-editing .textbox,
+.datagrid-row-editing .textbox-text {
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.propertygrid .datagrid-view1 .datagrid-body td {
+ padding-bottom: 1px;
+ border-width: 0 1px 0 0;
+}
+.propertygrid .datagrid-group {
+ height: 21px;
+ overflow: hidden;
+ border-width: 0 0 1px 0;
+ border-style: solid;
+}
+.propertygrid .datagrid-group span {
+ font-weight: bold;
+}
+.propertygrid .datagrid-view1 .datagrid-body td {
+ border-color: #dddddd;
+}
+.propertygrid .datagrid-view1 .datagrid-group {
+ border-color: #E0ECFF;
+}
+.propertygrid .datagrid-view2 .datagrid-group {
+ border-color: #dddddd;
+}
+.propertygrid .datagrid-group,
+.propertygrid .datagrid-view1 .datagrid-body,
+.propertygrid .datagrid-view1 .datagrid-row-over,
+.propertygrid .datagrid-view1 .datagrid-row-selected {
+ background: #E0ECFF;
+}
+.datalist .datagrid-header {
+ border-width: 0;
+}
+.datalist .datagrid-group,
+.m-list .m-list-group {
+ height: 25px;
+ line-height: 25px;
+ font-weight: bold;
+ overflow: hidden;
+ background-color: #efefef;
+ border-style: solid;
+ border-width: 0 0 1px 0;
+ border-color: #ccc;
+}
+.datalist .datagrid-group-expander {
+ display: none;
+}
+.datalist .datagrid-group-title {
+ padding: 0 4px;
+}
+.datalist .datagrid-btable {
+ width: 100%;
+ table-layout: fixed;
+}
+.datalist .datagrid-row td {
+ border-style: solid;
+ border-left-color: transparent;
+ border-right-color: transparent;
+ border-bottom-width: 0;
+}
+.datalist-lines .datagrid-row td {
+ border-bottom-width: 1px;
+}
+.datalist .datagrid-cell,
+.m-list li {
+ width: auto;
+ height: auto;
+ padding: 2px 4px;
+ line-height: 18px;
+ position: relative;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+}
+.datalist-link,
+.m-list li>a {
+ display: block;
+ position: relative;
+ cursor: pointer;
+ color: #000000;
+ text-decoration: none;
+ overflow: hidden;
+ margin: -2px -4px;
+ padding: 2px 4px;
+ padding-right: 16px;
+ line-height: 18px;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+}
+.datalist-link::after,
+.m-list li>a::after {
+ position: absolute;
+ display: block;
+ width: 8px;
+ height: 8px;
+ content: '';
+ right: 6px;
+ top: 50%;
+ margin-top: -4px;
+ border-style: solid;
+ border-width: 1px 1px 0 0;
+ -ms-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -webkit-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+.m-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+.m-list li {
+ border-style: solid;
+ border-width: 0 0 1px 0;
+ border-color: #ccc;
+}
+.m-list li>a:hover {
+ background: #eaf2ff;
+ color: #000000;
+}
+.m-list .m-list-group {
+ padding: 0 4px;
+}
+.pagination {
+ zoom: 1;
+}
+.pagination table {
+ float: left;
+ height: 30px;
+}
+.pagination td {
+ border: 0;
+}
+.pagination-btn-separator {
+ float: left;
+ height: 24px;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+ margin: 3px 1px;
+}
+.pagination .pagination-num {
+ border-width: 1px;
+ border-style: solid;
+ margin: 0 2px;
+ padding: 2px;
+ width: 2em;
+ height: auto;
+}
+.pagination-page-list {
+ margin: 0px 6px;
+ padding: 1px 2px;
+ width: auto;
+ height: auto;
+ border-width: 1px;
+ border-style: solid;
+}
+.pagination-info {
+ float: right;
+ margin: 0 6px 0 0;
+ padding: 0;
+ height: 30px;
+ line-height: 30px;
+ font-size: 12px;
+}
+.pagination span {
+ font-size: 12px;
+}
+.pagination-link .l-btn-text {
+ width: 24px;
+ text-align: center;
+ margin: 0;
+}
+.pagination-first {
+ background: url('images/pagination_icons.png') no-repeat 0 center;
+}
+.pagination-prev {
+ background: url('images/pagination_icons.png') no-repeat -16px center;
+}
+.pagination-next {
+ background: url('images/pagination_icons.png') no-repeat -32px center;
+}
+.pagination-last {
+ background: url('images/pagination_icons.png') no-repeat -48px center;
+}
+.pagination-load {
+ background: url('images/pagination_icons.png') no-repeat -64px center;
+}
+.pagination-loading {
+ background: url('images/loading.gif') no-repeat center center;
+}
+.pagination-page-list,
+.pagination .pagination-num {
+ border-color: #95B8E7;
+}
+.calendar {
+ border-width: 1px;
+ border-style: solid;
+ padding: 1px;
+ overflow: hidden;
+}
+.calendar table {
+ table-layout: fixed;
+ border-collapse: separate;
+ font-size: 12px;
+ width: 100%;
+ height: 100%;
+}
+.calendar table td,
+.calendar table th {
+ font-size: 12px;
+}
+.calendar-noborder {
+ border: 0;
+}
+.calendar-header {
+ position: relative;
+ height: 22px;
+}
+.calendar-title {
+ text-align: center;
+ height: 22px;
+}
+.calendar-title span {
+ position: relative;
+ display: inline-block;
+ top: 2px;
+ padding: 0 3px;
+ height: 18px;
+ line-height: 18px;
+ font-size: 12px;
+ cursor: pointer;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-prevmonth,
+.calendar-nextmonth,
+.calendar-prevyear,
+.calendar-nextyear {
+ position: absolute;
+ top: 50%;
+ margin-top: -7px;
+ width: 14px;
+ height: 14px;
+ cursor: pointer;
+ font-size: 1px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-prevmonth {
+ left: 20px;
+ background: url('images/calendar_arrows.png') no-repeat -18px -2px;
+}
+.calendar-nextmonth {
+ right: 20px;
+ background: url('images/calendar_arrows.png') no-repeat -34px -2px;
+}
+.calendar-prevyear {
+ left: 3px;
+ background: url('images/calendar_arrows.png') no-repeat -1px -2px;
+}
+.calendar-nextyear {
+ right: 3px;
+ background: url('images/calendar_arrows.png') no-repeat -49px -2px;
+}
+.calendar-body {
+ position: relative;
+}
+.calendar-body th,
+.calendar-body td {
+ text-align: center;
+}
+.calendar-day {
+ border: 0;
+ padding: 1px;
+ cursor: pointer;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-other-month {
+ opacity: 0.3;
+ filter: alpha(opacity=30);
+}
+.calendar-disabled {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ cursor: default;
+}
+.calendar-menu {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 180px;
+ height: 150px;
+ padding: 5px;
+ font-size: 12px;
+ display: none;
+ overflow: hidden;
+}
+.calendar-menu-year-inner {
+ text-align: center;
+ padding-bottom: 5px;
+}
+.calendar-menu-year {
+ width: 40px;
+ text-align: center;
+ border-width: 1px;
+ border-style: solid;
+ margin: 0;
+ padding: 2px;
+ font-weight: bold;
+ font-size: 12px;
+}
+.calendar-menu-prev,
+.calendar-menu-next {
+ display: inline-block;
+ width: 21px;
+ height: 21px;
+ vertical-align: top;
+ cursor: pointer;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-menu-prev {
+ margin-right: 10px;
+ background: url('images/calendar_arrows.png') no-repeat 2px 2px;
+}
+.calendar-menu-next {
+ margin-left: 10px;
+ background: url('images/calendar_arrows.png') no-repeat -45px 2px;
+}
+.calendar-menu-month {
+ text-align: center;
+ cursor: pointer;
+ font-weight: bold;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.calendar-body th,
+.calendar-menu-month {
+ color: #4d4d4d;
+}
+.calendar-day {
+ color: #000000;
+}
+.calendar-sunday {
+ color: #CC2222;
+}
+.calendar-saturday {
+ color: #00ee00;
+}
+.calendar-today {
+ color: #0000ff;
+}
+.calendar-menu-year {
+ border-color: #95B8E7;
+}
+.calendar {
+ border-color: #95B8E7;
+}
+.calendar-header {
+ background: #E0ECFF;
+}
+.calendar-body,
+.calendar-menu {
+ background: #ffffff;
+}
+.calendar-body th {
+ background: #F4F4F4;
+ padding: 2px 0;
+}
+.calendar-hover,
+.calendar-nav-hover,
+.calendar-menu-hover {
+ background-color: #eaf2ff;
+ color: #000000;
+}
+.calendar-hover {
+ border: 1px solid #b7d2ff;
+ padding: 0;
+}
+.calendar-selected {
+ background-color: #ffe48d;
+ color: #000000;
+ border: 1px solid #ffab3f;
+ padding: 0;
+}
+.datebox-calendar-inner {
+ height: 180px;
+}
+.datebox-button {
+ height: 18px;
+ padding: 2px 5px;
+ text-align: center;
+}
+.datebox-button a {
+ font-size: 12px;
+ font-weight: bold;
+ text-decoration: none;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.datebox-button a:hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.datebox-current,
+.datebox-close {
+ float: left;
+}
+.datebox-close {
+ float: right;
+}
+.datebox .combo-arrow {
+ background-image: url('images/datebox_arrow.png');
+ background-position: center center;
+}
+.datebox-button {
+ background-color: #F4F4F4;
+}
+.datebox-button a {
+ color: #444;
+}
+.numberbox {
+ border: 1px solid #95B8E7;
+ margin: 0;
+ padding: 0 2px;
+ vertical-align: middle;
+}
+.textbox {
+ padding: 0;
+}
+.spinner {
+ display: inline-block;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.spinner .spinner-text {
+ font-size: 12px;
+ border: 0px;
+ margin: 0;
+ padding: 0 2px;
+ vertical-align: baseline;
+}
+.spinner-arrow {
+ background-color: #E0ECFF;
+ display: inline-block;
+ overflow: hidden;
+ vertical-align: top;
+ margin: 0;
+ padding: 0;
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+ width: 18px;
+}
+.spinner-arrow-up,
+.spinner-arrow-down {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ display: block;
+ font-size: 1px;
+ width: 18px;
+ height: 10px;
+ width: 100%;
+ height: 50%;
+ color: #444;
+ outline-style: none;
+}
+.spinner-arrow-hover {
+ background-color: #eaf2ff;
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.spinner-arrow-up:hover,
+.spinner-arrow-down:hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+ background-color: #eaf2ff;
+}
+.textbox-icon-disabled .spinner-arrow-up:hover,
+.textbox-icon-disabled .spinner-arrow-down:hover {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ background-color: #E0ECFF;
+ cursor: default;
+}
+.spinner .textbox-icon-disabled {
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.spinner-arrow-up {
+ background: url('images/spinner_arrows.png') no-repeat 1px center;
+}
+.spinner-arrow-down {
+ background: url('images/spinner_arrows.png') no-repeat -15px center;
+}
+.spinner {
+ border-color: #95B8E7;
+}
+.progressbar {
+ border-width: 1px;
+ border-style: solid;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+ overflow: hidden;
+ position: relative;
+}
+.progressbar-text {
+ text-align: center;
+ position: absolute;
+}
+.progressbar-value {
+ position: relative;
+ overflow: hidden;
+ width: 0;
+ -moz-border-radius: 5px 0 0 5px;
+ -webkit-border-radius: 5px 0 0 5px;
+ border-radius: 5px 0 0 5px;
+}
+.progressbar {
+ border-color: #95B8E7;
+}
+.progressbar-text {
+ color: #000000;
+ font-size: 12px;
+}
+.progressbar-value .progressbar-text {
+ background-color: #ffe48d;
+ color: #000000;
+}
+.searchbox {
+ display: inline-block;
+ white-space: nowrap;
+ margin: 0;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.searchbox .searchbox-text {
+ font-size: 12px;
+ border: 0;
+ margin: 0;
+ padding: 0 2px;
+ vertical-align: top;
+}
+.searchbox .searchbox-prompt {
+ font-size: 12px;
+ color: #ccc;
+}
+.searchbox-button {
+ width: 18px;
+ height: 20px;
+ overflow: hidden;
+ display: inline-block;
+ vertical-align: top;
+ cursor: pointer;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+}
+.searchbox-button-hover {
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+}
+.searchbox .l-btn-plain {
+ border: 0;
+ padding: 0;
+ vertical-align: top;
+ opacity: 0.6;
+ filter: alpha(opacity=60);
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox .l-btn-plain:hover {
+ border: 0;
+ padding: 0;
+ opacity: 1.0;
+ filter: alpha(opacity=100);
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox a.m-btn-plain-active {
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox .m-btn-active {
+ border-width: 0 1px 0 0;
+ -moz-border-radius: 0 0 0 0;
+ -webkit-border-radius: 0 0 0 0;
+ border-radius: 0 0 0 0;
+}
+.searchbox .textbox-button-right {
+ border-width: 0 0 0 1px;
+}
+.searchbox .textbox-button-left {
+ border-width: 0 1px 0 0;
+}
+.searchbox-button {
+ background: url('images/searchbox_button.png') no-repeat center center;
+}
+.searchbox {
+ border-color: #95B8E7;
+ background-color: #fff;
+}
+.searchbox .l-btn-plain {
+ background: #E0ECFF;
+}
+.searchbox .l-btn-plain-disabled,
+.searchbox .l-btn-plain-disabled:hover {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.textbox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+}
+.slider-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.slider-h {
+ height: 22px;
+}
+.slider-v {
+ width: 22px;
+}
+.slider-inner {
+ position: relative;
+ height: 6px;
+ top: 7px;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 5px;
+}
+.slider-handle {
+ position: absolute;
+ display: block;
+ outline: none;
+ width: 20px;
+ height: 20px;
+ top: 50%;
+ margin-top: -10px;
+ margin-left: -10px;
+}
+.slider-tip {
+ position: absolute;
+ display: inline-block;
+ line-height: 12px;
+ font-size: 12px;
+ white-space: nowrap;
+ top: -22px;
+}
+.slider-rule {
+ position: relative;
+ top: 15px;
+}
+.slider-rule span {
+ position: absolute;
+ display: inline-block;
+ font-size: 0;
+ height: 5px;
+ border-width: 0 0 0 1px;
+ border-style: solid;
+}
+.slider-rulelabel {
+ position: relative;
+ top: 20px;
+}
+.slider-rulelabel span {
+ position: absolute;
+ display: inline-block;
+ font-size: 12px;
+}
+.slider-v .slider-inner {
+ width: 6px;
+ left: 7px;
+ top: 0;
+ float: left;
+}
+.slider-v .slider-handle {
+ left: 50%;
+ margin-top: -10px;
+}
+.slider-v .slider-tip {
+ left: -10px;
+ margin-top: -6px;
+}
+.slider-v .slider-rule {
+ float: left;
+ top: 0;
+ left: 16px;
+}
+.slider-v .slider-rule span {
+ width: 5px;
+ height: 'auto';
+ border-left: 0;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+}
+.slider-v .slider-rulelabel {
+ float: left;
+ top: 0;
+ left: 23px;
+}
+.slider-handle {
+ background: url('images/slider_handle.png') no-repeat;
+}
+.slider-inner {
+ border-color: #95B8E7;
+ background: #E0ECFF;
+}
+.slider-rule span {
+ border-color: #95B8E7;
+}
+.slider-rulelabel span {
+ color: #000000;
+}
+.menu {
+ position: absolute;
+ margin: 0;
+ padding: 2px;
+ border-width: 1px;
+ border-style: solid;
+ overflow: hidden;
+}
+.menu-inline {
+ position: relative;
+}
+.menu-item {
+ position: relative;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ cursor: pointer;
+ border-width: 1px;
+ border-style: solid;
+}
+.menu-text {
+ height: 20px;
+ line-height: 20px;
+ float: left;
+ padding-left: 28px;
+}
+.menu-icon {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ left: 2px;
+ top: 50%;
+ margin-top: -8px;
+}
+.menu-rightarrow {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ right: 0;
+ top: 50%;
+ margin-top: -8px;
+}
+.menu-line {
+ position: absolute;
+ left: 26px;
+ top: 0;
+ height: 2000px;
+ font-size: 1px;
+}
+.menu-sep {
+ margin: 3px 0px 3px 25px;
+ font-size: 1px;
+}
+.menu-noline .menu-line {
+ display: none;
+}
+.menu-noline .menu-sep {
+ margin-left: 0;
+ margin-right: 0;
+}
+.menu-active {
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.menu-item-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+ cursor: default;
+}
+.menu-text,
+.menu-text span {
+ font-size: 12px;
+}
+.menu-shadow {
+ position: absolute;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+ background: #ccc;
+ -moz-box-shadow: 2px 2px 3px #cccccc;
+ -webkit-box-shadow: 2px 2px 3px #cccccc;
+ box-shadow: 2px 2px 3px #cccccc;
+ filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
+}
+.menu-rightarrow {
+ background: url('images/menu_arrows.png') no-repeat -32px center;
+}
+.menu-line {
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #fff;
+}
+.menu-sep {
+ border-top: 1px solid #ccc;
+ border-bottom: 1px solid #fff;
+}
+.menu {
+ background-color: #fafafa;
+ border-color: #ddd;
+ color: #444;
+}
+.menu-content {
+ background: #ffffff;
+}
+.menu-item {
+ border-color: transparent;
+ _border-color: #fafafa;
+}
+.menu-active {
+ border-color: #b7d2ff;
+ color: #000000;
+ background: #eaf2ff;
+}
+.menu-active-disabled {
+ border-color: transparent;
+ background: transparent;
+ color: #444;
+}
+.m-btn-downarrow,
+.s-btn-downarrow {
+ display: inline-block;
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ font-size: 1px;
+ right: 0;
+ top: 50%;
+ margin-top: -8px;
+}
+.m-btn-active,
+.s-btn-active {
+ background: #eaf2ff;
+ color: #000000;
+ border: 1px solid #b7d2ff;
+ filter: none;
+}
+.m-btn-plain-active,
+.s-btn-plain-active {
+ background: transparent;
+ padding: 0;
+ border-width: 1px;
+ border-style: solid;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.m-btn .l-btn-left .l-btn-text {
+ margin-right: 20px;
+}
+.m-btn .l-btn-icon-right .l-btn-text {
+ margin-right: 40px;
+}
+.m-btn .l-btn-icon-right .l-btn-icon {
+ right: 20px;
+}
+.m-btn .l-btn-icon-top .l-btn-text {
+ margin-right: 4px;
+ margin-bottom: 14px;
+}
+.m-btn .l-btn-icon-bottom .l-btn-text {
+ margin-right: 4px;
+ margin-bottom: 34px;
+}
+.m-btn .l-btn-icon-bottom .l-btn-icon {
+ top: auto;
+ bottom: 20px;
+}
+.m-btn .l-btn-icon-top .m-btn-downarrow,
+.m-btn .l-btn-icon-bottom .m-btn-downarrow {
+ top: auto;
+ bottom: 0px;
+ left: 50%;
+ margin-left: -8px;
+}
+.m-btn-line {
+ display: inline-block;
+ position: absolute;
+ font-size: 1px;
+ display: none;
+}
+.m-btn .l-btn-left .m-btn-line {
+ right: 0;
+ width: 16px;
+ height: 500px;
+ border-style: solid;
+ border-color: #aac5e7;
+ border-width: 0 0 0 1px;
+}
+.m-btn .l-btn-icon-top .m-btn-line,
+.m-btn .l-btn-icon-bottom .m-btn-line {
+ left: 0;
+ bottom: 0;
+ width: 500px;
+ height: 16px;
+ border-width: 1px 0 0 0;
+}
+.m-btn-large .l-btn-icon-right .l-btn-text {
+ margin-right: 56px;
+}
+.m-btn-large .l-btn-icon-bottom .l-btn-text {
+ margin-bottom: 50px;
+}
+.m-btn-downarrow,
+.s-btn-downarrow {
+ background: url('images/menu_arrows.png') no-repeat 0 center;
+}
+.m-btn-plain-active,
+.s-btn-plain-active {
+ border-color: #b7d2ff;
+ background-color: #eaf2ff;
+ color: #000000;
+}
+.s-btn:hover .m-btn-line,
+.s-btn-active .m-btn-line,
+.s-btn-plain-active .m-btn-line {
+ display: inline-block;
+}
+.l-btn:hover .s-btn-downarrow,
+.s-btn-active .s-btn-downarrow,
+.s-btn-plain-active .s-btn-downarrow {
+ border-style: solid;
+ border-color: #aac5e7;
+ border-width: 0 0 0 1px;
+}
+.messager-body {
+ padding: 10px;
+ overflow: auto;
+}
+.messager-button {
+ text-align: center;
+ padding: 5px;
+}
+.messager-button .l-btn {
+ width: 70px;
+}
+.messager-icon {
+ float: left;
+ width: 32px;
+ height: 32px;
+ margin: 0 10px 10px 0;
+}
+.messager-error {
+ background: url('images/messager_icons.png') no-repeat scroll -64px 0;
+}
+.messager-info {
+ background: url('images/messager_icons.png') no-repeat scroll 0 0;
+}
+.messager-question {
+ background: url('images/messager_icons.png') no-repeat scroll -32px 0;
+}
+.messager-warning {
+ background: url('images/messager_icons.png') no-repeat scroll -96px 0;
+}
+.messager-progress {
+ padding: 10px;
+}
+.messager-p-msg {
+ margin-bottom: 5px;
+}
+.messager-body .messager-input {
+ width: 100%;
+ padding: 1px 0;
+ border: 1px solid #95B8E7;
+}
+.tree {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+}
+.tree li {
+ white-space: nowrap;
+}
+.tree li ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+.tree-node {
+ height: 18px;
+ white-space: nowrap;
+ cursor: pointer;
+}
+.tree-hit {
+ cursor: pointer;
+}
+.tree-expanded,
+.tree-collapsed,
+.tree-folder,
+.tree-file,
+.tree-checkbox,
+.tree-indent {
+ display: inline-block;
+ width: 16px;
+ height: 18px;
+ vertical-align: top;
+ overflow: hidden;
+}
+.tree-expanded {
+ background: url('images/tree_icons.png') no-repeat -18px 0px;
+}
+.tree-expanded-hover {
+ background: url('images/tree_icons.png') no-repeat -50px 0px;
+}
+.tree-collapsed {
+ background: url('images/tree_icons.png') no-repeat 0px 0px;
+}
+.tree-collapsed-hover {
+ background: url('images/tree_icons.png') no-repeat -32px 0px;
+}
+.tree-lines .tree-expanded,
+.tree-lines .tree-root-first .tree-expanded {
+ background: url('images/tree_icons.png') no-repeat -144px 0;
+}
+.tree-lines .tree-collapsed,
+.tree-lines .tree-root-first .tree-collapsed {
+ background: url('images/tree_icons.png') no-repeat -128px 0;
+}
+.tree-lines .tree-node-last .tree-expanded,
+.tree-lines .tree-root-one .tree-expanded {
+ background: url('images/tree_icons.png') no-repeat -80px 0;
+}
+.tree-lines .tree-node-last .tree-collapsed,
+.tree-lines .tree-root-one .tree-collapsed {
+ background: url('images/tree_icons.png') no-repeat -64px 0;
+}
+.tree-line {
+ background: url('images/tree_icons.png') no-repeat -176px 0;
+}
+.tree-join {
+ background: url('images/tree_icons.png') no-repeat -192px 0;
+}
+.tree-joinbottom {
+ background: url('images/tree_icons.png') no-repeat -160px 0;
+}
+.tree-folder {
+ background: url('images/tree_icons.png') no-repeat -208px 0;
+}
+.tree-folder-open {
+ background: url('images/tree_icons.png') no-repeat -224px 0;
+}
+.tree-file {
+ background: url('images/tree_icons.png') no-repeat -240px 0;
+}
+.tree-loading {
+ background: url('images/loading.gif') no-repeat center center;
+}
+.tree-checkbox0 {
+ background: url('images/tree_icons.png') no-repeat -208px -18px;
+}
+.tree-checkbox1 {
+ background: url('images/tree_icons.png') no-repeat -224px -18px;
+}
+.tree-checkbox2 {
+ background: url('images/tree_icons.png') no-repeat -240px -18px;
+}
+.tree-title {
+ font-size: 12px;
+ display: inline-block;
+ text-decoration: none;
+ vertical-align: top;
+ white-space: nowrap;
+ padding: 0 2px;
+ height: 18px;
+ line-height: 18px;
+}
+.tree-node-proxy {
+ font-size: 12px;
+ line-height: 20px;
+ padding: 0 2px 0 20px;
+ border-width: 1px;
+ border-style: solid;
+ z-index: 9900000;
+}
+.tree-dnd-icon {
+ display: inline-block;
+ position: absolute;
+ width: 16px;
+ height: 18px;
+ left: 2px;
+ top: 50%;
+ margin-top: -9px;
+}
+.tree-dnd-yes {
+ background: url('images/tree_icons.png') no-repeat -256px 0;
+}
+.tree-dnd-no {
+ background: url('images/tree_icons.png') no-repeat -256px -18px;
+}
+.tree-node-top {
+ border-top: 1px dotted red;
+}
+.tree-node-bottom {
+ border-bottom: 1px dotted red;
+}
+.tree-node-append .tree-title {
+ border: 1px dotted red;
+}
+.tree-editor {
+ border: 1px solid #ccc;
+ font-size: 12px;
+ height: 14px !important;
+ height: 18px;
+ line-height: 14px;
+ padding: 1px 2px;
+ width: 80px;
+ position: absolute;
+ top: 0;
+}
+.tree-node-proxy {
+ background-color: #ffffff;
+ color: #000000;
+ border-color: #95B8E7;
+}
+.tree-node-hover {
+ background: #eaf2ff;
+ color: #000000;
+}
+.tree-node-selected {
+ background: #ffe48d;
+ color: #000000;
+}
+.tree-node-hidden {
+ display: none;
+}
+.validatebox-invalid {
+ border-color: #ffa8a8;
+ background-color: #fff3f3;
+ color: #000;
+}
+.tooltip {
+ position: absolute;
+ display: none;
+ z-index: 9900000;
+ outline: none;
+ opacity: 1;
+ filter: alpha(opacity=100);
+ padding: 5px;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: 5px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.tooltip-content {
+ font-size: 12px;
+}
+.tooltip-arrow-outer,
+.tooltip-arrow {
+ position: absolute;
+ width: 0;
+ height: 0;
+ line-height: 0;
+ font-size: 0;
+ border-style: solid;
+ border-width: 6px;
+ border-color: transparent;
+ _border-color: tomato;
+ _filter: chroma(color=tomato);
+}
+.tooltip-arrow {
+ display: none \9;
+}
+.tooltip-right .tooltip-arrow-outer {
+ left: 0;
+ top: 50%;
+ margin: -6px 0 0 -13px;
+}
+.tooltip-right .tooltip-arrow {
+ left: 0;
+ top: 50%;
+ margin: -6px 0 0 -12px;
+}
+.tooltip-left .tooltip-arrow-outer {
+ right: 0;
+ top: 50%;
+ margin: -6px -13px 0 0;
+}
+.tooltip-left .tooltip-arrow {
+ right: 0;
+ top: 50%;
+ margin: -6px -12px 0 0;
+}
+.tooltip-top .tooltip-arrow-outer {
+ bottom: 0;
+ left: 50%;
+ margin: 0 0 -13px -6px;
+}
+.tooltip-top .tooltip-arrow {
+ bottom: 0;
+ left: 50%;
+ margin: 0 0 -12px -6px;
+}
+.tooltip-bottom .tooltip-arrow-outer {
+ top: 0;
+ left: 50%;
+ margin: -13px 0 0 -6px;
+}
+.tooltip-bottom .tooltip-arrow {
+ top: 0;
+ left: 50%;
+ margin: -12px 0 0 -6px;
+}
+.tooltip {
+ background-color: #ffffff;
+ border-color: #95B8E7;
+ color: #000000;
+}
+.tooltip-right .tooltip-arrow-outer {
+ border-right-color: #95B8E7;
+}
+.tooltip-right .tooltip-arrow {
+ border-right-color: #ffffff;
+}
+.tooltip-left .tooltip-arrow-outer {
+ border-left-color: #95B8E7;
+}
+.tooltip-left .tooltip-arrow {
+ border-left-color: #ffffff;
+}
+.tooltip-top .tooltip-arrow-outer {
+ border-top-color: #95B8E7;
+}
+.tooltip-top .tooltip-arrow {
+ border-top-color: #ffffff;
+}
+.tooltip-bottom .tooltip-arrow-outer {
+ border-bottom-color: #95B8E7;
+}
+.tooltip-bottom .tooltip-arrow {
+ border-bottom-color: #ffffff;
+}
+.switchbutton {
+ text-decoration: none;
+ display: inline-block;
+ overflow: hidden;
+ vertical-align: middle;
+ margin: 0;
+ padding: 0;
+ cursor: pointer;
+ background: #bbb;
+ border: 1px solid #bbb;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.switchbutton-inner {
+ display: inline-block;
+ overflow: hidden;
+ position: relative;
+ top: -1px;
+ left: -1px;
+}
+.switchbutton-on,
+.switchbutton-off,
+.switchbutton-handle {
+ display: inline-block;
+ text-align: center;
+ height: 100%;
+ float: left;
+ font-size: 12px;
+ -moz-border-radius: 5px 5px 5px 5px;
+ -webkit-border-radius: 5px 5px 5px 5px;
+ border-radius: 5px 5px 5px 5px;
+}
+.switchbutton-on {
+ background: #ffe48d;
+ color: #000000;
+}
+.switchbutton-off {
+ background-color: #ffffff;
+ color: #000000;
+}
+.switchbutton-on,
+.switchbutton-reversed .switchbutton-off {
+ -moz-border-radius: 5px 0 0 5px;
+ -webkit-border-radius: 5px 0 0 5px;
+ border-radius: 5px 0 0 5px;
+}
+.switchbutton-off,
+.switchbutton-reversed .switchbutton-on {
+ -moz-border-radius: 0 5px 5px 0;
+ -webkit-border-radius: 0 5px 5px 0;
+ border-radius: 0 5px 5px 0;
+}
+.switchbutton-handle {
+ position: absolute;
+ top: 0;
+ left: 50%;
+ background-color: #ffffff;
+ color: #000000;
+ border: 1px solid #bbb;
+ -moz-box-shadow: 0 0 3px 0 #bbb;
+ -webkit-box-shadow: 0 0 3px 0 #bbb;
+ box-shadow: 0 0 3px 0 #bbb;
+}
+.switchbutton-value {
+ position: absolute;
+ top: 0;
+ left: -5000px;
+}
+.switchbutton-disabled {
+ opacity: 0.5;
+ filter: alpha(opacity=50);
+}
+.switchbutton-disabled,
+.switchbutton-readonly {
+ cursor: default;
+}
diff --git a/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js b/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js
new file mode 100644
index 0000000..e1779c3
--- /dev/null
+++ b/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js
@@ -0,0 +1,16617 @@
+/*! jQuery UI - v1.11.4 - 2016-01-10
+* http://jqueryui.com
+* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+(function( factory ) {
+ if ( typeof define === "function" && define.amd ) {
+
+ // AMD. Register as an anonymous module.
+ define([ "jquery" ], factory );
+ } else {
+
+ // Browser globals
+ factory( jQuery );
+ }
+}(function( $ ) {
+/*!
+ * jQuery UI Core 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/ui-core/
+ */
+
+
+// $.ui might exist from components with no dependencies, e.g., $.ui.position
+$.ui = $.ui || {};
+
+$.extend( $.ui, {
+ version: "1.11.4",
+
+ keyCode: {
+ BACKSPACE: 8,
+ COMMA: 188,
+ DELETE: 46,
+ DOWN: 40,
+ END: 35,
+ ENTER: 13,
+ ESCAPE: 27,
+ HOME: 36,
+ LEFT: 37,
+ PAGE_DOWN: 34,
+ PAGE_UP: 33,
+ PERIOD: 190,
+ RIGHT: 39,
+ SPACE: 32,
+ TAB: 9,
+ UP: 38
+ }
+});
+
+// plugins
+$.fn.extend({
+ scrollParent: function( includeHidden ) {
+ var position = this.css( "position" ),
+ excludeStaticParent = position === "absolute",
+ overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
+ scrollParent = this.parents().filter( function() {
+ var parent = $( this );
+ if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
+ return false;
+ }
+ return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
+ }).eq( 0 );
+
+ return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
+ },
+
+ uniqueId: (function() {
+ var uuid = 0;
+
+ return function() {
+ return this.each(function() {
+ if ( !this.id ) {
+ this.id = "ui-id-" + ( ++uuid );
+ }
+ });
+ };
+ })(),
+
+ removeUniqueId: function() {
+ return this.each(function() {
+ if ( /^ui-id-\d+$/.test( this.id ) ) {
+ $( this ).removeAttr( "id" );
+ }
+ });
+ }
+});
+
+// selectors
+function focusable( element, isTabIndexNotNaN ) {
+ var map, mapName, img,
+ nodeName = element.nodeName.toLowerCase();
+ if ( "area" === nodeName ) {
+ map = element.parentNode;
+ mapName = map.name;
+ if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
+ return false;
+ }
+ img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
+ return !!img && visible( img );
+ }
+ return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ?
+ !element.disabled :
+ "a" === nodeName ?
+ element.href || isTabIndexNotNaN :
+ isTabIndexNotNaN) &&
+ // the element and all of its ancestors must be visible
+ visible( element );
+}
+
+function visible( element ) {
+ return $.expr.filters.visible( element ) &&
+ !$( element ).parents().addBack().filter(function() {
+ return $.css( this, "visibility" ) === "hidden";
+ }).length;
+}
+
+$.extend( $.expr[ ":" ], {
+ data: $.expr.createPseudo ?
+ $.expr.createPseudo(function( dataName ) {
+ return function( elem ) {
+ return !!$.data( elem, dataName );
+ };
+ }) :
+ // support: jQuery <1.8
+ function( elem, i, match ) {
+ return !!$.data( elem, match[ 3 ] );
+ },
+
+ focusable: function( element ) {
+ return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
+ },
+
+ tabbable: function( element ) {
+ var tabIndex = $.attr( element, "tabindex" ),
+ isTabIndexNaN = isNaN( tabIndex );
+ return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
+ }
+});
+
+// support: jQuery <1.8
+if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
+ $.each( [ "Width", "Height" ], function( i, name ) {
+ var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
+ type = name.toLowerCase(),
+ orig = {
+ innerWidth: $.fn.innerWidth,
+ innerHeight: $.fn.innerHeight,
+ outerWidth: $.fn.outerWidth,
+ outerHeight: $.fn.outerHeight
+ };
+
+ function reduce( elem, size, border, margin ) {
+ $.each( side, function() {
+ size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
+ if ( border ) {
+ size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
+ }
+ if ( margin ) {
+ size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
+ }
+ });
+ return size;
+ }
+
+ $.fn[ "inner" + name ] = function( size ) {
+ if ( size === undefined ) {
+ return orig[ "inner" + name ].call( this );
+ }
+
+ return this.each(function() {
+ $( this ).css( type, reduce( this, size ) + "px" );
+ });
+ };
+
+ $.fn[ "outer" + name] = function( size, margin ) {
+ if ( typeof size !== "number" ) {
+ return orig[ "outer" + name ].call( this, size );
+ }
+
+ return this.each(function() {
+ $( this).css( type, reduce( this, size, true, margin ) + "px" );
+ });
+ };
+ });
+}
+
+// support: jQuery <1.8
+if ( !$.fn.addBack ) {
+ $.fn.addBack = function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter( selector )
+ );
+ };
+}
+
+// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
+if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
+ $.fn.removeData = (function( removeData ) {
+ return function( key ) {
+ if ( arguments.length ) {
+ return removeData.call( this, $.camelCase( key ) );
+ } else {
+ return removeData.call( this );
+ }
+ };
+ })( $.fn.removeData );
+}
+
+// deprecated
+$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
+
+$.fn.extend({
+ focus: (function( orig ) {
+ return function( delay, fn ) {
+ return typeof delay === "number" ?
+ this.each(function() {
+ var elem = this;
+ setTimeout(function() {
+ $( elem ).focus();
+ if ( fn ) {
+ fn.call( elem );
+ }
+ }, delay );
+ }) :
+ orig.apply( this, arguments );
+ };
+ })( $.fn.focus ),
+
+ disableSelection: (function() {
+ var eventType = "onselectstart" in document.createElement( "div" ) ?
+ "selectstart" :
+ "mousedown";
+
+ return function() {
+ return this.bind( eventType + ".ui-disableSelection", function( event ) {
+ event.preventDefault();
+ });
+ };
+ })(),
+
+ enableSelection: function() {
+ return this.unbind( ".ui-disableSelection" );
+ },
+
+ zIndex: function( zIndex ) {
+ if ( zIndex !== undefined ) {
+ return this.css( "zIndex", zIndex );
+ }
+
+ if ( this.length ) {
+ var elem = $( this[ 0 ] ), position, value;
+ while ( elem.length && elem[ 0 ] !== document ) {
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
+ // This makes behavior of this function consistent across browsers
+ // WebKit always returns auto if the element is positioned
+ position = elem.css( "position" );
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
+ // IE returns 0 when zIndex is not specified
+ // other browsers return a string
+ // we ignore the case of nested elements with an explicit value of 0
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
+ value = parseInt( elem.css( "zIndex" ), 10 );
+ if ( !isNaN( value ) && value !== 0 ) {
+ return value;
+ }
+ }
+ elem = elem.parent();
+ }
+ }
+
+ return 0;
+ }
+});
+
+// $.ui.plugin is deprecated. Use $.widget() extensions instead.
+$.ui.plugin = {
+ add: function( module, option, set ) {
+ var i,
+ proto = $.ui[ module ].prototype;
+ for ( i in set ) {
+ proto.plugins[ i ] = proto.plugins[ i ] || [];
+ proto.plugins[ i ].push( [ option, set[ i ] ] );
+ }
+ },
+ call: function( instance, name, args, allowDisconnected ) {
+ var i,
+ set = instance.plugins[ name ];
+
+ if ( !set ) {
+ return;
+ }
+
+ if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
+ return;
+ }
+
+ for ( i = 0; i < set.length; i++ ) {
+ if ( instance.options[ set[ i ][ 0 ] ] ) {
+ set[ i ][ 1 ].apply( instance.element, args );
+ }
+ }
+ }
+};
+
+
+/*!
+ * jQuery UI Widget 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/jQuery.widget/
+ */
+
+
+var widget_uuid = 0,
+ widget_slice = Array.prototype.slice;
+
+$.cleanData = (function( orig ) {
+ return function( elems ) {
+ var events, elem, i;
+ for ( i = 0; (elem = elems[i]) != null; i++ ) {
+ try {
+
+ // Only trigger remove when necessary to save time
+ events = $._data( elem, "events" );
+ if ( events && events.remove ) {
+ $( elem ).triggerHandler( "remove" );
+ }
+
+ // http://bugs.jquery.com/ticket/8235
+ } catch ( e ) {}
+ }
+ orig( elems );
+ };
+})( $.cleanData );
+
+$.widget = function( name, base, prototype ) {
+ var fullName, existingConstructor, constructor, basePrototype,
+ // proxiedPrototype allows the provided prototype to remain unmodified
+ // so that it can be used as a mixin for multiple widgets (#8876)
+ proxiedPrototype = {},
+ namespace = name.split( "." )[ 0 ];
+
+ name = name.split( "." )[ 1 ];
+ fullName = namespace + "-" + name;
+
+ if ( !prototype ) {
+ prototype = base;
+ base = $.Widget;
+ }
+
+ // create selector for plugin
+ $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
+ return !!$.data( elem, fullName );
+ };
+
+ $[ namespace ] = $[ namespace ] || {};
+ existingConstructor = $[ namespace ][ name ];
+ constructor = $[ namespace ][ name ] = function( options, element ) {
+ // allow instantiation without "new" keyword
+ if ( !this._createWidget ) {
+ return new constructor( options, element );
+ }
+
+ // allow instantiation without initializing for simple inheritance
+ // must use "new" keyword (the code above always passes args)
+ if ( arguments.length ) {
+ this._createWidget( options, element );
+ }
+ };
+ // extend with the existing constructor to carry over any static properties
+ $.extend( constructor, existingConstructor, {
+ version: prototype.version,
+ // copy the object used to create the prototype in case we need to
+ // redefine the widget later
+ _proto: $.extend( {}, prototype ),
+ // track widgets that inherit from this widget in case this widget is
+ // redefined after a widget inherits from it
+ _childConstructors: []
+ });
+
+ basePrototype = new base();
+ // we need to make the options hash a property directly on the new instance
+ // otherwise we'll modify the options hash on the prototype that we're
+ // inheriting from
+ basePrototype.options = $.widget.extend( {}, basePrototype.options );
+ $.each( prototype, function( prop, value ) {
+ if ( !$.isFunction( value ) ) {
+ proxiedPrototype[ prop ] = value;
+ return;
+ }
+ proxiedPrototype[ prop ] = (function() {
+ var _super = function() {
+ return base.prototype[ prop ].apply( this, arguments );
+ },
+ _superApply = function( args ) {
+ return base.prototype[ prop ].apply( this, args );
+ };
+ return function() {
+ var __super = this._super,
+ __superApply = this._superApply,
+ returnValue;
+
+ this._super = _super;
+ this._superApply = _superApply;
+
+ returnValue = value.apply( this, arguments );
+
+ this._super = __super;
+ this._superApply = __superApply;
+
+ return returnValue;
+ };
+ })();
+ });
+ constructor.prototype = $.widget.extend( basePrototype, {
+ // TODO: remove support for widgetEventPrefix
+ // always use the name + a colon as the prefix, e.g., draggable:start
+ // don't prefix for widgets that aren't DOM-based
+ widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
+ }, proxiedPrototype, {
+ constructor: constructor,
+ namespace: namespace,
+ widgetName: name,
+ widgetFullName: fullName
+ });
+
+ // If this widget is being redefined then we need to find all widgets that
+ // are inheriting from it and redefine all of them so that they inherit from
+ // the new version of this widget. We're essentially trying to replace one
+ // level in the prototype chain.
+ if ( existingConstructor ) {
+ $.each( existingConstructor._childConstructors, function( i, child ) {
+ var childPrototype = child.prototype;
+
+ // redefine the child widget using the same prototype that was
+ // originally used, but inherit from the new version of the base
+ $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
+ });
+ // remove the list of existing child constructors from the old constructor
+ // so the old child constructors can be garbage collected
+ delete existingConstructor._childConstructors;
+ } else {
+ base._childConstructors.push( constructor );
+ }
+
+ $.widget.bridge( name, constructor );
+
+ return constructor;
+};
+
+$.widget.extend = function( target ) {
+ var input = widget_slice.call( arguments, 1 ),
+ inputIndex = 0,
+ inputLength = input.length,
+ key,
+ value;
+ for ( ; inputIndex < inputLength; inputIndex++ ) {
+ for ( key in input[ inputIndex ] ) {
+ value = input[ inputIndex ][ key ];
+ if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
+ // Clone objects
+ if ( $.isPlainObject( value ) ) {
+ target[ key ] = $.isPlainObject( target[ key ] ) ?
+ $.widget.extend( {}, target[ key ], value ) :
+ // Don't extend strings, arrays, etc. with objects
+ $.widget.extend( {}, value );
+ // Copy everything else by reference
+ } else {
+ target[ key ] = value;
+ }
+ }
+ }
+ }
+ return target;
+};
+
+$.widget.bridge = function( name, object ) {
+ var fullName = object.prototype.widgetFullName || name;
+ $.fn[ name ] = function( options ) {
+ var isMethodCall = typeof options === "string",
+ args = widget_slice.call( arguments, 1 ),
+ returnValue = this;
+
+ if ( isMethodCall ) {
+ this.each(function() {
+ var methodValue,
+ instance = $.data( this, fullName );
+ if ( options === "instance" ) {
+ returnValue = instance;
+ return false;
+ }
+ if ( !instance ) {
+ return $.error( "cannot call methods on " + name + " prior to initialization; " +
+ "attempted to call method '" + options + "'" );
+ }
+ if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
+ return $.error( "no such method '" + options + "' for " + name + " widget instance" );
+ }
+ methodValue = instance[ options ].apply( instance, args );
+ if ( methodValue !== instance && methodValue !== undefined ) {
+ returnValue = methodValue && methodValue.jquery ?
+ returnValue.pushStack( methodValue.get() ) :
+ methodValue;
+ return false;
+ }
+ });
+ } else {
+
+ // Allow multiple hashes to be passed on init
+ if ( args.length ) {
+ options = $.widget.extend.apply( null, [ options ].concat(args) );
+ }
+
+ this.each(function() {
+ var instance = $.data( this, fullName );
+ if ( instance ) {
+ instance.option( options || {} );
+ if ( instance._init ) {
+ instance._init();
+ }
+ } else {
+ $.data( this, fullName, new object( options, this ) );
+ }
+ });
+ }
+
+ return returnValue;
+ };
+};
+
+$.Widget = function( /* options, element */ ) {};
+$.Widget._childConstructors = [];
+
+$.Widget.prototype = {
+ widgetName: "widget",
+ widgetEventPrefix: "",
+ defaultElement: "<div>",
+ options: {
+ disabled: false,
+
+ // callbacks
+ create: null
+ },
+ _createWidget: function( options, element ) {
+ element = $( element || this.defaultElement || this )[ 0 ];
+ this.element = $( element );
+ this.uuid = widget_uuid++;
+ this.eventNamespace = "." + this.widgetName + this.uuid;
+
+ this.bindings = $();
+ this.hoverable = $();
+ this.focusable = $();
+
+ if ( element !== this ) {
+ $.data( element, this.widgetFullName, this );
+ this._on( true, this.element, {
+ remove: function( event ) {
+ if ( event.target === element ) {
+ this.destroy();
+ }
+ }
+ });
+ this.document = $( element.style ?
+ // element within the document
+ element.ownerDocument :
+ // element is window or document
+ element.document || element );
+ this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
+ }
+
+ this.options = $.widget.extend( {},
+ this.options,
+ this._getCreateOptions(),
+ options );
+
+ this._create();
+ this._trigger( "create", null, this._getCreateEventData() );
+ this._init();
+ },
+ _getCreateOptions: $.noop,
+ _getCreateEventData: $.noop,
+ _create: $.noop,
+ _init: $.noop,
+
+ destroy: function() {
+ this._destroy();
+ // we can probably remove the unbind calls in 2.0
+ // all event bindings should go through this._on()
+ this.element
+ .unbind( this.eventNamespace )
+ .removeData( this.widgetFullName )
+ // support: jquery <1.6.3
+ // http://bugs.jquery.com/ticket/9413
+ .removeData( $.camelCase( this.widgetFullName ) );
+ this.widget()
+ .unbind( this.eventNamespace )
+ .removeAttr( "aria-disabled" )
+ .removeClass(
+ this.widgetFullName + "-disabled " +
+ "ui-state-disabled" );
+
+ // clean up events and states
+ this.bindings.unbind( this.eventNamespace );
+ this.hoverable.removeClass( "ui-state-hover" );
+ this.focusable.removeClass( "ui-state-focus" );
+ },
+ _destroy: $.noop,
+
+ widget: function() {
+ return this.element;
+ },
+
+ option: function( key, value ) {
+ var options = key,
+ parts,
+ curOption,
+ i;
+
+ if ( arguments.length === 0 ) {
+ // don't return a reference to the internal hash
+ return $.widget.extend( {}, this.options );
+ }
+
+ if ( typeof key === "string" ) {
+ // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
+ options = {};
+ parts = key.split( "." );
+ key = parts.shift();
+ if ( parts.length ) {
+ curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
+ for ( i = 0; i < parts.length - 1; i++ ) {
+ curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
+ curOption = curOption[ parts[ i ] ];
+ }
+ key = parts.pop();
+ if ( arguments.length === 1 ) {
+ return curOption[ key ] === undefined ? null : curOption[ key ];
+ }
+ curOption[ key ] = value;
+ } else {
+ if ( arguments.length === 1 ) {
+ return this.options[ key ] === undefined ? null : this.options[ key ];
+ }
+ options[ key ] = value;
+ }
+ }
+
+ this._setOptions( options );
+
+ return this;
+ },
+ _setOptions: function( options ) {
+ var key;
+
+ for ( key in options ) {
+ this._setOption( key, options[ key ] );
+ }
+
+ return this;
+ },
+ _setOption: function( key, value ) {
+ this.options[ key ] = value;
+
+ if ( key === "disabled" ) {
+ this.widget()
+ .toggleClass( this.widgetFullName + "-disabled", !!value );
+
+ // If the widget is becoming disabled, then nothing is interactive
+ if ( value ) {
+ this.hoverable.removeClass( "ui-state-hover" );
+ this.focusable.removeClass( "ui-state-focus" );
+ }
+ }
+
+ return this;
+ },
+
+ enable: function() {
+ return this._setOptions({ disabled: false });
+ },
+ disable: function() {
+ return this._setOptions({ disabled: true });
+ },
+
+ _on: function( suppressDisabledCheck, element, handlers ) {
+ var delegateElement,
+ instance = this;
+
+ // no suppressDisabledCheck flag, shuffle arguments
+ if ( typeof suppressDisabledCheck !== "boolean" ) {
+ handlers = element;
+ element = suppressDisabledCheck;
+ suppressDisabledCheck = false;
+ }
+
+ // no element argument, shuffle and use this.element
+ if ( !handlers ) {
+ handlers = element;
+ element = this.element;
+ delegateElement = this.widget();
+ } else {
+ element = delegateElement = $( element );
+ this.bindings = this.bindings.add( element );
+ }
+
+ $.each( handlers, function( event, handler ) {
+ function handlerProxy() {
+ // allow widgets to customize the disabled handling
+ // - disabled as an array instead of boolean
+ // - disabled class as method for disabling individual parts
+ if ( !suppressDisabledCheck &&
+ ( instance.options.disabled === true ||
+ $( this ).hasClass( "ui-state-disabled" ) ) ) {
+ return;
+ }
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
+ .apply( instance, arguments );
+ }
+
+ // copy the guid so direct unbinding works
+ if ( typeof handler !== "string" ) {
+ handlerProxy.guid = handler.guid =
+ handler.guid || handlerProxy.guid || $.guid++;
+ }
+
+ var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
+ eventName = match[1] + instance.eventNamespace,
+ selector = match[2];
+ if ( selector ) {
+ delegateElement.delegate( selector, eventName, handlerProxy );
+ } else {
+ element.bind( eventName, handlerProxy );
+ }
+ });
+ },
+
+ _off: function( element, eventName ) {
+ eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) +
+ this.eventNamespace;
+ element.unbind( eventName ).undelegate( eventName );
+
+ // Clear the stack to avoid memory leaks (#10056)
+ this.bindings = $( this.bindings.not( element ).get() );
+ this.focusable = $( this.focusable.not( element ).get() );
+ this.hoverable = $( this.hoverable.not( element ).get() );
+ },
+
+ _delay: function( handler, delay ) {
+ function handlerProxy() {
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
+ .apply( instance, arguments );
+ }
+ var instance = this;
+ return setTimeout( handlerProxy, delay || 0 );
+ },
+
+ _hoverable: function( element ) {
+ this.hoverable = this.hoverable.add( element );
+ this._on( element, {
+ mouseenter: function( event ) {
+ $( event.currentTarget ).addClass( "ui-state-hover" );
+ },
+ mouseleave: function( event ) {
+ $( event.currentTarget ).removeClass( "ui-state-hover" );
+ }
+ });
+ },
+
+ _focusable: function( element ) {
+ this.focusable = this.focusable.add( element );
+ this._on( element, {
+ focusin: function( event ) {
+ $( event.currentTarget ).addClass( "ui-state-focus" );
+ },
+ focusout: function( event ) {
+ $( event.currentTarget ).removeClass( "ui-state-focus" );
+ }
+ });
+ },
+
+ _trigger: function( type, event, data ) {
+ var prop, orig,
+ callback = this.options[ type ];
+
+ data = data || {};
+ event = $.Event( event );
+ event.type = ( type === this.widgetEventPrefix ?
+ type :
+ this.widgetEventPrefix + type ).toLowerCase();
+ // the original event may come from any element
+ // so we need to reset the target on the new event
+ event.target = this.element[ 0 ];
+
+ // copy original event properties over to the new event
+ orig = event.originalEvent;
+ if ( orig ) {
+ for ( prop in orig ) {
+ if ( !( prop in event ) ) {
+ event[ prop ] = orig[ prop ];
+ }
+ }
+ }
+
+ this.element.trigger( event, data );
+ return !( $.isFunction( callback ) &&
+ callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
+ event.isDefaultPrevented() );
+ }
+};
+
+$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
+ $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
+ if ( typeof options === "string" ) {
+ options = { effect: options };
+ }
+ var hasOptions,
+ effectName = !options ?
+ method :
+ options === true || typeof options === "number" ?
+ defaultEffect :
+ options.effect || defaultEffect;
+ options = options || {};
+ if ( typeof options === "number" ) {
+ options = { duration: options };
+ }
+ hasOptions = !$.isEmptyObject( options );
+ options.complete = callback;
+ if ( options.delay ) {
+ element.delay( options.delay );
+ }
+ if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
+ element[ method ]( options );
+ } else if ( effectName !== method && element[ effectName ] ) {
+ element[ effectName ]( options.duration, options.easing, callback );
+ } else {
+ element.queue(function( next ) {
+ $( this )[ method ]();
+ if ( callback ) {
+ callback.call( element[ 0 ] );
+ }
+ next();
+ });
+ }
+ };
+});
+
+var widget = $.widget;
+
+
+/*!
+ * jQuery UI Mouse 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/mouse/
+ */
+
+
+var mouseHandled = false;
+$( document ).mouseup( function() {
+ mouseHandled = false;
+});
+
+var mouse = $.widget("ui.mouse", {
+ version: "1.11.4",
+ options: {
+ cancel: "input,textarea,button,select,option",
+ distance: 1,
+ delay: 0
+ },
+ _mouseInit: function() {
+ var that = this;
+
+ this.element
+ .bind("mousedown." + this.widgetName, function(event) {
+ return that._mouseDown(event);
+ })
+ .bind("click." + this.widgetName, function(event) {
+ if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
+ $.removeData(event.target, that.widgetName + ".preventClickEvent");
+ event.stopImmediatePropagation();
+ return false;
+ }
+ });
+
+ this.started = false;
+ },
+
+ // TODO: make sure destroying one instance of mouse doesn't mess with
+ // other instances of mouse
+ _mouseDestroy: function() {
+ this.element.unbind("." + this.widgetName);
+ if ( this._mouseMoveDelegate ) {
+ this.document
+ .unbind("mousemove." + this.widgetName, this._mouseMoveDelegate)
+ .unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
+ }
+ },
+
+ _mouseDown: function(event) {
+ // don't let more than one widget handle mouseStart
+ if ( mouseHandled ) {
+ return;
+ }
+
+ this._mouseMoved = false;
+
+ // we may have missed mouseup (out of window)
+ (this._mouseStarted && this._mouseUp(event));
+
+ this._mouseDownEvent = event;
+
+ var that = this,
+ btnIsLeft = (event.which === 1),
+ // event.target.nodeName works around a bug in IE 8 with
+ // disabled inputs (#7620)
+ elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
+ if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
+ return true;
+ }
+
+ this.mouseDelayMet = !this.options.delay;
+ if (!this.mouseDelayMet) {
+ this._mouseDelayTimer = setTimeout(function() {
+ that.mouseDelayMet = true;
+ }, this.options.delay);
+ }
+
+ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
+ this._mouseStarted = (this._mouseStart(event) !== false);
+ if (!this._mouseStarted) {
+ event.preventDefault();
+ return true;
+ }
+ }
+
+ // Click event may never have fired (Gecko & Opera)
+ if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) {
+ $.removeData(event.target, this.widgetName + ".preventClickEvent");
+ }
+
+ // these delegates are required to keep context
+ this._mouseMoveDelegate = function(event) {
+ return that._mouseMove(event);
+ };
+ this._mouseUpDelegate = function(event) {
+ return that._mouseUp(event);
+ };
+
+ this.document
+ .bind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
+ .bind( "mouseup." + this.widgetName, this._mouseUpDelegate );
+
+ event.preventDefault();
+
+ mouseHandled = true;
+ return true;
+ },
+
+ _mouseMove: function(event) {
+ // Only check for mouseups outside the document if you've moved inside the document
+ // at least once. This prevents the firing of mouseup in the case of IE<9, which will
+ // fire a mousemove event if content is placed under the cursor. See #7778
+ // Support: IE <9
+ if ( this._mouseMoved ) {
+ // IE mouseup check - mouseup happened when mouse was out of window
+ if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
+ return this._mouseUp(event);
+
+ // Iframe mouseup check - mouseup occurred in another document
+ } else if ( !event.which ) {
+ return this._mouseUp( event );
+ }
+ }
+
+ if ( event.which || event.button ) {
+ this._mouseMoved = true;
+ }
+
+ if (this._mouseStarted) {
+ this._mouseDrag(event);
+ return event.preventDefault();
+ }
+
+ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
+ this._mouseStarted =
+ (this._mouseStart(this._mouseDownEvent, event) !== false);
+ (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
+ }
+
+ return !this._mouseStarted;
+ },
+
+ _mouseUp: function(event) {
+ this.document
+ .unbind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
+ .unbind( "mouseup." + this.widgetName, this._mouseUpDelegate );
+
+ if (this._mouseStarted) {
+ this._mouseStarted = false;
+
+ if (event.target === this._mouseDownEvent.target) {
+ $.data(event.target, this.widgetName + ".preventClickEvent", true);
+ }
+
+ this._mouseStop(event);
+ }
+
+ mouseHandled = false;
+ return false;
+ },
+
+ _mouseDistanceMet: function(event) {
+ return (Math.max(
+ Math.abs(this._mouseDownEvent.pageX - event.pageX),
+ Math.abs(this._mouseDownEvent.pageY - event.pageY)
+ ) >= this.options.distance
+ );
+ },
+
+ _mouseDelayMet: function(/* event */) {
+ return this.mouseDelayMet;
+ },
+
+ // These are placeholder methods, to be overriden by extending plugin
+ _mouseStart: function(/* event */) {},
+ _mouseDrag: function(/* event */) {},
+ _mouseStop: function(/* event */) {},
+ _mouseCapture: function(/* event */) { return true; }
+});
+
+
+/*!
+ * jQuery UI Position 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/position/
+ */
+
+(function() {
+
+$.ui = $.ui || {};
+
+var cachedScrollbarWidth, supportsOffsetFractions,
+ max = Math.max,
+ abs = Math.abs,
+ round = Math.round,
+ rhorizontal = /left|center|right/,
+ rvertical = /top|center|bottom/,
+ roffset = /[\+\-]\d+(\.[\d]+)?%?/,
+ rposition = /^\w+/,
+ rpercent = /%$/,
+ _position = $.fn.position;
+
+function getOffsets( offsets, width, height ) {
+ return [
+ parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
+ parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
+ ];
+}
+
+function parseCss( element, property ) {
+ return parseInt( $.css( element, property ), 10 ) || 0;
+}
+
+function getDimensions( elem ) {
+ var raw = elem[0];
+ if ( raw.nodeType === 9 ) {
+ return {
+ width: elem.width(),
+ height: elem.height(),
+ offset: { top: 0, left: 0 }
+ };
+ }
+ if ( $.isWindow( raw ) ) {
+ return {
+ width: elem.width(),
+ height: elem.height(),
+ offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
+ };
+ }
+ if ( raw.preventDefault ) {
+ return {
+ width: 0,
+ height: 0,
+ offset: { top: raw.pageY, left: raw.pageX }
+ };
+ }
+ return {
+ width: elem.outerWidth(),
+ height: elem.outerHeight(),
+ offset: elem.offset()
+ };
+}
+
+$.position = {
+ scrollbarWidth: function() {
+ if ( cachedScrollbarWidth !== undefined ) {
+ return cachedScrollbarWidth;
+ }
+ var w1, w2,
+ div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
+ innerDiv = div.children()[0];
+
+ $( "body" ).append( div );
+ w1 = innerDiv.offsetWidth;
+ div.css( "overflow", "scroll" );
+
+ w2 = innerDiv.offsetWidth;
+
+ if ( w1 === w2 ) {
+ w2 = div[0].clientWidth;
+ }
+
+ div.remove();
+
+ return (cachedScrollbarWidth = w1 - w2);
+ },
+ getScrollInfo: function( within ) {
+ var overflowX = within.isWindow || within.isDocument ? "" :
+ within.element.css( "overflow-x" ),
+ overflowY = within.isWindow || within.isDocument ? "" :
+ within.element.css( "overflow-y" ),
+ hasOverflowX = overflowX === "scroll" ||
+ ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
+ hasOverflowY = overflowY === "scroll" ||
+ ( overflowY === "auto" && within.height < within.element[0].scrollHeight );
+ return {
+ width: hasOverflowY ? $.position.scrollbarWidth() : 0,
+ height: hasOverflowX ? $.position.scrollbarWidth() : 0
+ };
+ },
+ getWithinInfo: function( element ) {
+ var withinElement = $( element || window ),
+ isWindow = $.isWindow( withinElement[0] ),
+ isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;
+ return {
+ element: withinElement,
+ isWindow: isWindow,
+ isDocument: isDocument,
+ offset: withinElement.offset() || { left: 0, top: 0 },
+ scrollLeft: withinElement.scrollLeft(),
+ scrollTop: withinElement.scrollTop(),
+
+ // support: jQuery 1.6.x
+ // jQuery 1.6 doesn't support .outerWidth/Height() on documents or windows
+ width: isWindow || isDocument ? withinElement.width() : withinElement.outerWidth(),
+ height: isWindow || isDocument ? withinElement.height() : withinElement.outerHeight()
+ };
+ }
+};
+
+$.fn.position = function( options ) {
+ if ( !options || !options.of ) {
+ return _position.apply( this, arguments );
+ }
+
+ // make a copy, we don't want to modify arguments
+ options = $.extend( {}, options );
+
+ var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
+ target = $( options.of ),
+ within = $.position.getWithinInfo( options.within ),
+ scrollInfo = $.position.getScrollInfo( within ),
+ collision = ( options.collision || "flip" ).split( " " ),
+ offsets = {};
+
+ dimensions = getDimensions( target );
+ if ( target[0].preventDefault ) {
+ // force left top to allow flipping
+ options.at = "left top";
+ }
+ targetWidth = dimensions.width;
+ targetHeight = dimensions.height;
+ targetOffset = dimensions.offset;
+ // clone to reuse original targetOffset later
+ basePosition = $.extend( {}, targetOffset );
+
+ // force my and at to have valid horizontal and vertical positions
+ // if a value is missing or invalid, it will be converted to center
+ $.each( [ "my", "at" ], function() {
+ var pos = ( options[ this ] || "" ).split( " " ),
+ horizontalOffset,
+ verticalOffset;
+
+ if ( pos.length === 1) {
+ pos = rhorizontal.test( pos[ 0 ] ) ?
+ pos.concat( [ "center" ] ) :
+ rvertical.test( pos[ 0 ] ) ?
+ [ "center" ].concat( pos ) :
+ [ "center", "center" ];
+ }
+ pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
+ pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
+
+ // calculate offsets
+ horizontalOffset = roffset.exec( pos[ 0 ] );
+ verticalOffset = roffset.exec( pos[ 1 ] );
+ offsets[ this ] = [
+ horizontalOffset ? horizontalOffset[ 0 ] : 0,
+ verticalOffset ? verticalOffset[ 0 ] : 0
+ ];
+
+ // reduce to just the positions without the offsets
+ options[ this ] = [
+ rposition.exec( pos[ 0 ] )[ 0 ],
+ rposition.exec( pos[ 1 ] )[ 0 ]
+ ];
+ });
+
+ // normalize collision option
+ if ( collision.length === 1 ) {
+ collision[ 1 ] = collision[ 0 ];
+ }
+
+ if ( options.at[ 0 ] === "right" ) {
+ basePosition.left += targetWidth;
+ } else if ( options.at[ 0 ] === "center" ) {
+ basePosition.left += targetWidth / 2;
+ }
+
+ if ( options.at[ 1 ] === "bottom" ) {
+ basePosition.top += targetHeight;
+ } else if ( options.at[ 1 ] === "center" ) {
+ basePosition.top += targetHeight / 2;
+ }
+
+ atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
+ basePosition.left += atOffset[ 0 ];
+ basePosition.top += atOffset[ 1 ];
+
+ return this.each(function() {
+ var collisionPosition, using,
+ elem = $( this ),
+ elemWidth = elem.outerWidth(),
+ elemHeight = elem.outerHeight(),
+ marginLeft = parseCss( this, "marginLeft" ),
+ marginTop = parseCss( this, "marginTop" ),
+ collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width,
+ collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height,
+ position = $.extend( {}, basePosition ),
+ myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
+
+ if ( options.my[ 0 ] === "right" ) {
+ position.left -= elemWidth;
+ } else if ( options.my[ 0 ] === "center" ) {
+ position.left -= elemWidth / 2;
+ }
+
+ if ( options.my[ 1 ] === "bottom" ) {
+ position.top -= elemHeight;
+ } else if ( options.my[ 1 ] === "center" ) {
+ position.top -= elemHeight / 2;
+ }
+
+ position.left += myOffset[ 0 ];
+ position.top += myOffset[ 1 ];
+
+ // if the browser doesn't support fractions, then round for consistent results
+ if ( !supportsOffsetFractions ) {
+ position.left = round( position.left );
+ position.top = round( position.top );
+ }
+
+ collisionPosition = {
+ marginLeft: marginLeft,
+ marginTop: marginTop
+ };
+
+ $.each( [ "left", "top" ], function( i, dir ) {
+ if ( $.ui.position[ collision[ i ] ] ) {
+ $.ui.position[ collision[ i ] ][ dir ]( position, {
+ targetWidth: targetWidth,
+ targetHeight: targetHeight,
+ elemWidth: elemWidth,
+ elemHeight: elemHeight,
+ collisionPosition: collisionPosition,
+ collisionWidth: collisionWidth,
+ collisionHeight: collisionHeight,
+ offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
+ my: options.my,
+ at: options.at,
+ within: within,
+ elem: elem
+ });
+ }
+ });
+
+ if ( options.using ) {
+ // adds feedback as second argument to using callback, if present
+ using = function( props ) {
+ var left = targetOffset.left - position.left,
+ right = left + targetWidth - elemWidth,
+ top = targetOffset.top - position.top,
+ bottom = top + targetHeight - elemHeight,
+ feedback = {
+ target: {
+ element: target,
+ left: targetOffset.left,
+ top: targetOffset.top,
+ width: targetWidth,
+ height: targetHeight
+ },
+ element: {
+ element: elem,
+ left: position.left,
+ top: position.top,
+ width: elemWidth,
+ height: elemHeight
+ },
+ horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
+ vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
+ };
+ if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
+ feedback.horizontal = "center";
+ }
+ if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
+ feedback.vertical = "middle";
+ }
+ if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
+ feedback.important = "horizontal";
+ } else {
+ feedback.important = "vertical";
+ }
+ options.using.call( this, props, feedback );
+ };
+ }
+
+ elem.offset( $.extend( position, { using: using } ) );
+ });
+};
+
+$.ui.position = {
+ fit: {
+ left: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
+ outerWidth = within.width,
+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,
+ overLeft = withinOffset - collisionPosLeft,
+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
+ newOverRight;
+
+ // element is wider than within
+ if ( data.collisionWidth > outerWidth ) {
+ // element is initially over the left side of within
+ if ( overLeft > 0 && overRight <= 0 ) {
+ newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
+ position.left += overLeft - newOverRight;
+ // element is initially over right side of within
+ } else if ( overRight > 0 && overLeft <= 0 ) {
+ position.left = withinOffset;
+ // element is initially over both left and right sides of within
+ } else {
+ if ( overLeft > overRight ) {
+ position.left = withinOffset + outerWidth - data.collisionWidth;
+ } else {
+ position.left = withinOffset;
+ }
+ }
+ // too far left -> align with left edge
+ } else if ( overLeft > 0 ) {
+ position.left += overLeft;
+ // too far right -> align with right edge
+ } else if ( overRight > 0 ) {
+ position.left -= overRight;
+ // adjust based on position and margin
+ } else {
+ position.left = max( position.left - collisionPosLeft, position.left );
+ }
+ },
+ top: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
+ outerHeight = data.within.height,
+ collisionPosTop = position.top - data.collisionPosition.marginTop,
+ overTop = withinOffset - collisionPosTop,
+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
+ newOverBottom;
+
+ // element is taller than within
+ if ( data.collisionHeight > outerHeight ) {
+ // element is initially over the top of within
+ if ( overTop > 0 && overBottom <= 0 ) {
+ newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
+ position.top += overTop - newOverBottom;
+ // element is initially over bottom of within
+ } else if ( overBottom > 0 && overTop <= 0 ) {
+ position.top = withinOffset;
+ // element is initially over both top and bottom of within
+ } else {
+ if ( overTop > overBottom ) {
+ position.top = withinOffset + outerHeight - data.collisionHeight;
+ } else {
+ position.top = withinOffset;
+ }
+ }
+ // too far up -> align with top
+ } else if ( overTop > 0 ) {
+ position.top += overTop;
+ // too far down -> align with bottom edge
+ } else if ( overBottom > 0 ) {
+ position.top -= overBottom;
+ // adjust based on position and margin
+ } else {
+ position.top = max( position.top - collisionPosTop, position.top );
+ }
+ }
+ },
+ flip: {
+ left: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.offset.left + within.scrollLeft,
+ outerWidth = within.width,
+ offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,
+ overLeft = collisionPosLeft - offsetLeft,
+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
+ myOffset = data.my[ 0 ] === "left" ?
+ -data.elemWidth :
+ data.my[ 0 ] === "right" ?
+ data.elemWidth :
+ 0,
+ atOffset = data.at[ 0 ] === "left" ?
+ data.targetWidth :
+ data.at[ 0 ] === "right" ?
+ -data.targetWidth :
+ 0,
+ offset = -2 * data.offset[ 0 ],
+ newOverRight,
+ newOverLeft;
+
+ if ( overLeft < 0 ) {
+ newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;
+ if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
+ position.left += myOffset + atOffset + offset;
+ }
+ } else if ( overRight > 0 ) {
+ newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;
+ if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
+ position.left += myOffset + atOffset + offset;
+ }
+ }
+ },
+ top: function( position, data ) {
+ var within = data.within,
+ withinOffset = within.offset.top + within.scrollTop,
+ outerHeight = within.height,
+ offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
+ collisionPosTop = position.top - data.collisionPosition.marginTop,
+ overTop = collisionPosTop - offsetTop,
+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
+ top = data.my[ 1 ] === "top",
+ myOffset = top ?
+ -data.elemHeight :
+ data.my[ 1 ] === "bottom" ?
+ data.elemHeight :
+ 0,
+ atOffset = data.at[ 1 ] === "top" ?
+ data.targetHeight :
+ data.at[ 1 ] === "bottom" ?
+ -data.targetHeight :
+ 0,
+ offset = -2 * data.offset[ 1 ],
+ newOverTop,
+ newOverBottom;
+ if ( overTop < 0 ) {
+ newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
+ if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
+ position.top += myOffset + atOffset + offset;
+ }
+ } else if ( overBottom > 0 ) {
+ newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
+ if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
+ position.top += myOffset + atOffset + offset;
+ }
+ }
+ }
+ },
+ flipfit: {
+ left: function() {
+ $.ui.position.flip.left.apply( this, arguments );
+ $.ui.position.fit.left.apply( this, arguments );
+ },
+ top: function() {
+ $.ui.position.flip.top.apply( this, arguments );
+ $.ui.position.fit.top.apply( this, arguments );
+ }
+ }
+};
+
+// fraction support test
+(function() {
+ var testElement, testElementParent, testElementStyle, offsetLeft, i,
+ body = document.getElementsByTagName( "body" )[ 0 ],
+ div = document.createElement( "div" );
+
+ //Create a "fake body" for testing based on method used in jQuery.support
+ testElement = document.createElement( body ? "div" : "body" );
+ testElementStyle = {
+ visibility: "hidden",
+ width: 0,
+ height: 0,
+ border: 0,
+ margin: 0,
+ background: "none"
+ };
+ if ( body ) {
+ $.extend( testElementStyle, {
+ position: "absolute",
+ left: "-1000px",
+ top: "-1000px"
+ });
+ }
+ for ( i in testElementStyle ) {
+ testElement.style[ i ] = testElementStyle[ i ];
+ }
+ testElement.appendChild( div );
+ testElementParent = body || document.documentElement;
+ testElementParent.insertBefore( testElement, testElementParent.firstChild );
+
+ div.style.cssText = "position: absolute; left: 10.7432222px;";
+
+ offsetLeft = $( div ).offset().left;
+ supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
+
+ testElement.innerHTML = "";
+ testElementParent.removeChild( testElement );
+})();
+
+})();
+
+var position = $.ui.position;
+
+
+/*!
+ * jQuery UI Draggable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/draggable/
+ */
+
+
+$.widget("ui.draggable", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "drag",
+ options: {
+ addClasses: true,
+ appendTo: "parent",
+ axis: false,
+ connectToSortable: false,
+ containment: false,
+ cursor: "auto",
+ cursorAt: false,
+ grid: false,
+ handle: false,
+ helper: "original",
+ iframeFix: false,
+ opacity: false,
+ refreshPositions: false,
+ revert: false,
+ revertDuration: 500,
+ scope: "default",
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ snap: false,
+ snapMode: "both",
+ snapTolerance: 20,
+ stack: false,
+ zIndex: false,
+
+ // callbacks
+ drag: null,
+ start: null,
+ stop: null
+ },
+ _create: function() {
+
+ if ( this.options.helper === "original" ) {
+ this._setPositionRelative();
+ }
+ if (this.options.addClasses){
+ this.element.addClass("ui-draggable");
+ }
+ if (this.options.disabled){
+ this.element.addClass("ui-draggable-disabled");
+ }
+ this._setHandleClassName();
+
+ this._mouseInit();
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+ if ( key === "handle" ) {
+ this._removeHandleClassName();
+ this._setHandleClassName();
+ }
+ },
+
+ _destroy: function() {
+ if ( ( this.helper || this.element ).is( ".ui-draggable-dragging" ) ) {
+ this.destroyOnClear = true;
+ return;
+ }
+ this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" );
+ this._removeHandleClassName();
+ this._mouseDestroy();
+ },
+
+ _mouseCapture: function(event) {
+ var o = this.options;
+
+ this._blurActiveElement( event );
+
+ // among others, prevent a drag on a resizable-handle
+ if (this.helper || o.disabled || $(event.target).closest(".ui-resizable-handle").length > 0) {
+ return false;
+ }
+
+ //Quit if we're not on a valid handle
+ this.handle = this._getHandle(event);
+ if (!this.handle) {
+ return false;
+ }
+
+ this._blockFrames( o.iframeFix === true ? "iframe" : o.iframeFix );
+
+ return true;
+
+ },
+
+ _blockFrames: function( selector ) {
+ this.iframeBlocks = this.document.find( selector ).map(function() {
+ var iframe = $( this );
+
+ return $( "<div>" )
+ .css( "position", "absolute" )
+ .appendTo( iframe.parent() )
+ .outerWidth( iframe.outerWidth() )
+ .outerHeight( iframe.outerHeight() )
+ .offset( iframe.offset() )[ 0 ];
+ });
+ },
+
+ _unblockFrames: function() {
+ if ( this.iframeBlocks ) {
+ this.iframeBlocks.remove();
+ delete this.iframeBlocks;
+ }
+ },
+
+ _blurActiveElement: function( event ) {
+ var document = this.document[ 0 ];
+
+ // Only need to blur if the event occurred on the draggable itself, see #10527
+ if ( !this.handleElement.is( event.target ) ) {
+ return;
+ }
+
+ // support: IE9
+ // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
+ try {
+
+ // Support: IE9, IE10
+ // If the <body> is blurred, IE will switch windows, see #9520
+ if ( document.activeElement && document.activeElement.nodeName.toLowerCase() !== "body" ) {
+
+ // Blur any element that currently has focus, see #4261
+ $( document.activeElement ).blur();
+ }
+ } catch ( error ) {}
+ },
+
+ _mouseStart: function(event) {
+
+ var o = this.options;
+
+ //Create and append the visible helper
+ this.helper = this._createHelper(event);
+
+ this.helper.addClass("ui-draggable-dragging");
+
+ //Cache the helper size
+ this._cacheHelperProportions();
+
+ //If ddmanager is used for droppables, set the global draggable
+ if ($.ui.ddmanager) {
+ $.ui.ddmanager.current = this;
+ }
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ //Cache the margins of the original element
+ this._cacheMargins();
+
+ //Store the helper's css position
+ this.cssPosition = this.helper.css( "position" );
+ this.scrollParent = this.helper.scrollParent( true );
+ this.offsetParent = this.helper.offsetParent();
+ this.hasFixedAncestor = this.helper.parents().filter(function() {
+ return $( this ).css( "position" ) === "fixed";
+ }).length > 0;
+
+ //The element's absolute position on the page minus margins
+ this.positionAbs = this.element.offset();
+ this._refreshOffsets( event );
+
+ //Generate the original position
+ this.originalPosition = this.position = this._generatePosition( event, false );
+ this.originalPageX = event.pageX;
+ this.originalPageY = event.pageY;
+
+ //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
+
+ //Set a containment if given in the options
+ this._setContainment();
+
+ //Trigger event + callbacks
+ if (this._trigger("start", event) === false) {
+ this._clear();
+ return false;
+ }
+
+ //Recache the helper size
+ this._cacheHelperProportions();
+
+ //Prepare the droppable offsets
+ if ($.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(this, event);
+ }
+
+ // Reset helper's right/bottom css if they're set and set explicit width/height instead
+ // as this prevents resizing of elements with right/bottom set (see #7772)
+ this._normalizeRightBottom();
+
+ this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+
+ //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)
+ if ( $.ui.ddmanager ) {
+ $.ui.ddmanager.dragStart(this, event);
+ }
+
+ return true;
+ },
+
+ _refreshOffsets: function( event ) {
+ this.offset = {
+ top: this.positionAbs.top - this.margins.top,
+ left: this.positionAbs.left - this.margins.left,
+ scroll: false,
+ parent: this._getParentOffset(),
+ relative: this._getRelativeOffset()
+ };
+
+ this.offset.click = {
+ left: event.pageX - this.offset.left,
+ top: event.pageY - this.offset.top
+ };
+ },
+
+ _mouseDrag: function(event, noPropagation) {
+ // reset any necessary cached properties (see #5009)
+ if ( this.hasFixedAncestor ) {
+ this.offset.parent = this._getParentOffset();
+ }
+
+ //Compute the helpers position
+ this.position = this._generatePosition( event, true );
+ this.positionAbs = this._convertPositionTo("absolute");
+
+ //Call plugins and callbacks and use the resulting position if something is returned
+ if (!noPropagation) {
+ var ui = this._uiHash();
+ if (this._trigger("drag", event, ui) === false) {
+ this._mouseUp({});
+ return false;
+ }
+ this.position = ui.position;
+ }
+
+ this.helper[ 0 ].style.left = this.position.left + "px";
+ this.helper[ 0 ].style.top = this.position.top + "px";
+
+ if ($.ui.ddmanager) {
+ $.ui.ddmanager.drag(this, event);
+ }
+
+ return false;
+ },
+
+ _mouseStop: function(event) {
+
+ //If we are using droppables, inform the manager about the drop
+ var that = this,
+ dropped = false;
+ if ($.ui.ddmanager && !this.options.dropBehaviour) {
+ dropped = $.ui.ddmanager.drop(this, event);
+ }
+
+ //if a drop comes from outside (a sortable)
+ if (this.dropped) {
+ dropped = this.dropped;
+ this.dropped = false;
+ }
+
+ if ((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
+ if (that._trigger("stop", event) !== false) {
+ that._clear();
+ }
+ });
+ } else {
+ if (this._trigger("stop", event) !== false) {
+ this._clear();
+ }
+ }
+
+ return false;
+ },
+
+ _mouseUp: function( event ) {
+ this._unblockFrames();
+
+ //If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003)
+ if ( $.ui.ddmanager ) {
+ $.ui.ddmanager.dragStop(this, event);
+ }
+
+ // Only need to focus if the event occurred on the draggable itself, see #10527
+ if ( this.handleElement.is( event.target ) ) {
+ // The interaction is over; whether or not the click resulted in a drag, focus the element
+ this.element.focus();
+ }
+
+ return $.ui.mouse.prototype._mouseUp.call(this, event);
+ },
+
+ cancel: function() {
+
+ if (this.helper.is(".ui-draggable-dragging")) {
+ this._mouseUp({});
+ } else {
+ this._clear();
+ }
+
+ return this;
+
+ },
+
+ _getHandle: function(event) {
+ return this.options.handle ?
+ !!$( event.target ).closest( this.element.find( this.options.handle ) ).length :
+ true;
+ },
+
+ _setHandleClassName: function() {
+ this.handleElement = this.options.handle ?
+ this.element.find( this.options.handle ) : this.element;
+ this.handleElement.addClass( "ui-draggable-handle" );
+ },
+
+ _removeHandleClassName: function() {
+ this.handleElement.removeClass( "ui-draggable-handle" );
+ },
+
+ _createHelper: function(event) {
+
+ var o = this.options,
+ helperIsFunction = $.isFunction( o.helper ),
+ helper = helperIsFunction ?
+ $( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
+ ( o.helper === "clone" ?
+ this.element.clone().removeAttr( "id" ) :
+ this.element );
+
+ if (!helper.parents("body").length) {
+ helper.appendTo((o.appendTo === "parent" ? this.element[0].parentNode : o.appendTo));
+ }
+
+ // http://bugs.jqueryui.com/ticket/9446
+ // a helper function can return the original element
+ // which wouldn't have been set to relative in _create
+ if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
+ this._setPositionRelative();
+ }
+
+ if (helper[0] !== this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) {
+ helper.css("position", "absolute");
+ }
+
+ return helper;
+
+ },
+
+ _setPositionRelative: function() {
+ if ( !( /^(?:r|a|f)/ ).test( this.element.css( "position" ) ) ) {
+ this.element[ 0 ].style.position = "relative";
+ }
+ },
+
+ _adjustOffsetFromHelper: function(obj) {
+ if (typeof obj === "string") {
+ obj = obj.split(" ");
+ }
+ if ($.isArray(obj)) {
+ obj = { left: +obj[0], top: +obj[1] || 0 };
+ }
+ if ("left" in obj) {
+ this.offset.click.left = obj.left + this.margins.left;
+ }
+ if ("right" in obj) {
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
+ }
+ if ("top" in obj) {
+ this.offset.click.top = obj.top + this.margins.top;
+ }
+ if ("bottom" in obj) {
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
+ }
+ },
+
+ _isRootNode: function( element ) {
+ return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ];
+ },
+
+ _getParentOffset: function() {
+
+ //Get the offsetParent and cache its position
+ var po = this.offsetParent.offset(),
+ document = this.document[ 0 ];
+
+ // This is a special case where we need to modify a offset calculated on start, since the following happened:
+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
+ if (this.cssPosition === "absolute" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) {
+ po.left += this.scrollParent.scrollLeft();
+ po.top += this.scrollParent.scrollTop();
+ }
+
+ if ( this._isRootNode( this.offsetParent[ 0 ] ) ) {
+ po = { top: 0, left: 0 };
+ }
+
+ return {
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
+ };
+
+ },
+
+ _getRelativeOffset: function() {
+ if ( this.cssPosition !== "relative" ) {
+ return { top: 0, left: 0 };
+ }
+
+ var p = this.element.position(),
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
+
+ return {
+ top: p.top - ( parseInt(this.helper.css( "top" ), 10) || 0 ) + ( !scrollIsRootNode ? this.scrollParent.scrollTop() : 0 ),
+ left: p.left - ( parseInt(this.helper.css( "left" ), 10) || 0 ) + ( !scrollIsRootNode ? this.scrollParent.scrollLeft() : 0 )
+ };
+
+ },
+
+ _cacheMargins: function() {
+ this.margins = {
+ left: (parseInt(this.element.css("marginLeft"), 10) || 0),
+ top: (parseInt(this.element.css("marginTop"), 10) || 0),
+ right: (parseInt(this.element.css("marginRight"), 10) || 0),
+ bottom: (parseInt(this.element.css("marginBottom"), 10) || 0)
+ };
+ },
+
+ _cacheHelperProportions: function() {
+ this.helperProportions = {
+ width: this.helper.outerWidth(),
+ height: this.helper.outerHeight()
+ };
+ },
+
+ _setContainment: function() {
+
+ var isUserScrollable, c, ce,
+ o = this.options,
+ document = this.document[ 0 ];
+
+ this.relativeContainer = null;
+
+ if ( !o.containment ) {
+ this.containment = null;
+ return;
+ }
+
+ if ( o.containment === "window" ) {
+ this.containment = [
+ $( window ).scrollLeft() - this.offset.relative.left - this.offset.parent.left,
+ $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top,
+ $( window ).scrollLeft() + $( window ).width() - this.helperProportions.width - this.margins.left,
+ $( window ).scrollTop() + ( $( window ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
+ ];
+ return;
+ }
+
+ if ( o.containment === "document") {
+ this.containment = [
+ 0,
+ 0,
+ $( document ).width() - this.helperProportions.width - this.margins.left,
+ ( $( document ).height() || document.body.parentNode.scrollHeight ) - this.helperProportions.height - this.margins.top
+ ];
+ return;
+ }
+
+ if ( o.containment.constructor === Array ) {
+ this.containment = o.containment;
+ return;
+ }
+
+ if ( o.containment === "parent" ) {
+ o.containment = this.helper[ 0 ].parentNode;
+ }
+
+ c = $( o.containment );
+ ce = c[ 0 ];
+
+ if ( !ce ) {
+ return;
+ }
+
+ isUserScrollable = /(scroll|auto)/.test( c.css( "overflow" ) );
+
+ this.containment = [
+ ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) + ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ),
+ ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) + ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ),
+ ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
+ ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
+ ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
+ this.helperProportions.width -
+ this.margins.left -
+ this.margins.right,
+ ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
+ ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
+ ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
+ this.helperProportions.height -
+ this.margins.top -
+ this.margins.bottom
+ ];
+ this.relativeContainer = c;
+ },
+
+ _convertPositionTo: function(d, pos) {
+
+ if (!pos) {
+ pos = this.position;
+ }
+
+ var mod = d === "absolute" ? 1 : -1,
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
+
+ return {
+ top: (
+ pos.top + // The absolute mouse position
+ this.offset.relative.top * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.offset.scroll.top : ( scrollIsRootNode ? 0 : this.offset.scroll.top ) ) * mod)
+ ),
+ left: (
+ pos.left + // The absolute mouse position
+ this.offset.relative.left * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.offset.scroll.left : ( scrollIsRootNode ? 0 : this.offset.scroll.left ) ) * mod)
+ )
+ };
+
+ },
+
+ _generatePosition: function( event, constrainPosition ) {
+
+ var containment, co, top, left,
+ o = this.options,
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),
+ pageX = event.pageX,
+ pageY = event.pageY;
+
+ // Cache the scroll
+ if ( !scrollIsRootNode || !this.offset.scroll ) {
+ this.offset.scroll = {
+ top: this.scrollParent.scrollTop(),
+ left: this.scrollParent.scrollLeft()
+ };
+ }
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+
+ // If we are not dragging yet, we won't check for options
+ if ( constrainPosition ) {
+ if ( this.containment ) {
+ if ( this.relativeContainer ){
+ co = this.relativeContainer.offset();
+ containment = [
+ this.containment[ 0 ] + co.left,
+ this.containment[ 1 ] + co.top,
+ this.containment[ 2 ] + co.left,
+ this.containment[ 3 ] + co.top
+ ];
+ } else {
+ containment = this.containment;
+ }
+
+ if (event.pageX - this.offset.click.left < containment[0]) {
+ pageX = containment[0] + this.offset.click.left;
+ }
+ if (event.pageY - this.offset.click.top < containment[1]) {
+ pageY = containment[1] + this.offset.click.top;
+ }
+ if (event.pageX - this.offset.click.left > containment[2]) {
+ pageX = containment[2] + this.offset.click.left;
+ }
+ if (event.pageY - this.offset.click.top > containment[3]) {
+ pageY = containment[3] + this.offset.click.top;
+ }
+ }
+
+ if (o.grid) {
+ //Check for grid elements set to 0 to prevent divide by 0 error causing invalid argument errors in IE (see ticket #6950)
+ top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;
+ pageY = containment ? ((top - this.offset.click.top >= containment[1] || top - this.offset.click.top > containment[3]) ? top : ((top - this.offset.click.top >= containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;
+ pageX = containment ? ((left - this.offset.click.left >= containment[0] || left - this.offset.click.left > containment[2]) ? left : ((left - this.offset.click.left >= containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ if ( o.axis === "y" ) {
+ pageX = this.originalPageX;
+ }
+
+ if ( o.axis === "x" ) {
+ pageY = this.originalPageY;
+ }
+ }
+
+ return {
+ top: (
+ pageY - // The absolute mouse position
+ this.offset.click.top - // Click offset (relative to the element)
+ this.offset.relative.top - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top + // The offsetParent's offset without borders (offset + border)
+ ( this.cssPosition === "fixed" ? -this.offset.scroll.top : ( scrollIsRootNode ? 0 : this.offset.scroll.top ) )
+ ),
+ left: (
+ pageX - // The absolute mouse position
+ this.offset.click.left - // Click offset (relative to the element)
+ this.offset.relative.left - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left + // The offsetParent's offset without borders (offset + border)
+ ( this.cssPosition === "fixed" ? -this.offset.scroll.left : ( scrollIsRootNode ? 0 : this.offset.scroll.left ) )
+ )
+ };
+
+ },
+
+ _clear: function() {
+ this.helper.removeClass("ui-draggable-dragging");
+ if (this.helper[0] !== this.element[0] && !this.cancelHelperRemoval) {
+ this.helper.remove();
+ }
+ this.helper = null;
+ this.cancelHelperRemoval = false;
+ if ( this.destroyOnClear ) {
+ this.destroy();
+ }
+ },
+
+ _normalizeRightBottom: function() {
+ if ( this.options.axis !== "y" && this.helper.css( "right" ) !== "auto" ) {
+ this.helper.width( this.helper.width() );
+ this.helper.css( "right", "auto" );
+ }
+ if ( this.options.axis !== "x" && this.helper.css( "bottom" ) !== "auto" ) {
+ this.helper.height( this.helper.height() );
+ this.helper.css( "bottom", "auto" );
+ }
+ },
+
+ // From now on bulk stuff - mainly helpers
+
+ _trigger: function( type, event, ui ) {
+ ui = ui || this._uiHash();
+ $.ui.plugin.call( this, type, [ event, ui, this ], true );
+
+ // Absolute position and offset (see #6884 ) have to be recalculated after plugins
+ if ( /^(drag|start|stop)/.test( type ) ) {
+ this.positionAbs = this._convertPositionTo( "absolute" );
+ ui.offset = this.positionAbs;
+ }
+ return $.Widget.prototype._trigger.call( this, type, event, ui );
+ },
+
+ plugins: {},
+
+ _uiHash: function() {
+ return {
+ helper: this.helper,
+ position: this.position,
+ originalPosition: this.originalPosition,
+ offset: this.positionAbs
+ };
+ }
+
+});
+
+$.ui.plugin.add( "draggable", "connectToSortable", {
+ start: function( event, ui, draggable ) {
+ var uiSortable = $.extend( {}, ui, {
+ item: draggable.element
+ });
+
+ draggable.sortables = [];
+ $( draggable.options.connectToSortable ).each(function() {
+ var sortable = $( this ).sortable( "instance" );
+
+ if ( sortable && !sortable.options.disabled ) {
+ draggable.sortables.push( sortable );
+
+ // refreshPositions is called at drag start to refresh the containerCache
+ // which is used in drag. This ensures it's initialized and synchronized
+ // with any changes that might have happened on the page since initialization.
+ sortable.refreshPositions();
+ sortable._trigger("activate", event, uiSortable);
+ }
+ });
+ },
+ stop: function( event, ui, draggable ) {
+ var uiSortable = $.extend( {}, ui, {
+ item: draggable.element
+ });
+
+ draggable.cancelHelperRemoval = false;
+
+ $.each( draggable.sortables, function() {
+ var sortable = this;
+
+ if ( sortable.isOver ) {
+ sortable.isOver = 0;
+
+ // Allow this sortable to handle removing the helper
+ draggable.cancelHelperRemoval = true;
+ sortable.cancelHelperRemoval = false;
+
+ // Use _storedCSS To restore properties in the sortable,
+ // as this also handles revert (#9675) since the draggable
+ // may have modified them in unexpected ways (#8809)
+ sortable._storedCSS = {
+ position: sortable.placeholder.css( "position" ),
+ top: sortable.placeholder.css( "top" ),
+ left: sortable.placeholder.css( "left" )
+ };
+
+ sortable._mouseStop(event);
+
+ // Once drag has ended, the sortable should return to using
+ // its original helper, not the shared helper from draggable
+ sortable.options.helper = sortable.options._helper;
+ } else {
+ // Prevent this Sortable from removing the helper.
+ // However, don't set the draggable to remove the helper
+ // either as another connected Sortable may yet handle the removal.
+ sortable.cancelHelperRemoval = true;
+
+ sortable._trigger( "deactivate", event, uiSortable );
+ }
+ });
+ },
+ drag: function( event, ui, draggable ) {
+ $.each( draggable.sortables, function() {
+ var innermostIntersecting = false,
+ sortable = this;
+
+ // Copy over variables that sortable's _intersectsWith uses
+ sortable.positionAbs = draggable.positionAbs;
+ sortable.helperProportions = draggable.helperProportions;
+ sortable.offset.click = draggable.offset.click;
+
+ if ( sortable._intersectsWith( sortable.containerCache ) ) {
+ innermostIntersecting = true;
+
+ $.each( draggable.sortables, function() {
+ // Copy over variables that sortable's _intersectsWith uses
+ this.positionAbs = draggable.positionAbs;
+ this.helperProportions = draggable.helperProportions;
+ this.offset.click = draggable.offset.click;
+
+ if ( this !== sortable &&
+ this._intersectsWith( this.containerCache ) &&
+ $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) {
+ innermostIntersecting = false;
+ }
+
+ return innermostIntersecting;
+ });
+ }
+
+ if ( innermostIntersecting ) {
+ // If it intersects, we use a little isOver variable and set it once,
+ // so that the move-in stuff gets fired only once.
+ if ( !sortable.isOver ) {
+ sortable.isOver = 1;
+
+ // Store draggable's parent in case we need to reappend to it later.
+ draggable._parent = ui.helper.parent();
+
+ sortable.currentItem = ui.helper
+ .appendTo( sortable.element )
+ .data( "ui-sortable-item", true );
+
+ // Store helper option to later restore it
+ sortable.options._helper = sortable.options.helper;
+
+ sortable.options.helper = function() {
+ return ui.helper[ 0 ];
+ };
+
+ // Fire the start events of the sortable with our passed browser event,
+ // and our own helper (so it doesn't create a new one)
+ event.target = sortable.currentItem[ 0 ];
+ sortable._mouseCapture( event, true );
+ sortable._mouseStart( event, true, true );
+
+ // Because the browser event is way off the new appended portlet,
+ // modify necessary variables to reflect the changes
+ sortable.offset.click.top = draggable.offset.click.top;
+ sortable.offset.click.left = draggable.offset.click.left;
+ sortable.offset.parent.left -= draggable.offset.parent.left -
+ sortable.offset.parent.left;
+ sortable.offset.parent.top -= draggable.offset.parent.top -
+ sortable.offset.parent.top;
+
+ draggable._trigger( "toSortable", event );
+
+ // Inform draggable that the helper is in a valid drop zone,
+ // used solely in the revert option to handle "valid/invalid".
+ draggable.dropped = sortable.element;
+
+ // Need to refreshPositions of all sortables in the case that
+ // adding to one sortable changes the location of the other sortables (#9675)
+ $.each( draggable.sortables, function() {
+ this.refreshPositions();
+ });
+
+ // hack so receive/update callbacks work (mostly)
+ draggable.currentItem = draggable.element;
+ sortable.fromOutside = draggable;
+ }
+
+ if ( sortable.currentItem ) {
+ sortable._mouseDrag( event );
+ // Copy the sortable's position because the draggable's can potentially reflect
+ // a relative position, while sortable is always absolute, which the dragged
+ // element has now become. (#8809)
+ ui.position = sortable.position;
+ }
+ } else {
+ // If it doesn't intersect with the sortable, and it intersected before,
+ // we fake the drag stop of the sortable, but make sure it doesn't remove
+ // the helper by using cancelHelperRemoval.
+ if ( sortable.isOver ) {
+
+ sortable.isOver = 0;
+ sortable.cancelHelperRemoval = true;
+
+ // Calling sortable's mouseStop would trigger a revert,
+ // so revert must be temporarily false until after mouseStop is called.
+ sortable.options._revert = sortable.options.revert;
+ sortable.options.revert = false;
+
+ sortable._trigger( "out", event, sortable._uiHash( sortable ) );
+ sortable._mouseStop( event, true );
+
+ // restore sortable behaviors that were modfied
+ // when the draggable entered the sortable area (#9481)
+ sortable.options.revert = sortable.options._revert;
+ sortable.options.helper = sortable.options._helper;
+
+ if ( sortable.placeholder ) {
+ sortable.placeholder.remove();
+ }
+
+ // Restore and recalculate the draggable's offset considering the sortable
+ // may have modified them in unexpected ways. (#8809, #10669)
+ ui.helper.appendTo( draggable._parent );
+ draggable._refreshOffsets( event );
+ ui.position = draggable._generatePosition( event, true );
+
+ draggable._trigger( "fromSortable", event );
+
+ // Inform draggable that the helper is no longer in a valid drop zone
+ draggable.dropped = false;
+
+ // Need to refreshPositions of all sortables just in case removing
+ // from one sortable changes the location of other sortables (#9675)
+ $.each( draggable.sortables, function() {
+ this.refreshPositions();
+ });
+ }
+ }
+ });
+ }
+});
+
+$.ui.plugin.add("draggable", "cursor", {
+ start: function( event, ui, instance ) {
+ var t = $( "body" ),
+ o = instance.options;
+
+ if (t.css("cursor")) {
+ o._cursor = t.css("cursor");
+ }
+ t.css("cursor", o.cursor);
+ },
+ stop: function( event, ui, instance ) {
+ var o = instance.options;
+ if (o._cursor) {
+ $("body").css("cursor", o._cursor);
+ }
+ }
+});
+
+$.ui.plugin.add("draggable", "opacity", {
+ start: function( event, ui, instance ) {
+ var t = $( ui.helper ),
+ o = instance.options;
+ if (t.css("opacity")) {
+ o._opacity = t.css("opacity");
+ }
+ t.css("opacity", o.opacity);
+ },
+ stop: function( event, ui, instance ) {
+ var o = instance.options;
+ if (o._opacity) {
+ $(ui.helper).css("opacity", o._opacity);
+ }
+ }
+});
+
+$.ui.plugin.add("draggable", "scroll", {
+ start: function( event, ui, i ) {
+ if ( !i.scrollParentNotHidden ) {
+ i.scrollParentNotHidden = i.helper.scrollParent( false );
+ }
+
+ if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] && i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) {
+ i.overflowOffset = i.scrollParentNotHidden.offset();
+ }
+ },
+ drag: function( event, ui, i ) {
+
+ var o = i.options,
+ scrolled = false,
+ scrollParent = i.scrollParentNotHidden[ 0 ],
+ document = i.document[ 0 ];
+
+ if ( scrollParent !== document && scrollParent.tagName !== "HTML" ) {
+ if ( !o.axis || o.axis !== "x" ) {
+ if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY < o.scrollSensitivity ) {
+ scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed;
+ } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) {
+ scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed;
+ }
+ }
+
+ if ( !o.axis || o.axis !== "y" ) {
+ if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX < o.scrollSensitivity ) {
+ scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed;
+ } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) {
+ scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed;
+ }
+ }
+
+ } else {
+
+ if (!o.axis || o.axis !== "x") {
+ if (event.pageY - $(document).scrollTop() < o.scrollSensitivity) {
+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+ } else if ($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) {
+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+ }
+ }
+
+ if (!o.axis || o.axis !== "y") {
+ if (event.pageX - $(document).scrollLeft() < o.scrollSensitivity) {
+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+ } else if ($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) {
+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+ }
+ }
+
+ }
+
+ if (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(i, event);
+ }
+
+ }
+});
+
+$.ui.plugin.add("draggable", "snap", {
+ start: function( event, ui, i ) {
+
+ var o = i.options;
+
+ i.snapElements = [];
+
+ $(o.snap.constructor !== String ? ( o.snap.items || ":data(ui-draggable)" ) : o.snap).each(function() {
+ var $t = $(this),
+ $o = $t.offset();
+ if (this !== i.element[0]) {
+ i.snapElements.push({
+ item: this,
+ width: $t.outerWidth(), height: $t.outerHeight(),
+ top: $o.top, left: $o.left
+ });
+ }
+ });
+
+ },
+ drag: function( event, ui, inst ) {
+
+ var ts, bs, ls, rs, l, r, t, b, i, first,
+ o = inst.options,
+ d = o.snapTolerance,
+ x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,
+ y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;
+
+ for (i = inst.snapElements.length - 1; i >= 0; i--){
+
+ l = inst.snapElements[i].left - inst.margins.left;
+ r = l + inst.snapElements[i].width;
+ t = inst.snapElements[i].top - inst.margins.top;
+ b = t + inst.snapElements[i].height;
+
+ if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || !$.contains( inst.snapElements[ i ].item.ownerDocument, inst.snapElements[ i ].item ) ) {
+ if (inst.snapElements[i].snapping) {
+ (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
+ }
+ inst.snapElements[i].snapping = false;
+ continue;
+ }
+
+ if (o.snapMode !== "inner") {
+ ts = Math.abs(t - y2) <= d;
+ bs = Math.abs(b - y1) <= d;
+ ls = Math.abs(l - x2) <= d;
+ rs = Math.abs(r - x1) <= d;
+ if (ts) {
+ ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
+ }
+ if (bs) {
+ ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top;
+ }
+ if (ls) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
+ }
+ if (rs) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left;
+ }
+ }
+
+ first = (ts || bs || ls || rs);
+
+ if (o.snapMode !== "outer") {
+ ts = Math.abs(t - y1) <= d;
+ bs = Math.abs(b - y2) <= d;
+ ls = Math.abs(l - x1) <= d;
+ rs = Math.abs(r - x2) <= d;
+ if (ts) {
+ ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top;
+ }
+ if (bs) {
+ ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
+ }
+ if (ls) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left;
+ }
+ if (rs) {
+ ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
+ }
+ }
+
+ if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
+ }
+ inst.snapElements[i].snapping = (ts || bs || ls || rs || first);
+
+ }
+
+ }
+});
+
+$.ui.plugin.add("draggable", "stack", {
+ start: function( event, ui, instance ) {
+ var min,
+ o = instance.options,
+ group = $.makeArray($(o.stack)).sort(function(a, b) {
+ return (parseInt($(a).css("zIndex"), 10) || 0) - (parseInt($(b).css("zIndex"), 10) || 0);
+ });
+
+ if (!group.length) { return; }
+
+ min = parseInt($(group[0]).css("zIndex"), 10) || 0;
+ $(group).each(function(i) {
+ $(this).css("zIndex", min + i);
+ });
+ this.css("zIndex", (min + group.length));
+ }
+});
+
+$.ui.plugin.add("draggable", "zIndex", {
+ start: function( event, ui, instance ) {
+ var t = $( ui.helper ),
+ o = instance.options;
+
+ if (t.css("zIndex")) {
+ o._zIndex = t.css("zIndex");
+ }
+ t.css("zIndex", o.zIndex);
+ },
+ stop: function( event, ui, instance ) {
+ var o = instance.options;
+
+ if (o._zIndex) {
+ $(ui.helper).css("zIndex", o._zIndex);
+ }
+ }
+});
+
+var draggable = $.ui.draggable;
+
+
+/*!
+ * jQuery UI Droppable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/droppable/
+ */
+
+
+$.widget( "ui.droppable", {
+ version: "1.11.4",
+ widgetEventPrefix: "drop",
+ options: {
+ accept: "*",
+ activeClass: false,
+ addClasses: true,
+ greedy: false,
+ hoverClass: false,
+ scope: "default",
+ tolerance: "intersect",
+
+ // callbacks
+ activate: null,
+ deactivate: null,
+ drop: null,
+ out: null,
+ over: null
+ },
+ _create: function() {
+
+ var proportions,
+ o = this.options,
+ accept = o.accept;
+
+ this.isover = false;
+ this.isout = true;
+
+ this.accept = $.isFunction( accept ) ? accept : function( d ) {
+ return d.is( accept );
+ };
+
+ this.proportions = function( /* valueToWrite */ ) {
+ if ( arguments.length ) {
+ // Store the droppable's proportions
+ proportions = arguments[ 0 ];
+ } else {
+ // Retrieve or derive the droppable's proportions
+ return proportions ?
+ proportions :
+ proportions = {
+ width: this.element[ 0 ].offsetWidth,
+ height: this.element[ 0 ].offsetHeight
+ };
+ }
+ };
+
+ this._addToManager( o.scope );
+
+ o.addClasses && this.element.addClass( "ui-droppable" );
+
+ },
+
+ _addToManager: function( scope ) {
+ // Add the reference and positions to the manager
+ $.ui.ddmanager.droppables[ scope ] = $.ui.ddmanager.droppables[ scope ] || [];
+ $.ui.ddmanager.droppables[ scope ].push( this );
+ },
+
+ _splice: function( drop ) {
+ var i = 0;
+ for ( ; i < drop.length; i++ ) {
+ if ( drop[ i ] === this ) {
+ drop.splice( i, 1 );
+ }
+ }
+ },
+
+ _destroy: function() {
+ var drop = $.ui.ddmanager.droppables[ this.options.scope ];
+
+ this._splice( drop );
+
+ this.element.removeClass( "ui-droppable ui-droppable-disabled" );
+ },
+
+ _setOption: function( key, value ) {
+
+ if ( key === "accept" ) {
+ this.accept = $.isFunction( value ) ? value : function( d ) {
+ return d.is( value );
+ };
+ } else if ( key === "scope" ) {
+ var drop = $.ui.ddmanager.droppables[ this.options.scope ];
+
+ this._splice( drop );
+ this._addToManager( value );
+ }
+
+ this._super( key, value );
+ },
+
+ _activate: function( event ) {
+ var draggable = $.ui.ddmanager.current;
+ if ( this.options.activeClass ) {
+ this.element.addClass( this.options.activeClass );
+ }
+ if ( draggable ){
+ this._trigger( "activate", event, this.ui( draggable ) );
+ }
+ },
+
+ _deactivate: function( event ) {
+ var draggable = $.ui.ddmanager.current;
+ if ( this.options.activeClass ) {
+ this.element.removeClass( this.options.activeClass );
+ }
+ if ( draggable ){
+ this._trigger( "deactivate", event, this.ui( draggable ) );
+ }
+ },
+
+ _over: function( event ) {
+
+ var draggable = $.ui.ddmanager.current;
+
+ // Bail if draggable and droppable are same element
+ if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
+ return;
+ }
+
+ if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ if ( this.options.hoverClass ) {
+ this.element.addClass( this.options.hoverClass );
+ }
+ this._trigger( "over", event, this.ui( draggable ) );
+ }
+
+ },
+
+ _out: function( event ) {
+
+ var draggable = $.ui.ddmanager.current;
+
+ // Bail if draggable and droppable are same element
+ if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
+ return;
+ }
+
+ if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ if ( this.options.hoverClass ) {
+ this.element.removeClass( this.options.hoverClass );
+ }
+ this._trigger( "out", event, this.ui( draggable ) );
+ }
+
+ },
+
+ _drop: function( event, custom ) {
+
+ var draggable = custom || $.ui.ddmanager.current,
+ childrenIntersection = false;
+
+ // Bail if draggable and droppable are same element
+ if ( !draggable || ( draggable.currentItem || draggable.element )[ 0 ] === this.element[ 0 ] ) {
+ return false;
+ }
+
+ this.element.find( ":data(ui-droppable)" ).not( ".ui-draggable-dragging" ).each(function() {
+ var inst = $( this ).droppable( "instance" );
+ if (
+ inst.options.greedy &&
+ !inst.options.disabled &&
+ inst.options.scope === draggable.options.scope &&
+ inst.accept.call( inst.element[ 0 ], ( draggable.currentItem || draggable.element ) ) &&
+ $.ui.intersect( draggable, $.extend( inst, { offset: inst.element.offset() } ), inst.options.tolerance, event )
+ ) { childrenIntersection = true; return false; }
+ });
+ if ( childrenIntersection ) {
+ return false;
+ }
+
+ if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ if ( this.options.activeClass ) {
+ this.element.removeClass( this.options.activeClass );
+ }
+ if ( this.options.hoverClass ) {
+ this.element.removeClass( this.options.hoverClass );
+ }
+ this._trigger( "drop", event, this.ui( draggable ) );
+ return this.element;
+ }
+
+ return false;
+
+ },
+
+ ui: function( c ) {
+ return {
+ draggable: ( c.currentItem || c.element ),
+ helper: c.helper,
+ position: c.position,
+ offset: c.positionAbs
+ };
+ }
+
+});
+
+$.ui.intersect = (function() {
+ function isOverAxis( x, reference, size ) {
+ return ( x >= reference ) && ( x < ( reference + size ) );
+ }
+
+ return function( draggable, droppable, toleranceMode, event ) {
+
+ if ( !droppable.offset ) {
+ return false;
+ }
+
+ var x1 = ( draggable.positionAbs || draggable.position.absolute ).left + draggable.margins.left,
+ y1 = ( draggable.positionAbs || draggable.position.absolute ).top + draggable.margins.top,
+ x2 = x1 + draggable.helperProportions.width,
+ y2 = y1 + draggable.helperProportions.height,
+ l = droppable.offset.left,
+ t = droppable.offset.top,
+ r = l + droppable.proportions().width,
+ b = t + droppable.proportions().height;
+
+ switch ( toleranceMode ) {
+ case "fit":
+ return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );
+ case "intersect":
+ return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half
+ x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half
+ t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
+ y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
+ case "pointer":
+ return isOverAxis( event.pageY, t, droppable.proportions().height ) && isOverAxis( event.pageX, l, droppable.proportions().width );
+ case "touch":
+ return (
+ ( y1 >= t && y1 <= b ) || // Top edge touching
+ ( y2 >= t && y2 <= b ) || // Bottom edge touching
+ ( y1 < t && y2 > b ) // Surrounded vertically
+ ) && (
+ ( x1 >= l && x1 <= r ) || // Left edge touching
+ ( x2 >= l && x2 <= r ) || // Right edge touching
+ ( x1 < l && x2 > r ) // Surrounded horizontally
+ );
+ default:
+ return false;
+ }
+ };
+})();
+
+/*
+ This manager tracks offsets of draggables and droppables
+*/
+$.ui.ddmanager = {
+ current: null,
+ droppables: { "default": [] },
+ prepareOffsets: function( t, event ) {
+
+ var i, j,
+ m = $.ui.ddmanager.droppables[ t.options.scope ] || [],
+ type = event ? event.type : null, // workaround for #2317
+ list = ( t.currentItem || t.element ).find( ":data(ui-droppable)" ).addBack();
+
+ droppablesLoop: for ( i = 0; i < m.length; i++ ) {
+
+ // No disabled and non-accepted
+ if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ], ( t.currentItem || t.element ) ) ) ) {
+ continue;
+ }
+
+ // Filter out elements in the current dragged item
+ for ( j = 0; j < list.length; j++ ) {
+ if ( list[ j ] === m[ i ].element[ 0 ] ) {
+ m[ i ].proportions().height = 0;
+ continue droppablesLoop;
+ }
+ }
+
+ m[ i ].visible = m[ i ].element.css( "display" ) !== "none";
+ if ( !m[ i ].visible ) {
+ continue;
+ }
+
+ // Activate the droppable if used directly from draggables
+ if ( type === "mousedown" ) {
+ m[ i ]._activate.call( m[ i ], event );
+ }
+
+ m[ i ].offset = m[ i ].element.offset();
+ m[ i ].proportions({ width: m[ i ].element[ 0 ].offsetWidth, height: m[ i ].element[ 0 ].offsetHeight });
+
+ }
+
+ },
+ drop: function( draggable, event ) {
+
+ var dropped = false;
+ // Create a copy of the droppables in case the list changes during the drop (#9116)
+ $.each( ( $.ui.ddmanager.droppables[ draggable.options.scope ] || [] ).slice(), function() {
+
+ if ( !this.options ) {
+ return;
+ }
+ if ( !this.options.disabled && this.visible && $.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
+ dropped = this._drop.call( this, event ) || dropped;
+ }
+
+ if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ], ( draggable.currentItem || draggable.element ) ) ) {
+ this.isout = true;
+ this.isover = false;
+ this._deactivate.call( this, event );
+ }
+
+ });
+ return dropped;
+
+ },
+ dragStart: function( draggable, event ) {
+ // Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)
+ draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {
+ if ( !draggable.options.refreshPositions ) {
+ $.ui.ddmanager.prepareOffsets( draggable, event );
+ }
+ });
+ },
+ drag: function( draggable, event ) {
+
+ // If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
+ if ( draggable.options.refreshPositions ) {
+ $.ui.ddmanager.prepareOffsets( draggable, event );
+ }
+
+ // Run through all droppables and check their positions based on specific tolerance options
+ $.each( $.ui.ddmanager.droppables[ draggable.options.scope ] || [], function() {
+
+ if ( this.options.disabled || this.greedyChild || !this.visible ) {
+ return;
+ }
+
+ var parentInstance, scope, parent,
+ intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
+ c = !intersects && this.isover ? "isout" : ( intersects && !this.isover ? "isover" : null );
+ if ( !c ) {
+ return;
+ }
+
+ if ( this.options.greedy ) {
+ // find droppable parents with same scope
+ scope = this.options.scope;
+ parent = this.element.parents( ":data(ui-droppable)" ).filter(function() {
+ return $( this ).droppable( "instance" ).options.scope === scope;
+ });
+
+ if ( parent.length ) {
+ parentInstance = $( parent[ 0 ] ).droppable( "instance" );
+ parentInstance.greedyChild = ( c === "isover" );
+ }
+ }
+
+ // we just moved into a greedy child
+ if ( parentInstance && c === "isover" ) {
+ parentInstance.isover = false;
+ parentInstance.isout = true;
+ parentInstance._out.call( parentInstance, event );
+ }
+
+ this[ c ] = true;
+ this[c === "isout" ? "isover" : "isout"] = false;
+ this[c === "isover" ? "_over" : "_out"].call( this, event );
+
+ // we just moved out of a greedy child
+ if ( parentInstance && c === "isout" ) {
+ parentInstance.isout = false;
+ parentInstance.isover = true;
+ parentInstance._over.call( parentInstance, event );
+ }
+ });
+
+ },
+ dragStop: function( draggable, event ) {
+ draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
+ // Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)
+ if ( !draggable.options.refreshPositions ) {
+ $.ui.ddmanager.prepareOffsets( draggable, event );
+ }
+ }
+};
+
+var droppable = $.ui.droppable;
+
+
+/*!
+ * jQuery UI Resizable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/resizable/
+ */
+
+
+$.widget("ui.resizable", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "resize",
+ options: {
+ alsoResize: false,
+ animate: false,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ aspectRatio: false,
+ autoHide: false,
+ containment: false,
+ ghost: false,
+ grid: false,
+ handles: "e,s,se",
+ helper: false,
+ maxHeight: null,
+ maxWidth: null,
+ minHeight: 10,
+ minWidth: 10,
+ // See #7960
+ zIndex: 90,
+
+ // callbacks
+ resize: null,
+ start: null,
+ stop: null
+ },
+
+ _num: function( value ) {
+ return parseInt( value, 10 ) || 0;
+ },
+
+ _isNumber: function( value ) {
+ return !isNaN( parseInt( value, 10 ) );
+ },
+
+ _hasScroll: function( el, a ) {
+
+ if ( $( el ).css( "overflow" ) === "hidden") {
+ return false;
+ }
+
+ var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
+ has = false;
+
+ if ( el[ scroll ] > 0 ) {
+ return true;
+ }
+
+ // TODO: determine which cases actually cause this to happen
+ // if the element doesn't have the scroll set, see if it's possible to
+ // set the scroll
+ el[ scroll ] = 1;
+ has = ( el[ scroll ] > 0 );
+ el[ scroll ] = 0;
+ return has;
+ },
+
+ _create: function() {
+
+ var n, i, handle, axis, hname,
+ that = this,
+ o = this.options;
+ this.element.addClass("ui-resizable");
+
+ $.extend(this, {
+ _aspectRatio: !!(o.aspectRatio),
+ aspectRatio: o.aspectRatio,
+ originalElement: this.element,
+ _proportionallyResizeElements: [],
+ _helper: o.helper || o.ghost || o.animate ? o.helper || "ui-resizable-helper" : null
+ });
+
+ // Wrap the element if it cannot hold child nodes
+ if (this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)) {
+
+ this.element.wrap(
+ $("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({
+ position: this.element.css("position"),
+ width: this.element.outerWidth(),
+ height: this.element.outerHeight(),
+ top: this.element.css("top"),
+ left: this.element.css("left")
+ })
+ );
+
+ this.element = this.element.parent().data(
+ "ui-resizable", this.element.resizable( "instance" )
+ );
+
+ this.elementIsWrapper = true;
+
+ this.element.css({
+ marginLeft: this.originalElement.css("marginLeft"),
+ marginTop: this.originalElement.css("marginTop"),
+ marginRight: this.originalElement.css("marginRight"),
+ marginBottom: this.originalElement.css("marginBottom")
+ });
+ this.originalElement.css({
+ marginLeft: 0,
+ marginTop: 0,
+ marginRight: 0,
+ marginBottom: 0
+ });
+ // support: Safari
+ // Prevent Safari textarea resize
+ this.originalResizeStyle = this.originalElement.css("resize");
+ this.originalElement.css("resize", "none");
+
+ this._proportionallyResizeElements.push( this.originalElement.css({
+ position: "static",
+ zoom: 1,
+ display: "block"
+ }) );
+
+ // support: IE9
+ // avoid IE jump (hard set the margin)
+ this.originalElement.css({ margin: this.originalElement.css("margin") });
+
+ this._proportionallyResize();
+ }
+
+ this.handles = o.handles ||
+ ( !$(".ui-resizable-handle", this.element).length ?
+ "e,s,se" : {
+ n: ".ui-resizable-n",
+ e: ".ui-resizable-e",
+ s: ".ui-resizable-s",
+ w: ".ui-resizable-w",
+ se: ".ui-resizable-se",
+ sw: ".ui-resizable-sw",
+ ne: ".ui-resizable-ne",
+ nw: ".ui-resizable-nw"
+ } );
+
+ this._handles = $();
+ if ( this.handles.constructor === String ) {
+
+ if ( this.handles === "all") {
+ this.handles = "n,e,s,w,se,sw,ne,nw";
+ }
+
+ n = this.handles.split(",");
+ this.handles = {};
+
+ for (i = 0; i < n.length; i++) {
+
+ handle = $.trim(n[i]);
+ hname = "ui-resizable-" + handle;
+ axis = $("<div class='ui-resizable-handle " + hname + "'></div>");
+
+ axis.css({ zIndex: o.zIndex });
+
+ // TODO : What's going on here?
+ if ("se" === handle) {
+ axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se");
+ }
+
+ this.handles[handle] = ".ui-resizable-" + handle;
+ this.element.append(axis);
+ }
+
+ }
+
+ this._renderAxis = function(target) {
+
+ var i, axis, padPos, padWrapper;
+
+ target = target || this.element;
+
+ for (i in this.handles) {
+
+ if (this.handles[i].constructor === String) {
+ this.handles[i] = this.element.children( this.handles[ i ] ).first().show();
+ } else if ( this.handles[ i ].jquery || this.handles[ i ].nodeType ) {
+ this.handles[ i ] = $( this.handles[ i ] );
+ this._on( this.handles[ i ], { "mousedown": that._mouseDown });
+ }
+
+ if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)) {
+
+ axis = $(this.handles[i], this.element);
+
+ padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();
+
+ padPos = [ "padding",
+ /ne|nw|n/.test(i) ? "Top" :
+ /se|sw|s/.test(i) ? "Bottom" :
+ /^e$/.test(i) ? "Right" : "Left" ].join("");
+
+ target.css(padPos, padWrapper);
+
+ this._proportionallyResize();
+ }
+
+ this._handles = this._handles.add( this.handles[ i ] );
+ }
+ };
+
+ // TODO: make renderAxis a prototype function
+ this._renderAxis(this.element);
+
+ this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
+ this._handles.disableSelection();
+
+ this._handles.mouseover(function() {
+ if (!that.resizing) {
+ if (this.className) {
+ axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
+ }
+ that.axis = axis && axis[1] ? axis[1] : "se";
+ }
+ });
+
+ if (o.autoHide) {
+ this._handles.hide();
+ $(this.element)
+ .addClass("ui-resizable-autohide")
+ .mouseenter(function() {
+ if (o.disabled) {
+ return;
+ }
+ $(this).removeClass("ui-resizable-autohide");
+ that._handles.show();
+ })
+ .mouseleave(function() {
+ if (o.disabled) {
+ return;
+ }
+ if (!that.resizing) {
+ $(this).addClass("ui-resizable-autohide");
+ that._handles.hide();
+ }
+ });
+ }
+
+ this._mouseInit();
+ },
+
+ _destroy: function() {
+
+ this._mouseDestroy();
+
+ var wrapper,
+ _destroy = function(exp) {
+ $(exp)
+ .removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
+ .removeData("resizable")
+ .removeData("ui-resizable")
+ .unbind(".resizable")
+ .find(".ui-resizable-handle")
+ .remove();
+ };
+
+ // TODO: Unwrap at same DOM position
+ if (this.elementIsWrapper) {
+ _destroy(this.element);
+ wrapper = this.element;
+ this.originalElement.css({
+ position: wrapper.css("position"),
+ width: wrapper.outerWidth(),
+ height: wrapper.outerHeight(),
+ top: wrapper.css("top"),
+ left: wrapper.css("left")
+ }).insertAfter( wrapper );
+ wrapper.remove();
+ }
+
+ this.originalElement.css("resize", this.originalResizeStyle);
+ _destroy(this.originalElement);
+
+ return this;
+ },
+
+ _mouseCapture: function(event) {
+ var i, handle,
+ capture = false;
+
+ for (i in this.handles) {
+ handle = $(this.handles[i])[0];
+ if (handle === event.target || $.contains(handle, event.target)) {
+ capture = true;
+ }
+ }
+
+ return !this.options.disabled && capture;
+ },
+
+ _mouseStart: function(event) {
+
+ var curleft, curtop, cursor,
+ o = this.options,
+ el = this.element;
+
+ this.resizing = true;
+
+ this._renderProxy();
+
+ curleft = this._num(this.helper.css("left"));
+ curtop = this._num(this.helper.css("top"));
+
+ if (o.containment) {
+ curleft += $(o.containment).scrollLeft() || 0;
+ curtop += $(o.containment).scrollTop() || 0;
+ }
+
+ this.offset = this.helper.offset();
+ this.position = { left: curleft, top: curtop };
+
+ this.size = this._helper ? {
+ width: this.helper.width(),
+ height: this.helper.height()
+ } : {
+ width: el.width(),
+ height: el.height()
+ };
+
+ this.originalSize = this._helper ? {
+ width: el.outerWidth(),
+ height: el.outerHeight()
+ } : {
+ width: el.width(),
+ height: el.height()
+ };
+
+ this.sizeDiff = {
+ width: el.outerWidth() - el.width(),
+ height: el.outerHeight() - el.height()
+ };
+
+ this.originalPosition = { left: curleft, top: curtop };
+ this.originalMousePosition = { left: event.pageX, top: event.pageY };
+
+ this.aspectRatio = (typeof o.aspectRatio === "number") ?
+ o.aspectRatio :
+ ((this.originalSize.width / this.originalSize.height) || 1);
+
+ cursor = $(".ui-resizable-" + this.axis).css("cursor");
+ $("body").css("cursor", cursor === "auto" ? this.axis + "-resize" : cursor);
+
+ el.addClass("ui-resizable-resizing");
+ this._propagate("start", event);
+ return true;
+ },
+
+ _mouseDrag: function(event) {
+
+ var data, props,
+ smp = this.originalMousePosition,
+ a = this.axis,
+ dx = (event.pageX - smp.left) || 0,
+ dy = (event.pageY - smp.top) || 0,
+ trigger = this._change[a];
+
+ this._updatePrevProperties();
+
+ if (!trigger) {
+ return false;
+ }
+
+ data = trigger.apply(this, [ event, dx, dy ]);
+
+ this._updateVirtualBoundaries(event.shiftKey);
+ if (this._aspectRatio || event.shiftKey) {
+ data = this._updateRatio(data, event);
+ }
+
+ data = this._respectSize(data, event);
+
+ this._updateCache(data);
+
+ this._propagate("resize", event);
+
+ props = this._applyChanges();
+
+ if ( !this._helper && this._proportionallyResizeElements.length ) {
+ this._proportionallyResize();
+ }
+
+ if ( !$.isEmptyObject( props ) ) {
+ this._updatePrevProperties();
+ this._trigger( "resize", event, this.ui() );
+ this._applyChanges();
+ }
+
+ return false;
+ },
+
+ _mouseStop: function(event) {
+
+ this.resizing = false;
+ var pr, ista, soffseth, soffsetw, s, left, top,
+ o = this.options, that = this;
+
+ if (this._helper) {
+
+ pr = this._proportionallyResizeElements;
+ ista = pr.length && (/textarea/i).test(pr[0].nodeName);
+ soffseth = ista && this._hasScroll(pr[0], "left") ? 0 : that.sizeDiff.height;
+ soffsetw = ista ? 0 : that.sizeDiff.width;
+
+ s = {
+ width: (that.helper.width() - soffsetw),
+ height: (that.helper.height() - soffseth)
+ };
+ left = (parseInt(that.element.css("left"), 10) +
+ (that.position.left - that.originalPosition.left)) || null;
+ top = (parseInt(that.element.css("top"), 10) +
+ (that.position.top - that.originalPosition.top)) || null;
+
+ if (!o.animate) {
+ this.element.css($.extend(s, { top: top, left: left }));
+ }
+
+ that.helper.height(that.size.height);
+ that.helper.width(that.size.width);
+
+ if (this._helper && !o.animate) {
+ this._proportionallyResize();
+ }
+ }
+
+ $("body").css("cursor", "auto");
+
+ this.element.removeClass("ui-resizable-resizing");
+
+ this._propagate("stop", event);
+
+ if (this._helper) {
+ this.helper.remove();
+ }
+
+ return false;
+
+ },
+
+ _updatePrevProperties: function() {
+ this.prevPosition = {
+ top: this.position.top,
+ left: this.position.left
+ };
+ this.prevSize = {
+ width: this.size.width,
+ height: this.size.height
+ };
+ },
+
+ _applyChanges: function() {
+ var props = {};
+
+ if ( this.position.top !== this.prevPosition.top ) {
+ props.top = this.position.top + "px";
+ }
+ if ( this.position.left !== this.prevPosition.left ) {
+ props.left = this.position.left + "px";
+ }
+ if ( this.size.width !== this.prevSize.width ) {
+ props.width = this.size.width + "px";
+ }
+ if ( this.size.height !== this.prevSize.height ) {
+ props.height = this.size.height + "px";
+ }
+
+ this.helper.css( props );
+
+ return props;
+ },
+
+ _updateVirtualBoundaries: function(forceAspectRatio) {
+ var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
+ o = this.options;
+
+ b = {
+ minWidth: this._isNumber(o.minWidth) ? o.minWidth : 0,
+ maxWidth: this._isNumber(o.maxWidth) ? o.maxWidth : Infinity,
+ minHeight: this._isNumber(o.minHeight) ? o.minHeight : 0,
+ maxHeight: this._isNumber(o.maxHeight) ? o.maxHeight : Infinity
+ };
+
+ if (this._aspectRatio || forceAspectRatio) {
+ pMinWidth = b.minHeight * this.aspectRatio;
+ pMinHeight = b.minWidth / this.aspectRatio;
+ pMaxWidth = b.maxHeight * this.aspectRatio;
+ pMaxHeight = b.maxWidth / this.aspectRatio;
+
+ if (pMinWidth > b.minWidth) {
+ b.minWidth = pMinWidth;
+ }
+ if (pMinHeight > b.minHeight) {
+ b.minHeight = pMinHeight;
+ }
+ if (pMaxWidth < b.maxWidth) {
+ b.maxWidth = pMaxWidth;
+ }
+ if (pMaxHeight < b.maxHeight) {
+ b.maxHeight = pMaxHeight;
+ }
+ }
+ this._vBoundaries = b;
+ },
+
+ _updateCache: function(data) {
+ this.offset = this.helper.offset();
+ if (this._isNumber(data.left)) {
+ this.position.left = data.left;
+ }
+ if (this._isNumber(data.top)) {
+ this.position.top = data.top;
+ }
+ if (this._isNumber(data.height)) {
+ this.size.height = data.height;
+ }
+ if (this._isNumber(data.width)) {
+ this.size.width = data.width;
+ }
+ },
+
+ _updateRatio: function( data ) {
+
+ var cpos = this.position,
+ csize = this.size,
+ a = this.axis;
+
+ if (this._isNumber(data.height)) {
+ data.width = (data.height * this.aspectRatio);
+ } else if (this._isNumber(data.width)) {
+ data.height = (data.width / this.aspectRatio);
+ }
+
+ if (a === "sw") {
+ data.left = cpos.left + (csize.width - data.width);
+ data.top = null;
+ }
+ if (a === "nw") {
+ data.top = cpos.top + (csize.height - data.height);
+ data.left = cpos.left + (csize.width - data.width);
+ }
+
+ return data;
+ },
+
+ _respectSize: function( data ) {
+
+ var o = this._vBoundaries,
+ a = this.axis,
+ ismaxw = this._isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width),
+ ismaxh = this._isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),
+ isminw = this._isNumber(data.width) && o.minWidth && (o.minWidth > data.width),
+ isminh = this._isNumber(data.height) && o.minHeight && (o.minHeight > data.height),
+ dw = this.originalPosition.left + this.originalSize.width,
+ dh = this.position.top + this.size.height,
+ cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);
+ if (isminw) {
+ data.width = o.minWidth;
+ }
+ if (isminh) {
+ data.height = o.minHeight;
+ }
+ if (ismaxw) {
+ data.width = o.maxWidth;
+ }
+ if (ismaxh) {
+ data.height = o.maxHeight;
+ }
+
+ if (isminw && cw) {
+ data.left = dw - o.minWidth;
+ }
+ if (ismaxw && cw) {
+ data.left = dw - o.maxWidth;
+ }
+ if (isminh && ch) {
+ data.top = dh - o.minHeight;
+ }
+ if (ismaxh && ch) {
+ data.top = dh - o.maxHeight;
+ }
+
+ // Fixing jump error on top/left - bug #2330
+ if (!data.width && !data.height && !data.left && data.top) {
+ data.top = null;
+ } else if (!data.width && !data.height && !data.top && data.left) {
+ data.left = null;
+ }
+
+ return data;
+ },
+
+ _getPaddingPlusBorderDimensions: function( element ) {
+ var i = 0,
+ widths = [],
+ borders = [
+ element.css( "borderTopWidth" ),
+ element.css( "borderRightWidth" ),
+ element.css( "borderBottomWidth" ),
+ element.css( "borderLeftWidth" )
+ ],
+ paddings = [
+ element.css( "paddingTop" ),
+ element.css( "paddingRight" ),
+ element.css( "paddingBottom" ),
+ element.css( "paddingLeft" )
+ ];
+
+ for ( ; i < 4; i++ ) {
+ widths[ i ] = ( parseInt( borders[ i ], 10 ) || 0 );
+ widths[ i ] += ( parseInt( paddings[ i ], 10 ) || 0 );
+ }
+
+ return {
+ height: widths[ 0 ] + widths[ 2 ],
+ width: widths[ 1 ] + widths[ 3 ]
+ };
+ },
+
+ _proportionallyResize: function() {
+
+ if (!this._proportionallyResizeElements.length) {
+ return;
+ }
+
+ var prel,
+ i = 0,
+ element = this.helper || this.element;
+
+ for ( ; i < this._proportionallyResizeElements.length; i++) {
+
+ prel = this._proportionallyResizeElements[i];
+
+ // TODO: Seems like a bug to cache this.outerDimensions
+ // considering that we are in a loop.
+ if (!this.outerDimensions) {
+ this.outerDimensions = this._getPaddingPlusBorderDimensions( prel );
+ }
+
+ prel.css({
+ height: (element.height() - this.outerDimensions.height) || 0,
+ width: (element.width() - this.outerDimensions.width) || 0
+ });
+
+ }
+
+ },
+
+ _renderProxy: function() {
+
+ var el = this.element, o = this.options;
+ this.elementOffset = el.offset();
+
+ if (this._helper) {
+
+ this.helper = this.helper || $("<div style='overflow:hidden;'></div>");
+
+ this.helper.addClass(this._helper).css({
+ width: this.element.outerWidth() - 1,
+ height: this.element.outerHeight() - 1,
+ position: "absolute",
+ left: this.elementOffset.left + "px",
+ top: this.elementOffset.top + "px",
+ zIndex: ++o.zIndex //TODO: Don't modify option
+ });
+
+ this.helper
+ .appendTo("body")
+ .disableSelection();
+
+ } else {
+ this.helper = this.element;
+ }
+
+ },
+
+ _change: {
+ e: function(event, dx) {
+ return { width: this.originalSize.width + dx };
+ },
+ w: function(event, dx) {
+ var cs = this.originalSize, sp = this.originalPosition;
+ return { left: sp.left + dx, width: cs.width - dx };
+ },
+ n: function(event, dx, dy) {
+ var cs = this.originalSize, sp = this.originalPosition;
+ return { top: sp.top + dy, height: cs.height - dy };
+ },
+ s: function(event, dx, dy) {
+ return { height: this.originalSize.height + dy };
+ },
+ se: function(event, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments),
+ this._change.e.apply(this, [ event, dx, dy ]));
+ },
+ sw: function(event, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments),
+ this._change.w.apply(this, [ event, dx, dy ]));
+ },
+ ne: function(event, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments),
+ this._change.e.apply(this, [ event, dx, dy ]));
+ },
+ nw: function(event, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments),
+ this._change.w.apply(this, [ event, dx, dy ]));
+ }
+ },
+
+ _propagate: function(n, event) {
+ $.ui.plugin.call(this, n, [ event, this.ui() ]);
+ (n !== "resize" && this._trigger(n, event, this.ui()));
+ },
+
+ plugins: {},
+
+ ui: function() {
+ return {
+ originalElement: this.originalElement,
+ element: this.element,
+ helper: this.helper,
+ position: this.position,
+ size: this.size,
+ originalSize: this.originalSize,
+ originalPosition: this.originalPosition
+ };
+ }
+
+});
+
+/*
+ * Resizable Extensions
+ */
+
+$.ui.plugin.add("resizable", "animate", {
+
+ stop: function( event ) {
+ var that = $(this).resizable( "instance" ),
+ o = that.options,
+ pr = that._proportionallyResizeElements,
+ ista = pr.length && (/textarea/i).test(pr[0].nodeName),
+ soffseth = ista && that._hasScroll(pr[0], "left") ? 0 : that.sizeDiff.height,
+ soffsetw = ista ? 0 : that.sizeDiff.width,
+ style = { width: (that.size.width - soffsetw), height: (that.size.height - soffseth) },
+ left = (parseInt(that.element.css("left"), 10) +
+ (that.position.left - that.originalPosition.left)) || null,
+ top = (parseInt(that.element.css("top"), 10) +
+ (that.position.top - that.originalPosition.top)) || null;
+
+ that.element.animate(
+ $.extend(style, top && left ? { top: top, left: left } : {}), {
+ duration: o.animateDuration,
+ easing: o.animateEasing,
+ step: function() {
+
+ var data = {
+ width: parseInt(that.element.css("width"), 10),
+ height: parseInt(that.element.css("height"), 10),
+ top: parseInt(that.element.css("top"), 10),
+ left: parseInt(that.element.css("left"), 10)
+ };
+
+ if (pr && pr.length) {
+ $(pr[0]).css({ width: data.width, height: data.height });
+ }
+
+ // propagating resize, and updating values for each animation step
+ that._updateCache(data);
+ that._propagate("resize", event);
+
+ }
+ }
+ );
+ }
+
+});
+
+$.ui.plugin.add( "resizable", "containment", {
+
+ start: function() {
+ var element, p, co, ch, cw, width, height,
+ that = $( this ).resizable( "instance" ),
+ o = that.options,
+ el = that.element,
+ oc = o.containment,
+ ce = ( oc instanceof $ ) ? oc.get( 0 ) : ( /parent/.test( oc ) ) ? el.parent().get( 0 ) : oc;
+
+ if ( !ce ) {
+ return;
+ }
+
+ that.containerElement = $( ce );
+
+ if ( /document/.test( oc ) || oc === document ) {
+ that.containerOffset = {
+ left: 0,
+ top: 0
+ };
+ that.containerPosition = {
+ left: 0,
+ top: 0
+ };
+
+ that.parentData = {
+ element: $( document ),
+ left: 0,
+ top: 0,
+ width: $( document ).width(),
+ height: $( document ).height() || document.body.parentNode.scrollHeight
+ };
+ } else {
+ element = $( ce );
+ p = [];
+ $([ "Top", "Right", "Left", "Bottom" ]).each(function( i, name ) {
+ p[ i ] = that._num( element.css( "padding" + name ) );
+ });
+
+ that.containerOffset = element.offset();
+ that.containerPosition = element.position();
+ that.containerSize = {
+ height: ( element.innerHeight() - p[ 3 ] ),
+ width: ( element.innerWidth() - p[ 1 ] )
+ };
+
+ co = that.containerOffset;
+ ch = that.containerSize.height;
+ cw = that.containerSize.width;
+ width = ( that._hasScroll ( ce, "left" ) ? ce.scrollWidth : cw );
+ height = ( that._hasScroll ( ce ) ? ce.scrollHeight : ch ) ;
+
+ that.parentData = {
+ element: ce,
+ left: co.left,
+ top: co.top,
+ width: width,
+ height: height
+ };
+ }
+ },
+
+ resize: function( event ) {
+ var woset, hoset, isParent, isOffsetRelative,
+ that = $( this ).resizable( "instance" ),
+ o = that.options,
+ co = that.containerOffset,
+ cp = that.position,
+ pRatio = that._aspectRatio || event.shiftKey,
+ cop = {
+ top: 0,
+ left: 0
+ },
+ ce = that.containerElement,
+ continueResize = true;
+
+ if ( ce[ 0 ] !== document && ( /static/ ).test( ce.css( "position" ) ) ) {
+ cop = co;
+ }
+
+ if ( cp.left < ( that._helper ? co.left : 0 ) ) {
+ that.size.width = that.size.width +
+ ( that._helper ?
+ ( that.position.left - co.left ) :
+ ( that.position.left - cop.left ) );
+
+ if ( pRatio ) {
+ that.size.height = that.size.width / that.aspectRatio;
+ continueResize = false;
+ }
+ that.position.left = o.helper ? co.left : 0;
+ }
+
+ if ( cp.top < ( that._helper ? co.top : 0 ) ) {
+ that.size.height = that.size.height +
+ ( that._helper ?
+ ( that.position.top - co.top ) :
+ that.position.top );
+
+ if ( pRatio ) {
+ that.size.width = that.size.height * that.aspectRatio;
+ continueResize = false;
+ }
+ that.position.top = that._helper ? co.top : 0;
+ }
+
+ isParent = that.containerElement.get( 0 ) === that.element.parent().get( 0 );
+ isOffsetRelative = /relative|absolute/.test( that.containerElement.css( "position" ) );
+
+ if ( isParent && isOffsetRelative ) {
+ that.offset.left = that.parentData.left + that.position.left;
+ that.offset.top = that.parentData.top + that.position.top;
+ } else {
+ that.offset.left = that.element.offset().left;
+ that.offset.top = that.element.offset().top;
+ }
+
+ woset = Math.abs( that.sizeDiff.width +
+ (that._helper ?
+ that.offset.left - cop.left :
+ (that.offset.left - co.left)) );
+
+ hoset = Math.abs( that.sizeDiff.height +
+ (that._helper ?
+ that.offset.top - cop.top :
+ (that.offset.top - co.top)) );
+
+ if ( woset + that.size.width >= that.parentData.width ) {
+ that.size.width = that.parentData.width - woset;
+ if ( pRatio ) {
+ that.size.height = that.size.width / that.aspectRatio;
+ continueResize = false;
+ }
+ }
+
+ if ( hoset + that.size.height >= that.parentData.height ) {
+ that.size.height = that.parentData.height - hoset;
+ if ( pRatio ) {
+ that.size.width = that.size.height * that.aspectRatio;
+ continueResize = false;
+ }
+ }
+
+ if ( !continueResize ) {
+ that.position.left = that.prevPosition.left;
+ that.position.top = that.prevPosition.top;
+ that.size.width = that.prevSize.width;
+ that.size.height = that.prevSize.height;
+ }
+ },
+
+ stop: function() {
+ var that = $( this ).resizable( "instance" ),
+ o = that.options,
+ co = that.containerOffset,
+ cop = that.containerPosition,
+ ce = that.containerElement,
+ helper = $( that.helper ),
+ ho = helper.offset(),
+ w = helper.outerWidth() - that.sizeDiff.width,
+ h = helper.outerHeight() - that.sizeDiff.height;
+
+ if ( that._helper && !o.animate && ( /relative/ ).test( ce.css( "position" ) ) ) {
+ $( this ).css({
+ left: ho.left - cop.left - co.left,
+ width: w,
+ height: h
+ });
+ }
+
+ if ( that._helper && !o.animate && ( /static/ ).test( ce.css( "position" ) ) ) {
+ $( this ).css({
+ left: ho.left - cop.left - co.left,
+ width: w,
+ height: h
+ });
+ }
+ }
+});
+
+$.ui.plugin.add("resizable", "alsoResize", {
+
+ start: function() {
+ var that = $(this).resizable( "instance" ),
+ o = that.options;
+
+ $(o.alsoResize).each(function() {
+ var el = $(this);
+ el.data("ui-resizable-alsoresize", {
+ width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),
+ left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10)
+ });
+ });
+ },
+
+ resize: function(event, ui) {
+ var that = $(this).resizable( "instance" ),
+ o = that.options,
+ os = that.originalSize,
+ op = that.originalPosition,
+ delta = {
+ height: (that.size.height - os.height) || 0,
+ width: (that.size.width - os.width) || 0,
+ top: (that.position.top - op.top) || 0,
+ left: (that.position.left - op.left) || 0
+ };
+
+ $(o.alsoResize).each(function() {
+ var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {},
+ css = el.parents(ui.originalElement[0]).length ?
+ [ "width", "height" ] :
+ [ "width", "height", "top", "left" ];
+
+ $.each(css, function(i, prop) {
+ var sum = (start[prop] || 0) + (delta[prop] || 0);
+ if (sum && sum >= 0) {
+ style[prop] = sum || null;
+ }
+ });
+
+ el.css(style);
+ });
+ },
+
+ stop: function() {
+ $(this).removeData("resizable-alsoresize");
+ }
+});
+
+$.ui.plugin.add("resizable", "ghost", {
+
+ start: function() {
+
+ var that = $(this).resizable( "instance" ), o = that.options, cs = that.size;
+
+ that.ghost = that.originalElement.clone();
+ that.ghost
+ .css({
+ opacity: 0.25,
+ display: "block",
+ position: "relative",
+ height: cs.height,
+ width: cs.width,
+ margin: 0,
+ left: 0,
+ top: 0
+ })
+ .addClass("ui-resizable-ghost")
+ .addClass(typeof o.ghost === "string" ? o.ghost : "");
+
+ that.ghost.appendTo(that.helper);
+
+ },
+
+ resize: function() {
+ var that = $(this).resizable( "instance" );
+ if (that.ghost) {
+ that.ghost.css({
+ position: "relative",
+ height: that.size.height,
+ width: that.size.width
+ });
+ }
+ },
+
+ stop: function() {
+ var that = $(this).resizable( "instance" );
+ if (that.ghost && that.helper) {
+ that.helper.get(0).removeChild(that.ghost.get(0));
+ }
+ }
+
+});
+
+$.ui.plugin.add("resizable", "grid", {
+
+ resize: function() {
+ var outerDimensions,
+ that = $(this).resizable( "instance" ),
+ o = that.options,
+ cs = that.size,
+ os = that.originalSize,
+ op = that.originalPosition,
+ a = that.axis,
+ grid = typeof o.grid === "number" ? [ o.grid, o.grid ] : o.grid,
+ gridX = (grid[0] || 1),
+ gridY = (grid[1] || 1),
+ ox = Math.round((cs.width - os.width) / gridX) * gridX,
+ oy = Math.round((cs.height - os.height) / gridY) * gridY,
+ newWidth = os.width + ox,
+ newHeight = os.height + oy,
+ isMaxWidth = o.maxWidth && (o.maxWidth < newWidth),
+ isMaxHeight = o.maxHeight && (o.maxHeight < newHeight),
+ isMinWidth = o.minWidth && (o.minWidth > newWidth),
+ isMinHeight = o.minHeight && (o.minHeight > newHeight);
+
+ o.grid = grid;
+
+ if (isMinWidth) {
+ newWidth += gridX;
+ }
+ if (isMinHeight) {
+ newHeight += gridY;
+ }
+ if (isMaxWidth) {
+ newWidth -= gridX;
+ }
+ if (isMaxHeight) {
+ newHeight -= gridY;
+ }
+
+ if (/^(se|s|e)$/.test(a)) {
+ that.size.width = newWidth;
+ that.size.height = newHeight;
+ } else if (/^(ne)$/.test(a)) {
+ that.size.width = newWidth;
+ that.size.height = newHeight;
+ that.position.top = op.top - oy;
+ } else if (/^(sw)$/.test(a)) {
+ that.size.width = newWidth;
+ that.size.height = newHeight;
+ that.position.left = op.left - ox;
+ } else {
+ if ( newHeight - gridY <= 0 || newWidth - gridX <= 0) {
+ outerDimensions = that._getPaddingPlusBorderDimensions( this );
+ }
+
+ if ( newHeight - gridY > 0 ) {
+ that.size.height = newHeight;
+ that.position.top = op.top - oy;
+ } else {
+ newHeight = gridY - outerDimensions.height;
+ that.size.height = newHeight;
+ that.position.top = op.top + os.height - newHeight;
+ }
+ if ( newWidth - gridX > 0 ) {
+ that.size.width = newWidth;
+ that.position.left = op.left - ox;
+ } else {
+ newWidth = gridX - outerDimensions.width;
+ that.size.width = newWidth;
+ that.position.left = op.left + os.width - newWidth;
+ }
+ }
+ }
+
+});
+
+var resizable = $.ui.resizable;
+
+
+/*!
+ * jQuery UI Selectable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/selectable/
+ */
+
+
+var selectable = $.widget("ui.selectable", $.ui.mouse, {
+ version: "1.11.4",
+ options: {
+ appendTo: "body",
+ autoRefresh: true,
+ distance: 0,
+ filter: "*",
+ tolerance: "touch",
+
+ // callbacks
+ selected: null,
+ selecting: null,
+ start: null,
+ stop: null,
+ unselected: null,
+ unselecting: null
+ },
+ _create: function() {
+ var selectees,
+ that = this;
+
+ this.element.addClass("ui-selectable");
+
+ this.dragged = false;
+
+ // cache selectee children based on filter
+ this.refresh = function() {
+ selectees = $(that.options.filter, that.element[0]);
+ selectees.addClass("ui-selectee");
+ selectees.each(function() {
+ var $this = $(this),
+ pos = $this.offset();
+ $.data(this, "selectable-item", {
+ element: this,
+ $element: $this,
+ left: pos.left,
+ top: pos.top,
+ right: pos.left + $this.outerWidth(),
+ bottom: pos.top + $this.outerHeight(),
+ startselected: false,
+ selected: $this.hasClass("ui-selected"),
+ selecting: $this.hasClass("ui-selecting"),
+ unselecting: $this.hasClass("ui-unselecting")
+ });
+ });
+ };
+ this.refresh();
+
+ this.selectees = selectees.addClass("ui-selectee");
+
+ this._mouseInit();
+
+ this.helper = $("<div class='ui-selectable-helper'></div>");
+ },
+
+ _destroy: function() {
+ this.selectees
+ .removeClass("ui-selectee")
+ .removeData("selectable-item");
+ this.element
+ .removeClass("ui-selectable ui-selectable-disabled");
+ this._mouseDestroy();
+ },
+
+ _mouseStart: function(event) {
+ var that = this,
+ options = this.options;
+
+ this.opos = [ event.pageX, event.pageY ];
+
+ if (this.options.disabled) {
+ return;
+ }
+
+ this.selectees = $(options.filter, this.element[0]);
+
+ this._trigger("start", event);
+
+ $(options.appendTo).append(this.helper);
+ // position helper (lasso)
+ this.helper.css({
+ "left": event.pageX,
+ "top": event.pageY,
+ "width": 0,
+ "height": 0
+ });
+
+ if (options.autoRefresh) {
+ this.refresh();
+ }
+
+ this.selectees.filter(".ui-selected").each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.startselected = true;
+ if (!event.metaKey && !event.ctrlKey) {
+ selectee.$element.removeClass("ui-selected");
+ selectee.selected = false;
+ selectee.$element.addClass("ui-unselecting");
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ });
+
+ $(event.target).parents().addBack().each(function() {
+ var doSelect,
+ selectee = $.data(this, "selectable-item");
+ if (selectee) {
+ doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass("ui-selected");
+ selectee.$element
+ .removeClass(doSelect ? "ui-unselecting" : "ui-selected")
+ .addClass(doSelect ? "ui-selecting" : "ui-unselecting");
+ selectee.unselecting = !doSelect;
+ selectee.selecting = doSelect;
+ selectee.selected = doSelect;
+ // selectable (UN)SELECTING callback
+ if (doSelect) {
+ that._trigger("selecting", event, {
+ selecting: selectee.element
+ });
+ } else {
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ return false;
+ }
+ });
+
+ },
+
+ _mouseDrag: function(event) {
+
+ this.dragged = true;
+
+ if (this.options.disabled) {
+ return;
+ }
+
+ var tmp,
+ that = this,
+ options = this.options,
+ x1 = this.opos[0],
+ y1 = this.opos[1],
+ x2 = event.pageX,
+ y2 = event.pageY;
+
+ if (x1 > x2) { tmp = x2; x2 = x1; x1 = tmp; }
+ if (y1 > y2) { tmp = y2; y2 = y1; y1 = tmp; }
+ this.helper.css({ left: x1, top: y1, width: x2 - x1, height: y2 - y1 });
+
+ this.selectees.each(function() {
+ var selectee = $.data(this, "selectable-item"),
+ hit = false;
+
+ //prevent helper from being selected if appendTo: selectable
+ if (!selectee || selectee.element === that.element[0]) {
+ return;
+ }
+
+ if (options.tolerance === "touch") {
+ hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
+ } else if (options.tolerance === "fit") {
+ hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
+ }
+
+ if (hit) {
+ // SELECT
+ if (selectee.selected) {
+ selectee.$element.removeClass("ui-selected");
+ selectee.selected = false;
+ }
+ if (selectee.unselecting) {
+ selectee.$element.removeClass("ui-unselecting");
+ selectee.unselecting = false;
+ }
+ if (!selectee.selecting) {
+ selectee.$element.addClass("ui-selecting");
+ selectee.selecting = true;
+ // selectable SELECTING callback
+ that._trigger("selecting", event, {
+ selecting: selectee.element
+ });
+ }
+ } else {
+ // UNSELECT
+ if (selectee.selecting) {
+ if ((event.metaKey || event.ctrlKey) && selectee.startselected) {
+ selectee.$element.removeClass("ui-selecting");
+ selectee.selecting = false;
+ selectee.$element.addClass("ui-selected");
+ selectee.selected = true;
+ } else {
+ selectee.$element.removeClass("ui-selecting");
+ selectee.selecting = false;
+ if (selectee.startselected) {
+ selectee.$element.addClass("ui-unselecting");
+ selectee.unselecting = true;
+ }
+ // selectable UNSELECTING callback
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ }
+ if (selectee.selected) {
+ if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {
+ selectee.$element.removeClass("ui-selected");
+ selectee.selected = false;
+
+ selectee.$element.addClass("ui-unselecting");
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ that._trigger("unselecting", event, {
+ unselecting: selectee.element
+ });
+ }
+ }
+ }
+ });
+
+ return false;
+ },
+
+ _mouseStop: function(event) {
+ var that = this;
+
+ this.dragged = false;
+
+ $(".ui-unselecting", this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass("ui-unselecting");
+ selectee.unselecting = false;
+ selectee.startselected = false;
+ that._trigger("unselected", event, {
+ unselected: selectee.element
+ });
+ });
+ $(".ui-selecting", this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass("ui-selecting").addClass("ui-selected");
+ selectee.selecting = false;
+ selectee.selected = true;
+ selectee.startselected = true;
+ that._trigger("selected", event, {
+ selected: selectee.element
+ });
+ });
+ this._trigger("stop", event);
+
+ this.helper.remove();
+
+ return false;
+ }
+
+});
+
+
+/*!
+ * jQuery UI Sortable 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/sortable/
+ */
+
+
+var sortable = $.widget("ui.sortable", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "sort",
+ ready: false,
+ options: {
+ appendTo: "parent",
+ axis: false,
+ connectWith: false,
+ containment: false,
+ cursor: "auto",
+ cursorAt: false,
+ dropOnEmpty: true,
+ forcePlaceholderSize: false,
+ forceHelperSize: false,
+ grid: false,
+ handle: false,
+ helper: "original",
+ items: "> *",
+ opacity: false,
+ placeholder: false,
+ revert: false,
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ scope: "default",
+ tolerance: "intersect",
+ zIndex: 1000,
+
+ // callbacks
+ activate: null,
+ beforeStop: null,
+ change: null,
+ deactivate: null,
+ out: null,
+ over: null,
+ receive: null,
+ remove: null,
+ sort: null,
+ start: null,
+ stop: null,
+ update: null
+ },
+
+ _isOverAxis: function( x, reference, size ) {
+ return ( x >= reference ) && ( x < ( reference + size ) );
+ },
+
+ _isFloating: function( item ) {
+ return (/left|right/).test(item.css("float")) || (/inline|table-cell/).test(item.css("display"));
+ },
+
+ _create: function() {
+ this.containerCache = {};
+ this.element.addClass("ui-sortable");
+
+ //Get the items
+ this.refresh();
+
+ //Let's determine the parent's offset
+ this.offset = this.element.offset();
+
+ //Initialize mouse events for interaction
+ this._mouseInit();
+
+ this._setHandleClassName();
+
+ //We're ready to go
+ this.ready = true;
+
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+
+ if ( key === "handle" ) {
+ this._setHandleClassName();
+ }
+ },
+
+ _setHandleClassName: function() {
+ this.element.find( ".ui-sortable-handle" ).removeClass( "ui-sortable-handle" );
+ $.each( this.items, function() {
+ ( this.instance.options.handle ?
+ this.item.find( this.instance.options.handle ) : this.item )
+ .addClass( "ui-sortable-handle" );
+ });
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-sortable ui-sortable-disabled" )
+ .find( ".ui-sortable-handle" )
+ .removeClass( "ui-sortable-handle" );
+ this._mouseDestroy();
+
+ for ( var i = this.items.length - 1; i >= 0; i-- ) {
+ this.items[i].item.removeData(this.widgetName + "-item");
+ }
+
+ return this;
+ },
+
+ _mouseCapture: function(event, overrideHandle) {
+ var currentItem = null,
+ validHandle = false,
+ that = this;
+
+ if (this.reverting) {
+ return false;
+ }
+
+ if(this.options.disabled || this.options.type === "static") {
+ return false;
+ }
+
+ //We have to refresh the items data once first
+ this._refreshItems(event);
+
+ //Find out if the clicked node (or one of its parents) is a actual item in this.items
+ $(event.target).parents().each(function() {
+ if($.data(this, that.widgetName + "-item") === that) {
+ currentItem = $(this);
+ return false;
+ }
+ });
+ if($.data(event.target, that.widgetName + "-item") === that) {
+ currentItem = $(event.target);
+ }
+
+ if(!currentItem) {
+ return false;
+ }
+ if(this.options.handle && !overrideHandle) {
+ $(this.options.handle, currentItem).find("*").addBack().each(function() {
+ if(this === event.target) {
+ validHandle = true;
+ }
+ });
+ if(!validHandle) {
+ return false;
+ }
+ }
+
+ this.currentItem = currentItem;
+ this._removeCurrentsFromItems();
+ return true;
+
+ },
+
+ _mouseStart: function(event, overrideHandle, noActivation) {
+
+ var i, body,
+ o = this.options;
+
+ this.currentContainer = this;
+
+ //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture
+ this.refreshPositions();
+
+ //Create and append the visible helper
+ this.helper = this._createHelper(event);
+
+ //Cache the helper size
+ this._cacheHelperProportions();
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ //Cache the margins of the original element
+ this._cacheMargins();
+
+ //Get the next scrolling parent
+ this.scrollParent = this.helper.scrollParent();
+
+ //The element's absolute position on the page minus margins
+ this.offset = this.currentItem.offset();
+ this.offset = {
+ top: this.offset.top - this.margins.top,
+ left: this.offset.left - this.margins.left
+ };
+
+ $.extend(this.offset, {
+ click: { //Where the click happened, relative to the element
+ left: event.pageX - this.offset.left,
+ top: event.pageY - this.offset.top
+ },
+ parent: this._getParentOffset(),
+ relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper
+ });
+
+ // Only after we got the offset, we can change the helper's position to absolute
+ // TODO: Still need to figure out a way to make relative sorting possible
+ this.helper.css("position", "absolute");
+ this.cssPosition = this.helper.css("position");
+
+ //Generate the original position
+ this.originalPosition = this._generatePosition(event);
+ this.originalPageX = event.pageX;
+ this.originalPageY = event.pageY;
+
+ //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));
+
+ //Cache the former DOM position
+ this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] };
+
+ //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way
+ if(this.helper[0] !== this.currentItem[0]) {
+ this.currentItem.hide();
+ }
+
+ //Create the placeholder
+ this._createPlaceholder();
+
+ //Set a containment if given in the options
+ if(o.containment) {
+ this._setContainment();
+ }
+
+ if( o.cursor && o.cursor !== "auto" ) { // cursor option
+ body = this.document.find( "body" );
+
+ // support: IE
+ this.storedCursor = body.css( "cursor" );
+ body.css( "cursor", o.cursor );
+
+ this.storedStylesheet = $( "<style>*{ cursor: "+o.cursor+" !important; }</style>" ).appendTo( body );
+ }
+
+ if(o.opacity) { // opacity option
+ if (this.helper.css("opacity")) {
+ this._storedOpacity = this.helper.css("opacity");
+ }
+ this.helper.css("opacity", o.opacity);
+ }
+
+ if(o.zIndex) { // zIndex option
+ if (this.helper.css("zIndex")) {
+ this._storedZIndex = this.helper.css("zIndex");
+ }
+ this.helper.css("zIndex", o.zIndex);
+ }
+
+ //Prepare scrolling
+ if(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !== "HTML") {
+ this.overflowOffset = this.scrollParent.offset();
+ }
+
+ //Call callbacks
+ this._trigger("start", event, this._uiHash());
+
+ //Recache the helper size
+ if(!this._preserveHelperProportions) {
+ this._cacheHelperProportions();
+ }
+
+
+ //Post "activate" events to possible containers
+ if( !noActivation ) {
+ for ( i = this.containers.length - 1; i >= 0; i-- ) {
+ this.containers[ i ]._trigger( "activate", event, this._uiHash( this ) );
+ }
+ }
+
+ //Prepare possible droppables
+ if($.ui.ddmanager) {
+ $.ui.ddmanager.current = this;
+ }
+
+ if ($.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(this, event);
+ }
+
+ this.dragging = true;
+
+ this.helper.addClass("ui-sortable-helper");
+ this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ return true;
+
+ },
+
+ _mouseDrag: function(event) {
+ var i, item, itemElement, intersection,
+ o = this.options,
+ scrolled = false;
+
+ //Compute the helpers position
+ this.position = this._generatePosition(event);
+ this.positionAbs = this._convertPositionTo("absolute");
+
+ if (!this.lastPositionAbs) {
+ this.lastPositionAbs = this.positionAbs;
+ }
+
+ //Do scrolling
+ if(this.options.scroll) {
+ if(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !== "HTML") {
+
+ if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {
+ this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
+ } else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) {
+ this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
+ }
+
+ if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {
+ this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
+ } else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) {
+ this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
+ }
+
+ } else {
+
+ if(event.pageY - this.document.scrollTop() < o.scrollSensitivity) {
+ scrolled = this.document.scrollTop(this.document.scrollTop() - o.scrollSpeed);
+ } else if(this.window.height() - (event.pageY - this.document.scrollTop()) < o.scrollSensitivity) {
+ scrolled = this.document.scrollTop(this.document.scrollTop() + o.scrollSpeed);
+ }
+
+ if(event.pageX - this.document.scrollLeft() < o.scrollSensitivity) {
+ scrolled = this.document.scrollLeft(this.document.scrollLeft() - o.scrollSpeed);
+ } else if(this.window.width() - (event.pageX - this.document.scrollLeft()) < o.scrollSensitivity) {
+ scrolled = this.document.scrollLeft(this.document.scrollLeft() + o.scrollSpeed);
+ }
+
+ }
+
+ if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) {
+ $.ui.ddmanager.prepareOffsets(this, event);
+ }
+ }
+
+ //Regenerate the absolute position used for position checks
+ this.positionAbs = this._convertPositionTo("absolute");
+
+ //Set the helper position
+ if(!this.options.axis || this.options.axis !== "y") {
+ this.helper[0].style.left = this.position.left+"px";
+ }
+ if(!this.options.axis || this.options.axis !== "x") {
+ this.helper[0].style.top = this.position.top+"px";
+ }
+
+ //Rearrange
+ for (i = this.items.length - 1; i >= 0; i--) {
+
+ //Cache variables and intersection, continue if no intersection
+ item = this.items[i];
+ itemElement = item.item[0];
+ intersection = this._intersectsWithPointer(item);
+ if (!intersection) {
+ continue;
+ }
+
+ // Only put the placeholder inside the current Container, skip all
+ // items from other containers. This works because when moving
+ // an item from one container to another the
+ // currentContainer is switched before the placeholder is moved.
+ //
+ // Without this, moving items in "sub-sortables" can cause
+ // the placeholder to jitter between the outer and inner container.
+ if (item.instance !== this.currentContainer) {
+ continue;
+ }
+
+ // cannot intersect with itself
+ // no useless actions that have been done before
+ // no action if the item moved is the parent of the item checked
+ if (itemElement !== this.currentItem[0] &&
+ this.placeholder[intersection === 1 ? "next" : "prev"]()[0] !== itemElement &&
+ !$.contains(this.placeholder[0], itemElement) &&
+ (this.options.type === "semi-dynamic" ? !$.contains(this.element[0], itemElement) : true)
+ ) {
+
+ this.direction = intersection === 1 ? "down" : "up";
+
+ if (this.options.tolerance === "pointer" || this._intersectsWithSides(item)) {
+ this._rearrange(event, item);
+ } else {
+ break;
+ }
+
+ this._trigger("change", event, this._uiHash());
+ break;
+ }
+ }
+
+ //Post events to containers
+ this._contactContainers(event);
+
+ //Interconnect with droppables
+ if($.ui.ddmanager) {
+ $.ui.ddmanager.drag(this, event);
+ }
+
+ //Call callbacks
+ this._trigger("sort", event, this._uiHash());
+
+ this.lastPositionAbs = this.positionAbs;
+ return false;
+
+ },
+
+ _mouseStop: function(event, noPropagation) {
+
+ if(!event) {
+ return;
+ }
+
+ //If we are using droppables, inform the manager about the drop
+ if ($.ui.ddmanager && !this.options.dropBehaviour) {
+ $.ui.ddmanager.drop(this, event);
+ }
+
+ if(this.options.revert) {
+ var that = this,
+ cur = this.placeholder.offset(),
+ axis = this.options.axis,
+ animation = {};
+
+ if ( !axis || axis === "x" ) {
+ animation.left = cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollLeft);
+ }
+ if ( !axis || axis === "y" ) {
+ animation.top = cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollTop);
+ }
+ this.reverting = true;
+ $(this.helper).animate( animation, parseInt(this.options.revert, 10) || 500, function() {
+ that._clear(event);
+ });
+ } else {
+ this._clear(event, noPropagation);
+ }
+
+ return false;
+
+ },
+
+ cancel: function() {
+
+ if(this.dragging) {
+
+ this._mouseUp({ target: null });
+
+ if(this.options.helper === "original") {
+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
+ } else {
+ this.currentItem.show();
+ }
+
+ //Post deactivating events to containers
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ this.containers[i]._trigger("deactivate", null, this._uiHash(this));
+ if(this.containers[i].containerCache.over) {
+ this.containers[i]._trigger("out", null, this._uiHash(this));
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ }
+
+ if (this.placeholder) {
+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
+ if(this.placeholder[0].parentNode) {
+ this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
+ }
+ if(this.options.helper !== "original" && this.helper && this.helper[0].parentNode) {
+ this.helper.remove();
+ }
+
+ $.extend(this, {
+ helper: null,
+ dragging: false,
+ reverting: false,
+ _noFinalSort: null
+ });
+
+ if(this.domPosition.prev) {
+ $(this.domPosition.prev).after(this.currentItem);
+ } else {
+ $(this.domPosition.parent).prepend(this.currentItem);
+ }
+ }
+
+ return this;
+
+ },
+
+ serialize: function(o) {
+
+ var items = this._getItemsAsjQuery(o && o.connected),
+ str = [];
+ o = o || {};
+
+ $(items).each(function() {
+ var res = ($(o.item || this).attr(o.attribute || "id") || "").match(o.expression || (/(.+)[\-=_](.+)/));
+ if (res) {
+ str.push((o.key || res[1]+"[]")+"="+(o.key && o.expression ? res[1] : res[2]));
+ }
+ });
+
+ if(!str.length && o.key) {
+ str.push(o.key + "=");
+ }
+
+ return str.join("&");
+
+ },
+
+ toArray: function(o) {
+
+ var items = this._getItemsAsjQuery(o && o.connected),
+ ret = [];
+
+ o = o || {};
+
+ items.each(function() { ret.push($(o.item || this).attr(o.attribute || "id") || ""); });
+ return ret;
+
+ },
+
+ /* Be careful with the following core functions */
+ _intersectsWith: function(item) {
+
+ var x1 = this.positionAbs.left,
+ x2 = x1 + this.helperProportions.width,
+ y1 = this.positionAbs.top,
+ y2 = y1 + this.helperProportions.height,
+ l = item.left,
+ r = l + item.width,
+ t = item.top,
+ b = t + item.height,
+ dyClick = this.offset.click.top,
+ dxClick = this.offset.click.left,
+ isOverElementHeight = ( this.options.axis === "x" ) || ( ( y1 + dyClick ) > t && ( y1 + dyClick ) < b ),
+ isOverElementWidth = ( this.options.axis === "y" ) || ( ( x1 + dxClick ) > l && ( x1 + dxClick ) < r ),
+ isOverElement = isOverElementHeight && isOverElementWidth;
+
+ if ( this.options.tolerance === "pointer" ||
+ this.options.forcePointerForContainers ||
+ (this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
+ ) {
+ return isOverElement;
+ } else {
+
+ return (l < x1 + (this.helperProportions.width / 2) && // Right Half
+ x2 - (this.helperProportions.width / 2) < r && // Left Half
+ t < y1 + (this.helperProportions.height / 2) && // Bottom Half
+ y2 - (this.helperProportions.height / 2) < b ); // Top Half
+
+ }
+ },
+
+ _intersectsWithPointer: function(item) {
+
+ var isOverElementHeight = (this.options.axis === "x") || this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
+ isOverElementWidth = (this.options.axis === "y") || this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
+ isOverElement = isOverElementHeight && isOverElementWidth,
+ verticalDirection = this._getDragVerticalDirection(),
+ horizontalDirection = this._getDragHorizontalDirection();
+
+ if (!isOverElement) {
+ return false;
+ }
+
+ return this.floating ?
+ ( ((horizontalDirection && horizontalDirection === "right") || verticalDirection === "down") ? 2 : 1 )
+ : ( verticalDirection && (verticalDirection === "down" ? 2 : 1) );
+
+ },
+
+ _intersectsWithSides: function(item) {
+
+ var isOverBottomHalf = this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),
+ isOverRightHalf = this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
+ verticalDirection = this._getDragVerticalDirection(),
+ horizontalDirection = this._getDragHorizontalDirection();
+
+ if (this.floating && horizontalDirection) {
+ return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
+ } else {
+ return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
+ }
+
+ },
+
+ _getDragVerticalDirection: function() {
+ var delta = this.positionAbs.top - this.lastPositionAbs.top;
+ return delta !== 0 && (delta > 0 ? "down" : "up");
+ },
+
+ _getDragHorizontalDirection: function() {
+ var delta = this.positionAbs.left - this.lastPositionAbs.left;
+ return delta !== 0 && (delta > 0 ? "right" : "left");
+ },
+
+ refresh: function(event) {
+ this._refreshItems(event);
+ this._setHandleClassName();
+ this.refreshPositions();
+ return this;
+ },
+
+ _connectWith: function() {
+ var options = this.options;
+ return options.connectWith.constructor === String ? [options.connectWith] : options.connectWith;
+ },
+
+ _getItemsAsjQuery: function(connected) {
+
+ var i, j, cur, inst,
+ items = [],
+ queries = [],
+ connectWith = this._connectWith();
+
+ if(connectWith && connected) {
+ for (i = connectWith.length - 1; i >= 0; i--){
+ cur = $(connectWith[i], this.document[0]);
+ for ( j = cur.length - 1; j >= 0; j--){
+ inst = $.data(cur[j], this.widgetFullName);
+ if(inst && inst !== this && !inst.options.disabled) {
+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), inst]);
+ }
+ }
+ }
+ }
+
+ queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]);
+
+ function addItems() {
+ items.push( this );
+ }
+ for (i = queries.length - 1; i >= 0; i--){
+ queries[i][0].each( addItems );
+ }
+
+ return $(items);
+
+ },
+
+ _removeCurrentsFromItems: function() {
+
+ var list = this.currentItem.find(":data(" + this.widgetName + "-item)");
+
+ this.items = $.grep(this.items, function (item) {
+ for (var j=0; j < list.length; j++) {
+ if(list[j] === item.item[0]) {
+ return false;
+ }
+ }
+ return true;
+ });
+
+ },
+
+ _refreshItems: function(event) {
+
+ this.items = [];
+ this.containers = [this];
+
+ var i, j, cur, inst, targetData, _queries, item, queriesLength,
+ items = this.items,
+ queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]],
+ connectWith = this._connectWith();
+
+ if(connectWith && this.ready) { //Shouldn't be run the first time through due to massive slow-down
+ for (i = connectWith.length - 1; i >= 0; i--){
+ cur = $(connectWith[i], this.document[0]);
+ for (j = cur.length - 1; j >= 0; j--){
+ inst = $.data(cur[j], this.widgetFullName);
+ if(inst && inst !== this && !inst.options.disabled) {
+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]);
+ this.containers.push(inst);
+ }
+ }
+ }
+ }
+
+ for (i = queries.length - 1; i >= 0; i--) {
+ targetData = queries[i][1];
+ _queries = queries[i][0];
+
+ for (j=0, queriesLength = _queries.length; j < queriesLength; j++) {
+ item = $(_queries[j]);
+
+ item.data(this.widgetName + "-item", targetData); // Data for target checking (mouse manager)
+
+ items.push({
+ item: item,
+ instance: targetData,
+ width: 0, height: 0,
+ left: 0, top: 0
+ });
+ }
+ }
+
+ },
+
+ refreshPositions: function(fast) {
+
+ // Determine whether items are being displayed horizontally
+ this.floating = this.items.length ?
+ this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
+ false;
+
+ //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
+ if(this.offsetParent && this.helper) {
+ this.offset.parent = this._getParentOffset();
+ }
+
+ var i, item, t, p;
+
+ for (i = this.items.length - 1; i >= 0; i--){
+ item = this.items[i];
+
+ //We ignore calculating positions of all connected containers when we're not over them
+ if(item.instance !== this.currentContainer && this.currentContainer && item.item[0] !== this.currentItem[0]) {
+ continue;
+ }
+
+ t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
+
+ if (!fast) {
+ item.width = t.outerWidth();
+ item.height = t.outerHeight();
+ }
+
+ p = t.offset();
+ item.left = p.left;
+ item.top = p.top;
+ }
+
+ if(this.options.custom && this.options.custom.refreshContainers) {
+ this.options.custom.refreshContainers.call(this);
+ } else {
+ for (i = this.containers.length - 1; i >= 0; i--){
+ p = this.containers[i].element.offset();
+ this.containers[i].containerCache.left = p.left;
+ this.containers[i].containerCache.top = p.top;
+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
+ this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
+ }
+ }
+
+ return this;
+ },
+
+ _createPlaceholder: function(that) {
+ that = that || this;
+ var className,
+ o = that.options;
+
+ if(!o.placeholder || o.placeholder.constructor === String) {
+ className = o.placeholder;
+ o.placeholder = {
+ element: function() {
+
+ var nodeName = that.currentItem[0].nodeName.toLowerCase(),
+ element = $( "<" + nodeName + ">", that.document[0] )
+ .addClass(className || that.currentItem[0].className+" ui-sortable-placeholder")
+ .removeClass("ui-sortable-helper");
+
+ if ( nodeName === "tbody" ) {
+ that._createTrPlaceholder(
+ that.currentItem.find( "tr" ).eq( 0 ),
+ $( "<tr>", that.document[ 0 ] ).appendTo( element )
+ );
+ } else if ( nodeName === "tr" ) {
+ that._createTrPlaceholder( that.currentItem, element );
+ } else if ( nodeName === "img" ) {
+ element.attr( "src", that.currentItem.attr( "src" ) );
+ }
+
+ if ( !className ) {
+ element.css( "visibility", "hidden" );
+ }
+
+ return element;
+ },
+ update: function(container, p) {
+
+ // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that
+ // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified
+ if(className && !o.forcePlaceholderSize) {
+ return;
+ }
+
+ //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item
+ if(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css("paddingTop")||0, 10) - parseInt(that.currentItem.css("paddingBottom")||0, 10)); }
+ if(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css("paddingLeft")||0, 10) - parseInt(that.currentItem.css("paddingRight")||0, 10)); }
+ }
+ };
+ }
+
+ //Create the placeholder
+ that.placeholder = $(o.placeholder.element.call(that.element, that.currentItem));
+
+ //Append it after the actual current item
+ that.currentItem.after(that.placeholder);
+
+ //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317)
+ o.placeholder.update(that, that.placeholder);
+
+ },
+
+ _createTrPlaceholder: function( sourceTr, targetTr ) {
+ var that = this;
+
+ sourceTr.children().each(function() {
+ $( "<td> </td>", that.document[ 0 ] )
+ .attr( "colspan", $( this ).attr( "colspan" ) || 1 )
+ .appendTo( targetTr );
+ });
+ },
+
+ _contactContainers: function(event) {
+ var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
+ innermostContainer = null,
+ innermostIndex = null;
+
+ // get innermost container that intersects with item
+ for (i = this.containers.length - 1; i >= 0; i--) {
+
+ // never consider a container that's located within the item itself
+ if($.contains(this.currentItem[0], this.containers[i].element[0])) {
+ continue;
+ }
+
+ if(this._intersectsWith(this.containers[i].containerCache)) {
+
+ // if we've already found a container and it's more "inner" than this, then continue
+ if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0])) {
+ continue;
+ }
+
+ innermostContainer = this.containers[i];
+ innermostIndex = i;
+
+ } else {
+ // container doesn't intersect. trigger "out" event if necessary
+ if(this.containers[i].containerCache.over) {
+ this.containers[i]._trigger("out", event, this._uiHash(this));
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ }
+
+ // if no intersecting containers found, return
+ if(!innermostContainer) {
+ return;
+ }
+
+ // move the item into the container if it's not there already
+ if(this.containers.length === 1) {
+ if (!this.containers[innermostIndex].containerCache.over) {
+ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
+ this.containers[innermostIndex].containerCache.over = 1;
+ }
+ } else {
+
+ //When entering a new container, we will find the item with the least distance and append our item near it
+ dist = 10000;
+ itemWithLeastDistance = null;
+ floating = innermostContainer.floating || this._isFloating(this.currentItem);
+ posProperty = floating ? "left" : "top";
+ sizeProperty = floating ? "width" : "height";
+ axis = floating ? "clientX" : "clientY";
+
+ for (j = this.items.length - 1; j >= 0; j--) {
+ if(!$.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) {
+ continue;
+ }
+ if(this.items[j].item[0] === this.currentItem[0]) {
+ continue;
+ }
+
+ cur = this.items[j].item.offset()[posProperty];
+ nearBottom = false;
+ if ( event[ axis ] - cur > this.items[ j ][ sizeProperty ] / 2 ) {
+ nearBottom = true;
+ }
+
+ if ( Math.abs( event[ axis ] - cur ) < dist ) {
+ dist = Math.abs( event[ axis ] - cur );
+ itemWithLeastDistance = this.items[ j ];
+ this.direction = nearBottom ? "up": "down";
+ }
+ }
+
+ //Check if dropOnEmpty is enabled
+ if(!itemWithLeastDistance && !this.options.dropOnEmpty) {
+ return;
+ }
+
+ if(this.currentContainer === this.containers[innermostIndex]) {
+ if ( !this.currentContainer.containerCache.over ) {
+ this.containers[ innermostIndex ]._trigger( "over", event, this._uiHash() );
+ this.currentContainer.containerCache.over = 1;
+ }
+ return;
+ }
+
+ itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);
+ this._trigger("change", event, this._uiHash());
+ this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));
+ this.currentContainer = this.containers[innermostIndex];
+
+ //Update the placeholder
+ this.options.placeholder.update(this.currentContainer, this.placeholder);
+
+ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
+ this.containers[innermostIndex].containerCache.over = 1;
+ }
+
+
+ },
+
+ _createHelper: function(event) {
+
+ var o = this.options,
+ helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper === "clone" ? this.currentItem.clone() : this.currentItem);
+
+ //Add the helper to the DOM if that didn't happen already
+ if(!helper.parents("body").length) {
+ $(o.appendTo !== "parent" ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]);
+ }
+
+ if(helper[0] === this.currentItem[0]) {
+ this._storedCSS = { width: this.currentItem[0].style.width, height: this.currentItem[0].style.height, position: this.currentItem.css("position"), top: this.currentItem.css("top"), left: this.currentItem.css("left") };
+ }
+
+ if(!helper[0].style.width || o.forceHelperSize) {
+ helper.width(this.currentItem.width());
+ }
+ if(!helper[0].style.height || o.forceHelperSize) {
+ helper.height(this.currentItem.height());
+ }
+
+ return helper;
+
+ },
+
+ _adjustOffsetFromHelper: function(obj) {
+ if (typeof obj === "string") {
+ obj = obj.split(" ");
+ }
+ if ($.isArray(obj)) {
+ obj = {left: +obj[0], top: +obj[1] || 0};
+ }
+ if ("left" in obj) {
+ this.offset.click.left = obj.left + this.margins.left;
+ }
+ if ("right" in obj) {
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
+ }
+ if ("top" in obj) {
+ this.offset.click.top = obj.top + this.margins.top;
+ }
+ if ("bottom" in obj) {
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
+ }
+ },
+
+ _getParentOffset: function() {
+
+
+ //Get the offsetParent and cache its position
+ this.offsetParent = this.helper.offsetParent();
+ var po = this.offsetParent.offset();
+
+ // This is a special case where we need to modify a offset calculated on start, since the following happened:
+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that
+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag
+ if(this.cssPosition === "absolute" && this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) {
+ po.left += this.scrollParent.scrollLeft();
+ po.top += this.scrollParent.scrollTop();
+ }
+
+ // This needs to be actually done for all browsers, since pageX/pageY includes this information
+ // with an ugly IE fix
+ if( this.offsetParent[0] === this.document[0].body || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === "html" && $.ui.ie)) {
+ po = { top: 0, left: 0 };
+ }
+
+ return {
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+ };
+
+ },
+
+ _getRelativeOffset: function() {
+
+ if(this.cssPosition === "relative") {
+ var p = this.currentItem.position();
+ return {
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
+ };
+ } else {
+ return { top: 0, left: 0 };
+ }
+
+ },
+
+ _cacheMargins: function() {
+ this.margins = {
+ left: (parseInt(this.currentItem.css("marginLeft"),10) || 0),
+ top: (parseInt(this.currentItem.css("marginTop"),10) || 0)
+ };
+ },
+
+ _cacheHelperProportions: function() {
+ this.helperProportions = {
+ width: this.helper.outerWidth(),
+ height: this.helper.outerHeight()
+ };
+ },
+
+ _setContainment: function() {
+
+ var ce, co, over,
+ o = this.options;
+ if(o.containment === "parent") {
+ o.containment = this.helper[0].parentNode;
+ }
+ if(o.containment === "document" || o.containment === "window") {
+ this.containment = [
+ 0 - this.offset.relative.left - this.offset.parent.left,
+ 0 - this.offset.relative.top - this.offset.parent.top,
+ o.containment === "document" ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left,
+ (o.containment === "document" ? this.document.width() : this.window.height() || this.document[0].body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top
+ ];
+ }
+
+ if(!(/^(document|window|parent)$/).test(o.containment)) {
+ ce = $(o.containment)[0];
+ co = $(o.containment).offset();
+ over = ($(ce).css("overflow") !== "hidden");
+
+ this.containment = [
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top,
+ co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left,
+ co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top
+ ];
+ }
+
+ },
+
+ _convertPositionTo: function(d, pos) {
+
+ if(!pos) {
+ pos = this.position;
+ }
+ var mod = d === "absolute" ? 1 : -1,
+ scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent,
+ scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
+
+ return {
+ top: (
+ pos.top + // The absolute mouse position
+ this.offset.relative.top * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
+ ),
+ left: (
+ pos.left + // The absolute mouse position
+ this.offset.relative.left * mod + // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left * mod - // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
+ )
+ };
+
+ },
+
+ _generatePosition: function(event) {
+
+ var top, left,
+ o = this.options,
+ pageX = event.pageX,
+ pageY = event.pageY,
+ scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
+
+ // This is another very weird special case that only happens for relative elements:
+ // 1. If the css position is relative
+ // 2. and the scroll parent is the document or similar to the offset parent
+ // we have to refresh the relative offset during the scroll so there are no jumps
+ if(this.cssPosition === "relative" && !(this.scrollParent[0] !== this.document[0] && this.scrollParent[0] !== this.offsetParent[0])) {
+ this.offset.relative = this._getRelativeOffset();
+ }
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+
+ if(this.originalPosition) { //If we are not dragging yet, we won't check for options
+
+ if(this.containment) {
+ if(event.pageX - this.offset.click.left < this.containment[0]) {
+ pageX = this.containment[0] + this.offset.click.left;
+ }
+ if(event.pageY - this.offset.click.top < this.containment[1]) {
+ pageY = this.containment[1] + this.offset.click.top;
+ }
+ if(event.pageX - this.offset.click.left > this.containment[2]) {
+ pageX = this.containment[2] + this.offset.click.left;
+ }
+ if(event.pageY - this.offset.click.top > this.containment[3]) {
+ pageY = this.containment[3] + this.offset.click.top;
+ }
+ }
+
+ if(o.grid) {
+ top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];
+ pageY = this.containment ? ( (top - this.offset.click.top >= this.containment[1] && top - this.offset.click.top <= this.containment[3]) ? top : ((top - this.offset.click.top >= this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];
+ pageX = this.containment ? ( (left - this.offset.click.left >= this.containment[0] && left - this.offset.click.left <= this.containment[2]) ? left : ((left - this.offset.click.left >= this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ }
+
+ return {
+ top: (
+ pageY - // The absolute mouse position
+ this.offset.click.top - // Click offset (relative to the element)
+ this.offset.relative.top - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.top + // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))
+ ),
+ left: (
+ pageX - // The absolute mouse position
+ this.offset.click.left - // Click offset (relative to the element)
+ this.offset.relative.left - // Only for relative positioned nodes: Relative offset from element to offset parent
+ this.offset.parent.left + // The offsetParent's offset without borders (offset + border)
+ ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))
+ )
+ };
+
+ },
+
+ _rearrange: function(event, i, a, hardRefresh) {
+
+ a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction === "down" ? i.item[0] : i.item[0].nextSibling));
+
+ //Various things done here to improve the performance:
+ // 1. we create a setTimeout, that calls refreshPositions
+ // 2. on the instance, we have a counter variable, that get's higher after every append
+ // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same
+ // 4. this lets only the last addition to the timeout stack through
+ this.counter = this.counter ? ++this.counter : 1;
+ var counter = this.counter;
+
+ this._delay(function() {
+ if(counter === this.counter) {
+ this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove
+ }
+ });
+
+ },
+
+ _clear: function(event, noPropagation) {
+
+ this.reverting = false;
+ // We delay all events that have to be triggered to after the point where the placeholder has been removed and
+ // everything else normalized again
+ var i,
+ delayedTriggers = [];
+
+ // We first have to update the dom position of the actual currentItem
+ // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)
+ if(!this._noFinalSort && this.currentItem.parent().length) {
+ this.placeholder.before(this.currentItem);
+ }
+ this._noFinalSort = null;
+
+ if(this.helper[0] === this.currentItem[0]) {
+ for(i in this._storedCSS) {
+ if(this._storedCSS[i] === "auto" || this._storedCSS[i] === "static") {
+ this._storedCSS[i] = "";
+ }
+ }
+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
+ } else {
+ this.currentItem.show();
+ }
+
+ if(this.fromOutside && !noPropagation) {
+ delayedTriggers.push(function(event) { this._trigger("receive", event, this._uiHash(this.fromOutside)); });
+ }
+ if((this.fromOutside || this.domPosition.prev !== this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent !== this.currentItem.parent()[0]) && !noPropagation) {
+ delayedTriggers.push(function(event) { this._trigger("update", event, this._uiHash()); }); //Trigger update callback if the DOM position has changed
+ }
+
+ // Check if the items Container has Changed and trigger appropriate
+ // events.
+ if (this !== this.currentContainer) {
+ if(!noPropagation) {
+ delayedTriggers.push(function(event) { this._trigger("remove", event, this._uiHash()); });
+ delayedTriggers.push((function(c) { return function(event) { c._trigger("receive", event, this._uiHash(this)); }; }).call(this, this.currentContainer));
+ delayedTriggers.push((function(c) { return function(event) { c._trigger("update", event, this._uiHash(this)); }; }).call(this, this.currentContainer));
+ }
+ }
+
+
+ //Post events to containers
+ function delayEvent( type, instance, container ) {
+ return function( event ) {
+ container._trigger( type, event, instance._uiHash( instance ) );
+ };
+ }
+ for (i = this.containers.length - 1; i >= 0; i--){
+ if (!noPropagation) {
+ delayedTriggers.push( delayEvent( "deactivate", this, this.containers[ i ] ) );
+ }
+ if(this.containers[i].containerCache.over) {
+ delayedTriggers.push( delayEvent( "out", this, this.containers[ i ] ) );
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ //Do what was originally in plugins
+ if ( this.storedCursor ) {
+ this.document.find( "body" ).css( "cursor", this.storedCursor );
+ this.storedStylesheet.remove();
+ }
+ if(this._storedOpacity) {
+ this.helper.css("opacity", this._storedOpacity);
+ }
+ if(this._storedZIndex) {
+ this.helper.css("zIndex", this._storedZIndex === "auto" ? "" : this._storedZIndex);
+ }
+
+ this.dragging = false;
+
+ if(!noPropagation) {
+ this._trigger("beforeStop", event, this._uiHash());
+ }
+
+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
+ this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
+
+ if ( !this.cancelHelperRemoval ) {
+ if ( this.helper[ 0 ] !== this.currentItem[ 0 ] ) {
+ this.helper.remove();
+ }
+ this.helper = null;
+ }
+
+ if(!noPropagation) {
+ for (i=0; i < delayedTriggers.length; i++) {
+ delayedTriggers[i].call(this, event);
+ } //Trigger all delayed events
+ this._trigger("stop", event, this._uiHash());
+ }
+
+ this.fromOutside = false;
+ return !this.cancelHelperRemoval;
+
+ },
+
+ _trigger: function() {
+ if ($.Widget.prototype._trigger.apply(this, arguments) === false) {
+ this.cancel();
+ }
+ },
+
+ _uiHash: function(_inst) {
+ var inst = _inst || this;
+ return {
+ helper: inst.helper,
+ placeholder: inst.placeholder || $([]),
+ position: inst.position,
+ originalPosition: inst.originalPosition,
+ offset: inst.positionAbs,
+ item: inst.currentItem,
+ sender: _inst ? _inst.element : null
+ };
+ }
+
+});
+
+
+/*!
+ * jQuery UI Accordion 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/accordion/
+ */
+
+
+var accordion = $.widget( "ui.accordion", {
+ version: "1.11.4",
+ options: {
+ active: 0,
+ animate: {},
+ collapsible: false,
+ event: "click",
+ header: "> li > :first-child,> :not(li):even",
+ heightStyle: "auto",
+ icons: {
+ activeHeader: "ui-icon-triangle-1-s",
+ header: "ui-icon-triangle-1-e"
+ },
+
+ // callbacks
+ activate: null,
+ beforeActivate: null
+ },
+
+ hideProps: {
+ borderTopWidth: "hide",
+ borderBottomWidth: "hide",
+ paddingTop: "hide",
+ paddingBottom: "hide",
+ height: "hide"
+ },
+
+ showProps: {
+ borderTopWidth: "show",
+ borderBottomWidth: "show",
+ paddingTop: "show",
+ paddingBottom: "show",
+ height: "show"
+ },
+
+ _create: function() {
+ var options = this.options;
+ this.prevShow = this.prevHide = $();
+ this.element.addClass( "ui-accordion ui-widget ui-helper-reset" )
+ // ARIA
+ .attr( "role", "tablist" );
+
+ // don't allow collapsible: false and active: false / null
+ if ( !options.collapsible && (options.active === false || options.active == null) ) {
+ options.active = 0;
+ }
+
+ this._processPanels();
+ // handle negative values
+ if ( options.active < 0 ) {
+ options.active += this.headers.length;
+ }
+ this._refresh();
+ },
+
+ _getCreateEventData: function() {
+ return {
+ header: this.active,
+ panel: !this.active.length ? $() : this.active.next()
+ };
+ },
+
+ _createIcons: function() {
+ var icons = this.options.icons;
+ if ( icons ) {
+ $( "<span>" )
+ .addClass( "ui-accordion-header-icon ui-icon " + icons.header )
+ .prependTo( this.headers );
+ this.active.children( ".ui-accordion-header-icon" )
+ .removeClass( icons.header )
+ .addClass( icons.activeHeader );
+ this.headers.addClass( "ui-accordion-icons" );
+ }
+ },
+
+ _destroyIcons: function() {
+ this.headers
+ .removeClass( "ui-accordion-icons" )
+ .children( ".ui-accordion-header-icon" )
+ .remove();
+ },
+
+ _destroy: function() {
+ var contents;
+
+ // clean up main element
+ this.element
+ .removeClass( "ui-accordion ui-widget ui-helper-reset" )
+ .removeAttr( "role" );
+
+ // clean up headers
+ this.headers
+ .removeClass( "ui-accordion-header ui-accordion-header-active ui-state-default " +
+ "ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-expanded" )
+ .removeAttr( "aria-selected" )
+ .removeAttr( "aria-controls" )
+ .removeAttr( "tabIndex" )
+ .removeUniqueId();
+
+ this._destroyIcons();
+
+ // clean up content panels
+ contents = this.headers.next()
+ .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom " +
+ "ui-accordion-content ui-accordion-content-active ui-state-disabled" )
+ .css( "display", "" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-labelledby" )
+ .removeUniqueId();
+
+ if ( this.options.heightStyle !== "content" ) {
+ contents.css( "height", "" );
+ }
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "active" ) {
+ // _activate() will handle invalid values and update this.options
+ this._activate( value );
+ return;
+ }
+
+ if ( key === "event" ) {
+ if ( this.options.event ) {
+ this._off( this.headers, this.options.event );
+ }
+ this._setupEvents( value );
+ }
+
+ this._super( key, value );
+
+ // setting collapsible: false while collapsed; open first panel
+ if ( key === "collapsible" && !value && this.options.active === false ) {
+ this._activate( 0 );
+ }
+
+ if ( key === "icons" ) {
+ this._destroyIcons();
+ if ( value ) {
+ this._createIcons();
+ }
+ }
+
+ // #5332 - opacity doesn't cascade to positioned elements in IE
+ // so we need to add the disabled class to the headers and panels
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ this.headers.add( this.headers.next() )
+ .toggleClass( "ui-state-disabled", !!value );
+ }
+ },
+
+ _keydown: function( event ) {
+ if ( event.altKey || event.ctrlKey ) {
+ return;
+ }
+
+ var keyCode = $.ui.keyCode,
+ length = this.headers.length,
+ currentIndex = this.headers.index( event.target ),
+ toFocus = false;
+
+ switch ( event.keyCode ) {
+ case keyCode.RIGHT:
+ case keyCode.DOWN:
+ toFocus = this.headers[ ( currentIndex + 1 ) % length ];
+ break;
+ case keyCode.LEFT:
+ case keyCode.UP:
+ toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
+ break;
+ case keyCode.SPACE:
+ case keyCode.ENTER:
+ this._eventHandler( event );
+ break;
+ case keyCode.HOME:
+ toFocus = this.headers[ 0 ];
+ break;
+ case keyCode.END:
+ toFocus = this.headers[ length - 1 ];
+ break;
+ }
+
+ if ( toFocus ) {
+ $( event.target ).attr( "tabIndex", -1 );
+ $( toFocus ).attr( "tabIndex", 0 );
+ toFocus.focus();
+ event.preventDefault();
+ }
+ },
+
+ _panelKeyDown: function( event ) {
+ if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
+ $( event.currentTarget ).prev().focus();
+ }
+ },
+
+ refresh: function() {
+ var options = this.options;
+ this._processPanels();
+
+ // was collapsed or no panel
+ if ( ( options.active === false && options.collapsible === true ) || !this.headers.length ) {
+ options.active = false;
+ this.active = $();
+ // active false only when collapsible is true
+ } else if ( options.active === false ) {
+ this._activate( 0 );
+ // was active, but active panel is gone
+ } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
+ // all remaining panel are disabled
+ if ( this.headers.length === this.headers.find(".ui-state-disabled").length ) {
+ options.active = false;
+ this.active = $();
+ // activate previous panel
+ } else {
+ this._activate( Math.max( 0, options.active - 1 ) );
+ }
+ // was active, active panel still exists
+ } else {
+ // make sure active index is correct
+ options.active = this.headers.index( this.active );
+ }
+
+ this._destroyIcons();
+
+ this._refresh();
+ },
+
+ _processPanels: function() {
+ var prevHeaders = this.headers,
+ prevPanels = this.panels;
+
+ this.headers = this.element.find( this.options.header )
+ .addClass( "ui-accordion-header ui-state-default ui-corner-all" );
+
+ this.panels = this.headers.next()
+ .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" )
+ .filter( ":not(.ui-accordion-content-active)" )
+ .hide();
+
+ // Avoid memory leaks (#10056)
+ if ( prevPanels ) {
+ this._off( prevHeaders.not( this.headers ) );
+ this._off( prevPanels.not( this.panels ) );
+ }
+ },
+
+ _refresh: function() {
+ var maxHeight,
+ options = this.options,
+ heightStyle = options.heightStyle,
+ parent = this.element.parent();
+
+ this.active = this._findActive( options.active )
+ .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" )
+ .removeClass( "ui-corner-all" );
+ this.active.next()
+ .addClass( "ui-accordion-content-active" )
+ .show();
+
+ this.headers
+ .attr( "role", "tab" )
+ .each(function() {
+ var header = $( this ),
+ headerId = header.uniqueId().attr( "id" ),
+ panel = header.next(),
+ panelId = panel.uniqueId().attr( "id" );
+ header.attr( "aria-controls", panelId );
+ panel.attr( "aria-labelledby", headerId );
+ })
+ .next()
+ .attr( "role", "tabpanel" );
+
+ this.headers
+ .not( this.active )
+ .attr({
+ "aria-selected": "false",
+ "aria-expanded": "false",
+ tabIndex: -1
+ })
+ .next()
+ .attr({
+ "aria-hidden": "true"
+ })
+ .hide();
+
+ // make sure at least one header is in the tab order
+ if ( !this.active.length ) {
+ this.headers.eq( 0 ).attr( "tabIndex", 0 );
+ } else {
+ this.active.attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ })
+ .next()
+ .attr({
+ "aria-hidden": "false"
+ });
+ }
+
+ this._createIcons();
+
+ this._setupEvents( options.event );
+
+ if ( heightStyle === "fill" ) {
+ maxHeight = parent.height();
+ this.element.siblings( ":visible" ).each(function() {
+ var elem = $( this ),
+ position = elem.css( "position" );
+
+ if ( position === "absolute" || position === "fixed" ) {
+ return;
+ }
+ maxHeight -= elem.outerHeight( true );
+ });
+
+ this.headers.each(function() {
+ maxHeight -= $( this ).outerHeight( true );
+ });
+
+ this.headers.next()
+ .each(function() {
+ $( this ).height( Math.max( 0, maxHeight -
+ $( this ).innerHeight() + $( this ).height() ) );
+ })
+ .css( "overflow", "auto" );
+ } else if ( heightStyle === "auto" ) {
+ maxHeight = 0;
+ this.headers.next()
+ .each(function() {
+ maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
+ })
+ .height( maxHeight );
+ }
+ },
+
+ _activate: function( index ) {
+ var active = this._findActive( index )[ 0 ];
+
+ // trying to activate the already active panel
+ if ( active === this.active[ 0 ] ) {
+ return;
+ }
+
+ // trying to collapse, simulate a click on the currently active header
+ active = active || this.active[ 0 ];
+
+ this._eventHandler({
+ target: active,
+ currentTarget: active,
+ preventDefault: $.noop
+ });
+ },
+
+ _findActive: function( selector ) {
+ return typeof selector === "number" ? this.headers.eq( selector ) : $();
+ },
+
+ _setupEvents: function( event ) {
+ var events = {
+ keydown: "_keydown"
+ };
+ if ( event ) {
+ $.each( event.split( " " ), function( index, eventName ) {
+ events[ eventName ] = "_eventHandler";
+ });
+ }
+
+ this._off( this.headers.add( this.headers.next() ) );
+ this._on( this.headers, events );
+ this._on( this.headers.next(), { keydown: "_panelKeyDown" });
+ this._hoverable( this.headers );
+ this._focusable( this.headers );
+ },
+
+ _eventHandler: function( event ) {
+ var options = this.options,
+ active = this.active,
+ clicked = $( event.currentTarget ),
+ clickedIsActive = clicked[ 0 ] === active[ 0 ],
+ collapsing = clickedIsActive && options.collapsible,
+ toShow = collapsing ? $() : clicked.next(),
+ toHide = active.next(),
+ eventData = {
+ oldHeader: active,
+ oldPanel: toHide,
+ newHeader: collapsing ? $() : clicked,
+ newPanel: toShow
+ };
+
+ event.preventDefault();
+
+ if (
+ // click on active header, but not collapsible
+ ( clickedIsActive && !options.collapsible ) ||
+ // allow canceling activation
+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
+ return;
+ }
+
+ options.active = collapsing ? false : this.headers.index( clicked );
+
+ // when the call to ._toggle() comes after the class changes
+ // it causes a very odd bug in IE 8 (see #6720)
+ this.active = clickedIsActive ? $() : clicked;
+ this._toggle( eventData );
+
+ // switch classes
+ // corner classes on the previously active header stay after the animation
+ active.removeClass( "ui-accordion-header-active ui-state-active" );
+ if ( options.icons ) {
+ active.children( ".ui-accordion-header-icon" )
+ .removeClass( options.icons.activeHeader )
+ .addClass( options.icons.header );
+ }
+
+ if ( !clickedIsActive ) {
+ clicked
+ .removeClass( "ui-corner-all" )
+ .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" );
+ if ( options.icons ) {
+ clicked.children( ".ui-accordion-header-icon" )
+ .removeClass( options.icons.header )
+ .addClass( options.icons.activeHeader );
+ }
+
+ clicked
+ .next()
+ .addClass( "ui-accordion-content-active" );
+ }
+ },
+
+ _toggle: function( data ) {
+ var toShow = data.newPanel,
+ toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
+
+ // handle activating a panel during the animation for another activation
+ this.prevShow.add( this.prevHide ).stop( true, true );
+ this.prevShow = toShow;
+ this.prevHide = toHide;
+
+ if ( this.options.animate ) {
+ this._animate( toShow, toHide, data );
+ } else {
+ toHide.hide();
+ toShow.show();
+ this._toggleComplete( data );
+ }
+
+ toHide.attr({
+ "aria-hidden": "true"
+ });
+ toHide.prev().attr({
+ "aria-selected": "false",
+ "aria-expanded": "false"
+ });
+ // if we're switching panels, remove the old header from the tab order
+ // if we're opening from collapsed state, remove the previous header from the tab order
+ // if we're collapsing, then keep the collapsing header in the tab order
+ if ( toShow.length && toHide.length ) {
+ toHide.prev().attr({
+ "tabIndex": -1,
+ "aria-expanded": "false"
+ });
+ } else if ( toShow.length ) {
+ this.headers.filter(function() {
+ return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
+ })
+ .attr( "tabIndex", -1 );
+ }
+
+ toShow
+ .attr( "aria-hidden", "false" )
+ .prev()
+ .attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ });
+ },
+
+ _animate: function( toShow, toHide, data ) {
+ var total, easing, duration,
+ that = this,
+ adjust = 0,
+ boxSizing = toShow.css( "box-sizing" ),
+ down = toShow.length &&
+ ( !toHide.length || ( toShow.index() < toHide.index() ) ),
+ animate = this.options.animate || {},
+ options = down && animate.down || animate,
+ complete = function() {
+ that._toggleComplete( data );
+ };
+
+ if ( typeof options === "number" ) {
+ duration = options;
+ }
+ if ( typeof options === "string" ) {
+ easing = options;
+ }
+ // fall back from options to animation in case of partial down settings
+ easing = easing || options.easing || animate.easing;
+ duration = duration || options.duration || animate.duration;
+
+ if ( !toHide.length ) {
+ return toShow.animate( this.showProps, duration, easing, complete );
+ }
+ if ( !toShow.length ) {
+ return toHide.animate( this.hideProps, duration, easing, complete );
+ }
+
+ total = toShow.show().outerHeight();
+ toHide.animate( this.hideProps, {
+ duration: duration,
+ easing: easing,
+ step: function( now, fx ) {
+ fx.now = Math.round( now );
+ }
+ });
+ toShow
+ .hide()
+ .animate( this.showProps, {
+ duration: duration,
+ easing: easing,
+ complete: complete,
+ step: function( now, fx ) {
+ fx.now = Math.round( now );
+ if ( fx.prop !== "height" ) {
+ if ( boxSizing === "content-box" ) {
+ adjust += fx.now;
+ }
+ } else if ( that.options.heightStyle !== "content" ) {
+ fx.now = Math.round( total - toHide.outerHeight() - adjust );
+ adjust = 0;
+ }
+ }
+ });
+ },
+
+ _toggleComplete: function( data ) {
+ var toHide = data.oldPanel;
+
+ toHide
+ .removeClass( "ui-accordion-content-active" )
+ .prev()
+ .removeClass( "ui-corner-top" )
+ .addClass( "ui-corner-all" );
+
+ // Work around for rendering bug in IE (#5421)
+ if ( toHide.length ) {
+ toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
+ }
+ this._trigger( "activate", null, data );
+ }
+});
+
+
+/*!
+ * jQuery UI Menu 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/menu/
+ */
+
+
+var menu = $.widget( "ui.menu", {
+ version: "1.11.4",
+ defaultElement: "<ul>",
+ delay: 300,
+ options: {
+ icons: {
+ submenu: "ui-icon-carat-1-e"
+ },
+ items: "> *",
+ menus: "ul",
+ position: {
+ my: "left-1 top",
+ at: "right top"
+ },
+ role: "menu",
+
+ // callbacks
+ blur: null,
+ focus: null,
+ select: null
+ },
+
+ _create: function() {
+ this.activeMenu = this.element;
+
+ // Flag used to prevent firing of the click handler
+ // as the event bubbles up through nested menus
+ this.mouseHandled = false;
+ this.element
+ .uniqueId()
+ .addClass( "ui-menu ui-widget ui-widget-content" )
+ .toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length )
+ .attr({
+ role: this.options.role,
+ tabIndex: 0
+ });
+
+ if ( this.options.disabled ) {
+ this.element
+ .addClass( "ui-state-disabled" )
+ .attr( "aria-disabled", "true" );
+ }
+
+ this._on({
+ // Prevent focus from sticking to links inside menu after clicking
+ // them (focus should always stay on UL during navigation).
+ "mousedown .ui-menu-item": function( event ) {
+ event.preventDefault();
+ },
+ "click .ui-menu-item": function( event ) {
+ var target = $( event.target );
+ if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
+ this.select( event );
+
+ // Only set the mouseHandled flag if the event will bubble, see #9469.
+ if ( !event.isPropagationStopped() ) {
+ this.mouseHandled = true;
+ }
+
+ // Open submenu on click
+ if ( target.has( ".ui-menu" ).length ) {
+ this.expand( event );
+ } else if ( !this.element.is( ":focus" ) && $( this.document[ 0 ].activeElement ).closest( ".ui-menu" ).length ) {
+
+ // Redirect focus to the menu
+ this.element.trigger( "focus", [ true ] );
+
+ // If the active item is on the top level, let it stay active.
+ // Otherwise, blur the active item since it is no longer visible.
+ if ( this.active && this.active.parents( ".ui-menu" ).length === 1 ) {
+ clearTimeout( this.timer );
+ }
+ }
+ }
+ },
+ "mouseenter .ui-menu-item": function( event ) {
+ // Ignore mouse events while typeahead is active, see #10458.
+ // Prevents focusing the wrong item when typeahead causes a scroll while the mouse
+ // is over an item in the menu
+ if ( this.previousFilter ) {
+ return;
+ }
+ var target = $( event.currentTarget );
+ // Remove ui-state-active class from siblings of the newly focused menu item
+ // to avoid a jump caused by adjacent elements both having a class with a border
+ target.siblings( ".ui-state-active" ).removeClass( "ui-state-active" );
+ this.focus( event, target );
+ },
+ mouseleave: "collapseAll",
+ "mouseleave .ui-menu": "collapseAll",
+ focus: function( event, keepActiveItem ) {
+ // If there's already an active item, keep it active
+ // If not, activate the first item
+ var item = this.active || this.element.find( this.options.items ).eq( 0 );
+
+ if ( !keepActiveItem ) {
+ this.focus( event, item );
+ }
+ },
+ blur: function( event ) {
+ this._delay(function() {
+ if ( !$.contains( this.element[0], this.document[0].activeElement ) ) {
+ this.collapseAll( event );
+ }
+ });
+ },
+ keydown: "_keydown"
+ });
+
+ this.refresh();
+
+ // Clicks outside of a menu collapse any open menus
+ this._on( this.document, {
+ click: function( event ) {
+ if ( this._closeOnDocumentClick( event ) ) {
+ this.collapseAll( event );
+ }
+
+ // Reset the mouseHandled flag
+ this.mouseHandled = false;
+ }
+ });
+ },
+
+ _destroy: function() {
+ // Destroy (sub)menus
+ this.element
+ .removeAttr( "aria-activedescendant" )
+ .find( ".ui-menu" ).addBack()
+ .removeClass( "ui-menu ui-widget ui-widget-content ui-menu-icons ui-front" )
+ .removeAttr( "role" )
+ .removeAttr( "tabIndex" )
+ .removeAttr( "aria-labelledby" )
+ .removeAttr( "aria-expanded" )
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-disabled" )
+ .removeUniqueId()
+ .show();
+
+ // Destroy menu items
+ this.element.find( ".ui-menu-item" )
+ .removeClass( "ui-menu-item" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-disabled" )
+ .removeUniqueId()
+ .removeClass( "ui-state-hover" )
+ .removeAttr( "tabIndex" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-haspopup" )
+ .children().each( function() {
+ var elem = $( this );
+ if ( elem.data( "ui-menu-submenu-carat" ) ) {
+ elem.remove();
+ }
+ });
+
+ // Destroy menu dividers
+ this.element.find( ".ui-menu-divider" ).removeClass( "ui-menu-divider ui-widget-content" );
+ },
+
+ _keydown: function( event ) {
+ var match, prev, character, skip,
+ preventDefault = true;
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.PAGE_UP:
+ this.previousPage( event );
+ break;
+ case $.ui.keyCode.PAGE_DOWN:
+ this.nextPage( event );
+ break;
+ case $.ui.keyCode.HOME:
+ this._move( "first", "first", event );
+ break;
+ case $.ui.keyCode.END:
+ this._move( "last", "last", event );
+ break;
+ case $.ui.keyCode.UP:
+ this.previous( event );
+ break;
+ case $.ui.keyCode.DOWN:
+ this.next( event );
+ break;
+ case $.ui.keyCode.LEFT:
+ this.collapse( event );
+ break;
+ case $.ui.keyCode.RIGHT:
+ if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
+ this.expand( event );
+ }
+ break;
+ case $.ui.keyCode.ENTER:
+ case $.ui.keyCode.SPACE:
+ this._activate( event );
+ break;
+ case $.ui.keyCode.ESCAPE:
+ this.collapse( event );
+ break;
+ default:
+ preventDefault = false;
+ prev = this.previousFilter || "";
+ character = String.fromCharCode( event.keyCode );
+ skip = false;
+
+ clearTimeout( this.filterTimer );
+
+ if ( character === prev ) {
+ skip = true;
+ } else {
+ character = prev + character;
+ }
+
+ match = this._filterMenuItems( character );
+ match = skip && match.index( this.active.next() ) !== -1 ?
+ this.active.nextAll( ".ui-menu-item" ) :
+ match;
+
+ // If no matches on the current filter, reset to the last character pressed
+ // to move down the menu to the first item that starts with that character
+ if ( !match.length ) {
+ character = String.fromCharCode( event.keyCode );
+ match = this._filterMenuItems( character );
+ }
+
+ if ( match.length ) {
+ this.focus( event, match );
+ this.previousFilter = character;
+ this.filterTimer = this._delay(function() {
+ delete this.previousFilter;
+ }, 1000 );
+ } else {
+ delete this.previousFilter;
+ }
+ }
+
+ if ( preventDefault ) {
+ event.preventDefault();
+ }
+ },
+
+ _activate: function( event ) {
+ if ( !this.active.is( ".ui-state-disabled" ) ) {
+ if ( this.active.is( "[aria-haspopup='true']" ) ) {
+ this.expand( event );
+ } else {
+ this.select( event );
+ }
+ }
+ },
+
+ refresh: function() {
+ var menus, items,
+ that = this,
+ icon = this.options.icons.submenu,
+ submenus = this.element.find( this.options.menus );
+
+ this.element.toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length );
+
+ // Initialize nested menus
+ submenus.filter( ":not(.ui-menu)" )
+ .addClass( "ui-menu ui-widget ui-widget-content ui-front" )
+ .hide()
+ .attr({
+ role: this.options.role,
+ "aria-hidden": "true",
+ "aria-expanded": "false"
+ })
+ .each(function() {
+ var menu = $( this ),
+ item = menu.parent(),
+ submenuCarat = $( "<span>" )
+ .addClass( "ui-menu-icon ui-icon " + icon )
+ .data( "ui-menu-submenu-carat", true );
+
+ item
+ .attr( "aria-haspopup", "true" )
+ .prepend( submenuCarat );
+ menu.attr( "aria-labelledby", item.attr( "id" ) );
+ });
+
+ menus = submenus.add( this.element );
+ items = menus.find( this.options.items );
+
+ // Initialize menu-items containing spaces and/or dashes only as dividers
+ items.not( ".ui-menu-item" ).each(function() {
+ var item = $( this );
+ if ( that._isDivider( item ) ) {
+ item.addClass( "ui-widget-content ui-menu-divider" );
+ }
+ });
+
+ // Don't refresh list items that are already adapted
+ items.not( ".ui-menu-item, .ui-menu-divider" )
+ .addClass( "ui-menu-item" )
+ .uniqueId()
+ .attr({
+ tabIndex: -1,
+ role: this._itemRole()
+ });
+
+ // Add aria-disabled attribute to any disabled menu item
+ items.filter( ".ui-state-disabled" ).attr( "aria-disabled", "true" );
+
+ // If the active item has been removed, blur the menu
+ if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
+ this.blur();
+ }
+ },
+
+ _itemRole: function() {
+ return {
+ menu: "menuitem",
+ listbox: "option"
+ }[ this.options.role ];
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "icons" ) {
+ this.element.find( ".ui-menu-icon" )
+ .removeClass( this.options.icons.submenu )
+ .addClass( value.submenu );
+ }
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ }
+ this._super( key, value );
+ },
+
+ focus: function( event, item ) {
+ var nested, focused;
+ this.blur( event, event && event.type === "focus" );
+
+ this._scrollIntoView( item );
+
+ this.active = item.first();
+ focused = this.active.addClass( "ui-state-focus" ).removeClass( "ui-state-active" );
+ // Only update aria-activedescendant if there's a role
+ // otherwise we assume focus is managed elsewhere
+ if ( this.options.role ) {
+ this.element.attr( "aria-activedescendant", focused.attr( "id" ) );
+ }
+
+ // Highlight active parent menu item, if any
+ this.active
+ .parent()
+ .closest( ".ui-menu-item" )
+ .addClass( "ui-state-active" );
+
+ if ( event && event.type === "keydown" ) {
+ this._close();
+ } else {
+ this.timer = this._delay(function() {
+ this._close();
+ }, this.delay );
+ }
+
+ nested = item.children( ".ui-menu" );
+ if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) {
+ this._startOpening(nested);
+ }
+ this.activeMenu = item.parent();
+
+ this._trigger( "focus", event, { item: item } );
+ },
+
+ _scrollIntoView: function( item ) {
+ var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;
+ if ( this._hasScroll() ) {
+ borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0;
+ paddingTop = parseFloat( $.css( this.activeMenu[0], "paddingTop" ) ) || 0;
+ offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop;
+ scroll = this.activeMenu.scrollTop();
+ elementHeight = this.activeMenu.height();
+ itemHeight = item.outerHeight();
+
+ if ( offset < 0 ) {
+ this.activeMenu.scrollTop( scroll + offset );
+ } else if ( offset + itemHeight > elementHeight ) {
+ this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight );
+ }
+ }
+ },
+
+ blur: function( event, fromFocus ) {
+ if ( !fromFocus ) {
+ clearTimeout( this.timer );
+ }
+
+ if ( !this.active ) {
+ return;
+ }
+
+ this.active.removeClass( "ui-state-focus" );
+ this.active = null;
+
+ this._trigger( "blur", event, { item: this.active } );
+ },
+
+ _startOpening: function( submenu ) {
+ clearTimeout( this.timer );
+
+ // Don't open if already open fixes a Firefox bug that caused a .5 pixel
+ // shift in the submenu position when mousing over the carat icon
+ if ( submenu.attr( "aria-hidden" ) !== "true" ) {
+ return;
+ }
+
+ this.timer = this._delay(function() {
+ this._close();
+ this._open( submenu );
+ }, this.delay );
+ },
+
+ _open: function( submenu ) {
+ var position = $.extend({
+ of: this.active
+ }, this.options.position );
+
+ clearTimeout( this.timer );
+ this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) )
+ .hide()
+ .attr( "aria-hidden", "true" );
+
+ submenu
+ .show()
+ .removeAttr( "aria-hidden" )
+ .attr( "aria-expanded", "true" )
+ .position( position );
+ },
+
+ collapseAll: function( event, all ) {
+ clearTimeout( this.timer );
+ this.timer = this._delay(function() {
+ // If we were passed an event, look for the submenu that contains the event
+ var currentMenu = all ? this.element :
+ $( event && event.target ).closest( this.element.find( ".ui-menu" ) );
+
+ // If we found no valid submenu ancestor, use the main menu to close all sub menus anyway
+ if ( !currentMenu.length ) {
+ currentMenu = this.element;
+ }
+
+ this._close( currentMenu );
+
+ this.blur( event );
+ this.activeMenu = currentMenu;
+ }, this.delay );
+ },
+
+ // With no arguments, closes the currently active menu - if nothing is active
+ // it closes all menus. If passed an argument, it will search for menus BELOW
+ _close: function( startMenu ) {
+ if ( !startMenu ) {
+ startMenu = this.active ? this.active.parent() : this.element;
+ }
+
+ startMenu
+ .find( ".ui-menu" )
+ .hide()
+ .attr( "aria-hidden", "true" )
+ .attr( "aria-expanded", "false" )
+ .end()
+ .find( ".ui-state-active" ).not( ".ui-state-focus" )
+ .removeClass( "ui-state-active" );
+ },
+
+ _closeOnDocumentClick: function( event ) {
+ return !$( event.target ).closest( ".ui-menu" ).length;
+ },
+
+ _isDivider: function( item ) {
+
+ // Match hyphen, em dash, en dash
+ return !/[^\-\u2014\u2013\s]/.test( item.text() );
+ },
+
+ collapse: function( event ) {
+ var newItem = this.active &&
+ this.active.parent().closest( ".ui-menu-item", this.element );
+ if ( newItem && newItem.length ) {
+ this._close();
+ this.focus( event, newItem );
+ }
+ },
+
+ expand: function( event ) {
+ var newItem = this.active &&
+ this.active
+ .children( ".ui-menu " )
+ .find( this.options.items )
+ .first();
+
+ if ( newItem && newItem.length ) {
+ this._open( newItem.parent() );
+
+ // Delay so Firefox will not hide activedescendant change in expanding submenu from AT
+ this._delay(function() {
+ this.focus( event, newItem );
+ });
+ }
+ },
+
+ next: function( event ) {
+ this._move( "next", "first", event );
+ },
+
+ previous: function( event ) {
+ this._move( "prev", "last", event );
+ },
+
+ isFirstItem: function() {
+ return this.active && !this.active.prevAll( ".ui-menu-item" ).length;
+ },
+
+ isLastItem: function() {
+ return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
+ },
+
+ _move: function( direction, filter, event ) {
+ var next;
+ if ( this.active ) {
+ if ( direction === "first" || direction === "last" ) {
+ next = this.active
+ [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
+ .eq( -1 );
+ } else {
+ next = this.active
+ [ direction + "All" ]( ".ui-menu-item" )
+ .eq( 0 );
+ }
+ }
+ if ( !next || !next.length || !this.active ) {
+ next = this.activeMenu.find( this.options.items )[ filter ]();
+ }
+
+ this.focus( event, next );
+ },
+
+ nextPage: function( event ) {
+ var item, base, height;
+
+ if ( !this.active ) {
+ this.next( event );
+ return;
+ }
+ if ( this.isLastItem() ) {
+ return;
+ }
+ if ( this._hasScroll() ) {
+ base = this.active.offset().top;
+ height = this.element.height();
+ this.active.nextAll( ".ui-menu-item" ).each(function() {
+ item = $( this );
+ return item.offset().top - base - height < 0;
+ });
+
+ this.focus( event, item );
+ } else {
+ this.focus( event, this.activeMenu.find( this.options.items )
+ [ !this.active ? "first" : "last" ]() );
+ }
+ },
+
+ previousPage: function( event ) {
+ var item, base, height;
+ if ( !this.active ) {
+ this.next( event );
+ return;
+ }
+ if ( this.isFirstItem() ) {
+ return;
+ }
+ if ( this._hasScroll() ) {
+ base = this.active.offset().top;
+ height = this.element.height();
+ this.active.prevAll( ".ui-menu-item" ).each(function() {
+ item = $( this );
+ return item.offset().top - base + height > 0;
+ });
+
+ this.focus( event, item );
+ } else {
+ this.focus( event, this.activeMenu.find( this.options.items ).first() );
+ }
+ },
+
+ _hasScroll: function() {
+ return this.element.outerHeight() < this.element.prop( "scrollHeight" );
+ },
+
+ select: function( event ) {
+ // TODO: It should never be possible to not have an active item at this
+ // point, but the tests don't trigger mouseenter before click.
+ this.active = this.active || $( event.target ).closest( ".ui-menu-item" );
+ var ui = { item: this.active };
+ if ( !this.active.has( ".ui-menu" ).length ) {
+ this.collapseAll( event, true );
+ }
+ this._trigger( "select", event, ui );
+ },
+
+ _filterMenuItems: function(character) {
+ var escapedCharacter = character.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" ),
+ regex = new RegExp( "^" + escapedCharacter, "i" );
+
+ return this.activeMenu
+ .find( this.options.items )
+
+ // Only match on items, not dividers or other content (#10571)
+ .filter( ".ui-menu-item" )
+ .filter(function() {
+ return regex.test( $.trim( $( this ).text() ) );
+ });
+ }
+});
+
+
+/*!
+ * jQuery UI Autocomplete 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/autocomplete/
+ */
+
+
+$.widget( "ui.autocomplete", {
+ version: "1.11.4",
+ defaultElement: "<input>",
+ options: {
+ appendTo: null,
+ autoFocus: false,
+ delay: 300,
+ minLength: 1,
+ position: {
+ my: "left top",
+ at: "left bottom",
+ collision: "none"
+ },
+ source: null,
+
+ // callbacks
+ change: null,
+ close: null,
+ focus: null,
+ open: null,
+ response: null,
+ search: null,
+ select: null
+ },
+
+ requestIndex: 0,
+ pending: 0,
+
+ _create: function() {
+ // Some browsers only repeat keydown events, not keypress events,
+ // so we use the suppressKeyPress flag to determine if we've already
+ // handled the keydown event. #7269
+ // Unfortunately the code for & in keypress is the same as the up arrow,
+ // so we use the suppressKeyPressRepeat flag to avoid handling keypress
+ // events when we know the keydown event was used to modify the
+ // search term. #7799
+ var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
+ nodeName = this.element[ 0 ].nodeName.toLowerCase(),
+ isTextarea = nodeName === "textarea",
+ isInput = nodeName === "input";
+
+ this.isMultiLine =
+ // Textareas are always multi-line
+ isTextarea ? true :
+ // Inputs are always single-line, even if inside a contentEditable element
+ // IE also treats inputs as contentEditable
+ isInput ? false :
+ // All other element types are determined by whether or not they're contentEditable
+ this.element.prop( "isContentEditable" );
+
+ this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
+ this.isNewMenu = true;
+
+ this.element
+ .addClass( "ui-autocomplete-input" )
+ .attr( "autocomplete", "off" );
+
+ this._on( this.element, {
+ keydown: function( event ) {
+ if ( this.element.prop( "readOnly" ) ) {
+ suppressKeyPress = true;
+ suppressInput = true;
+ suppressKeyPressRepeat = true;
+ return;
+ }
+
+ suppressKeyPress = false;
+ suppressInput = false;
+ suppressKeyPressRepeat = false;
+ var keyCode = $.ui.keyCode;
+ switch ( event.keyCode ) {
+ case keyCode.PAGE_UP:
+ suppressKeyPress = true;
+ this._move( "previousPage", event );
+ break;
+ case keyCode.PAGE_DOWN:
+ suppressKeyPress = true;
+ this._move( "nextPage", event );
+ break;
+ case keyCode.UP:
+ suppressKeyPress = true;
+ this._keyEvent( "previous", event );
+ break;
+ case keyCode.DOWN:
+ suppressKeyPress = true;
+ this._keyEvent( "next", event );
+ break;
+ case keyCode.ENTER:
+ // when menu is open and has focus
+ if ( this.menu.active ) {
+ // #6055 - Opera still allows the keypress to occur
+ // which causes forms to submit
+ suppressKeyPress = true;
+ event.preventDefault();
+ this.menu.select( event );
+ }
+ break;
+ case keyCode.TAB:
+ if ( this.menu.active ) {
+ this.menu.select( event );
+ }
+ break;
+ case keyCode.ESCAPE:
+ if ( this.menu.element.is( ":visible" ) ) {
+ if ( !this.isMultiLine ) {
+ this._value( this.term );
+ }
+ this.close( event );
+ // Different browsers have different default behavior for escape
+ // Single press can mean undo or clear
+ // Double press in IE means clear the whole form
+ event.preventDefault();
+ }
+ break;
+ default:
+ suppressKeyPressRepeat = true;
+ // search timeout should be triggered before the input value is changed
+ this._searchTimeout( event );
+ break;
+ }
+ },
+ keypress: function( event ) {
+ if ( suppressKeyPress ) {
+ suppressKeyPress = false;
+ if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
+ event.preventDefault();
+ }
+ return;
+ }
+ if ( suppressKeyPressRepeat ) {
+ return;
+ }
+
+ // replicate some key handlers to allow them to repeat in Firefox and Opera
+ var keyCode = $.ui.keyCode;
+ switch ( event.keyCode ) {
+ case keyCode.PAGE_UP:
+ this._move( "previousPage", event );
+ break;
+ case keyCode.PAGE_DOWN:
+ this._move( "nextPage", event );
+ break;
+ case keyCode.UP:
+ this._keyEvent( "previous", event );
+ break;
+ case keyCode.DOWN:
+ this._keyEvent( "next", event );
+ break;
+ }
+ },
+ input: function( event ) {
+ if ( suppressInput ) {
+ suppressInput = false;
+ event.preventDefault();
+ return;
+ }
+ this._searchTimeout( event );
+ },
+ focus: function() {
+ this.selectedItem = null;
+ this.previous = this._value();
+ },
+ blur: function( event ) {
+ if ( this.cancelBlur ) {
+ delete this.cancelBlur;
+ return;
+ }
+
+ clearTimeout( this.searching );
+ this.close( event );
+ this._change( event );
+ }
+ });
+
+ this._initSource();
+ this.menu = $( "<ul>" )
+ .addClass( "ui-autocomplete ui-front" )
+ .appendTo( this._appendTo() )
+ .menu({
+ // disable ARIA support, the live region takes care of that
+ role: null
+ })
+ .hide()
+ .menu( "instance" );
+
+ this._on( this.menu.element, {
+ mousedown: function( event ) {
+ // prevent moving focus out of the text field
+ event.preventDefault();
+
+ // IE doesn't prevent moving focus even with event.preventDefault()
+ // so we set a flag to know when we should ignore the blur event
+ this.cancelBlur = true;
+ this._delay(function() {
+ delete this.cancelBlur;
+ });
+
+ // clicking on the scrollbar causes focus to shift to the body
+ // but we can't detect a mouseup or a click immediately afterward
+ // so we have to track the next mousedown and close the menu if
+ // the user clicks somewhere outside of the autocomplete
+ var menuElement = this.menu.element[ 0 ];
+ if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
+ this._delay(function() {
+ var that = this;
+ this.document.one( "mousedown", function( event ) {
+ if ( event.target !== that.element[ 0 ] &&
+ event.target !== menuElement &&
+ !$.contains( menuElement, event.target ) ) {
+ that.close();
+ }
+ });
+ });
+ }
+ },
+ menufocus: function( event, ui ) {
+ var label, item;
+ // support: Firefox
+ // Prevent accidental activation of menu items in Firefox (#7024 #9118)
+ if ( this.isNewMenu ) {
+ this.isNewMenu = false;
+ if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {
+ this.menu.blur();
+
+ this.document.one( "mousemove", function() {
+ $( event.target ).trigger( event.originalEvent );
+ });
+
+ return;
+ }
+ }
+
+ item = ui.item.data( "ui-autocomplete-item" );
+ if ( false !== this._trigger( "focus", event, { item: item } ) ) {
+ // use value to match what will end up in the input, if it was a key event
+ if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
+ this._value( item.value );
+ }
+ }
+
+ // Announce the value in the liveRegion
+ label = ui.item.attr( "aria-label" ) || item.value;
+ if ( label && $.trim( label ).length ) {
+ this.liveRegion.children().hide();
+ $( "<div>" ).text( label ).appendTo( this.liveRegion );
+ }
+ },
+ menuselect: function( event, ui ) {
+ var item = ui.item.data( "ui-autocomplete-item" ),
+ previous = this.previous;
+
+ // only trigger when focus was lost (click on menu)
+ if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
+ this.element.focus();
+ this.previous = previous;
+ // #6109 - IE triggers two focus events and the second
+ // is asynchronous, so we need to reset the previous
+ // term synchronously and asynchronously :-(
+ this._delay(function() {
+ this.previous = previous;
+ this.selectedItem = item;
+ });
+ }
+
+ if ( false !== this._trigger( "select", event, { item: item } ) ) {
+ this._value( item.value );
+ }
+ // reset the term after the select event
+ // this allows custom select handling to work properly
+ this.term = this._value();
+
+ this.close( event );
+ this.selectedItem = item;
+ }
+ });
+
+ this.liveRegion = $( "<span>", {
+ role: "status",
+ "aria-live": "assertive",
+ "aria-relevant": "additions"
+ })
+ .addClass( "ui-helper-hidden-accessible" )
+ .appendTo( this.document[ 0 ].body );
+
+ // turning off autocomplete prevents the browser from remembering the
+ // value when navigating through history, so we re-enable autocomplete
+ // if the page is unloaded before the widget is destroyed. #7790
+ this._on( this.window, {
+ beforeunload: function() {
+ this.element.removeAttr( "autocomplete" );
+ }
+ });
+ },
+
+ _destroy: function() {
+ clearTimeout( this.searching );
+ this.element
+ .removeClass( "ui-autocomplete-input" )
+ .removeAttr( "autocomplete" );
+ this.menu.element.remove();
+ this.liveRegion.remove();
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+ if ( key === "source" ) {
+ this._initSource();
+ }
+ if ( key === "appendTo" ) {
+ this.menu.element.appendTo( this._appendTo() );
+ }
+ if ( key === "disabled" && value && this.xhr ) {
+ this.xhr.abort();
+ }
+ },
+
+ _appendTo: function() {
+ var element = this.options.appendTo;
+
+ if ( element ) {
+ element = element.jquery || element.nodeType ?
+ $( element ) :
+ this.document.find( element ).eq( 0 );
+ }
+
+ if ( !element || !element[ 0 ] ) {
+ element = this.element.closest( ".ui-front" );
+ }
+
+ if ( !element.length ) {
+ element = this.document[ 0 ].body;
+ }
+
+ return element;
+ },
+
+ _initSource: function() {
+ var array, url,
+ that = this;
+ if ( $.isArray( this.options.source ) ) {
+ array = this.options.source;
+ this.source = function( request, response ) {
+ response( $.ui.autocomplete.filter( array, request.term ) );
+ };
+ } else if ( typeof this.options.source === "string" ) {
+ url = this.options.source;
+ this.source = function( request, response ) {
+ if ( that.xhr ) {
+ that.xhr.abort();
+ }
+ that.xhr = $.ajax({
+ url: url,
+ data: request,
+ dataType: "json",
+ success: function( data ) {
+ response( data );
+ },
+ error: function() {
+ response([]);
+ }
+ });
+ };
+ } else {
+ this.source = this.options.source;
+ }
+ },
+
+ _searchTimeout: function( event ) {
+ clearTimeout( this.searching );
+ this.searching = this._delay(function() {
+
+ // Search if the value has changed, or if the user retypes the same value (see #7434)
+ var equalValues = this.term === this._value(),
+ menuVisible = this.menu.element.is( ":visible" ),
+ modifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
+
+ if ( !equalValues || ( equalValues && !menuVisible && !modifierKey ) ) {
+ this.selectedItem = null;
+ this.search( null, event );
+ }
+ }, this.options.delay );
+ },
+
+ search: function( value, event ) {
+ value = value != null ? value : this._value();
+
+ // always save the actual value, not the one passed as an argument
+ this.term = this._value();
+
+ if ( value.length < this.options.minLength ) {
+ return this.close( event );
+ }
+
+ if ( this._trigger( "search", event ) === false ) {
+ return;
+ }
+
+ return this._search( value );
+ },
+
+ _search: function( value ) {
+ this.pending++;
+ this.element.addClass( "ui-autocomplete-loading" );
+ this.cancelSearch = false;
+
+ this.source( { term: value }, this._response() );
+ },
+
+ _response: function() {
+ var index = ++this.requestIndex;
+
+ return $.proxy(function( content ) {
+ if ( index === this.requestIndex ) {
+ this.__response( content );
+ }
+
+ this.pending--;
+ if ( !this.pending ) {
+ this.element.removeClass( "ui-autocomplete-loading" );
+ }
+ }, this );
+ },
+
+ __response: function( content ) {
+ if ( content ) {
+ content = this._normalize( content );
+ }
+ this._trigger( "response", null, { content: content } );
+ if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {
+ this._suggest( content );
+ this._trigger( "open" );
+ } else {
+ // use ._close() instead of .close() so we don't cancel future searches
+ this._close();
+ }
+ },
+
+ close: function( event ) {
+ this.cancelSearch = true;
+ this._close( event );
+ },
+
+ _close: function( event ) {
+ if ( this.menu.element.is( ":visible" ) ) {
+ this.menu.element.hide();
+ this.menu.blur();
+ this.isNewMenu = true;
+ this._trigger( "close", event );
+ }
+ },
+
+ _change: function( event ) {
+ if ( this.previous !== this._value() ) {
+ this._trigger( "change", event, { item: this.selectedItem } );
+ }
+ },
+
+ _normalize: function( items ) {
+ // assume all items have the right format when the first item is complete
+ if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
+ return items;
+ }
+ return $.map( items, function( item ) {
+ if ( typeof item === "string" ) {
+ return {
+ label: item,
+ value: item
+ };
+ }
+ return $.extend( {}, item, {
+ label: item.label || item.value,
+ value: item.value || item.label
+ });
+ });
+ },
+
+ _suggest: function( items ) {
+ var ul = this.menu.element.empty();
+ this._renderMenu( ul, items );
+ this.isNewMenu = true;
+ this.menu.refresh();
+
+ // size and position menu
+ ul.show();
+ this._resizeMenu();
+ ul.position( $.extend({
+ of: this.element
+ }, this.options.position ) );
+
+ if ( this.options.autoFocus ) {
+ this.menu.next();
+ }
+ },
+
+ _resizeMenu: function() {
+ var ul = this.menu.element;
+ ul.outerWidth( Math.max(
+ // Firefox wraps long text (possibly a rounding bug)
+ // so we add 1px to avoid the wrapping (#7513)
+ ul.width( "" ).outerWidth() + 1,
+ this.element.outerWidth()
+ ) );
+ },
+
+ _renderMenu: function( ul, items ) {
+ var that = this;
+ $.each( items, function( index, item ) {
+ that._renderItemData( ul, item );
+ });
+ },
+
+ _renderItemData: function( ul, item ) {
+ return this._renderItem( ul, item ).data( "ui-autocomplete-item", item );
+ },
+
+ _renderItem: function( ul, item ) {
+ return $( "<li>" ).text( item.label ).appendTo( ul );
+ },
+
+ _move: function( direction, event ) {
+ if ( !this.menu.element.is( ":visible" ) ) {
+ this.search( null, event );
+ return;
+ }
+ if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
+ this.menu.isLastItem() && /^next/.test( direction ) ) {
+
+ if ( !this.isMultiLine ) {
+ this._value( this.term );
+ }
+
+ this.menu.blur();
+ return;
+ }
+ this.menu[ direction ]( event );
+ },
+
+ widget: function() {
+ return this.menu.element;
+ },
+
+ _value: function() {
+ return this.valueMethod.apply( this.element, arguments );
+ },
+
+ _keyEvent: function( keyEvent, event ) {
+ if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
+ this._move( keyEvent, event );
+
+ // prevents moving cursor to beginning/end of the text field in some browsers
+ event.preventDefault();
+ }
+ }
+});
+
+$.extend( $.ui.autocomplete, {
+ escapeRegex: function( value ) {
+ return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
+ },
+ filter: function( array, term ) {
+ var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
+ return $.grep( array, function( value ) {
+ return matcher.test( value.label || value.value || value );
+ });
+ }
+});
+
+// live region extension, adding a `messages` option
+// NOTE: This is an experimental API. We are still investigating
+// a full solution for string manipulation and internationalization.
+$.widget( "ui.autocomplete", $.ui.autocomplete, {
+ options: {
+ messages: {
+ noResults: "No search results.",
+ results: function( amount ) {
+ return amount + ( amount > 1 ? " results are" : " result is" ) +
+ " available, use up and down arrow keys to navigate.";
+ }
+ }
+ },
+
+ __response: function( content ) {
+ var message;
+ this._superApply( arguments );
+ if ( this.options.disabled || this.cancelSearch ) {
+ return;
+ }
+ if ( content && content.length ) {
+ message = this.options.messages.results( content.length );
+ } else {
+ message = this.options.messages.noResults;
+ }
+ this.liveRegion.children().hide();
+ $( "<div>" ).text( message ).appendTo( this.liveRegion );
+ }
+});
+
+var autocomplete = $.ui.autocomplete;
+
+
+/*!
+ * jQuery UI Button 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/button/
+ */
+
+
+var lastActive,
+ baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
+ typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
+ formResetHandler = function() {
+ var form = $( this );
+ setTimeout(function() {
+ form.find( ":ui-button" ).button( "refresh" );
+ }, 1 );
+ },
+ radioGroup = function( radio ) {
+ var name = radio.name,
+ form = radio.form,
+ radios = $( [] );
+ if ( name ) {
+ name = name.replace( /'/g, "\\'" );
+ if ( form ) {
+ radios = $( form ).find( "[name='" + name + "'][type=radio]" );
+ } else {
+ radios = $( "[name='" + name + "'][type=radio]", radio.ownerDocument )
+ .filter(function() {
+ return !this.form;
+ });
+ }
+ }
+ return radios;
+ };
+
+$.widget( "ui.button", {
+ version: "1.11.4",
+ defaultElement: "<button>",
+ options: {
+ disabled: null,
+ text: true,
+ label: null,
+ icons: {
+ primary: null,
+ secondary: null
+ }
+ },
+ _create: function() {
+ this.element.closest( "form" )
+ .unbind( "reset" + this.eventNamespace )
+ .bind( "reset" + this.eventNamespace, formResetHandler );
+
+ if ( typeof this.options.disabled !== "boolean" ) {
+ this.options.disabled = !!this.element.prop( "disabled" );
+ } else {
+ this.element.prop( "disabled", this.options.disabled );
+ }
+
+ this._determineButtonType();
+ this.hasTitle = !!this.buttonElement.attr( "title" );
+
+ var that = this,
+ options = this.options,
+ toggleButton = this.type === "checkbox" || this.type === "radio",
+ activeClass = !toggleButton ? "ui-state-active" : "";
+
+ if ( options.label === null ) {
+ options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html());
+ }
+
+ this._hoverable( this.buttonElement );
+
+ this.buttonElement
+ .addClass( baseClasses )
+ .attr( "role", "button" )
+ .bind( "mouseenter" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return;
+ }
+ if ( this === lastActive ) {
+ $( this ).addClass( "ui-state-active" );
+ }
+ })
+ .bind( "mouseleave" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return;
+ }
+ $( this ).removeClass( activeClass );
+ })
+ .bind( "click" + this.eventNamespace, function( event ) {
+ if ( options.disabled ) {
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ }
+ });
+
+ // Can't use _focusable() because the element that receives focus
+ // and the element that gets the ui-state-focus class are different
+ this._on({
+ focus: function() {
+ this.buttonElement.addClass( "ui-state-focus" );
+ },
+ blur: function() {
+ this.buttonElement.removeClass( "ui-state-focus" );
+ }
+ });
+
+ if ( toggleButton ) {
+ this.element.bind( "change" + this.eventNamespace, function() {
+ that.refresh();
+ });
+ }
+
+ if ( this.type === "checkbox" ) {
+ this.buttonElement.bind( "click" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ });
+ } else if ( this.type === "radio" ) {
+ this.buttonElement.bind( "click" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ $( this ).addClass( "ui-state-active" );
+ that.buttonElement.attr( "aria-pressed", "true" );
+
+ var radio = that.element[ 0 ];
+ radioGroup( radio )
+ .not( radio )
+ .map(function() {
+ return $( this ).button( "widget" )[ 0 ];
+ })
+ .removeClass( "ui-state-active" )
+ .attr( "aria-pressed", "false" );
+ });
+ } else {
+ this.buttonElement
+ .bind( "mousedown" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ $( this ).addClass( "ui-state-active" );
+ lastActive = this;
+ that.document.one( "mouseup", function() {
+ lastActive = null;
+ });
+ })
+ .bind( "mouseup" + this.eventNamespace, function() {
+ if ( options.disabled ) {
+ return false;
+ }
+ $( this ).removeClass( "ui-state-active" );
+ })
+ .bind( "keydown" + this.eventNamespace, function(event) {
+ if ( options.disabled ) {
+ return false;
+ }
+ if ( event.keyCode === $.ui.keyCode.SPACE || event.keyCode === $.ui.keyCode.ENTER ) {
+ $( this ).addClass( "ui-state-active" );
+ }
+ })
+ // see #8559, we bind to blur here in case the button element loses
+ // focus between keydown and keyup, it would be left in an "active" state
+ .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() {
+ $( this ).removeClass( "ui-state-active" );
+ });
+
+ if ( this.buttonElement.is("a") ) {
+ this.buttonElement.keyup(function(event) {
+ if ( event.keyCode === $.ui.keyCode.SPACE ) {
+ // TODO pass through original event correctly (just as 2nd argument doesn't work)
+ $( this ).click();
+ }
+ });
+ }
+ }
+
+ this._setOption( "disabled", options.disabled );
+ this._resetButton();
+ },
+
+ _determineButtonType: function() {
+ var ancestor, labelSelector, checked;
+
+ if ( this.element.is("[type=checkbox]") ) {
+ this.type = "checkbox";
+ } else if ( this.element.is("[type=radio]") ) {
+ this.type = "radio";
+ } else if ( this.element.is("input") ) {
+ this.type = "input";
+ } else {
+ this.type = "button";
+ }
+
+ if ( this.type === "checkbox" || this.type === "radio" ) {
+ // we don't search against the document in case the element
+ // is disconnected from the DOM
+ ancestor = this.element.parents().last();
+ labelSelector = "label[for='" + this.element.attr("id") + "']";
+ this.buttonElement = ancestor.find( labelSelector );
+ if ( !this.buttonElement.length ) {
+ ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();
+ this.buttonElement = ancestor.filter( labelSelector );
+ if ( !this.buttonElement.length ) {
+ this.buttonElement = ancestor.find( labelSelector );
+ }
+ }
+ this.element.addClass( "ui-helper-hidden-accessible" );
+
+ checked = this.element.is( ":checked" );
+ if ( checked ) {
+ this.buttonElement.addClass( "ui-state-active" );
+ }
+ this.buttonElement.prop( "aria-pressed", checked );
+ } else {
+ this.buttonElement = this.element;
+ }
+ },
+
+ widget: function() {
+ return this.buttonElement;
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-helper-hidden-accessible" );
+ this.buttonElement
+ .removeClass( baseClasses + " ui-state-active " + typeClasses )
+ .removeAttr( "role" )
+ .removeAttr( "aria-pressed" )
+ .html( this.buttonElement.find(".ui-button-text").html() );
+
+ if ( !this.hasTitle ) {
+ this.buttonElement.removeAttr( "title" );
+ }
+ },
+
+ _setOption: function( key, value ) {
+ this._super( key, value );
+ if ( key === "disabled" ) {
+ this.widget().toggleClass( "ui-state-disabled", !!value );
+ this.element.prop( "disabled", !!value );
+ if ( value ) {
+ if ( this.type === "checkbox" || this.type === "radio" ) {
+ this.buttonElement.removeClass( "ui-state-focus" );
+ } else {
+ this.buttonElement.removeClass( "ui-state-focus ui-state-active" );
+ }
+ }
+ return;
+ }
+ this._resetButton();
+ },
+
+ refresh: function() {
+ //See #8237 & #8828
+ var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
+
+ if ( isDisabled !== this.options.disabled ) {
+ this._setOption( "disabled", isDisabled );
+ }
+ if ( this.type === "radio" ) {
+ radioGroup( this.element[0] ).each(function() {
+ if ( $( this ).is( ":checked" ) ) {
+ $( this ).button( "widget" )
+ .addClass( "ui-state-active" )
+ .attr( "aria-pressed", "true" );
+ } else {
+ $( this ).button( "widget" )
+ .removeClass( "ui-state-active" )
+ .attr( "aria-pressed", "false" );
+ }
+ });
+ } else if ( this.type === "checkbox" ) {
+ if ( this.element.is( ":checked" ) ) {
+ this.buttonElement
+ .addClass( "ui-state-active" )
+ .attr( "aria-pressed", "true" );
+ } else {
+ this.buttonElement
+ .removeClass( "ui-state-active" )
+ .attr( "aria-pressed", "false" );
+ }
+ }
+ },
+
+ _resetButton: function() {
+ if ( this.type === "input" ) {
+ if ( this.options.label ) {
+ this.element.val( this.options.label );
+ }
+ return;
+ }
+ var buttonElement = this.buttonElement.removeClass( typeClasses ),
+ buttonText = $( "<span></span>", this.document[0] )
+ .addClass( "ui-button-text" )
+ .html( this.options.label )
+ .appendTo( buttonElement.empty() )
+ .text(),
+ icons = this.options.icons,
+ multipleIcons = icons.primary && icons.secondary,
+ buttonClasses = [];
+
+ if ( icons.primary || icons.secondary ) {
+ if ( this.options.text ) {
+ buttonClasses.push( "ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );
+ }
+
+ if ( icons.primary ) {
+ buttonElement.prepend( "<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>" );
+ }
+
+ if ( icons.secondary ) {
+ buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" );
+ }
+
+ if ( !this.options.text ) {
+ buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );
+
+ if ( !this.hasTitle ) {
+ buttonElement.attr( "title", $.trim( buttonText ) );
+ }
+ }
+ } else {
+ buttonClasses.push( "ui-button-text-only" );
+ }
+ buttonElement.addClass( buttonClasses.join( " " ) );
+ }
+});
+
+$.widget( "ui.buttonset", {
+ version: "1.11.4",
+ options: {
+ items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
+ },
+
+ _create: function() {
+ this.element.addClass( "ui-buttonset" );
+ },
+
+ _init: function() {
+ this.refresh();
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "disabled" ) {
+ this.buttons.button( "option", key, value );
+ }
+
+ this._super( key, value );
+ },
+
+ refresh: function() {
+ var rtl = this.element.css( "direction" ) === "rtl",
+ allButtons = this.element.find( this.options.items ),
+ existingButtons = allButtons.filter( ":ui-button" );
+
+ // Initialize new buttons
+ allButtons.not( ":ui-button" ).button();
+
+ // Refresh existing buttons
+ existingButtons.button( "refresh" );
+
+ this.buttons = allButtons
+ .map(function() {
+ return $( this ).button( "widget" )[ 0 ];
+ })
+ .removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
+ .filter( ":first" )
+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
+ .end()
+ .filter( ":last" )
+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
+ .end()
+ .end();
+ },
+
+ _destroy: function() {
+ this.element.removeClass( "ui-buttonset" );
+ this.buttons
+ .map(function() {
+ return $( this ).button( "widget" )[ 0 ];
+ })
+ .removeClass( "ui-corner-left ui-corner-right" )
+ .end()
+ .button( "destroy" );
+ }
+});
+
+var button = $.ui.button;
+
+
+/*!
+ * jQuery UI Datepicker 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/datepicker/
+ */
+
+
+$.extend($.ui, { datepicker: { version: "1.11.4" } });
+
+var datepicker_instActive;
+
+function datepicker_getZindex( elem ) {
+ var position, value;
+ while ( elem.length && elem[ 0 ] !== document ) {
+ // Ignore z-index if position is set to a value where z-index is ignored by the browser
+ // This makes behavior of this function consistent across browsers
+ // WebKit always returns auto if the element is positioned
+ position = elem.css( "position" );
+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {
+ // IE returns 0 when zIndex is not specified
+ // other browsers return a string
+ // we ignore the case of nested elements with an explicit value of 0
+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
+ value = parseInt( elem.css( "zIndex" ), 10 );
+ if ( !isNaN( value ) && value !== 0 ) {
+ return value;
+ }
+ }
+ elem = elem.parent();
+ }
+
+ return 0;
+}
+/* Date picker manager.
+ Use the singleton instance of this class, $.datepicker, to interact with the date picker.
+ Settings for (groups of) date pickers are maintained in an instance object,
+ allowing multiple different settings on the same page. */
+
+function Datepicker() {
+ this._curInst = null; // The current instance in use
+ this._keyEvent = false; // If the last event was a key event
+ this._disabledInputs = []; // List of date picker inputs that have been disabled
+ this._datepickerShowing = false; // True if the popup picker is showing , false if not
+ this._inDialog = false; // True if showing within a "dialog", false if not
+ this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
+ this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
+ this._appendClass = "ui-datepicker-append"; // The name of the append marker class
+ this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
+ this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
+ this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
+ this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
+ this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
+ this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
+ this.regional = []; // Available regional settings, indexed by language code
+ this.regional[""] = { // Default regional settings
+ closeText: "Done", // Display text for close link
+ prevText: "Prev", // Display text for previous month link
+ nextText: "Next", // Display text for next month link
+ currentText: "Today", // Display text for current month link
+ monthNames: ["January","February","March","April","May","June",
+ "July","August","September","October","November","December"], // Names of months for drop-down and formatting
+ monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], // For formatting
+ dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], // For formatting
+ dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], // For formatting
+ dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"], // Column headings for days starting at Sunday
+ weekHeader: "Wk", // Column header for week of the year
+ dateFormat: "mm/dd/yy", // See format options on parseDate
+ firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
+ isRTL: false, // True if right-to-left language, false if left-to-right
+ showMonthAfterYear: false, // True if the year select precedes month, false for month then year
+ yearSuffix: "" // Additional text to append to the year in the month headers
+ };
+ this._defaults = { // Global defaults for all the date picker instances
+ showOn: "focus", // "focus" for popup on focus,
+ // "button" for trigger button, or "both" for either
+ showAnim: "fadeIn", // Name of jQuery animation for popup
+ showOptions: {}, // Options for enhanced animations
+ defaultDate: null, // Used when field is blank: actual date,
+ // +/-number for offset from today, null for today
+ appendText: "", // Display text following the input box, e.g. showing the format
+ buttonText: "...", // Text for trigger button
+ buttonImage: "", // URL for trigger button image
+ buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
+ hideIfNoPrevNext: false, // True to hide next/previous month links
+ // if not applicable, false to just disable them
+ navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
+ gotoCurrent: false, // True if today link goes back to current selection instead
+ changeMonth: false, // True if month can be selected directly, false if only prev/next
+ changeYear: false, // True if year can be selected directly, false if only prev/next
+ yearRange: "c-10:c+10", // Range of years to display in drop-down,
+ // either relative to today's year (-nn:+nn), relative to currently displayed year
+ // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
+ showOtherMonths: false, // True to show dates in other months, false to leave blank
+ selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
+ showWeek: false, // True to show week of the year, false to not show it
+ calculateWeek: this.iso8601Week, // How to calculate the week of the year,
+ // takes a Date and returns the number of the week for it
+ shortYearCutoff: "+10", // Short year values < this are in the current century,
+ // > this are in the previous century,
+ // string value starting with "+" for current year + value
+ minDate: null, // The earliest selectable date, or null for no limit
+ maxDate: null, // The latest selectable date, or null for no limit
+ duration: "fast", // Duration of display/closure
+ beforeShowDay: null, // Function that takes a date and returns an array with
+ // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
+ // [2] = cell title (optional), e.g. $.datepicker.noWeekends
+ beforeShow: null, // Function that takes an input field and
+ // returns a set of custom settings for the date picker
+ onSelect: null, // Define a callback function when a date is selected
+ onChangeMonthYear: null, // Define a callback function when the month or year is changed
+ onClose: null, // Define a callback function when the datepicker is closed
+ numberOfMonths: 1, // Number of months to show at a time
+ showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
+ stepMonths: 1, // Number of months to step back/forward
+ stepBigMonths: 12, // Number of months to step back/forward for the big links
+ altField: "", // Selector for an alternate field to store selected dates into
+ altFormat: "", // The date format to use for the alternate field
+ constrainInput: true, // The input is constrained by the current date format
+ showButtonPanel: false, // True to show button panel, false to not show it
+ autoSize: false, // True to size the input for the date format, false to leave as is
+ disabled: false // The initial disabled state
+ };
+ $.extend(this._defaults, this.regional[""]);
+ this.regional.en = $.extend( true, {}, this.regional[ "" ]);
+ this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
+ this.dpDiv = datepicker_bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
+}
+
+$.extend(Datepicker.prototype, {
+ /* Class name added to elements to indicate already configured with a date picker. */
+ markerClassName: "hasDatepicker",
+
+ //Keep track of the maximum number of rows displayed (see #7043)
+ maxRows: 4,
+
+ // TODO rename to "widget" when switching to widget factory
+ _widgetDatepicker: function() {
+ return this.dpDiv;
+ },
+
+ /* Override the default settings for all instances of the date picker.
+ * @param settings object - the new settings to use as defaults (anonymous object)
+ * @return the manager object
+ */
+ setDefaults: function(settings) {
+ datepicker_extendRemove(this._defaults, settings || {});
+ return this;
+ },
+
+ /* Attach the date picker to a jQuery selection.
+ * @param target element - the target input field or division or span
+ * @param settings object - the new settings to use for this date picker instance (anonymous)
+ */
+ _attachDatepicker: function(target, settings) {
+ var nodeName, inline, inst;
+ nodeName = target.nodeName.toLowerCase();
+ inline = (nodeName === "div" || nodeName === "span");
+ if (!target.id) {
+ this.uuid += 1;
+ target.id = "dp" + this.uuid;
+ }
+ inst = this._newInst($(target), inline);
+ inst.settings = $.extend({}, settings || {});
+ if (nodeName === "input") {
+ this._connectDatepicker(target, inst);
+ } else if (inline) {
+ this._inlineDatepicker(target, inst);
+ }
+ },
+
+ /* Create a new instance object. */
+ _newInst: function(target, inline) {
+ var id = target[0].id.replace(/([^A-Za-z0-9_\-])/g, "\\\\$1"); // escape jQuery meta chars
+ return {id: id, input: target, // associated target
+ selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
+ drawMonth: 0, drawYear: 0, // month being drawn
+ inline: inline, // is datepicker inline or not
+ dpDiv: (!inline ? this.dpDiv : // presentation div
+ datepicker_bindHover($("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))};
+ },
+
+ /* Attach the date picker to an input field. */
+ _connectDatepicker: function(target, inst) {
+ var input = $(target);
+ inst.append = $([]);
+ inst.trigger = $([]);
+ if (input.hasClass(this.markerClassName)) {
+ return;
+ }
+ this._attachments(input, inst);
+ input.addClass(this.markerClassName).keydown(this._doKeyDown).
+ keypress(this._doKeyPress).keyup(this._doKeyUp);
+ this._autoSize(inst);
+ $.data(target, "datepicker", inst);
+ //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
+ if( inst.settings.disabled ) {
+ this._disableDatepicker( target );
+ }
+ },
+
+ /* Make attachments based on settings. */
+ _attachments: function(input, inst) {
+ var showOn, buttonText, buttonImage,
+ appendText = this._get(inst, "appendText"),
+ isRTL = this._get(inst, "isRTL");
+
+ if (inst.append) {
+ inst.append.remove();
+ }
+ if (appendText) {
+ inst.append = $("<span class='" + this._appendClass + "'>" + appendText + "</span>");
+ input[isRTL ? "before" : "after"](inst.append);
+ }
+
+ input.unbind("focus", this._showDatepicker);
+
+ if (inst.trigger) {
+ inst.trigger.remove();
+ }
+
+ showOn = this._get(inst, "showOn");
+ if (showOn === "focus" || showOn === "both") { // pop-up date picker when in the marked field
+ input.focus(this._showDatepicker);
+ }
+ if (showOn === "button" || showOn === "both") { // pop-up date picker when button clicked
+ buttonText = this._get(inst, "buttonText");
+ buttonImage = this._get(inst, "buttonImage");
+ inst.trigger = $(this._get(inst, "buttonImageOnly") ?
+ $("<img/>").addClass(this._triggerClass).
+ attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
+ $("<button type='button'></button>").addClass(this._triggerClass).
+ html(!buttonImage ? buttonText : $("<img/>").attr(
+ { src:buttonImage, alt:buttonText, title:buttonText })));
+ input[isRTL ? "before" : "after"](inst.trigger);
+ inst.trigger.click(function() {
+ if ($.datepicker._datepickerShowing && $.datepicker._lastInput === input[0]) {
+ $.datepicker._hideDatepicker();
+ } else if ($.datepicker._datepickerShowing && $.datepicker._lastInput !== input[0]) {
+ $.datepicker._hideDatepicker();
+ $.datepicker._showDatepicker(input[0]);
+ } else {
+ $.datepicker._showDatepicker(input[0]);
+ }
+ return false;
+ });
+ }
+ },
+
+ /* Apply the maximum length for the date format. */
+ _autoSize: function(inst) {
+ if (this._get(inst, "autoSize") && !inst.inline) {
+ var findMax, max, maxI, i,
+ date = new Date(2009, 12 - 1, 20), // Ensure double digits
+ dateFormat = this._get(inst, "dateFormat");
+
+ if (dateFormat.match(/[DM]/)) {
+ findMax = function(names) {
+ max = 0;
+ maxI = 0;
+ for (i = 0; i < names.length; i++) {
+ if (names[i].length > max) {
+ max = names[i].length;
+ maxI = i;
+ }
+ }
+ return maxI;
+ };
+ date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?
+ "monthNames" : "monthNamesShort"))));
+ date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?
+ "dayNames" : "dayNamesShort"))) + 20 - date.getDay());
+ }
+ inst.input.attr("size", this._formatDate(inst, date).length);
+ }
+ },
+
+ /* Attach an inline date picker to a div. */
+ _inlineDatepicker: function(target, inst) {
+ var divSpan = $(target);
+ if (divSpan.hasClass(this.markerClassName)) {
+ return;
+ }
+ divSpan.addClass(this.markerClassName).append(inst.dpDiv);
+ $.data(target, "datepicker", inst);
+ this._setDate(inst, this._getDefaultDate(inst), true);
+ this._updateDatepicker(inst);
+ this._updateAlternate(inst);
+ //If disabled option is true, disable the datepicker before showing it (see ticket #5665)
+ if( inst.settings.disabled ) {
+ this._disableDatepicker( target );
+ }
+ // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
+ // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
+ inst.dpDiv.css( "display", "block" );
+ },
+
+ /* Pop-up the date picker in a "dialog" box.
+ * @param input element - ignored
+ * @param date string or Date - the initial date to display
+ * @param onSelect function - the function to call when a date is selected
+ * @param settings object - update the dialog date picker instance's settings (anonymous object)
+ * @param pos int[2] - coordinates for the dialog's position within the screen or
+ * event - with x/y coordinates or
+ * leave empty for default (screen centre)
+ * @return the manager object
+ */
+ _dialogDatepicker: function(input, date, onSelect, settings, pos) {
+ var id, browserWidth, browserHeight, scrollX, scrollY,
+ inst = this._dialogInst; // internal instance
+
+ if (!inst) {
+ this.uuid += 1;
+ id = "dp" + this.uuid;
+ this._dialogInput = $("<input type='text' id='" + id +
+ "' style='position: absolute; top: -100px; width: 0px;'/>");
+ this._dialogInput.keydown(this._doKeyDown);
+ $("body").append(this._dialogInput);
+ inst = this._dialogInst = this._newInst(this._dialogInput, false);
+ inst.settings = {};
+ $.data(this._dialogInput[0], "datepicker", inst);
+ }
+ datepicker_extendRemove(inst.settings, settings || {});
+ date = (date && date.constructor === Date ? this._formatDate(inst, date) : date);
+ this._dialogInput.val(date);
+
+ this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
+ if (!this._pos) {
+ browserWidth = document.documentElement.clientWidth;
+ browserHeight = document.documentElement.clientHeight;
+ scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
+ scrollY = document.documentElement.scrollTop || document.body.scrollTop;
+ this._pos = // should use actual width/height below
+ [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
+ }
+
+ // move input on screen for focus, but hidden behind dialog
+ this._dialogInput.css("left", (this._pos[0] + 20) + "px").css("top", this._pos[1] + "px");
+ inst.settings.onSelect = onSelect;
+ this._inDialog = true;
+ this.dpDiv.addClass(this._dialogClass);
+ this._showDatepicker(this._dialogInput[0]);
+ if ($.blockUI) {
+ $.blockUI(this.dpDiv);
+ }
+ $.data(this._dialogInput[0], "datepicker", inst);
+ return this;
+ },
+
+ /* Detach a datepicker from its control.
+ * @param target element - the target input field or division or span
+ */
+ _destroyDatepicker: function(target) {
+ var nodeName,
+ $target = $(target),
+ inst = $.data(target, "datepicker");
+
+ if (!$target.hasClass(this.markerClassName)) {
+ return;
+ }
+
+ nodeName = target.nodeName.toLowerCase();
+ $.removeData(target, "datepicker");
+ if (nodeName === "input") {
+ inst.append.remove();
+ inst.trigger.remove();
+ $target.removeClass(this.markerClassName).
+ unbind("focus", this._showDatepicker).
+ unbind("keydown", this._doKeyDown).
+ unbind("keypress", this._doKeyPress).
+ unbind("keyup", this._doKeyUp);
+ } else if (nodeName === "div" || nodeName === "span") {
+ $target.removeClass(this.markerClassName).empty();
+ }
+
+ if ( datepicker_instActive === inst ) {
+ datepicker_instActive = null;
+ }
+ },
+
+ /* Enable the date picker to a jQuery selection.
+ * @param target element - the target input field or division or span
+ */
+ _enableDatepicker: function(target) {
+ var nodeName, inline,
+ $target = $(target),
+ inst = $.data(target, "datepicker");
+
+ if (!$target.hasClass(this.markerClassName)) {
+ return;
+ }
+
+ nodeName = target.nodeName.toLowerCase();
+ if (nodeName === "input") {
+ target.disabled = false;
+ inst.trigger.filter("button").
+ each(function() { this.disabled = false; }).end().
+ filter("img").css({opacity: "1.0", cursor: ""});
+ } else if (nodeName === "div" || nodeName === "span") {
+ inline = $target.children("." + this._inlineClass);
+ inline.children().removeClass("ui-state-disabled");
+ inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
+ prop("disabled", false);
+ }
+ this._disabledInputs = $.map(this._disabledInputs,
+ function(value) { return (value === target ? null : value); }); // delete entry
+ },
+
+ /* Disable the date picker to a jQuery selection.
+ * @param target element - the target input field or division or span
+ */
+ _disableDatepicker: function(target) {
+ var nodeName, inline,
+ $target = $(target),
+ inst = $.data(target, "datepicker");
+
+ if (!$target.hasClass(this.markerClassName)) {
+ return;
+ }
+
+ nodeName = target.nodeName.toLowerCase();
+ if (nodeName === "input") {
+ target.disabled = true;
+ inst.trigger.filter("button").
+ each(function() { this.disabled = true; }).end().
+ filter("img").css({opacity: "0.5", cursor: "default"});
+ } else if (nodeName === "div" || nodeName === "span") {
+ inline = $target.children("." + this._inlineClass);
+ inline.children().addClass("ui-state-disabled");
+ inline.find("select.ui-datepicker-month, select.ui-datepicker-year").
+ prop("disabled", true);
+ }
+ this._disabledInputs = $.map(this._disabledInputs,
+ function(value) { return (value === target ? null : value); }); // delete entry
+ this._disabledInputs[this._disabledInputs.length] = target;
+ },
+
+ /* Is the first field in a jQuery collection disabled as a datepicker?
+ * @param target element - the target input field or division or span
+ * @return boolean - true if disabled, false if enabled
+ */
+ _isDisabledDatepicker: function(target) {
+ if (!target) {
+ return false;
+ }
+ for (var i = 0; i < this._disabledInputs.length; i++) {
+ if (this._disabledInputs[i] === target) {
+ return true;
+ }
+ }
+ return false;
+ },
+
+ /* Retrieve the instance data for the target control.
+ * @param target element - the target input field or division or span
+ * @return object - the associated instance data
+ * @throws error if a jQuery problem getting data
+ */
+ _getInst: function(target) {
+ try {
+ return $.data(target, "datepicker");
+ }
+ catch (err) {
+ throw "Missing instance data for this datepicker";
+ }
+ },
+
+ /* Update or retrieve the settings for a date picker attached to an input field or division.
+ * @param target element - the target input field or division or span
+ * @param name object - the new settings to update or
+ * string - the name of the setting to change or retrieve,
+ * when retrieving also "all" for all instance settings or
+ * "defaults" for all global defaults
+ * @param value any - the new value for the setting
+ * (omit if above is an object or to retrieve a value)
+ */
+ _optionDatepicker: function(target, name, value) {
+ var settings, date, minDate, maxDate,
+ inst = this._getInst(target);
+
+ if (arguments.length === 2 && typeof name === "string") {
+ return (name === "defaults" ? $.extend({}, $.datepicker._defaults) :
+ (inst ? (name === "all" ? $.extend({}, inst.settings) :
+ this._get(inst, name)) : null));
+ }
+
+ settings = name || {};
+ if (typeof name === "string") {
+ settings = {};
+ settings[name] = value;
+ }
+
+ if (inst) {
+ if (this._curInst === inst) {
+ this._hideDatepicker();
+ }
+
+ date = this._getDateDatepicker(target, true);
+ minDate = this._getMinMaxDate(inst, "min");
+ maxDate = this._getMinMaxDate(inst, "max");
+ datepicker_extendRemove(inst.settings, settings);
+ // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
+ if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) {
+ inst.settings.minDate = this._formatDate(inst, minDate);
+ }
+ if (maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined) {
+ inst.settings.maxDate = this._formatDate(inst, maxDate);
+ }
+ if ( "disabled" in settings ) {
+ if ( settings.disabled ) {
+ this._disableDatepicker(target);
+ } else {
+ this._enableDatepicker(target);
+ }
+ }
+ this._attachments($(target), inst);
+ this._autoSize(inst);
+ this._setDate(inst, date);
+ this._updateAlternate(inst);
+ this._updateDatepicker(inst);
+ }
+ },
+
+ // change method deprecated
+ _changeDatepicker: function(target, name, value) {
+ this._optionDatepicker(target, name, value);
+ },
+
+ /* Redraw the date picker attached to an input field or division.
+ * @param target element - the target input field or division or span
+ */
+ _refreshDatepicker: function(target) {
+ var inst = this._getInst(target);
+ if (inst) {
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Set the dates for a jQuery selection.
+ * @param target element - the target input field or division or span
+ * @param date Date - the new date
+ */
+ _setDateDatepicker: function(target, date) {
+ var inst = this._getInst(target);
+ if (inst) {
+ this._setDate(inst, date);
+ this._updateDatepicker(inst);
+ this._updateAlternate(inst);
+ }
+ },
+
+ /* Get the date(s) for the first entry in a jQuery selection.
+ * @param target element - the target input field or division or span
+ * @param noDefault boolean - true if no default date is to be used
+ * @return Date - the current date
+ */
+ _getDateDatepicker: function(target, noDefault) {
+ var inst = this._getInst(target);
+ if (inst && !inst.inline) {
+ this._setDateFromField(inst, noDefault);
+ }
+ return (inst ? this._getDate(inst) : null);
+ },
+
+ /* Handle keystrokes. */
+ _doKeyDown: function(event) {
+ var onSelect, dateStr, sel,
+ inst = $.datepicker._getInst(event.target),
+ handled = true,
+ isRTL = inst.dpDiv.is(".ui-datepicker-rtl");
+
+ inst._keyEvent = true;
+ if ($.datepicker._datepickerShowing) {
+ switch (event.keyCode) {
+ case 9: $.datepicker._hideDatepicker();
+ handled = false;
+ break; // hide on tab out
+ case 13: sel = $("td." + $.datepicker._dayOverClass + ":not(." +
+ $.datepicker._currentClass + ")", inst.dpDiv);
+ if (sel[0]) {
+ $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
+ }
+
+ onSelect = $.datepicker._get(inst, "onSelect");
+ if (onSelect) {
+ dateStr = $.datepicker._formatDate(inst);
+
+ // trigger custom callback
+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);
+ } else {
+ $.datepicker._hideDatepicker();
+ }
+
+ return false; // don't submit the form
+ case 27: $.datepicker._hideDatepicker();
+ break; // hide on escape
+ case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ -$.datepicker._get(inst, "stepBigMonths") :
+ -$.datepicker._get(inst, "stepMonths")), "M");
+ break; // previous month/year on page up/+ ctrl
+ case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ +$.datepicker._get(inst, "stepBigMonths") :
+ +$.datepicker._get(inst, "stepMonths")), "M");
+ break; // next month/year on page down/+ ctrl
+ case 35: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._clearDate(event.target);
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // clear on ctrl or command +end
+ case 36: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._gotoToday(event.target);
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // current on ctrl or command +home
+ case 37: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ // -1 day on ctrl or command +left
+ if (event.originalEvent.altKey) {
+ $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ -$.datepicker._get(inst, "stepBigMonths") :
+ -$.datepicker._get(inst, "stepMonths")), "M");
+ }
+ // next month/year on alt +left on Mac
+ break;
+ case 38: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, -7, "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // -1 week on ctrl or command +up
+ case 39: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ // +1 day on ctrl or command +right
+ if (event.originalEvent.altKey) {
+ $.datepicker._adjustDate(event.target, (event.ctrlKey ?
+ +$.datepicker._get(inst, "stepBigMonths") :
+ +$.datepicker._get(inst, "stepMonths")), "M");
+ }
+ // next month/year on alt +right
+ break;
+ case 40: if (event.ctrlKey || event.metaKey) {
+ $.datepicker._adjustDate(event.target, +7, "D");
+ }
+ handled = event.ctrlKey || event.metaKey;
+ break; // +1 week on ctrl or command +down
+ default: handled = false;
+ }
+ } else if (event.keyCode === 36 && event.ctrlKey) { // display the date picker on ctrl+home
+ $.datepicker._showDatepicker(this);
+ } else {
+ handled = false;
+ }
+
+ if (handled) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ },
+
+ /* Filter entered characters - based on date format. */
+ _doKeyPress: function(event) {
+ var chars, chr,
+ inst = $.datepicker._getInst(event.target);
+
+ if ($.datepicker._get(inst, "constrainInput")) {
+ chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat"));
+ chr = String.fromCharCode(event.charCode == null ? event.keyCode : event.charCode);
+ return event.ctrlKey || event.metaKey || (chr < " " || !chars || chars.indexOf(chr) > -1);
+ }
+ },
+
+ /* Synchronise manual entry and field/alternate field. */
+ _doKeyUp: function(event) {
+ var date,
+ inst = $.datepicker._getInst(event.target);
+
+ if (inst.input.val() !== inst.lastVal) {
+ try {
+ date = $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
+ (inst.input ? inst.input.val() : null),
+ $.datepicker._getFormatConfig(inst));
+
+ if (date) { // only if valid
+ $.datepicker._setDateFromField(inst);
+ $.datepicker._updateAlternate(inst);
+ $.datepicker._updateDatepicker(inst);
+ }
+ }
+ catch (err) {
+ }
+ }
+ return true;
+ },
+
+ /* Pop-up the date picker for a given input field.
+ * If false returned from beforeShow event handler do not show.
+ * @param input element - the input field attached to the date picker or
+ * event - if triggered by focus
+ */
+ _showDatepicker: function(input) {
+ input = input.target || input;
+ if (input.nodeName.toLowerCase() !== "input") { // find from button/image trigger
+ input = $("input", input.parentNode)[0];
+ }
+
+ if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput === input) { // already here
+ return;
+ }
+
+ var inst, beforeShow, beforeShowSettings, isFixed,
+ offset, showAnim, duration;
+
+ inst = $.datepicker._getInst(input);
+ if ($.datepicker._curInst && $.datepicker._curInst !== inst) {
+ $.datepicker._curInst.dpDiv.stop(true, true);
+ if ( inst && $.datepicker._datepickerShowing ) {
+ $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );
+ }
+ }
+
+ beforeShow = $.datepicker._get(inst, "beforeShow");
+ beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};
+ if(beforeShowSettings === false){
+ return;
+ }
+ datepicker_extendRemove(inst.settings, beforeShowSettings);
+
+ inst.lastVal = null;
+ $.datepicker._lastInput = input;
+ $.datepicker._setDateFromField(inst);
+
+ if ($.datepicker._inDialog) { // hide cursor
+ input.value = "";
+ }
+ if (!$.datepicker._pos) { // position below input
+ $.datepicker._pos = $.datepicker._findPos(input);
+ $.datepicker._pos[1] += input.offsetHeight; // add the height
+ }
+
+ isFixed = false;
+ $(input).parents().each(function() {
+ isFixed |= $(this).css("position") === "fixed";
+ return !isFixed;
+ });
+
+ offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
+ $.datepicker._pos = null;
+ //to avoid flashes on Firefox
+ inst.dpDiv.empty();
+ // determine sizing offscreen
+ inst.dpDiv.css({position: "absolute", display: "block", top: "-1000px"});
+ $.datepicker._updateDatepicker(inst);
+ // fix width for dynamic number of date pickers
+ // and adjust position before showing
+ offset = $.datepicker._checkOffset(inst, offset, isFixed);
+ inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
+ "static" : (isFixed ? "fixed" : "absolute")), display: "none",
+ left: offset.left + "px", top: offset.top + "px"});
+
+ if (!inst.inline) {
+ showAnim = $.datepicker._get(inst, "showAnim");
+ duration = $.datepicker._get(inst, "duration");
+ inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
+ $.datepicker._datepickerShowing = true;
+
+ if ( $.effects && $.effects.effect[ showAnim ] ) {
+ inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration);
+ } else {
+ inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
+ }
+
+ if ( $.datepicker._shouldFocusInput( inst ) ) {
+ inst.input.focus();
+ }
+
+ $.datepicker._curInst = inst;
+ }
+ },
+
+ /* Generate the date picker content. */
+ _updateDatepicker: function(inst) {
+ this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
+ datepicker_instActive = inst; // for delegate hover events
+ inst.dpDiv.empty().append(this._generateHTML(inst));
+ this._attachHandlers(inst);
+
+ var origyearshtml,
+ numMonths = this._getNumberOfMonths(inst),
+ cols = numMonths[1],
+ width = 17,
+ activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
+
+ if ( activeCell.length > 0 ) {
+ datepicker_handleMouseover.apply( activeCell.get( 0 ) );
+ }
+
+ inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
+ if (cols > 1) {
+ inst.dpDiv.addClass("ui-datepicker-multi-" + cols).css("width", (width * cols) + "em");
+ }
+ inst.dpDiv[(numMonths[0] !== 1 || numMonths[1] !== 1 ? "add" : "remove") +
+ "Class"]("ui-datepicker-multi");
+ inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
+ "Class"]("ui-datepicker-rtl");
+
+ if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
+ inst.input.focus();
+ }
+
+ // deffered render of the years select (to avoid flashes on Firefox)
+ if( inst.yearshtml ){
+ origyearshtml = inst.yearshtml;
+ setTimeout(function(){
+ //assure that inst.yearshtml didn't change.
+ if( origyearshtml === inst.yearshtml && inst.yearshtml ){
+ inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml);
+ }
+ origyearshtml = inst.yearshtml = null;
+ }, 0);
+ }
+ },
+
+ // #6694 - don't focus the input if it's already focused
+ // this breaks the change event in IE
+ // Support: IE and jQuery <1.9
+ _shouldFocusInput: function( inst ) {
+ return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
+ },
+
+ /* Check positioning to remain on screen. */
+ _checkOffset: function(inst, offset, isFixed) {
+ var dpWidth = inst.dpDiv.outerWidth(),
+ dpHeight = inst.dpDiv.outerHeight(),
+ inputWidth = inst.input ? inst.input.outerWidth() : 0,
+ inputHeight = inst.input ? inst.input.outerHeight() : 0,
+ viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft()),
+ viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());
+
+ offset.left -= (this._get(inst, "isRTL") ? (dpWidth - inputWidth) : 0);
+ offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0;
+ offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
+
+ // now check if datepicker is showing outside window viewport - move to a better place if so.
+ offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?
+ Math.abs(offset.left + dpWidth - viewWidth) : 0);
+ offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?
+ Math.abs(dpHeight + inputHeight) : 0);
+
+ return offset;
+ },
+
+ /* Find an object's position on the screen. */
+ _findPos: function(obj) {
+ var position,
+ inst = this._getInst(obj),
+ isRTL = this._get(inst, "isRTL");
+
+ while (obj && (obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden(obj))) {
+ obj = obj[isRTL ? "previousSibling" : "nextSibling"];
+ }
+
+ position = $(obj).offset();
+ return [position.left, position.top];
+ },
+
+ /* Hide the date picker from view.
+ * @param input element - the input field attached to the date picker
+ */
+ _hideDatepicker: function(input) {
+ var showAnim, duration, postProcess, onClose,
+ inst = this._curInst;
+
+ if (!inst || (input && inst !== $.data(input, "datepicker"))) {
+ return;
+ }
+
+ if (this._datepickerShowing) {
+ showAnim = this._get(inst, "showAnim");
+ duration = this._get(inst, "duration");
+ postProcess = function() {
+ $.datepicker._tidyDialog(inst);
+ };
+
+ // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
+ if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
+ inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess);
+ } else {
+ inst.dpDiv[(showAnim === "slideDown" ? "slideUp" :
+ (showAnim === "fadeIn" ? "fadeOut" : "hide"))]((showAnim ? duration : null), postProcess);
+ }
+
+ if (!showAnim) {
+ postProcess();
+ }
+ this._datepickerShowing = false;
+
+ onClose = this._get(inst, "onClose");
+ if (onClose) {
+ onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst]);
+ }
+
+ this._lastInput = null;
+ if (this._inDialog) {
+ this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" });
+ if ($.blockUI) {
+ $.unblockUI();
+ $("body").append(this.dpDiv);
+ }
+ }
+ this._inDialog = false;
+ }
+ },
+
+ /* Tidy up after a dialog display. */
+ _tidyDialog: function(inst) {
+ inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar");
+ },
+
+ /* Close date picker if clicked elsewhere. */
+ _checkExternalClick: function(event) {
+ if (!$.datepicker._curInst) {
+ return;
+ }
+
+ var $target = $(event.target),
+ inst = $.datepicker._getInst($target[0]);
+
+ if ( ( ( $target[0].id !== $.datepicker._mainDivId &&
+ $target.parents("#" + $.datepicker._mainDivId).length === 0 &&
+ !$target.hasClass($.datepicker.markerClassName) &&
+ !$target.closest("." + $.datepicker._triggerClass).length &&
+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
+ ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst !== inst ) ) {
+ $.datepicker._hideDatepicker();
+ }
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustDate: function(id, offset, period) {
+ var target = $(id),
+ inst = this._getInst(target[0]);
+
+ if (this._isDisabledDatepicker(target[0])) {
+ return;
+ }
+ this._adjustInstDate(inst, offset +
+ (period === "M" ? this._get(inst, "showCurrentAtPos") : 0), // undo positioning
+ period);
+ this._updateDatepicker(inst);
+ },
+
+ /* Action for current link. */
+ _gotoToday: function(id) {
+ var date,
+ target = $(id),
+ inst = this._getInst(target[0]);
+
+ if (this._get(inst, "gotoCurrent") && inst.currentDay) {
+ inst.selectedDay = inst.currentDay;
+ inst.drawMonth = inst.selectedMonth = inst.currentMonth;
+ inst.drawYear = inst.selectedYear = inst.currentYear;
+ } else {
+ date = new Date();
+ inst.selectedDay = date.getDate();
+ inst.drawMonth = inst.selectedMonth = date.getMonth();
+ inst.drawYear = inst.selectedYear = date.getFullYear();
+ }
+ this._notifyChange(inst);
+ this._adjustDate(target);
+ },
+
+ /* Action for selecting a new month/year. */
+ _selectMonthYear: function(id, select, period) {
+ var target = $(id),
+ inst = this._getInst(target[0]);
+
+ inst["selected" + (period === "M" ? "Month" : "Year")] =
+ inst["draw" + (period === "M" ? "Month" : "Year")] =
+ parseInt(select.options[select.selectedIndex].value,10);
+
+ this._notifyChange(inst);
+ this._adjustDate(target);
+ },
+
+ /* Action for selecting a day. */
+ _selectDay: function(id, month, year, td) {
+ var inst,
+ target = $(id);
+
+ if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {
+ return;
+ }
+
+ inst = this._getInst(target[0]);
+ inst.selectedDay = inst.currentDay = $("a", td).html();
+ inst.selectedMonth = inst.currentMonth = month;
+ inst.selectedYear = inst.currentYear = year;
+ this._selectDate(id, this._formatDate(inst,
+ inst.currentDay, inst.currentMonth, inst.currentYear));
+ },
+
+ /* Erase the input field and hide the date picker. */
+ _clearDate: function(id) {
+ var target = $(id);
+ this._selectDate(target, "");
+ },
+
+ /* Update the input field with the selected date. */
+ _selectDate: function(id, dateStr) {
+ var onSelect,
+ target = $(id),
+ inst = this._getInst(target[0]);
+
+ dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
+ if (inst.input) {
+ inst.input.val(dateStr);
+ }
+ this._updateAlternate(inst);
+
+ onSelect = this._get(inst, "onSelect");
+ if (onSelect) {
+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback
+ } else if (inst.input) {
+ inst.input.trigger("change"); // fire the change event
+ }
+
+ if (inst.inline){
+ this._updateDatepicker(inst);
+ } else {
+ this._hideDatepicker();
+ this._lastInput = inst.input[0];
+ if (typeof(inst.input[0]) !== "object") {
+ inst.input.focus(); // restore focus
+ }
+ this._lastInput = null;
+ }
+ },
+
+ /* Update any alternate field to synchronise with the main field. */
+ _updateAlternate: function(inst) {
+ var altFormat, date, dateStr,
+ altField = this._get(inst, "altField");
+
+ if (altField) { // update alternate field too
+ altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat");
+ date = this._getDate(inst);
+ dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));
+ $(altField).each(function() { $(this).val(dateStr); });
+ }
+ },
+
+ /* Set as beforeShowDay function to prevent selection of weekends.
+ * @param date Date - the date to customise
+ * @return [boolean, string] - is this date selectable?, what is its CSS class?
+ */
+ noWeekends: function(date) {
+ var day = date.getDay();
+ return [(day > 0 && day < 6), ""];
+ },
+
+ /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
+ * @param date Date - the date to get the week for
+ * @return number - the number of the week within the year that contains this date
+ */
+ iso8601Week: function(date) {
+ var time,
+ checkDate = new Date(date.getTime());
+
+ // Find Thursday of this week starting on Monday
+ checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
+
+ time = checkDate.getTime();
+ checkDate.setMonth(0); // Compare with Jan 1
+ checkDate.setDate(1);
+ return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
+ },
+
+ /* Parse a string value into a date object.
+ * See formatDate below for the possible formats.
+ *
+ * @param format string - the expected format of the date
+ * @param value string - the date in the above format
+ * @param settings Object - attributes include:
+ * shortYearCutoff number - the cutoff year for determining the century (optional)
+ * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
+ * dayNames string[7] - names of the days from Sunday (optional)
+ * monthNamesShort string[12] - abbreviated names of the months (optional)
+ * monthNames string[12] - names of the months (optional)
+ * @return Date - the extracted date value or null if value is blank
+ */
+ parseDate: function (format, value, settings) {
+ if (format == null || value == null) {
+ throw "Invalid arguments";
+ }
+
+ value = (typeof value === "object" ? value.toString() : value + "");
+ if (value === "") {
+ return null;
+ }
+
+ var iFormat, dim, extra,
+ iValue = 0,
+ shortYearCutoffTemp = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff,
+ shortYearCutoff = (typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp :
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoffTemp, 10)),
+ dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
+ dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
+ monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
+ monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
+ year = -1,
+ month = -1,
+ day = -1,
+ doy = -1,
+ literal = false,
+ date,
+ // Check whether a format character is doubled
+ lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
+ if (matches) {
+ iFormat++;
+ }
+ return matches;
+ },
+ // Extract a number from the string value
+ getNumber = function(match) {
+ var isDoubled = lookAhead(match),
+ size = (match === "@" ? 14 : (match === "!" ? 20 :
+ (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
+ minSize = (match === "y" ? size : 1),
+ digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
+ num = value.substring(iValue).match(digits);
+ if (!num) {
+ throw "Missing number at position " + iValue;
+ }
+ iValue += num[0].length;
+ return parseInt(num[0], 10);
+ },
+ // Extract a name from the string value and convert to an index
+ getName = function(match, shortNames, longNames) {
+ var index = -1,
+ names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) {
+ return [ [k, v] ];
+ }).sort(function (a, b) {
+ return -(a[1].length - b[1].length);
+ });
+
+ $.each(names, function (i, pair) {
+ var name = pair[1];
+ if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
+ index = pair[0];
+ iValue += name.length;
+ return false;
+ }
+ });
+ if (index !== -1) {
+ return index + 1;
+ } else {
+ throw "Unknown name at position " + iValue;
+ }
+ },
+ // Confirm that a literal character matches the string value
+ checkLiteral = function() {
+ if (value.charAt(iValue) !== format.charAt(iFormat)) {
+ throw "Unexpected literal at position " + iValue;
+ }
+ iValue++;
+ };
+
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal) {
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
+ literal = false;
+ } else {
+ checkLiteral();
+ }
+ } else {
+ switch (format.charAt(iFormat)) {
+ case "d":
+ day = getNumber("d");
+ break;
+ case "D":
+ getName("D", dayNamesShort, dayNames);
+ break;
+ case "o":
+ doy = getNumber("o");
+ break;
+ case "m":
+ month = getNumber("m");
+ break;
+ case "M":
+ month = getName("M", monthNamesShort, monthNames);
+ break;
+ case "y":
+ year = getNumber("y");
+ break;
+ case "@":
+ date = new Date(getNumber("@"));
+ year = date.getFullYear();
+ month = date.getMonth() + 1;
+ day = date.getDate();
+ break;
+ case "!":
+ date = new Date((getNumber("!") - this._ticksTo1970) / 10000);
+ year = date.getFullYear();
+ month = date.getMonth() + 1;
+ day = date.getDate();
+ break;
+ case "'":
+ if (lookAhead("'")){
+ checkLiteral();
+ } else {
+ literal = true;
+ }
+ break;
+ default:
+ checkLiteral();
+ }
+ }
+ }
+
+ if (iValue < value.length){
+ extra = value.substr(iValue);
+ if (!/^\s+/.test(extra)) {
+ throw "Extra/unparsed characters found in date: " + extra;
+ }
+ }
+
+ if (year === -1) {
+ year = new Date().getFullYear();
+ } else if (year < 100) {
+ year += new Date().getFullYear() - new Date().getFullYear() % 100 +
+ (year <= shortYearCutoff ? 0 : -100);
+ }
+
+ if (doy > -1) {
+ month = 1;
+ day = doy;
+ do {
+ dim = this._getDaysInMonth(year, month - 1);
+ if (day <= dim) {
+ break;
+ }
+ month++;
+ day -= dim;
+ } while (true);
+ }
+
+ date = this._daylightSavingAdjust(new Date(year, month - 1, day));
+ if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
+ throw "Invalid date"; // E.g. 31/02/00
+ }
+ return date;
+ },
+
+ /* Standard date formats. */
+ ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
+ COOKIE: "D, dd M yy",
+ ISO_8601: "yy-mm-dd",
+ RFC_822: "D, d M y",
+ RFC_850: "DD, dd-M-y",
+ RFC_1036: "D, d M y",
+ RFC_1123: "D, d M yy",
+ RFC_2822: "D, d M yy",
+ RSS: "D, d M y", // RFC 822
+ TICKS: "!",
+ TIMESTAMP: "@",
+ W3C: "yy-mm-dd", // ISO 8601
+
+ _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +
+ Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),
+
+ /* Format a date object into a string value.
+ * The format can be combinations of the following:
+ * d - day of month (no leading zero)
+ * dd - day of month (two digit)
+ * o - day of year (no leading zeros)
+ * oo - day of year (three digit)
+ * D - day name short
+ * DD - day name long
+ * m - month of year (no leading zero)
+ * mm - month of year (two digit)
+ * M - month name short
+ * MM - month name long
+ * y - year (two digit)
+ * yy - year (four digit)
+ * @ - Unix timestamp (ms since 01/01/1970)
+ * ! - Windows ticks (100ns since 01/01/0001)
+ * "..." - literal text
+ * '' - single quote
+ *
+ * @param format string - the desired format of the date
+ * @param date Date - the date value to format
+ * @param settings Object - attributes include:
+ * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
+ * dayNames string[7] - names of the days from Sunday (optional)
+ * monthNamesShort string[12] - abbreviated names of the months (optional)
+ * monthNames string[12] - names of the months (optional)
+ * @return string - the date in the above format
+ */
+ formatDate: function (format, date, settings) {
+ if (!date) {
+ return "";
+ }
+
+ var iFormat,
+ dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort,
+ dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames,
+ monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort,
+ monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames,
+ // Check whether a format character is doubled
+ lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
+ if (matches) {
+ iFormat++;
+ }
+ return matches;
+ },
+ // Format a number, with leading zero if necessary
+ formatNumber = function(match, value, len) {
+ var num = "" + value;
+ if (lookAhead(match)) {
+ while (num.length < len) {
+ num = "0" + num;
+ }
+ }
+ return num;
+ },
+ // Format a name, short or long as requested
+ formatName = function(match, value, shortNames, longNames) {
+ return (lookAhead(match) ? longNames[value] : shortNames[value]);
+ },
+ output = "",
+ literal = false;
+
+ if (date) {
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal) {
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
+ literal = false;
+ } else {
+ output += format.charAt(iFormat);
+ }
+ } else {
+ switch (format.charAt(iFormat)) {
+ case "d":
+ output += formatNumber("d", date.getDate(), 2);
+ break;
+ case "D":
+ output += formatName("D", date.getDay(), dayNamesShort, dayNames);
+ break;
+ case "o":
+ output += formatNumber("o",
+ Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
+ break;
+ case "m":
+ output += formatNumber("m", date.getMonth() + 1, 2);
+ break;
+ case "M":
+ output += formatName("M", date.getMonth(), monthNamesShort, monthNames);
+ break;
+ case "y":
+ output += (lookAhead("y") ? date.getFullYear() :
+ (date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100);
+ break;
+ case "@":
+ output += date.getTime();
+ break;
+ case "!":
+ output += date.getTime() * 10000 + this._ticksTo1970;
+ break;
+ case "'":
+ if (lookAhead("'")) {
+ output += "'";
+ } else {
+ literal = true;
+ }
+ break;
+ default:
+ output += format.charAt(iFormat);
+ }
+ }
+ }
+ }
+ return output;
+ },
+
+ /* Extract all possible characters from the date format. */
+ _possibleChars: function (format) {
+ var iFormat,
+ chars = "",
+ literal = false,
+ // Check whether a format character is doubled
+ lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
+ if (matches) {
+ iFormat++;
+ }
+ return matches;
+ };
+
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal) {
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
+ literal = false;
+ } else {
+ chars += format.charAt(iFormat);
+ }
+ } else {
+ switch (format.charAt(iFormat)) {
+ case "d": case "m": case "y": case "@":
+ chars += "0123456789";
+ break;
+ case "D": case "M":
+ return null; // Accept anything
+ case "'":
+ if (lookAhead("'")) {
+ chars += "'";
+ } else {
+ literal = true;
+ }
+ break;
+ default:
+ chars += format.charAt(iFormat);
+ }
+ }
+ }
+ return chars;
+ },
+
+ /* Get a setting value, defaulting if necessary. */
+ _get: function(inst, name) {
+ return inst.settings[name] !== undefined ?
+ inst.settings[name] : this._defaults[name];
+ },
+
+ /* Parse existing date and initialise date picker. */
+ _setDateFromField: function(inst, noDefault) {
+ if (inst.input.val() === inst.lastVal) {
+ return;
+ }
+
+ var dateFormat = this._get(inst, "dateFormat"),
+ dates = inst.lastVal = inst.input ? inst.input.val() : null,
+ defaultDate = this._getDefaultDate(inst),
+ date = defaultDate,
+ settings = this._getFormatConfig(inst);
+
+ try {
+ date = this.parseDate(dateFormat, dates, settings) || defaultDate;
+ } catch (event) {
+ dates = (noDefault ? "" : dates);
+ }
+ inst.selectedDay = date.getDate();
+ inst.drawMonth = inst.selectedMonth = date.getMonth();
+ inst.drawYear = inst.selectedYear = date.getFullYear();
+ inst.currentDay = (dates ? date.getDate() : 0);
+ inst.currentMonth = (dates ? date.getMonth() : 0);
+ inst.currentYear = (dates ? date.getFullYear() : 0);
+ this._adjustInstDate(inst);
+ },
+
+ /* Retrieve the default date shown on opening. */
+ _getDefaultDate: function(inst) {
+ return this._restrictMinMax(inst,
+ this._determineDate(inst, this._get(inst, "defaultDate"), new Date()));
+ },
+
+ /* A date may be specified as an exact value or a relative one. */
+ _determineDate: function(inst, date, defaultDate) {
+ var offsetNumeric = function(offset) {
+ var date = new Date();
+ date.setDate(date.getDate() + offset);
+ return date;
+ },
+ offsetString = function(offset) {
+ try {
+ return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
+ offset, $.datepicker._getFormatConfig(inst));
+ }
+ catch (e) {
+ // Ignore
+ }
+
+ var date = (offset.toLowerCase().match(/^c/) ?
+ $.datepicker._getDate(inst) : null) || new Date(),
+ year = date.getFullYear(),
+ month = date.getMonth(),
+ day = date.getDate(),
+ pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
+ matches = pattern.exec(offset);
+
+ while (matches) {
+ switch (matches[2] || "d") {
+ case "d" : case "D" :
+ day += parseInt(matches[1],10); break;
+ case "w" : case "W" :
+ day += parseInt(matches[1],10) * 7; break;
+ case "m" : case "M" :
+ month += parseInt(matches[1],10);
+ day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
+ break;
+ case "y": case "Y" :
+ year += parseInt(matches[1],10);
+ day = Math.min(day, $.datepicker._getDaysInMonth(year, month));
+ break;
+ }
+ matches = pattern.exec(offset);
+ }
+ return new Date(year, month, day);
+ },
+ newDate = (date == null || date === "" ? defaultDate : (typeof date === "string" ? offsetString(date) :
+ (typeof date === "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));
+
+ newDate = (newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate);
+ if (newDate) {
+ newDate.setHours(0);
+ newDate.setMinutes(0);
+ newDate.setSeconds(0);
+ newDate.setMilliseconds(0);
+ }
+ return this._daylightSavingAdjust(newDate);
+ },
+
+ /* Handle switch to/from daylight saving.
+ * Hours may be non-zero on daylight saving cut-over:
+ * > 12 when midnight changeover, but then cannot generate
+ * midnight datetime, so jump to 1AM, otherwise reset.
+ * @param date (Date) the date to check
+ * @return (Date) the corrected date
+ */
+ _daylightSavingAdjust: function(date) {
+ if (!date) {
+ return null;
+ }
+ date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
+ return date;
+ },
+
+ /* Set the date(s) directly. */
+ _setDate: function(inst, date, noChange) {
+ var clear = !date,
+ origMonth = inst.selectedMonth,
+ origYear = inst.selectedYear,
+ newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));
+
+ inst.selectedDay = inst.currentDay = newDate.getDate();
+ inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
+ inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
+ if ((origMonth !== inst.selectedMonth || origYear !== inst.selectedYear) && !noChange) {
+ this._notifyChange(inst);
+ }
+ this._adjustInstDate(inst);
+ if (inst.input) {
+ inst.input.val(clear ? "" : this._formatDate(inst));
+ }
+ },
+
+ /* Retrieve the date(s) directly. */
+ _getDate: function(inst) {
+ var startDate = (!inst.currentYear || (inst.input && inst.input.val() === "") ? null :
+ this._daylightSavingAdjust(new Date(
+ inst.currentYear, inst.currentMonth, inst.currentDay)));
+ return startDate;
+ },
+
+ /* Attach the onxxx handlers. These are declared statically so
+ * they work with static code transformers like Caja.
+ */
+ _attachHandlers: function(inst) {
+ var stepMonths = this._get(inst, "stepMonths"),
+ id = "#" + inst.id.replace( /\\\\/g, "\\" );
+ inst.dpDiv.find("[data-handler]").map(function () {
+ var handler = {
+ prev: function () {
+ $.datepicker._adjustDate(id, -stepMonths, "M");
+ },
+ next: function () {
+ $.datepicker._adjustDate(id, +stepMonths, "M");
+ },
+ hide: function () {
+ $.datepicker._hideDatepicker();
+ },
+ today: function () {
+ $.datepicker._gotoToday(id);
+ },
+ selectDay: function () {
+ $.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
+ return false;
+ },
+ selectMonth: function () {
+ $.datepicker._selectMonthYear(id, this, "M");
+ return false;
+ },
+ selectYear: function () {
+ $.datepicker._selectMonthYear(id, this, "Y");
+ return false;
+ }
+ };
+ $(this).bind(this.getAttribute("data-event"), handler[this.getAttribute("data-handler")]);
+ });
+ },
+
+ /* Generate the HTML for the current state of the date picker. */
+ _generateHTML: function(inst) {
+ var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
+ controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
+ monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
+ selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
+ cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
+ printDate, dRow, tbody, daySettings, otherMonth, unselectable,
+ tempDate = new Date(),
+ today = this._daylightSavingAdjust(
+ new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate())), // clear time
+ isRTL = this._get(inst, "isRTL"),
+ showButtonPanel = this._get(inst, "showButtonPanel"),
+ hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext"),
+ navigationAsDateFormat = this._get(inst, "navigationAsDateFormat"),
+ numMonths = this._getNumberOfMonths(inst),
+ showCurrentAtPos = this._get(inst, "showCurrentAtPos"),
+ stepMonths = this._get(inst, "stepMonths"),
+ isMultiMonth = (numMonths[0] !== 1 || numMonths[1] !== 1),
+ currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :
+ new Date(inst.currentYear, inst.currentMonth, inst.currentDay))),
+ minDate = this._getMinMaxDate(inst, "min"),
+ maxDate = this._getMinMaxDate(inst, "max"),
+ drawMonth = inst.drawMonth - showCurrentAtPos,
+ drawYear = inst.drawYear;
+
+ if (drawMonth < 0) {
+ drawMonth += 12;
+ drawYear--;
+ }
+ if (maxDate) {
+ maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),
+ maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));
+ maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
+ while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {
+ drawMonth--;
+ if (drawMonth < 0) {
+ drawMonth = 11;
+ drawYear--;
+ }
+ }
+ }
+ inst.drawMonth = drawMonth;
+ inst.drawYear = drawYear;
+
+ prevText = this._get(inst, "prevText");
+ prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
+ this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
+ this._getFormatConfig(inst)));
+
+ prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
+ "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
+ " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>" :
+ (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+ prevText +"'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + prevText + "</span></a>"));
+
+ nextText = this._get(inst, "nextText");
+ nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,
+ this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),
+ this._getFormatConfig(inst)));
+
+ next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
+ "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
+ " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>" :
+ (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+ nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + nextText + "</span></a>"));
+
+ currentText = this._get(inst, "currentText");
+ gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today);
+ currentText = (!navigationAsDateFormat ? currentText :
+ this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
+
+ controls = (!inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
+ this._get(inst, "closeText") + "</button>" : "");
+
+ buttonPanel = (showButtonPanel) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + (isRTL ? controls : "") +
+ (this._isInRange(inst, gotoDate) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
+ ">" + currentText + "</button>" : "") + (isRTL ? "" : controls) + "</div>" : "";
+
+ firstDay = parseInt(this._get(inst, "firstDay"),10);
+ firstDay = (isNaN(firstDay) ? 0 : firstDay);
+
+ showWeek = this._get(inst, "showWeek");
+ dayNames = this._get(inst, "dayNames");
+ dayNamesMin = this._get(inst, "dayNamesMin");
+ monthNames = this._get(inst, "monthNames");
+ monthNamesShort = this._get(inst, "monthNamesShort");
+ beforeShowDay = this._get(inst, "beforeShowDay");
+ showOtherMonths = this._get(inst, "showOtherMonths");
+ selectOtherMonths = this._get(inst, "selectOtherMonths");
+ defaultDate = this._getDefaultDate(inst);
+ html = "";
+ dow;
+ for (row = 0; row < numMonths[0]; row++) {
+ group = "";
+ this.maxRows = 4;
+ for (col = 0; col < numMonths[1]; col++) {
+ selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
+ cornerClass = " ui-corner-all";
+ calender = "";
+ if (isMultiMonth) {
+ calender += "<div class='ui-datepicker-group";
+ if (numMonths[1] > 1) {
+ switch (col) {
+ case 0: calender += " ui-datepicker-group-first";
+ cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
+ case numMonths[1]-1: calender += " ui-datepicker-group-last";
+ cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;
+ default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
+ }
+ }
+ calender += "'>";
+ }
+ calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
+ (/all|left/.test(cornerClass) && row === 0 ? (isRTL ? next : prev) : "") +
+ (/all|right/.test(cornerClass) && row === 0 ? (isRTL ? prev : next) : "") +
+ this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
+ row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers
+ "</div><table class='ui-datepicker-calendar'><thead>" +
+ "<tr>";
+ thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
+ for (dow = 0; dow < 7; dow++) { // days of the week
+ day = (dow + firstDay) % 7;
+ thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
+ "<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
+ }
+ calender += thead + "</tr></thead><tbody>";
+ daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
+ if (drawYear === inst.selectedYear && drawMonth === inst.selectedMonth) {
+ inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
+ }
+ leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
+ curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate
+ numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043)
+ this.maxRows = numRows;
+ printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
+ for (dRow = 0; dRow < numRows; dRow++) { // create date picker rows
+ calender += "<tr>";
+ tbody = (!showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
+ this._get(inst, "calculateWeek")(printDate) + "</td>");
+ for (dow = 0; dow < 7; dow++) { // create date picker days
+ daySettings = (beforeShowDay ?
+ beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]);
+ otherMonth = (printDate.getMonth() !== drawMonth);
+ unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||
+ (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
+ tbody += "<td class='" +
+ ((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + // highlight weekends
+ (otherMonth ? " ui-datepicker-other-month" : "") + // highlight days from other months
+ ((printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent) || // user pressed key
+ (defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime()) ?
+ // or defaultDate is current printedDate and defaultDate is selectedDate
+ " " + this._dayOverClass : "") + // highlight selected day
+ (unselectable ? " " + this._unselectableClass + " ui-state-disabled": "") + // highlight unselectable days
+ (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
+ (printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
+ (printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
+ ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title
+ (unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
+ (otherMonth && !showOtherMonths ? " " : // display for other months
+ (unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
+ (printDate.getTime() === today.getTime() ? " ui-state-highlight" : "") +
+ (printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "") + // highlight selected day
+ (otherMonth ? " ui-priority-secondary" : "") + // distinguish dates from other months
+ "' href='#'>" + printDate.getDate() + "</a>")) + "</td>"; // display selectable date
+ printDate.setDate(printDate.getDate() + 1);
+ printDate = this._daylightSavingAdjust(printDate);
+ }
+ calender += tbody + "</tr>";
+ }
+ drawMonth++;
+ if (drawMonth > 11) {
+ drawMonth = 0;
+ drawYear++;
+ }
+ calender += "</tbody></table>" + (isMultiMonth ? "</div>" +
+ ((numMonths[0] > 0 && col === numMonths[1]-1) ? "<div class='ui-datepicker-row-break'></div>" : "") : "");
+ group += calender;
+ }
+ html += group;
+ }
+ html += buttonPanel;
+ inst._keyEvent = false;
+ return html;
+ },
+
+ /* Generate the month and year header. */
+ _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
+ secondary, monthNames, monthNamesShort) {
+
+ var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
+ changeMonth = this._get(inst, "changeMonth"),
+ changeYear = this._get(inst, "changeYear"),
+ showMonthAfterYear = this._get(inst, "showMonthAfterYear"),
+ html = "<div class='ui-datepicker-title'>",
+ monthHtml = "";
+
+ // month selection
+ if (secondary || !changeMonth) {
+ monthHtml += "<span class='ui-datepicker-month'>" + monthNames[drawMonth] + "</span>";
+ } else {
+ inMinYear = (minDate && minDate.getFullYear() === drawYear);
+ inMaxYear = (maxDate && maxDate.getFullYear() === drawYear);
+ monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
+ for ( month = 0; month < 12; month++) {
+ if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) {
+ monthHtml += "<option value='" + month + "'" +
+ (month === drawMonth ? " selected='selected'" : "") +
+ ">" + monthNamesShort[month] + "</option>";
+ }
+ }
+ monthHtml += "</select>";
+ }
+
+ if (!showMonthAfterYear) {
+ html += monthHtml + (secondary || !(changeMonth && changeYear) ? " " : "");
+ }
+
+ // year selection
+ if ( !inst.yearshtml ) {
+ inst.yearshtml = "";
+ if (secondary || !changeYear) {
+ html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
+ } else {
+ // determine range of years to display
+ years = this._get(inst, "yearRange").split(":");
+ thisYear = new Date().getFullYear();
+ determineYear = function(value) {
+ var year = (value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) :
+ (value.match(/[+\-].*/) ? thisYear + parseInt(value, 10) :
+ parseInt(value, 10)));
+ return (isNaN(year) ? thisYear : year);
+ };
+ year = determineYear(years[0]);
+ endYear = Math.max(year, determineYear(years[1] || ""));
+ year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
+ endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
+ inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
+ for (; year <= endYear; year++) {
+ inst.yearshtml += "<option value='" + year + "'" +
+ (year === drawYear ? " selected='selected'" : "") +
+ ">" + year + "</option>";
+ }
+ inst.yearshtml += "</select>";
+
+ html += inst.yearshtml;
+ inst.yearshtml = null;
+ }
+ }
+
+ html += this._get(inst, "yearSuffix");
+ if (showMonthAfterYear) {
+ html += (secondary || !(changeMonth && changeYear) ? " " : "") + monthHtml;
+ }
+ html += "</div>"; // Close datepicker_header
+ return html;
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustInstDate: function(inst, offset, period) {
+ var year = inst.drawYear + (period === "Y" ? offset : 0),
+ month = inst.drawMonth + (period === "M" ? offset : 0),
+ day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period === "D" ? offset : 0),
+ date = this._restrictMinMax(inst, this._daylightSavingAdjust(new Date(year, month, day)));
+
+ inst.selectedDay = date.getDate();
+ inst.drawMonth = inst.selectedMonth = date.getMonth();
+ inst.drawYear = inst.selectedYear = date.getFullYear();
+ if (period === "M" || period === "Y") {
+ this._notifyChange(inst);
+ }
+ },
+
+ /* Ensure a date is within any min/max bounds. */
+ _restrictMinMax: function(inst, date) {
+ var minDate = this._getMinMaxDate(inst, "min"),
+ maxDate = this._getMinMaxDate(inst, "max"),
+ newDate = (minDate && date < minDate ? minDate : date);
+ return (maxDate && newDate > maxDate ? maxDate : newDate);
+ },
+
+ /* Notify change of month/year. */
+ _notifyChange: function(inst) {
+ var onChange = this._get(inst, "onChangeMonthYear");
+ if (onChange) {
+ onChange.apply((inst.input ? inst.input[0] : null),
+ [inst.selectedYear, inst.selectedMonth + 1, inst]);
+ }
+ },
+
+ /* Determine the number of months to show. */
+ _getNumberOfMonths: function(inst) {
+ var numMonths = this._get(inst, "numberOfMonths");
+ return (numMonths == null ? [1, 1] : (typeof numMonths === "number" ? [1, numMonths] : numMonths));
+ },
+
+ /* Determine the current maximum date - ensure no time components are set. */
+ _getMinMaxDate: function(inst, minMax) {
+ return this._determineDate(inst, this._get(inst, minMax + "Date"), null);
+ },
+
+ /* Find the number of days in a given month. */
+ _getDaysInMonth: function(year, month) {
+ return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
+ },
+
+ /* Find the day of the week of the first of a month. */
+ _getFirstDayOfMonth: function(year, month) {
+ return new Date(year, month, 1).getDay();
+ },
+
+ /* Determines if we should allow a "next/prev" month display change. */
+ _canAdjustMonth: function(inst, offset, curYear, curMonth) {
+ var numMonths = this._getNumberOfMonths(inst),
+ date = this._daylightSavingAdjust(new Date(curYear,
+ curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));
+
+ if (offset < 0) {
+ date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
+ }
+ return this._isInRange(inst, date);
+ },
+
+ /* Is the given date in the accepted range? */
+ _isInRange: function(inst, date) {
+ var yearSplit, currentYear,
+ minDate = this._getMinMaxDate(inst, "min"),
+ maxDate = this._getMinMaxDate(inst, "max"),
+ minYear = null,
+ maxYear = null,
+ years = this._get(inst, "yearRange");
+ if (years){
+ yearSplit = years.split(":");
+ currentYear = new Date().getFullYear();
+ minYear = parseInt(yearSplit[0], 10);
+ maxYear = parseInt(yearSplit[1], 10);
+ if ( yearSplit[0].match(/[+\-].*/) ) {
+ minYear += currentYear;
+ }
+ if ( yearSplit[1].match(/[+\-].*/) ) {
+ maxYear += currentYear;
+ }
+ }
+
+ return ((!minDate || date.getTime() >= minDate.getTime()) &&
+ (!maxDate || date.getTime() <= maxDate.getTime()) &&
+ (!minYear || date.getFullYear() >= minYear) &&
+ (!maxYear || date.getFullYear() <= maxYear));
+ },
+
+ /* Provide the configuration settings for formatting/parsing. */
+ _getFormatConfig: function(inst) {
+ var shortYearCutoff = this._get(inst, "shortYearCutoff");
+ shortYearCutoff = (typeof shortYearCutoff !== "string" ? shortYearCutoff :
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
+ return {shortYearCutoff: shortYearCutoff,
+ dayNamesShort: this._get(inst, "dayNamesShort"), dayNames: this._get(inst, "dayNames"),
+ monthNamesShort: this._get(inst, "monthNamesShort"), monthNames: this._get(inst, "monthNames")};
+ },
+
+ /* Format the given date for display. */
+ _formatDate: function(inst, day, month, year) {
+ if (!day) {
+ inst.currentDay = inst.selectedDay;
+ inst.currentMonth = inst.selectedMonth;
+ inst.currentYear = inst.selectedYear;
+ }
+ var date = (day ? (typeof day === "object" ? day :
+ this._daylightSavingAdjust(new Date(year, month, day))) :
+ this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
+ return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst));
+ }
+});
+
+/*
+ * Bind hover events for datepicker elements.
+ * Done via delegate so the binding only occurs once in the lifetime of the parent div.
+ * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
+ */
+function datepicker_bindHover(dpDiv) {
+ var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
+ return dpDiv.delegate(selector, "mouseout", function() {
+ $(this).removeClass("ui-state-hover");
+ if (this.className.indexOf("ui-datepicker-prev") !== -1) {
+ $(this).removeClass("ui-datepicker-prev-hover");
+ }
+ if (this.className.indexOf("ui-datepicker-next") !== -1) {
+ $(this).removeClass("ui-datepicker-next-hover");
+ }
+ })
+ .delegate( selector, "mouseover", datepicker_handleMouseover );
+}
+
+function datepicker_handleMouseover() {
+ if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) {
+ $(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
+ $(this).addClass("ui-state-hover");
+ if (this.className.indexOf("ui-datepicker-prev") !== -1) {
+ $(this).addClass("ui-datepicker-prev-hover");
+ }
+ if (this.className.indexOf("ui-datepicker-next") !== -1) {
+ $(this).addClass("ui-datepicker-next-hover");
+ }
+ }
+}
+
+/* jQuery extend now ignores nulls! */
+function datepicker_extendRemove(target, props) {
+ $.extend(target, props);
+ for (var name in props) {
+ if (props[name] == null) {
+ target[name] = props[name];
+ }
+ }
+ return target;
+}
+
+/* Invoke the datepicker functionality.
+ @param options string - a command, optionally followed by additional parameters or
+ Object - settings for attaching new datepicker functionality
+ @return jQuery object */
+$.fn.datepicker = function(options){
+
+ /* Verify an empty collection wasn't passed - Fixes #6976 */
+ if ( !this.length ) {
+ return this;
+ }
+
+ /* Initialise the date picker. */
+ if (!$.datepicker.initialized) {
+ $(document).mousedown($.datepicker._checkExternalClick);
+ $.datepicker.initialized = true;
+ }
+
+ /* Append datepicker main container to body if not exist. */
+ if ($("#"+$.datepicker._mainDivId).length === 0) {
+ $("body").append($.datepicker.dpDiv);
+ }
+
+ var otherArgs = Array.prototype.slice.call(arguments, 1);
+ if (typeof options === "string" && (options === "isDisabled" || options === "getDate" || options === "widget")) {
+ return $.datepicker["_" + options + "Datepicker"].
+ apply($.datepicker, [this[0]].concat(otherArgs));
+ }
+ if (options === "option" && arguments.length === 2 && typeof arguments[1] === "string") {
+ return $.datepicker["_" + options + "Datepicker"].
+ apply($.datepicker, [this[0]].concat(otherArgs));
+ }
+ return this.each(function() {
+ typeof options === "string" ?
+ $.datepicker["_" + options + "Datepicker"].
+ apply($.datepicker, [this].concat(otherArgs)) :
+ $.datepicker._attachDatepicker(this, options);
+ });
+};
+
+$.datepicker = new Datepicker(); // singleton instance
+$.datepicker.initialized = false;
+$.datepicker.uuid = new Date().getTime();
+$.datepicker.version = "1.11.4";
+
+var datepicker = $.datepicker;
+
+
+/*!
+ * jQuery UI Dialog 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/dialog/
+ */
+
+
+var dialog = $.widget( "ui.dialog", {
+ version: "1.11.4",
+ options: {
+ appendTo: "body",
+ autoOpen: true,
+ buttons: [],
+ closeOnEscape: true,
+ closeText: "Close",
+ dialogClass: "",
+ draggable: true,
+ hide: null,
+ height: "auto",
+ maxHeight: null,
+ maxWidth: null,
+ minHeight: 150,
+ minWidth: 150,
+ modal: false,
+ position: {
+ my: "center",
+ at: "center",
+ of: window,
+ collision: "fit",
+ // Ensure the titlebar is always visible
+ using: function( pos ) {
+ var topOffset = $( this ).css( pos ).offset().top;
+ if ( topOffset < 0 ) {
+ $( this ).css( "top", pos.top - topOffset );
+ }
+ }
+ },
+ resizable: true,
+ show: null,
+ title: null,
+ width: 300,
+
+ // callbacks
+ beforeClose: null,
+ close: null,
+ drag: null,
+ dragStart: null,
+ dragStop: null,
+ focus: null,
+ open: null,
+ resize: null,
+ resizeStart: null,
+ resizeStop: null
+ },
+
+ sizeRelatedOptions: {
+ buttons: true,
+ height: true,
+ maxHeight: true,
+ maxWidth: true,
+ minHeight: true,
+ minWidth: true,
+ width: true
+ },
+
+ resizableRelatedOptions: {
+ maxHeight: true,
+ maxWidth: true,
+ minHeight: true,
+ minWidth: true
+ },
+
+ _create: function() {
+ this.originalCss = {
+ display: this.element[ 0 ].style.display,
+ width: this.element[ 0 ].style.width,
+ minHeight: this.element[ 0 ].style.minHeight,
+ maxHeight: this.element[ 0 ].style.maxHeight,
+ height: this.element[ 0 ].style.height
+ };
+ this.originalPosition = {
+ parent: this.element.parent(),
+ index: this.element.parent().children().index( this.element )
+ };
+ this.originalTitle = this.element.attr( "title" );
+ this.options.title = this.options.title || this.originalTitle;
+
+ this._createWrapper();
+
+ this.element
+ .show()
+ .removeAttr( "title" )
+ .addClass( "ui-dialog-content ui-widget-content" )
+ .appendTo( this.uiDialog );
+
+ this._createTitlebar();
+ this._createButtonPane();
+
+ if ( this.options.draggable && $.fn.draggable ) {
+ this._makeDraggable();
+ }
+ if ( this.options.resizable && $.fn.resizable ) {
+ this._makeResizable();
+ }
+
+ this._isOpen = false;
+
+ this._trackFocus();
+ },
+
+ _init: function() {
+ if ( this.options.autoOpen ) {
+ this.open();
+ }
+ },
+
+ _appendTo: function() {
+ var element = this.options.appendTo;
+ if ( element && (element.jquery || element.nodeType) ) {
+ return $( element );
+ }
+ return this.document.find( element || "body" ).eq( 0 );
+ },
+
+ _destroy: function() {
+ var next,
+ originalPosition = this.originalPosition;
+
+ this._untrackInstance();
+ this._destroyOverlay();
+
+ this.element
+ .removeUniqueId()
+ .removeClass( "ui-dialog-content ui-widget-content" )
+ .css( this.originalCss )
+ // Without detaching first, the following becomes really slow
+ .detach();
+
+ this.uiDialog.stop( true, true ).remove();
+
+ if ( this.originalTitle ) {
+ this.element.attr( "title", this.originalTitle );
+ }
+
+ next = originalPosition.parent.children().eq( originalPosition.index );
+ // Don't try to place the dialog next to itself (#8613)
+ if ( next.length && next[ 0 ] !== this.element[ 0 ] ) {
+ next.before( this.element );
+ } else {
+ originalPosition.parent.append( this.element );
+ }
+ },
+
+ widget: function() {
+ return this.uiDialog;
+ },
+
+ disable: $.noop,
+ enable: $.noop,
+
+ close: function( event ) {
+ var activeElement,
+ that = this;
+
+ if ( !this._isOpen || this._trigger( "beforeClose", event ) === false ) {
+ return;
+ }
+
+ this._isOpen = false;
+ this._focusedElement = null;
+ this._destroyOverlay();
+ this._untrackInstance();
+
+ if ( !this.opener.filter( ":focusable" ).focus().length ) {
+
+ // support: IE9
+ // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
+ try {
+ activeElement = this.document[ 0 ].activeElement;
+
+ // Support: IE9, IE10
+ // If the <body> is blurred, IE will switch windows, see #4520
+ if ( activeElement && activeElement.nodeName.toLowerCase() !== "body" ) {
+
+ // Hiding a focused element doesn't trigger blur in WebKit
+ // so in case we have nothing to focus on, explicitly blur the active element
+ // https://bugs.webkit.org/show_bug.cgi?id=47182
+ $( activeElement ).blur();
+ }
+ } catch ( error ) {}
+ }
+
+ this._hide( this.uiDialog, this.options.hide, function() {
+ that._trigger( "close", event );
+ });
+ },
+
+ isOpen: function() {
+ return this._isOpen;
+ },
+
+ moveToTop: function() {
+ this._moveToTop();
+ },
+
+ _moveToTop: function( event, silent ) {
+ var moved = false,
+ zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
+ return +$( this ).css( "z-index" );
+ }).get(),
+ zIndexMax = Math.max.apply( null, zIndices );
+
+ if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
+ this.uiDialog.css( "z-index", zIndexMax + 1 );
+ moved = true;
+ }
+
+ if ( moved && !silent ) {
+ this._trigger( "focus", event );
+ }
+ return moved;
+ },
+
+ open: function() {
+ var that = this;
+ if ( this._isOpen ) {
+ if ( this._moveToTop() ) {
+ this._focusTabbable();
+ }
+ return;
+ }
+
+ this._isOpen = true;
+ this.opener = $( this.document[ 0 ].activeElement );
+
+ this._size();
+ this._position();
+ this._createOverlay();
+ this._moveToTop( null, true );
+
+ // Ensure the overlay is moved to the top with the dialog, but only when
+ // opening. The overlay shouldn't move after the dialog is open so that
+ // modeless dialogs opened after the modal dialog stack properly.
+ if ( this.overlay ) {
+ this.overlay.css( "z-index", this.uiDialog.css( "z-index" ) - 1 );
+ }
+
+ this._show( this.uiDialog, this.options.show, function() {
+ that._focusTabbable();
+ that._trigger( "focus" );
+ });
+
+ // Track the dialog immediately upon openening in case a focus event
+ // somehow occurs outside of the dialog before an element inside the
+ // dialog is focused (#10152)
+ this._makeFocusTarget();
+
+ this._trigger( "open" );
+ },
+
+ _focusTabbable: function() {
+ // Set focus to the first match:
+ // 1. An element that was focused previously
+ // 2. First element inside the dialog matching [autofocus]
+ // 3. Tabbable element inside the content element
+ // 4. Tabbable element inside the buttonpane
+ // 5. The close button
+ // 6. The dialog itself
+ var hasFocus = this._focusedElement;
+ if ( !hasFocus ) {
+ hasFocus = this.element.find( "[autofocus]" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.element.find( ":tabbable" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.uiDialogButtonPane.find( ":tabbable" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.uiDialogTitlebarClose.filter( ":tabbable" );
+ }
+ if ( !hasFocus.length ) {
+ hasFocus = this.uiDialog;
+ }
+ hasFocus.eq( 0 ).focus();
+ },
+
+ _keepFocus: function( event ) {
+ function checkFocus() {
+ var activeElement = this.document[0].activeElement,
+ isActive = this.uiDialog[0] === activeElement ||
+ $.contains( this.uiDialog[0], activeElement );
+ if ( !isActive ) {
+ this._focusTabbable();
+ }
+ }
+ event.preventDefault();
+ checkFocus.call( this );
+ // support: IE
+ // IE <= 8 doesn't prevent moving focus even with event.preventDefault()
+ // so we check again later
+ this._delay( checkFocus );
+ },
+
+ _createWrapper: function() {
+ this.uiDialog = $("<div>")
+ .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
+ this.options.dialogClass )
+ .hide()
+ .attr({
+ // Setting tabIndex makes the div focusable
+ tabIndex: -1,
+ role: "dialog"
+ })
+ .appendTo( this._appendTo() );
+
+ this._on( this.uiDialog, {
+ keydown: function( event ) {
+ if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&
+ event.keyCode === $.ui.keyCode.ESCAPE ) {
+ event.preventDefault();
+ this.close( event );
+ return;
+ }
+
+ // prevent tabbing out of dialogs
+ if ( event.keyCode !== $.ui.keyCode.TAB || event.isDefaultPrevented() ) {
+ return;
+ }
+ var tabbables = this.uiDialog.find( ":tabbable" ),
+ first = tabbables.filter( ":first" ),
+ last = tabbables.filter( ":last" );
+
+ if ( ( event.target === last[0] || event.target === this.uiDialog[0] ) && !event.shiftKey ) {
+ this._delay(function() {
+ first.focus();
+ });
+ event.preventDefault();
+ } else if ( ( event.target === first[0] || event.target === this.uiDialog[0] ) && event.shiftKey ) {
+ this._delay(function() {
+ last.focus();
+ });
+ event.preventDefault();
+ }
+ },
+ mousedown: function( event ) {
+ if ( this._moveToTop( event ) ) {
+ this._focusTabbable();
+ }
+ }
+ });
+
+ // We assume that any existing aria-describedby attribute means
+ // that the dialog content is marked up properly
+ // otherwise we brute force the content as the description
+ if ( !this.element.find( "[aria-describedby]" ).length ) {
+ this.uiDialog.attr({
+ "aria-describedby": this.element.uniqueId().attr( "id" )
+ });
+ }
+ },
+
+ _createTitlebar: function() {
+ var uiDialogTitle;
+
+ this.uiDialogTitlebar = $( "<div>" )
+ .addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )
+ .prependTo( this.uiDialog );
+ this._on( this.uiDialogTitlebar, {
+ mousedown: function( event ) {
+ // Don't prevent click on close button (#8838)
+ // Focusing a dialog that is partially scrolled out of view
+ // causes the browser to scroll it into view, preventing the click event
+ if ( !$( event.target ).closest( ".ui-dialog-titlebar-close" ) ) {
+ // Dialog isn't getting focus when dragging (#8063)
+ this.uiDialog.focus();
+ }
+ }
+ });
+
+ // support: IE
+ // Use type="button" to prevent enter keypresses in textboxes from closing the
+ // dialog in IE (#9312)
+ this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
+ .button({
+ label: this.options.closeText,
+ icons: {
+ primary: "ui-icon-closethick"
+ },
+ text: false
+ })
+ .addClass( "ui-dialog-titlebar-close" )
+ .appendTo( this.uiDialogTitlebar );
+ this._on( this.uiDialogTitlebarClose, {
+ click: function( event ) {
+ event.preventDefault();
+ this.close( event );
+ }
+ });
+
+ uiDialogTitle = $( "<span>" )
+ .uniqueId()
+ .addClass( "ui-dialog-title" )
+ .prependTo( this.uiDialogTitlebar );
+ this._title( uiDialogTitle );
+
+ this.uiDialog.attr({
+ "aria-labelledby": uiDialogTitle.attr( "id" )
+ });
+ },
+
+ _title: function( title ) {
+ if ( !this.options.title ) {
+ title.html( " " );
+ }
+ title.text( this.options.title );
+ },
+
+ _createButtonPane: function() {
+ this.uiDialogButtonPane = $( "<div>" )
+ .addClass( "ui-dialog-buttonpane ui-widget-content ui-helper-clearfix" );
+
+ this.uiButtonSet = $( "<div>" )
+ .addClass( "ui-dialog-buttonset" )
+ .appendTo( this.uiDialogButtonPane );
+
+ this._createButtons();
+ },
+
+ _createButtons: function() {
+ var that = this,
+ buttons = this.options.buttons;
+
+ // if we already have a button pane, remove it
+ this.uiDialogButtonPane.remove();
+ this.uiButtonSet.empty();
+
+ if ( $.isEmptyObject( buttons ) || ($.isArray( buttons ) && !buttons.length) ) {
+ this.uiDialog.removeClass( "ui-dialog-buttons" );
+ return;
+ }
+
+ $.each( buttons, function( name, props ) {
+ var click, buttonOptions;
+ props = $.isFunction( props ) ?
+ { click: props, text: name } :
+ props;
+ // Default to a non-submitting button
+ props = $.extend( { type: "button" }, props );
+ // Change the context for the click callback to be the main element
+ click = props.click;
+ props.click = function() {
+ click.apply( that.element[ 0 ], arguments );
+ };
+ buttonOptions = {
+ icons: props.icons,
+ text: props.showText
+ };
+ delete props.icons;
+ delete props.showText;
+ $( "<button></button>", props )
+ .button( buttonOptions )
+ .appendTo( that.uiButtonSet );
+ });
+ this.uiDialog.addClass( "ui-dialog-buttons" );
+ this.uiDialogButtonPane.appendTo( this.uiDialog );
+ },
+
+ _makeDraggable: function() {
+ var that = this,
+ options = this.options;
+
+ function filteredUi( ui ) {
+ return {
+ position: ui.position,
+ offset: ui.offset
+ };
+ }
+
+ this.uiDialog.draggable({
+ cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
+ handle: ".ui-dialog-titlebar",
+ containment: "document",
+ start: function( event, ui ) {
+ $( this ).addClass( "ui-dialog-dragging" );
+ that._blockFrames();
+ that._trigger( "dragStart", event, filteredUi( ui ) );
+ },
+ drag: function( event, ui ) {
+ that._trigger( "drag", event, filteredUi( ui ) );
+ },
+ stop: function( event, ui ) {
+ var left = ui.offset.left - that.document.scrollLeft(),
+ top = ui.offset.top - that.document.scrollTop();
+
+ options.position = {
+ my: "left top",
+ at: "left" + (left >= 0 ? "+" : "") + left + " " +
+ "top" + (top >= 0 ? "+" : "") + top,
+ of: that.window
+ };
+ $( this ).removeClass( "ui-dialog-dragging" );
+ that._unblockFrames();
+ that._trigger( "dragStop", event, filteredUi( ui ) );
+ }
+ });
+ },
+
+ _makeResizable: function() {
+ var that = this,
+ options = this.options,
+ handles = options.resizable,
+ // .ui-resizable has position: relative defined in the stylesheet
+ // but dialogs have to use absolute or fixed positioning
+ position = this.uiDialog.css("position"),
+ resizeHandles = typeof handles === "string" ?
+ handles :
+ "n,e,s,w,se,sw,ne,nw";
+
+ function filteredUi( ui ) {
+ return {
+ originalPosition: ui.originalPosition,
+ originalSize: ui.originalSize,
+ position: ui.position,
+ size: ui.size
+ };
+ }
+
+ this.uiDialog.resizable({
+ cancel: ".ui-dialog-content",
+ containment: "document",
+ alsoResize: this.element,
+ maxWidth: options.maxWidth,
+ maxHeight: options.maxHeight,
+ minWidth: options.minWidth,
+ minHeight: this._minHeight(),
+ handles: resizeHandles,
+ start: function( event, ui ) {
+ $( this ).addClass( "ui-dialog-resizing" );
+ that._blockFrames();
+ that._trigger( "resizeStart", event, filteredUi( ui ) );
+ },
+ resize: function( event, ui ) {
+ that._trigger( "resize", event, filteredUi( ui ) );
+ },
+ stop: function( event, ui ) {
+ var offset = that.uiDialog.offset(),
+ left = offset.left - that.document.scrollLeft(),
+ top = offset.top - that.document.scrollTop();
+
+ options.height = that.uiDialog.height();
+ options.width = that.uiDialog.width();
+ options.position = {
+ my: "left top",
+ at: "left" + (left >= 0 ? "+" : "") + left + " " +
+ "top" + (top >= 0 ? "+" : "") + top,
+ of: that.window
+ };
+ $( this ).removeClass( "ui-dialog-resizing" );
+ that._unblockFrames();
+ that._trigger( "resizeStop", event, filteredUi( ui ) );
+ }
+ })
+ .css( "position", position );
+ },
+
+ _trackFocus: function() {
+ this._on( this.widget(), {
+ focusin: function( event ) {
+ this._makeFocusTarget();
+ this._focusedElement = $( event.target );
+ }
+ });
+ },
+
+ _makeFocusTarget: function() {
+ this._untrackInstance();
+ this._trackingInstances().unshift( this );
+ },
+
+ _untrackInstance: function() {
+ var instances = this._trackingInstances(),
+ exists = $.inArray( this, instances );
+ if ( exists !== -1 ) {
+ instances.splice( exists, 1 );
+ }
+ },
+
+ _trackingInstances: function() {
+ var instances = this.document.data( "ui-dialog-instances" );
+ if ( !instances ) {
+ instances = [];
+ this.document.data( "ui-dialog-instances", instances );
+ }
+ return instances;
+ },
+
+ _minHeight: function() {
+ var options = this.options;
+
+ return options.height === "auto" ?
+ options.minHeight :
+ Math.min( options.minHeight, options.height );
+ },
+
+ _position: function() {
+ // Need to show the dialog to get the actual offset in the position plugin
+ var isVisible = this.uiDialog.is( ":visible" );
+ if ( !isVisible ) {
+ this.uiDialog.show();
+ }
+ this.uiDialog.position( this.options.position );
+ if ( !isVisible ) {
+ this.uiDialog.hide();
+ }
+ },
+
+ _setOptions: function( options ) {
+ var that = this,
+ resize = false,
+ resizableOptions = {};
+
+ $.each( options, function( key, value ) {
+ that._setOption( key, value );
+
+ if ( key in that.sizeRelatedOptions ) {
+ resize = true;
+ }
+ if ( key in that.resizableRelatedOptions ) {
+ resizableOptions[ key ] = value;
+ }
+ });
+
+ if ( resize ) {
+ this._size();
+ this._position();
+ }
+ if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
+ this.uiDialog.resizable( "option", resizableOptions );
+ }
+ },
+
+ _setOption: function( key, value ) {
+ var isDraggable, isResizable,
+ uiDialog = this.uiDialog;
+
+ if ( key === "dialogClass" ) {
+ uiDialog
+ .removeClass( this.options.dialogClass )
+ .addClass( value );
+ }
+
+ if ( key === "disabled" ) {
+ return;
+ }
+
+ this._super( key, value );
+
+ if ( key === "appendTo" ) {
+ this.uiDialog.appendTo( this._appendTo() );
+ }
+
+ if ( key === "buttons" ) {
+ this._createButtons();
+ }
+
+ if ( key === "closeText" ) {
+ this.uiDialogTitlebarClose.button({
+ // Ensure that we always pass a string
+ label: "" + value
+ });
+ }
+
+ if ( key === "draggable" ) {
+ isDraggable = uiDialog.is( ":data(ui-draggable)" );
+ if ( isDraggable && !value ) {
+ uiDialog.draggable( "destroy" );
+ }
+
+ if ( !isDraggable && value ) {
+ this._makeDraggable();
+ }
+ }
+
+ if ( key === "position" ) {
+ this._position();
+ }
+
+ if ( key === "resizable" ) {
+ // currently resizable, becoming non-resizable
+ isResizable = uiDialog.is( ":data(ui-resizable)" );
+ if ( isResizable && !value ) {
+ uiDialog.resizable( "destroy" );
+ }
+
+ // currently resizable, changing handles
+ if ( isResizable && typeof value === "string" ) {
+ uiDialog.resizable( "option", "handles", value );
+ }
+
+ // currently non-resizable, becoming resizable
+ if ( !isResizable && value !== false ) {
+ this._makeResizable();
+ }
+ }
+
+ if ( key === "title" ) {
+ this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) );
+ }
+ },
+
+ _size: function() {
+ // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
+ // divs will both have width and height set, so we need to reset them
+ var nonContentHeight, minContentHeight, maxContentHeight,
+ options = this.options;
+
+ // Reset content sizing
+ this.element.show().css({
+ width: "auto",
+ minHeight: 0,
+ maxHeight: "none",
+ height: 0
+ });
+
+ if ( options.minWidth > options.width ) {
+ options.width = options.minWidth;
+ }
+
+ // reset wrapper sizing
+ // determine the height of all the non-content elements
+ nonContentHeight = this.uiDialog.css({
+ height: "auto",
+ width: options.width
+ })
+ .outerHeight();
+ minContentHeight = Math.max( 0, options.minHeight - nonContentHeight );
+ maxContentHeight = typeof options.maxHeight === "number" ?
+ Math.max( 0, options.maxHeight - nonContentHeight ) :
+ "none";
+
+ if ( options.height === "auto" ) {
+ this.element.css({
+ minHeight: minContentHeight,
+ maxHeight: maxContentHeight,
+ height: "auto"
+ });
+ } else {
+ this.element.height( Math.max( 0, options.height - nonContentHeight ) );
+ }
+
+ if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
+ this.uiDialog.resizable( "option", "minHeight", this._minHeight() );
+ }
+ },
+
+ _blockFrames: function() {
+ this.iframeBlocks = this.document.find( "iframe" ).map(function() {
+ var iframe = $( this );
+
+ return $( "<div>" )
+ .css({
+ position: "absolute",
+ width: iframe.outerWidth(),
+ height: iframe.outerHeight()
+ })
+ .appendTo( iframe.parent() )
+ .offset( iframe.offset() )[0];
+ });
+ },
+
+ _unblockFrames: function() {
+ if ( this.iframeBlocks ) {
+ this.iframeBlocks.remove();
+ delete this.iframeBlocks;
+ }
+ },
+
+ _allowInteraction: function( event ) {
+ if ( $( event.target ).closest( ".ui-dialog" ).length ) {
+ return true;
+ }
+
+ // TODO: Remove hack when datepicker implements
+ // the .ui-front logic (#8989)
+ return !!$( event.target ).closest( ".ui-datepicker" ).length;
+ },
+
+ _createOverlay: function() {
+ if ( !this.options.modal ) {
+ return;
+ }
+
+ // We use a delay in case the overlay is created from an
+ // event that we're going to be cancelling (#2804)
+ var isOpening = true;
+ this._delay(function() {
+ isOpening = false;
+ });
+
+ if ( !this.document.data( "ui-dialog-overlays" ) ) {
+
+ // Prevent use of anchors and inputs
+ // Using _on() for an event handler shared across many instances is
+ // safe because the dialogs stack and must be closed in reverse order
+ this._on( this.document, {
+ focusin: function( event ) {
+ if ( isOpening ) {
+ return;
+ }
+
+ if ( !this._allowInteraction( event ) ) {
+ event.preventDefault();
+ this._trackingInstances()[ 0 ]._focusTabbable();
+ }
+ }
+ });
+ }
+
+ this.overlay = $( "<div>" )
+ .addClass( "ui-widget-overlay ui-front" )
+ .appendTo( this._appendTo() );
+ this._on( this.overlay, {
+ mousedown: "_keepFocus"
+ });
+ this.document.data( "ui-dialog-overlays",
+ (this.document.data( "ui-dialog-overlays" ) || 0) + 1 );
+ },
+
+ _destroyOverlay: function() {
+ if ( !this.options.modal ) {
+ return;
+ }
+
+ if ( this.overlay ) {
+ var overlays = this.document.data( "ui-dialog-overlays" ) - 1;
+
+ if ( !overlays ) {
+ this.document
+ .unbind( "focusin" )
+ .removeData( "ui-dialog-overlays" );
+ } else {
+ this.document.data( "ui-dialog-overlays", overlays );
+ }
+
+ this.overlay.remove();
+ this.overlay = null;
+ }
+ }
+});
+
+
+/*!
+ * jQuery UI Progressbar 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/progressbar/
+ */
+
+
+var progressbar = $.widget( "ui.progressbar", {
+ version: "1.11.4",
+ options: {
+ max: 100,
+ value: 0,
+
+ change: null,
+ complete: null
+ },
+
+ min: 0,
+
+ _create: function() {
+ // Constrain initial value
+ this.oldValue = this.options.value = this._constrainedValue();
+
+ this.element
+ .addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
+ .attr({
+ // Only set static values, aria-valuenow and aria-valuemax are
+ // set inside _refreshValue()
+ role: "progressbar",
+ "aria-valuemin": this.min
+ });
+
+ this.valueDiv = $( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>" )
+ .appendTo( this.element );
+
+ this._refreshValue();
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-valuemin" )
+ .removeAttr( "aria-valuemax" )
+ .removeAttr( "aria-valuenow" );
+
+ this.valueDiv.remove();
+ },
+
+ value: function( newValue ) {
+ if ( newValue === undefined ) {
+ return this.options.value;
+ }
+
+ this.options.value = this._constrainedValue( newValue );
+ this._refreshValue();
+ },
+
+ _constrainedValue: function( newValue ) {
+ if ( newValue === undefined ) {
+ newValue = this.options.value;
+ }
+
+ this.indeterminate = newValue === false;
+
+ // sanitize value
+ if ( typeof newValue !== "number" ) {
+ newValue = 0;
+ }
+
+ return this.indeterminate ? false :
+ Math.min( this.options.max, Math.max( this.min, newValue ) );
+ },
+
+ _setOptions: function( options ) {
+ // Ensure "value" option is set after other values (like max)
+ var value = options.value;
+ delete options.value;
+
+ this._super( options );
+
+ this.options.value = this._constrainedValue( value );
+ this._refreshValue();
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "max" ) {
+ // Don't allow a max less than min
+ value = Math.max( this.min, value );
+ }
+ if ( key === "disabled" ) {
+ this.element
+ .toggleClass( "ui-state-disabled", !!value )
+ .attr( "aria-disabled", value );
+ }
+ this._super( key, value );
+ },
+
+ _percentage: function() {
+ return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
+ },
+
+ _refreshValue: function() {
+ var value = this.options.value,
+ percentage = this._percentage();
+
+ this.valueDiv
+ .toggle( this.indeterminate || value > this.min )
+ .toggleClass( "ui-corner-right", value === this.options.max )
+ .width( percentage.toFixed(0) + "%" );
+
+ this.element.toggleClass( "ui-progressbar-indeterminate", this.indeterminate );
+
+ if ( this.indeterminate ) {
+ this.element.removeAttr( "aria-valuenow" );
+ if ( !this.overlayDiv ) {
+ this.overlayDiv = $( "<div class='ui-progressbar-overlay'></div>" ).appendTo( this.valueDiv );
+ }
+ } else {
+ this.element.attr({
+ "aria-valuemax": this.options.max,
+ "aria-valuenow": value
+ });
+ if ( this.overlayDiv ) {
+ this.overlayDiv.remove();
+ this.overlayDiv = null;
+ }
+ }
+
+ if ( this.oldValue !== value ) {
+ this.oldValue = value;
+ this._trigger( "change" );
+ }
+ if ( value === this.options.max ) {
+ this._trigger( "complete" );
+ }
+ }
+});
+
+
+/*!
+ * jQuery UI Selectmenu 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/selectmenu
+ */
+
+
+var selectmenu = $.widget( "ui.selectmenu", {
+ version: "1.11.4",
+ defaultElement: "<select>",
+ options: {
+ appendTo: null,
+ disabled: null,
+ icons: {
+ button: "ui-icon-triangle-1-s"
+ },
+ position: {
+ my: "left top",
+ at: "left bottom",
+ collision: "none"
+ },
+ width: null,
+
+ // callbacks
+ change: null,
+ close: null,
+ focus: null,
+ open: null,
+ select: null
+ },
+
+ _create: function() {
+ var selectmenuId = this.element.uniqueId().attr( "id" );
+ this.ids = {
+ element: selectmenuId,
+ button: selectmenuId + "-button",
+ menu: selectmenuId + "-menu"
+ };
+
+ this._drawButton();
+ this._drawMenu();
+
+ if ( this.options.disabled ) {
+ this.disable();
+ }
+ },
+
+ _drawButton: function() {
+ var that = this;
+
+ // Associate existing label with the new button
+ this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );
+ this._on( this.label, {
+ click: function( event ) {
+ this.button.focus();
+ event.preventDefault();
+ }
+ });
+
+ // Hide original select element
+ this.element.hide();
+
+ // Create button
+ this.button = $( "<span>", {
+ "class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
+ tabindex: this.options.disabled ? -1 : 0,
+ id: this.ids.button,
+ role: "combobox",
+ "aria-expanded": "false",
+ "aria-autocomplete": "list",
+ "aria-owns": this.ids.menu,
+ "aria-haspopup": "true"
+ })
+ .insertAfter( this.element );
+
+ $( "<span>", {
+ "class": "ui-icon " + this.options.icons.button
+ })
+ .prependTo( this.button );
+
+ this.buttonText = $( "<span>", {
+ "class": "ui-selectmenu-text"
+ })
+ .appendTo( this.button );
+
+ this._setText( this.buttonText, this.element.find( "option:selected" ).text() );
+ this._resizeButton();
+
+ this._on( this.button, this._buttonEvents );
+ this.button.one( "focusin", function() {
+
+ // Delay rendering the menu items until the button receives focus.
+ // The menu may have already been rendered via a programmatic open.
+ if ( !that.menuItems ) {
+ that._refreshMenu();
+ }
+ });
+ this._hoverable( this.button );
+ this._focusable( this.button );
+ },
+
+ _drawMenu: function() {
+ var that = this;
+
+ // Create menu
+ this.menu = $( "<ul>", {
+ "aria-hidden": "true",
+ "aria-labelledby": this.ids.button,
+ id: this.ids.menu
+ });
+
+ // Wrap menu
+ this.menuWrap = $( "<div>", {
+ "class": "ui-selectmenu-menu ui-front"
+ })
+ .append( this.menu )
+ .appendTo( this._appendTo() );
+
+ // Initialize menu widget
+ this.menuInstance = this.menu
+ .menu({
+ role: "listbox",
+ select: function( event, ui ) {
+ event.preventDefault();
+
+ // support: IE8
+ // If the item was selected via a click, the text selection
+ // will be destroyed in IE
+ that._setSelection();
+
+ that._select( ui.item.data( "ui-selectmenu-item" ), event );
+ },
+ focus: function( event, ui ) {
+ var item = ui.item.data( "ui-selectmenu-item" );
+
+ // Prevent inital focus from firing and check if its a newly focused item
+ if ( that.focusIndex != null && item.index !== that.focusIndex ) {
+ that._trigger( "focus", event, { item: item } );
+ if ( !that.isOpen ) {
+ that._select( item, event );
+ }
+ }
+ that.focusIndex = item.index;
+
+ that.button.attr( "aria-activedescendant",
+ that.menuItems.eq( item.index ).attr( "id" ) );
+ }
+ })
+ .menu( "instance" );
+
+ // Adjust menu styles to dropdown
+ this.menu
+ .addClass( "ui-corner-bottom" )
+ .removeClass( "ui-corner-all" );
+
+ // Don't close the menu on mouseleave
+ this.menuInstance._off( this.menu, "mouseleave" );
+
+ // Cancel the menu's collapseAll on document click
+ this.menuInstance._closeOnDocumentClick = function() {
+ return false;
+ };
+
+ // Selects often contain empty items, but never contain dividers
+ this.menuInstance._isDivider = function() {
+ return false;
+ };
+ },
+
+ refresh: function() {
+ this._refreshMenu();
+ this._setText( this.buttonText, this._getSelectedItem().text() );
+ if ( !this.options.width ) {
+ this._resizeButton();
+ }
+ },
+
+ _refreshMenu: function() {
+ this.menu.empty();
+
+ var item,
+ options = this.element.find( "option" );
+
+ if ( !options.length ) {
+ return;
+ }
+
+ this._parseOptions( options );
+ this._renderMenu( this.menu, this.items );
+
+ this.menuInstance.refresh();
+ this.menuItems = this.menu.find( "li" ).not( ".ui-selectmenu-optgroup" );
+
+ item = this._getSelectedItem();
+
+ // Update the menu to have the correct item focused
+ this.menuInstance.focus( null, item );
+ this._setAria( item.data( "ui-selectmenu-item" ) );
+
+ // Set disabled state
+ this._setOption( "disabled", this.element.prop( "disabled" ) );
+ },
+
+ open: function( event ) {
+ if ( this.options.disabled ) {
+ return;
+ }
+
+ // If this is the first time the menu is being opened, render the items
+ if ( !this.menuItems ) {
+ this._refreshMenu();
+ } else {
+
+ // Menu clears focus on close, reset focus to selected item
+ this.menu.find( ".ui-state-focus" ).removeClass( "ui-state-focus" );
+ this.menuInstance.focus( null, this._getSelectedItem() );
+ }
+
+ this.isOpen = true;
+ this._toggleAttr();
+ this._resizeMenu();
+ this._position();
+
+ this._on( this.document, this._documentClick );
+
+ this._trigger( "open", event );
+ },
+
+ _position: function() {
+ this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
+ },
+
+ close: function( event ) {
+ if ( !this.isOpen ) {
+ return;
+ }
+
+ this.isOpen = false;
+ this._toggleAttr();
+
+ this.range = null;
+ this._off( this.document );
+
+ this._trigger( "close", event );
+ },
+
+ widget: function() {
+ return this.button;
+ },
+
+ menuWidget: function() {
+ return this.menu;
+ },
+
+ _renderMenu: function( ul, items ) {
+ var that = this,
+ currentOptgroup = "";
+
+ $.each( items, function( index, item ) {
+ if ( item.optgroup !== currentOptgroup ) {
+ $( "<li>", {
+ "class": "ui-selectmenu-optgroup ui-menu-divider" +
+ ( item.element.parent( "optgroup" ).prop( "disabled" ) ?
+ " ui-state-disabled" :
+ "" ),
+ text: item.optgroup
+ })
+ .appendTo( ul );
+
+ currentOptgroup = item.optgroup;
+ }
+
+ that._renderItemData( ul, item );
+ });
+ },
+
+ _renderItemData: function( ul, item ) {
+ return this._renderItem( ul, item ).data( "ui-selectmenu-item", item );
+ },
+
+ _renderItem: function( ul, item ) {
+ var li = $( "<li>" );
+
+ if ( item.disabled ) {
+ li.addClass( "ui-state-disabled" );
+ }
+ this._setText( li, item.label );
+
+ return li.appendTo( ul );
+ },
+
+ _setText: function( element, value ) {
+ if ( value ) {
+ element.text( value );
+ } else {
+ element.html( " " );
+ }
+ },
+
+ _move: function( direction, event ) {
+ var item, next,
+ filter = ".ui-menu-item";
+
+ if ( this.isOpen ) {
+ item = this.menuItems.eq( this.focusIndex );
+ } else {
+ item = this.menuItems.eq( this.element[ 0 ].selectedIndex );
+ filter += ":not(.ui-state-disabled)";
+ }
+
+ if ( direction === "first" || direction === "last" ) {
+ next = item[ direction === "first" ? "prevAll" : "nextAll" ]( filter ).eq( -1 );
+ } else {
+ next = item[ direction + "All" ]( filter ).eq( 0 );
+ }
+
+ if ( next.length ) {
+ this.menuInstance.focus( event, next );
+ }
+ },
+
+ _getSelectedItem: function() {
+ return this.menuItems.eq( this.element[ 0 ].selectedIndex );
+ },
+
+ _toggle: function( event ) {
+ this[ this.isOpen ? "close" : "open" ]( event );
+ },
+
+ _setSelection: function() {
+ var selection;
+
+ if ( !this.range ) {
+ return;
+ }
+
+ if ( window.getSelection ) {
+ selection = window.getSelection();
+ selection.removeAllRanges();
+ selection.addRange( this.range );
+
+ // support: IE8
+ } else {
+ this.range.select();
+ }
+
+ // support: IE
+ // Setting the text selection kills the button focus in IE, but
+ // restoring the focus doesn't kill the selection.
+ this.button.focus();
+ },
+
+ _documentClick: {
+ mousedown: function( event ) {
+ if ( !this.isOpen ) {
+ return;
+ }
+
+ if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + this.ids.button ).length ) {
+ this.close( event );
+ }
+ }
+ },
+
+ _buttonEvents: {
+
+ // Prevent text selection from being reset when interacting with the selectmenu (#10144)
+ mousedown: function() {
+ var selection;
+
+ if ( window.getSelection ) {
+ selection = window.getSelection();
+ if ( selection.rangeCount ) {
+ this.range = selection.getRangeAt( 0 );
+ }
+
+ // support: IE8
+ } else {
+ this.range = document.selection.createRange();
+ }
+ },
+
+ click: function( event ) {
+ this._setSelection();
+ this._toggle( event );
+ },
+
+ keydown: function( event ) {
+ var preventDefault = true;
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.TAB:
+ case $.ui.keyCode.ESCAPE:
+ this.close( event );
+ preventDefault = false;
+ break;
+ case $.ui.keyCode.ENTER:
+ if ( this.isOpen ) {
+ this._selectFocusedItem( event );
+ }
+ break;
+ case $.ui.keyCode.UP:
+ if ( event.altKey ) {
+ this._toggle( event );
+ } else {
+ this._move( "prev", event );
+ }
+ break;
+ case $.ui.keyCode.DOWN:
+ if ( event.altKey ) {
+ this._toggle( event );
+ } else {
+ this._move( "next", event );
+ }
+ break;
+ case $.ui.keyCode.SPACE:
+ if ( this.isOpen ) {
+ this._selectFocusedItem( event );
+ } else {
+ this._toggle( event );
+ }
+ break;
+ case $.ui.keyCode.LEFT:
+ this._move( "prev", event );
+ break;
+ case $.ui.keyCode.RIGHT:
+ this._move( "next", event );
+ break;
+ case $.ui.keyCode.HOME:
+ case $.ui.keyCode.PAGE_UP:
+ this._move( "first", event );
+ break;
+ case $.ui.keyCode.END:
+ case $.ui.keyCode.PAGE_DOWN:
+ this._move( "last", event );
+ break;
+ default:
+ this.menu.trigger( event );
+ preventDefault = false;
+ }
+
+ if ( preventDefault ) {
+ event.preventDefault();
+ }
+ }
+ },
+
+ _selectFocusedItem: function( event ) {
+ var item = this.menuItems.eq( this.focusIndex );
+ if ( !item.hasClass( "ui-state-disabled" ) ) {
+ this._select( item.data( "ui-selectmenu-item" ), event );
+ }
+ },
+
+ _select: function( item, event ) {
+ var oldIndex = this.element[ 0 ].selectedIndex;
+
+ // Change native select element
+ this.element[ 0 ].selectedIndex = item.index;
+ this._setText( this.buttonText, item.label );
+ this._setAria( item );
+ this._trigger( "select", event, { item: item } );
+
+ if ( item.index !== oldIndex ) {
+ this._trigger( "change", event, { item: item } );
+ }
+
+ this.close( event );
+ },
+
+ _setAria: function( item ) {
+ var id = this.menuItems.eq( item.index ).attr( "id" );
+
+ this.button.attr({
+ "aria-labelledby": id,
+ "aria-activedescendant": id
+ });
+ this.menu.attr( "aria-activedescendant", id );
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "icons" ) {
+ this.button.find( "span.ui-icon" )
+ .removeClass( this.options.icons.button )
+ .addClass( value.button );
+ }
+
+ this._super( key, value );
+
+ if ( key === "appendTo" ) {
+ this.menuWrap.appendTo( this._appendTo() );
+ }
+
+ if ( key === "disabled" ) {
+ this.menuInstance.option( "disabled", value );
+ this.button
+ .toggleClass( "ui-state-disabled", value )
+ .attr( "aria-disabled", value );
+
+ this.element.prop( "disabled", value );
+ if ( value ) {
+ this.button.attr( "tabindex", -1 );
+ this.close();
+ } else {
+ this.button.attr( "tabindex", 0 );
+ }
+ }
+
+ if ( key === "width" ) {
+ this._resizeButton();
+ }
+ },
+
+ _appendTo: function() {
+ var element = this.options.appendTo;
+
+ if ( element ) {
+ element = element.jquery || element.nodeType ?
+ $( element ) :
+ this.document.find( element ).eq( 0 );
+ }
+
+ if ( !element || !element[ 0 ] ) {
+ element = this.element.closest( ".ui-front" );
+ }
+
+ if ( !element.length ) {
+ element = this.document[ 0 ].body;
+ }
+
+ return element;
+ },
+
+ _toggleAttr: function() {
+ this.button
+ .toggleClass( "ui-corner-top", this.isOpen )
+ .toggleClass( "ui-corner-all", !this.isOpen )
+ .attr( "aria-expanded", this.isOpen );
+ this.menuWrap.toggleClass( "ui-selectmenu-open", this.isOpen );
+ this.menu.attr( "aria-hidden", !this.isOpen );
+ },
+
+ _resizeButton: function() {
+ var width = this.options.width;
+
+ if ( !width ) {
+ width = this.element.show().outerWidth();
+ this.element.hide();
+ }
+
+ this.button.outerWidth( width );
+ },
+
+ _resizeMenu: function() {
+ this.menu.outerWidth( Math.max(
+ this.button.outerWidth(),
+
+ // support: IE10
+ // IE10 wraps long text (possibly a rounding bug)
+ // so we add 1px to avoid the wrapping
+ this.menu.width( "" ).outerWidth() + 1
+ ) );
+ },
+
+ _getCreateOptions: function() {
+ return { disabled: this.element.prop( "disabled" ) };
+ },
+
+ _parseOptions: function( options ) {
+ var data = [];
+ options.each(function( index, item ) {
+ var option = $( item ),
+ optgroup = option.parent( "optgroup" );
+ data.push({
+ element: option,
+ index: index,
+ value: option.val(),
+ label: option.text(),
+ optgroup: optgroup.attr( "label" ) || "",
+ disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" )
+ });
+ });
+ this.items = data;
+ },
+
+ _destroy: function() {
+ this.menuWrap.remove();
+ this.button.remove();
+ this.element.show();
+ this.element.removeUniqueId();
+ this.label.attr( "for", this.ids.element );
+ }
+});
+
+
+/*!
+ * jQuery UI Slider 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/slider/
+ */
+
+
+var slider = $.widget( "ui.slider", $.ui.mouse, {
+ version: "1.11.4",
+ widgetEventPrefix: "slide",
+
+ options: {
+ animate: false,
+ distance: 0,
+ max: 100,
+ min: 0,
+ orientation: "horizontal",
+ range: false,
+ step: 1,
+ value: 0,
+ values: null,
+
+ // callbacks
+ change: null,
+ slide: null,
+ start: null,
+ stop: null
+ },
+
+ // number of pages in a slider
+ // (how many times can you page up/down to go through the whole range)
+ numPages: 5,
+
+ _create: function() {
+ this._keySliding = false;
+ this._mouseSliding = false;
+ this._animateOff = true;
+ this._handleIndex = null;
+ this._detectOrientation();
+ this._mouseInit();
+ this._calculateNewMax();
+
+ this.element
+ .addClass( "ui-slider" +
+ " ui-slider-" + this.orientation +
+ " ui-widget" +
+ " ui-widget-content" +
+ " ui-corner-all");
+
+ this._refresh();
+ this._setOption( "disabled", this.options.disabled );
+
+ this._animateOff = false;
+ },
+
+ _refresh: function() {
+ this._createRange();
+ this._createHandles();
+ this._setupEvents();
+ this._refreshValue();
+ },
+
+ _createHandles: function() {
+ var i, handleCount,
+ options = this.options,
+ existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),
+ handle = "<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",
+ handles = [];
+
+ handleCount = ( options.values && options.values.length ) || 1;
+
+ if ( existingHandles.length > handleCount ) {
+ existingHandles.slice( handleCount ).remove();
+ existingHandles = existingHandles.slice( 0, handleCount );
+ }
+
+ for ( i = existingHandles.length; i < handleCount; i++ ) {
+ handles.push( handle );
+ }
+
+ this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
+
+ this.handle = this.handles.eq( 0 );
+
+ this.handles.each(function( i ) {
+ $( this ).data( "ui-slider-handle-index", i );
+ });
+ },
+
+ _createRange: function() {
+ var options = this.options,
+ classes = "";
+
+ if ( options.range ) {
+ if ( options.range === true ) {
+ if ( !options.values ) {
+ options.values = [ this._valueMin(), this._valueMin() ];
+ } else if ( options.values.length && options.values.length !== 2 ) {
+ options.values = [ options.values[0], options.values[0] ];
+ } else if ( $.isArray( options.values ) ) {
+ options.values = options.values.slice(0);
+ }
+ }
+
+ if ( !this.range || !this.range.length ) {
+ this.range = $( "<div></div>" )
+ .appendTo( this.element );
+
+ classes = "ui-slider-range" +
+ // note: this isn't the most fittingly semantic framework class for this element,
+ // but worked best visually with a variety of themes
+ " ui-widget-header ui-corner-all";
+ } else {
+ this.range.removeClass( "ui-slider-range-min ui-slider-range-max" )
+ // Handle range switching from true to min/max
+ .css({
+ "left": "",
+ "bottom": ""
+ });
+ }
+
+ this.range.addClass( classes +
+ ( ( options.range === "min" || options.range === "max" ) ? " ui-slider-range-" + options.range : "" ) );
+ } else {
+ if ( this.range ) {
+ this.range.remove();
+ }
+ this.range = null;
+ }
+ },
+
+ _setupEvents: function() {
+ this._off( this.handles );
+ this._on( this.handles, this._handleEvents );
+ this._hoverable( this.handles );
+ this._focusable( this.handles );
+ },
+
+ _destroy: function() {
+ this.handles.remove();
+ if ( this.range ) {
+ this.range.remove();
+ }
+
+ this.element
+ .removeClass( "ui-slider" +
+ " ui-slider-horizontal" +
+ " ui-slider-vertical" +
+ " ui-widget" +
+ " ui-widget-content" +
+ " ui-corner-all" );
+
+ this._mouseDestroy();
+ },
+
+ _mouseCapture: function( event ) {
+ var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
+ that = this,
+ o = this.options;
+
+ if ( o.disabled ) {
+ return false;
+ }
+
+ this.elementSize = {
+ width: this.element.outerWidth(),
+ height: this.element.outerHeight()
+ };
+ this.elementOffset = this.element.offset();
+
+ position = { x: event.pageX, y: event.pageY };
+ normValue = this._normValueFromMouse( position );
+ distance = this._valueMax() - this._valueMin() + 1;
+ this.handles.each(function( i ) {
+ var thisDistance = Math.abs( normValue - that.values(i) );
+ if (( distance > thisDistance ) ||
+ ( distance === thisDistance &&
+ (i === that._lastChangedValue || that.values(i) === o.min ))) {
+ distance = thisDistance;
+ closestHandle = $( this );
+ index = i;
+ }
+ });
+
+ allowed = this._start( event, index );
+ if ( allowed === false ) {
+ return false;
+ }
+ this._mouseSliding = true;
+
+ this._handleIndex = index;
+
+ closestHandle
+ .addClass( "ui-state-active" )
+ .focus();
+
+ offset = closestHandle.offset();
+ mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
+ this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {
+ left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
+ top: event.pageY - offset.top -
+ ( closestHandle.height() / 2 ) -
+ ( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
+ ( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
+ ( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
+ };
+
+ if ( !this.handles.hasClass( "ui-state-hover" ) ) {
+ this._slide( event, index, normValue );
+ }
+ this._animateOff = true;
+ return true;
+ },
+
+ _mouseStart: function() {
+ return true;
+ },
+
+ _mouseDrag: function( event ) {
+ var position = { x: event.pageX, y: event.pageY },
+ normValue = this._normValueFromMouse( position );
+
+ this._slide( event, this._handleIndex, normValue );
+
+ return false;
+ },
+
+ _mouseStop: function( event ) {
+ this.handles.removeClass( "ui-state-active" );
+ this._mouseSliding = false;
+
+ this._stop( event, this._handleIndex );
+ this._change( event, this._handleIndex );
+
+ this._handleIndex = null;
+ this._clickOffset = null;
+ this._animateOff = false;
+
+ return false;
+ },
+
+ _detectOrientation: function() {
+ this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";
+ },
+
+ _normValueFromMouse: function( position ) {
+ var pixelTotal,
+ pixelMouse,
+ percentMouse,
+ valueTotal,
+ valueMouse;
+
+ if ( this.orientation === "horizontal" ) {
+ pixelTotal = this.elementSize.width;
+ pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );
+ } else {
+ pixelTotal = this.elementSize.height;
+ pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );
+ }
+
+ percentMouse = ( pixelMouse / pixelTotal );
+ if ( percentMouse > 1 ) {
+ percentMouse = 1;
+ }
+ if ( percentMouse < 0 ) {
+ percentMouse = 0;
+ }
+ if ( this.orientation === "vertical" ) {
+ percentMouse = 1 - percentMouse;
+ }
+
+ valueTotal = this._valueMax() - this._valueMin();
+ valueMouse = this._valueMin() + percentMouse * valueTotal;
+
+ return this._trimAlignValue( valueMouse );
+ },
+
+ _start: function( event, index ) {
+ var uiHash = {
+ handle: this.handles[ index ],
+ value: this.value()
+ };
+ if ( this.options.values && this.options.values.length ) {
+ uiHash.value = this.values( index );
+ uiHash.values = this.values();
+ }
+ return this._trigger( "start", event, uiHash );
+ },
+
+ _slide: function( event, index, newVal ) {
+ var otherVal,
+ newValues,
+ allowed;
+
+ if ( this.options.values && this.options.values.length ) {
+ otherVal = this.values( index ? 0 : 1 );
+
+ if ( ( this.options.values.length === 2 && this.options.range === true ) &&
+ ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )
+ ) {
+ newVal = otherVal;
+ }
+
+ if ( newVal !== this.values( index ) ) {
+ newValues = this.values();
+ newValues[ index ] = newVal;
+ // A slide can be canceled by returning false from the slide callback
+ allowed = this._trigger( "slide", event, {
+ handle: this.handles[ index ],
+ value: newVal,
+ values: newValues
+ } );
+ otherVal = this.values( index ? 0 : 1 );
+ if ( allowed !== false ) {
+ this.values( index, newVal );
+ }
+ }
+ } else {
+ if ( newVal !== this.value() ) {
+ // A slide can be canceled by returning false from the slide callback
+ allowed = this._trigger( "slide", event, {
+ handle: this.handles[ index ],
+ value: newVal
+ } );
+ if ( allowed !== false ) {
+ this.value( newVal );
+ }
+ }
+ }
+ },
+
+ _stop: function( event, index ) {
+ var uiHash = {
+ handle: this.handles[ index ],
+ value: this.value()
+ };
+ if ( this.options.values && this.options.values.length ) {
+ uiHash.value = this.values( index );
+ uiHash.values = this.values();
+ }
+
+ this._trigger( "stop", event, uiHash );
+ },
+
+ _change: function( event, index ) {
+ if ( !this._keySliding && !this._mouseSliding ) {
+ var uiHash = {
+ handle: this.handles[ index ],
+ value: this.value()
+ };
+ if ( this.options.values && this.options.values.length ) {
+ uiHash.value = this.values( index );
+ uiHash.values = this.values();
+ }
+
+ //store the last changed value index for reference when handles overlap
+ this._lastChangedValue = index;
+
+ this._trigger( "change", event, uiHash );
+ }
+ },
+
+ value: function( newValue ) {
+ if ( arguments.length ) {
+ this.options.value = this._trimAlignValue( newValue );
+ this._refreshValue();
+ this._change( null, 0 );
+ return;
+ }
+
+ return this._value();
+ },
+
+ values: function( index, newValue ) {
+ var vals,
+ newValues,
+ i;
+
+ if ( arguments.length > 1 ) {
+ this.options.values[ index ] = this._trimAlignValue( newValue );
+ this._refreshValue();
+ this._change( null, index );
+ return;
+ }
+
+ if ( arguments.length ) {
+ if ( $.isArray( arguments[ 0 ] ) ) {
+ vals = this.options.values;
+ newValues = arguments[ 0 ];
+ for ( i = 0; i < vals.length; i += 1 ) {
+ vals[ i ] = this._trimAlignValue( newValues[ i ] );
+ this._change( null, i );
+ }
+ this._refreshValue();
+ } else {
+ if ( this.options.values && this.options.values.length ) {
+ return this._values( index );
+ } else {
+ return this.value();
+ }
+ }
+ } else {
+ return this._values();
+ }
+ },
+
+ _setOption: function( key, value ) {
+ var i,
+ valsLength = 0;
+
+ if ( key === "range" && this.options.range === true ) {
+ if ( value === "min" ) {
+ this.options.value = this._values( 0 );
+ this.options.values = null;
+ } else if ( value === "max" ) {
+ this.options.value = this._values( this.options.values.length - 1 );
+ this.options.values = null;
+ }
+ }
+
+ if ( $.isArray( this.options.values ) ) {
+ valsLength = this.options.values.length;
+ }
+
+ if ( key === "disabled" ) {
+ this.element.toggleClass( "ui-state-disabled", !!value );
+ }
+
+ this._super( key, value );
+
+ switch ( key ) {
+ case "orientation":
+ this._detectOrientation();
+ this.element
+ .removeClass( "ui-slider-horizontal ui-slider-vertical" )
+ .addClass( "ui-slider-" + this.orientation );
+ this._refreshValue();
+
+ // Reset positioning from previous orientation
+ this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
+ break;
+ case "value":
+ this._animateOff = true;
+ this._refreshValue();
+ this._change( null, 0 );
+ this._animateOff = false;
+ break;
+ case "values":
+ this._animateOff = true;
+ this._refreshValue();
+ for ( i = 0; i < valsLength; i += 1 ) {
+ this._change( null, i );
+ }
+ this._animateOff = false;
+ break;
+ case "step":
+ case "min":
+ case "max":
+ this._animateOff = true;
+ this._calculateNewMax();
+ this._refreshValue();
+ this._animateOff = false;
+ break;
+ case "range":
+ this._animateOff = true;
+ this._refresh();
+ this._animateOff = false;
+ break;
+ }
+ },
+
+ //internal value getter
+ // _value() returns value trimmed by min and max, aligned by step
+ _value: function() {
+ var val = this.options.value;
+ val = this._trimAlignValue( val );
+
+ return val;
+ },
+
+ //internal values getter
+ // _values() returns array of values trimmed by min and max, aligned by step
+ // _values( index ) returns single value trimmed by min and max, aligned by step
+ _values: function( index ) {
+ var val,
+ vals,
+ i;
+
+ if ( arguments.length ) {
+ val = this.options.values[ index ];
+ val = this._trimAlignValue( val );
+
+ return val;
+ } else if ( this.options.values && this.options.values.length ) {
+ // .slice() creates a copy of the array
+ // this copy gets trimmed by min and max and then returned
+ vals = this.options.values.slice();
+ for ( i = 0; i < vals.length; i += 1) {
+ vals[ i ] = this._trimAlignValue( vals[ i ] );
+ }
+
+ return vals;
+ } else {
+ return [];
+ }
+ },
+
+ // returns the step-aligned value that val is closest to, between (inclusive) min and max
+ _trimAlignValue: function( val ) {
+ if ( val <= this._valueMin() ) {
+ return this._valueMin();
+ }
+ if ( val >= this._valueMax() ) {
+ return this._valueMax();
+ }
+ var step = ( this.options.step > 0 ) ? this.options.step : 1,
+ valModStep = (val - this._valueMin()) % step,
+ alignValue = val - valModStep;
+
+ if ( Math.abs(valModStep) * 2 >= step ) {
+ alignValue += ( valModStep > 0 ) ? step : ( -step );
+ }
+
+ // Since JavaScript has problems with large floats, round
+ // the final value to 5 digits after the decimal point (see #4124)
+ return parseFloat( alignValue.toFixed(5) );
+ },
+
+ _calculateNewMax: function() {
+ var max = this.options.max,
+ min = this._valueMin(),
+ step = this.options.step,
+ aboveMin = Math.floor( ( +( max - min ).toFixed( this._precision() ) ) / step ) * step;
+ max = aboveMin + min;
+ this.max = parseFloat( max.toFixed( this._precision() ) );
+ },
+
+ _precision: function() {
+ var precision = this._precisionOf( this.options.step );
+ if ( this.options.min !== null ) {
+ precision = Math.max( precision, this._precisionOf( this.options.min ) );
+ }
+ return precision;
+ },
+
+ _precisionOf: function( num ) {
+ var str = num.toString(),
+ decimal = str.indexOf( "." );
+ return decimal === -1 ? 0 : str.length - decimal - 1;
+ },
+
+ _valueMin: function() {
+ return this.options.min;
+ },
+
+ _valueMax: function() {
+ return this.max;
+ },
+
+ _refreshValue: function() {
+ var lastValPercent, valPercent, value, valueMin, valueMax,
+ oRange = this.options.range,
+ o = this.options,
+ that = this,
+ animate = ( !this._animateOff ) ? o.animate : false,
+ _set = {};
+
+ if ( this.options.values && this.options.values.length ) {
+ this.handles.each(function( i ) {
+ valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;
+ _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
+ $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
+ if ( that.options.range === true ) {
+ if ( that.orientation === "horizontal" ) {
+ if ( i === 0 ) {
+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );
+ }
+ if ( i === 1 ) {
+ that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ } else {
+ if ( i === 0 ) {
+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );
+ }
+ if ( i === 1 ) {
+ that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ }
+ }
+ lastValPercent = valPercent;
+ });
+ } else {
+ value = this.value();
+ valueMin = this._valueMin();
+ valueMax = this._valueMax();
+ valPercent = ( valueMax !== valueMin ) ?
+ ( value - valueMin ) / ( valueMax - valueMin ) * 100 :
+ 0;
+ _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
+ this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
+
+ if ( oRange === "min" && this.orientation === "horizontal" ) {
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );
+ }
+ if ( oRange === "max" && this.orientation === "horizontal" ) {
+ this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ if ( oRange === "min" && this.orientation === "vertical" ) {
+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );
+ }
+ if ( oRange === "max" && this.orientation === "vertical" ) {
+ this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );
+ }
+ }
+ },
+
+ _handleEvents: {
+ keydown: function( event ) {
+ var allowed, curVal, newVal, step,
+ index = $( event.target ).data( "ui-slider-handle-index" );
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.HOME:
+ case $.ui.keyCode.END:
+ case $.ui.keyCode.PAGE_UP:
+ case $.ui.keyCode.PAGE_DOWN:
+ case $.ui.keyCode.UP:
+ case $.ui.keyCode.RIGHT:
+ case $.ui.keyCode.DOWN:
+ case $.ui.keyCode.LEFT:
+ event.preventDefault();
+ if ( !this._keySliding ) {
+ this._keySliding = true;
+ $( event.target ).addClass( "ui-state-active" );
+ allowed = this._start( event, index );
+ if ( allowed === false ) {
+ return;
+ }
+ }
+ break;
+ }
+
+ step = this.options.step;
+ if ( this.options.values && this.options.values.length ) {
+ curVal = newVal = this.values( index );
+ } else {
+ curVal = newVal = this.value();
+ }
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.HOME:
+ newVal = this._valueMin();
+ break;
+ case $.ui.keyCode.END:
+ newVal = this._valueMax();
+ break;
+ case $.ui.keyCode.PAGE_UP:
+ newVal = this._trimAlignValue(
+ curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
+ );
+ break;
+ case $.ui.keyCode.PAGE_DOWN:
+ newVal = this._trimAlignValue(
+ curVal - ( (this._valueMax() - this._valueMin()) / this.numPages ) );
+ break;
+ case $.ui.keyCode.UP:
+ case $.ui.keyCode.RIGHT:
+ if ( curVal === this._valueMax() ) {
+ return;
+ }
+ newVal = this._trimAlignValue( curVal + step );
+ break;
+ case $.ui.keyCode.DOWN:
+ case $.ui.keyCode.LEFT:
+ if ( curVal === this._valueMin() ) {
+ return;
+ }
+ newVal = this._trimAlignValue( curVal - step );
+ break;
+ }
+
+ this._slide( event, index, newVal );
+ },
+ keyup: function( event ) {
+ var index = $( event.target ).data( "ui-slider-handle-index" );
+
+ if ( this._keySliding ) {
+ this._keySliding = false;
+ this._stop( event, index );
+ this._change( event, index );
+ $( event.target ).removeClass( "ui-state-active" );
+ }
+ }
+ }
+});
+
+
+/*!
+ * jQuery UI Spinner 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/spinner/
+ */
+
+
+function spinner_modifier( fn ) {
+ return function() {
+ var previous = this.element.val();
+ fn.apply( this, arguments );
+ this._refresh();
+ if ( previous !== this.element.val() ) {
+ this._trigger( "change" );
+ }
+ };
+}
+
+var spinner = $.widget( "ui.spinner", {
+ version: "1.11.4",
+ defaultElement: "<input>",
+ widgetEventPrefix: "spin",
+ options: {
+ culture: null,
+ icons: {
+ down: "ui-icon-triangle-1-s",
+ up: "ui-icon-triangle-1-n"
+ },
+ incremental: true,
+ max: null,
+ min: null,
+ numberFormat: null,
+ page: 10,
+ step: 1,
+
+ change: null,
+ spin: null,
+ start: null,
+ stop: null
+ },
+
+ _create: function() {
+ // handle string values that need to be parsed
+ this._setOption( "max", this.options.max );
+ this._setOption( "min", this.options.min );
+ this._setOption( "step", this.options.step );
+
+ // Only format if there is a value, prevents the field from being marked
+ // as invalid in Firefox, see #9573.
+ if ( this.value() !== "" ) {
+ // Format the value, but don't constrain.
+ this._value( this.element.val(), true );
+ }
+
+ this._draw();
+ this._on( this._events );
+ this._refresh();
+
+ // turning off autocomplete prevents the browser from remembering the
+ // value when navigating through history, so we re-enable autocomplete
+ // if the page is unloaded before the widget is destroyed. #7790
+ this._on( this.window, {
+ beforeunload: function() {
+ this.element.removeAttr( "autocomplete" );
+ }
+ });
+ },
+
+ _getCreateOptions: function() {
+ var options = {},
+ element = this.element;
+
+ $.each( [ "min", "max", "step" ], function( i, option ) {
+ var value = element.attr( option );
+ if ( value !== undefined && value.length ) {
+ options[ option ] = value;
+ }
+ });
+
+ return options;
+ },
+
+ _events: {
+ keydown: function( event ) {
+ if ( this._start( event ) && this._keydown( event ) ) {
+ event.preventDefault();
+ }
+ },
+ keyup: "_stop",
+ focus: function() {
+ this.previous = this.element.val();
+ },
+ blur: function( event ) {
+ if ( this.cancelBlur ) {
+ delete this.cancelBlur;
+ return;
+ }
+
+ this._stop();
+ this._refresh();
+ if ( this.previous !== this.element.val() ) {
+ this._trigger( "change", event );
+ }
+ },
+ mousewheel: function( event, delta ) {
+ if ( !delta ) {
+ return;
+ }
+ if ( !this.spinning && !this._start( event ) ) {
+ return false;
+ }
+
+ this._spin( (delta > 0 ? 1 : -1) * this.options.step, event );
+ clearTimeout( this.mousewheelTimer );
+ this.mousewheelTimer = this._delay(function() {
+ if ( this.spinning ) {
+ this._stop( event );
+ }
+ }, 100 );
+ event.preventDefault();
+ },
+ "mousedown .ui-spinner-button": function( event ) {
+ var previous;
+
+ // We never want the buttons to have focus; whenever the user is
+ // interacting with the spinner, the focus should be on the input.
+ // If the input is focused then this.previous is properly set from
+ // when the input first received focus. If the input is not focused
+ // then we need to set this.previous based on the value before spinning.
+ previous = this.element[0] === this.document[0].activeElement ?
+ this.previous : this.element.val();
+ function checkFocus() {
+ var isActive = this.element[0] === this.document[0].activeElement;
+ if ( !isActive ) {
+ this.element.focus();
+ this.previous = previous;
+ // support: IE
+ // IE sets focus asynchronously, so we need to check if focus
+ // moved off of the input because the user clicked on the button.
+ this._delay(function() {
+ this.previous = previous;
+ });
+ }
+ }
+
+ // ensure focus is on (or stays on) the text field
+ event.preventDefault();
+ checkFocus.call( this );
+
+ // support: IE
+ // IE doesn't prevent moving focus even with event.preventDefault()
+ // so we set a flag to know when we should ignore the blur event
+ // and check (again) if focus moved off of the input.
+ this.cancelBlur = true;
+ this._delay(function() {
+ delete this.cancelBlur;
+ checkFocus.call( this );
+ });
+
+ if ( this._start( event ) === false ) {
+ return;
+ }
+
+ this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event );
+ },
+ "mouseup .ui-spinner-button": "_stop",
+ "mouseenter .ui-spinner-button": function( event ) {
+ // button will add ui-state-active if mouse was down while mouseleave and kept down
+ if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) {
+ return;
+ }
+
+ if ( this._start( event ) === false ) {
+ return false;
+ }
+ this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event );
+ },
+ // TODO: do we really want to consider this a stop?
+ // shouldn't we just stop the repeater and wait until mouseup before
+ // we trigger the stop event?
+ "mouseleave .ui-spinner-button": "_stop"
+ },
+
+ _draw: function() {
+ var uiSpinner = this.uiSpinner = this.element
+ .addClass( "ui-spinner-input" )
+ .attr( "autocomplete", "off" )
+ .wrap( this._uiSpinnerHtml() )
+ .parent()
+ // add buttons
+ .append( this._buttonHtml() );
+
+ this.element.attr( "role", "spinbutton" );
+
+ // button bindings
+ this.buttons = uiSpinner.find( ".ui-spinner-button" )
+ .attr( "tabIndex", -1 )
+ .button()
+ .removeClass( "ui-corner-all" );
+
+ // IE 6 doesn't understand height: 50% for the buttons
+ // unless the wrapper has an explicit height
+ if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&
+ uiSpinner.height() > 0 ) {
+ uiSpinner.height( uiSpinner.height() );
+ }
+
+ // disable spinner if element was already disabled
+ if ( this.options.disabled ) {
+ this.disable();
+ }
+ },
+
+ _keydown: function( event ) {
+ var options = this.options,
+ keyCode = $.ui.keyCode;
+
+ switch ( event.keyCode ) {
+ case keyCode.UP:
+ this._repeat( null, 1, event );
+ return true;
+ case keyCode.DOWN:
+ this._repeat( null, -1, event );
+ return true;
+ case keyCode.PAGE_UP:
+ this._repeat( null, options.page, event );
+ return true;
+ case keyCode.PAGE_DOWN:
+ this._repeat( null, -options.page, event );
+ return true;
+ }
+
+ return false;
+ },
+
+ _uiSpinnerHtml: function() {
+ return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";
+ },
+
+ _buttonHtml: function() {
+ return "" +
+ "<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>" +
+ "<span class='ui-icon " + this.options.icons.up + "'>▲</span>" +
+ "</a>" +
+ "<a class='ui-spinner-button ui-spinner-down ui-corner-br'>" +
+ "<span class='ui-icon " + this.options.icons.down + "'>▼</span>" +
+ "</a>";
+ },
+
+ _start: function( event ) {
+ if ( !this.spinning && this._trigger( "start", event ) === false ) {
+ return false;
+ }
+
+ if ( !this.counter ) {
+ this.counter = 1;
+ }
+ this.spinning = true;
+ return true;
+ },
+
+ _repeat: function( i, steps, event ) {
+ i = i || 500;
+
+ clearTimeout( this.timer );
+ this.timer = this._delay(function() {
+ this._repeat( 40, steps, event );
+ }, i );
+
+ this._spin( steps * this.options.step, event );
+ },
+
+ _spin: function( step, event ) {
+ var value = this.value() || 0;
+
+ if ( !this.counter ) {
+ this.counter = 1;
+ }
+
+ value = this._adjustValue( value + step * this._increment( this.counter ) );
+
+ if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false) {
+ this._value( value );
+ this.counter++;
+ }
+ },
+
+ _increment: function( i ) {
+ var incremental = this.options.incremental;
+
+ if ( incremental ) {
+ return $.isFunction( incremental ) ?
+ incremental( i ) :
+ Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
+ }
+
+ return 1;
+ },
+
+ _precision: function() {
+ var precision = this._precisionOf( this.options.step );
+ if ( this.options.min !== null ) {
+ precision = Math.max( precision, this._precisionOf( this.options.min ) );
+ }
+ return precision;
+ },
+
+ _precisionOf: function( num ) {
+ var str = num.toString(),
+ decimal = str.indexOf( "." );
+ return decimal === -1 ? 0 : str.length - decimal - 1;
+ },
+
+ _adjustValue: function( value ) {
+ var base, aboveMin,
+ options = this.options;
+
+ // make sure we're at a valid step
+ // - find out where we are relative to the base (min or 0)
+ base = options.min !== null ? options.min : 0;
+ aboveMin = value - base;
+ // - round to the nearest step
+ aboveMin = Math.round(aboveMin / options.step) * options.step;
+ // - rounding is based on 0, so adjust back to our base
+ value = base + aboveMin;
+
+ // fix precision from bad JS floating point math
+ value = parseFloat( value.toFixed( this._precision() ) );
+
+ // clamp the value
+ if ( options.max !== null && value > options.max) {
+ return options.max;
+ }
+ if ( options.min !== null && value < options.min ) {
+ return options.min;
+ }
+
+ return value;
+ },
+
+ _stop: function( event ) {
+ if ( !this.spinning ) {
+ return;
+ }
+
+ clearTimeout( this.timer );
+ clearTimeout( this.mousewheelTimer );
+ this.counter = 0;
+ this.spinning = false;
+ this._trigger( "stop", event );
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "culture" || key === "numberFormat" ) {
+ var prevValue = this._parse( this.element.val() );
+ this.options[ key ] = value;
+ this.element.val( this._format( prevValue ) );
+ return;
+ }
+
+ if ( key === "max" || key === "min" || key === "step" ) {
+ if ( typeof value === "string" ) {
+ value = this._parse( value );
+ }
+ }
+ if ( key === "icons" ) {
+ this.buttons.first().find( ".ui-icon" )
+ .removeClass( this.options.icons.up )
+ .addClass( value.up );
+ this.buttons.last().find( ".ui-icon" )
+ .removeClass( this.options.icons.down )
+ .addClass( value.down );
+ }
+
+ this._super( key, value );
+
+ if ( key === "disabled" ) {
+ this.widget().toggleClass( "ui-state-disabled", !!value );
+ this.element.prop( "disabled", !!value );
+ this.buttons.button( value ? "disable" : "enable" );
+ }
+ },
+
+ _setOptions: spinner_modifier(function( options ) {
+ this._super( options );
+ }),
+
+ _parse: function( val ) {
+ if ( typeof val === "string" && val !== "" ) {
+ val = window.Globalize && this.options.numberFormat ?
+ Globalize.parseFloat( val, 10, this.options.culture ) : +val;
+ }
+ return val === "" || isNaN( val ) ? null : val;
+ },
+
+ _format: function( value ) {
+ if ( value === "" ) {
+ return "";
+ }
+ return window.Globalize && this.options.numberFormat ?
+ Globalize.format( value, this.options.numberFormat, this.options.culture ) :
+ value;
+ },
+
+ _refresh: function() {
+ this.element.attr({
+ "aria-valuemin": this.options.min,
+ "aria-valuemax": this.options.max,
+ // TODO: what should we do with values that can't be parsed?
+ "aria-valuenow": this._parse( this.element.val() )
+ });
+ },
+
+ isValid: function() {
+ var value = this.value();
+
+ // null is invalid
+ if ( value === null ) {
+ return false;
+ }
+
+ // if value gets adjusted, it's invalid
+ return value === this._adjustValue( value );
+ },
+
+ // update the value without triggering change
+ _value: function( value, allowAny ) {
+ var parsed;
+ if ( value !== "" ) {
+ parsed = this._parse( value );
+ if ( parsed !== null ) {
+ if ( !allowAny ) {
+ parsed = this._adjustValue( parsed );
+ }
+ value = this._format( parsed );
+ }
+ }
+ this.element.val( value );
+ this._refresh();
+ },
+
+ _destroy: function() {
+ this.element
+ .removeClass( "ui-spinner-input" )
+ .prop( "disabled", false )
+ .removeAttr( "autocomplete" )
+ .removeAttr( "role" )
+ .removeAttr( "aria-valuemin" )
+ .removeAttr( "aria-valuemax" )
+ .removeAttr( "aria-valuenow" );
+ this.uiSpinner.replaceWith( this.element );
+ },
+
+ stepUp: spinner_modifier(function( steps ) {
+ this._stepUp( steps );
+ }),
+ _stepUp: function( steps ) {
+ if ( this._start() ) {
+ this._spin( (steps || 1) * this.options.step );
+ this._stop();
+ }
+ },
+
+ stepDown: spinner_modifier(function( steps ) {
+ this._stepDown( steps );
+ }),
+ _stepDown: function( steps ) {
+ if ( this._start() ) {
+ this._spin( (steps || 1) * -this.options.step );
+ this._stop();
+ }
+ },
+
+ pageUp: spinner_modifier(function( pages ) {
+ this._stepUp( (pages || 1) * this.options.page );
+ }),
+
+ pageDown: spinner_modifier(function( pages ) {
+ this._stepDown( (pages || 1) * this.options.page );
+ }),
+
+ value: function( newVal ) {
+ if ( !arguments.length ) {
+ return this._parse( this.element.val() );
+ }
+ spinner_modifier( this._value ).call( this, newVal );
+ },
+
+ widget: function() {
+ return this.uiSpinner;
+ }
+});
+
+
+/*!
+ * jQuery UI Tabs 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/tabs/
+ */
+
+
+var tabs = $.widget( "ui.tabs", {
+ version: "1.11.4",
+ delay: 300,
+ options: {
+ active: null,
+ collapsible: false,
+ event: "click",
+ heightStyle: "content",
+ hide: null,
+ show: null,
+
+ // callbacks
+ activate: null,
+ beforeActivate: null,
+ beforeLoad: null,
+ load: null
+ },
+
+ _isLocal: (function() {
+ var rhash = /#.*$/;
+
+ return function( anchor ) {
+ var anchorUrl, locationUrl;
+
+ // support: IE7
+ // IE7 doesn't normalize the href property when set via script (#9317)
+ anchor = anchor.cloneNode( false );
+
+ anchorUrl = anchor.href.replace( rhash, "" );
+ locationUrl = location.href.replace( rhash, "" );
+
+ // decoding may throw an error if the URL isn't UTF-8 (#9518)
+ try {
+ anchorUrl = decodeURIComponent( anchorUrl );
+ } catch ( error ) {}
+ try {
+ locationUrl = decodeURIComponent( locationUrl );
+ } catch ( error ) {}
+
+ return anchor.hash.length > 1 && anchorUrl === locationUrl;
+ };
+ })(),
+
+ _create: function() {
+ var that = this,
+ options = this.options;
+
+ this.running = false;
+
+ this.element
+ .addClass( "ui-tabs ui-widget ui-widget-content ui-corner-all" )
+ .toggleClass( "ui-tabs-collapsible", options.collapsible );
+
+ this._processTabs();
+ options.active = this._initialActive();
+
+ // Take disabling tabs via class attribute from HTML
+ // into account and update option properly.
+ if ( $.isArray( options.disabled ) ) {
+ options.disabled = $.unique( options.disabled.concat(
+ $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {
+ return that.tabs.index( li );
+ })
+ ) ).sort();
+ }
+
+ // check for length avoids error when initializing empty list
+ if ( this.options.active !== false && this.anchors.length ) {
+ this.active = this._findActive( options.active );
+ } else {
+ this.active = $();
+ }
+
+ this._refresh();
+
+ if ( this.active.length ) {
+ this.load( options.active );
+ }
+ },
+
+ _initialActive: function() {
+ var active = this.options.active,
+ collapsible = this.options.collapsible,
+ locationHash = location.hash.substring( 1 );
+
+ if ( active === null ) {
+ // check the fragment identifier in the URL
+ if ( locationHash ) {
+ this.tabs.each(function( i, tab ) {
+ if ( $( tab ).attr( "aria-controls" ) === locationHash ) {
+ active = i;
+ return false;
+ }
+ });
+ }
+
+ // check for a tab marked active via a class
+ if ( active === null ) {
+ active = this.tabs.index( this.tabs.filter( ".ui-tabs-active" ) );
+ }
+
+ // no active tab, set to false
+ if ( active === null || active === -1 ) {
+ active = this.tabs.length ? 0 : false;
+ }
+ }
+
+ // handle numbers: negative, out of range
+ if ( active !== false ) {
+ active = this.tabs.index( this.tabs.eq( active ) );
+ if ( active === -1 ) {
+ active = collapsible ? false : 0;
+ }
+ }
+
+ // don't allow collapsible: false and active: false
+ if ( !collapsible && active === false && this.anchors.length ) {
+ active = 0;
+ }
+
+ return active;
+ },
+
+ _getCreateEventData: function() {
+ return {
+ tab: this.active,
+ panel: !this.active.length ? $() : this._getPanelForTab( this.active )
+ };
+ },
+
+ _tabKeydown: function( event ) {
+ var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
+ selectedIndex = this.tabs.index( focusedTab ),
+ goingForward = true;
+
+ if ( this._handlePageNav( event ) ) {
+ return;
+ }
+
+ switch ( event.keyCode ) {
+ case $.ui.keyCode.RIGHT:
+ case $.ui.keyCode.DOWN:
+ selectedIndex++;
+ break;
+ case $.ui.keyCode.UP:
+ case $.ui.keyCode.LEFT:
+ goingForward = false;
+ selectedIndex--;
+ break;
+ case $.ui.keyCode.END:
+ selectedIndex = this.anchors.length - 1;
+ break;
+ case $.ui.keyCode.HOME:
+ selectedIndex = 0;
+ break;
+ case $.ui.keyCode.SPACE:
+ // Activate only, no collapsing
+ event.preventDefault();
+ clearTimeout( this.activating );
+ this._activate( selectedIndex );
+ return;
+ case $.ui.keyCode.ENTER:
+ // Toggle (cancel delayed activation, allow collapsing)
+ event.preventDefault();
+ clearTimeout( this.activating );
+ // Determine if we should collapse or activate
+ this._activate( selectedIndex === this.options.active ? false : selectedIndex );
+ return;
+ default:
+ return;
+ }
+
+ // Focus the appropriate tab, based on which key was pressed
+ event.preventDefault();
+ clearTimeout( this.activating );
+ selectedIndex = this._focusNextTab( selectedIndex, goingForward );
+
+ // Navigating with control/command key will prevent automatic activation
+ if ( !event.ctrlKey && !event.metaKey ) {
+
+ // Update aria-selected immediately so that AT think the tab is already selected.
+ // Otherwise AT may confuse the user by stating that they need to activate the tab,
+ // but the tab will already be activated by the time the announcement finishes.
+ focusedTab.attr( "aria-selected", "false" );
+ this.tabs.eq( selectedIndex ).attr( "aria-selected", "true" );
+
+ this.activating = this._delay(function() {
+ this.option( "active", selectedIndex );
+ }, this.delay );
+ }
+ },
+
+ _panelKeydown: function( event ) {
+ if ( this._handlePageNav( event ) ) {
+ return;
+ }
+
+ // Ctrl+up moves focus to the current tab
+ if ( event.ctrlKey && event.keyCode === $.ui.keyCode.UP ) {
+ event.preventDefault();
+ this.active.focus();
+ }
+ },
+
+ // Alt+page up/down moves focus to the previous/next tab (and activates)
+ _handlePageNav: function( event ) {
+ if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_UP ) {
+ this._activate( this._focusNextTab( this.options.active - 1, false ) );
+ return true;
+ }
+ if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_DOWN ) {
+ this._activate( this._focusNextTab( this.options.active + 1, true ) );
+ return true;
+ }
+ },
+
+ _findNextTab: function( index, goingForward ) {
+ var lastTabIndex = this.tabs.length - 1;
+
+ function constrain() {
+ if ( index > lastTabIndex ) {
+ index = 0;
+ }
+ if ( index < 0 ) {
+ index = lastTabIndex;
+ }
+ return index;
+ }
+
+ while ( $.inArray( constrain(), this.options.disabled ) !== -1 ) {
+ index = goingForward ? index + 1 : index - 1;
+ }
+
+ return index;
+ },
+
+ _focusNextTab: function( index, goingForward ) {
+ index = this._findNextTab( index, goingForward );
+ this.tabs.eq( index ).focus();
+ return index;
+ },
+
+ _setOption: function( key, value ) {
+ if ( key === "active" ) {
+ // _activate() will handle invalid values and update this.options
+ this._activate( value );
+ return;
+ }
+
+ if ( key === "disabled" ) {
+ // don't use the widget factory's disabled handling
+ this._setupDisabled( value );
+ return;
+ }
+
+ this._super( key, value);
+
+ if ( key === "collapsible" ) {
+ this.element.toggleClass( "ui-tabs-collapsible", value );
+ // Setting collapsible: false while collapsed; open first panel
+ if ( !value && this.options.active === false ) {
+ this._activate( 0 );
+ }
+ }
+
+ if ( key === "event" ) {
+ this._setupEvents( value );
+ }
+
+ if ( key === "heightStyle" ) {
+ this._setupHeightStyle( value );
+ }
+ },
+
+ _sanitizeSelector: function( hash ) {
+ return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";
+ },
+
+ refresh: function() {
+ var options = this.options,
+ lis = this.tablist.children( ":has(a[href])" );
+
+ // get disabled tabs from class attribute from HTML
+ // this will get converted to a boolean if needed in _refresh()
+ options.disabled = $.map( lis.filter( ".ui-state-disabled" ), function( tab ) {
+ return lis.index( tab );
+ });
+
+ this._processTabs();
+
+ // was collapsed or no tabs
+ if ( options.active === false || !this.anchors.length ) {
+ options.active = false;
+ this.active = $();
+ // was active, but active tab is gone
+ } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) {
+ // all remaining tabs are disabled
+ if ( this.tabs.length === options.disabled.length ) {
+ options.active = false;
+ this.active = $();
+ // activate previous tab
+ } else {
+ this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) );
+ }
+ // was active, active tab still exists
+ } else {
+ // make sure active index is correct
+ options.active = this.tabs.index( this.active );
+ }
+
+ this._refresh();
+ },
+
+ _refresh: function() {
+ this._setupDisabled( this.options.disabled );
+ this._setupEvents( this.options.event );
+ this._setupHeightStyle( this.options.heightStyle );
+
+ this.tabs.not( this.active ).attr({
+ "aria-selected": "false",
+ "aria-expanded": "false",
+ tabIndex: -1
+ });
+ this.panels.not( this._getPanelForTab( this.active ) )
+ .hide()
+ .attr({
+ "aria-hidden": "true"
+ });
+
+ // Make sure one tab is in the tab order
+ if ( !this.active.length ) {
+ this.tabs.eq( 0 ).attr( "tabIndex", 0 );
+ } else {
+ this.active
+ .addClass( "ui-tabs-active ui-state-active" )
+ .attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ });
+ this._getPanelForTab( this.active )
+ .show()
+ .attr({
+ "aria-hidden": "false"
+ });
+ }
+ },
+
+ _processTabs: function() {
+ var that = this,
+ prevTabs = this.tabs,
+ prevAnchors = this.anchors,
+ prevPanels = this.panels;
+
+ this.tablist = this._getList()
+ .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )
+ .attr( "role", "tablist" )
+
+ // Prevent users from focusing disabled tabs via click
+ .delegate( "> li", "mousedown" + this.eventNamespace, function( event ) {
+ if ( $( this ).is( ".ui-state-disabled" ) ) {
+ event.preventDefault();
+ }
+ })
+
+ // support: IE <9
+ // Preventing the default action in mousedown doesn't prevent IE
+ // from focusing the element, so if the anchor gets focused, blur.
+ // We don't have to worry about focusing the previously focused
+ // element since clicking on a non-focusable element should focus
+ // the body anyway.
+ .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() {
+ if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
+ this.blur();
+ }
+ });
+
+ this.tabs = this.tablist.find( "> li:has(a[href])" )
+ .addClass( "ui-state-default ui-corner-top" )
+ .attr({
+ role: "tab",
+ tabIndex: -1
+ });
+
+ this.anchors = this.tabs.map(function() {
+ return $( "a", this )[ 0 ];
+ })
+ .addClass( "ui-tabs-anchor" )
+ .attr({
+ role: "presentation",
+ tabIndex: -1
+ });
+
+ this.panels = $();
+
+ this.anchors.each(function( i, anchor ) {
+ var selector, panel, panelId,
+ anchorId = $( anchor ).uniqueId().attr( "id" ),
+ tab = $( anchor ).closest( "li" ),
+ originalAriaControls = tab.attr( "aria-controls" );
+
+ // inline tab
+ if ( that._isLocal( anchor ) ) {
+ selector = anchor.hash;
+ panelId = selector.substring( 1 );
+ panel = that.element.find( that._sanitizeSelector( selector ) );
+ // remote tab
+ } else {
+ // If the tab doesn't already have aria-controls,
+ // generate an id by using a throw-away element
+ panelId = tab.attr( "aria-controls" ) || $( {} ).uniqueId()[ 0 ].id;
+ selector = "#" + panelId;
+ panel = that.element.find( selector );
+ if ( !panel.length ) {
+ panel = that._createPanel( panelId );
+ panel.insertAfter( that.panels[ i - 1 ] || that.tablist );
+ }
+ panel.attr( "aria-live", "polite" );
+ }
+
+ if ( panel.length) {
+ that.panels = that.panels.add( panel );
+ }
+ if ( originalAriaControls ) {
+ tab.data( "ui-tabs-aria-controls", originalAriaControls );
+ }
+ tab.attr({
+ "aria-controls": panelId,
+ "aria-labelledby": anchorId
+ });
+ panel.attr( "aria-labelledby", anchorId );
+ });
+
+ this.panels
+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
+ .attr( "role", "tabpanel" );
+
+ // Avoid memory leaks (#10056)
+ if ( prevTabs ) {
+ this._off( prevTabs.not( this.tabs ) );
+ this._off( prevAnchors.not( this.anchors ) );
+ this._off( prevPanels.not( this.panels ) );
+ }
+ },
+
+ // allow overriding how to find the list for rare usage scenarios (#7715)
+ _getList: function() {
+ return this.tablist || this.element.find( "ol,ul" ).eq( 0 );
+ },
+
+ _createPanel: function( id ) {
+ return $( "<div>" )
+ .attr( "id", id )
+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )
+ .data( "ui-tabs-destroy", true );
+ },
+
+ _setupDisabled: function( disabled ) {
+ if ( $.isArray( disabled ) ) {
+ if ( !disabled.length ) {
+ disabled = false;
+ } else if ( disabled.length === this.anchors.length ) {
+ disabled = true;
+ }
+ }
+
+ // disable tabs
+ for ( var i = 0, li; ( li = this.tabs[ i ] ); i++ ) {
+ if ( disabled === true || $.inArray( i, disabled ) !== -1 ) {
+ $( li )
+ .addClass( "ui-state-disabled" )
+ .attr( "aria-disabled", "true" );
+ } else {
+ $( li )
+ .removeClass( "ui-state-disabled" )
+ .removeAttr( "aria-disabled" );
+ }
+ }
+
+ this.options.disabled = disabled;
+ },
+
+ _setupEvents: function( event ) {
+ var events = {};
+ if ( event ) {
+ $.each( event.split(" "), function( index, eventName ) {
+ events[ eventName ] = "_eventHandler";
+ });
+ }
+
+ this._off( this.anchors.add( this.tabs ).add( this.panels ) );
+ // Always prevent the default action, even when disabled
+ this._on( true, this.anchors, {
+ click: function( event ) {
+ event.preventDefault();
+ }
+ });
+ this._on( this.anchors, events );
+ this._on( this.tabs, { keydown: "_tabKeydown" } );
+ this._on( this.panels, { keydown: "_panelKeydown" } );
+
+ this._focusable( this.tabs );
+ this._hoverable( this.tabs );
+ },
+
+ _setupHeightStyle: function( heightStyle ) {
+ var maxHeight,
+ parent = this.element.parent();
+
+ if ( heightStyle === "fill" ) {
+ maxHeight = parent.height();
+ maxHeight -= this.element.outerHeight() - this.element.height();
+
+ this.element.siblings( ":visible" ).each(function() {
+ var elem = $( this ),
+ position = elem.css( "position" );
+
+ if ( position === "absolute" || position === "fixed" ) {
+ return;
+ }
+ maxHeight -= elem.outerHeight( true );
+ });
+
+ this.element.children().not( this.panels ).each(function() {
+ maxHeight -= $( this ).outerHeight( true );
+ });
+
+ this.panels.each(function() {
+ $( this ).height( Math.max( 0, maxHeight -
+ $( this ).innerHeight() + $( this ).height() ) );
+ })
+ .css( "overflow", "auto" );
+ } else if ( heightStyle === "auto" ) {
+ maxHeight = 0;
+ this.panels.each(function() {
+ maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );
+ }).height( maxHeight );
+ }
+ },
+
+ _eventHandler: function( event ) {
+ var options = this.options,
+ active = this.active,
+ anchor = $( event.currentTarget ),
+ tab = anchor.closest( "li" ),
+ clickedIsActive = tab[ 0 ] === active[ 0 ],
+ collapsing = clickedIsActive && options.collapsible,
+ toShow = collapsing ? $() : this._getPanelForTab( tab ),
+ toHide = !active.length ? $() : this._getPanelForTab( active ),
+ eventData = {
+ oldTab: active,
+ oldPanel: toHide,
+ newTab: collapsing ? $() : tab,
+ newPanel: toShow
+ };
+
+ event.preventDefault();
+
+ if ( tab.hasClass( "ui-state-disabled" ) ||
+ // tab is already loading
+ tab.hasClass( "ui-tabs-loading" ) ||
+ // can't switch durning an animation
+ this.running ||
+ // click on active header, but not collapsible
+ ( clickedIsActive && !options.collapsible ) ||
+ // allow canceling activation
+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
+ return;
+ }
+
+ options.active = collapsing ? false : this.tabs.index( tab );
+
+ this.active = clickedIsActive ? $() : tab;
+ if ( this.xhr ) {
+ this.xhr.abort();
+ }
+
+ if ( !toHide.length && !toShow.length ) {
+ $.error( "jQuery UI Tabs: Mismatching fragment identifier." );
+ }
+
+ if ( toShow.length ) {
+ this.load( this.tabs.index( tab ), event );
+ }
+ this._toggle( event, eventData );
+ },
+
+ // handles show/hide for selecting tabs
+ _toggle: function( event, eventData ) {
+ var that = this,
+ toShow = eventData.newPanel,
+ toHide = eventData.oldPanel;
+
+ this.running = true;
+
+ function complete() {
+ that.running = false;
+ that._trigger( "activate", event, eventData );
+ }
+
+ function show() {
+ eventData.newTab.closest( "li" ).addClass( "ui-tabs-active ui-state-active" );
+
+ if ( toShow.length && that.options.show ) {
+ that._show( toShow, that.options.show, complete );
+ } else {
+ toShow.show();
+ complete();
+ }
+ }
+
+ // start out by hiding, then showing, then completing
+ if ( toHide.length && this.options.hide ) {
+ this._hide( toHide, this.options.hide, function() {
+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );
+ show();
+ });
+ } else {
+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );
+ toHide.hide();
+ show();
+ }
+
+ toHide.attr( "aria-hidden", "true" );
+ eventData.oldTab.attr({
+ "aria-selected": "false",
+ "aria-expanded": "false"
+ });
+ // If we're switching tabs, remove the old tab from the tab order.
+ // If we're opening from collapsed state, remove the previous tab from the tab order.
+ // If we're collapsing, then keep the collapsing tab in the tab order.
+ if ( toShow.length && toHide.length ) {
+ eventData.oldTab.attr( "tabIndex", -1 );
+ } else if ( toShow.length ) {
+ this.tabs.filter(function() {
+ return $( this ).attr( "tabIndex" ) === 0;
+ })
+ .attr( "tabIndex", -1 );
+ }
+
+ toShow.attr( "aria-hidden", "false" );
+ eventData.newTab.attr({
+ "aria-selected": "true",
+ "aria-expanded": "true",
+ tabIndex: 0
+ });
+ },
+
+ _activate: function( index ) {
+ var anchor,
+ active = this._findActive( index );
+
+ // trying to activate the already active panel
+ if ( active[ 0 ] === this.active[ 0 ] ) {
+ return;
+ }
+
+ // trying to collapse, simulate a click on the current active header
+ if ( !active.length ) {
+ active = this.active;
+ }
+
+ anchor = active.find( ".ui-tabs-anchor" )[ 0 ];
+ this._eventHandler({
+ target: anchor,
+ currentTarget: anchor,
+ preventDefault: $.noop
+ });
+ },
+
+ _findActive: function( index ) {
+ return index === false ? $() : this.tabs.eq( index );
+ },
+
+ _getIndex: function( index ) {
+ // meta-function to give users option to provide a href string instead of a numerical index.
+ if ( typeof index === "string" ) {
+ index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
+ }
+
+ return index;
+ },
+
+ _destroy: function() {
+ if ( this.xhr ) {
+ this.xhr.abort();
+ }
+
+ this.element.removeClass( "ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible" );
+
+ this.tablist
+ .removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )
+ .removeAttr( "role" );
+
+ this.anchors
+ .removeClass( "ui-tabs-anchor" )
+ .removeAttr( "role" )
+ .removeAttr( "tabIndex" )
+ .removeUniqueId();
+
+ this.tablist.unbind( this.eventNamespace );
+
+ this.tabs.add( this.panels ).each(function() {
+ if ( $.data( this, "ui-tabs-destroy" ) ) {
+ $( this ).remove();
+ } else {
+ $( this )
+ .removeClass( "ui-state-default ui-state-active ui-state-disabled " +
+ "ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel" )
+ .removeAttr( "tabIndex" )
+ .removeAttr( "aria-live" )
+ .removeAttr( "aria-busy" )
+ .removeAttr( "aria-selected" )
+ .removeAttr( "aria-labelledby" )
+ .removeAttr( "aria-hidden" )
+ .removeAttr( "aria-expanded" )
+ .removeAttr( "role" );
+ }
+ });
+
+ this.tabs.each(function() {
+ var li = $( this ),
+ prev = li.data( "ui-tabs-aria-controls" );
+ if ( prev ) {
+ li
+ .attr( "aria-controls", prev )
+ .removeData( "ui-tabs-aria-controls" );
+ } else {
+ li.removeAttr( "aria-controls" );
+ }
+ });
+
+ this.panels.show();
+
+ if ( this.options.heightStyle !== "content" ) {
+ this.panels.css( "height", "" );
+ }
+ },
+
+ enable: function( index ) {
+ var disabled = this.options.disabled;
+ if ( disabled === false ) {
+ return;
+ }
+
+ if ( index === undefined ) {
+ disabled = false;
+ } else {
+ index = this._getIndex( index );
+ if ( $.isArray( disabled ) ) {
+ disabled = $.map( disabled, function( num ) {
+ return num !== index ? num : null;
+ });
+ } else {
+ disabled = $.map( this.tabs, function( li, num ) {
+ return num !== index ? num : null;
+ });
+ }
+ }
+ this._setupDisabled( disabled );
+ },
+
+ disable: function( index ) {
+ var disabled = this.options.disabled;
+ if ( disabled === true ) {
+ return;
+ }
+
+ if ( index === undefined ) {
+ disabled = true;
+ } else {
+ index = this._getIndex( index );
+ if ( $.inArray( index, disabled ) !== -1 ) {
+ return;
+ }
+ if ( $.isArray( disabled ) ) {
+ disabled = $.merge( [ index ], disabled ).sort();
+ } else {
+ disabled = [ index ];
+ }
+ }
+ this._setupDisabled( disabled );
+ },
+
+ load: function( index, event ) {
+ index = this._getIndex( index );
+ var that = this,
+ tab = this.tabs.eq( index ),
+ anchor = tab.find( ".ui-tabs-anchor" ),
+ panel = this._getPanelForTab( tab ),
+ eventData = {
+ tab: tab,
+ panel: panel
+ },
+ complete = function( jqXHR, status ) {
+ if ( status === "abort" ) {
+ that.panels.stop( false, true );
+ }
+
+ tab.removeClass( "ui-tabs-loading" );
+ panel.removeAttr( "aria-busy" );
+
+ if ( jqXHR === that.xhr ) {
+ delete that.xhr;
+ }
+ };
+
+ // not remote
+ if ( this._isLocal( anchor[ 0 ] ) ) {
+ return;
+ }
+
+ this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );
+
+ // support: jQuery <1.8
+ // jQuery <1.8 returns false if the request is canceled in beforeSend,
+ // but as of 1.8, $.ajax() always returns a jqXHR object.
+ if ( this.xhr && this.xhr.statusText !== "canceled" ) {
+ tab.addClass( "ui-tabs-loading" );
+ panel.attr( "aria-busy", "true" );
+
+ this.xhr
+ .done(function( response, status, jqXHR ) {
+ // support: jQuery <1.8
+ // http://bugs.jquery.com/ticket/11778
+ setTimeout(function() {
+ panel.html( response );
+ that._trigger( "load", event, eventData );
+
+ complete( jqXHR, status );
+ }, 1 );
+ })
+ .fail(function( jqXHR, status ) {
+ // support: jQuery <1.8
+ // http://bugs.jquery.com/ticket/11778
+ setTimeout(function() {
+ complete( jqXHR, status );
+ }, 1 );
+ });
+ }
+ },
+
+ _ajaxSettings: function( anchor, event, eventData ) {
+ var that = this;
+ return {
+ url: anchor.attr( "href" ),
+ beforeSend: function( jqXHR, settings ) {
+ return that._trigger( "beforeLoad", event,
+ $.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) );
+ }
+ };
+ },
+
+ _getPanelForTab: function( tab ) {
+ var id = $( tab ).attr( "aria-controls" );
+ return this.element.find( this._sanitizeSelector( "#" + id ) );
+ }
+});
+
+
+/*!
+ * jQuery UI Tooltip 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/tooltip/
+ */
+
+
+var tooltip = $.widget( "ui.tooltip", {
+ version: "1.11.4",
+ options: {
+ content: function() {
+ // support: IE<9, Opera in jQuery <1.7
+ // .text() can't accept undefined, so coerce to a string
+ var title = $( this ).attr( "title" ) || "";
+ // Escape title, since we're going from an attribute to raw HTML
+ return $( "<a>" ).text( title ).html();
+ },
+ hide: true,
+ // Disabled elements have inconsistent behavior across browsers (#8661)
+ items: "[title]:not([disabled])",
+ position: {
+ my: "left top+15",
+ at: "left bottom",
+ collision: "flipfit flip"
+ },
+ show: true,
+ tooltipClass: null,
+ track: false,
+
+ // callbacks
+ close: null,
+ open: null
+ },
+
+ _addDescribedBy: function( elem, id ) {
+ var describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ );
+ describedby.push( id );
+ elem
+ .data( "ui-tooltip-id", id )
+ .attr( "aria-describedby", $.trim( describedby.join( " " ) ) );
+ },
+
+ _removeDescribedBy: function( elem ) {
+ var id = elem.data( "ui-tooltip-id" ),
+ describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ),
+ index = $.inArray( id, describedby );
+
+ if ( index !== -1 ) {
+ describedby.splice( index, 1 );
+ }
+
+ elem.removeData( "ui-tooltip-id" );
+ describedby = $.trim( describedby.join( " " ) );
+ if ( describedby ) {
+ elem.attr( "aria-describedby", describedby );
+ } else {
+ elem.removeAttr( "aria-describedby" );
+ }
+ },
+
+ _create: function() {
+ this._on({
+ mouseover: "open",
+ focusin: "open"
+ });
+
+ // IDs of generated tooltips, needed for destroy
+ this.tooltips = {};
+
+ // IDs of parent tooltips where we removed the title attribute
+ this.parents = {};
+
+ if ( this.options.disabled ) {
+ this._disable();
+ }
+
+ // Append the aria-live region so tooltips announce correctly
+ this.liveRegion = $( "<div>" )
+ .attr({
+ role: "log",
+ "aria-live": "assertive",
+ "aria-relevant": "additions"
+ })
+ .addClass( "ui-helper-hidden-accessible" )
+ .appendTo( this.document[ 0 ].body );
+ },
+
+ _setOption: function( key, value ) {
+ var that = this;
+
+ if ( key === "disabled" ) {
+ this[ value ? "_disable" : "_enable" ]();
+ this.options[ key ] = value;
+ // disable element style changes
+ return;
+ }
+
+ this._super( key, value );
+
+ if ( key === "content" ) {
+ $.each( this.tooltips, function( id, tooltipData ) {
+ that._updateContent( tooltipData.element );
+ });
+ }
+ },
+
+ _disable: function() {
+ var that = this;
+
+ // close open tooltips
+ $.each( this.tooltips, function( id, tooltipData ) {
+ var event = $.Event( "blur" );
+ event.target = event.currentTarget = tooltipData.element[ 0 ];
+ that.close( event, true );
+ });
+
+ // remove title attributes to prevent native tooltips
+ this.element.find( this.options.items ).addBack().each(function() {
+ var element = $( this );
+ if ( element.is( "[title]" ) ) {
+ element
+ .data( "ui-tooltip-title", element.attr( "title" ) )
+ .removeAttr( "title" );
+ }
+ });
+ },
+
+ _enable: function() {
+ // restore title attributes
+ this.element.find( this.options.items ).addBack().each(function() {
+ var element = $( this );
+ if ( element.data( "ui-tooltip-title" ) ) {
+ element.attr( "title", element.data( "ui-tooltip-title" ) );
+ }
+ });
+ },
+
+ open: function( event ) {
+ var that = this,
+ target = $( event ? event.target : this.element )
+ // we need closest here due to mouseover bubbling,
+ // but always pointing at the same event target
+ .closest( this.options.items );
+
+ // No element to show a tooltip for or the tooltip is already open
+ if ( !target.length || target.data( "ui-tooltip-id" ) ) {
+ return;
+ }
+
+ if ( target.attr( "title" ) ) {
+ target.data( "ui-tooltip-title", target.attr( "title" ) );
+ }
+
+ target.data( "ui-tooltip-open", true );
+
+ // kill parent tooltips, custom or native, for hover
+ if ( event && event.type === "mouseover" ) {
+ target.parents().each(function() {
+ var parent = $( this ),
+ blurEvent;
+ if ( parent.data( "ui-tooltip-open" ) ) {
+ blurEvent = $.Event( "blur" );
+ blurEvent.target = blurEvent.currentTarget = this;
+ that.close( blurEvent, true );
+ }
+ if ( parent.attr( "title" ) ) {
+ parent.uniqueId();
+ that.parents[ this.id ] = {
+ element: this,
+ title: parent.attr( "title" )
+ };
+ parent.attr( "title", "" );
+ }
+ });
+ }
+
+ this._registerCloseHandlers( event, target );
+ this._updateContent( target, event );
+ },
+
+ _updateContent: function( target, event ) {
+ var content,
+ contentOption = this.options.content,
+ that = this,
+ eventType = event ? event.type : null;
+
+ if ( typeof contentOption === "string" ) {
+ return this._open( event, target, contentOption );
+ }
+
+ content = contentOption.call( target[0], function( response ) {
+
+ // IE may instantly serve a cached response for ajax requests
+ // delay this call to _open so the other call to _open runs first
+ that._delay(function() {
+
+ // Ignore async response if tooltip was closed already
+ if ( !target.data( "ui-tooltip-open" ) ) {
+ return;
+ }
+
+ // jQuery creates a special event for focusin when it doesn't
+ // exist natively. To improve performance, the native event
+ // object is reused and the type is changed. Therefore, we can't
+ // rely on the type being correct after the event finished
+ // bubbling, so we set it back to the previous value. (#8740)
+ if ( event ) {
+ event.type = eventType;
+ }
+ this._open( event, target, response );
+ });
+ });
+ if ( content ) {
+ this._open( event, target, content );
+ }
+ },
+
+ _open: function( event, target, content ) {
+ var tooltipData, tooltip, delayedShow, a11yContent,
+ positionOption = $.extend( {}, this.options.position );
+
+ if ( !content ) {
+ return;
+ }
+
+ // Content can be updated multiple times. If the tooltip already
+ // exists, then just update the content and bail.
+ tooltipData = this._find( target );
+ if ( tooltipData ) {
+ tooltipData.tooltip.find( ".ui-tooltip-content" ).html( content );
+ return;
+ }
+
+ // if we have a title, clear it to prevent the native tooltip
+ // we have to check first to avoid defining a title if none exists
+ // (we don't want to cause an element to start matching [title])
+ //
+ // We use removeAttr only for key events, to allow IE to export the correct
+ // accessible attributes. For mouse events, set to empty string to avoid
+ // native tooltip showing up (happens only when removing inside mouseover).
+ if ( target.is( "[title]" ) ) {
+ if ( event && event.type === "mouseover" ) {
+ target.attr( "title", "" );
+ } else {
+ target.removeAttr( "title" );
+ }
+ }
+
+ tooltipData = this._tooltip( target );
+ tooltip = tooltipData.tooltip;
+ this._addDescribedBy( target, tooltip.attr( "id" ) );
+ tooltip.find( ".ui-tooltip-content" ).html( content );
+
+ // Support: Voiceover on OS X, JAWS on IE <= 9
+ // JAWS announces deletions even when aria-relevant="additions"
+ // Voiceover will sometimes re-read the entire log region's contents from the beginning
+ this.liveRegion.children().hide();
+ if ( content.clone ) {
+ a11yContent = content.clone();
+ a11yContent.removeAttr( "id" ).find( "[id]" ).removeAttr( "id" );
+ } else {
+ a11yContent = content;
+ }
+ $( "<div>" ).html( a11yContent ).appendTo( this.liveRegion );
+
+ function position( event ) {
+ positionOption.of = event;
+ if ( tooltip.is( ":hidden" ) ) {
+ return;
+ }
+ tooltip.position( positionOption );
+ }
+ if ( this.options.track && event && /^mouse/.test( event.type ) ) {
+ this._on( this.document, {
+ mousemove: position
+ });
+ // trigger once to override element-relative positioning
+ position( event );
+ } else {
+ tooltip.position( $.extend({
+ of: target
+ }, this.options.position ) );
+ }
+
+ tooltip.hide();
+
+ this._show( tooltip, this.options.show );
+ // Handle tracking tooltips that are shown with a delay (#8644). As soon
+ // as the tooltip is visible, position the tooltip using the most recent
+ // event.
+ if ( this.options.show && this.options.show.delay ) {
+ delayedShow = this.delayedShow = setInterval(function() {
+ if ( tooltip.is( ":visible" ) ) {
+ position( positionOption.of );
+ clearInterval( delayedShow );
+ }
+ }, $.fx.interval );
+ }
+
+ this._trigger( "open", event, { tooltip: tooltip } );
+ },
+
+ _registerCloseHandlers: function( event, target ) {
+ var events = {
+ keyup: function( event ) {
+ if ( event.keyCode === $.ui.keyCode.ESCAPE ) {
+ var fakeEvent = $.Event(event);
+ fakeEvent.currentTarget = target[0];
+ this.close( fakeEvent, true );
+ }
+ }
+ };
+
+ // Only bind remove handler for delegated targets. Non-delegated
+ // tooltips will handle this in destroy.
+ if ( target[ 0 ] !== this.element[ 0 ] ) {
+ events.remove = function() {
+ this._removeTooltip( this._find( target ).tooltip );
+ };
+ }
+
+ if ( !event || event.type === "mouseover" ) {
+ events.mouseleave = "close";
+ }
+ if ( !event || event.type === "focusin" ) {
+ events.focusout = "close";
+ }
+ this._on( true, target, events );
+ },
+
+ close: function( event ) {
+ var tooltip,
+ that = this,
+ target = $( event ? event.currentTarget : this.element ),
+ tooltipData = this._find( target );
+
+ // The tooltip may already be closed
+ if ( !tooltipData ) {
+
+ // We set ui-tooltip-open immediately upon open (in open()), but only set the
+ // additional data once there's actually content to show (in _open()). So even if the
+ // tooltip doesn't have full data, we always remove ui-tooltip-open in case we're in
+ // the period between open() and _open().
+ target.removeData( "ui-tooltip-open" );
+ return;
+ }
+
+ tooltip = tooltipData.tooltip;
+
+ // disabling closes the tooltip, so we need to track when we're closing
+ // to avoid an infinite loop in case the tooltip becomes disabled on close
+ if ( tooltipData.closing ) {
+ return;
+ }
+
+ // Clear the interval for delayed tracking tooltips
+ clearInterval( this.delayedShow );
+
+ // only set title if we had one before (see comment in _open())
+ // If the title attribute has changed since open(), don't restore
+ if ( target.data( "ui-tooltip-title" ) && !target.attr( "title" ) ) {
+ target.attr( "title", target.data( "ui-tooltip-title" ) );
+ }
+
+ this._removeDescribedBy( target );
+
+ tooltipData.hiding = true;
+ tooltip.stop( true );
+ this._hide( tooltip, this.options.hide, function() {
+ that._removeTooltip( $( this ) );
+ });
+
+ target.removeData( "ui-tooltip-open" );
+ this._off( target, "mouseleave focusout keyup" );
+
+ // Remove 'remove' binding only on delegated targets
+ if ( target[ 0 ] !== this.element[ 0 ] ) {
+ this._off( target, "remove" );
+ }
+ this._off( this.document, "mousemove" );
+
+ if ( event && event.type === "mouseleave" ) {
+ $.each( this.parents, function( id, parent ) {
+ $( parent.element ).attr( "title", parent.title );
+ delete that.parents[ id ];
+ });
+ }
+
+ tooltipData.closing = true;
+ this._trigger( "close", event, { tooltip: tooltip } );
+ if ( !tooltipData.hiding ) {
+ tooltipData.closing = false;
+ }
+ },
+
+ _tooltip: function( element ) {
+ var tooltip = $( "<div>" )
+ .attr( "role", "tooltip" )
+ .addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " +
+ ( this.options.tooltipClass || "" ) ),
+ id = tooltip.uniqueId().attr( "id" );
+
+ $( "<div>" )
+ .addClass( "ui-tooltip-content" )
+ .appendTo( tooltip );
+
+ tooltip.appendTo( this.document[0].body );
+
+ return this.tooltips[ id ] = {
+ element: element,
+ tooltip: tooltip
+ };
+ },
+
+ _find: function( target ) {
+ var id = target.data( "ui-tooltip-id" );
+ return id ? this.tooltips[ id ] : null;
+ },
+
+ _removeTooltip: function( tooltip ) {
+ tooltip.remove();
+ delete this.tooltips[ tooltip.attr( "id" ) ];
+ },
+
+ _destroy: function() {
+ var that = this;
+
+ // close open tooltips
+ $.each( this.tooltips, function( id, tooltipData ) {
+ // Delegate to close method to handle common cleanup
+ var event = $.Event( "blur" ),
+ element = tooltipData.element;
+ event.target = event.currentTarget = element[ 0 ];
+ that.close( event, true );
+
+ // Remove immediately; destroying an open tooltip doesn't use the
+ // hide animation
+ $( "#" + id ).remove();
+
+ // Restore the title
+ if ( element.data( "ui-tooltip-title" ) ) {
+ // If the title attribute has changed since open(), don't restore
+ if ( !element.attr( "title" ) ) {
+ element.attr( "title", element.data( "ui-tooltip-title" ) );
+ }
+ element.removeData( "ui-tooltip-title" );
+ }
+ });
+ this.liveRegion.remove();
+ }
+});
+
+
+/*!
+ * jQuery UI Effects 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/effects-core/
+ */
+
+
+var dataSpace = "ui-effects-",
+
+ // Create a local jQuery because jQuery Color relies on it and the
+ // global may not exist with AMD and a custom build (#10199)
+ jQuery = $;
+
+$.effects = {
+ effect: {}
+};
+
+/*!
+ * jQuery Color Animations v2.1.2
+ * https://github.com/jquery/jquery-color
+ *
+ * Copyright 2014 jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * Date: Wed Jan 16 08:47:09 2013 -0600
+ */
+(function( jQuery, undefined ) {
+
+ var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
+
+ // plusequals test for += 100 -= 100
+ rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
+ // a set of RE's that can match strings and generate color tuples.
+ stringParsers = [ {
+ re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
+ parse: function( execResult ) {
+ return [
+ execResult[ 1 ],
+ execResult[ 2 ],
+ execResult[ 3 ],
+ execResult[ 4 ]
+ ];
+ }
+ }, {
+ re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
+ parse: function( execResult ) {
+ return [
+ execResult[ 1 ] * 2.55,
+ execResult[ 2 ] * 2.55,
+ execResult[ 3 ] * 2.55,
+ execResult[ 4 ]
+ ];
+ }
+ }, {
+ // this regex ignores A-F because it's compared against an already lowercased string
+ re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
+ parse: function( execResult ) {
+ return [
+ parseInt( execResult[ 1 ], 16 ),
+ parseInt( execResult[ 2 ], 16 ),
+ parseInt( execResult[ 3 ], 16 )
+ ];
+ }
+ }, {
+ // this regex ignores A-F because it's compared against an already lowercased string
+ re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
+ parse: function( execResult ) {
+ return [
+ parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
+ parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
+ parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
+ ];
+ }
+ }, {
+ re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
+ space: "hsla",
+ parse: function( execResult ) {
+ return [
+ execResult[ 1 ],
+ execResult[ 2 ] / 100,
+ execResult[ 3 ] / 100,
+ execResult[ 4 ]
+ ];
+ }
+ } ],
+
+ // jQuery.Color( )
+ color = jQuery.Color = function( color, green, blue, alpha ) {
+ return new jQuery.Color.fn.parse( color, green, blue, alpha );
+ },
+ spaces = {
+ rgba: {
+ props: {
+ red: {
+ idx: 0,
+ type: "byte"
+ },
+ green: {
+ idx: 1,
+ type: "byte"
+ },
+ blue: {
+ idx: 2,
+ type: "byte"
+ }
+ }
+ },
+
+ hsla: {
+ props: {
+ hue: {
+ idx: 0,
+ type: "degrees"
+ },
+ saturation: {
+ idx: 1,
+ type: "percent"
+ },
+ lightness: {
+ idx: 2,
+ type: "percent"
+ }
+ }
+ }
+ },
+ propTypes = {
+ "byte": {
+ floor: true,
+ max: 255
+ },
+ "percent": {
+ max: 1
+ },
+ "degrees": {
+ mod: 360,
+ floor: true
+ }
+ },
+ support = color.support = {},
+
+ // element for support tests
+ supportElem = jQuery( "<p>" )[ 0 ],
+
+ // colors = jQuery.Color.names
+ colors,
+
+ // local aliases of functions called often
+ each = jQuery.each;
+
+// determine rgba support immediately
+supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
+support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
+
+// define cache name and alpha properties
+// for rgba and hsla spaces
+each( spaces, function( spaceName, space ) {
+ space.cache = "_" + spaceName;
+ space.props.alpha = {
+ idx: 3,
+ type: "percent",
+ def: 1
+ };
+});
+
+function clamp( value, prop, allowEmpty ) {
+ var type = propTypes[ prop.type ] || {};
+
+ if ( value == null ) {
+ return (allowEmpty || !prop.def) ? null : prop.def;
+ }
+
+ // ~~ is an short way of doing floor for positive numbers
+ value = type.floor ? ~~value : parseFloat( value );
+
+ // IE will pass in empty strings as value for alpha,
+ // which will hit this case
+ if ( isNaN( value ) ) {
+ return prop.def;
+ }
+
+ if ( type.mod ) {
+ // we add mod before modding to make sure that negatives values
+ // get converted properly: -10 -> 350
+ return (value + type.mod) % type.mod;
+ }
+
+ // for now all property types without mod have min and max
+ return 0 > value ? 0 : type.max < value ? type.max : value;
+}
+
+function stringParse( string ) {
+ var inst = color(),
+ rgba = inst._rgba = [];
+
+ string = string.toLowerCase();
+
+ each( stringParsers, function( i, parser ) {
+ var parsed,
+ match = parser.re.exec( string ),
+ values = match && parser.parse( match ),
+ spaceName = parser.space || "rgba";
+
+ if ( values ) {
+ parsed = inst[ spaceName ]( values );
+
+ // if this was an rgba parse the assignment might happen twice
+ // oh well....
+ inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
+ rgba = inst._rgba = parsed._rgba;
+
+ // exit each( stringParsers ) here because we matched
+ return false;
+ }
+ });
+
+ // Found a stringParser that handled it
+ if ( rgba.length ) {
+
+ // if this came from a parsed string, force "transparent" when alpha is 0
+ // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
+ if ( rgba.join() === "0,0,0,0" ) {
+ jQuery.extend( rgba, colors.transparent );
+ }
+ return inst;
+ }
+
+ // named colors
+ return colors[ string ];
+}
+
+color.fn = jQuery.extend( color.prototype, {
+ parse: function( red, green, blue, alpha ) {
+ if ( red === undefined ) {
+ this._rgba = [ null, null, null, null ];
+ return this;
+ }
+ if ( red.jquery || red.nodeType ) {
+ red = jQuery( red ).css( green );
+ green = undefined;
+ }
+
+ var inst = this,
+ type = jQuery.type( red ),
+ rgba = this._rgba = [];
+
+ // more than 1 argument specified - assume ( red, green, blue, alpha )
+ if ( green !== undefined ) {
+ red = [ red, green, blue, alpha ];
+ type = "array";
+ }
+
+ if ( type === "string" ) {
+ return this.parse( stringParse( red ) || colors._default );
+ }
+
+ if ( type === "array" ) {
+ each( spaces.rgba.props, function( key, prop ) {
+ rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
+ });
+ return this;
+ }
+
+ if ( type === "object" ) {
+ if ( red instanceof color ) {
+ each( spaces, function( spaceName, space ) {
+ if ( red[ space.cache ] ) {
+ inst[ space.cache ] = red[ space.cache ].slice();
+ }
+ });
+ } else {
+ each( spaces, function( spaceName, space ) {
+ var cache = space.cache;
+ each( space.props, function( key, prop ) {
+
+ // if the cache doesn't exist, and we know how to convert
+ if ( !inst[ cache ] && space.to ) {
+
+ // if the value was null, we don't need to copy it
+ // if the key was alpha, we don't need to copy it either
+ if ( key === "alpha" || red[ key ] == null ) {
+ return;
+ }
+ inst[ cache ] = space.to( inst._rgba );
+ }
+
+ // this is the only case where we allow nulls for ALL properties.
+ // call clamp with alwaysAllowEmpty
+ inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
+ });
+
+ // everything defined but alpha?
+ if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
+ // use the default of 1
+ inst[ cache ][ 3 ] = 1;
+ if ( space.from ) {
+ inst._rgba = space.from( inst[ cache ] );
+ }
+ }
+ });
+ }
+ return this;
+ }
+ },
+ is: function( compare ) {
+ var is = color( compare ),
+ same = true,
+ inst = this;
+
+ each( spaces, function( _, space ) {
+ var localCache,
+ isCache = is[ space.cache ];
+ if (isCache) {
+ localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
+ each( space.props, function( _, prop ) {
+ if ( isCache[ prop.idx ] != null ) {
+ same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
+ return same;
+ }
+ });
+ }
+ return same;
+ });
+ return same;
+ },
+ _space: function() {
+ var used = [],
+ inst = this;
+ each( spaces, function( spaceName, space ) {
+ if ( inst[ space.cache ] ) {
+ used.push( spaceName );
+ }
+ });
+ return used.pop();
+ },
+ transition: function( other, distance ) {
+ var end = color( other ),
+ spaceName = end._space(),
+ space = spaces[ spaceName ],
+ startColor = this.alpha() === 0 ? color( "transparent" ) : this,
+ start = startColor[ space.cache ] || space.to( startColor._rgba ),
+ result = start.slice();
+
+ end = end[ space.cache ];
+ each( space.props, function( key, prop ) {
+ var index = prop.idx,
+ startValue = start[ index ],
+ endValue = end[ index ],
+ type = propTypes[ prop.type ] || {};
+
+ // if null, don't override start value
+ if ( endValue === null ) {
+ return;
+ }
+ // if null - use end
+ if ( startValue === null ) {
+ result[ index ] = endValue;
+ } else {
+ if ( type.mod ) {
+ if ( endValue - startValue > type.mod / 2 ) {
+ startValue += type.mod;
+ } else if ( startValue - endValue > type.mod / 2 ) {
+ startValue -= type.mod;
+ }
+ }
+ result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
+ }
+ });
+ return this[ spaceName ]( result );
+ },
+ blend: function( opaque ) {
+ // if we are already opaque - return ourself
+ if ( this._rgba[ 3 ] === 1 ) {
+ return this;
+ }
+
+ var rgb = this._rgba.slice(),
+ a = rgb.pop(),
+ blend = color( opaque )._rgba;
+
+ return color( jQuery.map( rgb, function( v, i ) {
+ return ( 1 - a ) * blend[ i ] + a * v;
+ }));
+ },
+ toRgbaString: function() {
+ var prefix = "rgba(",
+ rgba = jQuery.map( this._rgba, function( v, i ) {
+ return v == null ? ( i > 2 ? 1 : 0 ) : v;
+ });
+
+ if ( rgba[ 3 ] === 1 ) {
+ rgba.pop();
+ prefix = "rgb(";
+ }
+
+ return prefix + rgba.join() + ")";
+ },
+ toHslaString: function() {
+ var prefix = "hsla(",
+ hsla = jQuery.map( this.hsla(), function( v, i ) {
+ if ( v == null ) {
+ v = i > 2 ? 1 : 0;
+ }
+
+ // catch 1 and 2
+ if ( i && i < 3 ) {
+ v = Math.round( v * 100 ) + "%";
+ }
+ return v;
+ });
+
+ if ( hsla[ 3 ] === 1 ) {
+ hsla.pop();
+ prefix = "hsl(";
+ }
+ return prefix + hsla.join() + ")";
+ },
+ toHexString: function( includeAlpha ) {
+ var rgba = this._rgba.slice(),
+ alpha = rgba.pop();
+
+ if ( includeAlpha ) {
+ rgba.push( ~~( alpha * 255 ) );
+ }
+
+ return "#" + jQuery.map( rgba, function( v ) {
+
+ // default to 0 when nulls exist
+ v = ( v || 0 ).toString( 16 );
+ return v.length === 1 ? "0" + v : v;
+ }).join("");
+ },
+ toString: function() {
+ return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
+ }
+});
+color.fn.parse.prototype = color.fn;
+
+// hsla conversions adapted from:
+// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
+
+function hue2rgb( p, q, h ) {
+ h = ( h + 1 ) % 1;
+ if ( h * 6 < 1 ) {
+ return p + ( q - p ) * h * 6;
+ }
+ if ( h * 2 < 1) {
+ return q;
+ }
+ if ( h * 3 < 2 ) {
+ return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
+ }
+ return p;
+}
+
+spaces.hsla.to = function( rgba ) {
+ if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
+ return [ null, null, null, rgba[ 3 ] ];
+ }
+ var r = rgba[ 0 ] / 255,
+ g = rgba[ 1 ] / 255,
+ b = rgba[ 2 ] / 255,
+ a = rgba[ 3 ],
+ max = Math.max( r, g, b ),
+ min = Math.min( r, g, b ),
+ diff = max - min,
+ add = max + min,
+ l = add * 0.5,
+ h, s;
+
+ if ( min === max ) {
+ h = 0;
+ } else if ( r === max ) {
+ h = ( 60 * ( g - b ) / diff ) + 360;
+ } else if ( g === max ) {
+ h = ( 60 * ( b - r ) / diff ) + 120;
+ } else {
+ h = ( 60 * ( r - g ) / diff ) + 240;
+ }
+
+ // chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
+ // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
+ if ( diff === 0 ) {
+ s = 0;
+ } else if ( l <= 0.5 ) {
+ s = diff / add;
+ } else {
+ s = diff / ( 2 - add );
+ }
+ return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
+};
+
+spaces.hsla.from = function( hsla ) {
+ if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
+ return [ null, null, null, hsla[ 3 ] ];
+ }
+ var h = hsla[ 0 ] / 360,
+ s = hsla[ 1 ],
+ l = hsla[ 2 ],
+ a = hsla[ 3 ],
+ q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
+ p = 2 * l - q;
+
+ return [
+ Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
+ Math.round( hue2rgb( p, q, h ) * 255 ),
+ Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
+ a
+ ];
+};
+
+each( spaces, function( spaceName, space ) {
+ var props = space.props,
+ cache = space.cache,
+ to = space.to,
+ from = space.from;
+
+ // makes rgba() and hsla()
+ color.fn[ spaceName ] = function( value ) {
+
+ // generate a cache for this space if it doesn't exist
+ if ( to && !this[ cache ] ) {
+ this[ cache ] = to( this._rgba );
+ }
+ if ( value === undefined ) {
+ return this[ cache ].slice();
+ }
+
+ var ret,
+ type = jQuery.type( value ),
+ arr = ( type === "array" || type === "object" ) ? value : arguments,
+ local = this[ cache ].slice();
+
+ each( props, function( key, prop ) {
+ var val = arr[ type === "object" ? key : prop.idx ];
+ if ( val == null ) {
+ val = local[ prop.idx ];
+ }
+ local[ prop.idx ] = clamp( val, prop );
+ });
+
+ if ( from ) {
+ ret = color( from( local ) );
+ ret[ cache ] = local;
+ return ret;
+ } else {
+ return color( local );
+ }
+ };
+
+ // makes red() green() blue() alpha() hue() saturation() lightness()
+ each( props, function( key, prop ) {
+ // alpha is included in more than one space
+ if ( color.fn[ key ] ) {
+ return;
+ }
+ color.fn[ key ] = function( value ) {
+ var vtype = jQuery.type( value ),
+ fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
+ local = this[ fn ](),
+ cur = local[ prop.idx ],
+ match;
+
+ if ( vtype === "undefined" ) {
+ return cur;
+ }
+
+ if ( vtype === "function" ) {
+ value = value.call( this, cur );
+ vtype = jQuery.type( value );
+ }
+ if ( value == null && prop.empty ) {
+ return this;
+ }
+ if ( vtype === "string" ) {
+ match = rplusequals.exec( value );
+ if ( match ) {
+ value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
+ }
+ }
+ local[ prop.idx ] = value;
+ return this[ fn ]( local );
+ };
+ });
+});
+
+// add cssHook and .fx.step function for each named hook.
+// accept a space separated string of properties
+color.hook = function( hook ) {
+ var hooks = hook.split( " " );
+ each( hooks, function( i, hook ) {
+ jQuery.cssHooks[ hook ] = {
+ set: function( elem, value ) {
+ var parsed, curElem,
+ backgroundColor = "";
+
+ if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
+ value = color( parsed || value );
+ if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
+ curElem = hook === "backgroundColor" ? elem.parentNode : elem;
+ while (
+ (backgroundColor === "" || backgroundColor === "transparent") &&
+ curElem && curElem.style
+ ) {
+ try {
+ backgroundColor = jQuery.css( curElem, "backgroundColor" );
+ curElem = curElem.parentNode;
+ } catch ( e ) {
+ }
+ }
+
+ value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
+ backgroundColor :
+ "_default" );
+ }
+
+ value = value.toRgbaString();
+ }
+ try {
+ elem.style[ hook ] = value;
+ } catch ( e ) {
+ // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
+ }
+ }
+ };
+ jQuery.fx.step[ hook ] = function( fx ) {
+ if ( !fx.colorInit ) {
+ fx.start = color( fx.elem, hook );
+ fx.end = color( fx.end );
+ fx.colorInit = true;
+ }
+ jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
+ };
+ });
+
+};
+
+color.hook( stepHooks );
+
+jQuery.cssHooks.borderColor = {
+ expand: function( value ) {
+ var expanded = {};
+
+ each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
+ expanded[ "border" + part + "Color" ] = value;
+ });
+ return expanded;
+ }
+};
+
+// Basic color names only.
+// Usage of any of the other color names requires adding yourself or including
+// jquery.color.svg-names.js.
+colors = jQuery.Color.names = {
+ // 4.1. Basic color keywords
+ aqua: "#00ffff",
+ black: "#000000",
+ blue: "#0000ff",
+ fuchsia: "#ff00ff",
+ gray: "#808080",
+ green: "#008000",
+ lime: "#00ff00",
+ maroon: "#800000",
+ navy: "#000080",
+ olive: "#808000",
+ purple: "#800080",
+ red: "#ff0000",
+ silver: "#c0c0c0",
+ teal: "#008080",
+ white: "#ffffff",
+ yellow: "#ffff00",
+
+ // 4.2.3. "transparent" color keyword
+ transparent: [ null, null, null, 0 ],
+
+ _default: "#ffffff"
+};
+
+})( jQuery );
+
+/******************************************************************************/
+/****************************** CLASS ANIMATIONS ******************************/
+/******************************************************************************/
+(function() {
+
+var classAnimationActions = [ "add", "remove", "toggle" ],
+ shorthandStyles = {
+ border: 1,
+ borderBottom: 1,
+ borderColor: 1,
+ borderLeft: 1,
+ borderRight: 1,
+ borderTop: 1,
+ borderWidth: 1,
+ margin: 1,
+ padding: 1
+ };
+
+$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
+ $.fx.step[ prop ] = function( fx ) {
+ if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
+ jQuery.style( fx.elem, prop, fx.end );
+ fx.setAttr = true;
+ }
+ };
+});
+
+function getElementStyles( elem ) {
+ var key, len,
+ style = elem.ownerDocument.defaultView ?
+ elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
+ elem.currentStyle,
+ styles = {};
+
+ if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
+ len = style.length;
+ while ( len-- ) {
+ key = style[ len ];
+ if ( typeof style[ key ] === "string" ) {
+ styles[ $.camelCase( key ) ] = style[ key ];
+ }
+ }
+ // support: Opera, IE <9
+ } else {
+ for ( key in style ) {
+ if ( typeof style[ key ] === "string" ) {
+ styles[ key ] = style[ key ];
+ }
+ }
+ }
+
+ return styles;
+}
+
+function styleDifference( oldStyle, newStyle ) {
+ var diff = {},
+ name, value;
+
+ for ( name in newStyle ) {
+ value = newStyle[ name ];
+ if ( oldStyle[ name ] !== value ) {
+ if ( !shorthandStyles[ name ] ) {
+ if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
+ diff[ name ] = value;
+ }
+ }
+ }
+ }
+
+ return diff;
+}
+
+// support: jQuery <1.8
+if ( !$.fn.addBack ) {
+ $.fn.addBack = function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter( selector )
+ );
+ };
+}
+
+$.effects.animateClass = function( value, duration, easing, callback ) {
+ var o = $.speed( duration, easing, callback );
+
+ return this.queue( function() {
+ var animated = $( this ),
+ baseClass = animated.attr( "class" ) || "",
+ applyClassChange,
+ allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
+
+ // map the animated objects to store the original styles.
+ allAnimations = allAnimations.map(function() {
+ var el = $( this );
+ return {
+ el: el,
+ start: getElementStyles( this )
+ };
+ });
+
+ // apply class change
+ applyClassChange = function() {
+ $.each( classAnimationActions, function(i, action) {
+ if ( value[ action ] ) {
+ animated[ action + "Class" ]( value[ action ] );
+ }
+ });
+ };
+ applyClassChange();
+
+ // map all animated objects again - calculate new styles and diff
+ allAnimations = allAnimations.map(function() {
+ this.end = getElementStyles( this.el[ 0 ] );
+ this.diff = styleDifference( this.start, this.end );
+ return this;
+ });
+
+ // apply original class
+ animated.attr( "class", baseClass );
+
+ // map all animated objects again - this time collecting a promise
+ allAnimations = allAnimations.map(function() {
+ var styleInfo = this,
+ dfd = $.Deferred(),
+ opts = $.extend({}, o, {
+ queue: false,
+ complete: function() {
+ dfd.resolve( styleInfo );
+ }
+ });
+
+ this.el.animate( this.diff, opts );
+ return dfd.promise();
+ });
+
+ // once all animations have completed:
+ $.when.apply( $, allAnimations.get() ).done(function() {
+
+ // set the final class
+ applyClassChange();
+
+ // for each animated element,
+ // clear all css properties that were animated
+ $.each( arguments, function() {
+ var el = this.el;
+ $.each( this.diff, function(key) {
+ el.css( key, "" );
+ });
+ });
+
+ // this is guarnteed to be there if you use jQuery.speed()
+ // it also handles dequeuing the next anim...
+ o.complete.call( animated[ 0 ] );
+ });
+ });
+};
+
+$.fn.extend({
+ addClass: (function( orig ) {
+ return function( classNames, speed, easing, callback ) {
+ return speed ?
+ $.effects.animateClass.call( this,
+ { add: classNames }, speed, easing, callback ) :
+ orig.apply( this, arguments );
+ };
+ })( $.fn.addClass ),
+
+ removeClass: (function( orig ) {
+ return function( classNames, speed, easing, callback ) {
+ return arguments.length > 1 ?
+ $.effects.animateClass.call( this,
+ { remove: classNames }, speed, easing, callback ) :
+ orig.apply( this, arguments );
+ };
+ })( $.fn.removeClass ),
+
+ toggleClass: (function( orig ) {
+ return function( classNames, force, speed, easing, callback ) {
+ if ( typeof force === "boolean" || force === undefined ) {
+ if ( !speed ) {
+ // without speed parameter
+ return orig.apply( this, arguments );
+ } else {
+ return $.effects.animateClass.call( this,
+ (force ? { add: classNames } : { remove: classNames }),
+ speed, easing, callback );
+ }
+ } else {
+ // without force parameter
+ return $.effects.animateClass.call( this,
+ { toggle: classNames }, force, speed, easing );
+ }
+ };
+ })( $.fn.toggleClass ),
+
+ switchClass: function( remove, add, speed, easing, callback) {
+ return $.effects.animateClass.call( this, {
+ add: add,
+ remove: remove
+ }, speed, easing, callback );
+ }
+});
+
+})();
+
+/******************************************************************************/
+/*********************************** EFFECTS **********************************/
+/******************************************************************************/
+
+(function() {
+
+$.extend( $.effects, {
+ version: "1.11.4",
+
+ // Saves a set of properties in a data storage
+ save: function( element, set ) {
+ for ( var i = 0; i < set.length; i++ ) {
+ if ( set[ i ] !== null ) {
+ element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
+ }
+ }
+ },
+
+ // Restores a set of previously saved properties from a data storage
+ restore: function( element, set ) {
+ var val, i;
+ for ( i = 0; i < set.length; i++ ) {
+ if ( set[ i ] !== null ) {
+ val = element.data( dataSpace + set[ i ] );
+ // support: jQuery 1.6.2
+ // http://bugs.jquery.com/ticket/9917
+ // jQuery 1.6.2 incorrectly returns undefined for any falsy value.
+ // We can't differentiate between "" and 0 here, so we just assume
+ // empty string since it's likely to be a more common value...
+ if ( val === undefined ) {
+ val = "";
+ }
+ element.css( set[ i ], val );
+ }
+ }
+ },
+
+ setMode: function( el, mode ) {
+ if (mode === "toggle") {
+ mode = el.is( ":hidden" ) ? "show" : "hide";
+ }
+ return mode;
+ },
+
+ // Translates a [top,left] array into a baseline value
+ // this should be a little more flexible in the future to handle a string & hash
+ getBaseline: function( origin, original ) {
+ var y, x;
+ switch ( origin[ 0 ] ) {
+ case "top": y = 0; break;
+ case "middle": y = 0.5; break;
+ case "bottom": y = 1; break;
+ default: y = origin[ 0 ] / original.height;
+ }
+ switch ( origin[ 1 ] ) {
+ case "left": x = 0; break;
+ case "center": x = 0.5; break;
+ case "right": x = 1; break;
+ default: x = origin[ 1 ] / original.width;
+ }
+ return {
+ x: x,
+ y: y
+ };
+ },
+
+ // Wraps the element around a wrapper that copies position properties
+ createWrapper: function( element ) {
+
+ // if the element is already wrapped, return it
+ if ( element.parent().is( ".ui-effects-wrapper" )) {
+ return element.parent();
+ }
+
+ // wrap the element
+ var props = {
+ width: element.outerWidth(true),
+ height: element.outerHeight(true),
+ "float": element.css( "float" )
+ },
+ wrapper = $( "<div></div>" )
+ .addClass( "ui-effects-wrapper" )
+ .css({
+ fontSize: "100%",
+ background: "transparent",
+ border: "none",
+ margin: 0,
+ padding: 0
+ }),
+ // Store the size in case width/height are defined in % - Fixes #5245
+ size = {
+ width: element.width(),
+ height: element.height()
+ },
+ active = document.activeElement;
+
+ // support: Firefox
+ // Firefox incorrectly exposes anonymous content
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
+ try {
+ active.id;
+ } catch ( e ) {
+ active = document.body;
+ }
+
+ element.wrap( wrapper );
+
+ // Fixes #7595 - Elements lose focus when wrapped.
+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
+ $( active ).focus();
+ }
+
+ wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element
+
+ // transfer positioning properties to the wrapper
+ if ( element.css( "position" ) === "static" ) {
+ wrapper.css({ position: "relative" });
+ element.css({ position: "relative" });
+ } else {
+ $.extend( props, {
+ position: element.css( "position" ),
+ zIndex: element.css( "z-index" )
+ });
+ $.each([ "top", "left", "bottom", "right" ], function(i, pos) {
+ props[ pos ] = element.css( pos );
+ if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {
+ props[ pos ] = "auto";
+ }
+ });
+ element.css({
+ position: "relative",
+ top: 0,
+ left: 0,
+ right: "auto",
+ bottom: "auto"
+ });
+ }
+ element.css(size);
+
+ return wrapper.css( props ).show();
+ },
+
+ removeWrapper: function( element ) {
+ var active = document.activeElement;
+
+ if ( element.parent().is( ".ui-effects-wrapper" ) ) {
+ element.parent().replaceWith( element );
+
+ // Fixes #7595 - Elements lose focus when wrapped.
+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
+ $( active ).focus();
+ }
+ }
+
+ return element;
+ },
+
+ setTransition: function( element, list, factor, value ) {
+ value = value || {};
+ $.each( list, function( i, x ) {
+ var unit = element.cssUnit( x );
+ if ( unit[ 0 ] > 0 ) {
+ value[ x ] = unit[ 0 ] * factor + unit[ 1 ];
+ }
+ });
+ return value;
+ }
+});
+
+// return an effect options object for the given parameters:
+function _normalizeArguments( effect, options, speed, callback ) {
+
+ // allow passing all options as the first parameter
+ if ( $.isPlainObject( effect ) ) {
+ options = effect;
+ effect = effect.effect;
+ }
+
+ // convert to an object
+ effect = { effect: effect };
+
+ // catch (effect, null, ...)
+ if ( options == null ) {
+ options = {};
+ }
+
+ // catch (effect, callback)
+ if ( $.isFunction( options ) ) {
+ callback = options;
+ speed = null;
+ options = {};
+ }
+
+ // catch (effect, speed, ?)
+ if ( typeof options === "number" || $.fx.speeds[ options ] ) {
+ callback = speed;
+ speed = options;
+ options = {};
+ }
+
+ // catch (effect, options, callback)
+ if ( $.isFunction( speed ) ) {
+ callback = speed;
+ speed = null;
+ }
+
+ // add options to effect
+ if ( options ) {
+ $.extend( effect, options );
+ }
+
+ speed = speed || options.duration;
+ effect.duration = $.fx.off ? 0 :
+ typeof speed === "number" ? speed :
+ speed in $.fx.speeds ? $.fx.speeds[ speed ] :
+ $.fx.speeds._default;
+
+ effect.complete = callback || options.complete;
+
+ return effect;
+}
+
+function standardAnimationOption( option ) {
+ // Valid standard speeds (nothing, number, named speed)
+ if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
+ return true;
+ }
+
+ // Invalid strings - treat as "normal" speed
+ if ( typeof option === "string" && !$.effects.effect[ option ] ) {
+ return true;
+ }
+
+ // Complete callback
+ if ( $.isFunction( option ) ) {
+ return true;
+ }
+
+ // Options hash (but not naming an effect)
+ if ( typeof option === "object" && !option.effect ) {
+ return true;
+ }
+
+ // Didn't match any standard API
+ return false;
+}
+
+$.fn.extend({
+ effect: function( /* effect, options, speed, callback */ ) {
+ var args = _normalizeArguments.apply( this, arguments ),
+ mode = args.mode,
+ queue = args.queue,
+ effectMethod = $.effects.effect[ args.effect ];
+
+ if ( $.fx.off || !effectMethod ) {
+ // delegate to the original method (e.g., .show()) if possible
+ if ( mode ) {
+ return this[ mode ]( args.duration, args.complete );
+ } else {
+ return this.each( function() {
+ if ( args.complete ) {
+ args.complete.call( this );
+ }
+ });
+ }
+ }
+
+ function run( next ) {
+ var elem = $( this ),
+ complete = args.complete,
+ mode = args.mode;
+
+ function done() {
+ if ( $.isFunction( complete ) ) {
+ complete.call( elem[0] );
+ }
+ if ( $.isFunction( next ) ) {
+ next();
+ }
+ }
+
+ // If the element already has the correct final state, delegate to
+ // the core methods so the internal tracking of "olddisplay" works.
+ if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
+ elem[ mode ]();
+ done();
+ } else {
+ effectMethod.call( elem[0], args, done );
+ }
+ }
+
+ return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
+ },
+
+ show: (function( orig ) {
+ return function( option ) {
+ if ( standardAnimationOption( option ) ) {
+ return orig.apply( this, arguments );
+ } else {
+ var args = _normalizeArguments.apply( this, arguments );
+ args.mode = "show";
+ return this.effect.call( this, args );
+ }
+ };
+ })( $.fn.show ),
+
+ hide: (function( orig ) {
+ return function( option ) {
+ if ( standardAnimationOption( option ) ) {
+ return orig.apply( this, arguments );
+ } else {
+ var args = _normalizeArguments.apply( this, arguments );
+ args.mode = "hide";
+ return this.effect.call( this, args );
+ }
+ };
+ })( $.fn.hide ),
+
+ toggle: (function( orig ) {
+ return function( option ) {
+ if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
+ return orig.apply( this, arguments );
+ } else {
+ var args = _normalizeArguments.apply( this, arguments );
+ args.mode = "toggle";
+ return this.effect.call( this, args );
+ }
+ };
+ })( $.fn.toggle ),
+
+ // helper functions
+ cssUnit: function(key) {
+ var style = this.css( key ),
+ val = [];
+
+ $.each( [ "em", "px", "%", "pt" ], function( i, unit ) {
+ if ( style.indexOf( unit ) > 0 ) {
+ val = [ parseFloat( style ), unit ];
+ }
+ });
+ return val;
+ }
+});
+
+})();
+
+/******************************************************************************/
+/*********************************** EASING ***********************************/
+/******************************************************************************/
+
+(function() {
+
+// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
+
+var baseEasings = {};
+
+$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
+ baseEasings[ name ] = function( p ) {
+ return Math.pow( p, i + 2 );
+ };
+});
+
+$.extend( baseEasings, {
+ Sine: function( p ) {
+ return 1 - Math.cos( p * Math.PI / 2 );
+ },
+ Circ: function( p ) {
+ return 1 - Math.sqrt( 1 - p * p );
+ },
+ Elastic: function( p ) {
+ return p === 0 || p === 1 ? p :
+ -Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );
+ },
+ Back: function( p ) {
+ return p * p * ( 3 * p - 2 );
+ },
+ Bounce: function( p ) {
+ var pow2,
+ bounce = 4;
+
+ while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
+ return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
+ }
+});
+
+$.each( baseEasings, function( name, easeIn ) {
+ $.easing[ "easeIn" + name ] = easeIn;
+ $.easing[ "easeOut" + name ] = function( p ) {
+ return 1 - easeIn( 1 - p );
+ };
+ $.easing[ "easeInOut" + name ] = function( p ) {
+ return p < 0.5 ?
+ easeIn( p * 2 ) / 2 :
+ 1 - easeIn( p * -2 + 2 ) / 2;
+ };
+});
+
+})();
+
+var effect = $.effects;
+
+
+/*!
+ * jQuery UI Effects Blind 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/blind-effect/
+ */
+
+
+var effectBlind = $.effects.effect.blind = function( o, done ) {
+ // Create element
+ var el = $( this ),
+ rvertical = /up|down|vertical/,
+ rpositivemotion = /up|left|vertical|horizontal/,
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ direction = o.direction || "up",
+ vertical = rvertical.test( direction ),
+ ref = vertical ? "height" : "width",
+ ref2 = vertical ? "top" : "left",
+ motion = rpositivemotion.test( direction ),
+ animation = {},
+ show = mode === "show",
+ wrapper, distance, margin;
+
+ // if already wrapped, the wrapper's properties are my property. #6245
+ if ( el.parent().is( ".ui-effects-wrapper" ) ) {
+ $.effects.save( el.parent(), props );
+ } else {
+ $.effects.save( el, props );
+ }
+ el.show();
+ wrapper = $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+
+ distance = wrapper[ ref ]();
+ margin = parseFloat( wrapper.css( ref2 ) ) || 0;
+
+ animation[ ref ] = show ? distance : 0;
+ if ( !motion ) {
+ el
+ .css( vertical ? "bottom" : "right", 0 )
+ .css( vertical ? "top" : "left", "auto" )
+ .css({ position: "absolute" });
+
+ animation[ ref2 ] = show ? margin : distance + margin;
+ }
+
+ // start at 0 if we are showing
+ if ( show ) {
+ wrapper.css( ref, 0 );
+ if ( !motion ) {
+ wrapper.css( ref2, margin + distance );
+ }
+ }
+
+ // Animate
+ wrapper.animate( animation, {
+ duration: o.duration,
+ easing: o.easing,
+ queue: false,
+ complete: function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Bounce 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/bounce-effect/
+ */
+
+
+var effectBounce = $.effects.effect.bounce = function( o, done ) {
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+
+ // defaults:
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ hide = mode === "hide",
+ show = mode === "show",
+ direction = o.direction || "up",
+ distance = o.distance,
+ times = o.times || 5,
+
+ // number of internal animations
+ anims = times * 2 + ( show || hide ? 1 : 0 ),
+ speed = o.duration / anims,
+ easing = o.easing,
+
+ // utility:
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
+ motion = ( direction === "up" || direction === "left" ),
+ i,
+ upAnim,
+ downAnim,
+
+ // we will need to re-assemble the queue to stack our animations in place
+ queue = el.queue(),
+ queuelen = queue.length;
+
+ // Avoid touching opacity to prevent clearType and PNG issues in IE
+ if ( show || hide ) {
+ props.push( "opacity" );
+ }
+
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el ); // Create Wrapper
+
+ // default distance for the BIGGEST bounce is the outer Distance / 3
+ if ( !distance ) {
+ distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
+ }
+
+ if ( show ) {
+ downAnim = { opacity: 1 };
+ downAnim[ ref ] = 0;
+
+ // if we are showing, force opacity 0 and set the initial position
+ // then do the "first" animation
+ el.css( "opacity", 0 )
+ .css( ref, motion ? -distance * 2 : distance * 2 )
+ .animate( downAnim, speed, easing );
+ }
+
+ // start at the smallest distance if we are hiding
+ if ( hide ) {
+ distance = distance / Math.pow( 2, times - 1 );
+ }
+
+ downAnim = {};
+ downAnim[ ref ] = 0;
+ // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
+ for ( i = 0; i < times; i++ ) {
+ upAnim = {};
+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
+
+ el.animate( upAnim, speed, easing )
+ .animate( downAnim, speed, easing );
+
+ distance = hide ? distance * 2 : distance / 2;
+ }
+
+ // Last Bounce when Hiding
+ if ( hide ) {
+ upAnim = { opacity: 0 };
+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
+
+ el.animate( upAnim, speed, easing );
+ }
+
+ el.queue(function() {
+ if ( hide ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ });
+
+ // inject all the animations we just queued to be first in line (after "inprogress")
+ if ( queuelen > 1) {
+ queue.splice.apply( queue,
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
+ }
+ el.dequeue();
+
+};
+
+
+/*!
+ * jQuery UI Effects Clip 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/clip-effect/
+ */
+
+
+var effectClip = $.effects.effect.clip = function( o, done ) {
+ // Create element
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+ direction = o.direction || "vertical",
+ vert = direction === "vertical",
+ size = vert ? "height" : "width",
+ position = vert ? "top" : "left",
+ animation = {},
+ wrapper, animate, distance;
+
+ // Save & Show
+ $.effects.save( el, props );
+ el.show();
+
+ // Create Wrapper
+ wrapper = $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+ animate = ( el[0].tagName === "IMG" ) ? wrapper : el;
+ distance = animate[ size ]();
+
+ // Shift
+ if ( show ) {
+ animate.css( size, 0 );
+ animate.css( position, distance / 2 );
+ }
+
+ // Create Animation Object:
+ animation[ size ] = show ? distance : 0;
+ animation[ position ] = show ? 0 : distance / 2;
+
+ // Animate
+ animate.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( !show ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+
+};
+
+
+/*!
+ * jQuery UI Effects Drop 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/drop-effect/
+ */
+
+
+var effectDrop = $.effects.effect.drop = function( o, done ) {
+
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+ direction = o.direction || "left",
+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
+ motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg",
+ animation = {
+ opacity: show ? 1 : 0
+ },
+ distance;
+
+ // Adjust
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el );
+
+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
+
+ if ( show ) {
+ el
+ .css( "opacity", 0 )
+ .css( ref, motion === "pos" ? -distance : distance );
+ }
+
+ // Animation
+ animation[ ref ] = ( show ?
+ ( motion === "pos" ? "+=" : "-=" ) :
+ ( motion === "pos" ? "-=" : "+=" ) ) +
+ distance;
+
+ // Animate
+ el.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Explode 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/explode-effect/
+ */
+
+
+var effectExplode = $.effects.effect.explode = function( o, done ) {
+
+ var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
+ cells = rows,
+ el = $( this ),
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+
+ // show and then visibility:hidden the element before calculating offset
+ offset = el.show().css( "visibility", "hidden" ).offset(),
+
+ // width and height of a piece
+ width = Math.ceil( el.outerWidth() / cells ),
+ height = Math.ceil( el.outerHeight() / rows ),
+ pieces = [],
+
+ // loop
+ i, j, left, top, mx, my;
+
+ // children animate complete:
+ function childComplete() {
+ pieces.push( this );
+ if ( pieces.length === rows * cells ) {
+ animComplete();
+ }
+ }
+
+ // clone the element for each row and cell.
+ for ( i = 0; i < rows ; i++ ) { // ===>
+ top = offset.top + i * height;
+ my = i - ( rows - 1 ) / 2 ;
+
+ for ( j = 0; j < cells ; j++ ) { // |||
+ left = offset.left + j * width;
+ mx = j - ( cells - 1 ) / 2 ;
+
+ // Create a clone of the now hidden main element that will be absolute positioned
+ // within a wrapper div off the -left and -top equal to size of our pieces
+ el
+ .clone()
+ .appendTo( "body" )
+ .wrap( "<div></div>" )
+ .css({
+ position: "absolute",
+ visibility: "visible",
+ left: -j * width,
+ top: -i * height
+ })
+
+ // select the wrapper - make it overflow: hidden and absolute positioned based on
+ // where the original was located +left and +top equal to the size of pieces
+ .parent()
+ .addClass( "ui-effects-explode" )
+ .css({
+ position: "absolute",
+ overflow: "hidden",
+ width: width,
+ height: height,
+ left: left + ( show ? mx * width : 0 ),
+ top: top + ( show ? my * height : 0 ),
+ opacity: show ? 0 : 1
+ }).animate({
+ left: left + ( show ? 0 : mx * width ),
+ top: top + ( show ? 0 : my * height ),
+ opacity: show ? 1 : 0
+ }, o.duration || 500, o.easing, childComplete );
+ }
+ }
+
+ function animComplete() {
+ el.css({
+ visibility: "visible"
+ });
+ $( pieces ).remove();
+ if ( !show ) {
+ el.hide();
+ }
+ done();
+ }
+};
+
+
+/*!
+ * jQuery UI Effects Fade 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/fade-effect/
+ */
+
+
+var effectFade = $.effects.effect.fade = function( o, done ) {
+ var el = $( this ),
+ mode = $.effects.setMode( el, o.mode || "toggle" );
+
+ el.animate({
+ opacity: mode
+ }, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: done
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Fold 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/fold-effect/
+ */
+
+
+var effectFold = $.effects.effect.fold = function( o, done ) {
+
+ // Create element
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "hide" ),
+ show = mode === "show",
+ hide = mode === "hide",
+ size = o.size || 15,
+ percent = /([0-9]+)%/.exec( size ),
+ horizFirst = !!o.horizFirst,
+ widthFirst = show !== horizFirst,
+ ref = widthFirst ? [ "width", "height" ] : [ "height", "width" ],
+ duration = o.duration / 2,
+ wrapper, distance,
+ animation1 = {},
+ animation2 = {};
+
+ $.effects.save( el, props );
+ el.show();
+
+ // Create Wrapper
+ wrapper = $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+ distance = widthFirst ?
+ [ wrapper.width(), wrapper.height() ] :
+ [ wrapper.height(), wrapper.width() ];
+
+ if ( percent ) {
+ size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
+ }
+ if ( show ) {
+ wrapper.css( horizFirst ? {
+ height: 0,
+ width: size
+ } : {
+ height: size,
+ width: 0
+ });
+ }
+
+ // Animation
+ animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size;
+ animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0;
+
+ // Animate
+ wrapper
+ .animate( animation1, duration, o.easing )
+ .animate( animation2, duration, o.easing, function() {
+ if ( hide ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ });
+
+};
+
+
+/*!
+ * jQuery UI Effects Highlight 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/highlight-effect/
+ */
+
+
+var effectHighlight = $.effects.effect.highlight = function( o, done ) {
+ var elem = $( this ),
+ props = [ "backgroundImage", "backgroundColor", "opacity" ],
+ mode = $.effects.setMode( elem, o.mode || "show" ),
+ animation = {
+ backgroundColor: elem.css( "backgroundColor" )
+ };
+
+ if (mode === "hide") {
+ animation.opacity = 0;
+ }
+
+ $.effects.save( elem, props );
+
+ elem
+ .show()
+ .css({
+ backgroundImage: "none",
+ backgroundColor: o.color || "#ffff99"
+ })
+ .animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( mode === "hide" ) {
+ elem.hide();
+ }
+ $.effects.restore( elem, props );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Size 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/size-effect/
+ */
+
+
+var effectSize = $.effects.effect.size = function( o, done ) {
+
+ // Create element
+ var original, baseline, factor,
+ el = $( this ),
+ props0 = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ],
+
+ // Always restore
+ props1 = [ "position", "top", "bottom", "left", "right", "overflow", "opacity" ],
+
+ // Copy for children
+ props2 = [ "width", "height", "overflow" ],
+ cProps = [ "fontSize" ],
+ vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
+ hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
+
+ // Set options
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ restore = o.restore || mode !== "effect",
+ scale = o.scale || "both",
+ origin = o.origin || [ "middle", "center" ],
+ position = el.css( "position" ),
+ props = restore ? props0 : props1,
+ zero = {
+ height: 0,
+ width: 0,
+ outerHeight: 0,
+ outerWidth: 0
+ };
+
+ if ( mode === "show" ) {
+ el.show();
+ }
+ original = {
+ height: el.height(),
+ width: el.width(),
+ outerHeight: el.outerHeight(),
+ outerWidth: el.outerWidth()
+ };
+
+ if ( o.mode === "toggle" && mode === "show" ) {
+ el.from = o.to || zero;
+ el.to = o.from || original;
+ } else {
+ el.from = o.from || ( mode === "show" ? zero : original );
+ el.to = o.to || ( mode === "hide" ? zero : original );
+ }
+
+ // Set scaling factor
+ factor = {
+ from: {
+ y: el.from.height / original.height,
+ x: el.from.width / original.width
+ },
+ to: {
+ y: el.to.height / original.height,
+ x: el.to.width / original.width
+ }
+ };
+
+ // Scale the css box
+ if ( scale === "box" || scale === "both" ) {
+
+ // Vertical props scaling
+ if ( factor.from.y !== factor.to.y ) {
+ props = props.concat( vProps );
+ el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );
+ el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );
+ }
+
+ // Horizontal props scaling
+ if ( factor.from.x !== factor.to.x ) {
+ props = props.concat( hProps );
+ el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );
+ el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );
+ }
+ }
+
+ // Scale the content
+ if ( scale === "content" || scale === "both" ) {
+
+ // Vertical props scaling
+ if ( factor.from.y !== factor.to.y ) {
+ props = props.concat( cProps ).concat( props2 );
+ el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );
+ el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );
+ }
+ }
+
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el );
+ el.css( "overflow", "hidden" ).css( el.from );
+
+ // Adjust
+ if (origin) { // Calculate baseline shifts
+ baseline = $.effects.getBaseline( origin, original );
+ el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y;
+ el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x;
+ el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y;
+ el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x;
+ }
+ el.css( el.from ); // set top & left
+
+ // Animate
+ if ( scale === "content" || scale === "both" ) { // Scale the children
+
+ // Add margins/font-size
+ vProps = vProps.concat([ "marginTop", "marginBottom" ]).concat(cProps);
+ hProps = hProps.concat([ "marginLeft", "marginRight" ]);
+ props2 = props0.concat(vProps).concat(hProps);
+
+ el.find( "*[width]" ).each( function() {
+ var child = $( this ),
+ c_original = {
+ height: child.height(),
+ width: child.width(),
+ outerHeight: child.outerHeight(),
+ outerWidth: child.outerWidth()
+ };
+ if (restore) {
+ $.effects.save(child, props2);
+ }
+
+ child.from = {
+ height: c_original.height * factor.from.y,
+ width: c_original.width * factor.from.x,
+ outerHeight: c_original.outerHeight * factor.from.y,
+ outerWidth: c_original.outerWidth * factor.from.x
+ };
+ child.to = {
+ height: c_original.height * factor.to.y,
+ width: c_original.width * factor.to.x,
+ outerHeight: c_original.height * factor.to.y,
+ outerWidth: c_original.width * factor.to.x
+ };
+
+ // Vertical props scaling
+ if ( factor.from.y !== factor.to.y ) {
+ child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );
+ child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );
+ }
+
+ // Horizontal props scaling
+ if ( factor.from.x !== factor.to.x ) {
+ child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from );
+ child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to );
+ }
+
+ // Animate children
+ child.css( child.from );
+ child.animate( child.to, o.duration, o.easing, function() {
+
+ // Restore children
+ if ( restore ) {
+ $.effects.restore( child, props2 );
+ }
+ });
+ });
+ }
+
+ // Animate
+ el.animate( el.to, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( el.to.opacity === 0 ) {
+ el.css( "opacity", el.from.opacity );
+ }
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ if ( !restore ) {
+
+ // we need to calculate our new positioning based on the scaling
+ if ( position === "static" ) {
+ el.css({
+ position: "relative",
+ top: el.to.top,
+ left: el.to.left
+ });
+ } else {
+ $.each([ "top", "left" ], function( idx, pos ) {
+ el.css( pos, function( _, str ) {
+ var val = parseInt( str, 10 ),
+ toRef = idx ? el.to.left : el.to.top;
+
+ // if original was "auto", recalculate the new value from wrapper
+ if ( str === "auto" ) {
+ return toRef + "px";
+ }
+
+ return val + toRef + "px";
+ });
+ });
+ }
+ }
+
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+
+};
+
+
+/*!
+ * jQuery UI Effects Scale 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/scale-effect/
+ */
+
+
+var effectScale = $.effects.effect.scale = function( o, done ) {
+
+ // Create element
+ var el = $( this ),
+ options = $.extend( true, {}, o ),
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ percent = parseInt( o.percent, 10 ) ||
+ ( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),
+ direction = o.direction || "both",
+ origin = o.origin,
+ original = {
+ height: el.height(),
+ width: el.width(),
+ outerHeight: el.outerHeight(),
+ outerWidth: el.outerWidth()
+ },
+ factor = {
+ y: direction !== "horizontal" ? (percent / 100) : 1,
+ x: direction !== "vertical" ? (percent / 100) : 1
+ };
+
+ // We are going to pass this effect to the size effect:
+ options.effect = "size";
+ options.queue = false;
+ options.complete = done;
+
+ // Set default origin and restore for show/hide
+ if ( mode !== "effect" ) {
+ options.origin = origin || [ "middle", "center" ];
+ options.restore = true;
+ }
+
+ options.from = o.from || ( mode === "show" ? {
+ height: 0,
+ width: 0,
+ outerHeight: 0,
+ outerWidth: 0
+ } : original );
+ options.to = {
+ height: original.height * factor.y,
+ width: original.width * factor.x,
+ outerHeight: original.outerHeight * factor.y,
+ outerWidth: original.outerWidth * factor.x
+ };
+
+ // Fade option to support puff
+ if ( options.fade ) {
+ if ( mode === "show" ) {
+ options.from.opacity = 0;
+ options.to.opacity = 1;
+ }
+ if ( mode === "hide" ) {
+ options.from.opacity = 1;
+ options.to.opacity = 0;
+ }
+ }
+
+ // Animate
+ el.effect( options );
+
+};
+
+
+/*!
+ * jQuery UI Effects Puff 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/puff-effect/
+ */
+
+
+var effectPuff = $.effects.effect.puff = function( o, done ) {
+ var elem = $( this ),
+ mode = $.effects.setMode( elem, o.mode || "hide" ),
+ hide = mode === "hide",
+ percent = parseInt( o.percent, 10 ) || 150,
+ factor = percent / 100,
+ original = {
+ height: elem.height(),
+ width: elem.width(),
+ outerHeight: elem.outerHeight(),
+ outerWidth: elem.outerWidth()
+ };
+
+ $.extend( o, {
+ effect: "scale",
+ queue: false,
+ fade: true,
+ mode: mode,
+ complete: done,
+ percent: hide ? percent : 100,
+ from: hide ?
+ original :
+ {
+ height: original.height * factor,
+ width: original.width * factor,
+ outerHeight: original.outerHeight * factor,
+ outerWidth: original.outerWidth * factor
+ }
+ });
+
+ elem.effect( o );
+};
+
+
+/*!
+ * jQuery UI Effects Pulsate 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/pulsate-effect/
+ */
+
+
+var effectPulsate = $.effects.effect.pulsate = function( o, done ) {
+ var elem = $( this ),
+ mode = $.effects.setMode( elem, o.mode || "show" ),
+ show = mode === "show",
+ hide = mode === "hide",
+ showhide = ( show || mode === "hide" ),
+
+ // showing or hiding leaves of the "last" animation
+ anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
+ duration = o.duration / anims,
+ animateTo = 0,
+ queue = elem.queue(),
+ queuelen = queue.length,
+ i;
+
+ if ( show || !elem.is(":visible")) {
+ elem.css( "opacity", 0 ).show();
+ animateTo = 1;
+ }
+
+ // anims - 1 opacity "toggles"
+ for ( i = 1; i < anims; i++ ) {
+ elem.animate({
+ opacity: animateTo
+ }, duration, o.easing );
+ animateTo = 1 - animateTo;
+ }
+
+ elem.animate({
+ opacity: animateTo
+ }, duration, o.easing);
+
+ elem.queue(function() {
+ if ( hide ) {
+ elem.hide();
+ }
+ done();
+ });
+
+ // We just queued up "anims" animations, we need to put them next in the queue
+ if ( queuelen > 1 ) {
+ queue.splice.apply( queue,
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
+ }
+ elem.dequeue();
+};
+
+
+/*!
+ * jQuery UI Effects Shake 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/shake-effect/
+ */
+
+
+var effectShake = $.effects.effect.shake = function( o, done ) {
+
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
+ mode = $.effects.setMode( el, o.mode || "effect" ),
+ direction = o.direction || "left",
+ distance = o.distance || 20,
+ times = o.times || 3,
+ anims = times * 2 + 1,
+ speed = Math.round( o.duration / anims ),
+ ref = (direction === "up" || direction === "down") ? "top" : "left",
+ positiveMotion = (direction === "up" || direction === "left"),
+ animation = {},
+ animation1 = {},
+ animation2 = {},
+ i,
+
+ // we will need to re-assemble the queue to stack our animations in place
+ queue = el.queue(),
+ queuelen = queue.length;
+
+ $.effects.save( el, props );
+ el.show();
+ $.effects.createWrapper( el );
+
+ // Animation
+ animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
+ animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
+ animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
+
+ // Animate
+ el.animate( animation, speed, o.easing );
+
+ // Shakes
+ for ( i = 1; i < times; i++ ) {
+ el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );
+ }
+ el
+ .animate( animation1, speed, o.easing )
+ .animate( animation, speed / 2, o.easing )
+ .queue(function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ });
+
+ // inject all the animations we just queued to be first in line (after "inprogress")
+ if ( queuelen > 1) {
+ queue.splice.apply( queue,
+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
+ }
+ el.dequeue();
+
+};
+
+
+/*!
+ * jQuery UI Effects Slide 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/slide-effect/
+ */
+
+
+var effectSlide = $.effects.effect.slide = function( o, done ) {
+
+ // Create element
+ var el = $( this ),
+ props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
+ mode = $.effects.setMode( el, o.mode || "show" ),
+ show = mode === "show",
+ direction = o.direction || "left",
+ ref = (direction === "up" || direction === "down") ? "top" : "left",
+ positiveMotion = (direction === "up" || direction === "left"),
+ distance,
+ animation = {};
+
+ // Adjust
+ $.effects.save( el, props );
+ el.show();
+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );
+
+ $.effects.createWrapper( el ).css({
+ overflow: "hidden"
+ });
+
+ if ( show ) {
+ el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance );
+ }
+
+ // Animation
+ animation[ ref ] = ( show ?
+ ( positiveMotion ? "+=" : "-=") :
+ ( positiveMotion ? "-=" : "+=")) +
+ distance;
+
+ // Animate
+ el.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
+ complete: function() {
+ if ( mode === "hide" ) {
+ el.hide();
+ }
+ $.effects.restore( el, props );
+ $.effects.removeWrapper( el );
+ done();
+ }
+ });
+};
+
+
+/*!
+ * jQuery UI Effects Transfer 1.11.4
+ * http://jqueryui.com
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/transfer-effect/
+ */
+
+
+var effectTransfer = $.effects.effect.transfer = function( o, done ) {
+ var elem = $( this ),
+ target = $( o.to ),
+ targetFixed = target.css( "position" ) === "fixed",
+ body = $("body"),
+ fixTop = targetFixed ? body.scrollTop() : 0,
+ fixLeft = targetFixed ? body.scrollLeft() : 0,
+ endPosition = target.offset(),
+ animation = {
+ top: endPosition.top - fixTop,
+ left: endPosition.left - fixLeft,
+ height: target.innerHeight(),
+ width: target.innerWidth()
+ },
+ startPosition = elem.offset(),
+ transfer = $( "<div class='ui-effects-transfer'></div>" )
+ .appendTo( document.body )
+ .addClass( o.className )
+ .css({
+ top: startPosition.top - fixTop,
+ left: startPosition.left - fixLeft,
+ height: elem.innerHeight(),
+ width: elem.innerWidth(),
+ position: targetFixed ? "fixed" : "absolute"
+ })
+ .animate( animation, o.duration, o.easing, function() {
+ transfer.remove();
+ done();
+ });
+};
+
+
+
+}));
\ No newline at end of file
diff --git a/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js b/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js
new file mode 100644
index 0000000..3c99f61
--- /dev/null
+++ b/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js
@@ -0,0 +1,14303 @@
+/**
+ * jQuery EasyUI 1.4.4
+ *
+ * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
+ *
+ * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
+ * To use it on other terms please contact us: info@jeasyui.com
+ *
+ */
+(function($){
+$.parser={auto:true,onComplete:function(_1){
+},plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","menubutton","splitbutton","switchbutton","progressbar","tree","textbox","filebox","combo","combobox","combotree","combogrid","numberbox","validatebox","searchbox","spinner","numberspinner","timespinner","datetimespinner","calendar","datebox","datetimebox","slider","layout","panel","datagrid","propertygrid","treegrid","datalist","tabs","accordion","window","dialog","form"],parse:function(_2){
+var aa=[];
+for(var i=0;i<$.parser.plugins.length;i++){
+var _3=$.parser.plugins[i];
+var r=$(".easyui-"+_3,_2);
+if(r.length){
+if(r[_3]){
+r[_3]();
+}else{
+aa.push({name:_3,jq:r});
+}
+}
+}
+if(aa.length&&window.easyloader){
+var _4=[];
+for(var i=0;i<aa.length;i++){
+_4.push(aa[i].name);
+}
+easyloader.load(_4,function(){
+for(var i=0;i<aa.length;i++){
+var _5=aa[i].name;
+var jq=aa[i].jq;
+jq[_5]();
+}
+$.parser.onComplete.call($.parser,_2);
+});
+}else{
+$.parser.onComplete.call($.parser,_2);
+}
+},parseValue:function(_6,_7,_8,_9){
+_9=_9||0;
+var v=$.trim(String(_7||""));
+var _a=v.substr(v.length-1,1);
+if(_a=="%"){
+v=parseInt(v.substr(0,v.length-1));
+if(_6.toLowerCase().indexOf("width")>=0){
+v=Math.floor((_8.width()-_9)*v/100);
+}else{
+v=Math.floor((_8.height()-_9)*v/100);
+}
+}else{
+v=parseInt(v)||undefined;
+}
+return v;
+},parseOptions:function(_b,_c){
+var t=$(_b);
+var _d={};
+var s=$.trim(t.attr("data-options"));
+if(s){
+if(s.substring(0,1)!="{"){
+s="{"+s+"}";
+}
+_d=(new Function("return "+s))();
+}
+$.map(["width","height","left","top","minWidth","maxWidth","minHeight","maxHeight"],function(p){
+var pv=$.trim(_b.style[p]||"");
+if(pv){
+if(pv.indexOf("%")==-1){
+pv=parseInt(pv)||undefined;
+}
+_d[p]=pv;
+}
+});
+if(_c){
+var _e={};
+for(var i=0;i<_c.length;i++){
+var pp=_c[i];
+if(typeof pp=="string"){
+_e[pp]=t.attr(pp);
+}else{
+for(var _f in pp){
+var _10=pp[_f];
+if(_10=="boolean"){
+_e[_f]=t.attr(_f)?(t.attr(_f)=="true"):undefined;
+}else{
+if(_10=="number"){
+_e[_f]=t.attr(_f)=="0"?0:parseFloat(t.attr(_f))||undefined;
+}
+}
+}
+}
+}
+$.extend(_d,_e);
+}
+return _d;
+}};
+$(function(){
+var d=$("<div style=\"position:absolute;top:-1000px;width:100px;height:100px;padding:5px\"></div>").appendTo("body");
+$._boxModel=d.outerWidth()!=100;
+d.remove();
+d=$("<div style=\"position:fixed\"></div>").appendTo("body");
+$._positionFixed=(d.css("position")=="fixed");
+d.remove();
+if(!window.easyloader&&$.parser.auto){
+$.parser.parse();
+}
+});
+$.fn._outerWidth=function(_11){
+if(_11==undefined){
+if(this[0]==window){
+return this.width()||document.body.clientWidth;
+}
+return this.outerWidth()||0;
+}
+return this._size("width",_11);
+};
+$.fn._outerHeight=function(_12){
+if(_12==undefined){
+if(this[0]==window){
+return this.height()||document.body.clientHeight;
+}
+return this.outerHeight()||0;
+}
+return this._size("height",_12);
+};
+$.fn._scrollLeft=function(_13){
+if(_13==undefined){
+return this.scrollLeft();
+}else{
+return this.each(function(){
+$(this).scrollLeft(_13);
+});
+}
+};
+$.fn._propAttr=$.fn.prop||$.fn.attr;
+$.fn._size=function(_14,_15){
+if(typeof _14=="string"){
+if(_14=="clear"){
+return this.each(function(){
+$(this).css({width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:""});
+});
+}else{
+if(_14=="fit"){
+return this.each(function(){
+_16(this,this.tagName=="BODY"?$("body"):$(this).parent(),true);
+});
+}else{
+if(_14=="unfit"){
+return this.each(function(){
+_16(this,$(this).parent(),false);
+});
+}else{
+if(_15==undefined){
+return _17(this[0],_14);
+}else{
+return this.each(function(){
+_17(this,_14,_15);
+});
+}
+}
+}
+}
+}else{
+return this.each(function(){
+_15=_15||$(this).parent();
+$.extend(_14,_16(this,_15,_14.fit)||{});
+var r1=_18(this,"width",_15,_14);
+var r2=_18(this,"height",_15,_14);
+if(r1||r2){
+$(this).addClass("easyui-fluid");
+}else{
+$(this).removeClass("easyui-fluid");
+}
+});
+}
+function _16(_19,_1a,fit){
+if(!_1a.length){
+return false;
+}
+var t=$(_19)[0];
+var p=_1a[0];
+var _1b=p.fcount||0;
+if(fit){
+if(!t.fitted){
+t.fitted=true;
+p.fcount=_1b+1;
+$(p).addClass("panel-noscroll");
+if(p.tagName=="BODY"){
+$("html").addClass("panel-fit");
+}
+}
+return {width:($(p).width()||1),height:($(p).height()||1)};
+}else{
+if(t.fitted){
+t.fitted=false;
+p.fcount=_1b-1;
+if(p.fcount==0){
+$(p).removeClass("panel-noscroll");
+if(p.tagName=="BODY"){
+$("html").removeClass("panel-fit");
+}
+}
+}
+return false;
+}
+};
+function _18(_1c,_1d,_1e,_1f){
+var t=$(_1c);
+var p=_1d;
+var p1=p.substr(0,1).toUpperCase()+p.substr(1);
+var min=$.parser.parseValue("min"+p1,_1f["min"+p1],_1e);
+var max=$.parser.parseValue("max"+p1,_1f["max"+p1],_1e);
+var val=$.parser.parseValue(p,_1f[p],_1e);
+var _20=(String(_1f[p]||"").indexOf("%")>=0?true:false);
+if(!isNaN(val)){
+var v=Math.min(Math.max(val,min||0),max||99999);
+if(!_20){
+_1f[p]=v;
+}
+t._size("min"+p1,"");
+t._size("max"+p1,"");
+t._size(p,v);
+}else{
+t._size(p,"");
+t._size("min"+p1,min);
+t._size("max"+p1,max);
+}
+return _20||_1f.fit;
+};
+function _17(_21,_22,_23){
+var t=$(_21);
+if(_23==undefined){
+_23=parseInt(_21.style[_22]);
+if(isNaN(_23)){
+return undefined;
+}
+if($._boxModel){
+_23+=_24();
+}
+return _23;
+}else{
+if(_23===""){
+t.css(_22,"");
+}else{
+if($._boxModel){
+_23-=_24();
+if(_23<0){
+_23=0;
+}
+}
+t.css(_22,_23+"px");
+}
+}
+function _24(){
+if(_22.toLowerCase().indexOf("width")>=0){
+return t.outerWidth()-t.width();
+}else{
+return t.outerHeight()-t.height();
+}
+};
+};
+};
+})(jQuery);
+(function($){
+var _25=null;
+var _26=null;
+var _27=false;
+function _28(e){
+if(e.touches.length!=1){
+return;
+}
+if(!_27){
+_27=true;
+dblClickTimer=setTimeout(function(){
+_27=false;
+},500);
+}else{
+clearTimeout(dblClickTimer);
+_27=false;
+_29(e,"dblclick");
+}
+_25=setTimeout(function(){
+_29(e,"contextmenu",3);
+},1000);
+_29(e,"mousedown");
+if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
+e.preventDefault();
+}
+};
+function _2a(e){
+if(e.touches.length!=1){
+return;
+}
+if(_25){
+clearTimeout(_25);
+}
+_29(e,"mousemove");
+if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
+e.preventDefault();
+}
+};
+function _2b(e){
+if(_25){
+clearTimeout(_25);
+}
+_29(e,"mouseup");
+if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
+e.preventDefault();
+}
+};
+function _29(e,_2c,_2d){
+var _2e=new $.Event(_2c);
+_2e.pageX=e.changedTouches[0].pageX;
+_2e.pageY=e.changedTouches[0].pageY;
+_2e.which=_2d||1;
+$(e.target).trigger(_2e);
+};
+if(document.addEventListener){
+document.addEventListener("touchstart",_28,true);
+document.addEventListener("touchmove",_2a,true);
+document.addEventListener("touchend",_2b,true);
+}
+})(jQuery);
+(function($){
+function _2f(e){
+var _30=$.data(e.data.target,"draggable");
+var _31=_30.options;
+var _32=_30.proxy;
+var _33=e.data;
+var _34=_33.startLeft+e.pageX-_33.startX;
+var top=_33.startTop+e.pageY-_33.startY;
+if(_32){
+if(_32.parent()[0]==document.body){
+if(_31.deltaX!=null&&_31.deltaX!=undefined){
+_34=e.pageX+_31.deltaX;
+}else{
+_34=e.pageX-e.data.offsetWidth;
+}
+if(_31.deltaY!=null&&_31.deltaY!=undefined){
+top=e.pageY+_31.deltaY;
+}else{
+top=e.pageY-e.data.offsetHeight;
+}
+}else{
+if(_31.deltaX!=null&&_31.deltaX!=undefined){
+_34+=e.data.offsetWidth+_31.deltaX;
+}
+if(_31.deltaY!=null&&_31.deltaY!=undefined){
+top+=e.data.offsetHeight+_31.deltaY;
+}
+}
+}
+if(e.data.parent!=document.body){
+_34+=$(e.data.parent).scrollLeft();
+top+=$(e.data.parent).scrollTop();
+}
+if(_31.axis=="h"){
+_33.left=_34;
+}else{
+if(_31.axis=="v"){
+_33.top=top;
+}else{
+_33.left=_34;
+_33.top=top;
+}
+}
+};
+function _35(e){
+var _36=$.data(e.data.target,"draggable");
+var _37=_36.options;
+var _38=_36.proxy;
+if(!_38){
+_38=$(e.data.target);
+}
+_38.css({left:e.data.left,top:e.data.top});
+$("body").css("cursor",_37.cursor);
+};
+function _39(e){
+if(!$.fn.draggable.isDragging){
+return false;
+}
+var _3a=$.data(e.data.target,"draggable");
+var _3b=_3a.options;
+var _3c=$(".droppable").filter(function(){
+return e.data.target!=this;
+}).filter(function(){
+var _3d=$.data(this,"droppable").options.accept;
+if(_3d){
+return $(_3d).filter(function(){
+return this==e.data.target;
+}).length>0;
+}else{
+return true;
+}
+});
+_3a.droppables=_3c;
+var _3e=_3a.proxy;
+if(!_3e){
+if(_3b.proxy){
+if(_3b.proxy=="clone"){
+_3e=$(e.data.target).clone().insertAfter(e.data.target);
+}else{
+_3e=_3b.proxy.call(e.data.target,e.data.target);
+}
+_3a.proxy=_3e;
+}else{
+_3e=$(e.data.target);
+}
+}
+_3e.css("position","absolute");
+_2f(e);
+_35(e);
+_3b.onStartDrag.call(e.data.target,e);
+return false;
+};
+function _3f(e){
+if(!$.fn.draggable.isDragging){
+return false;
+}
+var _40=$.data(e.data.target,"draggable");
+_2f(e);
+if(_40.options.onDrag.call(e.data.target,e)!=false){
+_35(e);
+}
+var _41=e.data.target;
+_40.droppables.each(function(){
+var _42=$(this);
+if(_42.droppable("options").disabled){
+return;
+}
+var p2=_42.offset();
+if(e.pageX>p2.left&&e.pageX<p2.left+_42.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_42.outerHeight()){
+if(!this.entered){
+$(this).trigger("_dragenter",[_41]);
+this.entered=true;
+}
+$(this).trigger("_dragover",[_41]);
+}else{
+if(this.entered){
+$(this).trigger("_dragleave",[_41]);
+this.entered=false;
+}
+}
+});
+return false;
+};
+function _43(e){
+if(!$.fn.draggable.isDragging){
+_44();
+return false;
+}
+_3f(e);
+var _45=$.data(e.data.target,"draggable");
+var _46=_45.proxy;
+var _47=_45.options;
+if(_47.revert){
+if(_48()==true){
+$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
+}else{
+if(_46){
+var _49,top;
+if(_46.parent()[0]==document.body){
+_49=e.data.startX-e.data.offsetWidth;
+top=e.data.startY-e.data.offsetHeight;
+}else{
+_49=e.data.startLeft;
+top=e.data.startTop;
+}
+_46.animate({left:_49,top:top},function(){
+_4a();
+});
+}else{
+$(e.data.target).animate({left:e.data.startLeft,top:e.data.startTop},function(){
+$(e.data.target).css("position",e.data.startPosition);
+});
+}
+}
+}else{
+$(e.data.target).css({position:"absolute",left:e.data.left,top:e.data.top});
+_48();
+}
+_47.onStopDrag.call(e.data.target,e);
+_44();
+function _4a(){
+if(_46){
+_46.remove();
+}
+_45.proxy=null;
+};
+function _48(){
+var _4b=false;
+_45.droppables.each(function(){
+var _4c=$(this);
+if(_4c.droppable("options").disabled){
+return;
+}
+var p2=_4c.offset();
+if(e.pageX>p2.left&&e.pageX<p2.left+_4c.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_4c.outerHeight()){
+if(_47.revert){
+$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
+}
+$(this).trigger("_drop",[e.data.target]);
+_4a();
+_4b=true;
+this.entered=false;
+return false;
+}
+});
+if(!_4b&&!_47.revert){
+_4a();
+}
+return _4b;
+};
+return false;
+};
+function _44(){
+if($.fn.draggable.timer){
+clearTimeout($.fn.draggable.timer);
+$.fn.draggable.timer=undefined;
+}
+$(document).unbind(".draggable");
+$.fn.draggable.isDragging=false;
+setTimeout(function(){
+$("body").css("cursor","");
+},100);
+};
+$.fn.draggable=function(_4d,_4e){
+if(typeof _4d=="string"){
+return $.fn.draggable.methods[_4d](this,_4e);
+}
+return this.each(function(){
+var _4f;
+var _50=$.data(this,"draggable");
+if(_50){
+_50.handle.unbind(".draggable");
+_4f=$.extend(_50.options,_4d);
+}else{
+_4f=$.extend({},$.fn.draggable.defaults,$.fn.draggable.parseOptions(this),_4d||{});
+}
+var _51=_4f.handle?(typeof _4f.handle=="string"?$(_4f.handle,this):_4f.handle):$(this);
+$.data(this,"draggable",{options:_4f,handle:_51});
+if(_4f.disabled){
+$(this).css("cursor","");
+return;
+}
+_51.unbind(".draggable").bind("mousemove.draggable",{target:this},function(e){
+if($.fn.draggable.isDragging){
+return;
+}
+var _52=$.data(e.data.target,"draggable").options;
+if(_53(e)){
+$(this).css("cursor",_52.cursor);
+}else{
+$(this).css("cursor","");
+}
+}).bind("mouseleave.draggable",{target:this},function(e){
+$(this).css("cursor","");
+}).bind("mousedown.draggable",{target:this},function(e){
+if(_53(e)==false){
+return;
+}
+$(this).css("cursor","");
+var _54=$(e.data.target).position();
+var _55=$(e.data.target).offset();
+var _56={startPosition:$(e.data.target).css("position"),startLeft:_54.left,startTop:_54.top,left:_54.left,top:_54.top,startX:e.pageX,startY:e.pageY,offsetWidth:(e.pageX-_55.left),offsetHeight:(e.pageY-_55.top),target:e.data.target,parent:$(e.data.target).parent()[0]};
+$.extend(e.data,_56);
+var _57=$.data(e.data.target,"draggable").options;
+if(_57.onBeforeDrag.call(e.data.target,e)==false){
+return;
+}
+$(document).bind("mousedown.draggable",e.data,_39);
+$(document).bind("mousemove.draggable",e.data,_3f);
+$(document).bind("mouseup.draggable",e.data,_43);
+$.fn.draggable.timer=setTimeout(function(){
+$.fn.draggable.isDragging=true;
+_39(e);
+},_57.delay);
+return false;
+});
+function _53(e){
+var _58=$.data(e.data.target,"draggable");
+var _59=_58.handle;
+var _5a=$(_59).offset();
+var _5b=$(_59).outerWidth();
+var _5c=$(_59).outerHeight();
+var t=e.pageY-_5a.top;
+var r=_5a.left+_5b-e.pageX;
+var b=_5a.top+_5c-e.pageY;
+var l=e.pageX-_5a.left;
+return Math.min(t,r,b,l)>_58.options.edge;
+};
+});
+};
+$.fn.draggable.methods={options:function(jq){
+return $.data(jq[0],"draggable").options;
+},proxy:function(jq){
+return $.data(jq[0],"draggable").proxy;
+},enable:function(jq){
+return jq.each(function(){
+$(this).draggable({disabled:false});
+});
+},disable:function(jq){
+return jq.each(function(){
+$(this).draggable({disabled:true});
+});
+}};
+$.fn.draggable.parseOptions=function(_5d){
+var t=$(_5d);
+return $.extend({},$.parser.parseOptions(_5d,["cursor","handle","axis",{"revert":"boolean","deltaX":"number","deltaY":"number","edge":"number","delay":"number"}]),{disabled:(t.attr("disabled")?true:undefined)});
+};
+$.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,delay:100,onBeforeDrag:function(e){
+},onStartDrag:function(e){
+},onDrag:function(e){
+},onStopDrag:function(e){
+}};
+$.fn.draggable.isDragging=false;
+})(jQuery);
+(function($){
+function _5e(_5f){
+$(_5f).addClass("droppable");
+$(_5f).bind("_dragenter",function(e,_60){
+$.data(_5f,"droppable").options.onDragEnter.apply(_5f,[e,_60]);
+});
+$(_5f).bind("_dragleave",function(e,_61){
+$.data(_5f,"droppable").options.onDragLeave.apply(_5f,[e,_61]);
+});
+$(_5f).bind("_dragover",function(e,_62){
+$.data(_5f,"droppable").options.onDragOver.apply(_5f,[e,_62]);
+});
+$(_5f).bind("_drop",function(e,_63){
+$.data(_5f,"droppable").options.onDrop.apply(_5f,[e,_63]);
+});
+};
+$.fn.droppable=function(_64,_65){
+if(typeof _64=="string"){
+return $.fn.droppable.methods[_64](this,_65);
+}
+_64=_64||{};
+return this.each(function(){
+var _66=$.data(this,"droppable");
+if(_66){
+$.extend(_66.options,_64);
+}else{
+_5e(this);
+$.data(this,"droppable",{options:$.extend({},$.fn.droppable.defaults,$.fn.droppable.parseOptions(this),_64)});
+}
+});
+};
+$.fn.droppable.methods={options:function(jq){
+return $.data(jq[0],"droppable").options;
+},enable:function(jq){
+return jq.each(function(){
+$(this).droppable({disabled:false});
+});
+},disable:function(jq){
+return jq.each(function(){
+$(this).droppable({disabled:true});
+});
+}};
+$.fn.droppable.parseOptions=function(_67){
+var t=$(_67);
+return $.extend({},$.parser.parseOptions(_67,["accept"]),{disabled:(t.attr("disabled")?true:undefined)});
+};
+$.fn.droppable.defaults={accept:null,disabled:false,onDragEnter:function(e,_68){
+},onDragOver:function(e,_69){
+},onDragLeave:function(e,_6a){
+},onDrop:function(e,_6b){
+}};
+})(jQuery);
+(function($){
+$.fn.resizable=function(_6c,_6d){
+if(typeof _6c=="string"){
+return $.fn.resizable.methods[_6c](this,_6d);
+}
+function _6e(e){
+var _6f=e.data;
+var _70=$.data(_6f.target,"resizable").options;
+if(_6f.dir.indexOf("e")!=-1){
+var _71=_6f.startWidth+e.pageX-_6f.startX;
+_71=Math.min(Math.max(_71,_70.minWidth),_70.maxWidth);
+_6f.width=_71;
+}
+if(_6f.dir.indexOf("s")!=-1){
+var _72=_6f.startHeight+e.pageY-_6f.startY;
+_72=Math.min(Math.max(_72,_70.minHeight),_70.maxHeight);
+_6f.height=_72;
+}
+if(_6f.dir.indexOf("w")!=-1){
+var _71=_6f.startWidth-e.pageX+_6f.startX;
+_71=Math.min(Math.max(_71,_70.minWidth),_70.maxWidth);
+_6f.width=_71;
+_6f.left=_6f.startLeft+_6f.startWidth-_6f.width;
+}
+if(_6f.dir.indexOf("n")!=-1){
+var _72=_6f.startHeight-e.pageY+_6f.startY;
+_72=Math.min(Math.max(_72,_70.minHeight),_70.maxHeight);
+_6f.height=_72;
+_6f.top=_6f.startTop+_6f.startHeight-_6f.height;
+}
+};
+function _73(e){
+var _74=e.data;
+var t=$(_74.target);
+t.css({left:_74.left,top:_74.top});
+if(t.outerWidth()!=_74.width){
+t._outerWidth(_74.width);
+}
+if(t.outerHeight()!=_74.height){
+t._outerHeight(_74.height);
+}
+};
+function _75(e){
+$.fn.resizable.isResizing=true;
+$.data(e.data.target,"resizable").options.onStartResize.call(e.data.target,e);
+return false;
+};
+function _76(e){
+_6e(e);
+if($.data(e.data.target,"resizable").options.onResize.call(e.data.target,e)!=false){
+_73(e);
+}
+return false;
+};
+function _77(e){
+$.fn.resizable.isResizing=false;
+_6e(e,true);
+_73(e);
+$.data(e.data.target,"resizable").options.onStopResize.call(e.data.target,e);
+$(document).unbind(".resizable");
+$("body").css("cursor","");
+return false;
+};
+return this.each(function(){
+var _78=null;
+var _79=$.data(this,"resizable");
+if(_79){
+$(this).unbind(".resizable");
+_78=$.extend(_79.options,_6c||{});
+}else{
+_78=$.extend({},$.fn.resizable.defaults,$.fn.resizable.parseOptions(this),_6c||{});
+$.data(this,"resizable",{options:_78});
+}
+if(_78.disabled==true){
+return;
+}
+$(this).bind("mousemove.resizable",{target:this},function(e){
+if($.fn.resizable.isResizing){
+return;
+}
+var dir=_7a(e);
+if(dir==""){
+$(e.data.target).css("cursor","");
+}else{
+$(e.data.target).css("cursor",dir+"-resize");
+}
+}).bind("mouseleave.resizable",{target:this},function(e){
+$(e.data.target).css("cursor","");
+}).bind("mousedown.resizable",{target:this},function(e){
+var dir=_7a(e);
+if(dir==""){
+return;
+}
+function _7b(css){
+var val=parseInt($(e.data.target).css(css));
+if(isNaN(val)){
+return 0;
+}else{
+return val;
+}
+};
+var _7c={target:e.data.target,dir:dir,startLeft:_7b("left"),startTop:_7b("top"),left:_7b("left"),top:_7b("top"),startX:e.pageX,startY:e.pageY,startWidth:$(e.data.target).outerWidth(),startHeight:$(e.data.target).outerHeight(),width:$(e.data.target).outerWidth(),height:$(e.data.target).outerHeight(),deltaWidth:$(e.data.target).outerWidth()-$(e.data.target).width(),deltaHeight:$(e.data.target).outerHeight()-$(e.data.target).height()};
+$(document).bind("mousedown.resizable",_7c,_75);
+$(document).bind("mousemove.resizable",_7c,_76);
+$(document).bind("mouseup.resizable",_7c,_77);
+$("body").css("cursor",dir+"-resize");
+});
+function _7a(e){
+var tt=$(e.data.target);
+var dir="";
+var _7d=tt.offset();
+var _7e=tt.outerWidth();
+var _7f=tt.outerHeight();
+var _80=_78.edge;
+if(e.pageY>_7d.top&&e.pageY<_7d.top+_80){
+dir+="n";
+}else{
+if(e.pageY<_7d.top+_7f&&e.pageY>_7d.top+_7f-_80){
+dir+="s";
+}
+}
+if(e.pageX>_7d.left&&e.pageX<_7d.left+_80){
+dir+="w";
+}else{
+if(e.pageX<_7d.left+_7e&&e.pageX>_7d.left+_7e-_80){
+dir+="e";
+}
+}
+var _81=_78.handles.split(",");
+for(var i=0;i<_81.length;i++){
+var _82=_81[i].replace(/(^\s*)|(\s*$)/g,"");
+if(_82=="all"||_82==dir){
+return dir;
+}
+}
+return "";
+};
+});
+};
+$.fn.resizable.methods={options:function(jq){
+return $.data(jq[0],"resizable").options;
+},enable:function(jq){
+return jq.each(function(){
+$(this).resizable({disabled:false});
+});
+},disable:function(jq){
+return jq.each(function(){
+$(this).resizable({disabled:true});
+});
+}};
+$.fn.resizable.parseOptions=function(_83){
+var t=$(_83);
+return $.extend({},$.parser.parseOptions(_83,["handles",{minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number",edge:"number"}]),{disabled:(t.attr("disabled")?true:undefined)});
+};
+$.fn.resizable.defaults={disabled:false,handles:"n, e, s, w, ne, se, sw, nw, all",minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000,edge:5,onStartResize:function(e){
+},onResize:function(e){
+},onStopResize:function(e){
+}};
+$.fn.resizable.isResizing=false;
+})(jQuery);
+(function($){
+function _84(_85,_86){
+var _87=$.data(_85,"linkbutton").options;
+if(_86){
+$.extend(_87,_86);
+}
+if(_87.width||_87.height||_87.fit){
+var btn=$(_85);
+var _88=btn.parent();
+var _89=btn.is(":visible");
+if(!_89){
+var _8a=$("<div style=\"display:none\"></div>").insertBefore(_85);
+var _8b={position:btn.css("position"),display:btn.css("display"),left:btn.css("left")};
+btn.appendTo("body");
+btn.css({position:"absolute",display:"inline-block",left:-20000});
+}
+btn._size(_87,_88);
+var _8c=btn.find(".l-btn-left");
+_8c.css("margin-top",0);
+_8c.css("margin-top",parseInt((btn.height()-_8c.height())/2)+"px");
+if(!_89){
+btn.insertAfter(_8a);
+btn.css(_8b);
+_8a.remove();
+}
+}
+};
+function _8d(_8e){
+var _8f=$.data(_8e,"linkbutton").options;
+var t=$(_8e).empty();
+t.addClass("l-btn").removeClass("l-btn-plain l-btn-selected l-btn-plain-selected l-btn-outline");
+t.removeClass("l-btn-small l-btn-medium l-btn-large").addClass("l-btn-"+_8f.size);
+if(_8f.plain){
+t.addClass("l-btn-plain");
+}
+if(_8f.outline){
+t.addClass("l-btn-outline");
+}
+if(_8f.selected){
+t.addClass(_8f.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
+}
+t.attr("group",_8f.group||"");
+t.attr("id",_8f.id||"");
+var _90=$("<span class=\"l-btn-left\"></span>").appendTo(t);
+if(_8f.text){
+$("<span class=\"l-btn-text\"></span>").html(_8f.text).appendTo(_90);
+}else{
+$("<span class=\"l-btn-text l-btn-empty\"> </span>").appendTo(_90);
+}
+if(_8f.iconCls){
+$("<span class=\"l-btn-icon\"> </span>").addClass(_8f.iconCls).appendTo(_90);
+_90.addClass("l-btn-icon-"+_8f.iconAlign);
+}
+t.unbind(".linkbutton").bind("focus.linkbutton",function(){
+if(!_8f.disabled){
+$(this).addClass("l-btn-focus");
+}
+}).bind("blur.linkbutton",function(){
+$(this).removeClass("l-btn-focus");
+}).bind("click.linkbutton",function(){
+if(!_8f.disabled){
+if(_8f.toggle){
+if(_8f.selected){
+$(this).linkbutton("unselect");
+}else{
+$(this).linkbutton("select");
+}
+}
+_8f.onClick.call(this);
+}
+});
+_91(_8e,_8f.selected);
+_92(_8e,_8f.disabled);
+};
+function _91(_93,_94){
+var _95=$.data(_93,"linkbutton").options;
+if(_94){
+if(_95.group){
+$("a.l-btn[group=\""+_95.group+"\"]").each(function(){
+var o=$(this).linkbutton("options");
+if(o.toggle){
+$(this).removeClass("l-btn-selected l-btn-plain-selected");
+o.selected=false;
+}
+});
+}
+$(_93).addClass(_95.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
+_95.selected=true;
+}else{
+if(!_95.group){
+$(_93).removeClass("l-btn-selected l-btn-plain-selected");
+_95.selected=false;
+}
+}
+};
+function _92(_96,_97){
+var _98=$.data(_96,"linkbutton");
+var _99=_98.options;
+$(_96).removeClass("l-btn-disabled l-btn-plain-disabled");
+if(_97){
+_99.disabled=true;
+var _9a=$(_96).attr("href");
+if(_9a){
+_98.href=_9a;
+$(_96).attr("href","javascript:void(0)");
+}
+if(_96.onclick){
+_98.onclick=_96.onclick;
+_96.onclick=null;
+}
+_99.plain?$(_96).addClass("l-btn-disabled l-btn-plain-disabled"):$(_96).addClass("l-btn-disabled");
+}else{
+_99.disabled=false;
+if(_98.href){
+$(_96).attr("href",_98.href);
+}
+if(_98.onclick){
+_96.onclick=_98.onclick;
+}
+}
+};
+$.fn.linkbutton=function(_9b,_9c){
+if(typeof _9b=="string"){
+return $.fn.linkbutton.methods[_9b](this,_9c);
+}
+_9b=_9b||{};
+return this.each(function(){
+var _9d=$.data(this,"linkbutton");
+if(_9d){
+$.extend(_9d.options,_9b);
+}else{
+$.data(this,"linkbutton",{options:$.extend({},$.fn.linkbutton.defaults,$.fn.linkbutton.parseOptions(this),_9b)});
+$(this).removeAttr("disabled");
+$(this).bind("_resize",function(e,_9e){
+if($(this).hasClass("easyui-fluid")||_9e){
+_84(this);
+}
+return false;
+});
+}
+_8d(this);
+_84(this);
+});
+};
+$.fn.linkbutton.methods={options:function(jq){
+return $.data(jq[0],"linkbutton").options;
+},resize:function(jq,_9f){
+return jq.each(function(){
+_84(this,_9f);
+});
+},enable:function(jq){
+return jq.each(function(){
+_92(this,false);
+});
+},disable:function(jq){
+return jq.each(function(){
+_92(this,true);
+});
+},select:function(jq){
+return jq.each(function(){
+_91(this,true);
+});
+},unselect:function(jq){
+return jq.each(function(){
+_91(this,false);
+});
+}};
+$.fn.linkbutton.parseOptions=function(_a0){
+var t=$(_a0);
+return $.extend({},$.parser.parseOptions(_a0,["id","iconCls","iconAlign","group","size","text",{plain:"boolean",toggle:"boolean",selected:"boolean",outline:"boolean"}]),{disabled:(t.attr("disabled")?true:undefined),text:($.trim(t.html())||undefined),iconCls:(t.attr("icon")||t.attr("iconCls"))});
+};
+$.fn.linkbutton.defaults={id:null,disabled:false,toggle:false,selected:false,outline:false,group:null,plain:false,text:"",iconCls:null,iconAlign:"left",size:"small",onClick:function(){
+}};
+})(jQuery);
+(function($){
+function _a1(_a2){
+var _a3=$.data(_a2,"pagination");
+var _a4=_a3.options;
+var bb=_a3.bb={};
+var _a5=$(_a2).addClass("pagination").html("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr></tr></table>");
+var tr=_a5.find("tr");
+var aa=$.extend([],_a4.layout);
+if(!_a4.showPageList){
+_a6(aa,"list");
+}
+if(!_a4.showRefresh){
+_a6(aa,"refresh");
+}
+if(aa[0]=="sep"){
+aa.shift();
+}
+if(aa[aa.length-1]=="sep"){
+aa.pop();
+}
+for(var _a7=0;_a7<aa.length;_a7++){
+var _a8=aa[_a7];
+if(_a8=="list"){
+var ps=$("<select class=\"pagination-page-list\"></select>");
+ps.bind("change",function(){
+_a4.pageSize=parseInt($(this).val());
+_a4.onChangePageSize.call(_a2,_a4.pageSize);
+_ae(_a2,_a4.pageNumber);
+});
+for(var i=0;i<_a4.pageList.length;i++){
+$("<option></option>").text(_a4.pageList[i]).appendTo(ps);
+}
+$("<td></td>").append(ps).appendTo(tr);
+}else{
+if(_a8=="sep"){
+$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
+}else{
+if(_a8=="first"){
+bb.first=_a9("first");
+}else{
+if(_a8=="prev"){
+bb.prev=_a9("prev");
+}else{
+if(_a8=="next"){
+bb.next=_a9("next");
+}else{
+if(_a8=="last"){
+bb.last=_a9("last");
+}else{
+if(_a8=="manual"){
+$("<span style=\"padding-left:6px;\"></span>").html(_a4.beforePageText).appendTo(tr).wrap("<td></td>");
+bb.num=$("<input class=\"pagination-num\" type=\"text\" value=\"1\" size=\"2\">").appendTo(tr).wrap("<td></td>");
+bb.num.unbind(".pagination").bind("keydown.pagination",function(e){
+if(e.keyCode==13){
+var _aa=parseInt($(this).val())||1;
+_ae(_a2,_aa);
+return false;
+}
+});
+bb.after=$("<span style=\"padding-right:6px;\"></span>").appendTo(tr).wrap("<td></td>");
+}else{
+if(_a8=="refresh"){
+bb.refresh=_a9("refresh");
+}else{
+if(_a8=="links"){
+$("<td class=\"pagination-links\"></td>").appendTo(tr);
+}
+}
+}
+}
+}
+}
+}
+}
+}
+}
+if(_a4.buttons){
+$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
+if($.isArray(_a4.buttons)){
+for(var i=0;i<_a4.buttons.length;i++){
+var btn=_a4.buttons[i];
+if(btn=="-"){
+$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
+}else{
+var td=$("<td></td>").appendTo(tr);
+var a=$("<a href=\"javascript:void(0)\"></a>").appendTo(td);
+a[0].onclick=eval(btn.handler||function(){
+});
+a.linkbutton($.extend({},btn,{plain:true}));
+}
+}
+}else{
+var td=$("<td></td>").appendTo(tr);
+$(_a4.buttons).appendTo(td).show();
+}
+}
+$("<div class=\"pagination-info\"></div>").appendTo(_a5);
+$("<div style=\"clear:both;\"></div>").appendTo(_a5);
+function _a9(_ab){
+var btn=_a4.nav[_ab];
+var a=$("<a href=\"javascript:void(0)\"></a>").appendTo(tr);
+a.wrap("<td></td>");
+a.linkbutton({iconCls:btn.iconCls,plain:true}).unbind(".pagination").bind("click.pagination",function(){
+btn.handler.call(_a2);
+});
+return a;
+};
+function _a6(aa,_ac){
+var _ad=$.inArray(_ac,aa);
+if(_ad>=0){
+aa.splice(_ad,1);
+}
+return aa;
+};
+};
+function _ae(_af,_b0){
+var _b1=$.data(_af,"pagination").options;
+_b2(_af,{pageNumber:_b0});
+_b1.onSelectPage.call(_af,_b1.pageNumber,_b1.pageSize);
+};
+function _b2(_b3,_b4){
+var _b5=$.data(_b3,"pagination");
+var _b6=_b5.options;
+var bb=_b5.bb;
+$.extend(_b6,_b4||{});
+var ps=$(_b3).find("select.pagination-page-list");
+if(ps.length){
+ps.val(_b6.pageSize+"");
+_b6.pageSize=parseInt(ps.val());
+}
+var _b7=Math.ceil(_b6.total/_b6.pageSize)||1;
+if(_b6.pageNumber<1){
+_b6.pageNumber=1;
+}
+if(_b6.pageNumber>_b7){
+_b6.pageNumber=_b7;
+}
+if(_b6.total==0){
+_b6.pageNumber=0;
+_b7=0;
+}
+if(bb.num){
+bb.num.val(_b6.pageNumber);
+}
+if(bb.after){
+bb.after.html(_b6.afterPageText.replace(/{pages}/,_b7));
+}
+var td=$(_b3).find("td.pagination-links");
+if(td.length){
+td.empty();
+var _b8=_b6.pageNumber-Math.floor(_b6.links/2);
+if(_b8<1){
+_b8=1;
+}
+var _b9=_b8+_b6.links-1;
+if(_b9>_b7){
+_b9=_b7;
+}
+_b8=_b9-_b6.links+1;
+if(_b8<1){
+_b8=1;
+}
+for(var i=_b8;i<=_b9;i++){
+var a=$("<a class=\"pagination-link\" href=\"javascript:void(0)\"></a>").appendTo(td);
+a.linkbutton({plain:true,text:i});
+if(i==_b6.pageNumber){
+a.linkbutton("select");
+}else{
+a.unbind(".pagination").bind("click.pagination",{pageNumber:i},function(e){
+_ae(_b3,e.data.pageNumber);
+});
+}
+}
+}
+var _ba=_b6.displayMsg;
+_ba=_ba.replace(/{from}/,_b6.total==0?0:_b6.pageSize*(_b6.pageNumber-1)+1);
+_ba=_ba.replace(/{to}/,Math.min(_b6.pageSize*(_b6.pageNumber),_b6.total));
+_ba=_ba.replace(/{total}/,_b6.total);
+$(_b3).find("div.pagination-info").html(_ba);
+if(bb.first){
+bb.first.linkbutton({disabled:((!_b6.total)||_b6.pageNumber==1)});
+}
+if(bb.prev){
+bb.prev.linkbutton({disabled:((!_b6.total)||_b6.pageNumber==1)});
+}
+if(bb.next){
+bb.next.linkbutton({disabled:(_b6.pageNumber==_b7)});
+}
+if(bb.last){
+bb.last.linkbutton({disabled:(_b6.pageNumber==_b7)});
+}
+_bb(_b3,_b6.loading);
+};
+function _bb(_bc,_bd){
+var _be=$.data(_bc,"pagination");
+var _bf=_be.options;
+_bf.loading=_bd;
+if(_bf.showRefresh&&_be.bb.refresh){
+_be.bb.refresh.linkbutton({iconCls:(_bf.loading?"pagination-loading":"pagination-load")});
+}
+};
+$.fn.pagination=function(_c0,_c1){
+if(typeof _c0=="string"){
+return $.fn.pagination.methods[_c0](this,_c1);
+}
+_c0=_c0||{};
+return this.each(function(){
+var _c2;
+var _c3=$.data(this,"pagination");
+if(_c3){
+_c2=$.extend(_c3.options,_c0);
+}else{
+_c2=$.extend({},$.fn.pagination.defaults,$.fn.pagination.parseOptions(this),_c0);
+$.data(this,"pagination",{options:_c2});
+}
+_a1(this);
+_b2(this);
+});
+};
+$.fn.pagination.methods={options:function(jq){
+return $.data(jq[0],"pagination").options;
+},loading:function(jq){
+return jq.each(function(){
+_bb(this,true);
+});
+},loaded:function(jq){
+return jq.each(function(){
+_bb(this,false);
+});
+},refresh:function(jq,_c4){
+return jq.each(function(){
+_b2(this,_c4);
+});
+},select:function(jq,_c5){
+return jq.each(function(){
+_ae(this,_c5);
+});
+}};
+$.fn.pagination.parseOptions=function(_c6){
+var t=$(_c6);
+return $.extend({},$.parser.parseOptions(_c6,[{total:"number",pageSize:"number",pageNumber:"number",links:"number"},{loading:"boolean",showPageList:"boolean",showRefresh:"boolean"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined)});
+};
+$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:false,buttons:null,showPageList:true,showRefresh:true,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh"],onSelectPage:function(_c7,_c8){
+},onBeforeRefresh:function(_c9,_ca){
+},onRefresh:function(_cb,_cc){
+},onChangePageSize:function(_cd){
+},beforePageText:"Page",afterPageText:"of {pages}",displayMsg:"Displaying {from} to {to} of {total} items",nav:{first:{iconCls:"pagination-first",handler:function(){
+var _ce=$(this).pagination("options");
+if(_ce.pageNumber>1){
+$(this).pagination("select",1);
+}
+}},prev:{iconCls:"pagination-prev",handler:function(){
+var _cf=$(this).pagination("options");
+if(_cf.pageNumber>1){
+$(this).pagination("select",_cf.pageNumber-1);
+}
+}},next:{iconCls:"pagination-next",handler:function(){
+var _d0=$(this).pagination("options");
+var _d1=Math.ceil(_d0.total/_d0.pageSize);
+if(_d0.pageNumber<_d1){
+$(this).pagination("select",_d0.pageNumber+1);
+}
+}},last:{iconCls:"pagination-last",handler:function(){
+var _d2=$(this).pagination("options");
+var _d3=Math.ceil(_d2.total/_d2.pageSize);
+if(_d2.pageNumber<_d3){
+$(this).pagination("select",_d3);
+}
+}},refresh:{iconCls:"pagination-refresh",handler:function(){
+var _d4=$(this).pagination("options");
+if(_d4.onBeforeRefresh.call(this,_d4.pageNumber,_d4.pageSize)!=false){
+$(this).pagination("select",_d4.pageNumber);
+_d4.onRefresh.call(this,_d4.pageNumber,_d4.pageSize);
+}
+}}}};
+})(jQuery);
+(function($){
+function _d5(_d6){
+var _d7=$(_d6);
+_d7.addClass("tree");
+return _d7;
+};
+function _d8(_d9){
+var _da=$.data(_d9,"tree").options;
+$(_d9).unbind().bind("mouseover",function(e){
+var tt=$(e.target);
+var _db=tt.closest("div.tree-node");
+if(!_db.length){
+return;
+}
+_db.addClass("tree-node-hover");
+if(tt.hasClass("tree-hit")){
+if(tt.hasClass("tree-expanded")){
+tt.addClass("tree-expanded-hover");
+}else{
+tt.addClass("tree-collapsed-hover");
+}
+}
+e.stopPropagation();
+}).bind("mouseout",function(e){
+var tt=$(e.target);
+var _dc=tt.closest("div.tree-node");
+if(!_dc.length){
+return;
+}
+_dc.removeClass("tree-node-hover");
+if(tt.hasClass("tree-hit")){
+if(tt.hasClass("tree-expanded")){
+tt.removeClass("tree-expanded-hover");
+}else{
+tt.removeClass("tree-collapsed-hover");
+}
+}
+e.stopPropagation();
+}).bind("click",function(e){
+var tt=$(e.target);
+var _dd=tt.closest("div.tree-node");
+if(!_dd.length){
+return;
+}
+if(tt.hasClass("tree-hit")){
+_144(_d9,_dd[0]);
+return false;
+}else{
+if(tt.hasClass("tree-checkbox")){
+_104(_d9,_dd[0]);
+return false;
+}else{
+_18a(_d9,_dd[0]);
+_da.onClick.call(_d9,_e0(_d9,_dd[0]));
+}
+}
+e.stopPropagation();
+}).bind("dblclick",function(e){
+var _de=$(e.target).closest("div.tree-node");
+if(!_de.length){
+return;
+}
+_18a(_d9,_de[0]);
+_da.onDblClick.call(_d9,_e0(_d9,_de[0]));
+e.stopPropagation();
+}).bind("contextmenu",function(e){
+var _df=$(e.target).closest("div.tree-node");
+if(!_df.length){
+return;
+}
+_da.onContextMenu.call(_d9,e,_e0(_d9,_df[0]));
+e.stopPropagation();
+});
+};
+function _e1(_e2){
+var _e3=$.data(_e2,"tree").options;
+_e3.dnd=false;
+var _e4=$(_e2).find("div.tree-node");
+_e4.draggable("disable");
+_e4.css("cursor","pointer");
+};
+function _e5(_e6){
+var _e7=$.data(_e6,"tree");
+var _e8=_e7.options;
+var _e9=_e7.tree;
+_e7.disabledNodes=[];
+_e8.dnd=true;
+_e9.find("div.tree-node").draggable({disabled:false,revert:true,cursor:"pointer",proxy:function(_ea){
+var p=$("<div class=\"tree-node-proxy\"></div>").appendTo("body");
+p.html("<span class=\"tree-dnd-icon tree-dnd-no\"> </span>"+$(_ea).find(".tree-title").html());
+p.hide();
+return p;
+},deltaX:15,deltaY:15,onBeforeDrag:function(e){
+if(_e8.onBeforeDrag.call(_e6,_e0(_e6,this))==false){
+return false;
+}
+if($(e.target).hasClass("tree-hit")||$(e.target).hasClass("tree-checkbox")){
+return false;
+}
+if(e.which!=1){
+return false;
+}
+var _eb=$(this).find("span.tree-indent");
+if(_eb.length){
+e.data.offsetWidth-=_eb.length*_eb.width();
+}
+},onStartDrag:function(e){
+$(this).next("ul").find("div.tree-node").each(function(){
+$(this).droppable("disable");
+_e7.disabledNodes.push(this);
+});
+$(this).draggable("proxy").css({left:-10000,top:-10000});
+_e8.onStartDrag.call(_e6,_e0(_e6,this));
+var _ec=_e0(_e6,this);
+if(_ec.id==undefined){
+_ec.id="easyui_tree_node_id_temp";
+_127(_e6,_ec);
+}
+_e7.draggingNodeId=_ec.id;
+},onDrag:function(e){
+var x1=e.pageX,y1=e.pageY,x2=e.data.startX,y2=e.data.startY;
+var d=Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
+if(d>3){
+$(this).draggable("proxy").show();
+}
+this.pageY=e.pageY;
+},onStopDrag:function(){
+for(var i=0;i<_e7.disabledNodes.length;i++){
+$(_e7.disabledNodes[i]).droppable("enable");
+}
+_e7.disabledNodes=[];
+var _ed=_182(_e6,_e7.draggingNodeId);
+if(_ed&&_ed.id=="easyui_tree_node_id_temp"){
+_ed.id="";
+_127(_e6,_ed);
+}
+_e8.onStopDrag.call(_e6,_ed);
+}}).droppable({accept:"div.tree-node",onDragEnter:function(e,_ee){
+if(_e8.onDragEnter.call(_e6,this,_ef(_ee))==false){
+_f0(_ee,false);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+$(this).droppable("disable");
+_e7.disabledNodes.push(this);
+}
+},onDragOver:function(e,_f1){
+if($(this).droppable("options").disabled){
+return;
+}
+var _f2=_f1.pageY;
+var top=$(this).offset().top;
+var _f3=top+$(this).outerHeight();
+_f0(_f1,true);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+if(_f2>top+(_f3-top)/2){
+if(_f3-_f2<5){
+$(this).addClass("tree-node-bottom");
+}else{
+$(this).addClass("tree-node-append");
+}
+}else{
+if(_f2-top<5){
+$(this).addClass("tree-node-top");
+}else{
+$(this).addClass("tree-node-append");
+}
+}
+if(_e8.onDragOver.call(_e6,this,_ef(_f1))==false){
+_f0(_f1,false);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+$(this).droppable("disable");
+_e7.disabledNodes.push(this);
+}
+},onDragLeave:function(e,_f4){
+_f0(_f4,false);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+_e8.onDragLeave.call(_e6,this,_ef(_f4));
+},onDrop:function(e,_f5){
+var _f6=this;
+var _f7,_f8;
+if($(this).hasClass("tree-node-append")){
+_f7=_f9;
+_f8="append";
+}else{
+_f7=_fa;
+_f8=$(this).hasClass("tree-node-top")?"top":"bottom";
+}
+if(_e8.onBeforeDrop.call(_e6,_f6,_ef(_f5),_f8)==false){
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+return;
+}
+_f7(_f5,_f6,_f8);
+$(this).removeClass("tree-node-append tree-node-top tree-node-bottom");
+}});
+function _ef(_fb,pop){
+return $(_fb).closest("ul.tree").tree(pop?"pop":"getData",_fb);
+};
+function _f0(_fc,_fd){
+var _fe=$(_fc).draggable("proxy").find("span.tree-dnd-icon");
+_fe.removeClass("tree-dnd-yes tree-dnd-no").addClass(_fd?"tree-dnd-yes":"tree-dnd-no");
+};
+function _f9(_ff,dest){
+if(_e0(_e6,dest).state=="closed"){
+_13c(_e6,dest,function(){
+_100();
+});
+}else{
+_100();
+}
+function _100(){
+var node=_ef(_ff,true);
+$(_e6).tree("append",{parent:dest,data:[node]});
+_e8.onDrop.call(_e6,dest,node,"append");
+};
+};
+function _fa(_101,dest,_102){
+var _103={};
+if(_102=="top"){
+_103.before=dest;
+}else{
+_103.after=dest;
+}
+var node=_ef(_101,true);
+_103.data=node;
+$(_e6).tree("insert",_103);
+_e8.onDrop.call(_e6,dest,node,_102);
+};
+};
+function _104(_105,_106,_107){
+var _108=$.data(_105,"tree");
+var opts=_108.options;
+if(!opts.checkbox){
+return;
+}
+var _109=_e0(_105,_106);
+if(_107==undefined){
+var ck=$(_106).find(".tree-checkbox");
+if(ck.hasClass("tree-checkbox1")){
+_107=false;
+}else{
+if(ck.hasClass("tree-checkbox0")){
+_107=true;
+}else{
+if(_109._checked==undefined){
+_109._checked=$(_106).find(".tree-checkbox").hasClass("tree-checkbox1");
+}
+_107=!_109._checked;
+}
+}
+}
+_109._checked=_107;
+if(opts.onBeforeCheck.call(_105,_109,_107)==false){
+return;
+}
+if(opts.cascadeCheck){
+_10a(_109,_107);
+_10b(_109,_107);
+}else{
+_10c($(_109.target),_107?"1":"0");
+}
+opts.onCheck.call(_105,_109,_107);
+function _10c(node,flag){
+var ck=node.find(".tree-checkbox");
+ck.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2");
+ck.addClass("tree-checkbox"+flag);
+};
+function _10a(_10d,_10e){
+if(opts.deepCheck){
+var node=$("#"+_10d.domId);
+var flag=_10e?"1":"0";
+_10c(node,flag);
+_10c(node.next(),flag);
+}else{
+_10f(_10d,_10e);
+_12a(_10d.children||[],function(n){
+_10f(n,_10e);
+});
+}
+};
+function _10f(_110,_111){
+if(_110.hidden){
+return;
+}
+var cls="tree-checkbox"+(_111?"1":"0");
+var node=$("#"+_110.domId);
+_10c(node,_111?"1":"0");
+if(_110.children){
+for(var i=0;i<_110.children.length;i++){
+if(_110.children[i].hidden){
+if(!$("#"+_110.children[i].domId).find("."+cls).length){
+_10c(node,"2");
+var _112=_14f(_105,node[0]);
+while(_112){
+_10c($(_112.target),"2");
+_112=_14f(_105,_112[0]);
+}
+return;
+}
+}
+}
+}
+};
+function _10b(_113,_114){
+var node=$("#"+_113.domId);
+var _115=_14f(_105,node[0]);
+if(_115){
+var flag="";
+if(_116(node,true)){
+flag="1";
+}else{
+if(_116(node,false)){
+flag="0";
+}else{
+flag="2";
+}
+}
+_10c($(_115.target),flag);
+_10b(_115,_114);
+}
+};
+function _116(node,_117){
+var cls="tree-checkbox"+(_117?"1":"0");
+var ck=node.find(".tree-checkbox");
+if(!ck.hasClass(cls)){
+return false;
+}
+var b=true;
+node.parent().siblings().each(function(){
+var ck=$(this).children("div.tree-node").children(".tree-checkbox");
+if(ck.length&&!ck.hasClass(cls)){
+b=false;
+return false;
+}
+});
+return b;
+};
+};
+function _118(_119,_11a){
+var opts=$.data(_119,"tree").options;
+if(!opts.checkbox){
+return;
+}
+var node=$(_11a);
+if(_11b(_119,_11a)){
+var ck=node.find(".tree-checkbox");
+if(ck.length){
+if(ck.hasClass("tree-checkbox1")){
+_104(_119,_11a,true);
+}else{
+_104(_119,_11a,false);
+}
+}else{
+if(opts.onlyLeafCheck){
+$("<span class=\"tree-checkbox tree-checkbox0\"></span>").insertBefore(node.find(".tree-title"));
+}
+}
+}else{
+var ck=node.find(".tree-checkbox");
+if(opts.onlyLeafCheck){
+ck.remove();
+}else{
+if(ck.hasClass("tree-checkbox1")){
+_104(_119,_11a,true);
+}else{
+if(ck.hasClass("tree-checkbox2")){
+var _11c=true;
+var _11d=true;
+var _11e=_11f(_119,_11a);
+for(var i=0;i<_11e.length;i++){
+if(_11e[i].checked){
+_11d=false;
+}else{
+_11c=false;
+}
+}
+if(_11c){
+_104(_119,_11a,true);
+}
+if(_11d){
+_104(_119,_11a,false);
+}
+}
+}
+}
+}
+};
+function _120(_121,ul,data,_122){
+var _123=$.data(_121,"tree");
+var opts=_123.options;
+var _124=$(ul).prevAll("div.tree-node:first");
+data=opts.loadFilter.call(_121,data,_124[0]);
+var _125=_126(_121,"domId",_124.attr("id"));
+if(!_122){
+_125?_125.children=data:_123.data=data;
+$(ul).empty();
+}else{
+if(_125){
+_125.children?_125.children=_125.children.concat(data):_125.children=data;
+}else{
+_123.data=_123.data.concat(data);
+}
+}
+opts.view.render.call(opts.view,_121,ul,data);
+if(opts.dnd){
+_e5(_121);
+}
+if(_125){
+_127(_121,_125);
+}
+var _128=[];
+var _129=[];
+for(var i=0;i<data.length;i++){
+var node=data[i];
+if(!node.checked){
+_128.push(node);
+}
+}
+_12a(data,function(node){
+if(node.checked){
+_129.push(node);
+}
+});
+var _12b=opts.onCheck;
+opts.onCheck=function(){
+};
+if(_128.length){
+_104(_121,$("#"+_128[0].domId)[0],false);
+}
+for(var i=0;i<_129.length;i++){
+_104(_121,$("#"+_129[i].domId)[0],true);
+}
+opts.onCheck=_12b;
+setTimeout(function(){
+_12c(_121,_121);
+},0);
+opts.onLoadSuccess.call(_121,_125,data);
+};
+function _12c(_12d,ul,_12e){
+var opts=$.data(_12d,"tree").options;
+if(opts.lines){
+$(_12d).addClass("tree-lines");
+}else{
+$(_12d).removeClass("tree-lines");
+return;
+}
+if(!_12e){
+_12e=true;
+$(_12d).find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom");
+$(_12d).find("div.tree-node").removeClass("tree-node-last tree-root-first tree-root-one");
+var _12f=$(_12d).tree("getRoots");
+if(_12f.length>1){
+$(_12f[0].target).addClass("tree-root-first");
+}else{
+if(_12f.length==1){
+$(_12f[0].target).addClass("tree-root-one");
+}
+}
+}
+$(ul).children("li").each(function(){
+var node=$(this).children("div.tree-node");
+var ul=node.next("ul");
+if(ul.length){
+if($(this).next().length){
+_130(node);
+}
+_12c(_12d,ul,_12e);
+}else{
+_131(node);
+}
+});
+var _132=$(ul).children("li:last").children("div.tree-node").addClass("tree-node-last");
+_132.children("span.tree-join").removeClass("tree-join").addClass("tree-joinbottom");
+function _131(node,_133){
+var icon=node.find("span.tree-icon");
+icon.prev("span.tree-indent").addClass("tree-join");
+};
+function _130(node){
+var _134=node.find("span.tree-indent, span.tree-hit").length;
+node.next().find("div.tree-node").each(function(){
+$(this).children("span:eq("+(_134-1)+")").addClass("tree-line");
+});
+};
+};
+function _135(_136,ul,_137,_138){
+var opts=$.data(_136,"tree").options;
+_137=$.extend({},opts.queryParams,_137||{});
+var _139=null;
+if(_136!=ul){
+var node=$(ul).prev();
+_139=_e0(_136,node[0]);
+}
+if(opts.onBeforeLoad.call(_136,_139,_137)==false){
+return;
+}
+var _13a=$(ul).prev().children("span.tree-folder");
+_13a.addClass("tree-loading");
+var _13b=opts.loader.call(_136,_137,function(data){
+_13a.removeClass("tree-loading");
+_120(_136,ul,data);
+if(_138){
+_138();
+}
+},function(){
+_13a.removeClass("tree-loading");
+opts.onLoadError.apply(_136,arguments);
+if(_138){
+_138();
+}
+});
+if(_13b==false){
+_13a.removeClass("tree-loading");
+}
+};
+function _13c(_13d,_13e,_13f){
+var opts=$.data(_13d,"tree").options;
+var hit=$(_13e).children("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-expanded")){
+return;
+}
+var node=_e0(_13d,_13e);
+if(opts.onBeforeExpand.call(_13d,node)==false){
+return;
+}
+hit.removeClass("tree-collapsed tree-collapsed-hover").addClass("tree-expanded");
+hit.next().addClass("tree-folder-open");
+var ul=$(_13e).next();
+if(ul.length){
+if(opts.animate){
+ul.slideDown("normal",function(){
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+});
+}else{
+ul.css("display","block");
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+}
+}else{
+var _140=$("<ul style=\"display:none\"></ul>").insertAfter(_13e);
+_135(_13d,_140[0],{id:node.id},function(){
+if(_140.is(":empty")){
+_140.remove();
+}
+if(opts.animate){
+_140.slideDown("normal",function(){
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+});
+}else{
+_140.css("display","block");
+node.state="open";
+opts.onExpand.call(_13d,node);
+if(_13f){
+_13f();
+}
+}
+});
+}
+};
+function _141(_142,_143){
+var opts=$.data(_142,"tree").options;
+var hit=$(_143).children("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-collapsed")){
+return;
+}
+var node=_e0(_142,_143);
+if(opts.onBeforeCollapse.call(_142,node)==false){
+return;
+}
+hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+hit.next().removeClass("tree-folder-open");
+var ul=$(_143).next();
+if(opts.animate){
+ul.slideUp("normal",function(){
+node.state="closed";
+opts.onCollapse.call(_142,node);
+});
+}else{
+ul.css("display","none");
+node.state="closed";
+opts.onCollapse.call(_142,node);
+}
+};
+function _144(_145,_146){
+var hit=$(_146).children("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-expanded")){
+_141(_145,_146);
+}else{
+_13c(_145,_146);
+}
+};
+function _147(_148,_149){
+var _14a=_11f(_148,_149);
+if(_149){
+_14a.unshift(_e0(_148,_149));
+}
+for(var i=0;i<_14a.length;i++){
+_13c(_148,_14a[i].target);
+}
+};
+function _14b(_14c,_14d){
+var _14e=[];
+var p=_14f(_14c,_14d);
+while(p){
+_14e.unshift(p);
+p=_14f(_14c,p.target);
+}
+for(var i=0;i<_14e.length;i++){
+_13c(_14c,_14e[i].target);
+}
+};
+function _150(_151,_152){
+var c=$(_151).parent();
+while(c[0].tagName!="BODY"&&c.css("overflow-y")!="auto"){
+c=c.parent();
+}
+var n=$(_152);
+var ntop=n.offset().top;
+if(c[0].tagName!="BODY"){
+var ctop=c.offset().top;
+if(ntop<ctop){
+c.scrollTop(c.scrollTop()+ntop-ctop);
+}else{
+if(ntop+n.outerHeight()>ctop+c.outerHeight()-18){
+c.scrollTop(c.scrollTop()+ntop+n.outerHeight()-ctop-c.outerHeight()+18);
+}
+}
+}else{
+c.scrollTop(ntop);
+}
+};
+function _153(_154,_155){
+var _156=_11f(_154,_155);
+if(_155){
+_156.unshift(_e0(_154,_155));
+}
+for(var i=0;i<_156.length;i++){
+_141(_154,_156[i].target);
+}
+};
+function _157(_158,_159){
+var node=$(_159.parent);
+var data=_159.data;
+if(!data){
+return;
+}
+data=$.isArray(data)?data:[data];
+if(!data.length){
+return;
+}
+var ul;
+if(node.length==0){
+ul=$(_158);
+}else{
+if(_11b(_158,node[0])){
+var _15a=node.find("span.tree-icon");
+_15a.removeClass("tree-file").addClass("tree-folder tree-folder-open");
+var hit=$("<span class=\"tree-hit tree-expanded\"></span>").insertBefore(_15a);
+if(hit.prev().length){
+hit.prev().remove();
+}
+}
+ul=node.next();
+if(!ul.length){
+ul=$("<ul></ul>").insertAfter(node);
+}
+}
+_120(_158,ul[0],data,true);
+_118(_158,ul.prev());
+};
+function _15b(_15c,_15d){
+var ref=_15d.before||_15d.after;
+var _15e=_14f(_15c,ref);
+var data=_15d.data;
+if(!data){
+return;
+}
+data=$.isArray(data)?data:[data];
+if(!data.length){
+return;
+}
+_157(_15c,{parent:(_15e?_15e.target:null),data:data});
+var _15f=_15e?_15e.children:$(_15c).tree("getRoots");
+for(var i=0;i<_15f.length;i++){
+if(_15f[i].domId==$(ref).attr("id")){
+for(var j=data.length-1;j>=0;j--){
+_15f.splice((_15d.before?i:(i+1)),0,data[j]);
+}
+_15f.splice(_15f.length-data.length,data.length);
+break;
+}
+}
+var li=$();
+for(var i=0;i<data.length;i++){
+li=li.add($("#"+data[i].domId).parent());
+}
+if(_15d.before){
+li.insertBefore($(ref).parent());
+}else{
+li.insertAfter($(ref).parent());
+}
+};
+function _160(_161,_162){
+var _163=del(_162);
+$(_162).parent().remove();
+if(_163){
+if(!_163.children||!_163.children.length){
+var node=$(_163.target);
+node.find(".tree-icon").removeClass("tree-folder").addClass("tree-file");
+node.find(".tree-hit").remove();
+$("<span class=\"tree-indent\"></span>").prependTo(node);
+node.next().remove();
+}
+_127(_161,_163);
+_118(_161,_163.target);
+}
+_12c(_161,_161);
+function del(_164){
+var id=$(_164).attr("id");
+var _165=_14f(_161,_164);
+var cc=_165?_165.children:$.data(_161,"tree").data;
+for(var i=0;i<cc.length;i++){
+if(cc[i].domId==id){
+cc.splice(i,1);
+break;
+}
+}
+return _165;
+};
+};
+function _127(_166,_167){
+var opts=$.data(_166,"tree").options;
+var node=$(_167.target);
+var data=_e0(_166,_167.target);
+var _168=data.checked;
+if(data.iconCls){
+node.find(".tree-icon").removeClass(data.iconCls);
+}
+$.extend(data,_167);
+node.find(".tree-title").html(opts.formatter.call(_166,data));
+if(data.iconCls){
+node.find(".tree-icon").addClass(data.iconCls);
+}
+if(_168!=data.checked){
+_104(_166,_167.target,data.checked);
+}
+};
+function _169(_16a,_16b){
+if(_16b){
+var p=_14f(_16a,_16b);
+while(p){
+_16b=p.target;
+p=_14f(_16a,_16b);
+}
+return _e0(_16a,_16b);
+}else{
+var _16c=_16d(_16a);
+return _16c.length?_16c[0]:null;
+}
+};
+function _16d(_16e){
+var _16f=$.data(_16e,"tree").data;
+for(var i=0;i<_16f.length;i++){
+_170(_16f[i]);
+}
+return _16f;
+};
+function _11f(_171,_172){
+var _173=[];
+var n=_e0(_171,_172);
+var data=n?(n.children||[]):$.data(_171,"tree").data;
+_12a(data,function(node){
+_173.push(_170(node));
+});
+return _173;
+};
+function _14f(_174,_175){
+var p=$(_175).closest("ul").prevAll("div.tree-node:first");
+return _e0(_174,p[0]);
+};
+function _176(_177,_178){
+_178=_178||"checked";
+if(!$.isArray(_178)){
+_178=[_178];
+}
+var _179=[];
+for(var i=0;i<_178.length;i++){
+var s=_178[i];
+if(s=="checked"){
+_179.push("span.tree-checkbox1");
+}else{
+if(s=="unchecked"){
+_179.push("span.tree-checkbox0");
+}else{
+if(s=="indeterminate"){
+_179.push("span.tree-checkbox2");
+}
+}
+}
+}
+var _17a=[];
+$(_177).find(_179.join(",")).each(function(){
+var node=$(this).parent();
+_17a.push(_e0(_177,node[0]));
+});
+return _17a;
+};
+function _17b(_17c){
+var node=$(_17c).find("div.tree-node-selected");
+return node.length?_e0(_17c,node[0]):null;
+};
+function _17d(_17e,_17f){
+var data=_e0(_17e,_17f);
+if(data&&data.children){
+_12a(data.children,function(node){
+_170(node);
+});
+}
+return data;
+};
+function _e0(_180,_181){
+return _126(_180,"domId",$(_181).attr("id"));
+};
+function _182(_183,id){
+return _126(_183,"id",id);
+};
+function _126(_184,_185,_186){
+var data=$.data(_184,"tree").data;
+var _187=null;
+_12a(data,function(node){
+if(node[_185]==_186){
+_187=_170(node);
+return false;
+}
+});
+return _187;
+};
+function _170(node){
+var d=$("#"+node.domId);
+node.target=d[0];
+node.checked=d.find(".tree-checkbox").hasClass("tree-checkbox1");
+return node;
+};
+function _12a(data,_188){
+var _189=[];
+for(var i=0;i<data.length;i++){
+_189.push(data[i]);
+}
+while(_189.length){
+var node=_189.shift();
+if(_188(node)==false){
+return;
+}
+if(node.children){
+for(var i=node.children.length-1;i>=0;i--){
+_189.unshift(node.children[i]);
+}
+}
+}
+};
+function _18a(_18b,_18c){
+var opts=$.data(_18b,"tree").options;
+var node=_e0(_18b,_18c);
+if(opts.onBeforeSelect.call(_18b,node)==false){
+return;
+}
+$(_18b).find("div.tree-node-selected").removeClass("tree-node-selected");
+$(_18c).addClass("tree-node-selected");
+opts.onSelect.call(_18b,node);
+};
+function _11b(_18d,_18e){
+return $(_18e).children("span.tree-hit").length==0;
+};
+function _18f(_190,_191){
+var opts=$.data(_190,"tree").options;
+var node=_e0(_190,_191);
+if(opts.onBeforeEdit.call(_190,node)==false){
+return;
+}
+$(_191).css("position","relative");
+var nt=$(_191).find(".tree-title");
+var _192=nt.outerWidth();
+nt.empty();
+var _193=$("<input class=\"tree-editor\">").appendTo(nt);
+_193.val(node.text).focus();
+_193.width(_192+20);
+_193.height(document.compatMode=="CSS1Compat"?(18-(_193.outerHeight()-_193.height())):18);
+_193.bind("click",function(e){
+return false;
+}).bind("mousedown",function(e){
+e.stopPropagation();
+}).bind("mousemove",function(e){
+e.stopPropagation();
+}).bind("keydown",function(e){
+if(e.keyCode==13){
+_194(_190,_191);
+return false;
+}else{
+if(e.keyCode==27){
+_198(_190,_191);
+return false;
+}
+}
+}).bind("blur",function(e){
+e.stopPropagation();
+_194(_190,_191);
+});
+};
+function _194(_195,_196){
+var opts=$.data(_195,"tree").options;
+$(_196).css("position","");
+var _197=$(_196).find("input.tree-editor");
+var val=_197.val();
+_197.remove();
+var node=_e0(_195,_196);
+node.text=val;
+_127(_195,node);
+opts.onAfterEdit.call(_195,node);
+};
+function _198(_199,_19a){
+var opts=$.data(_199,"tree").options;
+$(_19a).css("position","");
+$(_19a).find("input.tree-editor").remove();
+var node=_e0(_199,_19a);
+_127(_199,node);
+opts.onCancelEdit.call(_199,node);
+};
+function _19b(_19c,q){
+var _19d=$.data(_19c,"tree");
+var opts=_19d.options;
+var ids={};
+_12a(_19d.data,function(node){
+if(opts.filter.call(_19c,q,node)){
+$("#"+node.domId).removeClass("tree-node-hidden");
+ids[node.domId]=1;
+node.hidden=false;
+}else{
+$("#"+node.domId).addClass("tree-node-hidden");
+node.hidden=true;
+}
+});
+for(var id in ids){
+_19e(id);
+}
+function _19e(_19f){
+var p=$(_19c).tree("getParent",$("#"+_19f)[0]);
+while(p){
+$(p.target).removeClass("tree-node-hidden");
+p.hidden=false;
+p=$(_19c).tree("getParent",p.target);
+}
+};
+};
+$.fn.tree=function(_1a0,_1a1){
+if(typeof _1a0=="string"){
+return $.fn.tree.methods[_1a0](this,_1a1);
+}
+var _1a0=_1a0||{};
+return this.each(function(){
+var _1a2=$.data(this,"tree");
+var opts;
+if(_1a2){
+opts=$.extend(_1a2.options,_1a0);
+_1a2.options=opts;
+}else{
+opts=$.extend({},$.fn.tree.defaults,$.fn.tree.parseOptions(this),_1a0);
+$.data(this,"tree",{options:opts,tree:_d5(this),data:[]});
+var data=$.fn.tree.parseData(this);
+if(data.length){
+_120(this,this,data);
+}
+}
+_d8(this);
+if(opts.data){
+_120(this,this,$.extend(true,[],opts.data));
+}
+_135(this,this);
+});
+};
+$.fn.tree.methods={options:function(jq){
+return $.data(jq[0],"tree").options;
+},loadData:function(jq,data){
+return jq.each(function(){
+_120(this,this,data);
+});
+},getNode:function(jq,_1a3){
+return _e0(jq[0],_1a3);
+},getData:function(jq,_1a4){
+return _17d(jq[0],_1a4);
+},reload:function(jq,_1a5){
+return jq.each(function(){
+if(_1a5){
+var node=$(_1a5);
+var hit=node.children("span.tree-hit");
+hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+node.next().remove();
+_13c(this,_1a5);
+}else{
+$(this).empty();
+_135(this,this);
+}
+});
+},getRoot:function(jq,_1a6){
+return _169(jq[0],_1a6);
+},getRoots:function(jq){
+return _16d(jq[0]);
+},getParent:function(jq,_1a7){
+return _14f(jq[0],_1a7);
+},getChildren:function(jq,_1a8){
+return _11f(jq[0],_1a8);
+},getChecked:function(jq,_1a9){
+return _176(jq[0],_1a9);
+},getSelected:function(jq){
+return _17b(jq[0]);
+},isLeaf:function(jq,_1aa){
+return _11b(jq[0],_1aa);
+},find:function(jq,id){
+return _182(jq[0],id);
+},select:function(jq,_1ab){
+return jq.each(function(){
+_18a(this,_1ab);
+});
+},check:function(jq,_1ac){
+return jq.each(function(){
+_104(this,_1ac,true);
+});
+},uncheck:function(jq,_1ad){
+return jq.each(function(){
+_104(this,_1ad,false);
+});
+},collapse:function(jq,_1ae){
+return jq.each(function(){
+_141(this,_1ae);
+});
+},expand:function(jq,_1af){
+return jq.each(function(){
+_13c(this,_1af);
+});
+},collapseAll:function(jq,_1b0){
+return jq.each(function(){
+_153(this,_1b0);
+});
+},expandAll:function(jq,_1b1){
+return jq.each(function(){
+_147(this,_1b1);
+});
+},expandTo:function(jq,_1b2){
+return jq.each(function(){
+_14b(this,_1b2);
+});
+},scrollTo:function(jq,_1b3){
+return jq.each(function(){
+_150(this,_1b3);
+});
+},toggle:function(jq,_1b4){
+return jq.each(function(){
+_144(this,_1b4);
+});
+},append:function(jq,_1b5){
+return jq.each(function(){
+_157(this,_1b5);
+});
+},insert:function(jq,_1b6){
+return jq.each(function(){
+_15b(this,_1b6);
+});
+},remove:function(jq,_1b7){
+return jq.each(function(){
+_160(this,_1b7);
+});
+},pop:function(jq,_1b8){
+var node=jq.tree("getData",_1b8);
+jq.tree("remove",_1b8);
+return node;
+},update:function(jq,_1b9){
+return jq.each(function(){
+_127(this,_1b9);
+});
+},enableDnd:function(jq){
+return jq.each(function(){
+_e5(this);
+});
+},disableDnd:function(jq){
+return jq.each(function(){
+_e1(this);
+});
+},beginEdit:function(jq,_1ba){
+return jq.each(function(){
+_18f(this,_1ba);
+});
+},endEdit:function(jq,_1bb){
+return jq.each(function(){
+_194(this,_1bb);
+});
+},cancelEdit:function(jq,_1bc){
+return jq.each(function(){
+_198(this,_1bc);
+});
+},doFilter:function(jq,q){
+return jq.each(function(){
+_19b(this,q);
+});
+}};
+$.fn.tree.parseOptions=function(_1bd){
+var t=$(_1bd);
+return $.extend({},$.parser.parseOptions(_1bd,["url","method",{checkbox:"boolean",cascadeCheck:"boolean",onlyLeafCheck:"boolean"},{animate:"boolean",lines:"boolean",dnd:"boolean"}]));
+};
+$.fn.tree.parseData=function(_1be){
+var data=[];
+_1bf(data,$(_1be));
+return data;
+function _1bf(aa,tree){
+tree.children("li").each(function(){
+var node=$(this);
+var item=$.extend({},$.parser.parseOptions(this,["id","iconCls","state"]),{checked:(node.attr("checked")?true:undefined)});
+item.text=node.children("span").html();
+if(!item.text){
+item.text=node.html();
+}
+var _1c0=node.children("ul");
+if(_1c0.length){
+item.children=[];
+_1bf(item.children,_1c0);
+}
+aa.push(item);
+});
+};
+};
+var _1c1=1;
+var _1c2={render:function(_1c3,ul,data){
+var opts=$.data(_1c3,"tree").options;
+var _1c4=$(ul).prev("div.tree-node").find("span.tree-indent, span.tree-hit").length;
+var cc=_1c5(_1c4,data);
+$(ul).append(cc.join(""));
+function _1c5(_1c6,_1c7){
+var cc=[];
+for(var i=0;i<_1c7.length;i++){
+var item=_1c7[i];
+if(item.state!="open"&&item.state!="closed"){
+item.state="open";
+}
+item.domId="_easyui_tree_"+_1c1++;
+cc.push("<li>");
+cc.push("<div id=\""+item.domId+"\" class=\"tree-node\">");
+for(var j=0;j<_1c6;j++){
+cc.push("<span class=\"tree-indent\"></span>");
+}
+var _1c8=false;
+if(item.state=="closed"){
+cc.push("<span class=\"tree-hit tree-collapsed\"></span>");
+cc.push("<span class=\"tree-icon tree-folder "+(item.iconCls?item.iconCls:"")+"\"></span>");
+}else{
+if(item.children&&item.children.length){
+cc.push("<span class=\"tree-hit tree-expanded\"></span>");
+cc.push("<span class=\"tree-icon tree-folder tree-folder-open "+(item.iconCls?item.iconCls:"")+"\"></span>");
+}else{
+cc.push("<span class=\"tree-indent\"></span>");
+cc.push("<span class=\"tree-icon tree-file "+(item.iconCls?item.iconCls:"")+"\"></span>");
+_1c8=true;
+}
+}
+if(opts.checkbox){
+if((!opts.onlyLeafCheck)||_1c8){
+cc.push("<span class=\"tree-checkbox tree-checkbox0\"></span>");
+}
+}
+cc.push("<span class=\"tree-title\">"+opts.formatter.call(_1c3,item)+"</span>");
+cc.push("</div>");
+if(item.children&&item.children.length){
+var tmp=_1c5(_1c6+1,item.children);
+cc.push("<ul style=\"display:"+(item.state=="closed"?"none":"block")+"\">");
+cc=cc.concat(tmp);
+cc.push("</ul>");
+}
+cc.push("</li>");
+}
+return cc;
+};
+}};
+$.fn.tree.defaults={url:null,method:"post",animate:false,checkbox:false,cascadeCheck:true,onlyLeafCheck:false,lines:false,dnd:false,data:null,queryParams:{},formatter:function(node){
+return node.text;
+},filter:function(q,node){
+return node.text.toLowerCase().indexOf(q.toLowerCase())>=0;
+},loader:function(_1c9,_1ca,_1cb){
+var opts=$(this).tree("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_1c9,dataType:"json",success:function(data){
+_1ca(data);
+},error:function(){
+_1cb.apply(this,arguments);
+}});
+},loadFilter:function(data,_1cc){
+return data;
+},view:_1c2,onBeforeLoad:function(node,_1cd){
+},onLoadSuccess:function(node,data){
+},onLoadError:function(){
+},onClick:function(node){
+},onDblClick:function(node){
+},onBeforeExpand:function(node){
+},onExpand:function(node){
+},onBeforeCollapse:function(node){
+},onCollapse:function(node){
+},onBeforeCheck:function(node,_1ce){
+},onCheck:function(node,_1cf){
+},onBeforeSelect:function(node){
+},onSelect:function(node){
+},onContextMenu:function(e,node){
+},onBeforeDrag:function(node){
+},onStartDrag:function(node){
+},onStopDrag:function(node){
+},onDragEnter:function(_1d0,_1d1){
+},onDragOver:function(_1d2,_1d3){
+},onDragLeave:function(_1d4,_1d5){
+},onBeforeDrop:function(_1d6,_1d7,_1d8){
+},onDrop:function(_1d9,_1da,_1db){
+},onBeforeEdit:function(node){
+},onAfterEdit:function(node){
+},onCancelEdit:function(node){
+}};
+})(jQuery);
+(function($){
+function init(_1dc){
+$(_1dc).addClass("progressbar");
+$(_1dc).html("<div class=\"progressbar-text\"></div><div class=\"progressbar-value\"><div class=\"progressbar-text\"></div></div>");
+$(_1dc).bind("_resize",function(e,_1dd){
+if($(this).hasClass("easyui-fluid")||_1dd){
+_1de(_1dc);
+}
+return false;
+});
+return $(_1dc);
+};
+function _1de(_1df,_1e0){
+var opts=$.data(_1df,"progressbar").options;
+var bar=$.data(_1df,"progressbar").bar;
+if(_1e0){
+opts.width=_1e0;
+}
+bar._size(opts);
+bar.find("div.progressbar-text").css("width",bar.width());
+bar.find("div.progressbar-text,div.progressbar-value").css({height:bar.height()+"px",lineHeight:bar.height()+"px"});
+};
+$.fn.progressbar=function(_1e1,_1e2){
+if(typeof _1e1=="string"){
+var _1e3=$.fn.progressbar.methods[_1e1];
+if(_1e3){
+return _1e3(this,_1e2);
+}
+}
+_1e1=_1e1||{};
+return this.each(function(){
+var _1e4=$.data(this,"progressbar");
+if(_1e4){
+$.extend(_1e4.options,_1e1);
+}else{
+_1e4=$.data(this,"progressbar",{options:$.extend({},$.fn.progressbar.defaults,$.fn.progressbar.parseOptions(this),_1e1),bar:init(this)});
+}
+$(this).progressbar("setValue",_1e4.options.value);
+_1de(this);
+});
+};
+$.fn.progressbar.methods={options:function(jq){
+return $.data(jq[0],"progressbar").options;
+},resize:function(jq,_1e5){
+return jq.each(function(){
+_1de(this,_1e5);
+});
+},getValue:function(jq){
+return $.data(jq[0],"progressbar").options.value;
+},setValue:function(jq,_1e6){
+if(_1e6<0){
+_1e6=0;
+}
+if(_1e6>100){
+_1e6=100;
+}
+return jq.each(function(){
+var opts=$.data(this,"progressbar").options;
+var text=opts.text.replace(/{value}/,_1e6);
+var _1e7=opts.value;
+opts.value=_1e6;
+$(this).find("div.progressbar-value").width(_1e6+"%");
+$(this).find("div.progressbar-text").html(text);
+if(_1e7!=_1e6){
+opts.onChange.call(this,_1e6,_1e7);
+}
+});
+}};
+$.fn.progressbar.parseOptions=function(_1e8){
+return $.extend({},$.parser.parseOptions(_1e8,["width","height","text",{value:"number"}]));
+};
+$.fn.progressbar.defaults={width:"auto",height:22,value:0,text:"{value}%",onChange:function(_1e9,_1ea){
+}};
+})(jQuery);
+(function($){
+function init(_1eb){
+$(_1eb).addClass("tooltip-f");
+};
+function _1ec(_1ed){
+var opts=$.data(_1ed,"tooltip").options;
+$(_1ed).unbind(".tooltip").bind(opts.showEvent+".tooltip",function(e){
+$(_1ed).tooltip("show",e);
+}).bind(opts.hideEvent+".tooltip",function(e){
+$(_1ed).tooltip("hide",e);
+}).bind("mousemove.tooltip",function(e){
+if(opts.trackMouse){
+opts.trackMouseX=e.pageX;
+opts.trackMouseY=e.pageY;
+$(_1ed).tooltip("reposition");
+}
+});
+};
+function _1ee(_1ef){
+var _1f0=$.data(_1ef,"tooltip");
+if(_1f0.showTimer){
+clearTimeout(_1f0.showTimer);
+_1f0.showTimer=null;
+}
+if(_1f0.hideTimer){
+clearTimeout(_1f0.hideTimer);
+_1f0.hideTimer=null;
+}
+};
+function _1f1(_1f2){
+var _1f3=$.data(_1f2,"tooltip");
+if(!_1f3||!_1f3.tip){
+return;
+}
+var opts=_1f3.options;
+var tip=_1f3.tip;
+var pos={left:-100000,top:-100000};
+if($(_1f2).is(":visible")){
+pos=_1f4(opts.position);
+if(opts.position=="top"&&pos.top<0){
+pos=_1f4("bottom");
+}else{
+if((opts.position=="bottom")&&(pos.top+tip._outerHeight()>$(window)._outerHeight()+$(document).scrollTop())){
+pos=_1f4("top");
+}
+}
+if(pos.left<0){
+if(opts.position=="left"){
+pos=_1f4("right");
+}else{
+$(_1f2).tooltip("arrow").css("left",tip._outerWidth()/2+pos.left);
+pos.left=0;
+}
+}else{
+if(pos.left+tip._outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){
+if(opts.position=="right"){
+pos=_1f4("left");
+}else{
+var left=pos.left;
+pos.left=$(window)._outerWidth()+$(document)._scrollLeft()-tip._outerWidth();
+$(_1f2).tooltip("arrow").css("left",tip._outerWidth()/2-(pos.left-left));
+}
+}
+}
+}
+tip.css({left:pos.left,top:pos.top,zIndex:(opts.zIndex!=undefined?opts.zIndex:($.fn.window?$.fn.window.defaults.zIndex++:""))});
+opts.onPosition.call(_1f2,pos.left,pos.top);
+function _1f4(_1f5){
+opts.position=_1f5||"bottom";
+tip.removeClass("tooltip-top tooltip-bottom tooltip-left tooltip-right").addClass("tooltip-"+opts.position);
+var left,top;
+if(opts.trackMouse){
+t=$();
+left=opts.trackMouseX+opts.deltaX;
+top=opts.trackMouseY+opts.deltaY;
+}else{
+var t=$(_1f2);
+left=t.offset().left+opts.deltaX;
+top=t.offset().top+opts.deltaY;
+}
+switch(opts.position){
+case "right":
+left+=t._outerWidth()+12+(opts.trackMouse?12:0);
+top-=(tip._outerHeight()-t._outerHeight())/2;
+break;
+case "left":
+left-=tip._outerWidth()+12+(opts.trackMouse?12:0);
+top-=(tip._outerHeight()-t._outerHeight())/2;
+break;
+case "top":
+left-=(tip._outerWidth()-t._outerWidth())/2;
+top-=tip._outerHeight()+12+(opts.trackMouse?12:0);
+break;
+case "bottom":
+left-=(tip._outerWidth()-t._outerWidth())/2;
+top+=t._outerHeight()+12+(opts.trackMouse?12:0);
+break;
+}
+return {left:left,top:top};
+};
+};
+function _1f6(_1f7,e){
+var _1f8=$.data(_1f7,"tooltip");
+var opts=_1f8.options;
+var tip=_1f8.tip;
+if(!tip){
+tip=$("<div tabindex=\"-1\" class=\"tooltip\">"+"<div class=\"tooltip-content\"></div>"+"<div class=\"tooltip-arrow-outer\"></div>"+"<div class=\"tooltip-arrow\"></div>"+"</div>").appendTo("body");
+_1f8.tip=tip;
+_1f9(_1f7);
+}
+_1ee(_1f7);
+_1f8.showTimer=setTimeout(function(){
+$(_1f7).tooltip("reposition");
+tip.show();
+opts.onShow.call(_1f7,e);
+var _1fa=tip.children(".tooltip-arrow-outer");
+var _1fb=tip.children(".tooltip-arrow");
+var bc="border-"+opts.position+"-color";
+_1fa.add(_1fb).css({borderTopColor:"",borderBottomColor:"",borderLeftColor:"",borderRightColor:""});
+_1fa.css(bc,tip.css(bc));
+_1fb.css(bc,tip.css("backgroundColor"));
+},opts.showDelay);
+};
+function _1fc(_1fd,e){
+var _1fe=$.data(_1fd,"tooltip");
+if(_1fe&&_1fe.tip){
+_1ee(_1fd);
+_1fe.hideTimer=setTimeout(function(){
+_1fe.tip.hide();
+_1fe.options.onHide.call(_1fd,e);
+},_1fe.options.hideDelay);
+}
+};
+function _1f9(_1ff,_200){
+var _201=$.data(_1ff,"tooltip");
+var opts=_201.options;
+if(_200){
+opts.content=_200;
+}
+if(!_201.tip){
+return;
+}
+var cc=typeof opts.content=="function"?opts.content.call(_1ff):opts.content;
+_201.tip.children(".tooltip-content").html(cc);
+opts.onUpdate.call(_1ff,cc);
+};
+function _202(_203){
+var _204=$.data(_203,"tooltip");
+if(_204){
+_1ee(_203);
+var opts=_204.options;
+if(_204.tip){
+_204.tip.remove();
+}
+if(opts._title){
+$(_203).attr("title",opts._title);
+}
+$.removeData(_203,"tooltip");
+$(_203).unbind(".tooltip").removeClass("tooltip-f");
+opts.onDestroy.call(_203);
+}
+};
+$.fn.tooltip=function(_205,_206){
+if(typeof _205=="string"){
+return $.fn.tooltip.methods[_205](this,_206);
+}
+_205=_205||{};
+return this.each(function(){
+var _207=$.data(this,"tooltip");
+if(_207){
+$.extend(_207.options,_205);
+}else{
+$.data(this,"tooltip",{options:$.extend({},$.fn.tooltip.defaults,$.fn.tooltip.parseOptions(this),_205)});
+init(this);
+}
+_1ec(this);
+_1f9(this);
+});
+};
+$.fn.tooltip.methods={options:function(jq){
+return $.data(jq[0],"tooltip").options;
+},tip:function(jq){
+return $.data(jq[0],"tooltip").tip;
+},arrow:function(jq){
+return jq.tooltip("tip").children(".tooltip-arrow-outer,.tooltip-arrow");
+},show:function(jq,e){
+return jq.each(function(){
+_1f6(this,e);
+});
+},hide:function(jq,e){
+return jq.each(function(){
+_1fc(this,e);
+});
+},update:function(jq,_208){
+return jq.each(function(){
+_1f9(this,_208);
+});
+},reposition:function(jq){
+return jq.each(function(){
+_1f1(this);
+});
+},destroy:function(jq){
+return jq.each(function(){
+_202(this);
+});
+}};
+$.fn.tooltip.parseOptions=function(_209){
+var t=$(_209);
+var opts=$.extend({},$.parser.parseOptions(_209,["position","showEvent","hideEvent","content",{trackMouse:"boolean",deltaX:"number",deltaY:"number",showDelay:"number",hideDelay:"number"}]),{_title:t.attr("title")});
+t.attr("title","");
+if(!opts.content){
+opts.content=opts._title;
+}
+return opts;
+};
+$.fn.tooltip.defaults={position:"bottom",content:null,trackMouse:false,deltaX:0,deltaY:0,showEvent:"mouseenter",hideEvent:"mouseleave",showDelay:200,hideDelay:100,onShow:function(e){
+},onHide:function(e){
+},onUpdate:function(_20a){
+},onPosition:function(left,top){
+},onDestroy:function(){
+}};
+})(jQuery);
+(function($){
+$.fn._remove=function(){
+return this.each(function(){
+$(this).remove();
+try{
+this.outerHTML="";
+}
+catch(err){
+}
+});
+};
+function _20b(node){
+node._remove();
+};
+function _20c(_20d,_20e){
+var _20f=$.data(_20d,"panel");
+var opts=_20f.options;
+var _210=_20f.panel;
+var _211=_210.children(".panel-header");
+var _212=_210.children(".panel-body");
+var _213=_210.children(".panel-footer");
+if(_20e){
+$.extend(opts,{width:_20e.width,height:_20e.height,minWidth:_20e.minWidth,maxWidth:_20e.maxWidth,minHeight:_20e.minHeight,maxHeight:_20e.maxHeight,left:_20e.left,top:_20e.top});
+}
+_210._size(opts);
+_211.add(_212)._outerWidth(_210.width());
+if(!isNaN(parseInt(opts.height))){
+_212._outerHeight(_210.height()-_211._outerHeight()-_213._outerHeight());
+}else{
+_212.css("height","");
+var min=$.parser.parseValue("minHeight",opts.minHeight,_210.parent());
+var max=$.parser.parseValue("maxHeight",opts.maxHeight,_210.parent());
+var _214=_211._outerHeight()+_213._outerHeight()+_210._outerHeight()-_210.height();
+_212._size("minHeight",min?(min-_214):"");
+_212._size("maxHeight",max?(max-_214):"");
+}
+_210.css({height:"",minHeight:"",maxHeight:"",left:opts.left,top:opts.top});
+opts.onResize.apply(_20d,[opts.width,opts.height]);
+$(_20d).panel("doLayout");
+};
+function _215(_216,_217){
+var opts=$.data(_216,"panel").options;
+var _218=$.data(_216,"panel").panel;
+if(_217){
+if(_217.left!=null){
+opts.left=_217.left;
+}
+if(_217.top!=null){
+opts.top=_217.top;
+}
+}
+_218.css({left:opts.left,top:opts.top});
+opts.onMove.apply(_216,[opts.left,opts.top]);
+};
+function _219(_21a){
+$(_21a).addClass("panel-body")._size("clear");
+var _21b=$("<div class=\"panel\"></div>").insertBefore(_21a);
+_21b[0].appendChild(_21a);
+_21b.bind("_resize",function(e,_21c){
+if($(this).hasClass("easyui-fluid")||_21c){
+_20c(_21a);
+}
+return false;
+});
+return _21b;
+};
+function _21d(_21e){
+var _21f=$.data(_21e,"panel");
+var opts=_21f.options;
+var _220=_21f.panel;
+_220.css(opts.style);
+_220.addClass(opts.cls);
+_221();
+_222();
+var _223=$(_21e).panel("header");
+var body=$(_21e).panel("body");
+var _224=$(_21e).siblings(".panel-footer");
+if(opts.border){
+_223.removeClass("panel-header-noborder");
+body.removeClass("panel-body-noborder");
+_224.removeClass("panel-footer-noborder");
+}else{
+_223.addClass("panel-header-noborder");
+body.addClass("panel-body-noborder");
+_224.addClass("panel-footer-noborder");
+}
+_223.addClass(opts.headerCls);
+body.addClass(opts.bodyCls);
+$(_21e).attr("id",opts.id||"");
+if(opts.content){
+$(_21e).panel("clear");
+$(_21e).html(opts.content);
+$.parser.parse($(_21e));
+}
+function _221(){
+if(opts.noheader||(!opts.title&&!opts.header)){
+_20b(_220.children(".panel-header"));
+_220.children(".panel-body").addClass("panel-body-noheader");
+}else{
+if(opts.header){
+$(opts.header).addClass("panel-header").prependTo(_220);
+}else{
+var _225=_220.children(".panel-header");
+if(!_225.length){
+_225=$("<div class=\"panel-header\"></div>").prependTo(_220);
+}
+if(!$.isArray(opts.tools)){
+_225.find("div.panel-tool .panel-tool-a").appendTo(opts.tools);
+}
+_225.empty();
+var _226=$("<div class=\"panel-title\"></div>").html(opts.title).appendTo(_225);
+if(opts.iconCls){
+_226.addClass("panel-with-icon");
+$("<div class=\"panel-icon\"></div>").addClass(opts.iconCls).appendTo(_225);
+}
+var tool=$("<div class=\"panel-tool\"></div>").appendTo(_225);
+tool.bind("click",function(e){
+e.stopPropagation();
+});
+if(opts.tools){
+if($.isArray(opts.tools)){
+$.map(opts.tools,function(t){
+_227(tool,t.iconCls,eval(t.handler));
+});
+}else{
+$(opts.tools).children().each(function(){
+$(this).addClass($(this).attr("iconCls")).addClass("panel-tool-a").appendTo(tool);
+});
+}
+}
+if(opts.collapsible){
+_227(tool,"panel-tool-collapse",function(){
+if(opts.collapsed==true){
+_245(_21e,true);
+}else{
+_238(_21e,true);
+}
+});
+}
+if(opts.minimizable){
+_227(tool,"panel-tool-min",function(){
+_24b(_21e);
+});
+}
+if(opts.maximizable){
+_227(tool,"panel-tool-max",function(){
+if(opts.maximized==true){
+_24e(_21e);
+}else{
+_237(_21e);
+}
+});
+}
+if(opts.closable){
+_227(tool,"panel-tool-close",function(){
+_239(_21e);
+});
+}
+}
+_220.children("div.panel-body").removeClass("panel-body-noheader");
+}
+};
+function _227(c,icon,_228){
+var a=$("<a href=\"javascript:void(0)\"></a>").addClass(icon).appendTo(c);
+a.bind("click",_228);
+};
+function _222(){
+if(opts.footer){
+$(opts.footer).addClass("panel-footer").appendTo(_220);
+$(_21e).addClass("panel-body-nobottom");
+}else{
+_220.children(".panel-footer").remove();
+$(_21e).removeClass("panel-body-nobottom");
+}
+};
+};
+function _229(_22a,_22b){
+var _22c=$.data(_22a,"panel");
+var opts=_22c.options;
+if(_22d){
+opts.queryParams=_22b;
+}
+if(!opts.href){
+return;
+}
+if(!_22c.isLoaded||!opts.cache){
+var _22d=$.extend({},opts.queryParams);
+if(opts.onBeforeLoad.call(_22a,_22d)==false){
+return;
+}
+_22c.isLoaded=false;
+$(_22a).panel("clear");
+if(opts.loadingMessage){
+$(_22a).html($("<div class=\"panel-loading\"></div>").html(opts.loadingMessage));
+}
+opts.loader.call(_22a,_22d,function(data){
+var _22e=opts.extractor.call(_22a,data);
+$(_22a).html(_22e);
+$.parser.parse($(_22a));
+opts.onLoad.apply(_22a,arguments);
+_22c.isLoaded=true;
+},function(){
+opts.onLoadError.apply(_22a,arguments);
+});
+}
+};
+function _22f(_230){
+var t=$(_230);
+t.find(".combo-f").each(function(){
+$(this).combo("destroy");
+});
+t.find(".m-btn").each(function(){
+$(this).menubutton("destroy");
+});
+t.find(".s-btn").each(function(){
+$(this).splitbutton("destroy");
+});
+t.find(".tooltip-f").each(function(){
+$(this).tooltip("destroy");
+});
+t.children("div").each(function(){
+$(this)._size("unfit");
+});
+t.empty();
+};
+function _231(_232){
+$(_232).panel("doLayout",true);
+};
+function _233(_234,_235){
+var opts=$.data(_234,"panel").options;
+var _236=$.data(_234,"panel").panel;
+if(_235!=true){
+if(opts.onBeforeOpen.call(_234)==false){
+return;
+}
+}
+_236.stop(true,true);
+if($.isFunction(opts.openAnimation)){
+opts.openAnimation.call(_234,cb);
+}else{
+switch(opts.openAnimation){
+case "slide":
+_236.slideDown(opts.openDuration,cb);
+break;
+case "fade":
+_236.fadeIn(opts.openDuration,cb);
+break;
+case "show":
+_236.show(opts.openDuration,cb);
+break;
+default:
+_236.show();
+cb();
+}
+}
+function cb(){
+opts.closed=false;
+opts.minimized=false;
+var tool=_236.children(".panel-header").find("a.panel-tool-restore");
+if(tool.length){
+opts.maximized=true;
+}
+opts.onOpen.call(_234);
+if(opts.maximized==true){
+opts.maximized=false;
+_237(_234);
+}
+if(opts.collapsed==true){
+opts.collapsed=false;
+_238(_234);
+}
+if(!opts.collapsed){
+_229(_234);
+_231(_234);
+}
+};
+};
+function _239(_23a,_23b){
+var opts=$.data(_23a,"panel").options;
+var _23c=$.data(_23a,"panel").panel;
+if(_23b!=true){
+if(opts.onBeforeClose.call(_23a)==false){
+return;
+}
+}
+_23c.stop(true,true);
+_23c._size("unfit");
+if($.isFunction(opts.closeAnimation)){
+opts.closeAnimation.call(_23a,cb);
+}else{
+switch(opts.closeAnimation){
+case "slide":
+_23c.slideUp(opts.closeDuration,cb);
+break;
+case "fade":
+_23c.fadeOut(opts.closeDuration,cb);
+break;
+case "hide":
+_23c.hide(opts.closeDuration,cb);
+break;
+default:
+_23c.hide();
+cb();
+}
+}
+function cb(){
+opts.closed=true;
+opts.onClose.call(_23a);
+};
+};
+function _23d(_23e,_23f){
+var _240=$.data(_23e,"panel");
+var opts=_240.options;
+var _241=_240.panel;
+if(_23f!=true){
+if(opts.onBeforeDestroy.call(_23e)==false){
+return;
+}
+}
+$(_23e).panel("clear").panel("clear","footer");
+_20b(_241);
+opts.onDestroy.call(_23e);
+};
+function _238(_242,_243){
+var opts=$.data(_242,"panel").options;
+var _244=$.data(_242,"panel").panel;
+var body=_244.children(".panel-body");
+var tool=_244.children(".panel-header").find("a.panel-tool-collapse");
+if(opts.collapsed==true){
+return;
+}
+body.stop(true,true);
+if(opts.onBeforeCollapse.call(_242)==false){
+return;
+}
+tool.addClass("panel-tool-expand");
+if(_243==true){
+body.slideUp("normal",function(){
+opts.collapsed=true;
+opts.onCollapse.call(_242);
+});
+}else{
+body.hide();
+opts.collapsed=true;
+opts.onCollapse.call(_242);
+}
+};
+function _245(_246,_247){
+var opts=$.data(_246,"panel").options;
+var _248=$.data(_246,"panel").panel;
+var body=_248.children(".panel-body");
+var tool=_248.children(".panel-header").find("a.panel-tool-collapse");
+if(opts.collapsed==false){
+return;
+}
+body.stop(true,true);
+if(opts.onBeforeExpand.call(_246)==false){
+return;
+}
+tool.removeClass("panel-tool-expand");
+if(_247==true){
+body.slideDown("normal",function(){
+opts.collapsed=false;
+opts.onExpand.call(_246);
+_229(_246);
+_231(_246);
+});
+}else{
+body.show();
+opts.collapsed=false;
+opts.onExpand.call(_246);
+_229(_246);
+_231(_246);
+}
+};
+function _237(_249){
+var opts=$.data(_249,"panel").options;
+var _24a=$.data(_249,"panel").panel;
+var tool=_24a.children(".panel-header").find("a.panel-tool-max");
+if(opts.maximized==true){
+return;
+}
+tool.addClass("panel-tool-restore");
+if(!$.data(_249,"panel").original){
+$.data(_249,"panel").original={width:opts.width,height:opts.height,left:opts.left,top:opts.top,fit:opts.fit};
+}
+opts.left=0;
+opts.top=0;
+opts.fit=true;
+_20c(_249);
+opts.minimized=false;
+opts.maximized=true;
+opts.onMaximize.call(_249);
+};
+function _24b(_24c){
+var opts=$.data(_24c,"panel").options;
+var _24d=$.data(_24c,"panel").panel;
+_24d._size("unfit");
+_24d.hide();
+opts.minimized=true;
+opts.maximized=false;
+opts.onMinimize.call(_24c);
+};
+function _24e(_24f){
+var opts=$.data(_24f,"panel").options;
+var _250=$.data(_24f,"panel").panel;
+var tool=_250.children(".panel-header").find("a.panel-tool-max");
+if(opts.maximized==false){
+return;
+}
+_250.show();
+tool.removeClass("panel-tool-restore");
+$.extend(opts,$.data(_24f,"panel").original);
+_20c(_24f);
+opts.minimized=false;
+opts.maximized=false;
+$.data(_24f,"panel").original=null;
+opts.onRestore.call(_24f);
+};
+function _251(_252,_253){
+$.data(_252,"panel").options.title=_253;
+$(_252).panel("header").find("div.panel-title").html(_253);
+};
+var _254=null;
+$(window).unbind(".panel").bind("resize.panel",function(){
+if(_254){
+clearTimeout(_254);
+}
+_254=setTimeout(function(){
+var _255=$("body.layout");
+if(_255.length){
+_255.layout("resize");
+$("body").children(".easyui-fluid:visible").each(function(){
+$(this).triggerHandler("_resize");
+});
+}else{
+$("body").panel("doLayout");
+}
+_254=null;
+},100);
+});
+$.fn.panel=function(_256,_257){
+if(typeof _256=="string"){
+return $.fn.panel.methods[_256](this,_257);
+}
+_256=_256||{};
+return this.each(function(){
+var _258=$.data(this,"panel");
+var opts;
+if(_258){
+opts=$.extend(_258.options,_256);
+_258.isLoaded=false;
+}else{
+opts=$.extend({},$.fn.panel.defaults,$.fn.panel.parseOptions(this),_256);
+$(this).attr("title","");
+_258=$.data(this,"panel",{options:opts,panel:_219(this),isLoaded:false});
+}
+_21d(this);
+if(opts.doSize==true){
+_258.panel.css("display","block");
+_20c(this);
+}
+if(opts.closed==true||opts.minimized==true){
+_258.panel.hide();
+}else{
+_233(this);
+}
+});
+};
+$.fn.panel.methods={options:function(jq){
+return $.data(jq[0],"panel").options;
+},panel:function(jq){
+return $.data(jq[0],"panel").panel;
+},header:function(jq){
+return $.data(jq[0],"panel").panel.children(".panel-header");
+},footer:function(jq){
+return jq.panel("panel").children(".panel-footer");
+},body:function(jq){
+return $.data(jq[0],"panel").panel.children(".panel-body");
+},setTitle:function(jq,_259){
+return jq.each(function(){
+_251(this,_259);
+});
+},open:function(jq,_25a){
+return jq.each(function(){
+_233(this,_25a);
+});
+},close:function(jq,_25b){
+return jq.each(function(){
+_239(this,_25b);
+});
+},destroy:function(jq,_25c){
+return jq.each(function(){
+_23d(this,_25c);
+});
+},clear:function(jq,type){
+return jq.each(function(){
+_22f(type=="footer"?$(this).panel("footer"):this);
+});
+},refresh:function(jq,href){
+return jq.each(function(){
+var _25d=$.data(this,"panel");
+_25d.isLoaded=false;
+if(href){
+if(typeof href=="string"){
+_25d.options.href=href;
+}else{
+_25d.options.queryParams=href;
+}
+}
+_229(this);
+});
+},resize:function(jq,_25e){
+return jq.each(function(){
+_20c(this,_25e);
+});
+},doLayout:function(jq,all){
+return jq.each(function(){
+_25f(this,"body");
+_25f($(this).siblings(".panel-footer")[0],"footer");
+function _25f(_260,type){
+if(!_260){
+return;
+}
+var _261=_260==$("body")[0];
+var s=$(_260).find("div.panel:visible,div.accordion:visible,div.tabs-container:visible,div.layout:visible,.easyui-fluid:visible").filter(function(_262,el){
+var p=$(el).parents(".panel-"+type+":first");
+return _261?p.length==0:p[0]==_260;
+});
+s.each(function(){
+$(this).triggerHandler("_resize",[all||false]);
+});
+};
+});
+},move:function(jq,_263){
+return jq.each(function(){
+_215(this,_263);
+});
+},maximize:function(jq){
+return jq.each(function(){
+_237(this);
+});
+},minimize:function(jq){
+return jq.each(function(){
+_24b(this);
+});
+},restore:function(jq){
+return jq.each(function(){
+_24e(this);
+});
+},collapse:function(jq,_264){
+return jq.each(function(){
+_238(this,_264);
+});
+},expand:function(jq,_265){
+return jq.each(function(){
+_245(this,_265);
+});
+}};
+$.fn.panel.parseOptions=function(_266){
+var t=$(_266);
+var hh=t.children(".panel-header,header");
+var ff=t.children(".panel-footer,footer");
+return $.extend({},$.parser.parseOptions(_266,["id","width","height","left","top","title","iconCls","cls","headerCls","bodyCls","tools","href","method","header","footer",{cache:"boolean",fit:"boolean",border:"boolean",noheader:"boolean"},{collapsible:"boolean",minimizable:"boolean",maximizable:"boolean"},{closable:"boolean",collapsed:"boolean",minimized:"boolean",maximized:"boolean",closed:"boolean"},"openAnimation","closeAnimation",{openDuration:"number",closeDuration:"number"},]),{loadingMessage:(t.attr("loadingMessage")!=undefined?t.attr("loadingMessage"):undefined),header:(hh.length?hh.removeClass("panel-header"):undefined),footer:(ff.length?ff.removeClass("panel-footer"):undefined)});
+};
+$.fn.panel.defaults={id:null,title:null,iconCls:null,width:"auto",height:"auto",left:null,top:null,cls:null,headerCls:null,bodyCls:null,style:{},href:null,cache:true,fit:false,border:true,doSize:true,noheader:false,content:null,collapsible:false,minimizable:false,maximizable:false,closable:false,collapsed:false,minimized:false,maximized:false,closed:false,openAnimation:false,openDuration:400,closeAnimation:false,closeDuration:400,tools:null,footer:null,header:null,queryParams:{},method:"get",href:null,loadingMessage:"Loading...",loader:function(_267,_268,_269){
+var opts=$(this).panel("options");
+if(!opts.href){
+return false;
+}
+$.ajax({type:opts.method,url:opts.href,cache:false,data:_267,dataType:"html",success:function(data){
+_268(data);
+},error:function(){
+_269.apply(this,arguments);
+}});
+},extractor:function(data){
+var _26a=/<body[^>]*>((.|[\n\r])*)<\/body>/im;
+var _26b=_26a.exec(data);
+if(_26b){
+return _26b[1];
+}else{
+return data;
+}
+},onBeforeLoad:function(_26c){
+},onLoad:function(){
+},onLoadError:function(){
+},onBeforeOpen:function(){
+},onOpen:function(){
+},onBeforeClose:function(){
+},onClose:function(){
+},onBeforeDestroy:function(){
+},onDestroy:function(){
+},onResize:function(_26d,_26e){
+},onMove:function(left,top){
+},onMaximize:function(){
+},onRestore:function(){
+},onMinimize:function(){
+},onBeforeCollapse:function(){
+},onBeforeExpand:function(){
+},onCollapse:function(){
+},onExpand:function(){
+}};
+})(jQuery);
+(function($){
+function _26f(_270,_271){
+var _272=$.data(_270,"window");
+if(_271){
+if(_271.left!=null){
+_272.options.left=_271.left;
+}
+if(_271.top!=null){
+_272.options.top=_271.top;
+}
+}
+$(_270).panel("move",_272.options);
+if(_272.shadow){
+_272.shadow.css({left:_272.options.left,top:_272.options.top});
+}
+};
+function _273(_274,_275){
+var opts=$.data(_274,"window").options;
+var pp=$(_274).window("panel");
+var _276=pp._outerWidth();
+if(opts.inline){
+var _277=pp.parent();
+opts.left=Math.ceil((_277.width()-_276)/2+_277.scrollLeft());
+}else{
+opts.left=Math.ceil(($(window)._outerWidth()-_276)/2+$(document).scrollLeft());
+}
+if(_275){
+_26f(_274);
+}
+};
+function _278(_279,_27a){
+var opts=$.data(_279,"window").options;
+var pp=$(_279).window("panel");
+var _27b=pp._outerHeight();
+if(opts.inline){
+var _27c=pp.parent();
+opts.top=Math.ceil((_27c.height()-_27b)/2+_27c.scrollTop());
+}else{
+opts.top=Math.ceil(($(window)._outerHeight()-_27b)/2+$(document).scrollTop());
+}
+if(_27a){
+_26f(_279);
+}
+};
+function _27d(_27e){
+var _27f=$.data(_27e,"window");
+var opts=_27f.options;
+var win=$(_27e).panel($.extend({},_27f.options,{border:false,doSize:true,closed:true,cls:"window",headerCls:"window-header",bodyCls:"window-body "+(opts.noheader?"window-body-noheader":""),onBeforeDestroy:function(){
+if(opts.onBeforeDestroy.call(_27e)==false){
+return false;
+}
+if(_27f.shadow){
+_27f.shadow.remove();
+}
+if(_27f.mask){
+_27f.mask.remove();
+}
+},onClose:function(){
+if(_27f.shadow){
+_27f.shadow.hide();
+}
+if(_27f.mask){
+_27f.mask.hide();
+}
+opts.onClose.call(_27e);
+},onOpen:function(){
+if(_27f.mask){
+_27f.mask.css($.extend({display:"block",zIndex:$.fn.window.defaults.zIndex++},$.fn.window.getMaskSize(_27e)));
+}
+if(_27f.shadow){
+_27f.shadow.css({display:"block",zIndex:$.fn.window.defaults.zIndex++,left:opts.left,top:opts.top,width:_27f.window._outerWidth(),height:_27f.window._outerHeight()});
+}
+_27f.window.css("z-index",$.fn.window.defaults.zIndex++);
+opts.onOpen.call(_27e);
+},onResize:function(_280,_281){
+var _282=$(this).panel("options");
+$.extend(opts,{width:_282.width,height:_282.height,left:_282.left,top:_282.top});
+if(_27f.shadow){
+_27f.shadow.css({left:opts.left,top:opts.top,width:_27f.window._outerWidth(),height:_27f.window._outerHeight()});
+}
+opts.onResize.call(_27e,_280,_281);
+},onMinimize:function(){
+if(_27f.shadow){
+_27f.shadow.hide();
+}
+if(_27f.mask){
+_27f.mask.hide();
+}
+_27f.options.onMinimize.call(_27e);
+},onBeforeCollapse:function(){
+if(opts.onBeforeCollapse.call(_27e)==false){
+return false;
+}
+if(_27f.shadow){
+_27f.shadow.hide();
+}
+},onExpand:function(){
+if(_27f.shadow){
+_27f.shadow.show();
+}
+opts.onExpand.call(_27e);
+}}));
+_27f.window=win.panel("panel");
+if(_27f.mask){
+_27f.mask.remove();
+}
+if(opts.modal){
+_27f.mask=$("<div class=\"window-mask\" style=\"display:none\"></div>").insertAfter(_27f.window);
+}
+if(_27f.shadow){
+_27f.shadow.remove();
+}
+if(opts.shadow){
+_27f.shadow=$("<div class=\"window-shadow\" style=\"display:none\"></div>").insertAfter(_27f.window);
+}
+var _283=opts.closed;
+if(opts.left==null){
+_273(_27e);
+}
+if(opts.top==null){
+_278(_27e);
+}
+_26f(_27e);
+if(!_283){
+win.window("open");
+}
+};
+function _284(_285){
+var _286=$.data(_285,"window");
+_286.window.draggable({handle:">div.panel-header>div.panel-title",disabled:_286.options.draggable==false,onStartDrag:function(e){
+if(_286.mask){
+_286.mask.css("z-index",$.fn.window.defaults.zIndex++);
+}
+if(_286.shadow){
+_286.shadow.css("z-index",$.fn.window.defaults.zIndex++);
+}
+_286.window.css("z-index",$.fn.window.defaults.zIndex++);
+if(!_286.proxy){
+_286.proxy=$("<div class=\"window-proxy\"></div>").insertAfter(_286.window);
+}
+_286.proxy.css({display:"none",zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});
+_286.proxy._outerWidth(_286.window._outerWidth());
+_286.proxy._outerHeight(_286.window._outerHeight());
+setTimeout(function(){
+if(_286.proxy){
+_286.proxy.show();
+}
+},500);
+},onDrag:function(e){
+_286.proxy.css({display:"block",left:e.data.left,top:e.data.top});
+return false;
+},onStopDrag:function(e){
+_286.options.left=e.data.left;
+_286.options.top=e.data.top;
+$(_285).window("move");
+_286.proxy.remove();
+_286.proxy=null;
+}});
+_286.window.resizable({disabled:_286.options.resizable==false,onStartResize:function(e){
+if(_286.pmask){
+_286.pmask.remove();
+}
+_286.pmask=$("<div class=\"window-proxy-mask\"></div>").insertAfter(_286.window);
+_286.pmask.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top,width:_286.window._outerWidth(),height:_286.window._outerHeight()});
+if(_286.proxy){
+_286.proxy.remove();
+}
+_286.proxy=$("<div class=\"window-proxy\"></div>").insertAfter(_286.window);
+_286.proxy.css({zIndex:$.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});
+_286.proxy._outerWidth(e.data.width)._outerHeight(e.data.height);
+},onResize:function(e){
+_286.proxy.css({left:e.data.left,top:e.data.top});
+_286.proxy._outerWidth(e.data.width);
+_286.proxy._outerHeight(e.data.height);
+return false;
+},onStopResize:function(e){
+$(_285).window("resize",e.data);
+_286.pmask.remove();
+_286.pmask=null;
+_286.proxy.remove();
+_286.proxy=null;
+}});
+};
+$(window).resize(function(){
+$("body>div.window-mask").css({width:$(window)._outerWidth(),height:$(window)._outerHeight()});
+setTimeout(function(){
+$("body>div.window-mask").css($.fn.window.getMaskSize());
+},50);
+});
+$.fn.window=function(_287,_288){
+if(typeof _287=="string"){
+var _289=$.fn.window.methods[_287];
+if(_289){
+return _289(this,_288);
+}else{
+return this.panel(_287,_288);
+}
+}
+_287=_287||{};
+return this.each(function(){
+var _28a=$.data(this,"window");
+if(_28a){
+$.extend(_28a.options,_287);
+}else{
+_28a=$.data(this,"window",{options:$.extend({},$.fn.window.defaults,$.fn.window.parseOptions(this),_287)});
+if(!_28a.options.inline){
+document.body.appendChild(this);
+}
+}
+_27d(this);
+_284(this);
+});
+};
+$.fn.window.methods={options:function(jq){
+var _28b=jq.panel("options");
+var _28c=$.data(jq[0],"window").options;
+return $.extend(_28c,{closed:_28b.closed,collapsed:_28b.collapsed,minimized:_28b.minimized,maximized:_28b.maximized});
+},window:function(jq){
+return $.data(jq[0],"window").window;
+},move:function(jq,_28d){
+return jq.each(function(){
+_26f(this,_28d);
+});
+},hcenter:function(jq){
+return jq.each(function(){
+_273(this,true);
+});
+},vcenter:function(jq){
+return jq.each(function(){
+_278(this,true);
+});
+},center:function(jq){
+return jq.each(function(){
+_273(this);
+_278(this);
+_26f(this);
+});
+}};
+$.fn.window.getMaskSize=function(_28e){
+var _28f=$(_28e).data("window");
+var _290=(_28f&&_28f.options.inline);
+return {width:(_290?"100%":$(document).width()),height:(_290?"100%":$(document).height())};
+};
+$.fn.window.parseOptions=function(_291){
+return $.extend({},$.fn.panel.parseOptions(_291),$.parser.parseOptions(_291,[{draggable:"boolean",resizable:"boolean",shadow:"boolean",modal:"boolean",inline:"boolean"}]));
+};
+$.fn.window.defaults=$.extend({},$.fn.panel.defaults,{zIndex:9000,draggable:true,resizable:true,shadow:true,modal:false,inline:false,title:"New Window",collapsible:true,minimizable:true,maximizable:true,closable:true,closed:false});
+})(jQuery);
+(function($){
+function _292(_293){
+var opts=$.data(_293,"dialog").options;
+opts.inited=false;
+$(_293).window($.extend({},opts,{onResize:function(w,h){
+if(opts.inited){
+_298(this);
+opts.onResize.call(this,w,h);
+}
+}}));
+var win=$(_293).window("window");
+if(opts.toolbar){
+if($.isArray(opts.toolbar)){
+$(_293).siblings("div.dialog-toolbar").remove();
+var _294=$("<div class=\"dialog-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").appendTo(win);
+var tr=_294.find("tr");
+for(var i=0;i<opts.toolbar.length;i++){
+var btn=opts.toolbar[i];
+if(btn=="-"){
+$("<td><div class=\"dialog-tool-separator\"></div></td>").appendTo(tr);
+}else{
+var td=$("<td></td>").appendTo(tr);
+var tool=$("<a href=\"javascript:void(0)\"></a>").appendTo(td);
+tool[0].onclick=eval(btn.handler||function(){
+});
+tool.linkbutton($.extend({},btn,{plain:true}));
+}
+}
+}else{
+$(opts.toolbar).addClass("dialog-toolbar").appendTo(win);
+$(opts.toolbar).show();
+}
+}else{
+$(_293).siblings("div.dialog-toolbar").remove();
+}
+if(opts.buttons){
+if($.isArray(opts.buttons)){
+$(_293).siblings("div.dialog-button").remove();
+var _295=$("<div class=\"dialog-button\"></div>").appendTo(win);
+for(var i=0;i<opts.buttons.length;i++){
+var p=opts.buttons[i];
+var _296=$("<a href=\"javascript:void(0)\"></a>").appendTo(_295);
+if(p.handler){
+_296[0].onclick=p.handler;
+}
+_296.linkbutton(p);
+}
+}else{
+$(opts.buttons).addClass("dialog-button").appendTo(win);
+$(opts.buttons).show();
+}
+}else{
+$(_293).siblings("div.dialog-button").remove();
+}
+opts.inited=true;
+var _297=opts.closed;
+win.show();
+$(_293).window("resize");
+if(_297){
+win.hide();
+}
+};
+function _298(_299,_29a){
+var t=$(_299);
+var opts=t.dialog("options");
+var _29b=opts.noheader;
+var tb=t.siblings(".dialog-toolbar");
+var bb=t.siblings(".dialog-button");
+tb.insertBefore(_299).css({position:"relative",borderTopWidth:(_29b?1:0),top:(_29b?tb.length:0)});
+bb.insertAfter(_299).css({position:"relative",top:-1});
+tb.add(bb)._outerWidth(t._outerWidth()).find(".easyui-fluid:visible").each(function(){
+$(this).triggerHandler("_resize");
+});
+var _29c=tb._outerHeight()+bb._outerHeight();
+if(!isNaN(parseInt(opts.height))){
+t._outerHeight(t._outerHeight()-_29c);
+}else{
+var _29d=t._size("min-height");
+if(_29d){
+t._size("min-height",_29d-_29c);
+}
+var _29e=t._size("max-height");
+if(_29e){
+t._size("max-height",_29e-_29c);
+}
+}
+var _29f=$.data(_299,"window").shadow;
+if(_29f){
+var cc=t.panel("panel");
+_29f.css({width:cc._outerWidth(),height:cc._outerHeight()});
+}
+};
+$.fn.dialog=function(_2a0,_2a1){
+if(typeof _2a0=="string"){
+var _2a2=$.fn.dialog.methods[_2a0];
+if(_2a2){
+return _2a2(this,_2a1);
+}else{
+return this.window(_2a0,_2a1);
+}
+}
+_2a0=_2a0||{};
+return this.each(function(){
+var _2a3=$.data(this,"dialog");
+if(_2a3){
+$.extend(_2a3.options,_2a0);
+}else{
+$.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),_2a0)});
+}
+_292(this);
+});
+};
+$.fn.dialog.methods={options:function(jq){
+var _2a4=$.data(jq[0],"dialog").options;
+var _2a5=jq.panel("options");
+$.extend(_2a4,{width:_2a5.width,height:_2a5.height,left:_2a5.left,top:_2a5.top,closed:_2a5.closed,collapsed:_2a5.collapsed,minimized:_2a5.minimized,maximized:_2a5.maximized});
+return _2a4;
+},dialog:function(jq){
+return jq.window("window");
+}};
+$.fn.dialog.parseOptions=function(_2a6){
+var t=$(_2a6);
+return $.extend({},$.fn.window.parseOptions(_2a6),$.parser.parseOptions(_2a6,["toolbar","buttons"]),{toolbar:(t.children(".dialog-toolbar").length?t.children(".dialog-toolbar").removeClass("dialog-toolbar"):undefined),buttons:(t.children(".dialog-button").length?t.children(".dialog-button").removeClass("dialog-button"):undefined)});
+};
+$.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null});
+})(jQuery);
+(function($){
+function _2a7(){
+$(document).unbind(".messager").bind("keydown.messager",function(e){
+if(e.keyCode==27){
+$("body").children("div.messager-window").children("div.messager-body").each(function(){
+$(this).dialog("close");
+});
+}else{
+if(e.keyCode==9){
+var win=$("body").children("div.messager-window");
+if(!win.length){
+return;
+}
+var _2a8=win.find(".messager-input,.messager-button .l-btn");
+for(var i=0;i<_2a8.length;i++){
+if($(_2a8[i]).is(":focus")){
+$(_2a8[i>=_2a8.length-1?0:i+1]).focus();
+return false;
+}
+}
+}
+}
+});
+};
+function _2a9(){
+$(document).unbind(".messager");
+};
+function _2aa(_2ab){
+var opts=$.extend({},$.messager.defaults,{modal:false,shadow:false,draggable:false,resizable:false,closed:true,style:{left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop},title:"",width:250,height:100,minHeight:0,showType:"slide",showSpeed:600,content:_2ab.msg,timeout:4000},_2ab);
+var dlg=$("<div class=\"messager-body\"></div>").appendTo("body");
+dlg.dialog($.extend({},opts,{noheader:(opts.title?false:true),openAnimation:(opts.showType),closeAnimation:(opts.showType=="show"?"hide":opts.showType),openDuration:opts.showSpeed,closeDuration:opts.showSpeed,onOpen:function(){
+dlg.dialog("dialog").hover(function(){
+if(opts.timer){
+clearTimeout(opts.timer);
+}
+},function(){
+_2ac();
+});
+_2ac();
+function _2ac(){
+if(opts.timeout>0){
+opts.timer=setTimeout(function(){
+if(dlg.length&&dlg.data("dialog")){
+dlg.dialog("close");
+}
+},opts.timeout);
+}
+};
+if(_2ab.onOpen){
+_2ab.onOpen.call(this);
+}else{
+opts.onOpen.call(this);
+}
+},onClose:function(){
+if(opts.timer){
+clearTimeout(opts.timer);
+}
+if(_2ab.onClose){
+_2ab.onClose.call(this);
+}else{
+opts.onClose.call(this);
+}
+dlg.dialog("destroy");
+}}));
+dlg.dialog("dialog").css(opts.style);
+dlg.dialog("open");
+return dlg;
+};
+function _2ad(_2ae){
+_2a7();
+var dlg=$("<div class=\"messager-body\"></div>").appendTo("body");
+dlg.dialog($.extend({},_2ae,{noheader:(_2ae.title?false:true),onClose:function(){
+_2a9();
+if(_2ae.onClose){
+_2ae.onClose.call(this);
+}
+setTimeout(function(){
+dlg.dialog("destroy");
+},100);
+}}));
+var win=dlg.dialog("dialog").addClass("messager-window");
+win.find(".dialog-button").addClass("messager-button").find("a:first").focus();
+return dlg;
+};
+function _2af(dlg,_2b0){
+dlg.dialog("close");
+dlg.dialog("options").fn(_2b0);
+};
+$.messager={show:function(_2b1){
+return _2aa(_2b1);
+},alert:function(_2b2,msg,icon,fn){
+var opts=typeof _2b2=="object"?_2b2:{title:_2b2,msg:msg,icon:icon,fn:fn};
+var cls=opts.icon?"messager-icon messager-"+opts.icon:"";
+opts=$.extend({},$.messager.defaults,{content:"<div class=\""+cls+"\"></div>"+"<div>"+opts.msg+"</div>"+"<div style=\"clear:both;\"/>"},opts);
+if(!opts.buttons){
+opts.buttons=[{text:opts.ok,onClick:function(){
+_2af(dlg);
+}}];
+}
+var dlg=_2ad(opts);
+return dlg;
+},confirm:function(_2b3,msg,fn){
+var opts=typeof _2b3=="object"?_2b3:{title:_2b3,msg:msg,fn:fn};
+opts=$.extend({},$.messager.defaults,{content:"<div class=\"messager-icon messager-question\"></div>"+"<div>"+opts.msg+"</div>"+"<div style=\"clear:both;\"/>"},opts);
+if(!opts.buttons){
+opts.buttons=[{text:opts.ok,onClick:function(){
+_2af(dlg,true);
+}},{text:opts.cancel,onClick:function(){
+_2af(dlg,false);
+}}];
+}
+var dlg=_2ad(opts);
+return dlg;
+},prompt:function(_2b4,msg,fn){
+var opts=typeof _2b4=="object"?_2b4:{title:_2b4,msg:msg,fn:fn};
+opts=$.extend({},$.messager.defaults,{content:"<div class=\"messager-icon messager-question\"></div>"+"<div>"+opts.msg+"</div>"+"<br/>"+"<div style=\"clear:both;\"/>"+"<div><input class=\"messager-input\" type=\"text\"/></div>"},opts);
+if(!opts.buttons){
+opts.buttons=[{text:opts.ok,onClick:function(){
+_2af(dlg,dlg.find(".messager-input").val());
+}},{text:opts.cancel,onClick:function(){
+_2af(dlg);
+}}];
+}
+var dlg=_2ad(opts);
+dlg.find("input.messager-input").focus();
+return dlg;
+},progress:function(_2b5){
+var _2b6={bar:function(){
+return $("body>div.messager-window").find("div.messager-p-bar");
+},close:function(){
+var dlg=$("body>div.messager-window>div.messager-body:has(div.messager-progress)");
+if(dlg.length){
+dlg.dialog("close");
+}
+}};
+if(typeof _2b5=="string"){
+var _2b7=_2b6[_2b5];
+return _2b7();
+}
+_2b5=_2b5||{};
+var opts=$.extend({},{title:"",minHeight:0,content:undefined,msg:"",text:undefined,interval:300},_2b5);
+var dlg=_2ad($.extend({},$.messager.defaults,{content:"<div class=\"messager-progress\"><div class=\"messager-p-msg\">"+opts.msg+"</div><div class=\"messager-p-bar\"></div></div>",closable:false,doSize:false},opts,{onClose:function(){
+if(this.timer){
+clearInterval(this.timer);
+}
+if(_2b5.onClose){
+_2b5.onClose.call(this);
+}else{
+$.messager.defaults.onClose.call(this);
+}
+}}));
+var bar=dlg.find("div.messager-p-bar");
+bar.progressbar({text:opts.text});
+dlg.dialog("resize");
+if(opts.interval){
+dlg[0].timer=setInterval(function(){
+var v=bar.progressbar("getValue");
+v+=10;
+if(v>100){
+v=0;
+}
+bar.progressbar("setValue",v);
+},opts.interval);
+}
+return dlg;
+}};
+$.messager.defaults=$.extend({},$.fn.dialog.defaults,{ok:"Ok",cancel:"Cancel",width:300,height:"auto",minHeight:150,modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,fn:function(){
+}});
+})(jQuery);
+(function($){
+function _2b8(_2b9,_2ba){
+var _2bb=$.data(_2b9,"accordion");
+var opts=_2bb.options;
+var _2bc=_2bb.panels;
+var cc=$(_2b9);
+if(_2ba){
+$.extend(opts,{width:_2ba.width,height:_2ba.height});
+}
+cc._size(opts);
+var _2bd=0;
+var _2be="auto";
+var _2bf=cc.find(">.panel>.accordion-header");
+if(_2bf.length){
+_2bd=$(_2bf[0]).css("height","")._outerHeight();
+}
+if(!isNaN(parseInt(opts.height))){
+_2be=cc.height()-_2bd*_2bf.length;
+}
+_2c0(true,_2be-_2c0(false)+1);
+function _2c0(_2c1,_2c2){
+var _2c3=0;
+for(var i=0;i<_2bc.length;i++){
+var p=_2bc[i];
+var h=p.panel("header")._outerHeight(_2bd);
+if(p.panel("options").collapsible==_2c1){
+var _2c4=isNaN(_2c2)?undefined:(_2c2+_2bd*h.length);
+p.panel("resize",{width:cc.width(),height:(_2c1?_2c4:undefined)});
+_2c3+=p.panel("panel").outerHeight()-_2bd*h.length;
+}
+}
+return _2c3;
+};
+};
+function _2c5(_2c6,_2c7,_2c8,all){
+var _2c9=$.data(_2c6,"accordion").panels;
+var pp=[];
+for(var i=0;i<_2c9.length;i++){
+var p=_2c9[i];
+if(_2c7){
+if(p.panel("options")[_2c7]==_2c8){
+pp.push(p);
+}
+}else{
+if(p[0]==$(_2c8)[0]){
+return i;
+}
+}
+}
+if(_2c7){
+return all?pp:(pp.length?pp[0]:null);
+}else{
+return -1;
+}
+};
+function _2ca(_2cb){
+return _2c5(_2cb,"collapsed",false,true);
+};
+function _2cc(_2cd){
+var pp=_2ca(_2cd);
+return pp.length?pp[0]:null;
+};
+function _2ce(_2cf,_2d0){
+return _2c5(_2cf,null,_2d0);
+};
+function _2d1(_2d2,_2d3){
+var _2d4=$.data(_2d2,"accordion").panels;
+if(typeof _2d3=="number"){
+if(_2d3<0||_2d3>=_2d4.length){
+return null;
+}else{
+return _2d4[_2d3];
+}
+}
+return _2c5(_2d2,"title",_2d3);
+};
+function _2d5(_2d6){
+var opts=$.data(_2d6,"accordion").options;
+var cc=$(_2d6);
+if(opts.border){
+cc.removeClass("accordion-noborder");
+}else{
+cc.addClass("accordion-noborder");
+}
+};
+function init(_2d7){
+var _2d8=$.data(_2d7,"accordion");
+var cc=$(_2d7);
+cc.addClass("accordion");
+_2d8.panels=[];
+cc.children("div").each(function(){
+var opts=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)});
+var pp=$(this);
+_2d8.panels.push(pp);
+_2da(_2d7,pp,opts);
+});
+cc.bind("_resize",function(e,_2d9){
+if($(this).hasClass("easyui-fluid")||_2d9){
+_2b8(_2d7);
+}
+return false;
+});
+};
+function _2da(_2db,pp,_2dc){
+var opts=$.data(_2db,"accordion").options;
+pp.panel($.extend({},{collapsible:true,minimizable:false,maximizable:false,closable:false,doSize:false,collapsed:true,headerCls:"accordion-header",bodyCls:"accordion-body"},_2dc,{onBeforeExpand:function(){
+if(_2dc.onBeforeExpand){
+if(_2dc.onBeforeExpand.call(this)==false){
+return false;
+}
+}
+if(!opts.multiple){
+var all=$.grep(_2ca(_2db),function(p){
+return p.panel("options").collapsible;
+});
+for(var i=0;i<all.length;i++){
+_2e4(_2db,_2ce(_2db,all[i]));
+}
+}
+var _2dd=$(this).panel("header");
+_2dd.addClass("accordion-header-selected");
+_2dd.find(".accordion-collapse").removeClass("accordion-expand");
+},onExpand:function(){
+if(_2dc.onExpand){
+_2dc.onExpand.call(this);
+}
+opts.onSelect.call(_2db,$(this).panel("options").title,_2ce(_2db,this));
+},onBeforeCollapse:function(){
+if(_2dc.onBeforeCollapse){
+if(_2dc.onBeforeCollapse.call(this)==false){
+return false;
+}
+}
+var _2de=$(this).panel("header");
+_2de.removeClass("accordion-header-selected");
+_2de.find(".accordion-collapse").addClass("accordion-expand");
+},onCollapse:function(){
+if(_2dc.onCollapse){
+_2dc.onCollapse.call(this);
+}
+opts.onUnselect.call(_2db,$(this).panel("options").title,_2ce(_2db,this));
+}}));
+var _2df=pp.panel("header");
+var tool=_2df.children("div.panel-tool");
+tool.children("a.panel-tool-collapse").hide();
+var t=$("<a href=\"javascript:void(0)\"></a>").addClass("accordion-collapse accordion-expand").appendTo(tool);
+t.bind("click",function(){
+_2e0(pp);
+return false;
+});
+pp.panel("options").collapsible?t.show():t.hide();
+_2df.click(function(){
+_2e0(pp);
+return false;
+});
+function _2e0(p){
+var _2e1=p.panel("options");
+if(_2e1.collapsible){
+var _2e2=_2ce(_2db,p);
+if(_2e1.collapsed){
+_2e3(_2db,_2e2);
+}else{
+_2e4(_2db,_2e2);
+}
+}
+};
+};
+function _2e3(_2e5,_2e6){
+var p=_2d1(_2e5,_2e6);
+if(!p){
+return;
+}
+_2e7(_2e5);
+var opts=$.data(_2e5,"accordion").options;
+p.panel("expand",opts.animate);
+};
+function _2e4(_2e8,_2e9){
+var p=_2d1(_2e8,_2e9);
+if(!p){
+return;
+}
+_2e7(_2e8);
+var opts=$.data(_2e8,"accordion").options;
+p.panel("collapse",opts.animate);
+};
+function _2ea(_2eb){
+var opts=$.data(_2eb,"accordion").options;
+var p=_2c5(_2eb,"selected",true);
+if(p){
+_2ec(_2ce(_2eb,p));
+}else{
+_2ec(opts.selected);
+}
+function _2ec(_2ed){
+var _2ee=opts.animate;
+opts.animate=false;
+_2e3(_2eb,_2ed);
+opts.animate=_2ee;
+};
+};
+function _2e7(_2ef){
+var _2f0=$.data(_2ef,"accordion").panels;
+for(var i=0;i<_2f0.length;i++){
+_2f0[i].stop(true,true);
+}
+};
+function add(_2f1,_2f2){
+var _2f3=$.data(_2f1,"accordion");
+var opts=_2f3.options;
+var _2f4=_2f3.panels;
+if(_2f2.selected==undefined){
+_2f2.selected=true;
+}
+_2e7(_2f1);
+var pp=$("<div></div>").appendTo(_2f1);
+_2f4.push(pp);
+_2da(_2f1,pp,_2f2);
+_2b8(_2f1);
+opts.onAdd.call(_2f1,_2f2.title,_2f4.length-1);
+if(_2f2.selected){
+_2e3(_2f1,_2f4.length-1);
+}
+};
+function _2f5(_2f6,_2f7){
+var _2f8=$.data(_2f6,"accordion");
+var opts=_2f8.options;
+var _2f9=_2f8.panels;
+_2e7(_2f6);
+var _2fa=_2d1(_2f6,_2f7);
+var _2fb=_2fa.panel("options").title;
+var _2fc=_2ce(_2f6,_2fa);
+if(!_2fa){
+return;
+}
+if(opts.onBeforeRemove.call(_2f6,_2fb,_2fc)==false){
+return;
+}
+_2f9.splice(_2fc,1);
+_2fa.panel("destroy");
+if(_2f9.length){
+_2b8(_2f6);
+var curr=_2cc(_2f6);
+if(!curr){
+_2e3(_2f6,0);
+}
+}
+opts.onRemove.call(_2f6,_2fb,_2fc);
+};
+$.fn.accordion=function(_2fd,_2fe){
+if(typeof _2fd=="string"){
+return $.fn.accordion.methods[_2fd](this,_2fe);
+}
+_2fd=_2fd||{};
+return this.each(function(){
+var _2ff=$.data(this,"accordion");
+if(_2ff){
+$.extend(_2ff.options,_2fd);
+}else{
+$.data(this,"accordion",{options:$.extend({},$.fn.accordion.defaults,$.fn.accordion.parseOptions(this),_2fd),accordion:$(this).addClass("accordion"),panels:[]});
+init(this);
+}
+_2d5(this);
+_2b8(this);
+_2ea(this);
+});
+};
+$.fn.accordion.methods={options:function(jq){
+return $.data(jq[0],"accordion").options;
+},panels:function(jq){
+return $.data(jq[0],"accordion").panels;
+},resize:function(jq,_300){
+return jq.each(function(){
+_2b8(this,_300);
+});
+},getSelections:function(jq){
+return _2ca(jq[0]);
+},getSelected:function(jq){
+return _2cc(jq[0]);
+},getPanel:function(jq,_301){
+return _2d1(jq[0],_301);
+},getPanelIndex:function(jq,_302){
+return _2ce(jq[0],_302);
+},select:function(jq,_303){
+return jq.each(function(){
+_2e3(this,_303);
+});
+},unselect:function(jq,_304){
+return jq.each(function(){
+_2e4(this,_304);
+});
+},add:function(jq,_305){
+return jq.each(function(){
+add(this,_305);
+});
+},remove:function(jq,_306){
+return jq.each(function(){
+_2f5(this,_306);
+});
+}};
+$.fn.accordion.parseOptions=function(_307){
+var t=$(_307);
+return $.extend({},$.parser.parseOptions(_307,["width","height",{fit:"boolean",border:"boolean",animate:"boolean",multiple:"boolean",selected:"number"}]));
+};
+$.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,multiple:false,selected:0,onSelect:function(_308,_309){
+},onUnselect:function(_30a,_30b){
+},onAdd:function(_30c,_30d){
+},onBeforeRemove:function(_30e,_30f){
+},onRemove:function(_310,_311){
+}};
+})(jQuery);
+(function($){
+function _312(c){
+var w=0;
+$(c).children().each(function(){
+w+=$(this).outerWidth(true);
+});
+return w;
+};
+function _313(_314){
+var opts=$.data(_314,"tabs").options;
+if(opts.tabPosition=="left"||opts.tabPosition=="right"||!opts.showHeader){
+return;
+}
+var _315=$(_314).children("div.tabs-header");
+var tool=_315.children("div.tabs-tool:not(.tabs-tool-hidden)");
+var _316=_315.children("div.tabs-scroller-left");
+var _317=_315.children("div.tabs-scroller-right");
+var wrap=_315.children("div.tabs-wrap");
+var _318=_315.outerHeight();
+if(opts.plain){
+_318-=_318-_315.height();
+}
+tool._outerHeight(_318);
+var _319=_312(_315.find("ul.tabs"));
+var _31a=_315.width()-tool._outerWidth();
+if(_319>_31a){
+_316.add(_317).show()._outerHeight(_318);
+if(opts.toolPosition=="left"){
+tool.css({left:_316.outerWidth(),right:""});
+wrap.css({marginLeft:_316.outerWidth()+tool._outerWidth(),marginRight:_317._outerWidth(),width:_31a-_316.outerWidth()-_317.outerWidth()});
+}else{
+tool.css({left:"",right:_317.outerWidth()});
+wrap.css({marginLeft:_316.outerWidth(),marginRight:_317.outerWidth()+tool._outerWidth(),width:_31a-_316.outerWidth()-_317.outerWidth()});
+}
+}else{
+_316.add(_317).hide();
+if(opts.toolPosition=="left"){
+tool.css({left:0,right:""});
+wrap.css({marginLeft:tool._outerWidth(),marginRight:0,width:_31a});
+}else{
+tool.css({left:"",right:0});
+wrap.css({marginLeft:0,marginRight:tool._outerWidth(),width:_31a});
+}
+}
+};
+function _31b(_31c){
+var opts=$.data(_31c,"tabs").options;
+var _31d=$(_31c).children("div.tabs-header");
+if(opts.tools){
+if(typeof opts.tools=="string"){
+$(opts.tools).addClass("tabs-tool").appendTo(_31d);
+$(opts.tools).show();
+}else{
+_31d.children("div.tabs-tool").remove();
+var _31e=$("<div class=\"tabs-tool\"><table cellspacing=\"0\" cellpadding=\"0\" style=\"height:100%\"><tr></tr></table></div>").appendTo(_31d);
+var tr=_31e.find("tr");
+for(var i=0;i<opts.tools.length;i++){
+var td=$("<td></td>").appendTo(tr);
+var tool=$("<a href=\"javascript:void(0);\"></a>").appendTo(td);
+tool[0].onclick=eval(opts.tools[i].handler||function(){
+});
+tool.linkbutton($.extend({},opts.tools[i],{plain:true}));
+}
+}
+}else{
+_31d.children("div.tabs-tool").remove();
+}
+};
+function _31f(_320,_321){
+var _322=$.data(_320,"tabs");
+var opts=_322.options;
+var cc=$(_320);
+if(!opts.doSize){
+return;
+}
+if(_321){
+$.extend(opts,{width:_321.width,height:_321.height});
+}
+cc._size(opts);
+var _323=cc.children("div.tabs-header");
+var _324=cc.children("div.tabs-panels");
+var wrap=_323.find("div.tabs-wrap");
+var ul=wrap.find(".tabs");
+ul.children("li").removeClass("tabs-first tabs-last");
+ul.children("li:first").addClass("tabs-first");
+ul.children("li:last").addClass("tabs-last");
+if(opts.tabPosition=="left"||opts.tabPosition=="right"){
+_323._outerWidth(opts.showHeader?opts.headerWidth:0);
+_324._outerWidth(cc.width()-_323.outerWidth());
+_323.add(_324)._size("height",isNaN(parseInt(opts.height))?"":cc.height());
+wrap._outerWidth(_323.width());
+ul._outerWidth(wrap.width()).css("height","");
+}else{
+_323.children("div.tabs-scroller-left,div.tabs-scroller-right,div.tabs-tool:not(.tabs-tool-hidden)").css("display",opts.showHeader?"block":"none");
+_323._outerWidth(cc.width()).css("height","");
+if(opts.showHeader){
+_323.css("background-color","");
+wrap.css("height","");
+}else{
+_323.css("background-color","transparent");
+_323._outerHeight(0);
+wrap._outerHeight(0);
+}
+ul._outerHeight(opts.tabHeight).css("width","");
+ul._outerHeight(ul.outerHeight()-ul.height()-1+opts.tabHeight).css("width","");
+_324._size("height",isNaN(parseInt(opts.height))?"":(cc.height()-_323.outerHeight()));
+_324._size("width",cc.width());
+}
+if(_322.tabs.length){
+var d1=ul.outerWidth(true)-ul.width();
+var li=ul.children("li:first");
+var d2=li.outerWidth(true)-li.width();
+var _325=_323.width()-_323.children(".tabs-tool:not(.tabs-tool-hidden)")._outerWidth();
+var _326=Math.floor((_325-d1-d2*_322.tabs.length)/_322.tabs.length);
+$.map(_322.tabs,function(p){
+_327(p,(opts.justified&&$.inArray(opts.tabPosition,["top","bottom"])>=0)?_326:undefined);
+});
+if(opts.justified&&$.inArray(opts.tabPosition,["top","bottom"])>=0){
+var _328=_325-d1-_312(ul);
+_327(_322.tabs[_322.tabs.length-1],_326+_328);
+}
+}
+_313(_320);
+function _327(p,_329){
+var _32a=p.panel("options");
+var p_t=_32a.tab.find("a.tabs-inner");
+var _329=_329?_329:(parseInt(_32a.tabWidth||opts.tabWidth||undefined));
+if(_329){
+p_t._outerWidth(_329);
+}else{
+p_t.css("width","");
+}
+p_t._outerHeight(opts.tabHeight);
+p_t.css("lineHeight",p_t.height()+"px");
+p_t.find(".easyui-fluid:visible").triggerHandler("_resize");
+};
+};
+function _32b(_32c){
+var opts=$.data(_32c,"tabs").options;
+var tab=_32d(_32c);
+if(tab){
+var _32e=$(_32c).children("div.tabs-panels");
+var _32f=opts.width=="auto"?"auto":_32e.width();
+var _330=opts.height=="auto"?"auto":_32e.height();
+tab.panel("resize",{width:_32f,height:_330});
+}
+};
+function _331(_332){
+var tabs=$.data(_332,"tabs").tabs;
+var cc=$(_332).addClass("tabs-container");
+var _333=$("<div class=\"tabs-panels\"></div>").insertBefore(cc);
+cc.children("div").each(function(){
+_333[0].appendChild(this);
+});
+cc[0].appendChild(_333[0]);
+$("<div class=\"tabs-header\">"+"<div class=\"tabs-scroller-left\"></div>"+"<div class=\"tabs-scroller-right\"></div>"+"<div class=\"tabs-wrap\">"+"<ul class=\"tabs\"></ul>"+"</div>"+"</div>").prependTo(_332);
+cc.children("div.tabs-panels").children("div").each(function(i){
+var opts=$.extend({},$.parser.parseOptions(this),{disabled:($(this).attr("disabled")?true:undefined),selected:($(this).attr("selected")?true:undefined)});
+_340(_332,opts,$(this));
+});
+cc.children("div.tabs-header").find(".tabs-scroller-left, .tabs-scroller-right").hover(function(){
+$(this).addClass("tabs-scroller-over");
+},function(){
+$(this).removeClass("tabs-scroller-over");
+});
+cc.bind("_resize",function(e,_334){
+if($(this).hasClass("easyui-fluid")||_334){
+_31f(_332);
+_32b(_332);
+}
+return false;
+});
+};
+function _335(_336){
+var _337=$.data(_336,"tabs");
+var opts=_337.options;
+$(_336).children("div.tabs-header").unbind().bind("click",function(e){
+if($(e.target).hasClass("tabs-scroller-left")){
+$(_336).tabs("scrollBy",-opts.scrollIncrement);
+}else{
+if($(e.target).hasClass("tabs-scroller-right")){
+$(_336).tabs("scrollBy",opts.scrollIncrement);
+}else{
+var li=$(e.target).closest("li");
+if(li.hasClass("tabs-disabled")){
+return false;
+}
+var a=$(e.target).closest("a.tabs-close");
+if(a.length){
+_359(_336,_338(li));
+}else{
+if(li.length){
+var _339=_338(li);
+var _33a=_337.tabs[_339].panel("options");
+if(_33a.collapsible){
+_33a.closed?_350(_336,_339):_36d(_336,_339);
+}else{
+_350(_336,_339);
+}
+}
+}
+return false;
+}
+}
+}).bind("contextmenu",function(e){
+var li=$(e.target).closest("li");
+if(li.hasClass("tabs-disabled")){
+return;
+}
+if(li.length){
+opts.onContextMenu.call(_336,e,li.find("span.tabs-title").html(),_338(li));
+}
+});
+function _338(li){
+var _33b=0;
+li.parent().children("li").each(function(i){
+if(li[0]==this){
+_33b=i;
+return false;
+}
+});
+return _33b;
+};
+};
+function _33c(_33d){
+var opts=$.data(_33d,"tabs").options;
+var _33e=$(_33d).children("div.tabs-header");
+var _33f=$(_33d).children("div.tabs-panels");
+_33e.removeClass("tabs-header-top tabs-header-bottom tabs-header-left tabs-header-right");
+_33f.removeClass("tabs-panels-top tabs-panels-bottom tabs-panels-left tabs-panels-right");
+if(opts.tabPosition=="top"){
+_33e.insertBefore(_33f);
+}else{
+if(opts.tabPosition=="bottom"){
+_33e.insertAfter(_33f);
+_33e.addClass("tabs-header-bottom");
+_33f.addClass("tabs-panels-top");
+}else{
+if(opts.tabPosition=="left"){
+_33e.addClass("tabs-header-left");
+_33f.addClass("tabs-panels-right");
+}else{
+if(opts.tabPosition=="right"){
+_33e.addClass("tabs-header-right");
+_33f.addClass("tabs-panels-left");
+}
+}
+}
+}
+if(opts.plain==true){
+_33e.addClass("tabs-header-plain");
+}else{
+_33e.removeClass("tabs-header-plain");
+}
+_33e.removeClass("tabs-header-narrow").addClass(opts.narrow?"tabs-header-narrow":"");
+var tabs=_33e.find(".tabs");
+tabs.removeClass("tabs-pill").addClass(opts.pill?"tabs-pill":"");
+tabs.removeClass("tabs-narrow").addClass(opts.narrow?"tabs-narrow":"");
+tabs.removeClass("tabs-justified").addClass(opts.justified?"tabs-justified":"");
+if(opts.border==true){
+_33e.removeClass("tabs-header-noborder");
+_33f.removeClass("tabs-panels-noborder");
+}else{
+_33e.addClass("tabs-header-noborder");
+_33f.addClass("tabs-panels-noborder");
+}
+opts.doSize=true;
+};
+function _340(_341,_342,pp){
+_342=_342||{};
+var _343=$.data(_341,"tabs");
+var tabs=_343.tabs;
+if(_342.index==undefined||_342.index>tabs.length){
+_342.index=tabs.length;
+}
+if(_342.index<0){
+_342.index=0;
+}
+var ul=$(_341).children("div.tabs-header").find("ul.tabs");
+var _344=$(_341).children("div.tabs-panels");
+var tab=$("<li>"+"<a href=\"javascript:void(0)\" class=\"tabs-inner\">"+"<span class=\"tabs-title\"></span>"+"<span class=\"tabs-icon\"></span>"+"</a>"+"</li>");
+if(!pp){
+pp=$("<div></div>");
+}
+if(_342.index>=tabs.length){
+tab.appendTo(ul);
+pp.appendTo(_344);
+tabs.push(pp);
+}else{
+tab.insertBefore(ul.children("li:eq("+_342.index+")"));
+pp.insertBefore(_344.children("div.panel:eq("+_342.index+")"));
+tabs.splice(_342.index,0,pp);
+}
+pp.panel($.extend({},_342,{tab:tab,border:false,noheader:true,closed:true,doSize:false,iconCls:(_342.icon?_342.icon:undefined),onLoad:function(){
+if(_342.onLoad){
+_342.onLoad.call(this,arguments);
+}
+_343.options.onLoad.call(_341,$(this));
+},onBeforeOpen:function(){
+if(_342.onBeforeOpen){
+if(_342.onBeforeOpen.call(this)==false){
+return false;
+}
+}
+var p=$(_341).tabs("getSelected");
+if(p){
+if(p[0]!=this){
+$(_341).tabs("unselect",_34b(_341,p));
+p=$(_341).tabs("getSelected");
+if(p){
+return false;
+}
+}else{
+_32b(_341);
+return false;
+}
+}
+var _345=$(this).panel("options");
+_345.tab.addClass("tabs-selected");
+var wrap=$(_341).find(">div.tabs-header>div.tabs-wrap");
+var left=_345.tab.position().left;
+var _346=left+_345.tab.outerWidth();
+if(left<0||_346>wrap.width()){
+var _347=left-(wrap.width()-_345.tab.width())/2;
+$(_341).tabs("scrollBy",_347);
+}else{
+$(_341).tabs("scrollBy",0);
+}
+var _348=$(this).panel("panel");
+_348.css("display","block");
+_32b(_341);
+_348.css("display","none");
+},onOpen:function(){
+if(_342.onOpen){
+_342.onOpen.call(this);
+}
+var _349=$(this).panel("options");
+_343.selectHis.push(_349.title);
+_343.options.onSelect.call(_341,_349.title,_34b(_341,this));
+},onBeforeClose:function(){
+if(_342.onBeforeClose){
+if(_342.onBeforeClose.call(this)==false){
+return false;
+}
+}
+$(this).panel("options").tab.removeClass("tabs-selected");
+},onClose:function(){
+if(_342.onClose){
+_342.onClose.call(this);
+}
+var _34a=$(this).panel("options");
+_343.options.onUnselect.call(_341,_34a.title,_34b(_341,this));
+}}));
+$(_341).tabs("update",{tab:pp,options:pp.panel("options"),type:"header"});
+};
+function _34c(_34d,_34e){
+var _34f=$.data(_34d,"tabs");
+var opts=_34f.options;
+if(_34e.selected==undefined){
+_34e.selected=true;
+}
+_340(_34d,_34e);
+opts.onAdd.call(_34d,_34e.title,_34e.index);
+if(_34e.selected){
+_350(_34d,_34e.index);
+}
+};
+function _351(_352,_353){
+_353.type=_353.type||"all";
+var _354=$.data(_352,"tabs").selectHis;
+var pp=_353.tab;
+var opts=pp.panel("options");
+var _355=opts.title;
+$.extend(opts,_353.options,{iconCls:(_353.options.icon?_353.options.icon:undefined)});
+if(_353.type=="all"||_353.type=="body"){
+pp.panel();
+}
+if(_353.type=="all"||_353.type=="header"){
+var tab=opts.tab;
+if(opts.header){
+tab.find(".tabs-inner").html($(opts.header));
+}else{
+var _356=tab.find("span.tabs-title");
+var _357=tab.find("span.tabs-icon");
+_356.html(opts.title);
+_357.attr("class","tabs-icon");
+tab.find("a.tabs-close").remove();
+if(opts.closable){
+_356.addClass("tabs-closable");
+$("<a href=\"javascript:void(0)\" class=\"tabs-close\"></a>").appendTo(tab);
+}else{
+_356.removeClass("tabs-closable");
+}
+if(opts.iconCls){
+_356.addClass("tabs-with-icon");
+_357.addClass(opts.iconCls);
+}else{
+_356.removeClass("tabs-with-icon");
+}
+if(opts.tools){
+var _358=tab.find("span.tabs-p-tool");
+if(!_358.length){
+var _358=$("<span class=\"tabs-p-tool\"></span>").insertAfter(tab.find("a.tabs-inner"));
+}
+if($.isArray(opts.tools)){
+_358.empty();
+for(var i=0;i<opts.tools.length;i++){
+var t=$("<a href=\"javascript:void(0)\"></a>").appendTo(_358);
+t.addClass(opts.tools[i].iconCls);
+if(opts.tools[i].handler){
+t.bind("click",{handler:opts.tools[i].handler},function(e){
+if($(this).parents("li").hasClass("tabs-disabled")){
+return;
+}
+e.data.handler.call(this);
+});
+}
+}
+}else{
+$(opts.tools).children().appendTo(_358);
+}
+var pr=_358.children().length*12;
+if(opts.closable){
+pr+=8;
+}else{
+pr-=3;
+_358.css("right","5px");
+}
+_356.css("padding-right",pr+"px");
+}else{
+tab.find("span.tabs-p-tool").remove();
+_356.css("padding-right","");
+}
+}
+if(_355!=opts.title){
+for(var i=0;i<_354.length;i++){
+if(_354[i]==_355){
+_354[i]=opts.title;
+}
+}
+}
+}
+if(opts.disabled){
+opts.tab.addClass("tabs-disabled");
+}else{
+opts.tab.removeClass("tabs-disabled");
+}
+_31f(_352);
+$.data(_352,"tabs").options.onUpdate.call(_352,opts.title,_34b(_352,pp));
+};
+function _359(_35a,_35b){
+var opts=$.data(_35a,"tabs").options;
+var tabs=$.data(_35a,"tabs").tabs;
+var _35c=$.data(_35a,"tabs").selectHis;
+if(!_35d(_35a,_35b)){
+return;
+}
+var tab=_35e(_35a,_35b);
+var _35f=tab.panel("options").title;
+var _360=_34b(_35a,tab);
+if(opts.onBeforeClose.call(_35a,_35f,_360)==false){
+return;
+}
+var tab=_35e(_35a,_35b,true);
+tab.panel("options").tab.remove();
+tab.panel("destroy");
+opts.onClose.call(_35a,_35f,_360);
+_31f(_35a);
+for(var i=0;i<_35c.length;i++){
+if(_35c[i]==_35f){
+_35c.splice(i,1);
+i--;
+}
+}
+var _361=_35c.pop();
+if(_361){
+_350(_35a,_361);
+}else{
+if(tabs.length){
+_350(_35a,0);
+}
+}
+};
+function _35e(_362,_363,_364){
+var tabs=$.data(_362,"tabs").tabs;
+if(typeof _363=="number"){
+if(_363<0||_363>=tabs.length){
+return null;
+}else{
+var tab=tabs[_363];
+if(_364){
+tabs.splice(_363,1);
+}
+return tab;
+}
+}
+for(var i=0;i<tabs.length;i++){
+var tab=tabs[i];
+if(tab.panel("options").title==_363){
+if(_364){
+tabs.splice(i,1);
+}
+return tab;
+}
+}
+return null;
+};
+function _34b(_365,tab){
+var tabs=$.data(_365,"tabs").tabs;
+for(var i=0;i<tabs.length;i++){
+if(tabs[i][0]==$(tab)[0]){
+return i;
+}
+}
+return -1;
+};
+function _32d(_366){
+var tabs=$.data(_366,"tabs").tabs;
+for(var i=0;i<tabs.length;i++){
+var tab=tabs[i];
+if(tab.panel("options").tab.hasClass("tabs-selected")){
+return tab;
+}
+}
+return null;
+};
+function _367(_368){
+var _369=$.data(_368,"tabs");
+var tabs=_369.tabs;
+for(var i=0;i<tabs.length;i++){
+var opts=tabs[i].panel("options");
+if(opts.selected&&!opts.disabled){
+_350(_368,i);
+return;
+}
+}
+_350(_368,_369.options.selected);
+};
+function _350(_36a,_36b){
+var p=_35e(_36a,_36b);
+if(p&&!p.is(":visible")){
+_36c(_36a);
+if(!p.panel("options").disabled){
+p.panel("open");
+}
+}
+};
+function _36d(_36e,_36f){
+var p=_35e(_36e,_36f);
+if(p&&p.is(":visible")){
+_36c(_36e);
+p.panel("close");
+}
+};
+function _36c(_370){
+$(_370).children("div.tabs-panels").each(function(){
+$(this).stop(true,true);
+});
+};
+function _35d(_371,_372){
+return _35e(_371,_372)!=null;
+};
+function _373(_374,_375){
+var opts=$.data(_374,"tabs").options;
+opts.showHeader=_375;
+$(_374).tabs("resize");
+};
+function _376(_377,_378){
+var tool=$(_377).find(">.tabs-header>.tabs-tool");
+if(_378){
+tool.removeClass("tabs-tool-hidden").show();
+}else{
+tool.addClass("tabs-tool-hidden").hide();
+}
+$(_377).tabs("resize").tabs("scrollBy",0);
+};
+$.fn.tabs=function(_379,_37a){
+if(typeof _379=="string"){
+return $.fn.tabs.methods[_379](this,_37a);
+}
+_379=_379||{};
+return this.each(function(){
+var _37b=$.data(this,"tabs");
+if(_37b){
+$.extend(_37b.options,_379);
+}else{
+$.data(this,"tabs",{options:$.extend({},$.fn.tabs.defaults,$.fn.tabs.parseOptions(this),_379),tabs:[],selectHis:[]});
+_331(this);
+}
+_31b(this);
+_33c(this);
+_31f(this);
+_335(this);
+_367(this);
+});
+};
+$.fn.tabs.methods={options:function(jq){
+var cc=jq[0];
+var opts=$.data(cc,"tabs").options;
+var s=_32d(cc);
+opts.selected=s?_34b(cc,s):-1;
+return opts;
+},tabs:function(jq){
+return $.data(jq[0],"tabs").tabs;
+},resize:function(jq,_37c){
+return jq.each(function(){
+_31f(this,_37c);
+_32b(this);
+});
+},add:function(jq,_37d){
+return jq.each(function(){
+_34c(this,_37d);
+});
+},close:function(jq,_37e){
+return jq.each(function(){
+_359(this,_37e);
+});
+},getTab:function(jq,_37f){
+return _35e(jq[0],_37f);
+},getTabIndex:function(jq,tab){
+return _34b(jq[0],tab);
+},getSelected:function(jq){
+return _32d(jq[0]);
+},select:function(jq,_380){
+return jq.each(function(){
+_350(this,_380);
+});
+},unselect:function(jq,_381){
+return jq.each(function(){
+_36d(this,_381);
+});
+},exists:function(jq,_382){
+return _35d(jq[0],_382);
+},update:function(jq,_383){
+return jq.each(function(){
+_351(this,_383);
+});
+},enableTab:function(jq,_384){
+return jq.each(function(){
+var opts=$(this).tabs("getTab",_384).panel("options");
+opts.tab.removeClass("tabs-disabled");
+opts.disabled=false;
+});
+},disableTab:function(jq,_385){
+return jq.each(function(){
+var opts=$(this).tabs("getTab",_385).panel("options");
+opts.tab.addClass("tabs-disabled");
+opts.disabled=true;
+});
+},showHeader:function(jq){
+return jq.each(function(){
+_373(this,true);
+});
+},hideHeader:function(jq){
+return jq.each(function(){
+_373(this,false);
+});
+},showTool:function(jq){
+return jq.each(function(){
+_376(this,true);
+});
+},hideTool:function(jq){
+return jq.each(function(){
+_376(this,false);
+});
+},scrollBy:function(jq,_386){
+return jq.each(function(){
+var opts=$(this).tabs("options");
+var wrap=$(this).find(">div.tabs-header>div.tabs-wrap");
+var pos=Math.min(wrap._scrollLeft()+_386,_387());
+wrap.animate({scrollLeft:pos},opts.scrollDuration);
+function _387(){
+var w=0;
+var ul=wrap.children("ul");
+ul.children("li").each(function(){
+w+=$(this).outerWidth(true);
+});
+return w-wrap.width()+(ul.outerWidth()-ul.width());
+};
+});
+}};
+$.fn.tabs.parseOptions=function(_388){
+return $.extend({},$.parser.parseOptions(_388,["tools","toolPosition","tabPosition",{fit:"boolean",border:"boolean",plain:"boolean"},{headerWidth:"number",tabWidth:"number",tabHeight:"number",selected:"number"},{showHeader:"boolean",justified:"boolean",narrow:"boolean",pill:"boolean"}]));
+};
+$.fn.tabs.defaults={width:"auto",height:"auto",headerWidth:150,tabWidth:"auto",tabHeight:27,selected:0,showHeader:true,plain:false,fit:false,border:true,justified:false,narrow:false,pill:false,tools:null,toolPosition:"right",tabPosition:"top",scrollIncrement:100,scrollDuration:400,onLoad:function(_389){
+},onSelect:function(_38a,_38b){
+},onUnselect:function(_38c,_38d){
+},onBeforeClose:function(_38e,_38f){
+},onClose:function(_390,_391){
+},onAdd:function(_392,_393){
+},onUpdate:function(_394,_395){
+},onContextMenu:function(e,_396,_397){
+}};
+})(jQuery);
+(function($){
+var _398=false;
+function _399(_39a,_39b){
+var _39c=$.data(_39a,"layout");
+var opts=_39c.options;
+var _39d=_39c.panels;
+var cc=$(_39a);
+if(_39b){
+$.extend(opts,{width:_39b.width,height:_39b.height});
+}
+if(_39a.tagName.toLowerCase()=="body"){
+cc._size("fit");
+}else{
+cc._size(opts);
+}
+var cpos={top:0,left:0,width:cc.width(),height:cc.height()};
+_39e(_39f(_39d.expandNorth)?_39d.expandNorth:_39d.north,"n");
+_39e(_39f(_39d.expandSouth)?_39d.expandSouth:_39d.south,"s");
+_3a0(_39f(_39d.expandEast)?_39d.expandEast:_39d.east,"e");
+_3a0(_39f(_39d.expandWest)?_39d.expandWest:_39d.west,"w");
+_39d.center.panel("resize",cpos);
+function _39e(pp,type){
+if(!pp.length||!_39f(pp)){
+return;
+}
+var opts=pp.panel("options");
+pp.panel("resize",{width:cc.width(),height:opts.height});
+var _3a1=pp.panel("panel").outerHeight();
+pp.panel("move",{left:0,top:(type=="n"?0:cc.height()-_3a1)});
+cpos.height-=_3a1;
+if(type=="n"){
+cpos.top+=_3a1;
+if(!opts.split&&opts.border){
+cpos.top--;
+}
+}
+if(!opts.split&&opts.border){
+cpos.height++;
+}
+};
+function _3a0(pp,type){
+if(!pp.length||!_39f(pp)){
+return;
+}
+var opts=pp.panel("options");
+pp.panel("resize",{width:opts.width,height:cpos.height});
+var _3a2=pp.panel("panel").outerWidth();
+pp.panel("move",{left:(type=="e"?cc.width()-_3a2:0),top:cpos.top});
+cpos.width-=_3a2;
+if(type=="w"){
+cpos.left+=_3a2;
+if(!opts.split&&opts.border){
+cpos.left--;
+}
+}
+if(!opts.split&&opts.border){
+cpos.width++;
+}
+};
+};
+function init(_3a3){
+var cc=$(_3a3);
+cc.addClass("layout");
+function _3a4(cc){
+var opts=cc.layout("options");
+var _3a5=opts.onAdd;
+opts.onAdd=function(){
+};
+cc.children("div").each(function(){
+var _3a6=$.fn.layout.parsePanelOptions(this);
+if("north,south,east,west,center".indexOf(_3a6.region)>=0){
+_3a8(_3a3,_3a6,this);
+}
+});
+opts.onAdd=_3a5;
+};
+cc.children("form").length?_3a4(cc.children("form")):_3a4(cc);
+cc.append("<div class=\"layout-split-proxy-h\"></div><div class=\"layout-split-proxy-v\"></div>");
+cc.bind("_resize",function(e,_3a7){
+if($(this).hasClass("easyui-fluid")||_3a7){
+_399(_3a3);
+}
+return false;
+});
+};
+function _3a8(_3a9,_3aa,el){
+_3aa.region=_3aa.region||"center";
+var _3ab=$.data(_3a9,"layout").panels;
+var cc=$(_3a9);
+var dir=_3aa.region;
+if(_3ab[dir].length){
+return;
+}
+var pp=$(el);
+if(!pp.length){
+pp=$("<div></div>").appendTo(cc);
+}
+var _3ac=$.extend({},$.fn.layout.paneldefaults,{width:(pp.length?parseInt(pp[0].style.width)||pp.outerWidth():"auto"),height:(pp.length?parseInt(pp[0].style.height)||pp.outerHeight():"auto"),doSize:false,collapsible:true,onOpen:function(){
+var tool=$(this).panel("header").children("div.panel-tool");
+tool.children("a.panel-tool-collapse").hide();
+var _3ad={north:"up",south:"down",east:"right",west:"left"};
+if(!_3ad[dir]){
+return;
+}
+var _3ae="layout-button-"+_3ad[dir];
+var t=tool.children("a."+_3ae);
+if(!t.length){
+t=$("<a href=\"javascript:void(0)\"></a>").addClass(_3ae).appendTo(tool);
+t.bind("click",{dir:dir},function(e){
+_3ba(_3a9,e.data.dir);
+return false;
+});
+}
+$(this).panel("options").collapsible?t.show():t.hide();
+}},_3aa,{cls:((_3aa.cls||"")+" layout-panel layout-panel-"+dir),bodyCls:((_3aa.bodyCls||"")+" layout-body")});
+pp.panel(_3ac);
+_3ab[dir]=pp;
+var _3af={north:"s",south:"n",east:"w",west:"e"};
+var _3b0=pp.panel("panel");
+if(pp.panel("options").split){
+_3b0.addClass("layout-split-"+dir);
+}
+_3b0.resizable($.extend({},{handles:(_3af[dir]||""),disabled:(!pp.panel("options").split),onStartResize:function(e){
+_398=true;
+if(dir=="north"||dir=="south"){
+var _3b1=$(">div.layout-split-proxy-v",_3a9);
+}else{
+var _3b1=$(">div.layout-split-proxy-h",_3a9);
+}
+var top=0,left=0,_3b2=0,_3b3=0;
+var pos={display:"block"};
+if(dir=="north"){
+pos.top=parseInt(_3b0.css("top"))+_3b0.outerHeight()-_3b1.height();
+pos.left=parseInt(_3b0.css("left"));
+pos.width=_3b0.outerWidth();
+pos.height=_3b1.height();
+}else{
+if(dir=="south"){
+pos.top=parseInt(_3b0.css("top"));
+pos.left=parseInt(_3b0.css("left"));
+pos.width=_3b0.outerWidth();
+pos.height=_3b1.height();
+}else{
+if(dir=="east"){
+pos.top=parseInt(_3b0.css("top"))||0;
+pos.left=parseInt(_3b0.css("left"))||0;
+pos.width=_3b1.width();
+pos.height=_3b0.outerHeight();
+}else{
+if(dir=="west"){
+pos.top=parseInt(_3b0.css("top"))||0;
+pos.left=_3b0.outerWidth()-_3b1.width();
+pos.width=_3b1.width();
+pos.height=_3b0.outerHeight();
+}
+}
+}
+}
+_3b1.css(pos);
+$("<div class=\"layout-mask\"></div>").css({left:0,top:0,width:cc.width(),height:cc.height()}).appendTo(cc);
+},onResize:function(e){
+if(dir=="north"||dir=="south"){
+var _3b4=$(">div.layout-split-proxy-v",_3a9);
+_3b4.css("top",e.pageY-$(_3a9).offset().top-_3b4.height()/2);
+}else{
+var _3b4=$(">div.layout-split-proxy-h",_3a9);
+_3b4.css("left",e.pageX-$(_3a9).offset().left-_3b4.width()/2);
+}
+return false;
+},onStopResize:function(e){
+cc.children("div.layout-split-proxy-v,div.layout-split-proxy-h").hide();
+pp.panel("resize",e.data);
+_399(_3a9);
+_398=false;
+cc.find(">div.layout-mask").remove();
+}},_3aa));
+cc.layout("options").onAdd.call(_3a9,dir);
+};
+function _3b5(_3b6,_3b7){
+var _3b8=$.data(_3b6,"layout").panels;
+if(_3b8[_3b7].length){
+_3b8[_3b7].panel("destroy");
+_3b8[_3b7]=$();
+var _3b9="expand"+_3b7.substring(0,1).toUpperCase()+_3b7.substring(1);
+if(_3b8[_3b9]){
+_3b8[_3b9].panel("destroy");
+_3b8[_3b9]=undefined;
+}
+$(_3b6).layout("options").onRemove.call(_3b6,_3b7);
+}
+};
+function _3ba(_3bb,_3bc,_3bd){
+if(_3bd==undefined){
+_3bd="normal";
+}
+var _3be=$.data(_3bb,"layout").panels;
+var p=_3be[_3bc];
+var _3bf=p.panel("options");
+if(_3bf.onBeforeCollapse.call(p)==false){
+return;
+}
+var _3c0="expand"+_3bc.substring(0,1).toUpperCase()+_3bc.substring(1);
+if(!_3be[_3c0]){
+_3be[_3c0]=_3c1(_3bc);
+var ep=_3be[_3c0].panel("panel");
+if(!_3bf.expandMode){
+ep.css("cursor","default");
+}else{
+ep.bind("click",function(){
+if(_3bf.expandMode=="dock"){
+_3cc(_3bb,_3bc);
+}else{
+p.panel("expand",false).panel("open");
+var _3c2=_3c3();
+p.panel("resize",_3c2.collapse);
+p.panel("panel").animate(_3c2.expand,function(){
+$(this).unbind(".layout").bind("mouseleave.layout",{region:_3bc},function(e){
+if(_398==true){
+return;
+}
+if($("body>div.combo-p>div.combo-panel:visible").length){
+return;
+}
+_3ba(_3bb,e.data.region);
+});
+$(_3bb).layout("options").onExpand.call(_3bb,_3bc);
+});
+}
+return false;
+});
+}
+}
+var _3c4=_3c3();
+if(!_39f(_3be[_3c0])){
+_3be.center.panel("resize",_3c4.resizeC);
+}
+p.panel("panel").animate(_3c4.collapse,_3bd,function(){
+p.panel("collapse",false).panel("close");
+_3be[_3c0].panel("open").panel("resize",_3c4.expandP);
+$(this).unbind(".layout");
+$(_3bb).layout("options").onCollapse.call(_3bb,_3bc);
+});
+function _3c1(dir){
+var _3c5={"east":"left","west":"right","north":"down","south":"up"};
+var isns=(_3bf.region=="north"||_3bf.region=="south");
+var icon="layout-button-"+_3c5[dir];
+var p=$("<div></div>").appendTo(_3bb);
+p.panel($.extend({},$.fn.layout.paneldefaults,{cls:("layout-expand layout-expand-"+dir),title:" ",iconCls:(_3bf.hideCollapsedContent?null:_3bf.iconCls),closed:true,minWidth:0,minHeight:0,doSize:false,region:_3bf.region,collapsedSize:_3bf.collapsedSize,noheader:(!isns&&_3bf.hideExpandTool),tools:((isns&&_3bf.hideExpandTool)?null:[{iconCls:icon,handler:function(){
+_3cc(_3bb,_3bc);
+return false;
+}}])}));
+if(!_3bf.hideCollapsedContent){
+var _3c6=typeof _3bf.collapsedContent=="function"?_3bf.collapsedContent.call(p[0],_3bf.title):_3bf.collapsedContent;
+isns?p.panel("setTitle",_3c6):p.html(_3c6);
+}
+p.panel("panel").hover(function(){
+$(this).addClass("layout-expand-over");
+},function(){
+$(this).removeClass("layout-expand-over");
+});
+return p;
+};
+function _3c3(){
+var cc=$(_3bb);
+var _3c7=_3be.center.panel("options");
+var _3c8=_3bf.collapsedSize;
+if(_3bc=="east"){
+var _3c9=p.panel("panel")._outerWidth();
+var _3ca=_3c7.width+_3c9-_3c8;
+if(_3bf.split||!_3bf.border){
+_3ca++;
+}
+return {resizeC:{width:_3ca},expand:{left:cc.width()-_3c9},expandP:{top:_3c7.top,left:cc.width()-_3c8,width:_3c8,height:_3c7.height},collapse:{left:cc.width(),top:_3c7.top,height:_3c7.height}};
+}else{
+if(_3bc=="west"){
+var _3c9=p.panel("panel")._outerWidth();
+var _3ca=_3c7.width+_3c9-_3c8;
+if(_3bf.split||!_3bf.border){
+_3ca++;
+}
+return {resizeC:{width:_3ca,left:_3c8-1},expand:{left:0},expandP:{left:0,top:_3c7.top,width:_3c8,height:_3c7.height},collapse:{left:-_3c9,top:_3c7.top,height:_3c7.height}};
+}else{
+if(_3bc=="north"){
+var _3cb=p.panel("panel")._outerHeight();
+var hh=_3c7.height;
+if(!_39f(_3be.expandNorth)){
+hh+=_3cb-_3c8+((_3bf.split||!_3bf.border)?1:0);
+}
+_3be.east.add(_3be.west).add(_3be.expandEast).add(_3be.expandWest).panel("resize",{top:_3c8-1,height:hh});
+return {resizeC:{top:_3c8-1,height:hh},expand:{top:0},expandP:{top:0,left:0,width:cc.width(),height:_3c8},collapse:{top:-_3cb,width:cc.width()}};
+}else{
+if(_3bc=="south"){
+var _3cb=p.panel("panel")._outerHeight();
+var hh=_3c7.height;
+if(!_39f(_3be.expandSouth)){
+hh+=_3cb-_3c8+((_3bf.split||!_3bf.border)?1:0);
+}
+_3be.east.add(_3be.west).add(_3be.expandEast).add(_3be.expandWest).panel("resize",{height:hh});
+return {resizeC:{height:hh},expand:{top:cc.height()-_3cb},expandP:{top:cc.height()-_3c8,left:0,width:cc.width(),height:_3c8},collapse:{top:cc.height(),width:cc.width()}};
+}
+}
+}
+}
+};
+};
+function _3cc(_3cd,_3ce){
+var _3cf=$.data(_3cd,"layout").panels;
+var p=_3cf[_3ce];
+var _3d0=p.panel("options");
+if(_3d0.onBeforeExpand.call(p)==false){
+return;
+}
+var _3d1="expand"+_3ce.substring(0,1).toUpperCase()+_3ce.substring(1);
+if(_3cf[_3d1]){
+_3cf[_3d1].panel("close");
+p.panel("panel").stop(true,true);
+p.panel("expand",false).panel("open");
+var _3d2=_3d3();
+p.panel("resize",_3d2.collapse);
+p.panel("panel").animate(_3d2.expand,function(){
+_399(_3cd);
+$(_3cd).layout("options").onExpand.call(_3cd,_3ce);
+});
+}
+function _3d3(){
+var cc=$(_3cd);
+var _3d4=_3cf.center.panel("options");
+if(_3ce=="east"&&_3cf.expandEast){
+return {collapse:{left:cc.width(),top:_3d4.top,height:_3d4.height},expand:{left:cc.width()-p.panel("panel")._outerWidth()}};
+}else{
+if(_3ce=="west"&&_3cf.expandWest){
+return {collapse:{left:-p.panel("panel")._outerWidth(),top:_3d4.top,height:_3d4.height},expand:{left:0}};
+}else{
+if(_3ce=="north"&&_3cf.expandNorth){
+return {collapse:{top:-p.panel("panel")._outerHeight(),width:cc.width()},expand:{top:0}};
+}else{
+if(_3ce=="south"&&_3cf.expandSouth){
+return {collapse:{top:cc.height(),width:cc.width()},expand:{top:cc.height()-p.panel("panel")._outerHeight()}};
+}
+}
+}
+}
+};
+};
+function _39f(pp){
+if(!pp){
+return false;
+}
+if(pp.length){
+return pp.panel("panel").is(":visible");
+}else{
+return false;
+}
+};
+function _3d5(_3d6){
+var _3d7=$.data(_3d6,"layout");
+var opts=_3d7.options;
+var _3d8=_3d7.panels;
+var _3d9=opts.onCollapse;
+opts.onCollapse=function(){
+};
+_3da("east");
+_3da("west");
+_3da("north");
+_3da("south");
+opts.onCollapse=_3d9;
+function _3da(_3db){
+var p=_3d8[_3db];
+if(p.length&&p.panel("options").collapsed){
+_3ba(_3d6,_3db,0);
+}
+};
+};
+function _3dc(_3dd,_3de,_3df){
+var p=$(_3dd).layout("panel",_3de);
+p.panel("options").split=_3df;
+var cls="layout-split-"+_3de;
+var _3e0=p.panel("panel").removeClass(cls);
+if(_3df){
+_3e0.addClass(cls);
+}
+_3e0.resizable({disabled:(!_3df)});
+_399(_3dd);
+};
+$.fn.layout=function(_3e1,_3e2){
+if(typeof _3e1=="string"){
+return $.fn.layout.methods[_3e1](this,_3e2);
+}
+_3e1=_3e1||{};
+return this.each(function(){
+var _3e3=$.data(this,"layout");
+if(_3e3){
+$.extend(_3e3.options,_3e1);
+}else{
+var opts=$.extend({},$.fn.layout.defaults,$.fn.layout.parseOptions(this),_3e1);
+$.data(this,"layout",{options:opts,panels:{center:$(),north:$(),south:$(),east:$(),west:$()}});
+init(this);
+}
+_399(this);
+_3d5(this);
+});
+};
+$.fn.layout.methods={options:function(jq){
+return $.data(jq[0],"layout").options;
+},resize:function(jq,_3e4){
+return jq.each(function(){
+_399(this,_3e4);
+});
+},panel:function(jq,_3e5){
+return $.data(jq[0],"layout").panels[_3e5];
+},collapse:function(jq,_3e6){
+return jq.each(function(){
+_3ba(this,_3e6);
+});
+},expand:function(jq,_3e7){
+return jq.each(function(){
+_3cc(this,_3e7);
+});
+},add:function(jq,_3e8){
+return jq.each(function(){
+_3a8(this,_3e8);
+_399(this);
+if($(this).layout("panel",_3e8.region).panel("options").collapsed){
+_3ba(this,_3e8.region,0);
+}
+});
+},remove:function(jq,_3e9){
+return jq.each(function(){
+_3b5(this,_3e9);
+_399(this);
+});
+},split:function(jq,_3ea){
+return jq.each(function(){
+_3dc(this,_3ea,true);
+});
+},unsplit:function(jq,_3eb){
+return jq.each(function(){
+_3dc(this,_3eb,false);
+});
+}};
+$.fn.layout.parseOptions=function(_3ec){
+return $.extend({},$.parser.parseOptions(_3ec,[{fit:"boolean"}]));
+};
+$.fn.layout.defaults={fit:false,onExpand:function(_3ed){
+},onCollapse:function(_3ee){
+},onAdd:function(_3ef){
+},onRemove:function(_3f0){
+}};
+$.fn.layout.parsePanelOptions=function(_3f1){
+var t=$(_3f1);
+return $.extend({},$.fn.panel.parseOptions(_3f1),$.parser.parseOptions(_3f1,["region",{split:"boolean",collpasedSize:"number",minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number"}]));
+};
+$.fn.layout.paneldefaults=$.extend({},$.fn.panel.defaults,{region:null,split:false,collapsedSize:28,expandMode:"float",hideExpandTool:false,hideCollapsedContent:true,collapsedContent:function(_3f2){
+var p=$(this);
+var opts=p.panel("options");
+if(opts.region=="north"||opts.region=="south"){
+return _3f2;
+}
+var size=opts.collapsedSize-2;
+var left=(size-16)/2;
+left=size-left;
+var cc=[];
+if(opts.iconCls){
+cc.push("<div class=\"panel-icon "+opts.iconCls+"\"></div>");
+}
+cc.push("<div class=\"panel-title layout-expand-title");
+cc.push(opts.iconCls?" layout-expand-with-icon":"");
+cc.push("\" style=\"left:"+left+"px\">");
+cc.push(_3f2);
+cc.push("</div>");
+return cc.join("");
+},minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000});
+})(jQuery);
+(function($){
+$(function(){
+$(document).unbind(".menu").bind("mousedown.menu",function(e){
+var m=$(e.target).closest("div.menu,div.combo-p");
+if(m.length){
+return;
+}
+$("body>div.menu-top:visible").not(".menu-inline").menu("hide");
+_3f3($("body>div.menu:visible").not(".menu-inline"));
+});
+});
+function init(_3f4){
+var opts=$.data(_3f4,"menu").options;
+$(_3f4).addClass("menu-top");
+opts.inline?$(_3f4).addClass("menu-inline"):$(_3f4).appendTo("body");
+$(_3f4).bind("_resize",function(e,_3f5){
+if($(this).hasClass("easyui-fluid")||_3f5){
+$(_3f4).menu("resize",_3f4);
+}
+return false;
+});
+var _3f6=_3f7($(_3f4));
+for(var i=0;i<_3f6.length;i++){
+_3f8(_3f6[i]);
+}
+function _3f7(menu){
+var _3f9=[];
+menu.addClass("menu");
+_3f9.push(menu);
+if(!menu.hasClass("menu-content")){
+menu.children("div").each(function(){
+var _3fa=$(this).children("div");
+if(_3fa.length){
+_3fa.appendTo("body");
+this.submenu=_3fa;
+var mm=_3f7(_3fa);
+_3f9=_3f9.concat(mm);
+}
+});
+}
+return _3f9;
+};
+function _3f8(menu){
+var wh=$.parser.parseOptions(menu[0],["width","height"]);
+menu[0].originalHeight=wh.height||0;
+if(menu.hasClass("menu-content")){
+menu[0].originalWidth=wh.width||menu._outerWidth();
+}else{
+menu[0].originalWidth=wh.width||0;
+menu.children("div").each(function(){
+var item=$(this);
+var _3fb=$.extend({},$.parser.parseOptions(this,["name","iconCls","href",{separator:"boolean"}]),{disabled:(item.attr("disabled")?true:undefined)});
+if(_3fb.separator){
+item.addClass("menu-sep");
+}
+if(!item.hasClass("menu-sep")){
+item[0].itemName=_3fb.name||"";
+item[0].itemHref=_3fb.href||"";
+var text=item.addClass("menu-item").html();
+item.empty().append($("<div class=\"menu-text\"></div>").html(text));
+if(_3fb.iconCls){
+$("<div class=\"menu-icon\"></div>").addClass(_3fb.iconCls).appendTo(item);
+}
+if(_3fb.disabled){
+_3fc(_3f4,item[0],true);
+}
+if(item[0].submenu){
+$("<div class=\"menu-rightarrow\"></div>").appendTo(item);
+}
+_3fd(_3f4,item);
+}
+});
+$("<div class=\"menu-line\"></div>").prependTo(menu);
+}
+_3fe(_3f4,menu);
+if(!menu.hasClass("menu-inline")){
+menu.hide();
+}
+_3ff(_3f4,menu);
+};
+};
+function _3fe(_400,menu){
+var opts=$.data(_400,"menu").options;
+var _401=menu.attr("style")||"";
+menu.css({display:"block",left:-10000,height:"auto",overflow:"hidden"});
+menu.find(".menu-item").each(function(){
+$(this)._outerHeight(opts.itemHeight);
+$(this).find(".menu-text").css({height:(opts.itemHeight-2)+"px",lineHeight:(opts.itemHeight-2)+"px"});
+});
+menu.removeClass("menu-noline").addClass(opts.noline?"menu-noline":"");
+var _402=menu[0].originalWidth||"auto";
+if(isNaN(parseInt(_402))){
+_402=0;
+menu.find("div.menu-text").each(function(){
+if(_402<$(this)._outerWidth()){
+_402=$(this)._outerWidth();
+}
+});
+_402+=40;
+}
+var _403=menu.outerHeight();
+var _404=menu[0].originalHeight||"auto";
+if(isNaN(parseInt(_404))){
+_404=_403;
+if(menu.hasClass("menu-top")&&opts.alignTo){
+var at=$(opts.alignTo);
+var h1=at.offset().top-$(document).scrollTop();
+var h2=$(window)._outerHeight()+$(document).scrollTop()-at.offset().top-at._outerHeight();
+_404=Math.min(_404,Math.max(h1,h2));
+}else{
+if(_404>$(window)._outerHeight()){
+_404=$(window).height();
+}
+}
+}
+menu.attr("style",_401);
+menu._size({fit:(menu[0]==_400?opts.fit:false),width:_402,minWidth:opts.minWidth,height:_404});
+menu.css("overflow",menu.outerHeight()<_403?"auto":"hidden");
+menu.children("div.menu-line")._outerHeight(_403-2);
+};
+function _3ff(_405,menu){
+if(menu.hasClass("menu-inline")){
+return;
+}
+var _406=$.data(_405,"menu");
+menu.unbind(".menu").bind("mouseenter.menu",function(){
+if(_406.timer){
+clearTimeout(_406.timer);
+_406.timer=null;
+}
+}).bind("mouseleave.menu",function(){
+if(_406.options.hideOnUnhover){
+_406.timer=setTimeout(function(){
+_407(_405,$(_405).hasClass("menu-inline"));
+},_406.options.duration);
+}
+});
+};
+function _3fd(_408,item){
+if(!item.hasClass("menu-item")){
+return;
+}
+item.unbind(".menu");
+item.bind("click.menu",function(){
+if($(this).hasClass("menu-item-disabled")){
+return;
+}
+if(!this.submenu){
+_407(_408,$(_408).hasClass("menu-inline"));
+var href=this.itemHref;
+if(href){
+location.href=href;
+}
+}
+$(this).trigger("mouseenter");
+var item=$(_408).menu("getItem",this);
+$.data(_408,"menu").options.onClick.call(_408,item);
+}).bind("mouseenter.menu",function(e){
+item.siblings().each(function(){
+if(this.submenu){
+_3f3(this.submenu);
+}
+$(this).removeClass("menu-active");
+});
+item.addClass("menu-active");
+if($(this).hasClass("menu-item-disabled")){
+item.addClass("menu-active-disabled");
+return;
+}
+var _409=item[0].submenu;
+if(_409){
+$(_408).menu("show",{menu:_409,parent:item});
+}
+}).bind("mouseleave.menu",function(e){
+item.removeClass("menu-active menu-active-disabled");
+var _40a=item[0].submenu;
+if(_40a){
+if(e.pageX>=parseInt(_40a.css("left"))){
+item.addClass("menu-active");
+}else{
+_3f3(_40a);
+}
+}else{
+item.removeClass("menu-active");
+}
+});
+};
+function _407(_40b,_40c){
+var _40d=$.data(_40b,"menu");
+if(_40d){
+if($(_40b).is(":visible")){
+_3f3($(_40b));
+if(_40c){
+$(_40b).show();
+}else{
+_40d.options.onHide.call(_40b);
+}
+}
+}
+return false;
+};
+function _40e(_40f,_410){
+var left,top;
+_410=_410||{};
+var menu=$(_410.menu||_40f);
+$(_40f).menu("resize",menu[0]);
+if(menu.hasClass("menu-top")){
+var opts=$.data(_40f,"menu").options;
+$.extend(opts,_410);
+left=opts.left;
+top=opts.top;
+if(opts.alignTo){
+var at=$(opts.alignTo);
+left=at.offset().left;
+top=at.offset().top+at._outerHeight();
+if(opts.align=="right"){
+left+=at.outerWidth()-menu.outerWidth();
+}
+}
+if(left+menu.outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){
+left=$(window)._outerWidth()+$(document).scrollLeft()-menu.outerWidth()-5;
+}
+if(left<0){
+left=0;
+}
+top=_411(top,opts.alignTo);
+}else{
+var _412=_410.parent;
+left=_412.offset().left+_412.outerWidth()-2;
+if(left+menu.outerWidth()+5>$(window)._outerWidth()+$(document).scrollLeft()){
+left=_412.offset().left-menu.outerWidth()+2;
+}
+top=_411(_412.offset().top-3);
+}
+function _411(top,_413){
+if(top+menu.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
+if(_413){
+top=$(_413).offset().top-menu._outerHeight();
+}else{
+top=$(window)._outerHeight()+$(document).scrollTop()-menu.outerHeight();
+}
+}
+if(top<0){
+top=0;
+}
+return top;
+};
+menu.css({left:left,top:top});
+menu.show(0,function(){
+if(!menu[0].shadow){
+menu[0].shadow=$("<div class=\"menu-shadow\"></div>").insertAfter(menu);
+}
+menu[0].shadow.css({display:(menu.hasClass("menu-inline")?"none":"block"),zIndex:$.fn.menu.defaults.zIndex++,left:menu.css("left"),top:menu.css("top"),width:menu.outerWidth(),height:menu.outerHeight()});
+menu.css("z-index",$.fn.menu.defaults.zIndex++);
+if(menu.hasClass("menu-top")){
+$.data(menu[0],"menu").options.onShow.call(menu[0]);
+}
+});
+};
+function _3f3(menu){
+if(menu&&menu.length){
+_414(menu);
+menu.find("div.menu-item").each(function(){
+if(this.submenu){
+_3f3(this.submenu);
+}
+$(this).removeClass("menu-active");
+});
+}
+function _414(m){
+m.stop(true,true);
+if(m[0].shadow){
+m[0].shadow.hide();
+}
+m.hide();
+};
+};
+function _415(_416,text){
+var _417=null;
+var tmp=$("<div></div>");
+function find(menu){
+menu.children("div.menu-item").each(function(){
+var item=$(_416).menu("getItem",this);
+var s=tmp.empty().html(item.text).text();
+if(text==$.trim(s)){
+_417=item;
+}else{
+if(this.submenu&&!_417){
+find(this.submenu);
+}
+}
+});
+};
+find($(_416));
+tmp.remove();
+return _417;
+};
+function _3fc(_418,_419,_41a){
+var t=$(_419);
+if(!t.hasClass("menu-item")){
+return;
+}
+if(_41a){
+t.addClass("menu-item-disabled");
+if(_419.onclick){
+_419.onclick1=_419.onclick;
+_419.onclick=null;
+}
+}else{
+t.removeClass("menu-item-disabled");
+if(_419.onclick1){
+_419.onclick=_419.onclick1;
+_419.onclick1=null;
+}
+}
+};
+function _41b(_41c,_41d){
+var opts=$.data(_41c,"menu").options;
+var menu=$(_41c);
+if(_41d.parent){
+if(!_41d.parent.submenu){
+var _41e=$("<div class=\"menu\"><div class=\"menu-line\"></div></div>").appendTo("body");
+_41e.hide();
+_41d.parent.submenu=_41e;
+$("<div class=\"menu-rightarrow\"></div>").appendTo(_41d.parent);
+}
+menu=_41d.parent.submenu;
+}
+if(_41d.separator){
+var item=$("<div class=\"menu-sep\"></div>").appendTo(menu);
+}else{
+var item=$("<div class=\"menu-item\"></div>").appendTo(menu);
+$("<div class=\"menu-text\"></div>").html(_41d.text).appendTo(item);
+}
+if(_41d.iconCls){
+$("<div class=\"menu-icon\"></div>").addClass(_41d.iconCls).appendTo(item);
+}
+if(_41d.id){
+item.attr("id",_41d.id);
+}
+if(_41d.name){
+item[0].itemName=_41d.name;
+}
+if(_41d.href){
+item[0].itemHref=_41d.href;
+}
+if(_41d.onclick){
+if(typeof _41d.onclick=="string"){
+item.attr("onclick",_41d.onclick);
+}else{
+item[0].onclick=eval(_41d.onclick);
+}
+}
+if(_41d.handler){
+item[0].onclick=eval(_41d.handler);
+}
+if(_41d.disabled){
+_3fc(_41c,item[0],true);
+}
+_3fd(_41c,item);
+_3ff(_41c,menu);
+_3fe(_41c,menu);
+};
+function _41f(_420,_421){
+function _422(el){
+if(el.submenu){
+el.submenu.children("div.menu-item").each(function(){
+_422(this);
+});
+var _423=el.submenu[0].shadow;
+if(_423){
+_423.remove();
+}
+el.submenu.remove();
+}
+$(el).remove();
+};
+var menu=$(_421).parent();
+_422(_421);
+_3fe(_420,menu);
+};
+function _424(_425,_426,_427){
+var menu=$(_426).parent();
+if(_427){
+$(_426).show();
+}else{
+$(_426).hide();
+}
+_3fe(_425,menu);
+};
+function _428(_429){
+$(_429).children("div.menu-item").each(function(){
+_41f(_429,this);
+});
+if(_429.shadow){
+_429.shadow.remove();
+}
+$(_429).remove();
+};
+$.fn.menu=function(_42a,_42b){
+if(typeof _42a=="string"){
+return $.fn.menu.methods[_42a](this,_42b);
+}
+_42a=_42a||{};
+return this.each(function(){
+var _42c=$.data(this,"menu");
+if(_42c){
+$.extend(_42c.options,_42a);
+}else{
+_42c=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,$.fn.menu.parseOptions(this),_42a)});
+init(this);
+}
+$(this).css({left:_42c.options.left,top:_42c.options.top});
+});
+};
+$.fn.menu.methods={options:function(jq){
+return $.data(jq[0],"menu").options;
+},show:function(jq,pos){
+return jq.each(function(){
+_40e(this,pos);
+});
+},hide:function(jq){
+return jq.each(function(){
+_407(this);
+});
+},destroy:function(jq){
+return jq.each(function(){
+_428(this);
+});
+},setText:function(jq,_42d){
+return jq.each(function(){
+$(_42d.target).children("div.menu-text").html(_42d.text);
+});
+},setIcon:function(jq,_42e){
+return jq.each(function(){
+$(_42e.target).children("div.menu-icon").remove();
+if(_42e.iconCls){
+$("<div class=\"menu-icon\"></div>").addClass(_42e.iconCls).appendTo(_42e.target);
+}
+});
+},getItem:function(jq,_42f){
+var t=$(_42f);
+var item={target:_42f,id:t.attr("id"),text:$.trim(t.children("div.menu-text").html()),disabled:t.hasClass("menu-item-disabled"),name:_42f.itemName,href:_42f.itemHref,onclick:_42f.onclick};
+var icon=t.children("div.menu-icon");
+if(icon.length){
+var cc=[];
+var aa=icon.attr("class").split(" ");
+for(var i=0;i<aa.length;i++){
+if(aa[i]!="menu-icon"){
+cc.push(aa[i]);
+}
+}
+item.iconCls=cc.join(" ");
+}
+return item;
+},findItem:function(jq,text){
+return _415(jq[0],text);
+},appendItem:function(jq,_430){
+return jq.each(function(){
+_41b(this,_430);
+});
+},removeItem:function(jq,_431){
+return jq.each(function(){
+_41f(this,_431);
+});
+},enableItem:function(jq,_432){
+return jq.each(function(){
+_3fc(this,_432,false);
+});
+},disableItem:function(jq,_433){
+return jq.each(function(){
+_3fc(this,_433,true);
+});
+},showItem:function(jq,_434){
+return jq.each(function(){
+_424(this,_434,true);
+});
+},hideItem:function(jq,_435){
+return jq.each(function(){
+_424(this,_435,false);
+});
+},resize:function(jq,_436){
+return jq.each(function(){
+_3fe(this,$(_436));
+});
+}};
+$.fn.menu.parseOptions=function(_437){
+return $.extend({},$.parser.parseOptions(_437,[{minWidth:"number",itemHeight:"number",duration:"number",hideOnUnhover:"boolean"},{fit:"boolean",inline:"boolean",noline:"boolean"}]));
+};
+$.fn.menu.defaults={zIndex:110000,left:0,top:0,alignTo:null,align:"left",minWidth:120,itemHeight:22,duration:100,hideOnUnhover:true,inline:false,fit:false,noline:false,onShow:function(){
+},onHide:function(){
+},onClick:function(item){
+}};
+})(jQuery);
+(function($){
+function init(_438){
+var opts=$.data(_438,"menubutton").options;
+var btn=$(_438);
+btn.linkbutton(opts);
+if(opts.hasDownArrow){
+btn.removeClass(opts.cls.btn1+" "+opts.cls.btn2).addClass("m-btn");
+btn.removeClass("m-btn-small m-btn-medium m-btn-large").addClass("m-btn-"+opts.size);
+var _439=btn.find(".l-btn-left");
+$("<span></span>").addClass(opts.cls.arrow).appendTo(_439);
+$("<span></span>").addClass("m-btn-line").appendTo(_439);
+}
+$(_438).menubutton("resize");
+if(opts.menu){
+$(opts.menu).menu({duration:opts.duration});
+var _43a=$(opts.menu).menu("options");
+var _43b=_43a.onShow;
+var _43c=_43a.onHide;
+$.extend(_43a,{onShow:function(){
+var _43d=$(this).menu("options");
+var btn=$(_43d.alignTo);
+var opts=btn.menubutton("options");
+btn.addClass((opts.plain==true)?opts.cls.btn2:opts.cls.btn1);
+_43b.call(this);
+},onHide:function(){
+var _43e=$(this).menu("options");
+var btn=$(_43e.alignTo);
+var opts=btn.menubutton("options");
+btn.removeClass((opts.plain==true)?opts.cls.btn2:opts.cls.btn1);
+_43c.call(this);
+}});
+}
+};
+function _43f(_440){
+var opts=$.data(_440,"menubutton").options;
+var btn=$(_440);
+var t=btn.find("."+opts.cls.trigger);
+if(!t.length){
+t=btn;
+}
+t.unbind(".menubutton");
+var _441=null;
+t.bind("click.menubutton",function(){
+if(!_442()){
+_443(_440);
+return false;
+}
+}).bind("mouseenter.menubutton",function(){
+if(!_442()){
+_441=setTimeout(function(){
+_443(_440);
+},opts.duration);
+return false;
+}
+}).bind("mouseleave.menubutton",function(){
+if(_441){
+clearTimeout(_441);
+}
+$(opts.menu).triggerHandler("mouseleave");
+});
+function _442(){
+return $(_440).linkbutton("options").disabled;
+};
+};
+function _443(_444){
+var opts=$(_444).menubutton("options");
+if(opts.disabled||!opts.menu){
+return;
+}
+$("body>div.menu-top").menu("hide");
+var btn=$(_444);
+var mm=$(opts.menu);
+if(mm.length){
+mm.menu("options").alignTo=btn;
+mm.menu("show",{alignTo:btn,align:opts.menuAlign});
+}
+btn.blur();
+};
+$.fn.menubutton=function(_445,_446){
+if(typeof _445=="string"){
+var _447=$.fn.menubutton.methods[_445];
+if(_447){
+return _447(this,_446);
+}else{
+return this.linkbutton(_445,_446);
+}
+}
+_445=_445||{};
+return this.each(function(){
+var _448=$.data(this,"menubutton");
+if(_448){
+$.extend(_448.options,_445);
+}else{
+$.data(this,"menubutton",{options:$.extend({},$.fn.menubutton.defaults,$.fn.menubutton.parseOptions(this),_445)});
+$(this).removeAttr("disabled");
+}
+init(this);
+_43f(this);
+});
+};
+$.fn.menubutton.methods={options:function(jq){
+var _449=jq.linkbutton("options");
+return $.extend($.data(jq[0],"menubutton").options,{toggle:_449.toggle,selected:_449.selected,disabled:_449.disabled});
+},destroy:function(jq){
+return jq.each(function(){
+var opts=$(this).menubutton("options");
+if(opts.menu){
+$(opts.menu).menu("destroy");
+}
+$(this).remove();
+});
+}};
+$.fn.menubutton.parseOptions=function(_44a){
+var t=$(_44a);
+return $.extend({},$.fn.linkbutton.parseOptions(_44a),$.parser.parseOptions(_44a,["menu",{plain:"boolean",hasDownArrow:"boolean",duration:"number"}]));
+};
+$.fn.menubutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,hasDownArrow:true,menu:null,menuAlign:"left",duration:100,cls:{btn1:"m-btn-active",btn2:"m-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn"}});
+})(jQuery);
+(function($){
+function init(_44b){
+var opts=$.data(_44b,"splitbutton").options;
+$(_44b).menubutton(opts);
+$(_44b).addClass("s-btn");
+};
+$.fn.splitbutton=function(_44c,_44d){
+if(typeof _44c=="string"){
+var _44e=$.fn.splitbutton.methods[_44c];
+if(_44e){
+return _44e(this,_44d);
+}else{
+return this.menubutton(_44c,_44d);
+}
+}
+_44c=_44c||{};
+return this.each(function(){
+var _44f=$.data(this,"splitbutton");
+if(_44f){
+$.extend(_44f.options,_44c);
+}else{
+$.data(this,"splitbutton",{options:$.extend({},$.fn.splitbutton.defaults,$.fn.splitbutton.parseOptions(this),_44c)});
+$(this).removeAttr("disabled");
+}
+init(this);
+});
+};
+$.fn.splitbutton.methods={options:function(jq){
+var _450=jq.menubutton("options");
+var _451=$.data(jq[0],"splitbutton").options;
+$.extend(_451,{disabled:_450.disabled,toggle:_450.toggle,selected:_450.selected});
+return _451;
+}};
+$.fn.splitbutton.parseOptions=function(_452){
+var t=$(_452);
+return $.extend({},$.fn.linkbutton.parseOptions(_452),$.parser.parseOptions(_452,["menu",{plain:"boolean",duration:"number"}]));
+};
+$.fn.splitbutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,duration:100,cls:{btn1:"m-btn-active s-btn-active",btn2:"m-btn-plain-active s-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn-line"}});
+})(jQuery);
+(function($){
+function init(_453){
+var _454=$("<span class=\"switchbutton\">"+"<span class=\"switchbutton-inner\">"+"<span class=\"switchbutton-on\"></span>"+"<span class=\"switchbutton-handle\"></span>"+"<span class=\"switchbutton-off\"></span>"+"<input class=\"switchbutton-value\" type=\"checkbox\">"+"</span>"+"</span>").insertAfter(_453);
+var t=$(_453);
+t.addClass("switchbutton-f").hide();
+var name=t.attr("name");
+if(name){
+t.removeAttr("name").attr("switchbuttonName",name);
+_454.find(".switchbutton-value").attr("name",name);
+}
+_454.bind("_resize",function(e,_455){
+if($(this).hasClass("easyui-fluid")||_455){
+_456(_453);
+}
+return false;
+});
+return _454;
+};
+function _456(_457,_458){
+var _459=$.data(_457,"switchbutton");
+var opts=_459.options;
+var _45a=_459.switchbutton;
+if(_458){
+$.extend(opts,_458);
+}
+var _45b=_45a.is(":visible");
+if(!_45b){
+_45a.appendTo("body");
+}
+_45a._size(opts);
+var w=_45a.width();
+var h=_45a.height();
+var w=_45a.outerWidth();
+var h=_45a.outerHeight();
+var _45c=parseInt(opts.handleWidth)||_45a.height();
+var _45d=w*2-_45c;
+_45a.find(".switchbutton-inner").css({width:_45d+"px",height:h+"px",lineHeight:h+"px"});
+_45a.find(".switchbutton-handle")._outerWidth(_45c)._outerHeight(h).css({marginLeft:-_45c/2+"px"});
+_45a.find(".switchbutton-on").css({width:(w-_45c/2)+"px",textIndent:(opts.reversed?"":"-")+_45c/2+"px"});
+_45a.find(".switchbutton-off").css({width:(w-_45c/2)+"px",textIndent:(opts.reversed?"-":"")+_45c/2+"px"});
+opts.marginWidth=w-_45c;
+_45e(_457,opts.checked,false);
+if(!_45b){
+_45a.insertAfter(_457);
+}
+};
+function _45f(_460){
+var _461=$.data(_460,"switchbutton");
+var opts=_461.options;
+var _462=_461.switchbutton;
+var _463=_462.find(".switchbutton-inner");
+var on=_463.find(".switchbutton-on").html(opts.onText);
+var off=_463.find(".switchbutton-off").html(opts.offText);
+var _464=_463.find(".switchbutton-handle").html(opts.handleText);
+if(opts.reversed){
+off.prependTo(_463);
+on.insertAfter(_464);
+}else{
+on.prependTo(_463);
+off.insertAfter(_464);
+}
+_462.find(".switchbutton-value")._propAttr("checked",opts.checked);
+_462.removeClass("switchbutton-disabled").addClass(opts.disabled?"switchbutton-disabled":"");
+_462.removeClass("switchbutton-reversed").addClass(opts.reversed?"switchbutton-reversed":"");
+_45e(_460,opts.checked);
+_465(_460,opts.readonly);
+$(_460).switchbutton("setValue",opts.value);
+};
+function _45e(_466,_467,_468){
+var _469=$.data(_466,"switchbutton");
+var opts=_469.options;
+opts.checked=_467;
+var _46a=_469.switchbutton.find(".switchbutton-inner");
+var _46b=_46a.find(".switchbutton-on");
+var _46c=opts.reversed?(opts.checked?opts.marginWidth:0):(opts.checked?0:opts.marginWidth);
+var dir=_46b.css("float").toLowerCase();
+var css={};
+css["margin-"+dir]=-_46c+"px";
+_468?_46a.animate(css,200):_46a.css(css);
+var _46d=_46a.find(".switchbutton-value");
+var ck=_46d.is(":checked");
+$(_466).add(_46d)._propAttr("checked",opts.checked);
+if(ck!=opts.checked){
+opts.onChange.call(_466,opts.checked);
+}
+};
+function _46e(_46f,_470){
+var _471=$.data(_46f,"switchbutton");
+var opts=_471.options;
+var _472=_471.switchbutton;
+var _473=_472.find(".switchbutton-value");
+if(_470){
+opts.disabled=true;
+$(_46f).add(_473).attr("disabled","disabled");
+_472.addClass("switchbutton-disabled");
+}else{
+opts.disabled=false;
+$(_46f).add(_473).removeAttr("disabled");
+_472.removeClass("switchbutton-disabled");
+}
+};
+function _465(_474,mode){
+var _475=$.data(_474,"switchbutton");
+var opts=_475.options;
+opts.readonly=mode==undefined?true:mode;
+_475.switchbutton.removeClass("switchbutton-readonly").addClass(opts.readonly?"switchbutton-readonly":"");
+};
+function _476(_477){
+var _478=$.data(_477,"switchbutton");
+var opts=_478.options;
+_478.switchbutton.unbind(".switchbutton").bind("click.switchbutton",function(){
+if(!opts.disabled&&!opts.readonly){
+_45e(_477,opts.checked?false:true,true);
+}
+});
+};
+$.fn.switchbutton=function(_479,_47a){
+if(typeof _479=="string"){
+return $.fn.switchbutton.methods[_479](this,_47a);
+}
+_479=_479||{};
+return this.each(function(){
+var _47b=$.data(this,"switchbutton");
+if(_47b){
+$.extend(_47b.options,_479);
+}else{
+_47b=$.data(this,"switchbutton",{options:$.extend({},$.fn.switchbutton.defaults,$.fn.switchbutton.parseOptions(this),_479),switchbutton:init(this)});
+}
+_47b.options.originalChecked=_47b.options.checked;
+_45f(this);
+_456(this);
+_476(this);
+});
+};
+$.fn.switchbutton.methods={options:function(jq){
+var _47c=jq.data("switchbutton");
+return $.extend(_47c.options,{value:_47c.switchbutton.find(".switchbutton-value").val()});
+},resize:function(jq,_47d){
+return jq.each(function(){
+_456(this,_47d);
+});
+},enable:function(jq){
+return jq.each(function(){
+_46e(this,false);
+});
+},disable:function(jq){
+return jq.each(function(){
+_46e(this,true);
+});
+},readonly:function(jq,mode){
+return jq.each(function(){
+_465(this,mode);
+});
+},check:function(jq){
+return jq.each(function(){
+_45e(this,true);
+});
+},uncheck:function(jq){
+return jq.each(function(){
+_45e(this,false);
+});
+},clear:function(jq){
+return jq.each(function(){
+_45e(this,false);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).switchbutton("options");
+_45e(this,opts.originalChecked);
+});
+},setValue:function(jq,_47e){
+return jq.each(function(){
+$(this).val(_47e);
+$.data(this,"switchbutton").switchbutton.find(".switchbutton-value").val(_47e);
+});
+}};
+$.fn.switchbutton.parseOptions=function(_47f){
+var t=$(_47f);
+return $.extend({},$.parser.parseOptions(_47f,["onText","offText","handleText",{handleWidth:"number",reversed:"boolean"}]),{value:(t.val()||undefined),checked:(t.attr("checked")?true:undefined),disabled:(t.attr("disabled")?true:undefined),readonly:(t.attr("readonly")?true:undefined)});
+};
+$.fn.switchbutton.defaults={handleWidth:"auto",width:60,height:26,checked:false,disabled:false,readonly:false,reversed:false,onText:"ON",offText:"OFF",handleText:"",value:"on",onChange:function(_480){
+}};
+})(jQuery);
+(function($){
+function init(_481){
+$(_481).addClass("validatebox-text");
+};
+function _482(_483){
+var _484=$.data(_483,"validatebox");
+_484.validating=false;
+if(_484.timer){
+clearTimeout(_484.timer);
+}
+$(_483).tooltip("destroy");
+$(_483).unbind();
+$(_483).remove();
+};
+function _485(_486){
+var opts=$.data(_486,"validatebox").options;
+var box=$(_486);
+box.unbind(".validatebox");
+if(opts.novalidate||box.is(":disabled")){
+return;
+}
+for(var _487 in opts.events){
+$(_486).bind(_487+".validatebox",{target:_486},opts.events[_487]);
+}
+};
+function _488(e){
+var _489=e.data.target;
+var _48a=$.data(_489,"validatebox");
+var box=$(_489);
+if($(_489).attr("readonly")){
+return;
+}
+_48a.validating=true;
+_48a.value=undefined;
+(function(){
+if(_48a.validating){
+if(_48a.value!=box.val()){
+_48a.value=box.val();
+if(_48a.timer){
+clearTimeout(_48a.timer);
+}
+_48a.timer=setTimeout(function(){
+$(_489).validatebox("validate");
+},_48a.options.delay);
+}else{
+_48b(_489);
+}
+setTimeout(arguments.callee,200);
+}
+})();
+};
+function _48c(e){
+var _48d=e.data.target;
+var _48e=$.data(_48d,"validatebox");
+if(_48e.timer){
+clearTimeout(_48e.timer);
+_48e.timer=undefined;
+}
+_48e.validating=false;
+_48f(_48d);
+};
+function _490(e){
+var _491=e.data.target;
+if($(_491).hasClass("validatebox-invalid")){
+_492(_491);
+}
+};
+function _493(e){
+var _494=e.data.target;
+var _495=$.data(_494,"validatebox");
+if(!_495.validating){
+_48f(_494);
+}
+};
+function _492(_496){
+var _497=$.data(_496,"validatebox");
+var opts=_497.options;
+$(_496).tooltip($.extend({},opts.tipOptions,{content:_497.message,position:opts.tipPosition,deltaX:opts.deltaX})).tooltip("show");
+_497.tip=true;
+};
+function _48b(_498){
+var _499=$.data(_498,"validatebox");
+if(_499&&_499.tip){
+$(_498).tooltip("reposition");
+}
+};
+function _48f(_49a){
+var _49b=$.data(_49a,"validatebox");
+_49b.tip=false;
+$(_49a).tooltip("hide");
+};
+function _49c(_49d){
+var _49e=$.data(_49d,"validatebox");
+var opts=_49e.options;
+var box=$(_49d);
+opts.onBeforeValidate.call(_49d);
+var _49f=_4a0();
+opts.onValidate.call(_49d,_49f);
+return _49f;
+function _4a1(msg){
+_49e.message=msg;
+};
+function _4a2(_4a3,_4a4){
+var _4a5=box.val();
+var _4a6=/([a-zA-Z_]+)(.*)/.exec(_4a3);
+var rule=opts.rules[_4a6[1]];
+if(rule&&_4a5){
+var _4a7=_4a4||opts.validParams||eval(_4a6[2]);
+if(!rule["validator"].call(_49d,_4a5,_4a7)){
+box.addClass("validatebox-invalid");
+var _4a8=rule["message"];
+if(_4a7){
+for(var i=0;i<_4a7.length;i++){
+_4a8=_4a8.replace(new RegExp("\\{"+i+"\\}","g"),_4a7[i]);
+}
+}
+_4a1(opts.invalidMessage||_4a8);
+if(_49e.validating){
+_492(_49d);
+}
+return false;
+}
+}
+return true;
+};
+function _4a0(){
+box.removeClass("validatebox-invalid");
+_48f(_49d);
+if(opts.novalidate||box.is(":disabled")){
+return true;
+}
+if(opts.required){
+if(box.val()==""){
+box.addClass("validatebox-invalid");
+_4a1(opts.missingMessage);
+if(_49e.validating){
+_492(_49d);
+}
+return false;
+}
+}
+if(opts.validType){
+if($.isArray(opts.validType)){
+for(var i=0;i<opts.validType.length;i++){
+if(!_4a2(opts.validType[i])){
+return false;
+}
+}
+}else{
+if(typeof opts.validType=="string"){
+if(!_4a2(opts.validType)){
+return false;
+}
+}else{
+for(var _4a9 in opts.validType){
+var _4aa=opts.validType[_4a9];
+if(!_4a2(_4a9,_4aa)){
+return false;
+}
+}
+}
+}
+}
+return true;
+};
+};
+function _4ab(_4ac,_4ad){
+var opts=$.data(_4ac,"validatebox").options;
+if(_4ad!=undefined){
+opts.novalidate=_4ad;
+}
+if(opts.novalidate){
+$(_4ac).removeClass("validatebox-invalid");
+_48f(_4ac);
+}
+_49c(_4ac);
+_485(_4ac);
+};
+$.fn.validatebox=function(_4ae,_4af){
+if(typeof _4ae=="string"){
+return $.fn.validatebox.methods[_4ae](this,_4af);
+}
+_4ae=_4ae||{};
+return this.each(function(){
+var _4b0=$.data(this,"validatebox");
+if(_4b0){
+$.extend(_4b0.options,_4ae);
+}else{
+init(this);
+$.data(this,"validatebox",{options:$.extend({},$.fn.validatebox.defaults,$.fn.validatebox.parseOptions(this),_4ae)});
+}
+_4ab(this);
+_49c(this);
+});
+};
+$.fn.validatebox.methods={options:function(jq){
+return $.data(jq[0],"validatebox").options;
+},destroy:function(jq){
+return jq.each(function(){
+_482(this);
+});
+},validate:function(jq){
+return jq.each(function(){
+_49c(this);
+});
+},isValid:function(jq){
+return _49c(jq[0]);
+},enableValidation:function(jq){
+return jq.each(function(){
+_4ab(this,false);
+});
+},disableValidation:function(jq){
+return jq.each(function(){
+_4ab(this,true);
+});
+}};
+$.fn.validatebox.parseOptions=function(_4b1){
+var t=$(_4b1);
+return $.extend({},$.parser.parseOptions(_4b1,["validType","missingMessage","invalidMessage","tipPosition",{delay:"number",deltaX:"number"}]),{required:(t.attr("required")?true:undefined),novalidate:(t.attr("novalidate")!=undefined?true:undefined)});
+};
+$.fn.validatebox.defaults={required:false,validType:null,validParams:null,delay:200,missingMessage:"This field is required.",invalidMessage:null,tipPosition:"right",deltaX:0,novalidate:false,events:{focus:_488,blur:_48c,mouseenter:_490,mouseleave:_493,click:function(e){
+var t=$(e.data.target);
+if(!t.is(":focus")){
+t.trigger("focus");
+}
+}},tipOptions:{showEvent:"none",hideEvent:"none",showDelay:0,hideDelay:0,zIndex:"",onShow:function(){
+$(this).tooltip("tip").css({color:"#000",borderColor:"#CC9933",backgroundColor:"#FFFFCC"});
+},onHide:function(){
+$(this).tooltip("destroy");
+}},rules:{email:{validator:function(_4b2){
+return /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(_4b2);
+},message:"Please enter a valid email address."},url:{validator:function(_4b3){
+return /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(_4b3);
+},message:"Please enter a valid URL."},length:{validator:function(_4b4,_4b5){
+var len=$.trim(_4b4).length;
+return len>=_4b5[0]&&len<=_4b5[1];
+},message:"Please enter a value between {0} and {1}."},remote:{validator:function(_4b6,_4b7){
+var data={};
+data[_4b7[1]]=_4b6;
+var _4b8=$.ajax({url:_4b7[0],dataType:"json",data:data,async:false,cache:false,type:"post"}).responseText;
+return _4b8=="true";
+},message:"Please fix this field."}},onBeforeValidate:function(){
+},onValidate:function(_4b9){
+}};
+})(jQuery);
+(function($){
+function init(_4ba){
+$(_4ba).addClass("textbox-f").hide();
+var span=$("<span class=\"textbox\">"+"<input class=\"textbox-text\" autocomplete=\"off\">"+"<input type=\"hidden\" class=\"textbox-value\">"+"</span>").insertAfter(_4ba);
+var name=$(_4ba).attr("name");
+if(name){
+span.find("input.textbox-value").attr("name",name);
+$(_4ba).removeAttr("name").attr("textboxName",name);
+}
+return span;
+};
+function _4bb(_4bc){
+var _4bd=$.data(_4bc,"textbox");
+var opts=_4bd.options;
+var tb=_4bd.textbox;
+tb.find(".textbox-text").remove();
+if(opts.multiline){
+$("<textarea class=\"textbox-text\" autocomplete=\"off\"></textarea>").prependTo(tb);
+}else{
+$("<input type=\""+opts.type+"\" class=\"textbox-text\" autocomplete=\"off\">").prependTo(tb);
+}
+tb.find(".textbox-addon").remove();
+var bb=opts.icons?$.extend(true,[],opts.icons):[];
+if(opts.iconCls){
+bb.push({iconCls:opts.iconCls,disabled:true});
+}
+if(bb.length){
+var bc=$("<span class=\"textbox-addon\"></span>").prependTo(tb);
+bc.addClass("textbox-addon-"+opts.iconAlign);
+for(var i=0;i<bb.length;i++){
+bc.append("<a href=\"javascript:void(0)\" class=\"textbox-icon "+bb[i].iconCls+"\" icon-index=\""+i+"\" tabindex=\"-1\"></a>");
+}
+}
+tb.find(".textbox-button").remove();
+if(opts.buttonText||opts.buttonIcon){
+var btn=$("<a href=\"javascript:void(0)\" class=\"textbox-button\"></a>").prependTo(tb);
+btn.addClass("textbox-button-"+opts.buttonAlign).linkbutton({text:opts.buttonText,iconCls:opts.buttonIcon});
+}
+_4be(_4bc,opts.disabled);
+_4bf(_4bc,opts.readonly);
+};
+function _4c0(_4c1){
+var tb=$.data(_4c1,"textbox").textbox;
+tb.find(".textbox-text").validatebox("destroy");
+tb.remove();
+$(_4c1).remove();
+};
+function _4c2(_4c3,_4c4){
+var _4c5=$.data(_4c3,"textbox");
+var opts=_4c5.options;
+var tb=_4c5.textbox;
+var _4c6=tb.parent();
+if(_4c4){
+opts.width=_4c4;
+}
+if(isNaN(parseInt(opts.width))){
+var c=$(_4c3).clone();
+c.css("visibility","hidden");
+c.insertAfter(_4c3);
+opts.width=c.outerWidth();
+c.remove();
+}
+var _4c7=tb.is(":visible");
+if(!_4c7){
+tb.appendTo("body");
+}
+var _4c8=tb.find(".textbox-text");
+var btn=tb.find(".textbox-button");
+var _4c9=tb.find(".textbox-addon");
+var _4ca=_4c9.find(".textbox-icon");
+tb._size(opts,_4c6);
+btn.linkbutton("resize",{height:tb.height()});
+btn.css({left:(opts.buttonAlign=="left"?0:""),right:(opts.buttonAlign=="right"?0:"")});
+_4c9.css({left:(opts.iconAlign=="left"?(opts.buttonAlign=="left"?btn._outerWidth():0):""),right:(opts.iconAlign=="right"?(opts.buttonAlign=="right"?btn._outerWidth():0):"")});
+_4ca.css({width:opts.iconWidth+"px",height:tb.height()+"px"});
+_4c8.css({paddingLeft:(_4c3.style.paddingLeft||""),paddingRight:(_4c3.style.paddingRight||""),marginLeft:_4cb("left"),marginRight:_4cb("right")});
+if(opts.multiline){
+_4c8.css({paddingTop:(_4c3.style.paddingTop||""),paddingBottom:(_4c3.style.paddingBottom||"")});
+_4c8._outerHeight(tb.height());
+}else{
+var _4cc=Math.floor((tb.height()-_4c8.height())/2);
+_4c8.css({paddingTop:_4cc+"px",paddingBottom:_4cc+"px"});
+}
+_4c8._outerWidth(tb.width()-_4ca.length*opts.iconWidth-btn._outerWidth());
+if(!_4c7){
+tb.insertAfter(_4c3);
+}
+opts.onResize.call(_4c3,opts.width,opts.height);
+function _4cb(_4cd){
+return (opts.iconAlign==_4cd?_4c9._outerWidth():0)+(opts.buttonAlign==_4cd?btn._outerWidth():0);
+};
+};
+function _4ce(_4cf){
+var opts=$(_4cf).textbox("options");
+var _4d0=$(_4cf).textbox("textbox");
+_4d0.validatebox($.extend({},opts,{deltaX:$(_4cf).textbox("getTipX"),onBeforeValidate:function(){
+var box=$(this);
+if(!box.is(":focus")){
+opts.oldInputValue=box.val();
+box.val(opts.value);
+}
+},onValidate:function(_4d1){
+var box=$(this);
+if(opts.oldInputValue!=undefined){
+box.val(opts.oldInputValue);
+opts.oldInputValue=undefined;
+}
+var tb=box.parent();
+if(_4d1){
+tb.removeClass("textbox-invalid");
+}else{
+tb.addClass("textbox-invalid");
+}
+}}));
+};
+function _4d2(_4d3){
+var _4d4=$.data(_4d3,"textbox");
+var opts=_4d4.options;
+var tb=_4d4.textbox;
+var _4d5=tb.find(".textbox-text");
+_4d5.attr("placeholder",opts.prompt);
+_4d5.unbind(".textbox");
+if(!opts.disabled&&!opts.readonly){
+_4d5.bind("blur.textbox",function(e){
+if(!tb.hasClass("textbox-focused")){
+return;
+}
+opts.value=$(this).val();
+if(opts.value==""){
+$(this).val(opts.prompt).addClass("textbox-prompt");
+}else{
+$(this).removeClass("textbox-prompt");
+}
+tb.removeClass("textbox-focused");
+}).bind("focus.textbox",function(e){
+if(tb.hasClass("textbox-focused")){
+return;
+}
+if($(this).val()!=opts.value){
+$(this).val(opts.value);
+}
+$(this).removeClass("textbox-prompt");
+tb.addClass("textbox-focused");
+});
+for(var _4d6 in opts.inputEvents){
+_4d5.bind(_4d6+".textbox",{target:_4d3},opts.inputEvents[_4d6]);
+}
+}
+var _4d7=tb.find(".textbox-addon");
+_4d7.unbind().bind("click",{target:_4d3},function(e){
+var icon=$(e.target).closest("a.textbox-icon:not(.textbox-icon-disabled)");
+if(icon.length){
+var _4d8=parseInt(icon.attr("icon-index"));
+var conf=opts.icons[_4d8];
+if(conf&&conf.handler){
+conf.handler.call(icon[0],e);
+opts.onClickIcon.call(_4d3,_4d8);
+}
+}
+});
+_4d7.find(".textbox-icon").each(function(_4d9){
+var conf=opts.icons[_4d9];
+var icon=$(this);
+if(!conf||conf.disabled||opts.disabled||opts.readonly){
+icon.addClass("textbox-icon-disabled");
+}else{
+icon.removeClass("textbox-icon-disabled");
+}
+});
+var btn=tb.find(".textbox-button");
+btn.unbind(".textbox").bind("click.textbox",function(){
+if(!btn.linkbutton("options").disabled){
+opts.onClickButton.call(_4d3);
+}
+});
+btn.linkbutton((opts.disabled||opts.readonly)?"disable":"enable");
+tb.unbind(".textbox").bind("_resize.textbox",function(e,_4da){
+if($(this).hasClass("easyui-fluid")||_4da){
+_4c2(_4d3);
+}
+return false;
+});
+};
+function _4be(_4db,_4dc){
+var _4dd=$.data(_4db,"textbox");
+var opts=_4dd.options;
+var tb=_4dd.textbox;
+if(_4dc){
+opts.disabled=true;
+$(_4db).attr("disabled","disabled");
+tb.addClass("textbox-disabled");
+tb.find(".textbox-text,.textbox-value").attr("disabled","disabled");
+}else{
+opts.disabled=false;
+tb.removeClass("textbox-disabled");
+$(_4db).removeAttr("disabled");
+tb.find(".textbox-text,.textbox-value").removeAttr("disabled");
+}
+};
+function _4bf(_4de,mode){
+var _4df=$.data(_4de,"textbox");
+var opts=_4df.options;
+opts.readonly=mode==undefined?true:mode;
+_4df.textbox.removeClass("textbox-readonly").addClass(opts.readonly?"textbox-readonly":"");
+var _4e0=_4df.textbox.find(".textbox-text");
+_4e0.removeAttr("readonly");
+if(opts.readonly||!opts.editable){
+_4e0.attr("readonly","readonly");
+}
+};
+$.fn.textbox=function(_4e1,_4e2){
+if(typeof _4e1=="string"){
+var _4e3=$.fn.textbox.methods[_4e1];
+if(_4e3){
+return _4e3(this,_4e2);
+}else{
+return this.each(function(){
+var _4e4=$(this).textbox("textbox");
+_4e4.validatebox(_4e1,_4e2);
+});
+}
+}
+_4e1=_4e1||{};
+return this.each(function(){
+var _4e5=$.data(this,"textbox");
+if(_4e5){
+$.extend(_4e5.options,_4e1);
+if(_4e1.value!=undefined){
+_4e5.options.originalValue=_4e1.value;
+}
+}else{
+_4e5=$.data(this,"textbox",{options:$.extend({},$.fn.textbox.defaults,$.fn.textbox.parseOptions(this),_4e1),textbox:init(this)});
+_4e5.options.originalValue=_4e5.options.value;
+}
+_4bb(this);
+_4d2(this);
+_4c2(this);
+_4ce(this);
+$(this).textbox("initValue",_4e5.options.value);
+});
+};
+$.fn.textbox.methods={options:function(jq){
+return $.data(jq[0],"textbox").options;
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+var t=$(this);
+if(t.data("textbox")){
+return;
+}
+if(!$(from).data("textbox")){
+$(from).textbox();
+}
+var name=t.attr("name")||"";
+t.addClass("textbox-f").hide();
+t.removeAttr("name").attr("textboxName",name);
+var span=$(from).next().clone().insertAfter(t);
+span.find("input.textbox-value").attr("name",name);
+$.data(this,"textbox",{options:$.extend(true,{},$(from).textbox("options")),textbox:span});
+var _4e6=$(from).textbox("button");
+if(_4e6.length){
+t.textbox("button").linkbutton($.extend(true,{},_4e6.linkbutton("options")));
+}
+_4d2(this);
+_4ce(this);
+});
+},textbox:function(jq){
+return $.data(jq[0],"textbox").textbox.find(".textbox-text");
+},button:function(jq){
+return $.data(jq[0],"textbox").textbox.find(".textbox-button");
+},destroy:function(jq){
+return jq.each(function(){
+_4c0(this);
+});
+},resize:function(jq,_4e7){
+return jq.each(function(){
+_4c2(this,_4e7);
+});
+},disable:function(jq){
+return jq.each(function(){
+_4be(this,true);
+_4d2(this);
+});
+},enable:function(jq){
+return jq.each(function(){
+_4be(this,false);
+_4d2(this);
+});
+},readonly:function(jq,mode){
+return jq.each(function(){
+_4bf(this,mode);
+_4d2(this);
+});
+},isValid:function(jq){
+return jq.textbox("textbox").validatebox("isValid");
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("setValue","");
+});
+},setText:function(jq,_4e8){
+return jq.each(function(){
+var opts=$(this).textbox("options");
+var _4e9=$(this).textbox("textbox");
+_4e8=_4e8==undefined?"":String(_4e8);
+if($(this).textbox("getText")!=_4e8){
+_4e9.val(_4e8);
+}
+opts.value=_4e8;
+if(!_4e9.is(":focus")){
+if(_4e8){
+_4e9.removeClass("textbox-prompt");
+}else{
+_4e9.val(opts.prompt).addClass("textbox-prompt");
+}
+}
+$(this).textbox("validate");
+});
+},initValue:function(jq,_4ea){
+return jq.each(function(){
+var _4eb=$.data(this,"textbox");
+_4eb.options.value="";
+$(this).textbox("setText",_4ea);
+_4eb.textbox.find(".textbox-value").val(_4ea);
+$(this).val(_4ea);
+});
+},setValue:function(jq,_4ec){
+return jq.each(function(){
+var opts=$.data(this,"textbox").options;
+var _4ed=$(this).textbox("getValue");
+$(this).textbox("initValue",_4ec);
+if(_4ed!=_4ec){
+opts.onChange.call(this,_4ec,_4ed);
+$(this).closest("form").trigger("_change",[this]);
+}
+});
+},getText:function(jq){
+var _4ee=jq.textbox("textbox");
+if(_4ee.is(":focus")){
+return _4ee.val();
+}else{
+return jq.textbox("options").value;
+}
+},getValue:function(jq){
+return jq.data("textbox").textbox.find(".textbox-value").val();
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).textbox("options");
+$(this).textbox("setValue",opts.originalValue);
+});
+},getIcon:function(jq,_4ef){
+return jq.data("textbox").textbox.find(".textbox-icon:eq("+_4ef+")");
+},getTipX:function(jq){
+var _4f0=jq.data("textbox");
+var opts=_4f0.options;
+var tb=_4f0.textbox;
+var _4f1=tb.find(".textbox-text");
+var _4f2=tb.find(".textbox-addon")._outerWidth();
+var _4f3=tb.find(".textbox-button")._outerWidth();
+if(opts.tipPosition=="right"){
+return (opts.iconAlign=="right"?_4f2:0)+(opts.buttonAlign=="right"?_4f3:0)+1;
+}else{
+if(opts.tipPosition=="left"){
+return (opts.iconAlign=="left"?-_4f2:0)+(opts.buttonAlign=="left"?-_4f3:0)-1;
+}else{
+return _4f2/2*(opts.iconAlign=="right"?1:-1);
+}
+}
+}};
+$.fn.textbox.parseOptions=function(_4f4){
+var t=$(_4f4);
+return $.extend({},$.fn.validatebox.parseOptions(_4f4),$.parser.parseOptions(_4f4,["prompt","iconCls","iconAlign","buttonText","buttonIcon","buttonAlign",{multiline:"boolean",editable:"boolean",iconWidth:"number"}]),{value:(t.val()||undefined),type:(t.attr("type")?t.attr("type"):undefined),disabled:(t.attr("disabled")?true:undefined),readonly:(t.attr("readonly")?true:undefined)});
+};
+$.fn.textbox.defaults=$.extend({},$.fn.validatebox.defaults,{width:"auto",height:22,prompt:"",value:"",type:"text",multiline:false,editable:true,disabled:false,readonly:false,icons:[],iconCls:null,iconAlign:"right",iconWidth:18,buttonText:"",buttonIcon:null,buttonAlign:"right",inputEvents:{blur:function(e){
+var t=$(e.data.target);
+var opts=t.textbox("options");
+t.textbox("setValue",opts.value);
+},keydown:function(e){
+if(e.keyCode==13){
+var t=$(e.data.target);
+t.textbox("setValue",t.textbox("getText"));
+}
+}},onChange:function(_4f5,_4f6){
+},onResize:function(_4f7,_4f8){
+},onClickButton:function(){
+},onClickIcon:function(_4f9){
+}});
+})(jQuery);
+(function($){
+var _4fa=0;
+function _4fb(_4fc){
+var _4fd=$.data(_4fc,"filebox");
+var opts=_4fd.options;
+opts.fileboxId="filebox_file_id_"+(++_4fa);
+$(_4fc).addClass("filebox-f").textbox(opts);
+$(_4fc).textbox("textbox").attr("readonly","readonly");
+_4fd.filebox=$(_4fc).next().addClass("filebox");
+var file=_4fe(_4fc);
+var btn=$(_4fc).filebox("button");
+if(btn.length){
+$("<label class=\"filebox-label\" for=\""+opts.fileboxId+"\"></label>").appendTo(btn);
+if(btn.linkbutton("options").disabled){
+file.attr("disabled","disabled");
+}else{
+file.removeAttr("disabled");
+}
+}
+};
+function _4fe(_4ff){
+var _500=$.data(_4ff,"filebox");
+var opts=_500.options;
+_500.filebox.find(".textbox-value").remove();
+opts.oldValue="";
+var file=$("<input type=\"file\" class=\"textbox-value\">").appendTo(_500.filebox);
+file.attr("id",opts.fileboxId).attr("name",$(_4ff).attr("textboxName")||"");
+file.change(function(){
+$(_4ff).filebox("setText",this.value);
+opts.onChange.call(_4ff,this.value,opts.oldValue);
+opts.oldValue=this.value;
+});
+return file;
+};
+$.fn.filebox=function(_501,_502){
+if(typeof _501=="string"){
+var _503=$.fn.filebox.methods[_501];
+if(_503){
+return _503(this,_502);
+}else{
+return this.textbox(_501,_502);
+}
+}
+_501=_501||{};
+return this.each(function(){
+var _504=$.data(this,"filebox");
+if(_504){
+$.extend(_504.options,_501);
+}else{
+$.data(this,"filebox",{options:$.extend({},$.fn.filebox.defaults,$.fn.filebox.parseOptions(this),_501)});
+}
+_4fb(this);
+});
+};
+$.fn.filebox.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"filebox").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("clear");
+_4fe(this);
+});
+},reset:function(jq){
+return jq.each(function(){
+$(this).filebox("clear");
+});
+}};
+$.fn.filebox.parseOptions=function(_505){
+return $.extend({},$.fn.textbox.parseOptions(_505),{});
+};
+$.fn.filebox.defaults=$.extend({},$.fn.textbox.defaults,{buttonIcon:null,buttonText:"Choose File",buttonAlign:"right",inputEvents:{}});
+})(jQuery);
+(function($){
+function _506(_507){
+var _508=$.data(_507,"searchbox");
+var opts=_508.options;
+var _509=$.extend(true,[],opts.icons);
+_509.push({iconCls:"searchbox-button",handler:function(e){
+var t=$(e.data.target);
+var opts=t.searchbox("options");
+opts.searcher.call(e.data.target,t.searchbox("getValue"),t.searchbox("getName"));
+}});
+_50a();
+var _50b=_50c();
+$(_507).addClass("searchbox-f").textbox($.extend({},opts,{icons:_509,buttonText:(_50b?_50b.text:"")}));
+$(_507).attr("searchboxName",$(_507).attr("textboxName"));
+_508.searchbox=$(_507).next();
+_508.searchbox.addClass("searchbox");
+_50d(_50b);
+function _50a(){
+if(opts.menu){
+_508.menu=$(opts.menu).menu();
+var _50e=_508.menu.menu("options");
+var _50f=_50e.onClick;
+_50e.onClick=function(item){
+_50d(item);
+_50f.call(this,item);
+};
+}else{
+if(_508.menu){
+_508.menu.menu("destroy");
+}
+_508.menu=null;
+}
+};
+function _50c(){
+if(_508.menu){
+var item=_508.menu.children("div.menu-item:first");
+_508.menu.children("div.menu-item").each(function(){
+var _510=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)});
+if(_510.selected){
+item=$(this);
+return false;
+}
+});
+return _508.menu.menu("getItem",item[0]);
+}else{
+return null;
+}
+};
+function _50d(item){
+if(!item){
+return;
+}
+$(_507).textbox("button").menubutton({text:item.text,iconCls:(item.iconCls||null),menu:_508.menu,menuAlign:opts.buttonAlign,plain:false});
+_508.searchbox.find("input.textbox-value").attr("name",item.name||item.text);
+$(_507).searchbox("resize");
+};
+};
+$.fn.searchbox=function(_511,_512){
+if(typeof _511=="string"){
+var _513=$.fn.searchbox.methods[_511];
+if(_513){
+return _513(this,_512);
+}else{
+return this.textbox(_511,_512);
+}
+}
+_511=_511||{};
+return this.each(function(){
+var _514=$.data(this,"searchbox");
+if(_514){
+$.extend(_514.options,_511);
+}else{
+$.data(this,"searchbox",{options:$.extend({},$.fn.searchbox.defaults,$.fn.searchbox.parseOptions(this),_511)});
+}
+_506(this);
+});
+};
+$.fn.searchbox.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"searchbox").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},menu:function(jq){
+return $.data(jq[0],"searchbox").menu;
+},getName:function(jq){
+return $.data(jq[0],"searchbox").searchbox.find("input.textbox-value").attr("name");
+},selectName:function(jq,name){
+return jq.each(function(){
+var menu=$.data(this,"searchbox").menu;
+if(menu){
+menu.children("div.menu-item").each(function(){
+var item=menu.menu("getItem",this);
+if(item.name==name){
+$(this).triggerHandler("click");
+return false;
+}
+});
+}
+});
+},destroy:function(jq){
+return jq.each(function(){
+var menu=$(this).searchbox("menu");
+if(menu){
+menu.menu("destroy");
+}
+$(this).textbox("destroy");
+});
+}};
+$.fn.searchbox.parseOptions=function(_515){
+var t=$(_515);
+return $.extend({},$.fn.textbox.parseOptions(_515),$.parser.parseOptions(_515,["menu"]),{searcher:(t.attr("searcher")?eval(t.attr("searcher")):undefined)});
+};
+$.fn.searchbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{keydown:function(e){
+if(e.keyCode==13){
+e.preventDefault();
+var t=$(e.data.target);
+var opts=t.searchbox("options");
+t.searchbox("setValue",$(this).val());
+opts.searcher.call(e.data.target,t.searchbox("getValue"),t.searchbox("getName"));
+return false;
+}
+}}),buttonAlign:"left",menu:null,searcher:function(_516,name){
+}});
+})(jQuery);
+(function($){
+function _517(_518,_519){
+var opts=$.data(_518,"form").options;
+$.extend(opts,_519||{});
+var _51a=$.extend({},opts.queryParams);
+if(opts.onSubmit.call(_518,_51a)==false){
+return;
+}
+$(_518).find(".textbox-text:focus").blur();
+var _51b="easyui_frame_"+(new Date().getTime());
+var _51c=$("<iframe id="+_51b+" name="+_51b+"></iframe>").appendTo("body");
+_51c.attr("src",window.ActiveXObject?"javascript:false":"about:blank");
+_51c.css({position:"absolute",top:-1000,left:-1000});
+_51c.bind("load",cb);
+_51d(_51a);
+function _51d(_51e){
+var form=$(_518);
+if(opts.url){
+form.attr("action",opts.url);
+}
+var t=form.attr("target"),a=form.attr("action");
+form.attr("target",_51b);
+var _51f=$();
+try{
+for(var n in _51e){
+var _520=$("<input type=\"hidden\" name=\""+n+"\">").val(_51e[n]).appendTo(form);
+_51f=_51f.add(_520);
+}
+_521();
+form[0].submit();
+}
+finally{
+form.attr("action",a);
+t?form.attr("target",t):form.removeAttr("target");
+_51f.remove();
+}
+};
+function _521(){
+var f=$("#"+_51b);
+if(!f.length){
+return;
+}
+try{
+var s=f.contents()[0].readyState;
+if(s&&s.toLowerCase()=="uninitialized"){
+setTimeout(_521,100);
+}
+}
+catch(e){
+cb();
+}
+};
+var _522=10;
+function cb(){
+var f=$("#"+_51b);
+if(!f.length){
+return;
+}
+f.unbind();
+var data="";
+try{
+var body=f.contents().find("body");
+data=body.html();
+if(data==""){
+if(--_522){
+setTimeout(cb,100);
+return;
+}
+}
+var ta=body.find(">textarea");
+if(ta.length){
+data=ta.val();
+}else{
+var pre=body.find(">pre");
+if(pre.length){
+data=pre.html();
+}
+}
+}
+catch(e){
+}
+opts.success(data);
+setTimeout(function(){
+f.unbind();
+f.remove();
+},100);
+};
+};
+function load(_523,data){
+var opts=$.data(_523,"form").options;
+if(typeof data=="string"){
+var _524={};
+if(opts.onBeforeLoad.call(_523,_524)==false){
+return;
+}
+$.ajax({url:data,data:_524,dataType:"json",success:function(data){
+_525(data);
+},error:function(){
+opts.onLoadError.apply(_523,arguments);
+}});
+}else{
+_525(data);
+}
+function _525(data){
+var form=$(_523);
+for(var name in data){
+var val=data[name];
+if(!_526(name,val)){
+if(!_527(name,val)){
+form.find("input[name=\""+name+"\"]").val(val);
+form.find("textarea[name=\""+name+"\"]").val(val);
+form.find("select[name=\""+name+"\"]").val(val);
+}
+}
+}
+opts.onLoadSuccess.call(_523,data);
+form.form("validate");
+};
+function _526(name,val){
+var cc=$(_523).find("[switchbuttonName=\""+name+"\"]");
+if(cc.length){
+cc.switchbutton("uncheck");
+cc.each(function(){
+if(_528($(this).switchbutton("options").value,val)){
+$(this).switchbutton("check");
+}
+});
+return true;
+}
+cc=$(_523).find("input[name=\""+name+"\"][type=radio], input[name=\""+name+"\"][type=checkbox]");
+if(cc.length){
+cc._propAttr("checked",false);
+cc.each(function(){
+if(_528($(this).val(),val)){
+$(this)._propAttr("checked",true);
+}
+});
+return true;
+}
+return false;
+};
+function _528(v,val){
+if(v==String(val)||$.inArray(v,$.isArray(val)?val:[val])>=0){
+return true;
+}else{
+return false;
+}
+};
+function _527(name,val){
+var _529=$(_523).find("[textboxName=\""+name+"\"],[sliderName=\""+name+"\"]");
+if(_529.length){
+for(var i=0;i<opts.fieldTypes.length;i++){
+var type=opts.fieldTypes[i];
+var _52a=_529.data(type);
+if(_52a){
+if(_52a.options.multiple||_52a.options.range){
+_529[type]("setValues",val);
+}else{
+_529[type]("setValue",val);
+}
+return true;
+}
+}
+}
+return false;
+};
+};
+function _52b(_52c){
+$("input,select,textarea",_52c).each(function(){
+var t=this.type,tag=this.tagName.toLowerCase();
+if(t=="text"||t=="hidden"||t=="password"||tag=="textarea"){
+this.value="";
+}else{
+if(t=="file"){
+var file=$(this);
+if(!file.hasClass("textbox-value")){
+var _52d=file.clone().val("");
+_52d.insertAfter(file);
+if(file.data("validatebox")){
+file.validatebox("destroy");
+_52d.validatebox();
+}else{
+file.remove();
+}
+}
+}else{
+if(t=="checkbox"||t=="radio"){
+this.checked=false;
+}else{
+if(tag=="select"){
+this.selectedIndex=-1;
+}
+}
+}
+}
+});
+var form=$(_52c);
+var opts=$.data(_52c,"form").options;
+for(var i=opts.fieldTypes.length-1;i>=0;i--){
+var type=opts.fieldTypes[i];
+var _52e=form.find("."+type+"-f");
+if(_52e.length&&_52e[type]){
+_52e[type]("clear");
+}
+}
+form.form("validate");
+};
+function _52f(_530){
+_530.reset();
+var form=$(_530);
+var opts=$.data(_530,"form").options;
+for(var i=opts.fieldTypes.length-1;i>=0;i--){
+var type=opts.fieldTypes[i];
+var _531=form.find("."+type+"-f");
+if(_531.length&&_531[type]){
+_531[type]("reset");
+}
+}
+form.form("validate");
+};
+function _532(_533){
+var _534=$.data(_533,"form").options;
+$(_533).unbind(".form");
+if(_534.ajax){
+$(_533).bind("submit.form",function(){
+setTimeout(function(){
+_517(_533,_534);
+},0);
+return false;
+});
+}
+$(_533).bind("_change.form",function(e,t){
+_534.onChange.call(this,t);
+}).bind("change.form",function(e){
+var t=e.target;
+if(!$(t).hasClass("textbox-text")){
+_534.onChange.call(this,t);
+}
+});
+_535(_533,_534.novalidate);
+};
+function _536(_537,_538){
+_538=_538||{};
+var _539=$.data(_537,"form");
+if(_539){
+$.extend(_539.options,_538);
+}else{
+$.data(_537,"form",{options:$.extend({},$.fn.form.defaults,$.fn.form.parseOptions(_537),_538)});
+}
+};
+function _53a(_53b){
+if($.fn.validatebox){
+var t=$(_53b);
+t.find(".validatebox-text:not(:disabled)").validatebox("validate");
+var _53c=t.find(".validatebox-invalid");
+_53c.filter(":not(:disabled):first").focus();
+return _53c.length==0;
+}
+return true;
+};
+function _535(_53d,_53e){
+var opts=$.data(_53d,"form").options;
+opts.novalidate=_53e;
+$(_53d).find(".validatebox-text:not(:disabled)").validatebox(_53e?"disableValidation":"enableValidation");
+};
+$.fn.form=function(_53f,_540){
+if(typeof _53f=="string"){
+this.each(function(){
+_536(this);
+});
+return $.fn.form.methods[_53f](this,_540);
+}
+return this.each(function(){
+_536(this,_53f);
+_532(this);
+});
+};
+$.fn.form.methods={options:function(jq){
+return $.data(jq[0],"form").options;
+},submit:function(jq,_541){
+return jq.each(function(){
+_517(this,_541);
+});
+},load:function(jq,data){
+return jq.each(function(){
+load(this,data);
+});
+},clear:function(jq){
+return jq.each(function(){
+_52b(this);
+});
+},reset:function(jq){
+return jq.each(function(){
+_52f(this);
+});
+},validate:function(jq){
+return _53a(jq[0]);
+},disableValidation:function(jq){
+return jq.each(function(){
+_535(this,true);
+});
+},enableValidation:function(jq){
+return jq.each(function(){
+_535(this,false);
+});
+}};
+$.fn.form.parseOptions=function(_542){
+var t=$(_542);
+return $.extend({},$.parser.parseOptions(_542,[{ajax:"boolean"}]),{url:(t.attr("action")?t.attr("action"):undefined)});
+};
+$.fn.form.defaults={fieldTypes:["combobox","combotree","combogrid","datetimebox","datebox","combo","datetimespinner","timespinner","numberspinner","spinner","slider","searchbox","numberbox","textbox","switchbutton"],novalidate:false,ajax:true,url:null,queryParams:{},onSubmit:function(_543){
+return $(this).form("validate");
+},success:function(data){
+},onBeforeLoad:function(_544){
+},onLoadSuccess:function(data){
+},onLoadError:function(){
+},onChange:function(_545){
+}};
+})(jQuery);
+(function($){
+function _546(_547){
+var _548=$.data(_547,"numberbox");
+var opts=_548.options;
+$(_547).addClass("numberbox-f").textbox(opts);
+$(_547).textbox("textbox").css({imeMode:"disabled"});
+$(_547).attr("numberboxName",$(_547).attr("textboxName"));
+_548.numberbox=$(_547).next();
+_548.numberbox.addClass("numberbox");
+var _549=opts.parser.call(_547,opts.value);
+var _54a=opts.formatter.call(_547,_549);
+$(_547).numberbox("initValue",_549).numberbox("setText",_54a);
+};
+function _54b(_54c,_54d){
+var _54e=$.data(_54c,"numberbox");
+var opts=_54e.options;
+var _54d=opts.parser.call(_54c,_54d);
+var text=opts.formatter.call(_54c,_54d);
+opts.value=_54d;
+$(_54c).textbox("setText",text).textbox("setValue",_54d);
+text=opts.formatter.call(_54c,$(_54c).textbox("getValue"));
+$(_54c).textbox("setText",text);
+};
+$.fn.numberbox=function(_54f,_550){
+if(typeof _54f=="string"){
+var _551=$.fn.numberbox.methods[_54f];
+if(_551){
+return _551(this,_550);
+}else{
+return this.textbox(_54f,_550);
+}
+}
+_54f=_54f||{};
+return this.each(function(){
+var _552=$.data(this,"numberbox");
+if(_552){
+$.extend(_552.options,_54f);
+}else{
+_552=$.data(this,"numberbox",{options:$.extend({},$.fn.numberbox.defaults,$.fn.numberbox.parseOptions(this),_54f)});
+}
+_546(this);
+});
+};
+$.fn.numberbox.methods={options:function(jq){
+var opts=jq.data("textbox")?jq.textbox("options"):{};
+return $.extend($.data(jq[0],"numberbox").options,{width:opts.width,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},fix:function(jq){
+return jq.each(function(){
+$(this).numberbox("setValue",$(this).numberbox("getText"));
+});
+},setValue:function(jq,_553){
+return jq.each(function(){
+_54b(this,_553);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("clear");
+$(this).numberbox("options").value="";
+});
+},reset:function(jq){
+return jq.each(function(){
+$(this).textbox("reset");
+$(this).numberbox("setValue",$(this).numberbox("getValue"));
+});
+}};
+$.fn.numberbox.parseOptions=function(_554){
+var t=$(_554);
+return $.extend({},$.fn.textbox.parseOptions(_554),$.parser.parseOptions(_554,["decimalSeparator","groupSeparator","suffix",{min:"number",max:"number",precision:"number"}]),{prefix:(t.attr("prefix")?t.attr("prefix"):undefined)});
+};
+$.fn.numberbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{keypress:function(e){
+var _555=e.data.target;
+var opts=$(_555).numberbox("options");
+return opts.filter.call(_555,e);
+},blur:function(e){
+var _556=e.data.target;
+$(_556).numberbox("setValue",$(_556).numberbox("getText"));
+},keydown:function(e){
+if(e.keyCode==13){
+var _557=e.data.target;
+$(_557).numberbox("setValue",$(_557).numberbox("getText"));
+}
+}},min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",filter:function(e){
+var opts=$(this).numberbox("options");
+var s=$(this).numberbox("getText");
+if(e.which==13){
+return true;
+}
+if(e.which==45){
+return (s.indexOf("-")==-1?true:false);
+}
+var c=String.fromCharCode(e.which);
+if(c==opts.decimalSeparator){
+return (s.indexOf(c)==-1?true:false);
+}else{
+if(c==opts.groupSeparator){
+return true;
+}else{
+if((e.which>=48&&e.which<=57&&e.ctrlKey==false&&e.shiftKey==false)||e.which==0||e.which==8){
+return true;
+}else{
+if(e.ctrlKey==true&&(e.which==99||e.which==118)){
+return true;
+}else{
+return false;
+}
+}
+}
+}
+},formatter:function(_558){
+if(!_558){
+return _558;
+}
+_558=_558+"";
+var opts=$(this).numberbox("options");
+var s1=_558,s2="";
+var dpos=_558.indexOf(".");
+if(dpos>=0){
+s1=_558.substring(0,dpos);
+s2=_558.substring(dpos+1,_558.length);
+}
+if(opts.groupSeparator){
+var p=/(\d+)(\d{3})/;
+while(p.test(s1)){
+s1=s1.replace(p,"$1"+opts.groupSeparator+"$2");
+}
+}
+if(s2){
+return opts.prefix+s1+opts.decimalSeparator+s2+opts.suffix;
+}else{
+return opts.prefix+s1+opts.suffix;
+}
+},parser:function(s){
+s=s+"";
+var opts=$(this).numberbox("options");
+if(parseFloat(s)!=s){
+if(opts.prefix){
+s=$.trim(s.replace(new RegExp("\\"+$.trim(opts.prefix),"g"),""));
+}
+if(opts.suffix){
+s=$.trim(s.replace(new RegExp("\\"+$.trim(opts.suffix),"g"),""));
+}
+if(opts.groupSeparator){
+s=$.trim(s.replace(new RegExp("\\"+opts.groupSeparator,"g"),""));
+}
+if(opts.decimalSeparator){
+s=$.trim(s.replace(new RegExp("\\"+opts.decimalSeparator,"g"),"."));
+}
+s=s.replace(/\s/g,"");
+}
+var val=parseFloat(s).toFixed(opts.precision);
+if(isNaN(val)){
+val="";
+}else{
+if(typeof (opts.min)=="number"&&val<opts.min){
+val=opts.min.toFixed(opts.precision);
+}else{
+if(typeof (opts.max)=="number"&&val>opts.max){
+val=opts.max.toFixed(opts.precision);
+}
+}
+}
+return val;
+}});
+})(jQuery);
+(function($){
+function _559(_55a,_55b){
+var opts=$.data(_55a,"calendar").options;
+var t=$(_55a);
+if(_55b){
+$.extend(opts,{width:_55b.width,height:_55b.height});
+}
+t._size(opts,t.parent());
+t.find(".calendar-body")._outerHeight(t.height()-t.find(".calendar-header")._outerHeight());
+if(t.find(".calendar-menu").is(":visible")){
+_55c(_55a);
+}
+};
+function init(_55d){
+$(_55d).addClass("calendar").html("<div class=\"calendar-header\">"+"<div class=\"calendar-nav calendar-prevmonth\"></div>"+"<div class=\"calendar-nav calendar-nextmonth\"></div>"+"<div class=\"calendar-nav calendar-prevyear\"></div>"+"<div class=\"calendar-nav calendar-nextyear\"></div>"+"<div class=\"calendar-title\">"+"<span class=\"calendar-text\"></span>"+"</div>"+"</div>"+"<div class=\"calendar-body\">"+"<div class=\"calendar-menu\">"+"<div class=\"calendar-menu-year-inner\">"+"<span class=\"calendar-nav calendar-menu-prev\"></span>"+"<span><input class=\"calendar-menu-year\" type=\"text\"></input></span>"+"<span class=\"calendar-nav calendar-menu-next\"></span>"+"</div>"+"<div class=\"calendar-menu-month-inner\">"+"</div>"+"</div>"+"</div>");
+$(_55d).bind("_resize",function(e,_55e){
+if($(this).hasClass("easyui-fluid")||_55e){
+_559(_55d);
+}
+return false;
+});
+};
+function _55f(_560){
+var opts=$.data(_560,"calendar").options;
+var menu=$(_560).find(".calendar-menu");
+menu.find(".calendar-menu-year").unbind(".calendar").bind("keypress.calendar",function(e){
+if(e.keyCode==13){
+_561(true);
+}
+});
+$(_560).unbind(".calendar").bind("mouseover.calendar",function(e){
+var t=_562(e.target);
+if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
+t.addClass("calendar-nav-hover");
+}
+}).bind("mouseout.calendar",function(e){
+var t=_562(e.target);
+if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
+t.removeClass("calendar-nav-hover");
+}
+}).bind("click.calendar",function(e){
+var t=_562(e.target);
+if(t.hasClass("calendar-menu-next")||t.hasClass("calendar-nextyear")){
+_563(1);
+}else{
+if(t.hasClass("calendar-menu-prev")||t.hasClass("calendar-prevyear")){
+_563(-1);
+}else{
+if(t.hasClass("calendar-menu-month")){
+menu.find(".calendar-selected").removeClass("calendar-selected");
+t.addClass("calendar-selected");
+_561(true);
+}else{
+if(t.hasClass("calendar-prevmonth")){
+_564(-1);
+}else{
+if(t.hasClass("calendar-nextmonth")){
+_564(1);
+}else{
+if(t.hasClass("calendar-text")){
+if(menu.is(":visible")){
+menu.hide();
+}else{
+_55c(_560);
+}
+}else{
+if(t.hasClass("calendar-day")){
+if(t.hasClass("calendar-disabled")){
+return;
+}
+var _565=opts.current;
+t.closest("div.calendar-body").find(".calendar-selected").removeClass("calendar-selected");
+t.addClass("calendar-selected");
+var _566=t.attr("abbr").split(",");
+var y=parseInt(_566[0]);
+var m=parseInt(_566[1]);
+var d=parseInt(_566[2]);
+opts.current=new Date(y,m-1,d);
+opts.onSelect.call(_560,opts.current);
+if(!_565||_565.getTime()!=opts.current.getTime()){
+opts.onChange.call(_560,opts.current,_565);
+}
+if(opts.year!=y||opts.month!=m){
+opts.year=y;
+opts.month=m;
+show(_560);
+}
+}
+}
+}
+}
+}
+}
+}
+});
+function _562(t){
+var day=$(t).closest(".calendar-day");
+if(day.length){
+return day;
+}else{
+return $(t);
+}
+};
+function _561(_567){
+var menu=$(_560).find(".calendar-menu");
+var year=menu.find(".calendar-menu-year").val();
+var _568=menu.find(".calendar-selected").attr("abbr");
+if(!isNaN(year)){
+opts.year=parseInt(year);
+opts.month=parseInt(_568);
+show(_560);
+}
+if(_567){
+menu.hide();
+}
+};
+function _563(_569){
+opts.year+=_569;
+show(_560);
+menu.find(".calendar-menu-year").val(opts.year);
+};
+function _564(_56a){
+opts.month+=_56a;
+if(opts.month>12){
+opts.year++;
+opts.month=1;
+}else{
+if(opts.month<1){
+opts.year--;
+opts.month=12;
+}
+}
+show(_560);
+menu.find("td.calendar-selected").removeClass("calendar-selected");
+menu.find("td:eq("+(opts.month-1)+")").addClass("calendar-selected");
+};
+};
+function _55c(_56b){
+var opts=$.data(_56b,"calendar").options;
+$(_56b).find(".calendar-menu").show();
+if($(_56b).find(".calendar-menu-month-inner").is(":empty")){
+$(_56b).find(".calendar-menu-month-inner").empty();
+var t=$("<table class=\"calendar-mtable\"></table>").appendTo($(_56b).find(".calendar-menu-month-inner"));
+var idx=0;
+for(var i=0;i<3;i++){
+var tr=$("<tr></tr>").appendTo(t);
+for(var j=0;j<4;j++){
+$("<td class=\"calendar-nav calendar-menu-month\"></td>").html(opts.months[idx++]).attr("abbr",idx).appendTo(tr);
+}
+}
+}
+var body=$(_56b).find(".calendar-body");
+var sele=$(_56b).find(".calendar-menu");
+var _56c=sele.find(".calendar-menu-year-inner");
+var _56d=sele.find(".calendar-menu-month-inner");
+_56c.find("input").val(opts.year).focus();
+_56d.find("td.calendar-selected").removeClass("calendar-selected");
+_56d.find("td:eq("+(opts.month-1)+")").addClass("calendar-selected");
+sele._outerWidth(body._outerWidth());
+sele._outerHeight(body._outerHeight());
+_56d._outerHeight(sele.height()-_56c._outerHeight());
+};
+function _56e(_56f,year,_570){
+var opts=$.data(_56f,"calendar").options;
+var _571=[];
+var _572=new Date(year,_570,0).getDate();
+for(var i=1;i<=_572;i++){
+_571.push([year,_570,i]);
+}
+var _573=[],week=[];
+var _574=-1;
+while(_571.length>0){
+var date=_571.shift();
+week.push(date);
+var day=new Date(date[0],date[1]-1,date[2]).getDay();
+if(_574==day){
+day=0;
+}else{
+if(day==(opts.firstDay==0?7:opts.firstDay)-1){
+_573.push(week);
+week=[];
+}
+}
+_574=day;
+}
+if(week.length){
+_573.push(week);
+}
+var _575=_573[0];
+if(_575.length<7){
+while(_575.length<7){
+var _576=_575[0];
+var date=new Date(_576[0],_576[1]-1,_576[2]-1);
+_575.unshift([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+}else{
+var _576=_575[0];
+var week=[];
+for(var i=1;i<=7;i++){
+var date=new Date(_576[0],_576[1]-1,_576[2]-i);
+week.unshift([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+_573.unshift(week);
+}
+var _577=_573[_573.length-1];
+while(_577.length<7){
+var _578=_577[_577.length-1];
+var date=new Date(_578[0],_578[1]-1,_578[2]+1);
+_577.push([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+if(_573.length<6){
+var _578=_577[_577.length-1];
+var week=[];
+for(var i=1;i<=7;i++){
+var date=new Date(_578[0],_578[1]-1,_578[2]+i);
+week.push([date.getFullYear(),date.getMonth()+1,date.getDate()]);
+}
+_573.push(week);
+}
+return _573;
+};
+function show(_579){
+var opts=$.data(_579,"calendar").options;
+if(opts.current&&!opts.validator.call(_579,opts.current)){
+opts.current=null;
+}
+var now=new Date();
+var _57a=now.getFullYear()+","+(now.getMonth()+1)+","+now.getDate();
+var _57b=opts.current?(opts.current.getFullYear()+","+(opts.current.getMonth()+1)+","+opts.current.getDate()):"";
+var _57c=6-opts.firstDay;
+var _57d=_57c+1;
+if(_57c>=7){
+_57c-=7;
+}
+if(_57d>=7){
+_57d-=7;
+}
+$(_579).find(".calendar-title span").html(opts.months[opts.month-1]+" "+opts.year);
+var body=$(_579).find("div.calendar-body");
+body.children("table").remove();
+var data=["<table class=\"calendar-dtable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"];
+data.push("<thead><tr>");
+for(var i=opts.firstDay;i<opts.weeks.length;i++){
+data.push("<th>"+opts.weeks[i]+"</th>");
+}
+for(var i=0;i<opts.firstDay;i++){
+data.push("<th>"+opts.weeks[i]+"</th>");
+}
+data.push("</tr></thead>");
+data.push("<tbody>");
+var _57e=_56e(_579,opts.year,opts.month);
+for(var i=0;i<_57e.length;i++){
+var week=_57e[i];
+var cls="";
+if(i==0){
+cls="calendar-first";
+}else{
+if(i==_57e.length-1){
+cls="calendar-last";
+}
+}
+data.push("<tr class=\""+cls+"\">");
+for(var j=0;j<week.length;j++){
+var day=week[j];
+var s=day[0]+","+day[1]+","+day[2];
+var _57f=new Date(day[0],parseInt(day[1])-1,day[2]);
+var d=opts.formatter.call(_579,_57f);
+var css=opts.styler.call(_579,_57f);
+var _580="";
+var _581="";
+if(typeof css=="string"){
+_581=css;
+}else{
+if(css){
+_580=css["class"]||"";
+_581=css["style"]||"";
+}
+}
+var cls="calendar-day";
+if(!(opts.year==day[0]&&opts.month==day[1])){
+cls+=" calendar-other-month";
+}
+if(s==_57a){
+cls+=" calendar-today";
+}
+if(s==_57b){
+cls+=" calendar-selected";
+}
+if(j==_57c){
+cls+=" calendar-saturday";
+}else{
+if(j==_57d){
+cls+=" calendar-sunday";
+}
+}
+if(j==0){
+cls+=" calendar-first";
+}else{
+if(j==week.length-1){
+cls+=" calendar-last";
+}
+}
+cls+=" "+_580;
+if(!opts.validator.call(_579,_57f)){
+cls+=" calendar-disabled";
+}
+data.push("<td class=\""+cls+"\" abbr=\""+s+"\" style=\""+_581+"\">"+d+"</td>");
+}
+data.push("</tr>");
+}
+data.push("</tbody>");
+data.push("</table>");
+body.append(data.join(""));
+body.children("table.calendar-dtable").prependTo(body);
+opts.onNavigate.call(_579,opts.year,opts.month);
+};
+$.fn.calendar=function(_582,_583){
+if(typeof _582=="string"){
+return $.fn.calendar.methods[_582](this,_583);
+}
+_582=_582||{};
+return this.each(function(){
+var _584=$.data(this,"calendar");
+if(_584){
+$.extend(_584.options,_582);
+}else{
+_584=$.data(this,"calendar",{options:$.extend({},$.fn.calendar.defaults,$.fn.calendar.parseOptions(this),_582)});
+init(this);
+}
+if(_584.options.border==false){
+$(this).addClass("calendar-noborder");
+}
+_559(this);
+_55f(this);
+show(this);
+$(this).find("div.calendar-menu").hide();
+});
+};
+$.fn.calendar.methods={options:function(jq){
+return $.data(jq[0],"calendar").options;
+},resize:function(jq,_585){
+return jq.each(function(){
+_559(this,_585);
+});
+},moveTo:function(jq,date){
+return jq.each(function(){
+if(!date){
+var now=new Date();
+$(this).calendar({year:now.getFullYear(),month:now.getMonth()+1,current:date});
+return;
+}
+var opts=$(this).calendar("options");
+if(opts.validator.call(this,date)){
+var _586=opts.current;
+$(this).calendar({year:date.getFullYear(),month:date.getMonth()+1,current:date});
+if(!_586||_586.getTime()!=date.getTime()){
+opts.onChange.call(this,opts.current,_586);
+}
+}
+});
+}};
+$.fn.calendar.parseOptions=function(_587){
+var t=$(_587);
+return $.extend({},$.parser.parseOptions(_587,[{firstDay:"number",fit:"boolean",border:"boolean"}]));
+};
+$.fn.calendar.defaults={width:180,height:180,fit:false,border:true,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:new Date().getFullYear(),month:new Date().getMonth()+1,current:(function(){
+var d=new Date();
+return new Date(d.getFullYear(),d.getMonth(),d.getDate());
+})(),formatter:function(date){
+return date.getDate();
+},styler:function(date){
+return "";
+},validator:function(date){
+return true;
+},onSelect:function(date){
+},onChange:function(_588,_589){
+},onNavigate:function(year,_58a){
+}};
+})(jQuery);
+(function($){
+function _58b(_58c){
+var _58d=$.data(_58c,"spinner");
+var opts=_58d.options;
+var _58e=$.extend(true,[],opts.icons);
+_58e.push({iconCls:"spinner-arrow",handler:function(e){
+_58f(e);
+}});
+$(_58c).addClass("spinner-f").textbox($.extend({},opts,{icons:_58e}));
+var _590=$(_58c).textbox("getIcon",_58e.length-1);
+_590.append("<a href=\"javascript:void(0)\" class=\"spinner-arrow-up\" tabindex=\"-1\"></a>");
+_590.append("<a href=\"javascript:void(0)\" class=\"spinner-arrow-down\" tabindex=\"-1\"></a>");
+$(_58c).attr("spinnerName",$(_58c).attr("textboxName"));
+_58d.spinner=$(_58c).next();
+_58d.spinner.addClass("spinner");
+};
+function _58f(e){
+var _591=e.data.target;
+var opts=$(_591).spinner("options");
+var up=$(e.target).closest("a.spinner-arrow-up");
+if(up.length){
+opts.spin.call(_591,false);
+opts.onSpinUp.call(_591);
+$(_591).spinner("validate");
+}
+var down=$(e.target).closest("a.spinner-arrow-down");
+if(down.length){
+opts.spin.call(_591,true);
+opts.onSpinDown.call(_591);
+$(_591).spinner("validate");
+}
+};
+$.fn.spinner=function(_592,_593){
+if(typeof _592=="string"){
+var _594=$.fn.spinner.methods[_592];
+if(_594){
+return _594(this,_593);
+}else{
+return this.textbox(_592,_593);
+}
+}
+_592=_592||{};
+return this.each(function(){
+var _595=$.data(this,"spinner");
+if(_595){
+$.extend(_595.options,_592);
+}else{
+_595=$.data(this,"spinner",{options:$.extend({},$.fn.spinner.defaults,$.fn.spinner.parseOptions(this),_592)});
+}
+_58b(this);
+});
+};
+$.fn.spinner.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"spinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+}};
+$.fn.spinner.parseOptions=function(_596){
+return $.extend({},$.fn.textbox.parseOptions(_596),$.parser.parseOptions(_596,["min","max",{increment:"number"}]));
+};
+$.fn.spinner.defaults=$.extend({},$.fn.textbox.defaults,{min:null,max:null,increment:1,spin:function(down){
+},onSpinUp:function(){
+},onSpinDown:function(){
+}});
+})(jQuery);
+(function($){
+function _597(_598){
+$(_598).addClass("numberspinner-f");
+var opts=$.data(_598,"numberspinner").options;
+$(_598).numberbox(opts).spinner(opts);
+$(_598).numberbox("setValue",opts.value);
+};
+function _599(_59a,down){
+var opts=$.data(_59a,"numberspinner").options;
+var v=parseFloat($(_59a).numberbox("getValue")||opts.value)||0;
+if(down){
+v-=opts.increment;
+}else{
+v+=opts.increment;
+}
+$(_59a).numberbox("setValue",v);
+};
+$.fn.numberspinner=function(_59b,_59c){
+if(typeof _59b=="string"){
+var _59d=$.fn.numberspinner.methods[_59b];
+if(_59d){
+return _59d(this,_59c);
+}else{
+return this.numberbox(_59b,_59c);
+}
+}
+_59b=_59b||{};
+return this.each(function(){
+var _59e=$.data(this,"numberspinner");
+if(_59e){
+$.extend(_59e.options,_59b);
+}else{
+$.data(this,"numberspinner",{options:$.extend({},$.fn.numberspinner.defaults,$.fn.numberspinner.parseOptions(this),_59b)});
+}
+_597(this);
+});
+};
+$.fn.numberspinner.methods={options:function(jq){
+var opts=jq.numberbox("options");
+return $.extend($.data(jq[0],"numberspinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+}};
+$.fn.numberspinner.parseOptions=function(_59f){
+return $.extend({},$.fn.spinner.parseOptions(_59f),$.fn.numberbox.parseOptions(_59f),{});
+};
+$.fn.numberspinner.defaults=$.extend({},$.fn.spinner.defaults,$.fn.numberbox.defaults,{spin:function(down){
+_599(this,down);
+}});
+})(jQuery);
+(function($){
+function _5a0(_5a1){
+var _5a2=0;
+if(typeof _5a1.selectionStart=="number"){
+_5a2=_5a1.selectionStart;
+}else{
+if(_5a1.createTextRange){
+var _5a3=_5a1.createTextRange();
+var s=document.selection.createRange();
+s.setEndPoint("StartToStart",_5a3);
+_5a2=s.text.length;
+}
+}
+return _5a2;
+};
+function _5a4(_5a5,_5a6,end){
+if(_5a5.setSelectionRange){
+_5a5.setSelectionRange(_5a6,end);
+}else{
+if(_5a5.createTextRange){
+var _5a7=_5a5.createTextRange();
+_5a7.collapse();
+_5a7.moveEnd("character",end);
+_5a7.moveStart("character",_5a6);
+_5a7.select();
+}
+}
+};
+function _5a8(_5a9){
+var opts=$.data(_5a9,"timespinner").options;
+$(_5a9).addClass("timespinner-f").spinner(opts);
+var _5aa=opts.formatter.call(_5a9,opts.parser.call(_5a9,opts.value));
+$(_5a9).timespinner("initValue",_5aa);
+};
+function _5ab(e){
+var _5ac=e.data.target;
+var opts=$.data(_5ac,"timespinner").options;
+var _5ad=_5a0(this);
+for(var i=0;i<opts.selections.length;i++){
+var _5ae=opts.selections[i];
+if(_5ad>=_5ae[0]&&_5ad<=_5ae[1]){
+_5af(_5ac,i);
+return;
+}
+}
+};
+function _5af(_5b0,_5b1){
+var opts=$.data(_5b0,"timespinner").options;
+if(_5b1!=undefined){
+opts.highlight=_5b1;
+}
+var _5b2=opts.selections[opts.highlight];
+if(_5b2){
+var tb=$(_5b0).timespinner("textbox");
+_5a4(tb[0],_5b2[0],_5b2[1]);
+tb.focus();
+}
+};
+function _5b3(_5b4,_5b5){
+var opts=$.data(_5b4,"timespinner").options;
+var _5b5=opts.parser.call(_5b4,_5b5);
+var text=opts.formatter.call(_5b4,_5b5);
+$(_5b4).spinner("setValue",text);
+};
+function _5b6(_5b7,down){
+var opts=$.data(_5b7,"timespinner").options;
+var s=$(_5b7).timespinner("getValue");
+var _5b8=opts.selections[opts.highlight];
+var s1=s.substring(0,_5b8[0]);
+var s2=s.substring(_5b8[0],_5b8[1]);
+var s3=s.substring(_5b8[1]);
+var v=s1+((parseInt(s2,10)||0)+opts.increment*(down?-1:1))+s3;
+$(_5b7).timespinner("setValue",v);
+_5af(_5b7);
+};
+$.fn.timespinner=function(_5b9,_5ba){
+if(typeof _5b9=="string"){
+var _5bb=$.fn.timespinner.methods[_5b9];
+if(_5bb){
+return _5bb(this,_5ba);
+}else{
+return this.spinner(_5b9,_5ba);
+}
+}
+_5b9=_5b9||{};
+return this.each(function(){
+var _5bc=$.data(this,"timespinner");
+if(_5bc){
+$.extend(_5bc.options,_5b9);
+}else{
+$.data(this,"timespinner",{options:$.extend({},$.fn.timespinner.defaults,$.fn.timespinner.parseOptions(this),_5b9)});
+}
+_5a8(this);
+});
+};
+$.fn.timespinner.methods={options:function(jq){
+var opts=jq.data("spinner")?jq.spinner("options"):{};
+return $.extend($.data(jq[0],"timespinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+},setValue:function(jq,_5bd){
+return jq.each(function(){
+_5b3(this,_5bd);
+});
+},getHours:function(jq){
+var opts=$.data(jq[0],"timespinner").options;
+var vv=jq.timespinner("getValue").split(opts.separator);
+return parseInt(vv[0],10);
+},getMinutes:function(jq){
+var opts=$.data(jq[0],"timespinner").options;
+var vv=jq.timespinner("getValue").split(opts.separator);
+return parseInt(vv[1],10);
+},getSeconds:function(jq){
+var opts=$.data(jq[0],"timespinner").options;
+var vv=jq.timespinner("getValue").split(opts.separator);
+return parseInt(vv[2],10)||0;
+}};
+$.fn.timespinner.parseOptions=function(_5be){
+return $.extend({},$.fn.spinner.parseOptions(_5be),$.parser.parseOptions(_5be,["separator",{showSeconds:"boolean",highlight:"number"}]));
+};
+$.fn.timespinner.defaults=$.extend({},$.fn.spinner.defaults,{inputEvents:$.extend({},$.fn.spinner.defaults.inputEvents,{click:function(e){
+_5ab.call(this,e);
+},blur:function(e){
+var t=$(e.data.target);
+t.timespinner("setValue",t.timespinner("getText"));
+},keydown:function(e){
+if(e.keyCode==13){
+var t=$(e.data.target);
+t.timespinner("setValue",t.timespinner("getText"));
+}
+}}),formatter:function(date){
+if(!date){
+return "";
+}
+var opts=$(this).timespinner("options");
+var tt=[_5bf(date.getHours()),_5bf(date.getMinutes())];
+if(opts.showSeconds){
+tt.push(_5bf(date.getSeconds()));
+}
+return tt.join(opts.separator);
+function _5bf(_5c0){
+return (_5c0<10?"0":"")+_5c0;
+};
+},parser:function(s){
+var opts=$(this).timespinner("options");
+var date=_5c1(s);
+if(date){
+var min=_5c1(opts.min);
+var max=_5c1(opts.max);
+if(min&&min>date){
+date=min;
+}
+if(max&&max<date){
+date=max;
+}
+}
+return date;
+function _5c1(s){
+if(!s){
+return null;
+}
+var tt=s.split(opts.separator);
+return new Date(1900,0,0,parseInt(tt[0],10)||0,parseInt(tt[1],10)||0,parseInt(tt[2],10)||0);
+};
+},selections:[[0,2],[3,5],[6,8]],separator:":",showSeconds:false,highlight:0,spin:function(down){
+_5b6(this,down);
+}});
+})(jQuery);
+(function($){
+function _5c2(_5c3){
+var opts=$.data(_5c3,"datetimespinner").options;
+$(_5c3).addClass("datetimespinner-f").timespinner(opts);
+};
+$.fn.datetimespinner=function(_5c4,_5c5){
+if(typeof _5c4=="string"){
+var _5c6=$.fn.datetimespinner.methods[_5c4];
+if(_5c6){
+return _5c6(this,_5c5);
+}else{
+return this.timespinner(_5c4,_5c5);
+}
+}
+_5c4=_5c4||{};
+return this.each(function(){
+var _5c7=$.data(this,"datetimespinner");
+if(_5c7){
+$.extend(_5c7.options,_5c4);
+}else{
+$.data(this,"datetimespinner",{options:$.extend({},$.fn.datetimespinner.defaults,$.fn.datetimespinner.parseOptions(this),_5c4)});
+}
+_5c2(this);
+});
+};
+$.fn.datetimespinner.methods={options:function(jq){
+var opts=jq.timespinner("options");
+return $.extend($.data(jq[0],"datetimespinner").options,{width:opts.width,value:opts.value,originalValue:opts.originalValue,disabled:opts.disabled,readonly:opts.readonly});
+}};
+$.fn.datetimespinner.parseOptions=function(_5c8){
+return $.extend({},$.fn.timespinner.parseOptions(_5c8),$.parser.parseOptions(_5c8,[]));
+};
+$.fn.datetimespinner.defaults=$.extend({},$.fn.timespinner.defaults,{formatter:function(date){
+if(!date){
+return "";
+}
+return $.fn.datebox.defaults.formatter.call(this,date)+" "+$.fn.timespinner.defaults.formatter.call(this,date);
+},parser:function(s){
+s=$.trim(s);
+if(!s){
+return null;
+}
+var dt=s.split(" ");
+var _5c9=$.fn.datebox.defaults.parser.call(this,dt[0]);
+if(dt.length<2){
+return _5c9;
+}
+var _5ca=$.fn.timespinner.defaults.parser.call(this,dt[1]);
+return new Date(_5c9.getFullYear(),_5c9.getMonth(),_5c9.getDate(),_5ca.getHours(),_5ca.getMinutes(),_5ca.getSeconds());
+},selections:[[0,2],[3,5],[6,10],[11,13],[14,16],[17,19]]});
+})(jQuery);
+(function($){
+var _5cb=0;
+function _5cc(a,o){
+for(var i=0,len=a.length;i<len;i++){
+if(a[i]==o){
+return i;
+}
+}
+return -1;
+};
+function _5cd(a,o,id){
+if(typeof o=="string"){
+for(var i=0,len=a.length;i<len;i++){
+if(a[i][o]==id){
+a.splice(i,1);
+return;
+}
+}
+}else{
+var _5ce=_5cc(a,o);
+if(_5ce!=-1){
+a.splice(_5ce,1);
+}
+}
+};
+function _5cf(a,o,r){
+for(var i=0,len=a.length;i<len;i++){
+if(a[i][o]==r[o]){
+return;
+}
+}
+a.push(r);
+};
+function _5d0(_5d1,aa){
+return $.data(_5d1,"treegrid")?aa.slice(1):aa;
+};
+function _5d2(_5d3){
+var _5d4=$.data(_5d3,"datagrid");
+var opts=_5d4.options;
+var _5d5=_5d4.panel;
+var dc=_5d4.dc;
+var ss=null;
+if(opts.sharedStyleSheet){
+ss=typeof opts.sharedStyleSheet=="boolean"?"head":opts.sharedStyleSheet;
+}else{
+ss=_5d5.closest("div.datagrid-view");
+if(!ss.length){
+ss=dc.view;
+}
+}
+var cc=$(ss);
+var _5d6=$.data(cc[0],"ss");
+if(!_5d6){
+_5d6=$.data(cc[0],"ss",{cache:{},dirty:[]});
+}
+return {add:function(_5d7){
+var ss=["<style type=\"text/css\" easyui=\"true\">"];
+for(var i=0;i<_5d7.length;i++){
+_5d6.cache[_5d7[i][0]]={width:_5d7[i][1]};
+}
+var _5d8=0;
+for(var s in _5d6.cache){
+var item=_5d6.cache[s];
+item.index=_5d8++;
+ss.push(s+"{width:"+item.width+"}");
+}
+ss.push("</style>");
+$(ss.join("\n")).appendTo(cc);
+cc.children("style[easyui]:not(:last)").remove();
+},getRule:function(_5d9){
+var _5da=cc.children("style[easyui]:last")[0];
+var _5db=_5da.styleSheet?_5da.styleSheet:(_5da.sheet||document.styleSheets[document.styleSheets.length-1]);
+var _5dc=_5db.cssRules||_5db.rules;
+return _5dc[_5d9];
+},set:function(_5dd,_5de){
+var item=_5d6.cache[_5dd];
+if(item){
+item.width=_5de;
+var rule=this.getRule(item.index);
+if(rule){
+rule.style["width"]=_5de;
+}
+}
+},remove:function(_5df){
+var tmp=[];
+for(var s in _5d6.cache){
+if(s.indexOf(_5df)==-1){
+tmp.push([s,_5d6.cache[s].width]);
+}
+}
+_5d6.cache={};
+this.add(tmp);
+},dirty:function(_5e0){
+if(_5e0){
+_5d6.dirty.push(_5e0);
+}
+},clean:function(){
+for(var i=0;i<_5d6.dirty.length;i++){
+this.remove(_5d6.dirty[i]);
+}
+_5d6.dirty=[];
+}};
+};
+function _5e1(_5e2,_5e3){
+var _5e4=$.data(_5e2,"datagrid");
+var opts=_5e4.options;
+var _5e5=_5e4.panel;
+if(_5e3){
+$.extend(opts,_5e3);
+}
+if(opts.fit==true){
+var p=_5e5.panel("panel").parent();
+opts.width=p.width();
+opts.height=p.height();
+}
+_5e5.panel("resize",opts);
+};
+function _5e6(_5e7){
+var _5e8=$.data(_5e7,"datagrid");
+var opts=_5e8.options;
+var dc=_5e8.dc;
+var wrap=_5e8.panel;
+var _5e9=wrap.width();
+var _5ea=wrap.height();
+var view=dc.view;
+var _5eb=dc.view1;
+var _5ec=dc.view2;
+var _5ed=_5eb.children("div.datagrid-header");
+var _5ee=_5ec.children("div.datagrid-header");
+var _5ef=_5ed.find("table");
+var _5f0=_5ee.find("table");
+view.width(_5e9);
+var _5f1=_5ed.children("div.datagrid-header-inner").show();
+_5eb.width(_5f1.find("table").width());
+if(!opts.showHeader){
+_5f1.hide();
+}
+_5ec.width(_5e9-_5eb._outerWidth());
+_5eb.children()._outerWidth(_5eb.width());
+_5ec.children()._outerWidth(_5ec.width());
+var all=_5ed.add(_5ee).add(_5ef).add(_5f0);
+all.css("height","");
+var hh=Math.max(_5ef.height(),_5f0.height());
+all._outerHeight(hh);
+dc.body1.add(dc.body2).children("table.datagrid-btable-frozen").css({position:"absolute",top:dc.header2._outerHeight()});
+var _5f2=dc.body2.children("table.datagrid-btable-frozen")._outerHeight();
+var _5f3=_5f2+_5ee._outerHeight()+_5ec.children(".datagrid-footer")._outerHeight();
+wrap.children(":not(.datagrid-view,.datagrid-mask,.datagrid-mask-msg)").each(function(){
+_5f3+=$(this)._outerHeight();
+});
+var _5f4=wrap.outerHeight()-wrap.height();
+var _5f5=wrap._size("minHeight")||"";
+var _5f6=wrap._size("maxHeight")||"";
+_5eb.add(_5ec).children("div.datagrid-body").css({marginTop:_5f2,height:(isNaN(parseInt(opts.height))?"":(_5ea-_5f3)),minHeight:(_5f5?_5f5-_5f4-_5f3:""),maxHeight:(_5f6?_5f6-_5f4-_5f3:"")});
+view.height(_5ec.height());
+};
+function _5f7(_5f8,_5f9,_5fa){
+var rows=$.data(_5f8,"datagrid").data.rows;
+var opts=$.data(_5f8,"datagrid").options;
+var dc=$.data(_5f8,"datagrid").dc;
+if(!dc.body1.is(":empty")&&(!opts.nowrap||opts.autoRowHeight||_5fa)){
+if(_5f9!=undefined){
+var tr1=opts.finder.getTr(_5f8,_5f9,"body",1);
+var tr2=opts.finder.getTr(_5f8,_5f9,"body",2);
+_5fb(tr1,tr2);
+}else{
+var tr1=opts.finder.getTr(_5f8,0,"allbody",1);
+var tr2=opts.finder.getTr(_5f8,0,"allbody",2);
+_5fb(tr1,tr2);
+if(opts.showFooter){
+var tr1=opts.finder.getTr(_5f8,0,"allfooter",1);
+var tr2=opts.finder.getTr(_5f8,0,"allfooter",2);
+_5fb(tr1,tr2);
+}
+}
+}
+_5e6(_5f8);
+if(opts.height=="auto"){
+var _5fc=dc.body1.parent();
+var _5fd=dc.body2;
+var _5fe=_5ff(_5fd);
+var _600=_5fe.height;
+if(_5fe.width>_5fd.width()){
+_600+=18;
+}
+_600-=parseInt(_5fd.css("marginTop"))||0;
+_5fc.height(_600);
+_5fd.height(_600);
+dc.view.height(dc.view2.height());
+}
+dc.body2.triggerHandler("scroll");
+function _5fb(trs1,trs2){
+for(var i=0;i<trs2.length;i++){
+var tr1=$(trs1[i]);
+var tr2=$(trs2[i]);
+tr1.css("height","");
+tr2.css("height","");
+var _601=Math.max(tr1.height(),tr2.height());
+tr1.css("height",_601);
+tr2.css("height",_601);
+}
+};
+function _5ff(cc){
+var _602=0;
+var _603=0;
+$(cc).children().each(function(){
+var c=$(this);
+if(c.is(":visible")){
+_603+=c._outerHeight();
+if(_602<c._outerWidth()){
+_602=c._outerWidth();
+}
+}
+});
+return {width:_602,height:_603};
+};
+};
+function _604(_605,_606){
+var _607=$.data(_605,"datagrid");
+var opts=_607.options;
+var dc=_607.dc;
+if(!dc.body2.children("table.datagrid-btable-frozen").length){
+dc.body1.add(dc.body2).prepend("<table class=\"datagrid-btable datagrid-btable-frozen\" cellspacing=\"0\" cellpadding=\"0\"></table>");
+}
+_608(true);
+_608(false);
+_5e6(_605);
+function _608(_609){
+var _60a=_609?1:2;
+var tr=opts.finder.getTr(_605,_606,"body",_60a);
+(_609?dc.body1:dc.body2).children("table.datagrid-btable-frozen").append(tr);
+};
+};
+function _60b(_60c,_60d){
+function _60e(){
+var _60f=[];
+var _610=[];
+$(_60c).children("thead").each(function(){
+var opt=$.parser.parseOptions(this,[{frozen:"boolean"}]);
+$(this).find("tr").each(function(){
+var cols=[];
+$(this).find("th").each(function(){
+var th=$(this);
+var col=$.extend({},$.parser.parseOptions(this,["field","align","halign","order","width",{sortable:"boolean",checkbox:"boolean",resizable:"boolean",fixed:"boolean"},{rowspan:"number",colspan:"number"}]),{title:(th.html()||undefined),hidden:(th.attr("hidden")?true:undefined),formatter:(th.attr("formatter")?eval(th.attr("formatter")):undefined),styler:(th.attr("styler")?eval(th.attr("styler")):undefined),sorter:(th.attr("sorter")?eval(th.attr("sorter")):undefined)});
+if(col.width&&String(col.width).indexOf("%")==-1){
+col.width=parseInt(col.width);
+}
+if(th.attr("editor")){
+var s=$.trim(th.attr("editor"));
+if(s.substr(0,1)=="{"){
+col.editor=eval("("+s+")");
+}else{
+col.editor=s;
+}
+}
+cols.push(col);
+});
+opt.frozen?_60f.push(cols):_610.push(cols);
+});
+});
+return [_60f,_610];
+};
+var _611=$("<div class=\"datagrid-wrap\">"+"<div class=\"datagrid-view\">"+"<div class=\"datagrid-view1\">"+"<div class=\"datagrid-header\">"+"<div class=\"datagrid-header-inner\"></div>"+"</div>"+"<div class=\"datagrid-body\">"+"<div class=\"datagrid-body-inner\"></div>"+"</div>"+"<div class=\"datagrid-footer\">"+"<div class=\"datagrid-footer-inner\"></div>"+"</div>"+"</div>"+"<div class=\"datagrid-view2\">"+"<div class=\"datagrid-header\">"+"<div class=\"datagrid-header-inner\"></div>"+"</div>"+"<div class=\"datagrid-body\"></div>"+"<div class=\"datagrid-footer\">"+"<div class=\"datagrid-footer-inner\"></div>"+"</div>"+"</div>"+"</div>"+"</div>").insertAfter(_60c);
+_611.panel({doSize:false,cls:"datagrid"});
+$(_60c).addClass("datagrid-f").hide().appendTo(_611.children("div.datagrid-view"));
+var cc=_60e();
+var view=_611.children("div.datagrid-view");
+var _612=view.children("div.datagrid-view1");
+var _613=view.children("div.datagrid-view2");
+return {panel:_611,frozenColumns:cc[0],columns:cc[1],dc:{view:view,view1:_612,view2:_613,header1:_612.children("div.datagrid-header").children("div.datagrid-header-inner"),header2:_613.children("div.datagrid-header").children("div.datagrid-header-inner"),body1:_612.children("div.datagrid-body").children("div.datagrid-body-inner"),body2:_613.children("div.datagrid-body"),footer1:_612.children("div.datagrid-footer").children("div.datagrid-footer-inner"),footer2:_613.children("div.datagrid-footer").children("div.datagrid-footer-inner")}};
+};
+function _614(_615){
+var _616=$.data(_615,"datagrid");
+var opts=_616.options;
+var dc=_616.dc;
+var _617=_616.panel;
+_616.ss=$(_615).datagrid("createStyleSheet");
+_617.panel($.extend({},opts,{id:null,doSize:false,onResize:function(_618,_619){
+if($.data(_615,"datagrid")){
+_5e6(_615);
+$(_615).datagrid("fitColumns");
+opts.onResize.call(_617,_618,_619);
+}
+},onExpand:function(){
+if($.data(_615,"datagrid")){
+$(_615).datagrid("fixRowHeight").datagrid("fitColumns");
+opts.onExpand.call(_617);
+}
+}}));
+_616.rowIdPrefix="datagrid-row-r"+(++_5cb);
+_616.cellClassPrefix="datagrid-cell-c"+_5cb;
+_61a(dc.header1,opts.frozenColumns,true);
+_61a(dc.header2,opts.columns,false);
+_61b();
+dc.header1.add(dc.header2).css("display",opts.showHeader?"block":"none");
+dc.footer1.add(dc.footer2).css("display",opts.showFooter?"block":"none");
+if(opts.toolbar){
+if($.isArray(opts.toolbar)){
+$("div.datagrid-toolbar",_617).remove();
+var tb=$("<div class=\"datagrid-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").prependTo(_617);
+var tr=tb.find("tr");
+for(var i=0;i<opts.toolbar.length;i++){
+var btn=opts.toolbar[i];
+if(btn=="-"){
+$("<td><div class=\"datagrid-btn-separator\"></div></td>").appendTo(tr);
+}else{
+var td=$("<td></td>").appendTo(tr);
+var tool=$("<a href=\"javascript:void(0)\"></a>").appendTo(td);
+tool[0].onclick=eval(btn.handler||function(){
+});
+tool.linkbutton($.extend({},btn,{plain:true}));
+}
+}
+}else{
+$(opts.toolbar).addClass("datagrid-toolbar").prependTo(_617);
+$(opts.toolbar).show();
+}
+}else{
+$("div.datagrid-toolbar",_617).remove();
+}
+$("div.datagrid-pager",_617).remove();
+if(opts.pagination){
+var _61c=$("<div class=\"datagrid-pager\"></div>");
+if(opts.pagePosition=="bottom"){
+_61c.appendTo(_617);
+}else{
+if(opts.pagePosition=="top"){
+_61c.addClass("datagrid-pager-top").prependTo(_617);
+}else{
+var ptop=$("<div class=\"datagrid-pager datagrid-pager-top\"></div>").prependTo(_617);
+_61c.appendTo(_617);
+_61c=_61c.add(ptop);
+}
+}
+_61c.pagination({total:(opts.pageNumber*opts.pageSize),pageNumber:opts.pageNumber,pageSize:opts.pageSize,pageList:opts.pageList,onSelectPage:function(_61d,_61e){
+opts.pageNumber=_61d||1;
+opts.pageSize=_61e;
+_61c.pagination("refresh",{pageNumber:_61d,pageSize:_61e});
+_65a(_615);
+}});
+opts.pageSize=_61c.pagination("options").pageSize;
+}
+function _61a(_61f,_620,_621){
+if(!_620){
+return;
+}
+$(_61f).show();
+$(_61f).empty();
+var _622=[];
+var _623=[];
+if(opts.sortName){
+_622=opts.sortName.split(",");
+_623=opts.sortOrder.split(",");
+}
+var t=$("<table class=\"datagrid-htable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody></tbody></table>").appendTo(_61f);
+for(var i=0;i<_620.length;i++){
+var tr=$("<tr class=\"datagrid-header-row\"></tr>").appendTo($("tbody",t));
+var cols=_620[i];
+for(var j=0;j<cols.length;j++){
+var col=cols[j];
+var attr="";
+if(col.rowspan){
+attr+="rowspan=\""+col.rowspan+"\" ";
+}
+if(col.colspan){
+attr+="colspan=\""+col.colspan+"\" ";
+}
+var td=$("<td "+attr+"></td>").appendTo(tr);
+if(col.checkbox){
+td.attr("field",col.field);
+$("<div class=\"datagrid-header-check\"></div>").html("<input type=\"checkbox\"/>").appendTo(td);
+}else{
+if(col.field){
+td.attr("field",col.field);
+td.append("<div class=\"datagrid-cell\"><span></span><span class=\"datagrid-sort-icon\"> </span></div>");
+td.find("span:first").html(col.title);
+var cell=td.find("div.datagrid-cell");
+var pos=_5cc(_622,col.field);
+if(pos>=0){
+cell.addClass("datagrid-sort-"+_623[pos]);
+}
+if(col.sortable){
+cell.addClass("datagrid-sort");
+}
+if(col.resizable==false){
+cell.attr("resizable","false");
+}
+if(col.width){
+var _624=$.parser.parseValue("width",col.width,dc.view,opts.scrollbarSize);
+cell._outerWidth(_624-1);
+col.boxWidth=parseInt(cell[0].style.width);
+col.deltaWidth=_624-col.boxWidth;
+}else{
+col.auto=true;
+}
+cell.css("text-align",(col.halign||col.align||""));
+col.cellClass=_616.cellClassPrefix+"-"+col.field.replace(/[\.|\s]/g,"-");
+cell.addClass(col.cellClass).css("width","");
+}else{
+$("<div class=\"datagrid-cell-group\"></div>").html(col.title).appendTo(td);
+}
+}
+if(col.hidden){
+td.hide();
+}
+}
+}
+if(_621&&opts.rownumbers){
+var td=$("<td rowspan=\""+opts.frozenColumns.length+"\"><div class=\"datagrid-header-rownumber\"></div></td>");
+if($("tr",t).length==0){
+td.wrap("<tr class=\"datagrid-header-row\"></tr>").parent().appendTo($("tbody",t));
+}else{
+td.prependTo($("tr:first",t));
+}
+}
+};
+function _61b(){
+var _625=[];
+var _626=_627(_615,true).concat(_627(_615));
+for(var i=0;i<_626.length;i++){
+var col=_628(_615,_626[i]);
+if(col&&!col.checkbox){
+_625.push(["."+col.cellClass,col.boxWidth?col.boxWidth+"px":"auto"]);
+}
+}
+_616.ss.add(_625);
+_616.ss.dirty(_616.cellSelectorPrefix);
+_616.cellSelectorPrefix="."+_616.cellClassPrefix;
+};
+};
+function _629(_62a){
+var _62b=$.data(_62a,"datagrid");
+var _62c=_62b.panel;
+var opts=_62b.options;
+var dc=_62b.dc;
+var _62d=dc.header1.add(dc.header2);
+_62d.find("input[type=checkbox]").unbind(".datagrid").bind("click.datagrid",function(e){
+if(opts.singleSelect&&opts.selectOnCheck){
+return false;
+}
+if($(this).is(":checked")){
+_6c4(_62a);
+}else{
+_6ca(_62a);
+}
+e.stopPropagation();
+});
+var _62e=_62d.find("div.datagrid-cell");
+_62e.closest("td").unbind(".datagrid").bind("mouseenter.datagrid",function(){
+if(_62b.resizing){
+return;
+}
+$(this).addClass("datagrid-header-over");
+}).bind("mouseleave.datagrid",function(){
+$(this).removeClass("datagrid-header-over");
+}).bind("contextmenu.datagrid",function(e){
+var _62f=$(this).attr("field");
+opts.onHeaderContextMenu.call(_62a,e,_62f);
+});
+_62e.unbind(".datagrid").bind("click.datagrid",function(e){
+var p1=$(this).offset().left+5;
+var p2=$(this).offset().left+$(this)._outerWidth()-5;
+if(e.pageX<p2&&e.pageX>p1){
+_64f(_62a,$(this).parent().attr("field"));
+}
+}).bind("dblclick.datagrid",function(e){
+var p1=$(this).offset().left+5;
+var p2=$(this).offset().left+$(this)._outerWidth()-5;
+var cond=opts.resizeHandle=="right"?(e.pageX>p2):(opts.resizeHandle=="left"?(e.pageX<p1):(e.pageX<p1||e.pageX>p2));
+if(cond){
+var _630=$(this).parent().attr("field");
+var col=_628(_62a,_630);
+if(col.resizable==false){
+return;
+}
+$(_62a).datagrid("autoSizeColumn",_630);
+col.auto=false;
+}
+});
+var _631=opts.resizeHandle=="right"?"e":(opts.resizeHandle=="left"?"w":"e,w");
+_62e.each(function(){
+$(this).resizable({handles:_631,disabled:($(this).attr("resizable")?$(this).attr("resizable")=="false":false),minWidth:25,onStartResize:function(e){
+_62b.resizing=true;
+_62d.css("cursor",$("body").css("cursor"));
+if(!_62b.proxy){
+_62b.proxy=$("<div class=\"datagrid-resize-proxy\"></div>").appendTo(dc.view);
+}
+_62b.proxy.css({left:e.pageX-$(_62c).offset().left-1,display:"none"});
+setTimeout(function(){
+if(_62b.proxy){
+_62b.proxy.show();
+}
+},500);
+},onResize:function(e){
+_62b.proxy.css({left:e.pageX-$(_62c).offset().left-1,display:"block"});
+return false;
+},onStopResize:function(e){
+_62d.css("cursor","");
+$(this).css("height","");
+var _632=$(this).parent().attr("field");
+var col=_628(_62a,_632);
+col.width=$(this)._outerWidth();
+col.boxWidth=col.width-col.deltaWidth;
+col.auto=undefined;
+$(this).css("width","");
+$(_62a).datagrid("fixColumnSize",_632);
+_62b.proxy.remove();
+_62b.proxy=null;
+if($(this).parents("div:first.datagrid-header").parent().hasClass("datagrid-view1")){
+_5e6(_62a);
+}
+$(_62a).datagrid("fitColumns");
+opts.onResizeColumn.call(_62a,_632,col.width);
+setTimeout(function(){
+_62b.resizing=false;
+},0);
+}});
+});
+var bb=dc.body1.add(dc.body2);
+bb.unbind();
+for(var _633 in opts.rowEvents){
+bb.bind(_633,opts.rowEvents[_633]);
+}
+dc.body1.bind("mousewheel DOMMouseScroll",function(e){
+var e1=e.originalEvent||window.event;
+var _634=e1.wheelDelta||e1.detail*(-1);
+var dg=$(e.target).closest("div.datagrid-view").children(".datagrid-f");
+var dc=dg.data("datagrid").dc;
+dc.body2.scrollTop(dc.body2.scrollTop()-_634);
+});
+dc.body2.bind("scroll",function(){
+var b1=dc.view1.children("div.datagrid-body");
+b1.scrollTop($(this).scrollTop());
+var c1=dc.body1.children(":first");
+var c2=dc.body2.children(":first");
+if(c1.length&&c2.length){
+var top1=c1.offset().top;
+var top2=c2.offset().top;
+if(top1!=top2){
+b1.scrollTop(b1.scrollTop()+top1-top2);
+}
+}
+dc.view2.children("div.datagrid-header,div.datagrid-footer")._scrollLeft($(this)._scrollLeft());
+dc.body2.children("table.datagrid-btable-frozen").css("left",-$(this)._scrollLeft());
+});
+};
+function _635(_636){
+return function(e){
+var tr=_637(e.target);
+if(!tr){
+return;
+}
+var _638=_639(tr);
+if($.data(_638,"datagrid").resizing){
+return;
+}
+var _63a=_63b(tr);
+if(_636){
+_63c(_638,_63a);
+}else{
+var opts=$.data(_638,"datagrid").options;
+opts.finder.getTr(_638,_63a).removeClass("datagrid-row-over");
+}
+};
+};
+function _63d(e){
+var tr=_637(e.target);
+if(!tr){
+return;
+}
+var _63e=_639(tr);
+var opts=$.data(_63e,"datagrid").options;
+var _63f=_63b(tr);
+var tt=$(e.target);
+if(tt.parent().hasClass("datagrid-cell-check")){
+if(opts.singleSelect&&opts.selectOnCheck){
+tt._propAttr("checked",!tt.is(":checked"));
+_640(_63e,_63f);
+}else{
+if(tt.is(":checked")){
+tt._propAttr("checked",false);
+_640(_63e,_63f);
+}else{
+tt._propAttr("checked",true);
+_641(_63e,_63f);
+}
+}
+}else{
+var row=opts.finder.getRow(_63e,_63f);
+var td=tt.closest("td[field]",tr);
+if(td.length){
+var _642=td.attr("field");
+opts.onClickCell.call(_63e,_63f,_642,row[_642]);
+}
+if(opts.singleSelect==true){
+_643(_63e,_63f);
+}else{
+if(opts.ctrlSelect){
+if(e.ctrlKey){
+if(tr.hasClass("datagrid-row-selected")){
+_644(_63e,_63f);
+}else{
+_643(_63e,_63f);
+}
+}else{
+if(e.shiftKey){
+$(_63e).datagrid("clearSelections");
+var _645=Math.min(opts.lastSelectedIndex||0,_63f);
+var _646=Math.max(opts.lastSelectedIndex||0,_63f);
+for(var i=_645;i<=_646;i++){
+_643(_63e,i);
+}
+}else{
+$(_63e).datagrid("clearSelections");
+_643(_63e,_63f);
+opts.lastSelectedIndex=_63f;
+}
+}
+}else{
+if(tr.hasClass("datagrid-row-selected")){
+_644(_63e,_63f);
+}else{
+_643(_63e,_63f);
+}
+}
+}
+opts.onClickRow.apply(_63e,_5d0(_63e,[_63f,row]));
+}
+};
+function _647(e){
+var tr=_637(e.target);
+if(!tr){
+return;
+}
+var _648=_639(tr);
+var opts=$.data(_648,"datagrid").options;
+var _649=_63b(tr);
+var row=opts.finder.getRow(_648,_649);
+var td=$(e.target).closest("td[field]",tr);
+if(td.length){
+var _64a=td.attr("field");
+opts.onDblClickCell.call(_648,_649,_64a,row[_64a]);
+}
+opts.onDblClickRow.apply(_648,_5d0(_648,[_649,row]));
+};
+function _64b(e){
+var tr=_637(e.target);
+if(tr){
+var _64c=_639(tr);
+var opts=$.data(_64c,"datagrid").options;
+var _64d=_63b(tr);
+var row=opts.finder.getRow(_64c,_64d);
+opts.onRowContextMenu.call(_64c,e,_64d,row);
+}else{
+var body=_637(e.target,".datagrid-body");
+if(body){
+var _64c=_639(body);
+var opts=$.data(_64c,"datagrid").options;
+opts.onRowContextMenu.call(_64c,e,-1,null);
+}
+}
+};
+function _639(t){
+return $(t).closest("div.datagrid-view").children(".datagrid-f")[0];
+};
+function _637(t,_64e){
+var tr=$(t).closest(_64e||"tr.datagrid-row");
+if(tr.length&&tr.parent().length){
+return tr;
+}else{
+return undefined;
+}
+};
+function _63b(tr){
+if(tr.attr("datagrid-row-index")){
+return parseInt(tr.attr("datagrid-row-index"));
+}else{
+return tr.attr("node-id");
+}
+};
+function _64f(_650,_651){
+var _652=$.data(_650,"datagrid");
+var opts=_652.options;
+_651=_651||{};
+var _653={sortName:opts.sortName,sortOrder:opts.sortOrder};
+if(typeof _651=="object"){
+$.extend(_653,_651);
+}
+var _654=[];
+var _655=[];
+if(_653.sortName){
+_654=_653.sortName.split(",");
+_655=_653.sortOrder.split(",");
+}
+if(typeof _651=="string"){
+var _656=_651;
+var col=_628(_650,_656);
+if(!col.sortable||_652.resizing){
+return;
+}
+var _657=col.order||"asc";
+var pos=_5cc(_654,_656);
+if(pos>=0){
+var _658=_655[pos]=="asc"?"desc":"asc";
+if(opts.multiSort&&_658==_657){
+_654.splice(pos,1);
+_655.splice(pos,1);
+}else{
+_655[pos]=_658;
+}
+}else{
+if(opts.multiSort){
+_654.push(_656);
+_655.push(_657);
+}else{
+_654=[_656];
+_655=[_657];
+}
+}
+_653.sortName=_654.join(",");
+_653.sortOrder=_655.join(",");
+}
+if(opts.onBeforeSortColumn.call(_650,_653.sortName,_653.sortOrder)==false){
+return;
+}
+$.extend(opts,_653);
+var dc=_652.dc;
+var _659=dc.header1.add(dc.header2);
+_659.find("div.datagrid-cell").removeClass("datagrid-sort-asc datagrid-sort-desc");
+for(var i=0;i<_654.length;i++){
+var col=_628(_650,_654[i]);
+_659.find("div."+col.cellClass).addClass("datagrid-sort-"+_655[i]);
+}
+if(opts.remoteSort){
+_65a(_650);
+}else{
+_65b(_650,$(_650).datagrid("getData"));
+}
+opts.onSortColumn.call(_650,opts.sortName,opts.sortOrder);
+};
+function _65c(_65d){
+var _65e=$.data(_65d,"datagrid");
+var opts=_65e.options;
+var dc=_65e.dc;
+var _65f=dc.view2.children("div.datagrid-header");
+dc.body2.css("overflow-x","");
+_660();
+_661();
+_662();
+_660(true);
+if(_65f.width()>=_65f.find("table").width()){
+dc.body2.css("overflow-x","hidden");
+}
+function _662(){
+if(!opts.fitColumns){
+return;
+}
+if(!_65e.leftWidth){
+_65e.leftWidth=0;
+}
+var _663=0;
+var cc=[];
+var _664=_627(_65d,false);
+for(var i=0;i<_664.length;i++){
+var col=_628(_65d,_664[i]);
+if(_665(col)){
+_663+=col.width;
+cc.push({field:col.field,col:col,addingWidth:0});
+}
+}
+if(!_663){
+return;
+}
+cc[cc.length-1].addingWidth-=_65e.leftWidth;
+var _666=_65f.children("div.datagrid-header-inner").show();
+var _667=_65f.width()-_65f.find("table").width()-opts.scrollbarSize+_65e.leftWidth;
+var rate=_667/_663;
+if(!opts.showHeader){
+_666.hide();
+}
+for(var i=0;i<cc.length;i++){
+var c=cc[i];
+var _668=parseInt(c.col.width*rate);
+c.addingWidth+=_668;
+_667-=_668;
+}
+cc[cc.length-1].addingWidth+=_667;
+for(var i=0;i<cc.length;i++){
+var c=cc[i];
+if(c.col.boxWidth+c.addingWidth>0){
+c.col.boxWidth+=c.addingWidth;
+c.col.width+=c.addingWidth;
+}
+}
+_65e.leftWidth=_667;
+$(_65d).datagrid("fixColumnSize");
+};
+function _661(){
+var _669=false;
+var _66a=_627(_65d,true).concat(_627(_65d,false));
+$.map(_66a,function(_66b){
+var col=_628(_65d,_66b);
+if(String(col.width||"").indexOf("%")>=0){
+var _66c=$.parser.parseValue("width",col.width,dc.view,opts.scrollbarSize)-col.deltaWidth;
+if(_66c>0){
+col.boxWidth=_66c;
+_669=true;
+}
+}
+});
+if(_669){
+$(_65d).datagrid("fixColumnSize");
+}
+};
+function _660(fit){
+var _66d=dc.header1.add(dc.header2).find(".datagrid-cell-group");
+if(_66d.length){
+_66d.each(function(){
+$(this)._outerWidth(fit?$(this).parent().width():10);
+});
+if(fit){
+_5e6(_65d);
+}
+}
+};
+function _665(col){
+if(String(col.width||"").indexOf("%")>=0){
+return false;
+}
+if(!col.hidden&&!col.checkbox&&!col.auto&&!col.fixed){
+return true;
+}
+};
+};
+function _66e(_66f,_670){
+var _671=$.data(_66f,"datagrid");
+var opts=_671.options;
+var dc=_671.dc;
+var tmp=$("<div class=\"datagrid-cell\" style=\"position:absolute;left:-9999px\"></div>").appendTo("body");
+if(_670){
+_5e1(_670);
+$(_66f).datagrid("fitColumns");
+}else{
+var _672=false;
+var _673=_627(_66f,true).concat(_627(_66f,false));
+for(var i=0;i<_673.length;i++){
+var _670=_673[i];
+var col=_628(_66f,_670);
+if(col.auto){
+_5e1(_670);
+_672=true;
+}
+}
+if(_672){
+$(_66f).datagrid("fitColumns");
+}
+}
+tmp.remove();
+function _5e1(_674){
+var _675=dc.view.find("div.datagrid-header td[field=\""+_674+"\"] div.datagrid-cell");
+_675.css("width","");
+var col=$(_66f).datagrid("getColumnOption",_674);
+col.width=undefined;
+col.boxWidth=undefined;
+col.auto=true;
+$(_66f).datagrid("fixColumnSize",_674);
+var _676=Math.max(_677("header"),_677("allbody"),_677("allfooter"))+1;
+_675._outerWidth(_676-1);
+col.width=_676;
+col.boxWidth=parseInt(_675[0].style.width);
+col.deltaWidth=_676-col.boxWidth;
+_675.css("width","");
+$(_66f).datagrid("fixColumnSize",_674);
+opts.onResizeColumn.call(_66f,_674,col.width);
+function _677(type){
+var _678=0;
+if(type=="header"){
+_678=_679(_675);
+}else{
+opts.finder.getTr(_66f,0,type).find("td[field=\""+_674+"\"] div.datagrid-cell").each(function(){
+var w=_679($(this));
+if(_678<w){
+_678=w;
+}
+});
+}
+return _678;
+function _679(cell){
+return cell.is(":visible")?cell._outerWidth():tmp.html(cell.html())._outerWidth();
+};
+};
+};
+};
+function _67a(_67b,_67c){
+var _67d=$.data(_67b,"datagrid");
+var opts=_67d.options;
+var dc=_67d.dc;
+var _67e=dc.view.find("table.datagrid-btable,table.datagrid-ftable");
+_67e.css("table-layout","fixed");
+if(_67c){
+fix(_67c);
+}else{
+var ff=_627(_67b,true).concat(_627(_67b,false));
+for(var i=0;i<ff.length;i++){
+fix(ff[i]);
+}
+}
+_67e.css("table-layout","");
+_67f(_67b);
+_5f7(_67b);
+_680(_67b);
+function fix(_681){
+var col=_628(_67b,_681);
+if(col.cellClass){
+_67d.ss.set("."+col.cellClass,col.boxWidth?col.boxWidth+"px":"auto");
+}
+};
+};
+function _67f(_682){
+var dc=$.data(_682,"datagrid").dc;
+dc.view.find("td.datagrid-td-merged").each(function(){
+var td=$(this);
+var _683=td.attr("colspan")||1;
+var col=_628(_682,td.attr("field"));
+var _684=col.boxWidth+col.deltaWidth-1;
+for(var i=1;i<_683;i++){
+td=td.next();
+col=_628(_682,td.attr("field"));
+_684+=col.boxWidth+col.deltaWidth;
+}
+$(this).children("div.datagrid-cell")._outerWidth(_684);
+});
+};
+function _680(_685){
+var dc=$.data(_685,"datagrid").dc;
+dc.view.find("div.datagrid-editable").each(function(){
+var cell=$(this);
+var _686=cell.parent().attr("field");
+var col=$(_685).datagrid("getColumnOption",_686);
+cell._outerWidth(col.boxWidth+col.deltaWidth-1);
+var ed=$.data(this,"datagrid.editor");
+if(ed.actions.resize){
+ed.actions.resize(ed.target,cell.width());
+}
+});
+};
+function _628(_687,_688){
+function find(_689){
+if(_689){
+for(var i=0;i<_689.length;i++){
+var cc=_689[i];
+for(var j=0;j<cc.length;j++){
+var c=cc[j];
+if(c.field==_688){
+return c;
+}
+}
+}
+}
+return null;
+};
+var opts=$.data(_687,"datagrid").options;
+var col=find(opts.columns);
+if(!col){
+col=find(opts.frozenColumns);
+}
+return col;
+};
+function _627(_68a,_68b){
+var opts=$.data(_68a,"datagrid").options;
+var _68c=(_68b==true)?(opts.frozenColumns||[[]]):opts.columns;
+if(_68c.length==0){
+return [];
+}
+var aa=[];
+var _68d=_68e();
+for(var i=0;i<_68c.length;i++){
+aa[i]=new Array(_68d);
+}
+for(var _68f=0;_68f<_68c.length;_68f++){
+$.map(_68c[_68f],function(col){
+var _690=_691(aa[_68f]);
+if(_690>=0){
+var _692=col.field||"";
+for(var c=0;c<(col.colspan||1);c++){
+for(var r=0;r<(col.rowspan||1);r++){
+aa[_68f+r][_690]=_692;
+}
+_690++;
+}
+}
+});
+}
+return aa[aa.length-1];
+function _68e(){
+var _693=0;
+$.map(_68c[0],function(col){
+_693+=col.colspan||1;
+});
+return _693;
+};
+function _691(a){
+for(var i=0;i<a.length;i++){
+if(a[i]==undefined){
+return i;
+}
+}
+return -1;
+};
+};
+function _65b(_694,data){
+var _695=$.data(_694,"datagrid");
+var opts=_695.options;
+var dc=_695.dc;
+data=opts.loadFilter.call(_694,data);
+data.total=parseInt(data.total);
+_695.data=data;
+if(data.footer){
+_695.footer=data.footer;
+}
+if(!opts.remoteSort&&opts.sortName){
+var _696=opts.sortName.split(",");
+var _697=opts.sortOrder.split(",");
+data.rows.sort(function(r1,r2){
+var r=0;
+for(var i=0;i<_696.length;i++){
+var sn=_696[i];
+var so=_697[i];
+var col=_628(_694,sn);
+var _698=col.sorter||function(a,b){
+return a==b?0:(a>b?1:-1);
+};
+r=_698(r1[sn],r2[sn])*(so=="asc"?1:-1);
+if(r!=0){
+return r;
+}
+}
+return r;
+});
+}
+if(opts.view.onBeforeRender){
+opts.view.onBeforeRender.call(opts.view,_694,data.rows);
+}
+opts.view.render.call(opts.view,_694,dc.body2,false);
+opts.view.render.call(opts.view,_694,dc.body1,true);
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,_694,dc.footer2,false);
+opts.view.renderFooter.call(opts.view,_694,dc.footer1,true);
+}
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,_694);
+}
+_695.ss.clean();
+var _699=$(_694).datagrid("getPager");
+if(_699.length){
+var _69a=_699.pagination("options");
+if(_69a.total!=data.total){
+_699.pagination("refresh",{total:data.total});
+if(opts.pageNumber!=_69a.pageNumber&&_69a.pageNumber>0){
+opts.pageNumber=_69a.pageNumber;
+_65a(_694);
+}
+}
+}
+_5f7(_694);
+dc.body2.triggerHandler("scroll");
+$(_694).datagrid("setSelectionState");
+$(_694).datagrid("autoSizeColumn");
+opts.onLoadSuccess.call(_694,data);
+};
+function _69b(_69c){
+var _69d=$.data(_69c,"datagrid");
+var opts=_69d.options;
+var dc=_69d.dc;
+dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked",false);
+if(opts.idField){
+var _69e=$.data(_69c,"treegrid")?true:false;
+var _69f=opts.onSelect;
+var _6a0=opts.onCheck;
+opts.onSelect=opts.onCheck=function(){
+};
+var rows=opts.finder.getRows(_69c);
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var _6a1=_69e?row[opts.idField]:i;
+if(_6a2(_69d.selectedRows,row)){
+_643(_69c,_6a1,true);
+}
+if(_6a2(_69d.checkedRows,row)){
+_640(_69c,_6a1,true);
+}
+}
+opts.onSelect=_69f;
+opts.onCheck=_6a0;
+}
+function _6a2(a,r){
+for(var i=0;i<a.length;i++){
+if(a[i][opts.idField]==r[opts.idField]){
+a[i]=r;
+return true;
+}
+}
+return false;
+};
+};
+function _6a3(_6a4,row){
+var _6a5=$.data(_6a4,"datagrid");
+var opts=_6a5.options;
+var rows=_6a5.data.rows;
+if(typeof row=="object"){
+return _5cc(rows,row);
+}else{
+for(var i=0;i<rows.length;i++){
+if(rows[i][opts.idField]==row){
+return i;
+}
+}
+return -1;
+}
+};
+function _6a6(_6a7){
+var _6a8=$.data(_6a7,"datagrid");
+var opts=_6a8.options;
+var data=_6a8.data;
+if(opts.idField){
+return _6a8.selectedRows;
+}else{
+var rows=[];
+opts.finder.getTr(_6a7,"","selected",2).each(function(){
+rows.push(opts.finder.getRow(_6a7,$(this)));
+});
+return rows;
+}
+};
+function _6a9(_6aa){
+var _6ab=$.data(_6aa,"datagrid");
+var opts=_6ab.options;
+if(opts.idField){
+return _6ab.checkedRows;
+}else{
+var rows=[];
+opts.finder.getTr(_6aa,"","checked",2).each(function(){
+rows.push(opts.finder.getRow(_6aa,$(this)));
+});
+return rows;
+}
+};
+function _6ac(_6ad,_6ae){
+var _6af=$.data(_6ad,"datagrid");
+var dc=_6af.dc;
+var opts=_6af.options;
+var tr=opts.finder.getTr(_6ad,_6ae);
+if(tr.length){
+if(tr.closest("table").hasClass("datagrid-btable-frozen")){
+return;
+}
+var _6b0=dc.view2.children("div.datagrid-header")._outerHeight();
+var _6b1=dc.body2;
+var _6b2=_6b1.outerHeight(true)-_6b1.outerHeight();
+var top=tr.position().top-_6b0-_6b2;
+if(top<0){
+_6b1.scrollTop(_6b1.scrollTop()+top);
+}else{
+if(top+tr._outerHeight()>_6b1.height()-18){
+_6b1.scrollTop(_6b1.scrollTop()+top+tr._outerHeight()-_6b1.height()+18);
+}
+}
+}
+};
+function _63c(_6b3,_6b4){
+var _6b5=$.data(_6b3,"datagrid");
+var opts=_6b5.options;
+opts.finder.getTr(_6b3,_6b5.highlightIndex).removeClass("datagrid-row-over");
+opts.finder.getTr(_6b3,_6b4).addClass("datagrid-row-over");
+_6b5.highlightIndex=_6b4;
+};
+function _643(_6b6,_6b7,_6b8){
+var _6b9=$.data(_6b6,"datagrid");
+var opts=_6b9.options;
+var row=opts.finder.getRow(_6b6,_6b7);
+if(opts.onBeforeSelect.apply(_6b6,_5d0(_6b6,[_6b7,row]))==false){
+return;
+}
+if(opts.singleSelect){
+_6ba(_6b6,true);
+_6b9.selectedRows=[];
+}
+if(!_6b8&&opts.checkOnSelect){
+_640(_6b6,_6b7,true);
+}
+if(opts.idField){
+_5cf(_6b9.selectedRows,opts.idField,row);
+}
+opts.finder.getTr(_6b6,_6b7).addClass("datagrid-row-selected");
+opts.onSelect.apply(_6b6,_5d0(_6b6,[_6b7,row]));
+_6ac(_6b6,_6b7);
+};
+function _644(_6bb,_6bc,_6bd){
+var _6be=$.data(_6bb,"datagrid");
+var dc=_6be.dc;
+var opts=_6be.options;
+var row=opts.finder.getRow(_6bb,_6bc);
+if(opts.onBeforeUnselect.apply(_6bb,_5d0(_6bb,[_6bc,row]))==false){
+return;
+}
+if(!_6bd&&opts.checkOnSelect){
+_641(_6bb,_6bc,true);
+}
+opts.finder.getTr(_6bb,_6bc).removeClass("datagrid-row-selected");
+if(opts.idField){
+_5cd(_6be.selectedRows,opts.idField,row[opts.idField]);
+}
+opts.onUnselect.apply(_6bb,_5d0(_6bb,[_6bc,row]));
+};
+function _6bf(_6c0,_6c1){
+var _6c2=$.data(_6c0,"datagrid");
+var opts=_6c2.options;
+var rows=opts.finder.getRows(_6c0);
+var _6c3=$.data(_6c0,"datagrid").selectedRows;
+if(!_6c1&&opts.checkOnSelect){
+_6c4(_6c0,true);
+}
+opts.finder.getTr(_6c0,"","allbody").addClass("datagrid-row-selected");
+if(opts.idField){
+for(var _6c5=0;_6c5<rows.length;_6c5++){
+_5cf(_6c3,opts.idField,rows[_6c5]);
+}
+}
+opts.onSelectAll.call(_6c0,rows);
+};
+function _6ba(_6c6,_6c7){
+var _6c8=$.data(_6c6,"datagrid");
+var opts=_6c8.options;
+var rows=opts.finder.getRows(_6c6);
+var _6c9=$.data(_6c6,"datagrid").selectedRows;
+if(!_6c7&&opts.checkOnSelect){
+_6ca(_6c6,true);
+}
+opts.finder.getTr(_6c6,"","selected").removeClass("datagrid-row-selected");
+if(opts.idField){
+for(var _6cb=0;_6cb<rows.length;_6cb++){
+_5cd(_6c9,opts.idField,rows[_6cb][opts.idField]);
+}
+}
+opts.onUnselectAll.call(_6c6,rows);
+};
+function _640(_6cc,_6cd,_6ce){
+var _6cf=$.data(_6cc,"datagrid");
+var opts=_6cf.options;
+var row=opts.finder.getRow(_6cc,_6cd);
+if(opts.onBeforeCheck.apply(_6cc,_5d0(_6cc,[_6cd,row]))==false){
+return;
+}
+if(opts.singleSelect&&opts.selectOnCheck){
+_6ca(_6cc,true);
+_6cf.checkedRows=[];
+}
+if(!_6ce&&opts.selectOnCheck){
+_643(_6cc,_6cd,true);
+}
+var tr=opts.finder.getTr(_6cc,_6cd).addClass("datagrid-row-checked");
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
+tr=opts.finder.getTr(_6cc,"","checked",2);
+if(tr.length==opts.finder.getRows(_6cc).length){
+var dc=_6cf.dc;
+dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked",true);
+}
+if(opts.idField){
+_5cf(_6cf.checkedRows,opts.idField,row);
+}
+opts.onCheck.apply(_6cc,_5d0(_6cc,[_6cd,row]));
+};
+function _641(_6d0,_6d1,_6d2){
+var _6d3=$.data(_6d0,"datagrid");
+var opts=_6d3.options;
+var row=opts.finder.getRow(_6d0,_6d1);
+if(opts.onBeforeUncheck.apply(_6d0,_5d0(_6d0,[_6d1,row]))==false){
+return;
+}
+if(!_6d2&&opts.selectOnCheck){
+_644(_6d0,_6d1,true);
+}
+var tr=opts.finder.getTr(_6d0,_6d1).removeClass("datagrid-row-checked");
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",false);
+var dc=_6d3.dc;
+var _6d4=dc.header1.add(dc.header2);
+_6d4.find("input[type=checkbox]")._propAttr("checked",false);
+if(opts.idField){
+_5cd(_6d3.checkedRows,opts.idField,row[opts.idField]);
+}
+opts.onUncheck.apply(_6d0,_5d0(_6d0,[_6d1,row]));
+};
+function _6c4(_6d5,_6d6){
+var _6d7=$.data(_6d5,"datagrid");
+var opts=_6d7.options;
+var rows=opts.finder.getRows(_6d5);
+if(!_6d6&&opts.selectOnCheck){
+_6bf(_6d5,true);
+}
+var dc=_6d7.dc;
+var hck=dc.header1.add(dc.header2).find("input[type=checkbox]");
+var bck=opts.finder.getTr(_6d5,"","allbody").addClass("datagrid-row-checked").find("div.datagrid-cell-check input[type=checkbox]");
+hck.add(bck)._propAttr("checked",true);
+if(opts.idField){
+for(var i=0;i<rows.length;i++){
+_5cf(_6d7.checkedRows,opts.idField,rows[i]);
+}
+}
+opts.onCheckAll.call(_6d5,rows);
+};
+function _6ca(_6d8,_6d9){
+var _6da=$.data(_6d8,"datagrid");
+var opts=_6da.options;
+var rows=opts.finder.getRows(_6d8);
+if(!_6d9&&opts.selectOnCheck){
+_6ba(_6d8,true);
+}
+var dc=_6da.dc;
+var hck=dc.header1.add(dc.header2).find("input[type=checkbox]");
+var bck=opts.finder.getTr(_6d8,"","checked").removeClass("datagrid-row-checked").find("div.datagrid-cell-check input[type=checkbox]");
+hck.add(bck)._propAttr("checked",false);
+if(opts.idField){
+for(var i=0;i<rows.length;i++){
+_5cd(_6da.checkedRows,opts.idField,rows[i][opts.idField]);
+}
+}
+opts.onUncheckAll.call(_6d8,rows);
+};
+function _6db(_6dc,_6dd){
+var opts=$.data(_6dc,"datagrid").options;
+var tr=opts.finder.getTr(_6dc,_6dd);
+var row=opts.finder.getRow(_6dc,_6dd);
+if(tr.hasClass("datagrid-row-editing")){
+return;
+}
+if(opts.onBeforeEdit.apply(_6dc,_5d0(_6dc,[_6dd,row]))==false){
+return;
+}
+tr.addClass("datagrid-row-editing");
+_6de(_6dc,_6dd);
+_680(_6dc);
+tr.find("div.datagrid-editable").each(function(){
+var _6df=$(this).parent().attr("field");
+var ed=$.data(this,"datagrid.editor");
+ed.actions.setValue(ed.target,row[_6df]);
+});
+_6e0(_6dc,_6dd);
+opts.onBeginEdit.apply(_6dc,_5d0(_6dc,[_6dd,row]));
+};
+function _6e1(_6e2,_6e3,_6e4){
+var _6e5=$.data(_6e2,"datagrid");
+var opts=_6e5.options;
+var _6e6=_6e5.updatedRows;
+var _6e7=_6e5.insertedRows;
+var tr=opts.finder.getTr(_6e2,_6e3);
+var row=opts.finder.getRow(_6e2,_6e3);
+if(!tr.hasClass("datagrid-row-editing")){
+return;
+}
+if(!_6e4){
+if(!_6e0(_6e2,_6e3)){
+return;
+}
+var _6e8=false;
+var _6e9={};
+tr.find("div.datagrid-editable").each(function(){
+var _6ea=$(this).parent().attr("field");
+var ed=$.data(this,"datagrid.editor");
+var t=$(ed.target);
+var _6eb=t.data("textbox")?t.textbox("textbox"):t;
+_6eb.triggerHandler("blur");
+var _6ec=ed.actions.getValue(ed.target);
+if(row[_6ea]!=_6ec){
+row[_6ea]=_6ec;
+_6e8=true;
+_6e9[_6ea]=_6ec;
+}
+});
+if(_6e8){
+if(_5cc(_6e7,row)==-1){
+if(_5cc(_6e6,row)==-1){
+_6e6.push(row);
+}
+}
+}
+opts.onEndEdit.apply(_6e2,_5d0(_6e2,[_6e3,row,_6e9]));
+}
+tr.removeClass("datagrid-row-editing");
+_6ed(_6e2,_6e3);
+$(_6e2).datagrid("refreshRow",_6e3);
+if(!_6e4){
+opts.onAfterEdit.apply(_6e2,_5d0(_6e2,[_6e3,row,_6e9]));
+}else{
+opts.onCancelEdit.apply(_6e2,_5d0(_6e2,[_6e3,row]));
+}
+};
+function _6ee(_6ef,_6f0){
+var opts=$.data(_6ef,"datagrid").options;
+var tr=opts.finder.getTr(_6ef,_6f0);
+var _6f1=[];
+tr.children("td").each(function(){
+var cell=$(this).find("div.datagrid-editable");
+if(cell.length){
+var ed=$.data(cell[0],"datagrid.editor");
+_6f1.push(ed);
+}
+});
+return _6f1;
+};
+function _6f2(_6f3,_6f4){
+var _6f5=_6ee(_6f3,_6f4.index!=undefined?_6f4.index:_6f4.id);
+for(var i=0;i<_6f5.length;i++){
+if(_6f5[i].field==_6f4.field){
+return _6f5[i];
+}
+}
+return null;
+};
+function _6de(_6f6,_6f7){
+var opts=$.data(_6f6,"datagrid").options;
+var tr=opts.finder.getTr(_6f6,_6f7);
+tr.children("td").each(function(){
+var cell=$(this).find("div.datagrid-cell");
+var _6f8=$(this).attr("field");
+var col=_628(_6f6,_6f8);
+if(col&&col.editor){
+var _6f9,_6fa;
+if(typeof col.editor=="string"){
+_6f9=col.editor;
+}else{
+_6f9=col.editor.type;
+_6fa=col.editor.options;
+}
+var _6fb=opts.editors[_6f9];
+if(_6fb){
+var _6fc=cell.html();
+var _6fd=cell._outerWidth();
+cell.addClass("datagrid-editable");
+cell._outerWidth(_6fd);
+cell.html("<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr><td></td></tr></table>");
+cell.children("table").bind("click dblclick contextmenu",function(e){
+e.stopPropagation();
+});
+$.data(cell[0],"datagrid.editor",{actions:_6fb,target:_6fb.init(cell.find("td"),_6fa),field:_6f8,type:_6f9,oldHtml:_6fc});
+}
+}
+});
+_5f7(_6f6,_6f7,true);
+};
+function _6ed(_6fe,_6ff){
+var opts=$.data(_6fe,"datagrid").options;
+var tr=opts.finder.getTr(_6fe,_6ff);
+tr.children("td").each(function(){
+var cell=$(this).find("div.datagrid-editable");
+if(cell.length){
+var ed=$.data(cell[0],"datagrid.editor");
+if(ed.actions.destroy){
+ed.actions.destroy(ed.target);
+}
+cell.html(ed.oldHtml);
+$.removeData(cell[0],"datagrid.editor");
+cell.removeClass("datagrid-editable");
+cell.css("width","");
+}
+});
+};
+function _6e0(_700,_701){
+var tr=$.data(_700,"datagrid").options.finder.getTr(_700,_701);
+if(!tr.hasClass("datagrid-row-editing")){
+return true;
+}
+var vbox=tr.find(".validatebox-text");
+vbox.validatebox("validate");
+vbox.trigger("mouseleave");
+var _702=tr.find(".validatebox-invalid");
+return _702.length==0;
+};
+function _703(_704,_705){
+var _706=$.data(_704,"datagrid").insertedRows;
+var _707=$.data(_704,"datagrid").deletedRows;
+var _708=$.data(_704,"datagrid").updatedRows;
+if(!_705){
+var rows=[];
+rows=rows.concat(_706);
+rows=rows.concat(_707);
+rows=rows.concat(_708);
+return rows;
+}else{
+if(_705=="inserted"){
+return _706;
+}else{
+if(_705=="deleted"){
+return _707;
+}else{
+if(_705=="updated"){
+return _708;
+}
+}
+}
+}
+return [];
+};
+function _709(_70a,_70b){
+var _70c=$.data(_70a,"datagrid");
+var opts=_70c.options;
+var data=_70c.data;
+var _70d=_70c.insertedRows;
+var _70e=_70c.deletedRows;
+$(_70a).datagrid("cancelEdit",_70b);
+var row=opts.finder.getRow(_70a,_70b);
+if(_5cc(_70d,row)>=0){
+_5cd(_70d,row);
+}else{
+_70e.push(row);
+}
+_5cd(_70c.selectedRows,opts.idField,row[opts.idField]);
+_5cd(_70c.checkedRows,opts.idField,row[opts.idField]);
+opts.view.deleteRow.call(opts.view,_70a,_70b);
+if(opts.height=="auto"){
+_5f7(_70a);
+}
+$(_70a).datagrid("getPager").pagination("refresh",{total:data.total});
+};
+function _70f(_710,_711){
+var data=$.data(_710,"datagrid").data;
+var view=$.data(_710,"datagrid").options.view;
+var _712=$.data(_710,"datagrid").insertedRows;
+view.insertRow.call(view,_710,_711.index,_711.row);
+_712.push(_711.row);
+$(_710).datagrid("getPager").pagination("refresh",{total:data.total});
+};
+function _713(_714,row){
+var data=$.data(_714,"datagrid").data;
+var view=$.data(_714,"datagrid").options.view;
+var _715=$.data(_714,"datagrid").insertedRows;
+view.insertRow.call(view,_714,null,row);
+_715.push(row);
+$(_714).datagrid("getPager").pagination("refresh",{total:data.total});
+};
+function _716(_717){
+var _718=$.data(_717,"datagrid");
+var data=_718.data;
+var rows=data.rows;
+var _719=[];
+for(var i=0;i<rows.length;i++){
+_719.push($.extend({},rows[i]));
+}
+_718.originalRows=_719;
+_718.updatedRows=[];
+_718.insertedRows=[];
+_718.deletedRows=[];
+};
+function _71a(_71b){
+var data=$.data(_71b,"datagrid").data;
+var ok=true;
+for(var i=0,len=data.rows.length;i<len;i++){
+if(_6e0(_71b,i)){
+$(_71b).datagrid("endEdit",i);
+}else{
+ok=false;
+}
+}
+if(ok){
+_716(_71b);
+}
+};
+function _71c(_71d){
+var _71e=$.data(_71d,"datagrid");
+var opts=_71e.options;
+var _71f=_71e.originalRows;
+var _720=_71e.insertedRows;
+var _721=_71e.deletedRows;
+var _722=_71e.selectedRows;
+var _723=_71e.checkedRows;
+var data=_71e.data;
+function _724(a){
+var ids=[];
+for(var i=0;i<a.length;i++){
+ids.push(a[i][opts.idField]);
+}
+return ids;
+};
+function _725(ids,_726){
+for(var i=0;i<ids.length;i++){
+var _727=_6a3(_71d,ids[i]);
+if(_727>=0){
+(_726=="s"?_643:_640)(_71d,_727,true);
+}
+}
+};
+for(var i=0;i<data.rows.length;i++){
+$(_71d).datagrid("cancelEdit",i);
+}
+var _728=_724(_722);
+var _729=_724(_723);
+_722.splice(0,_722.length);
+_723.splice(0,_723.length);
+data.total+=_721.length-_720.length;
+data.rows=_71f;
+_65b(_71d,data);
+_725(_728,"s");
+_725(_729,"c");
+_716(_71d);
+};
+function _65a(_72a,_72b,cb){
+var opts=$.data(_72a,"datagrid").options;
+if(_72b){
+opts.queryParams=_72b;
+}
+var _72c=$.extend({},opts.queryParams);
+if(opts.pagination){
+$.extend(_72c,{page:opts.pageNumber||1,rows:opts.pageSize});
+}
+if(opts.sortName){
+$.extend(_72c,{sort:opts.sortName,order:opts.sortOrder});
+}
+if(opts.onBeforeLoad.call(_72a,_72c)==false){
+return;
+}
+$(_72a).datagrid("loading");
+var _72d=opts.loader.call(_72a,_72c,function(data){
+$(_72a).datagrid("loaded");
+$(_72a).datagrid("loadData",data);
+if(cb){
+cb();
+}
+},function(){
+$(_72a).datagrid("loaded");
+opts.onLoadError.apply(_72a,arguments);
+});
+if(_72d==false){
+$(_72a).datagrid("loaded");
+}
+};
+function _72e(_72f,_730){
+var opts=$.data(_72f,"datagrid").options;
+_730.type=_730.type||"body";
+_730.rowspan=_730.rowspan||1;
+_730.colspan=_730.colspan||1;
+if(_730.rowspan==1&&_730.colspan==1){
+return;
+}
+var tr=opts.finder.getTr(_72f,(_730.index!=undefined?_730.index:_730.id),_730.type);
+if(!tr.length){
+return;
+}
+var td=tr.find("td[field=\""+_730.field+"\"]");
+td.attr("rowspan",_730.rowspan).attr("colspan",_730.colspan);
+td.addClass("datagrid-td-merged");
+_731(td.next(),_730.colspan-1);
+for(var i=1;i<_730.rowspan;i++){
+tr=tr.next();
+if(!tr.length){
+break;
+}
+td=tr.find("td[field=\""+_730.field+"\"]");
+_731(td,_730.colspan);
+}
+_67f(_72f);
+function _731(td,_732){
+for(var i=0;i<_732;i++){
+td.hide();
+td=td.next();
+}
+};
+};
+$.fn.datagrid=function(_733,_734){
+if(typeof _733=="string"){
+return $.fn.datagrid.methods[_733](this,_734);
+}
+_733=_733||{};
+return this.each(function(){
+var _735=$.data(this,"datagrid");
+var opts;
+if(_735){
+opts=$.extend(_735.options,_733);
+_735.options=opts;
+}else{
+opts=$.extend({},$.extend({},$.fn.datagrid.defaults,{queryParams:{}}),$.fn.datagrid.parseOptions(this),_733);
+$(this).css("width","").css("height","");
+var _736=_60b(this,opts.rownumbers);
+if(!opts.columns){
+opts.columns=_736.columns;
+}
+if(!opts.frozenColumns){
+opts.frozenColumns=_736.frozenColumns;
+}
+opts.columns=$.extend(true,[],opts.columns);
+opts.frozenColumns=$.extend(true,[],opts.frozenColumns);
+opts.view=$.extend({},opts.view);
+$.data(this,"datagrid",{options:opts,panel:_736.panel,dc:_736.dc,ss:null,selectedRows:[],checkedRows:[],data:{total:0,rows:[]},originalRows:[],updatedRows:[],insertedRows:[],deletedRows:[]});
+}
+_614(this);
+_629(this);
+_5e1(this);
+if(opts.data){
+$(this).datagrid("loadData",opts.data);
+}else{
+var data=$.fn.datagrid.parseData(this);
+if(data.total>0){
+$(this).datagrid("loadData",data);
+}else{
+opts.view.renderEmptyRow(this);
+$(this).datagrid("autoSizeColumn");
+}
+}
+_65a(this);
+});
+};
+function _737(_738){
+var _739={};
+$.map(_738,function(name){
+_739[name]=_73a(name);
+});
+return _739;
+function _73a(name){
+function isA(_73b){
+return $.data($(_73b)[0],name)!=undefined;
+};
+return {init:function(_73c,_73d){
+var _73e=$("<input type=\"text\" class=\"datagrid-editable-input\">").appendTo(_73c);
+if(_73e[name]&&name!="text"){
+return _73e[name](_73d);
+}else{
+return _73e;
+}
+},destroy:function(_73f){
+if(isA(_73f,name)){
+$(_73f)[name]("destroy");
+}
+},getValue:function(_740){
+if(isA(_740,name)){
+var opts=$(_740)[name]("options");
+if(opts.multiple){
+return $(_740)[name]("getValues").join(opts.separator);
+}else{
+return $(_740)[name]("getValue");
+}
+}else{
+return $(_740).val();
+}
+},setValue:function(_741,_742){
+if(isA(_741,name)){
+var opts=$(_741)[name]("options");
+if(opts.multiple){
+if(_742){
+$(_741)[name]("setValues",_742.split(opts.separator));
+}else{
+$(_741)[name]("clear");
+}
+}else{
+$(_741)[name]("setValue",_742);
+}
+}else{
+$(_741).val(_742);
+}
+},resize:function(_743,_744){
+if(isA(_743,name)){
+$(_743)[name]("resize",_744);
+}else{
+$(_743)._outerWidth(_744)._outerHeight(22);
+}
+}};
+};
+};
+var _745=$.extend({},_737(["text","textbox","numberbox","numberspinner","combobox","combotree","combogrid","datebox","datetimebox","timespinner","datetimespinner"]),{textarea:{init:function(_746,_747){
+var _748=$("<textarea class=\"datagrid-editable-input\"></textarea>").appendTo(_746);
+return _748;
+},getValue:function(_749){
+return $(_749).val();
+},setValue:function(_74a,_74b){
+$(_74a).val(_74b);
+},resize:function(_74c,_74d){
+$(_74c)._outerWidth(_74d);
+}},checkbox:{init:function(_74e,_74f){
+var _750=$("<input type=\"checkbox\">").appendTo(_74e);
+_750.val(_74f.on);
+_750.attr("offval",_74f.off);
+return _750;
+},getValue:function(_751){
+if($(_751).is(":checked")){
+return $(_751).val();
+}else{
+return $(_751).attr("offval");
+}
+},setValue:function(_752,_753){
+var _754=false;
+if($(_752).val()==_753){
+_754=true;
+}
+$(_752)._propAttr("checked",_754);
+}},validatebox:{init:function(_755,_756){
+var _757=$("<input type=\"text\" class=\"datagrid-editable-input\">").appendTo(_755);
+_757.validatebox(_756);
+return _757;
+},destroy:function(_758){
+$(_758).validatebox("destroy");
+},getValue:function(_759){
+return $(_759).val();
+},setValue:function(_75a,_75b){
+$(_75a).val(_75b);
+},resize:function(_75c,_75d){
+$(_75c)._outerWidth(_75d)._outerHeight(22);
+}}});
+$.fn.datagrid.methods={options:function(jq){
+var _75e=$.data(jq[0],"datagrid").options;
+var _75f=$.data(jq[0],"datagrid").panel.panel("options");
+var opts=$.extend(_75e,{width:_75f.width,height:_75f.height,closed:_75f.closed,collapsed:_75f.collapsed,minimized:_75f.minimized,maximized:_75f.maximized});
+return opts;
+},setSelectionState:function(jq){
+return jq.each(function(){
+_69b(this);
+});
+},createStyleSheet:function(jq){
+return _5d2(jq[0]);
+},getPanel:function(jq){
+return $.data(jq[0],"datagrid").panel;
+},getPager:function(jq){
+return $.data(jq[0],"datagrid").panel.children("div.datagrid-pager");
+},getColumnFields:function(jq,_760){
+return _627(jq[0],_760);
+},getColumnOption:function(jq,_761){
+return _628(jq[0],_761);
+},resize:function(jq,_762){
+return jq.each(function(){
+_5e1(this,_762);
+});
+},load:function(jq,_763){
+return jq.each(function(){
+var opts=$(this).datagrid("options");
+if(typeof _763=="string"){
+opts.url=_763;
+_763=null;
+}
+opts.pageNumber=1;
+var _764=$(this).datagrid("getPager");
+_764.pagination("refresh",{pageNumber:1});
+_65a(this,_763);
+});
+},reload:function(jq,_765){
+return jq.each(function(){
+var opts=$(this).datagrid("options");
+if(typeof _765=="string"){
+opts.url=_765;
+_765=null;
+}
+_65a(this,_765);
+});
+},reloadFooter:function(jq,_766){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+var dc=$.data(this,"datagrid").dc;
+if(_766){
+$.data(this,"datagrid").footer=_766;
+}
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,this,dc.footer2,false);
+opts.view.renderFooter.call(opts.view,this,dc.footer1,true);
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,this);
+}
+$(this).datagrid("fixRowHeight");
+}
+});
+},loading:function(jq){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+$(this).datagrid("getPager").pagination("loading");
+if(opts.loadMsg){
+var _767=$(this).datagrid("getPanel");
+if(!_767.children("div.datagrid-mask").length){
+$("<div class=\"datagrid-mask\" style=\"display:block\"></div>").appendTo(_767);
+var msg=$("<div class=\"datagrid-mask-msg\" style=\"display:block;left:50%\"></div>").html(opts.loadMsg).appendTo(_767);
+msg._outerHeight(40);
+msg.css({marginLeft:(-msg.outerWidth()/2),lineHeight:(msg.height()+"px")});
+}
+}
+});
+},loaded:function(jq){
+return jq.each(function(){
+$(this).datagrid("getPager").pagination("loaded");
+var _768=$(this).datagrid("getPanel");
+_768.children("div.datagrid-mask-msg").remove();
+_768.children("div.datagrid-mask").remove();
+});
+},fitColumns:function(jq){
+return jq.each(function(){
+_65c(this);
+});
+},fixColumnSize:function(jq,_769){
+return jq.each(function(){
+_67a(this,_769);
+});
+},fixRowHeight:function(jq,_76a){
+return jq.each(function(){
+_5f7(this,_76a);
+});
+},freezeRow:function(jq,_76b){
+return jq.each(function(){
+_604(this,_76b);
+});
+},autoSizeColumn:function(jq,_76c){
+return jq.each(function(){
+_66e(this,_76c);
+});
+},loadData:function(jq,data){
+return jq.each(function(){
+_65b(this,data);
+_716(this);
+});
+},getData:function(jq){
+return $.data(jq[0],"datagrid").data;
+},getRows:function(jq){
+return $.data(jq[0],"datagrid").data.rows;
+},getFooterRows:function(jq){
+return $.data(jq[0],"datagrid").footer;
+},getRowIndex:function(jq,id){
+return _6a3(jq[0],id);
+},getChecked:function(jq){
+return _6a9(jq[0]);
+},getSelected:function(jq){
+var rows=_6a6(jq[0]);
+return rows.length>0?rows[0]:null;
+},getSelections:function(jq){
+return _6a6(jq[0]);
+},clearSelections:function(jq){
+return jq.each(function(){
+var _76d=$.data(this,"datagrid");
+var _76e=_76d.selectedRows;
+var _76f=_76d.checkedRows;
+_76e.splice(0,_76e.length);
+_6ba(this);
+if(_76d.options.checkOnSelect){
+_76f.splice(0,_76f.length);
+}
+});
+},clearChecked:function(jq){
+return jq.each(function(){
+var _770=$.data(this,"datagrid");
+var _771=_770.selectedRows;
+var _772=_770.checkedRows;
+_772.splice(0,_772.length);
+_6ca(this);
+if(_770.options.selectOnCheck){
+_771.splice(0,_771.length);
+}
+});
+},scrollTo:function(jq,_773){
+return jq.each(function(){
+_6ac(this,_773);
+});
+},highlightRow:function(jq,_774){
+return jq.each(function(){
+_63c(this,_774);
+_6ac(this,_774);
+});
+},selectAll:function(jq){
+return jq.each(function(){
+_6bf(this);
+});
+},unselectAll:function(jq){
+return jq.each(function(){
+_6ba(this);
+});
+},selectRow:function(jq,_775){
+return jq.each(function(){
+_643(this,_775);
+});
+},selectRecord:function(jq,id){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+if(opts.idField){
+var _776=_6a3(this,id);
+if(_776>=0){
+$(this).datagrid("selectRow",_776);
+}
+}
+});
+},unselectRow:function(jq,_777){
+return jq.each(function(){
+_644(this,_777);
+});
+},checkRow:function(jq,_778){
+return jq.each(function(){
+_640(this,_778);
+});
+},uncheckRow:function(jq,_779){
+return jq.each(function(){
+_641(this,_779);
+});
+},checkAll:function(jq){
+return jq.each(function(){
+_6c4(this);
+});
+},uncheckAll:function(jq){
+return jq.each(function(){
+_6ca(this);
+});
+},beginEdit:function(jq,_77a){
+return jq.each(function(){
+_6db(this,_77a);
+});
+},endEdit:function(jq,_77b){
+return jq.each(function(){
+_6e1(this,_77b,false);
+});
+},cancelEdit:function(jq,_77c){
+return jq.each(function(){
+_6e1(this,_77c,true);
+});
+},getEditors:function(jq,_77d){
+return _6ee(jq[0],_77d);
+},getEditor:function(jq,_77e){
+return _6f2(jq[0],_77e);
+},refreshRow:function(jq,_77f){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+opts.view.refreshRow.call(opts.view,this,_77f);
+});
+},validateRow:function(jq,_780){
+return _6e0(jq[0],_780);
+},updateRow:function(jq,_781){
+return jq.each(function(){
+var opts=$.data(this,"datagrid").options;
+opts.view.updateRow.call(opts.view,this,_781.index,_781.row);
+});
+},appendRow:function(jq,row){
+return jq.each(function(){
+_713(this,row);
+});
+},insertRow:function(jq,_782){
+return jq.each(function(){
+_70f(this,_782);
+});
+},deleteRow:function(jq,_783){
+return jq.each(function(){
+_709(this,_783);
+});
+},getChanges:function(jq,_784){
+return _703(jq[0],_784);
+},acceptChanges:function(jq){
+return jq.each(function(){
+_71a(this);
+});
+},rejectChanges:function(jq){
+return jq.each(function(){
+_71c(this);
+});
+},mergeCells:function(jq,_785){
+return jq.each(function(){
+_72e(this,_785);
+});
+},showColumn:function(jq,_786){
+return jq.each(function(){
+var _787=$(this).datagrid("getPanel");
+_787.find("td[field=\""+_786+"\"]").show();
+$(this).datagrid("getColumnOption",_786).hidden=false;
+$(this).datagrid("fitColumns");
+});
+},hideColumn:function(jq,_788){
+return jq.each(function(){
+var _789=$(this).datagrid("getPanel");
+_789.find("td[field=\""+_788+"\"]").hide();
+$(this).datagrid("getColumnOption",_788).hidden=true;
+$(this).datagrid("fitColumns");
+});
+},sort:function(jq,_78a){
+return jq.each(function(){
+_64f(this,_78a);
+});
+},gotoPage:function(jq,_78b){
+return jq.each(function(){
+var _78c=this;
+var page,cb;
+if(typeof _78b=="object"){
+page=_78b.page;
+cb=_78b.callback;
+}else{
+page=_78b;
+}
+$(_78c).datagrid("options").pageNumber=page;
+$(_78c).datagrid("getPager").pagination("refresh",{pageNumber:page});
+_65a(_78c,null,function(){
+if(cb){
+cb.call(_78c,page);
+}
+});
+});
+}};
+$.fn.datagrid.parseOptions=function(_78d){
+var t=$(_78d);
+return $.extend({},$.fn.panel.parseOptions(_78d),$.parser.parseOptions(_78d,["url","toolbar","idField","sortName","sortOrder","pagePosition","resizeHandle",{sharedStyleSheet:"boolean",fitColumns:"boolean",autoRowHeight:"boolean",striped:"boolean",nowrap:"boolean"},{rownumbers:"boolean",singleSelect:"boolean",ctrlSelect:"boolean",checkOnSelect:"boolean",selectOnCheck:"boolean"},{pagination:"boolean",pageSize:"number",pageNumber:"number"},{multiSort:"boolean",remoteSort:"boolean",showHeader:"boolean",showFooter:"boolean"},{scrollbarSize:"number"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined),loadMsg:(t.attr("loadMsg")!=undefined?t.attr("loadMsg"):undefined),rowStyler:(t.attr("rowStyler")?eval(t.attr("rowStyler")):undefined)});
+};
+$.fn.datagrid.parseData=function(_78e){
+var t=$(_78e);
+var data={total:0,rows:[]};
+var _78f=t.datagrid("getColumnFields",true).concat(t.datagrid("getColumnFields",false));
+t.find("tbody tr").each(function(){
+data.total++;
+var row={};
+$.extend(row,$.parser.parseOptions(this,["iconCls","state"]));
+for(var i=0;i<_78f.length;i++){
+row[_78f[i]]=$(this).find("td:eq("+i+")").html();
+}
+data.rows.push(row);
+});
+return data;
+};
+var _790={render:function(_791,_792,_793){
+var rows=$(_791).datagrid("getRows");
+$(_792).html(this.renderTable(_791,0,rows,_793));
+},renderFooter:function(_794,_795,_796){
+var opts=$.data(_794,"datagrid").options;
+var rows=$.data(_794,"datagrid").footer||[];
+var _797=$(_794).datagrid("getColumnFields",_796);
+var _798=["<table class=\"datagrid-ftable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<rows.length;i++){
+_798.push("<tr class=\"datagrid-row\" datagrid-row-index=\""+i+"\">");
+_798.push(this.renderRow.call(this,_794,_797,_796,i,rows[i]));
+_798.push("</tr>");
+}
+_798.push("</tbody></table>");
+$(_795).html(_798.join(""));
+},renderTable:function(_799,_79a,rows,_79b){
+var _79c=$.data(_799,"datagrid");
+var opts=_79c.options;
+if(_79b){
+if(!(opts.rownumbers||(opts.frozenColumns&&opts.frozenColumns.length))){
+return "";
+}
+}
+var _79d=$(_799).datagrid("getColumnFields",_79b);
+var _79e=["<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var css=opts.rowStyler?opts.rowStyler.call(_799,_79a,row):"";
+var _79f="";
+var _7a0="";
+if(typeof css=="string"){
+_7a0=css;
+}else{
+if(css){
+_79f=css["class"]||"";
+_7a0=css["style"]||"";
+}
+}
+var cls="class=\"datagrid-row "+(_79a%2&&opts.striped?"datagrid-row-alt ":" ")+_79f+"\"";
+var _7a1=_7a0?"style=\""+_7a0+"\"":"";
+var _7a2=_79c.rowIdPrefix+"-"+(_79b?1:2)+"-"+_79a;
+_79e.push("<tr id=\""+_7a2+"\" datagrid-row-index=\""+_79a+"\" "+cls+" "+_7a1+">");
+_79e.push(this.renderRow.call(this,_799,_79d,_79b,_79a,row));
+_79e.push("</tr>");
+_79a++;
+}
+_79e.push("</tbody></table>");
+return _79e.join("");
+},renderRow:function(_7a3,_7a4,_7a5,_7a6,_7a7){
+var opts=$.data(_7a3,"datagrid").options;
+var cc=[];
+if(_7a5&&opts.rownumbers){
+var _7a8=_7a6+1;
+if(opts.pagination){
+_7a8+=(opts.pageNumber-1)*opts.pageSize;
+}
+cc.push("<td class=\"datagrid-td-rownumber\"><div class=\"datagrid-cell-rownumber\">"+_7a8+"</div></td>");
+}
+for(var i=0;i<_7a4.length;i++){
+var _7a9=_7a4[i];
+var col=$(_7a3).datagrid("getColumnOption",_7a9);
+if(col){
+var _7aa=_7a7[_7a9];
+var css=col.styler?(col.styler(_7aa,_7a7,_7a6)||""):"";
+var _7ab="";
+var _7ac="";
+if(typeof css=="string"){
+_7ac=css;
+}else{
+if(css){
+_7ab=css["class"]||"";
+_7ac=css["style"]||"";
+}
+}
+var cls=_7ab?"class=\""+_7ab+"\"":"";
+var _7ad=col.hidden?"style=\"display:none;"+_7ac+"\"":(_7ac?"style=\""+_7ac+"\"":"");
+cc.push("<td field=\""+_7a9+"\" "+cls+" "+_7ad+">");
+var _7ad="";
+if(!col.checkbox){
+if(col.align){
+_7ad+="text-align:"+col.align+";";
+}
+if(!opts.nowrap){
+_7ad+="white-space:normal;height:auto;";
+}else{
+if(opts.autoRowHeight){
+_7ad+="height:auto;";
+}
+}
+}
+cc.push("<div style=\""+_7ad+"\" ");
+cc.push(col.checkbox?"class=\"datagrid-cell-check\"":"class=\"datagrid-cell "+col.cellClass+"\"");
+cc.push(">");
+if(col.checkbox){
+cc.push("<input type=\"checkbox\" "+(_7a7.checked?"checked=\"checked\"":""));
+cc.push(" name=\""+_7a9+"\" value=\""+(_7aa!=undefined?_7aa:"")+"\">");
+}else{
+if(col.formatter){
+cc.push(col.formatter(_7aa,_7a7,_7a6));
+}else{
+cc.push(_7aa);
+}
+}
+cc.push("</div>");
+cc.push("</td>");
+}
+}
+return cc.join("");
+},refreshRow:function(_7ae,_7af){
+this.updateRow.call(this,_7ae,_7af,{});
+},updateRow:function(_7b0,_7b1,row){
+var opts=$.data(_7b0,"datagrid").options;
+var rows=$(_7b0).datagrid("getRows");
+var _7b2=_7b3(_7b1);
+$.extend(rows[_7b1],row);
+var _7b4=_7b3(_7b1);
+var _7b5=_7b2.c;
+var _7b6=_7b4.s;
+var _7b7="datagrid-row "+(_7b1%2&&opts.striped?"datagrid-row-alt ":" ")+_7b4.c;
+function _7b3(_7b8){
+var css=opts.rowStyler?opts.rowStyler.call(_7b0,_7b8,rows[_7b8]):"";
+var _7b9="";
+var _7ba="";
+if(typeof css=="string"){
+_7ba=css;
+}else{
+if(css){
+_7b9=css["class"]||"";
+_7ba=css["style"]||"";
+}
+}
+return {c:_7b9,s:_7ba};
+};
+function _7bb(_7bc){
+var _7bd=$(_7b0).datagrid("getColumnFields",_7bc);
+var tr=opts.finder.getTr(_7b0,_7b1,"body",(_7bc?1:2));
+var _7be=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked");
+tr.html(this.renderRow.call(this,_7b0,_7bd,_7bc,_7b1,rows[_7b1]));
+tr.attr("style",_7b6).removeClass(_7b5).addClass(_7b7);
+if(_7be){
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
+}
+};
+_7bb.call(this,true);
+_7bb.call(this,false);
+$(_7b0).datagrid("fixRowHeight",_7b1);
+},insertRow:function(_7bf,_7c0,row){
+var _7c1=$.data(_7bf,"datagrid");
+var opts=_7c1.options;
+var dc=_7c1.dc;
+var data=_7c1.data;
+if(_7c0==undefined||_7c0==null){
+_7c0=data.rows.length;
+}
+if(_7c0>data.rows.length){
+_7c0=data.rows.length;
+}
+function _7c2(_7c3){
+var _7c4=_7c3?1:2;
+for(var i=data.rows.length-1;i>=_7c0;i--){
+var tr=opts.finder.getTr(_7bf,i,"body",_7c4);
+tr.attr("datagrid-row-index",i+1);
+tr.attr("id",_7c1.rowIdPrefix+"-"+_7c4+"-"+(i+1));
+if(_7c3&&opts.rownumbers){
+var _7c5=i+2;
+if(opts.pagination){
+_7c5+=(opts.pageNumber-1)*opts.pageSize;
+}
+tr.find("div.datagrid-cell-rownumber").html(_7c5);
+}
+if(opts.striped){
+tr.removeClass("datagrid-row-alt").addClass((i+1)%2?"datagrid-row-alt":"");
+}
+}
+};
+function _7c6(_7c7){
+var _7c8=_7c7?1:2;
+var _7c9=$(_7bf).datagrid("getColumnFields",_7c7);
+var _7ca=_7c1.rowIdPrefix+"-"+_7c8+"-"+_7c0;
+var tr="<tr id=\""+_7ca+"\" class=\"datagrid-row\" datagrid-row-index=\""+_7c0+"\"></tr>";
+if(_7c0>=data.rows.length){
+if(data.rows.length){
+opts.finder.getTr(_7bf,"","last",_7c8).after(tr);
+}else{
+var cc=_7c7?dc.body1:dc.body2;
+cc.html("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"+tr+"</tbody></table>");
+}
+}else{
+opts.finder.getTr(_7bf,_7c0+1,"body",_7c8).before(tr);
+}
+};
+_7c2.call(this,true);
+_7c2.call(this,false);
+_7c6.call(this,true);
+_7c6.call(this,false);
+data.total+=1;
+data.rows.splice(_7c0,0,row);
+this.refreshRow.call(this,_7bf,_7c0);
+},deleteRow:function(_7cb,_7cc){
+var _7cd=$.data(_7cb,"datagrid");
+var opts=_7cd.options;
+var data=_7cd.data;
+function _7ce(_7cf){
+var _7d0=_7cf?1:2;
+for(var i=_7cc+1;i<data.rows.length;i++){
+var tr=opts.finder.getTr(_7cb,i,"body",_7d0);
+tr.attr("datagrid-row-index",i-1);
+tr.attr("id",_7cd.rowIdPrefix+"-"+_7d0+"-"+(i-1));
+if(_7cf&&opts.rownumbers){
+var _7d1=i;
+if(opts.pagination){
+_7d1+=(opts.pageNumber-1)*opts.pageSize;
+}
+tr.find("div.datagrid-cell-rownumber").html(_7d1);
+}
+if(opts.striped){
+tr.removeClass("datagrid-row-alt").addClass((i-1)%2?"datagrid-row-alt":"");
+}
+}
+};
+opts.finder.getTr(_7cb,_7cc).remove();
+_7ce.call(this,true);
+_7ce.call(this,false);
+data.total-=1;
+data.rows.splice(_7cc,1);
+},onBeforeRender:function(_7d2,rows){
+},onAfterRender:function(_7d3){
+var _7d4=$.data(_7d3,"datagrid");
+var opts=_7d4.options;
+if(opts.showFooter){
+var _7d5=$(_7d3).datagrid("getPanel").find("div.datagrid-footer");
+_7d5.find("div.datagrid-cell-rownumber,div.datagrid-cell-check").css("visibility","hidden");
+}
+if(opts.finder.getRows(_7d3).length==0){
+this.renderEmptyRow(_7d3);
+}
+},renderEmptyRow:function(_7d6){
+var cols=$.map($(_7d6).datagrid("getColumnFields"),function(_7d7){
+return $(_7d6).datagrid("getColumnOption",_7d7);
+});
+$.map(cols,function(col){
+col.formatter1=col.formatter;
+col.styler1=col.styler;
+col.formatter=col.styler=undefined;
+});
+var _7d8=$.data(_7d6,"datagrid").dc.body2;
+_7d8.html(this.renderTable(_7d6,0,[{}],false));
+_7d8.find("tbody *").css({height:1,borderColor:"transparent",background:"transparent"});
+var tr=_7d8.find(".datagrid-row");
+tr.removeClass("datagrid-row").removeAttr("datagrid-row-index");
+tr.find(".datagrid-cell,.datagrid-cell-check").empty();
+$.map(cols,function(col){
+col.formatter=col.formatter1;
+col.styler=col.styler1;
+col.formatter1=col.styler1=undefined;
+});
+}};
+$.fn.datagrid.defaults=$.extend({},$.fn.panel.defaults,{sharedStyleSheet:false,frozenColumns:undefined,columns:undefined,fitColumns:false,resizeHandle:"right",autoRowHeight:true,toolbar:null,striped:false,method:"post",nowrap:true,idField:null,url:null,data:null,loadMsg:"Processing, please wait ...",rownumbers:false,singleSelect:false,ctrlSelect:false,selectOnCheck:true,checkOnSelect:true,pagination:false,pagePosition:"bottom",pageNumber:1,pageSize:10,pageList:[10,20,30,40,50],queryParams:{},sortName:null,sortOrder:"asc",multiSort:false,remoteSort:true,showHeader:true,showFooter:false,scrollbarSize:18,rowEvents:{mouseover:_635(true),mouseout:_635(false),click:_63d,dblclick:_647,contextmenu:_64b},rowStyler:function(_7d9,_7da){
+},loader:function(_7db,_7dc,_7dd){
+var opts=$(this).datagrid("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_7db,dataType:"json",success:function(data){
+_7dc(data);
+},error:function(){
+_7dd.apply(this,arguments);
+}});
+},loadFilter:function(data){
+if(typeof data.length=="number"&&typeof data.splice=="function"){
+return {total:data.length,rows:data};
+}else{
+return data;
+}
+},editors:_745,finder:{getTr:function(_7de,_7df,type,_7e0){
+type=type||"body";
+_7e0=_7e0||0;
+var _7e1=$.data(_7de,"datagrid");
+var dc=_7e1.dc;
+var opts=_7e1.options;
+if(_7e0==0){
+var tr1=opts.finder.getTr(_7de,_7df,type,1);
+var tr2=opts.finder.getTr(_7de,_7df,type,2);
+return tr1.add(tr2);
+}else{
+if(type=="body"){
+var tr=$("#"+_7e1.rowIdPrefix+"-"+_7e0+"-"+_7df);
+if(!tr.length){
+tr=(_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index="+_7df+"]");
+}
+return tr;
+}else{
+if(type=="footer"){
+return (_7e0==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index="+_7df+"]");
+}else{
+if(type=="selected"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-selected");
+}else{
+if(type=="highlight"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-over");
+}else{
+if(type=="checked"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-checked");
+}else{
+if(type=="editing"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-editing");
+}else{
+if(type=="last"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]:last");
+}else{
+if(type=="allbody"){
+return (_7e0==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]");
+}else{
+if(type=="allfooter"){
+return (_7e0==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index]");
+}
+}
+}
+}
+}
+}
+}
+}
+}
+}
+},getRow:function(_7e2,p){
+var _7e3=(typeof p=="object")?p.attr("datagrid-row-index"):p;
+return $.data(_7e2,"datagrid").data.rows[parseInt(_7e3)];
+},getRows:function(_7e4){
+return $(_7e4).datagrid("getRows");
+}},view:_790,onBeforeLoad:function(_7e5){
+},onLoadSuccess:function(){
+},onLoadError:function(){
+},onClickRow:function(_7e6,_7e7){
+},onDblClickRow:function(_7e8,_7e9){
+},onClickCell:function(_7ea,_7eb,_7ec){
+},onDblClickCell:function(_7ed,_7ee,_7ef){
+},onBeforeSortColumn:function(sort,_7f0){
+},onSortColumn:function(sort,_7f1){
+},onResizeColumn:function(_7f2,_7f3){
+},onBeforeSelect:function(_7f4,_7f5){
+},onSelect:function(_7f6,_7f7){
+},onBeforeUnselect:function(_7f8,_7f9){
+},onUnselect:function(_7fa,_7fb){
+},onSelectAll:function(rows){
+},onUnselectAll:function(rows){
+},onBeforeCheck:function(_7fc,_7fd){
+},onCheck:function(_7fe,_7ff){
+},onBeforeUncheck:function(_800,_801){
+},onUncheck:function(_802,_803){
+},onCheckAll:function(rows){
+},onUncheckAll:function(rows){
+},onBeforeEdit:function(_804,_805){
+},onBeginEdit:function(_806,_807){
+},onEndEdit:function(_808,_809,_80a){
+},onAfterEdit:function(_80b,_80c,_80d){
+},onCancelEdit:function(_80e,_80f){
+},onHeaderContextMenu:function(e,_810){
+},onRowContextMenu:function(e,_811,_812){
+}});
+})(jQuery);
+(function($){
+var _813;
+$(document).unbind(".propertygrid").bind("mousedown.propertygrid",function(e){
+var p=$(e.target).closest("div.datagrid-view,div.combo-panel");
+if(p.length){
+return;
+}
+_814(_813);
+_813=undefined;
+});
+function _815(_816){
+var _817=$.data(_816,"propertygrid");
+var opts=$.data(_816,"propertygrid").options;
+$(_816).datagrid($.extend({},opts,{cls:"propertygrid",view:(opts.showGroup?opts.groupView:opts.view),onBeforeEdit:function(_818,row){
+if(opts.onBeforeEdit.call(_816,_818,row)==false){
+return false;
+}
+var dg=$(this);
+var row=dg.datagrid("getRows")[_818];
+var col=dg.datagrid("getColumnOption","value");
+ if(row === undefined){
+ return false;
+ }else{
+ col.editor=row.editor;
+ }
+},onClickCell:function(_819,_81a,_81b){
+if(_813!=this){
+_814(_813);
+_813=this;
+}
+if(opts.editIndex!=_819){
+_814(_813);
+$(this).datagrid("beginEdit",_819);
+var ed=$(this).datagrid("getEditor",{index:_819,field:_81a});
+if(!ed){
+ed=$(this).datagrid("getEditor",{index:_819,field:"value"});
+}
+if(ed){
+var t=$(ed.target);
+var _81c=t.data("textbox")?t.textbox("textbox"):t;
+_81c.focus();
+opts.editIndex=_819;
+}
+}
+opts.onClickCell.call(_816,_819,_81a,_81b);
+},loadFilter:function(data){
+_814(this);
+return opts.loadFilter.call(this,data);
+}}));
+};
+function _814(_81d){
+var t=$(_81d);
+if(!t.length){
+return;
+}
+var opts=$.data(_81d,"propertygrid").options;
+opts.finder.getTr(_81d,null,"editing").each(function(){
+var _81e=parseInt($(this).attr("datagrid-row-index"));
+if(t.datagrid("validateRow",_81e)){
+t.datagrid("endEdit",_81e);
+}else{
+t.datagrid("cancelEdit",_81e);
+}
+});
+opts.editIndex=undefined;
+};
+$.fn.propertygrid=function(_81f,_820){
+if(typeof _81f=="string"){
+var _821=$.fn.propertygrid.methods[_81f];
+if(_821){
+return _821(this,_820);
+}else{
+return this.datagrid(_81f,_820);
+}
+}
+_81f=_81f||{};
+return this.each(function(){
+var _822=$.data(this,"propertygrid");
+if(_822){
+$.extend(_822.options,_81f);
+}else{
+var opts=$.extend({},$.fn.propertygrid.defaults,$.fn.propertygrid.parseOptions(this),_81f);
+opts.frozenColumns=$.extend(true,[],opts.frozenColumns);
+opts.columns=$.extend(true,[],opts.columns);
+$.data(this,"propertygrid",{options:opts});
+}
+_815(this);
+});
+};
+$.fn.propertygrid.methods={options:function(jq){
+return $.data(jq[0],"propertygrid").options;
+}};
+$.fn.propertygrid.parseOptions=function(_823){
+return $.extend({},$.fn.datagrid.parseOptions(_823),$.parser.parseOptions(_823,[{showGroup:"boolean"}]));
+};
+var _824=$.extend({},$.fn.datagrid.defaults.view,{render:function(_825,_826,_827){
+var _828=[];
+var _829=this.groups;
+for(var i=0;i<_829.length;i++){
+_828.push(this.renderGroup.call(this,_825,i,_829[i],_827));
+}
+$(_826).html(_828.join(""));
+},renderGroup:function(_82a,_82b,_82c,_82d){
+var _82e=$.data(_82a,"datagrid");
+var opts=_82e.options;
+var _82f=$(_82a).datagrid("getColumnFields",_82d);
+var _830=[];
+_830.push("<div class=\"datagrid-group\" group-index="+_82b+">");
+if((_82d&&(opts.rownumbers||opts.frozenColumns.length))||(!_82d&&!(opts.rownumbers||opts.frozenColumns.length))){
+_830.push("<span class=\"datagrid-group-expander\">");
+_830.push("<span class=\"datagrid-row-expander datagrid-row-collapse\"> </span>");
+_830.push("</span>");
+}
+if(!_82d){
+_830.push("<span class=\"datagrid-group-title\">");
+_830.push(opts.groupFormatter.call(_82a,_82c.value,_82c.rows));
+_830.push("</span>");
+}
+_830.push("</div>");
+_830.push("<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>");
+var _831=_82c.startIndex;
+for(var j=0;j<_82c.rows.length;j++){
+var css=opts.rowStyler?opts.rowStyler.call(_82a,_831,_82c.rows[j]):"";
+var _832="";
+var _833="";
+if(typeof css=="string"){
+_833=css;
+}else{
+if(css){
+_832=css["class"]||"";
+_833=css["style"]||"";
+}
+}
+var cls="class=\"datagrid-row "+(_831%2&&opts.striped?"datagrid-row-alt ":" ")+_832+"\"";
+var _834=_833?"style=\""+_833+"\"":"";
+var _835=_82e.rowIdPrefix+"-"+(_82d?1:2)+"-"+_831;
+_830.push("<tr id=\""+_835+"\" datagrid-row-index=\""+_831+"\" "+cls+" "+_834+">");
+_830.push(this.renderRow.call(this,_82a,_82f,_82d,_831,_82c.rows[j]));
+_830.push("</tr>");
+_831++;
+}
+_830.push("</tbody></table>");
+return _830.join("");
+},bindEvents:function(_836){
+var _837=$.data(_836,"datagrid");
+var dc=_837.dc;
+var body=dc.body1.add(dc.body2);
+var _838=($.data(body[0],"events")||$._data(body[0],"events")).click[0].handler;
+body.unbind("click").bind("click",function(e){
+var tt=$(e.target);
+var _839=tt.closest("span.datagrid-row-expander");
+if(_839.length){
+var _83a=_839.closest("div.datagrid-group").attr("group-index");
+if(_839.hasClass("datagrid-row-collapse")){
+$(_836).datagrid("collapseGroup",_83a);
+}else{
+$(_836).datagrid("expandGroup",_83a);
+}
+}else{
+_838(e);
+}
+e.stopPropagation();
+});
+},onBeforeRender:function(_83b,rows){
+var _83c=$.data(_83b,"datagrid");
+var opts=_83c.options;
+_83d();
+var _83e=[];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var _83f=_840(row[opts.groupField]);
+if(!_83f){
+_83f={value:row[opts.groupField],rows:[row]};
+_83e.push(_83f);
+}else{
+_83f.rows.push(row);
+}
+}
+var _841=0;
+var _842=[];
+for(var i=0;i<_83e.length;i++){
+var _83f=_83e[i];
+_83f.startIndex=_841;
+_841+=_83f.rows.length;
+_842=_842.concat(_83f.rows);
+}
+_83c.data.rows=_842;
+this.groups=_83e;
+var that=this;
+setTimeout(function(){
+that.bindEvents(_83b);
+},0);
+function _840(_843){
+for(var i=0;i<_83e.length;i++){
+var _844=_83e[i];
+if(_844.value==_843){
+return _844;
+}
+}
+return null;
+};
+function _83d(){
+if(!$("#datagrid-group-style").length){
+$("head").append("<style id=\"datagrid-group-style\">"+".datagrid-group{height:"+opts.groupHeight+"px;overflow:hidden;font-weight:bold;border-bottom:1px solid #ccc;}"+".datagrid-group-title,.datagrid-group-expander{display:inline-block;vertical-align:bottom;height:100%;line-height:"+opts.groupHeight+"px;padding:0 4px;}"+".datagrid-group-expander{width:"+opts.expanderWidth+"px;text-align:center;padding:0}"+".datagrid-row-expander{margin:"+Math.floor((opts.groupHeight-16)/2)+"px 0;display:inline-block;width:16px;height:16px;cursor:pointer}"+"</style>");
+}
+};
+}});
+$.extend($.fn.datagrid.methods,{groups:function(jq){
+return jq.datagrid("options").view.groups;
+},expandGroup:function(jq,_845){
+return jq.each(function(){
+var view=$.data(this,"datagrid").dc.view;
+var _846=view.find(_845!=undefined?"div.datagrid-group[group-index=\""+_845+"\"]":"div.datagrid-group");
+var _847=_846.find("span.datagrid-row-expander");
+if(_847.hasClass("datagrid-row-expand")){
+_847.removeClass("datagrid-row-expand").addClass("datagrid-row-collapse");
+_846.next("table").show();
+}
+$(this).datagrid("fixRowHeight");
+});
+},collapseGroup:function(jq,_848){
+return jq.each(function(){
+var view=$.data(this,"datagrid").dc.view;
+var _849=view.find(_848!=undefined?"div.datagrid-group[group-index=\""+_848+"\"]":"div.datagrid-group");
+var _84a=_849.find("span.datagrid-row-expander");
+if(_84a.hasClass("datagrid-row-collapse")){
+_84a.removeClass("datagrid-row-collapse").addClass("datagrid-row-expand");
+_849.next("table").hide();
+}
+$(this).datagrid("fixRowHeight");
+});
+}});
+$.extend(_824,{refreshGroupTitle:function(_84b,_84c){
+var _84d=$.data(_84b,"datagrid");
+var opts=_84d.options;
+var dc=_84d.dc;
+var _84e=this.groups[_84c];
+var span=dc.body2.children("div.datagrid-group[group-index="+_84c+"]").find("span.datagrid-group-title");
+span.html(opts.groupFormatter.call(_84b,_84e.value,_84e.rows));
+},insertRow:function(_84f,_850,row){
+var _851=$.data(_84f,"datagrid");
+var opts=_851.options;
+var dc=_851.dc;
+var _852=null;
+var _853;
+if(!_851.data.rows.length){
+$(_84f).datagrid("loadData",[row]);
+return;
+}
+for(var i=0;i<this.groups.length;i++){
+if(this.groups[i].value==row[opts.groupField]){
+_852=this.groups[i];
+_853=i;
+break;
+}
+}
+if(_852){
+if(_850==undefined||_850==null){
+_850=_851.data.rows.length;
+}
+if(_850<_852.startIndex){
+_850=_852.startIndex;
+}else{
+if(_850>_852.startIndex+_852.rows.length){
+_850=_852.startIndex+_852.rows.length;
+}
+}
+$.fn.datagrid.defaults.view.insertRow.call(this,_84f,_850,row);
+if(_850>=_852.startIndex+_852.rows.length){
+_854(_850,true);
+_854(_850,false);
+}
+_852.rows.splice(_850-_852.startIndex,0,row);
+}else{
+_852={value:row[opts.groupField],rows:[row],startIndex:_851.data.rows.length};
+_853=this.groups.length;
+dc.body1.append(this.renderGroup.call(this,_84f,_853,_852,true));
+dc.body2.append(this.renderGroup.call(this,_84f,_853,_852,false));
+this.groups.push(_852);
+_851.data.rows.push(row);
+}
+this.refreshGroupTitle(_84f,_853);
+function _854(_855,_856){
+var _857=_856?1:2;
+var _858=opts.finder.getTr(_84f,_855-1,"body",_857);
+var tr=opts.finder.getTr(_84f,_855,"body",_857);
+tr.insertAfter(_858);
+};
+},updateRow:function(_859,_85a,row){
+var opts=$.data(_859,"datagrid").options;
+$.fn.datagrid.defaults.view.updateRow.call(this,_859,_85a,row);
+var tb=opts.finder.getTr(_859,_85a,"body",2).closest("table.datagrid-btable");
+var _85b=parseInt(tb.prev().attr("group-index"));
+this.refreshGroupTitle(_859,_85b);
+},deleteRow:function(_85c,_85d){
+var _85e=$.data(_85c,"datagrid");
+var opts=_85e.options;
+var dc=_85e.dc;
+var body=dc.body1.add(dc.body2);
+var tb=opts.finder.getTr(_85c,_85d,"body",2).closest("table.datagrid-btable");
+var _85f=parseInt(tb.prev().attr("group-index"));
+$.fn.datagrid.defaults.view.deleteRow.call(this,_85c,_85d);
+var _860=this.groups[_85f];
+if(_860.rows.length>1){
+_860.rows.splice(_85d-_860.startIndex,1);
+this.refreshGroupTitle(_85c,_85f);
+}else{
+body.children("div.datagrid-group[group-index="+_85f+"]").remove();
+for(var i=_85f+1;i<this.groups.length;i++){
+body.children("div.datagrid-group[group-index="+i+"]").attr("group-index",i-1);
+}
+this.groups.splice(_85f,1);
+}
+var _85d=0;
+for(var i=0;i<this.groups.length;i++){
+var _860=this.groups[i];
+_860.startIndex=_85d;
+_85d+=_860.rows.length;
+}
+}});
+$.fn.propertygrid.defaults=$.extend({},$.fn.datagrid.defaults,{groupHeight:21,expanderWidth:16,singleSelect:true,remoteSort:false,fitColumns:true,loadMsg:"",frozenColumns:[[{field:"f",width:16,resizable:false}]],columns:[[{field:"name",title:"Name",width:100,sortable:true},{field:"value",title:"Value",width:100,resizable:false}]],showGroup:false,groupView:_824,groupField:"group",groupFormatter:function(_861,rows){
+return _861;
+}});
+})(jQuery);
+(function($){
+function _862(_863){
+var _864=$.data(_863,"treegrid");
+var opts=_864.options;
+$(_863).datagrid($.extend({},opts,{url:null,data:null,loader:function(){
+return false;
+},onBeforeLoad:function(){
+return false;
+},onLoadSuccess:function(){
+},onResizeColumn:function(_865,_866){
+_873(_863);
+opts.onResizeColumn.call(_863,_865,_866);
+},onBeforeSortColumn:function(sort,_867){
+if(opts.onBeforeSortColumn.call(_863,sort,_867)==false){
+return false;
+}
+},onSortColumn:function(sort,_868){
+opts.sortName=sort;
+opts.sortOrder=_868;
+if(opts.remoteSort){
+_872(_863);
+}else{
+var data=$(_863).treegrid("getData");
+_889(_863,0,data);
+}
+opts.onSortColumn.call(_863,sort,_868);
+},onClickCell:function(_869,_86a){
+opts.onClickCell.call(_863,_86a,find(_863,_869));
+},onDblClickCell:function(_86b,_86c){
+opts.onDblClickCell.call(_863,_86c,find(_863,_86b));
+},onRowContextMenu:function(e,_86d){
+opts.onContextMenu.call(_863,e,find(_863,_86d));
+}}));
+var _86e=$.data(_863,"datagrid").options;
+opts.columns=_86e.columns;
+opts.frozenColumns=_86e.frozenColumns;
+_864.dc=$.data(_863,"datagrid").dc;
+if(opts.pagination){
+var _86f=$(_863).datagrid("getPager");
+_86f.pagination({pageNumber:opts.pageNumber,pageSize:opts.pageSize,pageList:opts.pageList,onSelectPage:function(_870,_871){
+opts.pageNumber=_870;
+opts.pageSize=_871;
+_872(_863);
+}});
+opts.pageSize=_86f.pagination("options").pageSize;
+}
+};
+function _873(_874,_875){
+var opts=$.data(_874,"datagrid").options;
+var dc=$.data(_874,"datagrid").dc;
+if(!dc.body1.is(":empty")&&(!opts.nowrap||opts.autoRowHeight)){
+if(_875!=undefined){
+var _876=_877(_874,_875);
+for(var i=0;i<_876.length;i++){
+_878(_876[i][opts.idField]);
+}
+}
+}
+$(_874).datagrid("fixRowHeight",_875);
+function _878(_879){
+var tr1=opts.finder.getTr(_874,_879,"body",1);
+var tr2=opts.finder.getTr(_874,_879,"body",2);
+tr1.css("height","");
+tr2.css("height","");
+var _87a=Math.max(tr1.height(),tr2.height());
+tr1.css("height",_87a);
+tr2.css("height",_87a);
+};
+};
+function _87b(_87c){
+var dc=$.data(_87c,"datagrid").dc;
+var opts=$.data(_87c,"treegrid").options;
+if(!opts.rownumbers){
+return;
+}
+dc.body1.find("div.datagrid-cell-rownumber").each(function(i){
+$(this).html(i+1);
+});
+};
+function _87d(_87e){
+return function(e){
+$.fn.datagrid.defaults.rowEvents[_87e?"mouseover":"mouseout"](e);
+var tt=$(e.target);
+var fn=_87e?"addClass":"removeClass";
+if(tt.hasClass("tree-hit")){
+tt.hasClass("tree-expanded")?tt[fn]("tree-expanded-hover"):tt[fn]("tree-collapsed-hover");
+}
+};
+};
+function _87f(e){
+var tt=$(e.target);
+if(tt.hasClass("tree-hit")){
+var tr=tt.closest("tr.datagrid-row");
+var _880=tr.closest("div.datagrid-view").children(".datagrid-f")[0];
+_881(_880,tr.attr("node-id"));
+}else{
+$.fn.datagrid.defaults.rowEvents.click(e);
+}
+};
+function _882(_883,_884){
+var opts=$.data(_883,"treegrid").options;
+var tr1=opts.finder.getTr(_883,_884,"body",1);
+var tr2=opts.finder.getTr(_883,_884,"body",2);
+var _885=$(_883).datagrid("getColumnFields",true).length+(opts.rownumbers?1:0);
+var _886=$(_883).datagrid("getColumnFields",false).length;
+_887(tr1,_885);
+_887(tr2,_886);
+function _887(tr,_888){
+$("<tr class=\"treegrid-tr-tree\">"+"<td style=\"border:0px\" colspan=\""+_888+"\">"+"<div></div>"+"</td>"+"</tr>").insertAfter(tr);
+};
+};
+function _889(_88a,_88b,data,_88c){
+var _88d=$.data(_88a,"treegrid");
+var opts=_88d.options;
+var dc=_88d.dc;
+data=opts.loadFilter.call(_88a,data,_88b);
+var node=find(_88a,_88b);
+if(node){
+var _88e=opts.finder.getTr(_88a,_88b,"body",1);
+var _88f=opts.finder.getTr(_88a,_88b,"body",2);
+var cc1=_88e.next("tr.treegrid-tr-tree").children("td").children("div");
+var cc2=_88f.next("tr.treegrid-tr-tree").children("td").children("div");
+if(!_88c){
+node.children=[];
+}
+}else{
+var cc1=dc.body1;
+var cc2=dc.body2;
+if(!_88c){
+_88d.data=[];
+}
+}
+if(!_88c){
+cc1.empty();
+cc2.empty();
+}
+if(opts.view.onBeforeRender){
+opts.view.onBeforeRender.call(opts.view,_88a,_88b,data);
+}
+opts.view.render.call(opts.view,_88a,cc1,true);
+opts.view.render.call(opts.view,_88a,cc2,false);
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,_88a,dc.footer1,true);
+opts.view.renderFooter.call(opts.view,_88a,dc.footer2,false);
+}
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,_88a);
+}
+if(!_88b&&opts.pagination){
+var _890=$.data(_88a,"treegrid").total;
+var _891=$(_88a).datagrid("getPager");
+if(_891.pagination("options").total!=_890){
+_891.pagination({total:_890});
+}
+}
+_873(_88a);
+_87b(_88a);
+$(_88a).treegrid("showLines");
+$(_88a).treegrid("setSelectionState");
+$(_88a).treegrid("autoSizeColumn");
+opts.onLoadSuccess.call(_88a,node,data);
+};
+function _872(_892,_893,_894,_895,_896){
+var opts=$.data(_892,"treegrid").options;
+var body=$(_892).datagrid("getPanel").find("div.datagrid-body");
+if(_894){
+opts.queryParams=_894;
+}
+var _897=$.extend({},opts.queryParams);
+if(opts.pagination){
+$.extend(_897,{page:opts.pageNumber,rows:opts.pageSize});
+}
+if(opts.sortName){
+$.extend(_897,{sort:opts.sortName,order:opts.sortOrder});
+}
+var row=find(_892,_893);
+if(opts.onBeforeLoad.call(_892,row,_897)==false){
+return;
+}
+var _898=body.find("tr[node-id=\""+_893+"\"] span.tree-folder");
+_898.addClass("tree-loading");
+$(_892).treegrid("loading");
+var _899=opts.loader.call(_892,_897,function(data){
+_898.removeClass("tree-loading");
+$(_892).treegrid("loaded");
+_889(_892,_893,data,_895);
+if(_896){
+_896();
+}
+},function(){
+_898.removeClass("tree-loading");
+$(_892).treegrid("loaded");
+opts.onLoadError.apply(_892,arguments);
+if(_896){
+_896();
+}
+});
+if(_899==false){
+_898.removeClass("tree-loading");
+$(_892).treegrid("loaded");
+}
+};
+function _89a(_89b){
+var rows=_89c(_89b);
+if(rows.length){
+return rows[0];
+}else{
+return null;
+}
+};
+function _89c(_89d){
+return $.data(_89d,"treegrid").data;
+};
+function _89e(_89f,_8a0){
+var row=find(_89f,_8a0);
+if(row._parentId){
+return find(_89f,row._parentId);
+}else{
+return null;
+}
+};
+function _877(_8a1,_8a2){
+var opts=$.data(_8a1,"treegrid").options;
+var body=$(_8a1).datagrid("getPanel").find("div.datagrid-view2 div.datagrid-body");
+var _8a3=[];
+if(_8a2){
+_8a4(_8a2);
+}else{
+var _8a5=_89c(_8a1);
+for(var i=0;i<_8a5.length;i++){
+_8a3.push(_8a5[i]);
+_8a4(_8a5[i][opts.idField]);
+}
+}
+function _8a4(_8a6){
+var _8a7=find(_8a1,_8a6);
+if(_8a7&&_8a7.children){
+for(var i=0,len=_8a7.children.length;i<len;i++){
+var _8a8=_8a7.children[i];
+_8a3.push(_8a8);
+_8a4(_8a8[opts.idField]);
+}
+}
+};
+return _8a3;
+};
+function _8a9(_8aa,_8ab){
+var opts=$.data(_8aa,"treegrid").options;
+var tr=opts.finder.getTr(_8aa,_8ab);
+var node=tr.children("td[field=\""+opts.treeField+"\"]");
+return node.find("span.tree-indent,span.tree-hit").length;
+};
+function find(_8ac,_8ad){
+var opts=$.data(_8ac,"treegrid").options;
+var data=$.data(_8ac,"treegrid").data;
+var cc=[data];
+while(cc.length){
+var c=cc.shift();
+for(var i=0;i<c.length;i++){
+var node=c[i];
+if(node[opts.idField]==_8ad){
+return node;
+}else{
+if(node["children"]){
+cc.push(node["children"]);
+}
+}
+}
+}
+return null;
+};
+function _8ae(_8af,_8b0){
+var opts=$.data(_8af,"treegrid").options;
+var row=find(_8af,_8b0);
+var tr=opts.finder.getTr(_8af,_8b0);
+var hit=tr.find("span.tree-hit");
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-collapsed")){
+return;
+}
+if(opts.onBeforeCollapse.call(_8af,row)==false){
+return;
+}
+hit.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+hit.next().removeClass("tree-folder-open");
+row.state="closed";
+tr=tr.next("tr.treegrid-tr-tree");
+var cc=tr.children("td").children("div");
+if(opts.animate){
+cc.slideUp("normal",function(){
+$(_8af).treegrid("autoSizeColumn");
+_873(_8af,_8b0);
+opts.onCollapse.call(_8af,row);
+});
+}else{
+cc.hide();
+$(_8af).treegrid("autoSizeColumn");
+_873(_8af,_8b0);
+opts.onCollapse.call(_8af,row);
+}
+};
+function _8b1(_8b2,_8b3){
+var opts=$.data(_8b2,"treegrid").options;
+var tr=opts.finder.getTr(_8b2,_8b3);
+var hit=tr.find("span.tree-hit");
+var row=find(_8b2,_8b3);
+if(hit.length==0){
+return;
+}
+if(hit.hasClass("tree-expanded")){
+return;
+}
+if(opts.onBeforeExpand.call(_8b2,row)==false){
+return;
+}
+hit.removeClass("tree-collapsed tree-collapsed-hover").addClass("tree-expanded");
+hit.next().addClass("tree-folder-open");
+var _8b4=tr.next("tr.treegrid-tr-tree");
+if(_8b4.length){
+var cc=_8b4.children("td").children("div");
+_8b5(cc);
+}else{
+_882(_8b2,row[opts.idField]);
+var _8b4=tr.next("tr.treegrid-tr-tree");
+var cc=_8b4.children("td").children("div");
+cc.hide();
+var _8b6=$.extend({},opts.queryParams||{});
+_8b6.id=row[opts.idField];
+_872(_8b2,row[opts.idField],_8b6,true,function(){
+if(cc.is(":empty")){
+_8b4.remove();
+}else{
+_8b5(cc);
+}
+});
+}
+function _8b5(cc){
+row.state="open";
+if(opts.animate){
+cc.slideDown("normal",function(){
+$(_8b2).treegrid("autoSizeColumn");
+_873(_8b2,_8b3);
+opts.onExpand.call(_8b2,row);
+});
+}else{
+cc.show();
+$(_8b2).treegrid("autoSizeColumn");
+_873(_8b2,_8b3);
+opts.onExpand.call(_8b2,row);
+}
+};
+};
+function _881(_8b7,_8b8){
+var opts=$.data(_8b7,"treegrid").options;
+var tr=opts.finder.getTr(_8b7,_8b8);
+var hit=tr.find("span.tree-hit");
+if(hit.hasClass("tree-expanded")){
+_8ae(_8b7,_8b8);
+}else{
+_8b1(_8b7,_8b8);
+}
+};
+function _8b9(_8ba,_8bb){
+var opts=$.data(_8ba,"treegrid").options;
+var _8bc=_877(_8ba,_8bb);
+if(_8bb){
+_8bc.unshift(find(_8ba,_8bb));
+}
+for(var i=0;i<_8bc.length;i++){
+_8ae(_8ba,_8bc[i][opts.idField]);
+}
+};
+function _8bd(_8be,_8bf){
+var opts=$.data(_8be,"treegrid").options;
+var _8c0=_877(_8be,_8bf);
+if(_8bf){
+_8c0.unshift(find(_8be,_8bf));
+}
+for(var i=0;i<_8c0.length;i++){
+_8b1(_8be,_8c0[i][opts.idField]);
+}
+};
+function _8c1(_8c2,_8c3){
+var opts=$.data(_8c2,"treegrid").options;
+var ids=[];
+var p=_89e(_8c2,_8c3);
+while(p){
+var id=p[opts.idField];
+ids.unshift(id);
+p=_89e(_8c2,id);
+}
+for(var i=0;i<ids.length;i++){
+_8b1(_8c2,ids[i]);
+}
+};
+function _8c4(_8c5,_8c6){
+var opts=$.data(_8c5,"treegrid").options;
+if(_8c6.parent){
+var tr=opts.finder.getTr(_8c5,_8c6.parent);
+if(tr.next("tr.treegrid-tr-tree").length==0){
+_882(_8c5,_8c6.parent);
+}
+var cell=tr.children("td[field=\""+opts.treeField+"\"]").children("div.datagrid-cell");
+var _8c7=cell.children("span.tree-icon");
+if(_8c7.hasClass("tree-file")){
+_8c7.removeClass("tree-file").addClass("tree-folder tree-folder-open");
+var hit=$("<span class=\"tree-hit tree-expanded\"></span>").insertBefore(_8c7);
+if(hit.prev().length){
+hit.prev().remove();
+}
+}
+}
+_889(_8c5,_8c6.parent,_8c6.data,true);
+};
+function _8c8(_8c9,_8ca){
+var ref=_8ca.before||_8ca.after;
+var opts=$.data(_8c9,"treegrid").options;
+var _8cb=_89e(_8c9,ref);
+_8c4(_8c9,{parent:(_8cb?_8cb[opts.idField]:null),data:[_8ca.data]});
+var _8cc=_8cb?_8cb.children:$(_8c9).treegrid("getRoots");
+for(var i=0;i<_8cc.length;i++){
+if(_8cc[i][opts.idField]==ref){
+var _8cd=_8cc[_8cc.length-1];
+_8cc.splice(_8ca.before?i:(i+1),0,_8cd);
+_8cc.splice(_8cc.length-1,1);
+break;
+}
+}
+_8ce(true);
+_8ce(false);
+_87b(_8c9);
+$(_8c9).treegrid("showLines");
+function _8ce(_8cf){
+var _8d0=_8cf?1:2;
+var tr=opts.finder.getTr(_8c9,_8ca.data[opts.idField],"body",_8d0);
+var _8d1=tr.closest("table.datagrid-btable");
+tr=tr.parent().children();
+var dest=opts.finder.getTr(_8c9,ref,"body",_8d0);
+if(_8ca.before){
+tr.insertBefore(dest);
+}else{
+var sub=dest.next("tr.treegrid-tr-tree");
+tr.insertAfter(sub.length?sub:dest);
+}
+_8d1.remove();
+};
+};
+function _8d2(_8d3,_8d4){
+var _8d5=$.data(_8d3,"treegrid");
+$(_8d3).datagrid("deleteRow",_8d4);
+_87b(_8d3);
+_8d5.total-=1;
+$(_8d3).datagrid("getPager").pagination("refresh",{total:_8d5.total});
+$(_8d3).treegrid("showLines");
+};
+function _8d6(_8d7){
+var t=$(_8d7);
+var opts=t.treegrid("options");
+if(opts.lines){
+t.treegrid("getPanel").addClass("tree-lines");
+}else{
+t.treegrid("getPanel").removeClass("tree-lines");
+return;
+}
+t.treegrid("getPanel").find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom");
+t.treegrid("getPanel").find("div.datagrid-cell").removeClass("tree-node-last tree-root-first tree-root-one");
+var _8d8=t.treegrid("getRoots");
+if(_8d8.length>1){
+_8d9(_8d8[0]).addClass("tree-root-first");
+}else{
+if(_8d8.length==1){
+_8d9(_8d8[0]).addClass("tree-root-one");
+}
+}
+_8da(_8d8);
+_8db(_8d8);
+function _8da(_8dc){
+$.map(_8dc,function(node){
+if(node.children&&node.children.length){
+_8da(node.children);
+}else{
+var cell=_8d9(node);
+cell.find(".tree-icon").prev().addClass("tree-join");
+}
+});
+if(_8dc.length){
+var cell=_8d9(_8dc[_8dc.length-1]);
+cell.addClass("tree-node-last");
+cell.find(".tree-join").removeClass("tree-join").addClass("tree-joinbottom");
+}
+};
+function _8db(_8dd){
+$.map(_8dd,function(node){
+if(node.children&&node.children.length){
+_8db(node.children);
+}
+});
+for(var i=0;i<_8dd.length-1;i++){
+var node=_8dd[i];
+var _8de=t.treegrid("getLevel",node[opts.idField]);
+var tr=opts.finder.getTr(_8d7,node[opts.idField]);
+var cc=tr.next().find("tr.datagrid-row td[field=\""+opts.treeField+"\"] div.datagrid-cell");
+cc.find("span:eq("+(_8de-1)+")").addClass("tree-line");
+}
+};
+function _8d9(node){
+var tr=opts.finder.getTr(_8d7,node[opts.idField]);
+var cell=tr.find("td[field=\""+opts.treeField+"\"] div.datagrid-cell");
+return cell;
+};
+};
+$.fn.treegrid=function(_8df,_8e0){
+if(typeof _8df=="string"){
+var _8e1=$.fn.treegrid.methods[_8df];
+if(_8e1){
+return _8e1(this,_8e0);
+}else{
+return this.datagrid(_8df,_8e0);
+}
+}
+_8df=_8df||{};
+return this.each(function(){
+var _8e2=$.data(this,"treegrid");
+if(_8e2){
+$.extend(_8e2.options,_8df);
+}else{
+_8e2=$.data(this,"treegrid",{options:$.extend({},$.fn.treegrid.defaults,$.fn.treegrid.parseOptions(this),_8df),data:[]});
+}
+_862(this);
+if(_8e2.options.data){
+$(this).treegrid("loadData",_8e2.options.data);
+}
+_872(this);
+});
+};
+$.fn.treegrid.methods={options:function(jq){
+return $.data(jq[0],"treegrid").options;
+},resize:function(jq,_8e3){
+return jq.each(function(){
+$(this).datagrid("resize",_8e3);
+});
+},fixRowHeight:function(jq,_8e4){
+return jq.each(function(){
+_873(this,_8e4);
+});
+},loadData:function(jq,data){
+return jq.each(function(){
+_889(this,data.parent,data);
+});
+},load:function(jq,_8e5){
+return jq.each(function(){
+$(this).treegrid("options").pageNumber=1;
+$(this).treegrid("getPager").pagination({pageNumber:1});
+$(this).treegrid("reload",_8e5);
+});
+},reload:function(jq,id){
+return jq.each(function(){
+var opts=$(this).treegrid("options");
+var _8e6={};
+if(typeof id=="object"){
+_8e6=id;
+}else{
+_8e6=$.extend({},opts.queryParams);
+_8e6.id=id;
+}
+if(_8e6.id){
+var node=$(this).treegrid("find",_8e6.id);
+if(node.children){
+node.children.splice(0,node.children.length);
+}
+opts.queryParams=_8e6;
+var tr=opts.finder.getTr(this,_8e6.id);
+tr.next("tr.treegrid-tr-tree").remove();
+tr.find("span.tree-hit").removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");
+_8b1(this,_8e6.id);
+}else{
+_872(this,null,_8e6);
+}
+});
+},reloadFooter:function(jq,_8e7){
+return jq.each(function(){
+var opts=$.data(this,"treegrid").options;
+var dc=$.data(this,"datagrid").dc;
+if(_8e7){
+$.data(this,"treegrid").footer=_8e7;
+}
+if(opts.showFooter){
+opts.view.renderFooter.call(opts.view,this,dc.footer1,true);
+opts.view.renderFooter.call(opts.view,this,dc.footer2,false);
+if(opts.view.onAfterRender){
+opts.view.onAfterRender.call(opts.view,this);
+}
+$(this).treegrid("fixRowHeight");
+}
+});
+},getData:function(jq){
+return $.data(jq[0],"treegrid").data;
+},getFooterRows:function(jq){
+return $.data(jq[0],"treegrid").footer;
+},getRoot:function(jq){
+return _89a(jq[0]);
+},getRoots:function(jq){
+return _89c(jq[0]);
+},getParent:function(jq,id){
+return _89e(jq[0],id);
+},getChildren:function(jq,id){
+return _877(jq[0],id);
+},getLevel:function(jq,id){
+return _8a9(jq[0],id);
+},find:function(jq,id){
+return find(jq[0],id);
+},isLeaf:function(jq,id){
+var opts=$.data(jq[0],"treegrid").options;
+var tr=opts.finder.getTr(jq[0],id);
+var hit=tr.find("span.tree-hit");
+return hit.length==0;
+},select:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("selectRow",id);
+});
+},unselect:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("unselectRow",id);
+});
+},collapse:function(jq,id){
+return jq.each(function(){
+_8ae(this,id);
+});
+},expand:function(jq,id){
+return jq.each(function(){
+_8b1(this,id);
+});
+},toggle:function(jq,id){
+return jq.each(function(){
+_881(this,id);
+});
+},collapseAll:function(jq,id){
+return jq.each(function(){
+_8b9(this,id);
+});
+},expandAll:function(jq,id){
+return jq.each(function(){
+_8bd(this,id);
+});
+},expandTo:function(jq,id){
+return jq.each(function(){
+_8c1(this,id);
+});
+},append:function(jq,_8e8){
+return jq.each(function(){
+_8c4(this,_8e8);
+});
+},insert:function(jq,_8e9){
+return jq.each(function(){
+_8c8(this,_8e9);
+});
+},remove:function(jq,id){
+return jq.each(function(){
+_8d2(this,id);
+});
+},pop:function(jq,id){
+var row=jq.treegrid("find",id);
+jq.treegrid("remove",id);
+return row;
+},refresh:function(jq,id){
+return jq.each(function(){
+var opts=$.data(this,"treegrid").options;
+opts.view.refreshRow.call(opts.view,this,id);
+});
+},update:function(jq,_8ea){
+return jq.each(function(){
+var opts=$.data(this,"treegrid").options;
+opts.view.updateRow.call(opts.view,this,_8ea.id,_8ea.row);
+});
+},beginEdit:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("beginEdit",id);
+$(this).treegrid("fixRowHeight",id);
+});
+},endEdit:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("endEdit",id);
+});
+},cancelEdit:function(jq,id){
+return jq.each(function(){
+$(this).datagrid("cancelEdit",id);
+});
+},showLines:function(jq){
+return jq.each(function(){
+_8d6(this);
+});
+}};
+$.fn.treegrid.parseOptions=function(_8eb){
+return $.extend({},$.fn.datagrid.parseOptions(_8eb),$.parser.parseOptions(_8eb,["treeField",{animate:"boolean"}]));
+};
+var _8ec=$.extend({},$.fn.datagrid.defaults.view,{render:function(_8ed,_8ee,_8ef){
+var opts=$.data(_8ed,"treegrid").options;
+var _8f0=$(_8ed).datagrid("getColumnFields",_8ef);
+var _8f1=$.data(_8ed,"datagrid").rowIdPrefix;
+if(_8ef){
+if(!(opts.rownumbers||(opts.frozenColumns&&opts.frozenColumns.length))){
+return;
+}
+}
+var view=this;
+if(this.treeNodes&&this.treeNodes.length){
+var _8f2=_8f3(_8ef,this.treeLevel,this.treeNodes);
+$(_8ee).append(_8f2.join(""));
+}
+function _8f3(_8f4,_8f5,_8f6){
+var _8f7=$(_8ed).treegrid("getParent",_8f6[0][opts.idField]);
+var _8f8=(_8f7?_8f7.children.length:$(_8ed).treegrid("getRoots").length)-_8f6.length;
+var _8f9=["<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<_8f6.length;i++){
+var row=_8f6[i];
+if(row.state!="open"&&row.state!="closed"){
+row.state="open";
+}
+var css=opts.rowStyler?opts.rowStyler.call(_8ed,row):"";
+var _8fa="";
+var _8fb="";
+if(typeof css=="string"){
+_8fb=css;
+}else{
+if(css){
+_8fa=css["class"]||"";
+_8fb=css["style"]||"";
+}
+}
+var cls="class=\"datagrid-row "+(_8f8++%2&&opts.striped?"datagrid-row-alt ":" ")+_8fa+"\"";
+var _8fc=_8fb?"style=\""+_8fb+"\"":"";
+var _8fd=_8f1+"-"+(_8f4?1:2)+"-"+row[opts.idField];
+_8f9.push("<tr id=\""+_8fd+"\" node-id=\""+row[opts.idField]+"\" "+cls+" "+_8fc+">");
+_8f9=_8f9.concat(view.renderRow.call(view,_8ed,_8f0,_8f4,_8f5,row));
+_8f9.push("</tr>");
+if(row.children&&row.children.length){
+var tt=_8f3(_8f4,_8f5+1,row.children);
+var v=row.state=="closed"?"none":"block";
+_8f9.push("<tr class=\"treegrid-tr-tree\"><td style=\"border:0px\" colspan="+(_8f0.length+(opts.rownumbers?1:0))+"><div style=\"display:"+v+"\">");
+_8f9=_8f9.concat(tt);
+_8f9.push("</div></td></tr>");
+}
+}
+_8f9.push("</tbody></table>");
+return _8f9;
+};
+},renderFooter:function(_8fe,_8ff,_900){
+var opts=$.data(_8fe,"treegrid").options;
+var rows=$.data(_8fe,"treegrid").footer||[];
+var _901=$(_8fe).datagrid("getColumnFields",_900);
+var _902=["<table class=\"datagrid-ftable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+row[opts.idField]=row[opts.idField]||("foot-row-id"+i);
+_902.push("<tr class=\"datagrid-row\" node-id=\""+row[opts.idField]+"\">");
+_902.push(this.renderRow.call(this,_8fe,_901,_900,0,row));
+_902.push("</tr>");
+}
+_902.push("</tbody></table>");
+$(_8ff).html(_902.join(""));
+},renderRow:function(_903,_904,_905,_906,row){
+var opts=$.data(_903,"treegrid").options;
+var cc=[];
+if(_905&&opts.rownumbers){
+cc.push("<td class=\"datagrid-td-rownumber\"><div class=\"datagrid-cell-rownumber\">0</div></td>");
+}
+for(var i=0;i<_904.length;i++){
+var _907=_904[i];
+var col=$(_903).datagrid("getColumnOption",_907);
+if(col){
+var css=col.styler?(col.styler(row[_907],row)||""):"";
+var _908="";
+var _909="";
+if(typeof css=="string"){
+_909=css;
+}else{
+if(cc){
+_908=css["class"]||"";
+_909=css["style"]||"";
+}
+}
+var cls=_908?"class=\""+_908+"\"":"";
+var _90a=col.hidden?"style=\"display:none;"+_909+"\"":(_909?"style=\""+_909+"\"":"");
+cc.push("<td field=\""+_907+"\" "+cls+" "+_90a+">");
+var _90a="";
+if(!col.checkbox){
+if(col.align){
+_90a+="text-align:"+col.align+";";
+}
+if(!opts.nowrap){
+_90a+="white-space:normal;height:auto;";
+}else{
+if(opts.autoRowHeight){
+_90a+="height:auto;";
+}
+}
+}
+cc.push("<div style=\""+_90a+"\" ");
+if(col.checkbox){
+cc.push("class=\"datagrid-cell-check ");
+}else{
+cc.push("class=\"datagrid-cell "+col.cellClass);
+}
+cc.push("\">");
+if(col.checkbox){
+if(row.checked){
+cc.push("<input type=\"checkbox\" checked=\"checked\"");
+}else{
+cc.push("<input type=\"checkbox\"");
+}
+cc.push(" name=\""+_907+"\" value=\""+(row[_907]!=undefined?row[_907]:"")+"\">");
+}else{
+var val=null;
+if(col.formatter){
+val=col.formatter(row[_907],row);
+}else{
+val=row[_907];
+}
+if(_907==opts.treeField){
+for(var j=0;j<_906;j++){
+cc.push("<span class=\"tree-indent\"></span>");
+}
+if(row.state=="closed"){
+cc.push("<span class=\"tree-hit tree-collapsed\"></span>");
+cc.push("<span class=\"tree-icon tree-folder "+(row.iconCls?row.iconCls:"")+"\"></span>");
+}else{
+if(row.children&&row.children.length){
+cc.push("<span class=\"tree-hit tree-expanded\"></span>");
+cc.push("<span class=\"tree-icon tree-folder tree-folder-open "+(row.iconCls?row.iconCls:"")+"\"></span>");
+}else{
+cc.push("<span class=\"tree-indent\"></span>");
+cc.push("<span class=\"tree-icon tree-file "+(row.iconCls?row.iconCls:"")+"\"></span>");
+}
+}
+cc.push("<span class=\"tree-title\">"+val+"</span>");
+}else{
+cc.push(val);
+}
+}
+cc.push("</div>");
+cc.push("</td>");
+}
+}
+return cc.join("");
+},refreshRow:function(_90b,id){
+this.updateRow.call(this,_90b,id,{});
+},updateRow:function(_90c,id,row){
+var opts=$.data(_90c,"treegrid").options;
+var _90d=$(_90c).treegrid("find",id);
+$.extend(_90d,row);
+var _90e=$(_90c).treegrid("getLevel",id)-1;
+var _90f=opts.rowStyler?opts.rowStyler.call(_90c,_90d):"";
+var _910=$.data(_90c,"datagrid").rowIdPrefix;
+var _911=_90d[opts.idField];
+function _912(_913){
+var _914=$(_90c).treegrid("getColumnFields",_913);
+var tr=opts.finder.getTr(_90c,id,"body",(_913?1:2));
+var _915=tr.find("div.datagrid-cell-rownumber").html();
+var _916=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked");
+tr.html(this.renderRow(_90c,_914,_913,_90e,_90d));
+tr.attr("style",_90f||"");
+tr.find("div.datagrid-cell-rownumber").html(_915);
+if(_916){
+tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
+}
+if(_911!=id){
+tr.attr("id",_910+"-"+(_913?1:2)+"-"+_911);
+tr.attr("node-id",_911);
+}
+};
+_912.call(this,true);
+_912.call(this,false);
+$(_90c).treegrid("fixRowHeight",id);
+},deleteRow:function(_917,id){
+var opts=$.data(_917,"treegrid").options;
+var tr=opts.finder.getTr(_917,id);
+tr.next("tr.treegrid-tr-tree").remove();
+tr.remove();
+var _918=del(id);
+if(_918){
+if(_918.children.length==0){
+tr=opts.finder.getTr(_917,_918[opts.idField]);
+tr.next("tr.treegrid-tr-tree").remove();
+var cell=tr.children("td[field=\""+opts.treeField+"\"]").children("div.datagrid-cell");
+cell.find(".tree-icon").removeClass("tree-folder").addClass("tree-file");
+cell.find(".tree-hit").remove();
+$("<span class=\"tree-indent\"></span>").prependTo(cell);
+}
+}
+function del(id){
+var cc;
+var _919=$(_917).treegrid("getParent",id);
+if(_919){
+cc=_919.children;
+}else{
+cc=$(_917).treegrid("getData");
+}
+for(var i=0;i<cc.length;i++){
+if(cc[i][opts.idField]==id){
+cc.splice(i,1);
+break;
+}
+}
+return _919;
+};
+},onBeforeRender:function(_91a,_91b,data){
+if($.isArray(_91b)){
+data={total:_91b.length,rows:_91b};
+_91b=null;
+}
+if(!data){
+return false;
+}
+var _91c=$.data(_91a,"treegrid");
+var opts=_91c.options;
+if(data.length==undefined){
+if(data.footer){
+_91c.footer=data.footer;
+}
+if(data.total){
+_91c.total=data.total;
+}
+data=this.transfer(_91a,_91b,data.rows);
+}else{
+function _91d(_91e,_91f){
+for(var i=0;i<_91e.length;i++){
+var row=_91e[i];
+row._parentId=_91f;
+if(row.children&&row.children.length){
+_91d(row.children,row[opts.idField]);
+}
+}
+};
+_91d(data,_91b);
+}
+var node=find(_91a,_91b);
+if(node){
+if(node.children){
+node.children=node.children.concat(data);
+}else{
+node.children=data;
+}
+}else{
+_91c.data=_91c.data.concat(data);
+}
+this.sort(_91a,data);
+this.treeNodes=data;
+this.treeLevel=$(_91a).treegrid("getLevel",_91b);
+},sort:function(_920,data){
+var opts=$.data(_920,"treegrid").options;
+if(!opts.remoteSort&&opts.sortName){
+var _921=opts.sortName.split(",");
+var _922=opts.sortOrder.split(",");
+_923(data);
+}
+function _923(rows){
+rows.sort(function(r1,r2){
+var r=0;
+for(var i=0;i<_921.length;i++){
+var sn=_921[i];
+var so=_922[i];
+var col=$(_920).treegrid("getColumnOption",sn);
+var _924=col.sorter||function(a,b){
+return a==b?0:(a>b?1:-1);
+};
+r=_924(r1[sn],r2[sn])*(so=="asc"?1:-1);
+if(r!=0){
+return r;
+}
+}
+return r;
+});
+for(var i=0;i<rows.length;i++){
+var _925=rows[i].children;
+if(_925&&_925.length){
+_923(_925);
+}
+}
+};
+},transfer:function(_926,_927,data){
+var opts=$.data(_926,"treegrid").options;
+var rows=[];
+for(var i=0;i<data.length;i++){
+rows.push(data[i]);
+}
+var _928=[];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+if(!_927){
+if(!row._parentId){
+_928.push(row);
+rows.splice(i,1);
+i--;
+}
+}else{
+if(row._parentId==_927){
+_928.push(row);
+rows.splice(i,1);
+i--;
+}
+}
+}
+var toDo=[];
+for(var i=0;i<_928.length;i++){
+toDo.push(_928[i]);
+}
+while(toDo.length){
+var node=toDo.shift();
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+if(row._parentId==node[opts.idField]){
+if(node.children){
+node.children.push(row);
+}else{
+node.children=[row];
+}
+toDo.push(row);
+rows.splice(i,1);
+i--;
+}
+}
+}
+return _928;
+}});
+$.fn.treegrid.defaults=$.extend({},$.fn.datagrid.defaults,{treeField:null,lines:false,animate:false,singleSelect:true,view:_8ec,rowEvents:$.extend({},$.fn.datagrid.defaults.rowEvents,{mouseover:_87d(true),mouseout:_87d(false),click:_87f}),loader:function(_929,_92a,_92b){
+var opts=$(this).treegrid("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_929,dataType:"json",success:function(data){
+_92a(data);
+},error:function(){
+_92b.apply(this,arguments);
+}});
+},loadFilter:function(data,_92c){
+return data;
+},finder:{getTr:function(_92d,id,type,_92e){
+type=type||"body";
+_92e=_92e||0;
+var dc=$.data(_92d,"datagrid").dc;
+if(_92e==0){
+var opts=$.data(_92d,"treegrid").options;
+var tr1=opts.finder.getTr(_92d,id,type,1);
+var tr2=opts.finder.getTr(_92d,id,type,2);
+return tr1.add(tr2);
+}else{
+if(type=="body"){
+var tr=$("#"+$.data(_92d,"datagrid").rowIdPrefix+"-"+_92e+"-"+id);
+if(!tr.length){
+tr=(_92e==1?dc.body1:dc.body2).find("tr[node-id=\""+id+"\"]");
+}
+return tr;
+}else{
+if(type=="footer"){
+return (_92e==1?dc.footer1:dc.footer2).find("tr[node-id=\""+id+"\"]");
+}else{
+if(type=="selected"){
+return (_92e==1?dc.body1:dc.body2).find("tr.datagrid-row-selected");
+}else{
+if(type=="highlight"){
+return (_92e==1?dc.body1:dc.body2).find("tr.datagrid-row-over");
+}else{
+if(type=="checked"){
+return (_92e==1?dc.body1:dc.body2).find("tr.datagrid-row-checked");
+}else{
+if(type=="last"){
+return (_92e==1?dc.body1:dc.body2).find("tr:last[node-id]");
+}else{
+if(type=="allbody"){
+return (_92e==1?dc.body1:dc.body2).find("tr[node-id]");
+}else{
+if(type=="allfooter"){
+return (_92e==1?dc.footer1:dc.footer2).find("tr[node-id]");
+}
+}
+}
+}
+}
+}
+}
+}
+}
+},getRow:function(_92f,p){
+var id=(typeof p=="object")?p.attr("node-id"):p;
+return $(_92f).treegrid("find",id);
+},getRows:function(_930){
+return $(_930).treegrid("getChildren");
+}},onBeforeLoad:function(row,_931){
+},onLoadSuccess:function(row,data){
+},onLoadError:function(){
+},onBeforeCollapse:function(row){
+},onCollapse:function(row){
+},onBeforeExpand:function(row){
+},onExpand:function(row){
+},onClickRow:function(row){
+},onDblClickRow:function(row){
+},onClickCell:function(_932,row){
+},onDblClickCell:function(_933,row){
+},onContextMenu:function(e,row){
+},onBeforeEdit:function(row){
+},onAfterEdit:function(row,_934){
+},onCancelEdit:function(row){
+}});
+})(jQuery);
+(function($){
+function _935(_936){
+var opts=$.data(_936,"datalist").options;
+$(_936).datagrid($.extend({},opts,{cls:"datalist"+(opts.lines?" datalist-lines":""),frozenColumns:(opts.frozenColumns&&opts.frozenColumns.length)?opts.frozenColumns:(opts.checkbox?[[{field:"_ck",checkbox:true}]]:undefined),columns:(opts.columns&&opts.columns.length)?opts.columns:[[{field:opts.textField,width:"100%",formatter:function(_937,row,_938){
+return opts.textFormatter?opts.textFormatter(_937,row,_938):_937;
+}}]]}));
+};
+var _939=$.extend({},$.fn.datagrid.defaults.view,{render:function(_93a,_93b,_93c){
+var _93d=$.data(_93a,"datagrid");
+var opts=_93d.options;
+if(opts.groupField){
+var g=this.groupRows(_93a,_93d.data.rows);
+this.groups=g.groups;
+_93d.data.rows=g.rows;
+var _93e=[];
+for(var i=0;i<g.groups.length;i++){
+_93e.push(this.renderGroup.call(this,_93a,i,g.groups[i],_93c));
+}
+$(_93b).html(_93e.join(""));
+}else{
+$(_93b).html(this.renderTable(_93a,0,_93d.data.rows,_93c));
+}
+},renderGroup:function(_93f,_940,_941,_942){
+var _943=$.data(_93f,"datagrid");
+var opts=_943.options;
+var _944=$(_93f).datagrid("getColumnFields",_942);
+var _945=[];
+_945.push("<div class=\"datagrid-group\" group-index="+_940+">");
+if(!_942){
+_945.push("<span class=\"datagrid-group-title\">");
+_945.push(opts.groupFormatter.call(_93f,_941.value,_941.rows));
+_945.push("</span>");
+}
+_945.push("</div>");
+_945.push(this.renderTable(_93f,_941.startIndex,_941.rows,_942));
+return _945.join("");
+},groupRows:function(_946,rows){
+var _947=$.data(_946,"datagrid");
+var opts=_947.options;
+var _948=[];
+for(var i=0;i<rows.length;i++){
+var row=rows[i];
+var _949=_94a(row[opts.groupField]);
+if(!_949){
+_949={value:row[opts.groupField],rows:[row]};
+_948.push(_949);
+}else{
+_949.rows.push(row);
+}
+}
+var _94b=0;
+var rows=[];
+for(var i=0;i<_948.length;i++){
+var _949=_948[i];
+_949.startIndex=_94b;
+_94b+=_949.rows.length;
+rows=rows.concat(_949.rows);
+}
+return {groups:_948,rows:rows};
+function _94a(_94c){
+for(var i=0;i<_948.length;i++){
+var _94d=_948[i];
+if(_94d.value==_94c){
+return _94d;
+}
+}
+return null;
+};
+}});
+$.fn.datalist=function(_94e,_94f){
+if(typeof _94e=="string"){
+var _950=$.fn.datalist.methods[_94e];
+if(_950){
+return _950(this,_94f);
+}else{
+return this.datagrid(_94e,_94f);
+}
+}
+_94e=_94e||{};
+return this.each(function(){
+var _951=$.data(this,"datalist");
+if(_951){
+$.extend(_951.options,_94e);
+}else{
+var opts=$.extend({},$.fn.datalist.defaults,$.fn.datalist.parseOptions(this),_94e);
+opts.columns=$.extend(true,[],opts.columns);
+_951=$.data(this,"datalist",{options:opts});
+}
+_935(this);
+if(!_951.options.data){
+var data=$.fn.datalist.parseData(this);
+if(data.total){
+$(this).datalist("loadData",data);
+}
+}
+});
+};
+$.fn.datalist.methods={options:function(jq){
+return $.data(jq[0],"datalist").options;
+}};
+$.fn.datalist.parseOptions=function(_952){
+return $.extend({},$.fn.datagrid.parseOptions(_952),$.parser.parseOptions(_952,["valueField","textField","groupField",{checkbox:"boolean",lines:"boolean"}]));
+};
+$.fn.datalist.parseData=function(_953){
+var opts=$.data(_953,"datalist").options;
+var data={total:0,rows:[]};
+$(_953).children().each(function(){
+var _954=$.parser.parseOptions(this,["value","group"]);
+var row={};
+var html=$(this).html();
+row[opts.valueField]=_954.value!=undefined?_954.value:html;
+row[opts.textField]=html;
+if(opts.groupField){
+row[opts.groupField]=_954.group;
+}
+data.total++;
+data.rows.push(row);
+});
+return data;
+};
+$.fn.datalist.defaults=$.extend({},$.fn.datagrid.defaults,{fitColumns:true,singleSelect:true,showHeader:false,checkbox:false,lines:false,valueField:"value",textField:"text",groupField:"",view:_939,textFormatter:function(_955,row){
+return _955;
+},groupFormatter:function(_956,rows){
+return _956;
+}});
+})(jQuery);
+(function($){
+$(function(){
+$(document).unbind(".combo").bind("mousedown.combo mousewheel.combo",function(e){
+var p=$(e.target).closest("span.combo,div.combo-p,div.menu");
+if(p.length){
+_957(p);
+return;
+}
+$("body>div.combo-p>div.combo-panel:visible").panel("close");
+});
+});
+function _958(_959){
+var _95a=$.data(_959,"combo");
+var opts=_95a.options;
+if(!_95a.panel){
+_95a.panel=$("<div class=\"combo-panel\"></div>").appendTo("body");
+_95a.panel.panel({minWidth:opts.panelMinWidth,maxWidth:opts.panelMaxWidth,minHeight:opts.panelMinHeight,maxHeight:opts.panelMaxHeight,doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){
+var _95b=$(this).panel("options").comboTarget;
+var _95c=$.data(_95b,"combo");
+if(_95c){
+_95c.options.onShowPanel.call(_95b);
+}
+},onBeforeClose:function(){
+_957(this);
+},onClose:function(){
+var _95d=$(this).panel("options").comboTarget;
+var _95e=$(_95d).data("combo");
+if(_95e){
+_95e.options.onHidePanel.call(_95d);
+}
+}});
+}
+var _95f=$.extend(true,[],opts.icons);
+if(opts.hasDownArrow){
+_95f.push({iconCls:"combo-arrow",handler:function(e){
+_963(e.data.target);
+}});
+}
+$(_959).addClass("combo-f").textbox($.extend({},opts,{icons:_95f,onChange:function(){
+}}));
+$(_959).attr("comboName",$(_959).attr("textboxName"));
+_95a.combo=$(_959).next();
+_95a.combo.addClass("combo");
+};
+function _960(_961){
+var _962=$.data(_961,"combo");
+var opts=_962.options;
+var p=_962.panel;
+if(p.is(":visible")){
+p.panel("close");
+}
+if(!opts.cloned){
+p.panel("destroy");
+}
+$(_961).textbox("destroy");
+};
+function _963(_964){
+var _965=$.data(_964,"combo").panel;
+if(_965.is(":visible")){
+_966(_964);
+}else{
+var p=$(_964).closest("div.combo-panel");
+$("div.combo-panel:visible").not(_965).not(p).panel("close");
+$(_964).combo("showPanel");
+}
+$(_964).combo("textbox").focus();
+};
+function _957(_967){
+$(_967).find(".combo-f").each(function(){
+var p=$(this).combo("panel");
+if(p.is(":visible")){
+p.panel("close");
+}
+});
+};
+function _968(e){
+var _969=e.data.target;
+var _96a=$.data(_969,"combo");
+var opts=_96a.options;
+var _96b=_96a.panel;
+if(!opts.editable){
+_963(_969);
+}else{
+var p=$(_969).closest("div.combo-panel");
+$("div.combo-panel:visible").not(_96b).not(p).panel("close");
+}
+};
+function _96c(e){
+var _96d=e.data.target;
+var t=$(_96d);
+var _96e=t.data("combo");
+var opts=t.combo("options");
+switch(e.keyCode){
+case 38:
+opts.keyHandler.up.call(_96d,e);
+break;
+case 40:
+opts.keyHandler.down.call(_96d,e);
+break;
+case 37:
+opts.keyHandler.left.call(_96d,e);
+break;
+case 39:
+opts.keyHandler.right.call(_96d,e);
+break;
+case 13:
+e.preventDefault();
+opts.keyHandler.enter.call(_96d,e);
+return false;
+case 9:
+case 27:
+_966(_96d);
+break;
+default:
+if(opts.editable){
+if(_96e.timer){
+clearTimeout(_96e.timer);
+}
+_96e.timer=setTimeout(function(){
+var q=t.combo("getText");
+if(_96e.previousText!=q){
+_96e.previousText=q;
+t.combo("showPanel");
+opts.keyHandler.query.call(_96d,q,e);
+t.combo("validate");
+}
+},opts.delay);
+}
+}
+};
+function _96f(_970){
+var _971=$.data(_970,"combo");
+var _972=_971.combo;
+var _973=_971.panel;
+var opts=$(_970).combo("options");
+var _974=_973.panel("options");
+_974.comboTarget=_970;
+if(_974.closed){
+_973.panel("panel").show().css({zIndex:($.fn.menu?$.fn.menu.defaults.zIndex++:($.fn.window?$.fn.window.defaults.zIndex++:99)),left:-999999});
+_973.panel("resize",{width:(opts.panelWidth?opts.panelWidth:_972._outerWidth()),height:opts.panelHeight});
+_973.panel("panel").hide();
+_973.panel("open");
+}
+(function(){
+if(_973.is(":visible")){
+_973.panel("move",{left:_975(),top:_976()});
+setTimeout(arguments.callee,200);
+}
+})();
+function _975(){
+var left=_972.offset().left;
+if(opts.panelAlign=="right"){
+left+=_972._outerWidth()-_973._outerWidth();
+}
+if(left+_973._outerWidth()>$(window)._outerWidth()+$(document).scrollLeft()){
+left=$(window)._outerWidth()+$(document).scrollLeft()-_973._outerWidth();
+}
+if(left<0){
+left=0;
+}
+return left;
+};
+function _976(){
+var top=_972.offset().top+_972._outerHeight();
+if(top+_973._outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
+top=_972.offset().top-_973._outerHeight();
+}
+if(top<$(document).scrollTop()){
+top=_972.offset().top+_972._outerHeight();
+}
+return top;
+};
+};
+function _966(_977){
+var _978=$.data(_977,"combo").panel;
+_978.panel("close");
+};
+function _979(_97a,text){
+var _97b=$.data(_97a,"combo");
+var _97c=$(_97a).textbox("getText");
+if(_97c!=text){
+$(_97a).textbox("setText",text);
+_97b.previousText=text;
+}
+};
+function _97d(_97e){
+var _97f=[];
+var _980=$.data(_97e,"combo").combo;
+_980.find(".textbox-value").each(function(){
+_97f.push($(this).val());
+});
+return _97f;
+};
+function _981(_982,_983){
+var _984=$.data(_982,"combo");
+var opts=_984.options;
+var _985=_984.combo;
+if(!$.isArray(_983)){
+_983=_983.split(opts.separator);
+}
+var _986=_97d(_982);
+_985.find(".textbox-value").remove();
+var name=$(_982).attr("textboxName")||"";
+for(var i=0;i<_983.length;i++){
+var _987=$("<input type=\"hidden\" class=\"textbox-value\">").appendTo(_985);
+_987.attr("name",name);
+if(opts.disabled){
+_987.attr("disabled","disabled");
+}
+_987.val(_983[i]);
+}
+var _988=(function(){
+if(_986.length!=_983.length){
+return true;
+}
+var a1=$.extend(true,[],_986);
+var a2=$.extend(true,[],_983);
+a1.sort();
+a2.sort();
+for(var i=0;i<a1.length;i++){
+if(a1[i]!=a2[i]){
+return true;
+}
+}
+return false;
+})();
+if(_988){
+if(opts.multiple){
+opts.onChange.call(_982,_983,_986);
+}else{
+opts.onChange.call(_982,_983[0],_986[0]);
+}
+$(_982).closest("form").trigger("_change",[_982]);
+}
+};
+function _989(_98a){
+var _98b=_97d(_98a);
+return _98b[0];
+};
+function _98c(_98d,_98e){
+_981(_98d,[_98e]);
+};
+function _98f(_990){
+var opts=$.data(_990,"combo").options;
+var _991=opts.onChange;
+opts.onChange=function(){
+};
+if(opts.multiple){
+_981(_990,opts.value?opts.value:[]);
+}else{
+_98c(_990,opts.value);
+}
+opts.onChange=_991;
+};
+$.fn.combo=function(_992,_993){
+if(typeof _992=="string"){
+var _994=$.fn.combo.methods[_992];
+if(_994){
+return _994(this,_993);
+}else{
+return this.textbox(_992,_993);
+}
+}
+_992=_992||{};
+return this.each(function(){
+var _995=$.data(this,"combo");
+if(_995){
+$.extend(_995.options,_992);
+if(_992.value!=undefined){
+_995.options.originalValue=_992.value;
+}
+}else{
+_995=$.data(this,"combo",{options:$.extend({},$.fn.combo.defaults,$.fn.combo.parseOptions(this),_992),previousText:""});
+_995.options.originalValue=_995.options.value;
+}
+_958(this);
+_98f(this);
+});
+};
+$.fn.combo.methods={options:function(jq){
+var opts=jq.textbox("options");
+return $.extend($.data(jq[0],"combo").options,{width:opts.width,height:opts.height,disabled:opts.disabled,readonly:opts.readonly});
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+$(this).textbox("cloneFrom",from);
+$.data(this,"combo",{options:$.extend(true,{cloned:true},$(from).combo("options")),combo:$(this).next(),panel:$(from).combo("panel")});
+$(this).addClass("combo-f").attr("comboName",$(this).attr("textboxName"));
+});
+},panel:function(jq){
+return $.data(jq[0],"combo").panel;
+},destroy:function(jq){
+return jq.each(function(){
+_960(this);
+});
+},showPanel:function(jq){
+return jq.each(function(){
+_96f(this);
+});
+},hidePanel:function(jq){
+return jq.each(function(){
+_966(this);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).textbox("setText","");
+var opts=$.data(this,"combo").options;
+if(opts.multiple){
+$(this).combo("setValues",[]);
+}else{
+$(this).combo("setValue","");
+}
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$.data(this,"combo").options;
+if(opts.multiple){
+$(this).combo("setValues",opts.originalValue);
+}else{
+$(this).combo("setValue",opts.originalValue);
+}
+});
+},setText:function(jq,text){
+return jq.each(function(){
+_979(this,text);
+});
+},getValues:function(jq){
+return _97d(jq[0]);
+},setValues:function(jq,_996){
+return jq.each(function(){
+_981(this,_996);
+});
+},getValue:function(jq){
+return _989(jq[0]);
+},setValue:function(jq,_997){
+return jq.each(function(){
+_98c(this,_997);
+});
+}};
+$.fn.combo.parseOptions=function(_998){
+var t=$(_998);
+return $.extend({},$.fn.textbox.parseOptions(_998),$.parser.parseOptions(_998,["separator","panelAlign",{panelWidth:"number",hasDownArrow:"boolean",delay:"number",selectOnNavigation:"boolean"},{panelMinWidth:"number",panelMaxWidth:"number",panelMinHeight:"number",panelMaxHeight:"number"}]),{panelHeight:(t.attr("panelHeight")=="auto"?"auto":parseInt(t.attr("panelHeight"))||undefined),multiple:(t.attr("multiple")?true:undefined)});
+};
+$.fn.combo.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{click:_968,keydown:_96c,paste:_96c,drop:_96c},panelWidth:null,panelHeight:200,panelMinWidth:null,panelMaxWidth:null,panelMinHeight:null,panelMaxHeight:null,panelAlign:"left",multiple:false,selectOnNavigation:true,separator:",",hasDownArrow:true,delay:200,keyHandler:{up:function(e){
+},down:function(e){
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+},query:function(q,e){
+}},onShowPanel:function(){
+},onHidePanel:function(){
+},onChange:function(_999,_99a){
+}});
+})(jQuery);
+(function($){
+var _99b=0;
+function _99c(_99d,_99e){
+var _99f=$.data(_99d,"combobox");
+var opts=_99f.options;
+var data=_99f.data;
+for(var i=0;i<data.length;i++){
+if(data[i][opts.valueField]==_99e){
+return i;
+}
+}
+return -1;
+};
+function _9a0(_9a1,_9a2){
+var opts=$.data(_9a1,"combobox").options;
+var _9a3=$(_9a1).combo("panel");
+var item=opts.finder.getEl(_9a1,_9a2);
+if(item.length){
+if(item.position().top<=0){
+var h=_9a3.scrollTop()+item.position().top;
+_9a3.scrollTop(h);
+}else{
+if(item.position().top+item.outerHeight()>_9a3.height()){
+var h=_9a3.scrollTop()+item.position().top+item.outerHeight()-_9a3.height();
+_9a3.scrollTop(h);
+}
+}
+}
+};
+function nav(_9a4,dir){
+var opts=$.data(_9a4,"combobox").options;
+var _9a5=$(_9a4).combobox("panel");
+var item=_9a5.children("div.combobox-item-hover");
+if(!item.length){
+item=_9a5.children("div.combobox-item-selected");
+}
+item.removeClass("combobox-item-hover");
+var _9a6="div.combobox-item:visible:not(.combobox-item-disabled):first";
+var _9a7="div.combobox-item:visible:not(.combobox-item-disabled):last";
+if(!item.length){
+item=_9a5.children(dir=="next"?_9a6:_9a7);
+}else{
+if(dir=="next"){
+item=item.nextAll(_9a6);
+if(!item.length){
+item=_9a5.children(_9a6);
+}
+}else{
+item=item.prevAll(_9a6);
+if(!item.length){
+item=_9a5.children(_9a7);
+}
+}
+}
+if(item.length){
+item.addClass("combobox-item-hover");
+var row=opts.finder.getRow(_9a4,item);
+if(row){
+_9a0(_9a4,row[opts.valueField]);
+if(opts.selectOnNavigation){
+_9a8(_9a4,row[opts.valueField]);
+}
+}
+}
+};
+function _9a8(_9a9,_9aa){
+var opts=$.data(_9a9,"combobox").options;
+var _9ab=$(_9a9).combo("getValues");
+if($.inArray(_9aa+"",_9ab)==-1){
+if(opts.multiple){
+_9ab.push(_9aa);
+}else{
+_9ab=[_9aa];
+}
+_9ac(_9a9,_9ab);
+opts.onSelect.call(_9a9,opts.finder.getRow(_9a9,_9aa));
+}
+};
+function _9ad(_9ae,_9af){
+var opts=$.data(_9ae,"combobox").options;
+var _9b0=$(_9ae).combo("getValues");
+var _9b1=$.inArray(_9af+"",_9b0);
+if(_9b1>=0){
+_9b0.splice(_9b1,1);
+_9ac(_9ae,_9b0);
+opts.onUnselect.call(_9ae,opts.finder.getRow(_9ae,_9af));
+}
+};
+function _9ac(_9b2,_9b3,_9b4){
+var opts=$.data(_9b2,"combobox").options;
+var _9b5=$(_9b2).combo("panel");
+if(!$.isArray(_9b3)){
+_9b3=_9b3.split(opts.separator);
+}
+_9b5.find("div.combobox-item-selected").removeClass("combobox-item-selected");
+var vv=[],ss=[];
+for(var i=0;i<_9b3.length;i++){
+var v=_9b3[i];
+var s=v;
+opts.finder.getEl(_9b2,v).addClass("combobox-item-selected");
+var row=opts.finder.getRow(_9b2,v);
+if(row){
+s=row[opts.textField];
+}
+vv.push(v);
+ss.push(s);
+}
+if(!_9b4){
+$(_9b2).combo("setText",ss.join(opts.separator));
+}
+$(_9b2).combo("setValues",vv);
+};
+function _9b6(_9b7,data,_9b8){
+var _9b9=$.data(_9b7,"combobox");
+var opts=_9b9.options;
+_9b9.data=opts.loadFilter.call(_9b7,data);
+_9b9.groups=[];
+data=_9b9.data;
+var _9ba=$(_9b7).combobox("getValues");
+var dd=[];
+var _9bb=undefined;
+for(var i=0;i<data.length;i++){
+var row=data[i];
+var v=row[opts.valueField]+"";
+var s=row[opts.textField];
+var g=row[opts.groupField];
+if(g){
+if(_9bb!=g){
+_9bb=g;
+_9b9.groups.push(g);
+dd.push("<div id=\""+(_9b9.groupIdPrefix+"_"+(_9b9.groups.length-1))+"\" class=\"combobox-group\">");
+dd.push(opts.groupFormatter?opts.groupFormatter.call(_9b7,g):g);
+dd.push("</div>");
+}
+}else{
+_9bb=undefined;
+}
+var cls="combobox-item"+(row.disabled?" combobox-item-disabled":"")+(g?" combobox-gitem":"");
+dd.push("<div id=\""+(_9b9.itemIdPrefix+"_"+i)+"\" class=\""+cls+"\">");
+dd.push(opts.formatter?opts.formatter.call(_9b7,row):s);
+dd.push("</div>");
+if(row["selected"]&&$.inArray(v,_9ba)==-1){
+_9ba.push(v);
+}
+}
+$(_9b7).combo("panel").html(dd.join(""));
+if(opts.multiple){
+_9ac(_9b7,_9ba,_9b8);
+}else{
+_9ac(_9b7,_9ba.length?[_9ba[_9ba.length-1]]:[],_9b8);
+}
+opts.onLoadSuccess.call(_9b7,data);
+};
+function _9bc(_9bd,url,_9be,_9bf){
+var opts=$.data(_9bd,"combobox").options;
+if(url){
+opts.url=url;
+}
+_9be=$.extend({},opts.queryParams,_9be||{});
+if(opts.onBeforeLoad.call(_9bd,_9be)==false){
+return;
+}
+opts.loader.call(_9bd,_9be,function(data){
+_9b6(_9bd,data,_9bf);
+},function(){
+opts.onLoadError.apply(this,arguments);
+});
+};
+function _9c0(_9c1,q){
+var _9c2=$.data(_9c1,"combobox");
+var opts=_9c2.options;
+var qq=opts.multiple?q.split(opts.separator):[q];
+if(opts.mode=="remote"){
+_9c3(qq);
+_9bc(_9c1,null,{q:q},true);
+}else{
+var _9c4=$(_9c1).combo("panel");
+_9c4.find("div.combobox-item-selected,div.combobox-item-hover").removeClass("combobox-item-selected combobox-item-hover");
+_9c4.find("div.combobox-item,div.combobox-group").hide();
+var data=_9c2.data;
+var vv=[];
+$.map(qq,function(q){
+q=$.trim(q);
+var _9c5=q;
+var _9c6=undefined;
+for(var i=0;i<data.length;i++){
+var row=data[i];
+if(opts.filter.call(_9c1,q,row)){
+var v=row[opts.valueField];
+var s=row[opts.textField];
+var g=row[opts.groupField];
+var item=opts.finder.getEl(_9c1,v).show();
+if(s.toLowerCase()==q.toLowerCase()){
+_9c5=v;
+item.addClass("combobox-item-selected");
+opts.onSelect.call(_9c1,row);
+}
+if(opts.groupField&&_9c6!=g){
+$("#"+_9c2.groupIdPrefix+"_"+$.inArray(g,_9c2.groups)).show();
+_9c6=g;
+}
+}
+}
+vv.push(_9c5);
+});
+_9c3(vv);
+}
+function _9c3(vv){
+_9ac(_9c1,opts.multiple?(q?vv:[]):vv,true);
+};
+};
+function _9c7(_9c8){
+var t=$(_9c8);
+var opts=t.combobox("options");
+var _9c9=t.combobox("panel");
+var item=_9c9.children("div.combobox-item-hover");
+if(item.length){
+var row=opts.finder.getRow(_9c8,item);
+var _9ca=row[opts.valueField];
+if(opts.multiple){
+if(item.hasClass("combobox-item-selected")){
+t.combobox("unselect",_9ca);
+}else{
+t.combobox("select",_9ca);
+}
+}else{
+t.combobox("select",_9ca);
+}
+}
+var vv=[];
+$.map(t.combobox("getValues"),function(v){
+if(_99c(_9c8,v)>=0){
+vv.push(v);
+}
+});
+t.combobox("setValues",vv);
+if(!opts.multiple){
+t.combobox("hidePanel");
+}
+};
+function _9cb(_9cc){
+var _9cd=$.data(_9cc,"combobox");
+var opts=_9cd.options;
+_99b++;
+_9cd.itemIdPrefix="_easyui_combobox_i"+_99b;
+_9cd.groupIdPrefix="_easyui_combobox_g"+_99b;
+$(_9cc).addClass("combobox-f");
+$(_9cc).combo($.extend({},opts,{onShowPanel:function(){
+$(_9cc).combo("panel").find("div.combobox-item:hidden,div.combobox-group:hidden").show();
+_9a0(_9cc,$(_9cc).combobox("getValue"));
+opts.onShowPanel.call(_9cc);
+}}));
+$(_9cc).combo("panel").unbind().bind("mouseover",function(e){
+$(this).children("div.combobox-item-hover").removeClass("combobox-item-hover");
+var item=$(e.target).closest("div.combobox-item");
+if(!item.hasClass("combobox-item-disabled")){
+item.addClass("combobox-item-hover");
+}
+e.stopPropagation();
+}).bind("mouseout",function(e){
+$(e.target).closest("div.combobox-item").removeClass("combobox-item-hover");
+e.stopPropagation();
+}).bind("click",function(e){
+var item=$(e.target).closest("div.combobox-item");
+if(!item.length||item.hasClass("combobox-item-disabled")){
+return;
+}
+var row=opts.finder.getRow(_9cc,item);
+if(!row){
+return;
+}
+var _9ce=row[opts.valueField];
+if(opts.multiple){
+if(item.hasClass("combobox-item-selected")){
+_9ad(_9cc,_9ce);
+}else{
+_9a8(_9cc,_9ce);
+}
+}else{
+_9a8(_9cc,_9ce);
+$(_9cc).combo("hidePanel");
+}
+e.stopPropagation();
+});
+};
+$.fn.combobox=function(_9cf,_9d0){
+if(typeof _9cf=="string"){
+var _9d1=$.fn.combobox.methods[_9cf];
+if(_9d1){
+return _9d1(this,_9d0);
+}else{
+return this.combo(_9cf,_9d0);
+}
+}
+_9cf=_9cf||{};
+return this.each(function(){
+var _9d2=$.data(this,"combobox");
+if(_9d2){
+$.extend(_9d2.options,_9cf);
+}else{
+_9d2=$.data(this,"combobox",{options:$.extend({},$.fn.combobox.defaults,$.fn.combobox.parseOptions(this),_9cf),data:[]});
+}
+_9cb(this);
+if(_9d2.options.data){
+_9b6(this,_9d2.options.data);
+}else{
+var data=$.fn.combobox.parseData(this);
+if(data.length){
+_9b6(this,data);
+}
+}
+_9bc(this);
+});
+};
+$.fn.combobox.methods={options:function(jq){
+var _9d3=jq.combo("options");
+return $.extend($.data(jq[0],"combobox").options,{width:_9d3.width,height:_9d3.height,originalValue:_9d3.originalValue,disabled:_9d3.disabled,readonly:_9d3.readonly});
+},getData:function(jq){
+return $.data(jq[0],"combobox").data;
+},setValues:function(jq,_9d4){
+return jq.each(function(){
+_9ac(this,_9d4);
+});
+},setValue:function(jq,_9d5){
+return jq.each(function(){
+_9ac(this,[_9d5]);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).combo("clear");
+var _9d6=$(this).combo("panel");
+_9d6.find("div.combobox-item-selected").removeClass("combobox-item-selected");
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).combobox("options");
+if(opts.multiple){
+$(this).combobox("setValues",opts.originalValue);
+}else{
+$(this).combobox("setValue",opts.originalValue);
+}
+});
+},loadData:function(jq,data){
+return jq.each(function(){
+_9b6(this,data);
+});
+},reload:function(jq,url){
+return jq.each(function(){
+if(typeof url=="string"){
+_9bc(this,url);
+}else{
+if(url){
+var opts=$(this).combobox("options");
+opts.queryParams=url;
+}
+_9bc(this);
+}
+});
+},select:function(jq,_9d7){
+return jq.each(function(){
+_9a8(this,_9d7);
+});
+},unselect:function(jq,_9d8){
+return jq.each(function(){
+_9ad(this,_9d8);
+});
+}};
+$.fn.combobox.parseOptions=function(_9d9){
+var t=$(_9d9);
+return $.extend({},$.fn.combo.parseOptions(_9d9),$.parser.parseOptions(_9d9,["valueField","textField","groupField","mode","method","url"]));
+};
+$.fn.combobox.parseData=function(_9da){
+var data=[];
+var opts=$(_9da).combobox("options");
+$(_9da).children().each(function(){
+if(this.tagName.toLowerCase()=="optgroup"){
+var _9db=$(this).attr("label");
+$(this).children().each(function(){
+_9dc(this,_9db);
+});
+}else{
+_9dc(this);
+}
+});
+return data;
+function _9dc(el,_9dd){
+var t=$(el);
+var row={};
+row[opts.valueField]=t.attr("value")!=undefined?t.attr("value"):t.text();
+row[opts.textField]=t.text();
+row["selected"]=t.is(":selected");
+row["disabled"]=t.is(":disabled");
+if(_9dd){
+opts.groupField=opts.groupField||"group";
+row[opts.groupField]=_9dd;
+}
+data.push(row);
+};
+};
+$.fn.combobox.defaults=$.extend({},$.fn.combo.defaults,{valueField:"value",textField:"text",groupField:null,groupFormatter:function(_9de){
+return _9de;
+},mode:"local",method:"post",url:null,data:null,queryParams:{},keyHandler:{up:function(e){
+nav(this,"prev");
+e.preventDefault();
+},down:function(e){
+nav(this,"next");
+e.preventDefault();
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_9c7(this);
+},query:function(q,e){
+_9c0(this,q);
+}},filter:function(q,row){
+var opts=$(this).combobox("options");
+return row[opts.textField].toLowerCase().indexOf(q.toLowerCase())==0;
+},formatter:function(row){
+var opts=$(this).combobox("options");
+return row[opts.textField];
+},loader:function(_9df,_9e0,_9e1){
+var opts=$(this).combobox("options");
+if(!opts.url){
+return false;
+}
+$.ajax({type:opts.method,url:opts.url,data:_9df,dataType:"json",success:function(data){
+_9e0(data);
+},error:function(){
+_9e1.apply(this,arguments);
+}});
+},loadFilter:function(data){
+return data;
+},finder:{getEl:function(_9e2,_9e3){
+var _9e4=_99c(_9e2,_9e3);
+var id=$.data(_9e2,"combobox").itemIdPrefix+"_"+_9e4;
+return $("#"+id);
+},getRow:function(_9e5,p){
+var _9e6=$.data(_9e5,"combobox");
+var _9e7=(p instanceof jQuery)?p.attr("id").substr(_9e6.itemIdPrefix.length+1):_99c(_9e5,p);
+return _9e6.data[parseInt(_9e7)];
+}},onBeforeLoad:function(_9e8){
+},onLoadSuccess:function(){
+},onLoadError:function(){
+},onSelect:function(_9e9){
+},onUnselect:function(_9ea){
+}});
+})(jQuery);
+(function($){
+function _9eb(_9ec){
+var _9ed=$.data(_9ec,"combotree");
+var opts=_9ed.options;
+var tree=_9ed.tree;
+$(_9ec).addClass("combotree-f");
+$(_9ec).combo(opts);
+var _9ee=$(_9ec).combo("panel");
+if(!tree){
+tree=$("<ul></ul>").appendTo(_9ee);
+$.data(_9ec,"combotree").tree=tree;
+}
+tree.tree($.extend({},opts,{checkbox:opts.multiple,onLoadSuccess:function(node,data){
+var _9ef=$(_9ec).combotree("getValues");
+if(opts.multiple){
+var _9f0=tree.tree("getChecked");
+for(var i=0;i<_9f0.length;i++){
+var id=_9f0[i].id;
+(function(){
+for(var i=0;i<_9ef.length;i++){
+if(id==_9ef[i]){
+return;
+}
+}
+_9ef.push(id);
+})();
+}
+}
+$(_9ec).combotree("setValues",_9ef);
+opts.onLoadSuccess.call(this,node,data);
+},onClick:function(node){
+if(opts.multiple){
+$(this).tree(node.checked?"uncheck":"check",node.target);
+}else{
+$(_9ec).combo("hidePanel");
+}
+_9f2(_9ec);
+opts.onClick.call(this,node);
+},onCheck:function(node,_9f1){
+_9f2(_9ec);
+opts.onCheck.call(this,node,_9f1);
+}}));
+};
+function _9f2(_9f3){
+var _9f4=$.data(_9f3,"combotree");
+var opts=_9f4.options;
+var tree=_9f4.tree;
+var vv=[],ss=[];
+if(opts.multiple){
+var _9f5=tree.tree("getChecked");
+for(var i=0;i<_9f5.length;i++){
+vv.push(_9f5[i].id);
+ss.push(_9f5[i].text);
+}
+}else{
+var node=tree.tree("getSelected");
+if(node){
+vv.push(node.id);
+ss.push(node.text);
+}
+}
+$(_9f3).combo("setText",ss.join(opts.separator)).combo("setValues",opts.multiple?vv:(vv.length?vv:[""]));
+};
+function _9f6(_9f7,_9f8){
+var _9f9=$.data(_9f7,"combotree");
+var opts=_9f9.options;
+var tree=_9f9.tree;
+var _9fa=tree.tree("options");
+var _9fb=_9fa.onCheck;
+var _9fc=_9fa.onSelect;
+_9fa.onCheck=_9fa.onSelect=function(){
+};
+tree.find("span.tree-checkbox").addClass("tree-checkbox0").removeClass("tree-checkbox1 tree-checkbox2");
+if(!$.isArray(_9f8)){
+_9f8=_9f8.split(opts.separator);
+}
+var vv=$.map(_9f8,function(_9fd){
+return String(_9fd);
+});
+var ss=[];
+$.map(vv,function(v){
+var node=tree.tree("find",v);
+if(node){
+tree.tree("check",node.target).tree("select",node.target);
+ss.push(node.text);
+}else{
+ss.push(v);
+}
+});
+if(opts.multiple){
+var _9fe=tree.tree("getChecked");
+$.map(_9fe,function(node){
+var id=String(node.id);
+if($.inArray(id,vv)==-1){
+vv.push(id);
+ss.push(node.text);
+}
+});
+}
+_9fa.onCheck=_9fb;
+_9fa.onSelect=_9fc;
+$(_9f7).combo("setText",ss.join(opts.separator)).combo("setValues",opts.multiple?vv:(vv.length?vv:[""]));
+};
+$.fn.combotree=function(_9ff,_a00){
+if(typeof _9ff=="string"){
+var _a01=$.fn.combotree.methods[_9ff];
+if(_a01){
+return _a01(this,_a00);
+}else{
+return this.combo(_9ff,_a00);
+}
+}
+_9ff=_9ff||{};
+return this.each(function(){
+var _a02=$.data(this,"combotree");
+if(_a02){
+$.extend(_a02.options,_9ff);
+}else{
+$.data(this,"combotree",{options:$.extend({},$.fn.combotree.defaults,$.fn.combotree.parseOptions(this),_9ff)});
+}
+_9eb(this);
+});
+};
+$.fn.combotree.methods={options:function(jq){
+var _a03=jq.combo("options");
+return $.extend($.data(jq[0],"combotree").options,{width:_a03.width,height:_a03.height,originalValue:_a03.originalValue,disabled:_a03.disabled,readonly:_a03.readonly});
+},clone:function(jq,_a04){
+var t=jq.combo("clone",_a04);
+t.data("combotree",{options:$.extend(true,{},jq.combotree("options")),tree:jq.combotree("tree")});
+return t;
+},tree:function(jq){
+return $.data(jq[0],"combotree").tree;
+},loadData:function(jq,data){
+return jq.each(function(){
+var opts=$.data(this,"combotree").options;
+opts.data=data;
+var tree=$.data(this,"combotree").tree;
+tree.tree("loadData",data);
+});
+},reload:function(jq,url){
+return jq.each(function(){
+var opts=$.data(this,"combotree").options;
+var tree=$.data(this,"combotree").tree;
+if(url){
+opts.url=url;
+}
+tree.tree({url:opts.url});
+});
+},setValues:function(jq,_a05){
+return jq.each(function(){
+_9f6(this,_a05);
+});
+},setValue:function(jq,_a06){
+return jq.each(function(){
+_9f6(this,[_a06]);
+});
+},clear:function(jq){
+return jq.each(function(){
+var tree=$.data(this,"combotree").tree;
+tree.find("div.tree-node-selected").removeClass("tree-node-selected");
+var cc=tree.tree("getChecked");
+for(var i=0;i<cc.length;i++){
+tree.tree("uncheck",cc[i].target);
+}
+$(this).combo("clear");
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).combotree("options");
+if(opts.multiple){
+$(this).combotree("setValues",opts.originalValue);
+}else{
+$(this).combotree("setValue",opts.originalValue);
+}
+});
+}};
+$.fn.combotree.parseOptions=function(_a07){
+return $.extend({},$.fn.combo.parseOptions(_a07),$.fn.tree.parseOptions(_a07));
+};
+$.fn.combotree.defaults=$.extend({},$.fn.combo.defaults,$.fn.tree.defaults,{editable:false});
+})(jQuery);
+(function($){
+function _a08(_a09){
+var _a0a=$.data(_a09,"combogrid");
+var opts=_a0a.options;
+var grid=_a0a.grid;
+$(_a09).addClass("combogrid-f").combo($.extend({},opts,{onShowPanel:function(){
+var p=$(this).combogrid("panel");
+var _a0b=p.outerHeight()-p.height();
+var _a0c=p._size("minHeight");
+var _a0d=p._size("maxHeight");
+var dg=$(this).combogrid("grid");
+dg.datagrid("resize",{width:"100%",height:(isNaN(parseInt(opts.panelHeight))?"auto":"100%"),minHeight:(_a0c?_a0c-_a0b:""),maxHeight:(_a0d?_a0d-_a0b:"")});
+var row=dg.datagrid("getSelected");
+if(row){
+dg.datagrid("scrollTo",dg.datagrid("getRowIndex",row));
+}
+opts.onShowPanel.call(this);
+}}));
+var _a0e=$(_a09).combo("panel");
+if(!grid){
+grid=$("<table></table>").appendTo(_a0e);
+_a0a.grid=grid;
+}
+grid.datagrid($.extend({},opts,{border:false,singleSelect:(!opts.multiple),onLoadSuccess:function(data){
+var _a0f=$(_a09).combo("getValues");
+var _a10=opts.onSelect;
+opts.onSelect=function(){
+};
+_a16(_a09,_a0f,_a0a.remainText);
+opts.onSelect=_a10;
+opts.onLoadSuccess.apply(_a09,arguments);
+},onClickRow:_a11,onSelect:function(_a12,row){
+_a13();
+opts.onSelect.call(this,_a12,row);
+},onUnselect:function(_a14,row){
+_a13();
+opts.onUnselect.call(this,_a14,row);
+},onSelectAll:function(rows){
+_a13();
+opts.onSelectAll.call(this,rows);
+},onUnselectAll:function(rows){
+if(opts.multiple){
+_a13();
+}
+opts.onUnselectAll.call(this,rows);
+}}));
+function _a11(_a15,row){
+_a0a.remainText=false;
+_a13();
+if(!opts.multiple){
+$(_a09).combo("hidePanel");
+}
+opts.onClickRow.call(this,_a15,row);
+};
+function _a13(){
+var vv=$.map(grid.datagrid("getSelections"),function(row){
+return row[opts.idField];
+});
+vv=vv.concat(opts.unselectedValues);
+if(!opts.multiple){
+vv=vv.length?[vv[0]]:[""];
+}
+_a16(_a09,vv,_a0a.remainText);
+};
+};
+function nav(_a17,dir){
+var _a18=$.data(_a17,"combogrid");
+var opts=_a18.options;
+var grid=_a18.grid;
+var _a19=grid.datagrid("getRows").length;
+if(!_a19){
+return;
+}
+var tr=opts.finder.getTr(grid[0],null,"highlight");
+if(!tr.length){
+tr=opts.finder.getTr(grid[0],null,"selected");
+}
+var _a1a;
+if(!tr.length){
+_a1a=(dir=="next"?0:_a19-1);
+}else{
+var _a1a=parseInt(tr.attr("datagrid-row-index"));
+_a1a+=(dir=="next"?1:-1);
+if(_a1a<0){
+_a1a=_a19-1;
+}
+if(_a1a>=_a19){
+_a1a=0;
+}
+}
+grid.datagrid("highlightRow",_a1a);
+if(opts.selectOnNavigation){
+_a18.remainText=false;
+grid.datagrid("selectRow",_a1a);
+}
+};
+function _a16(_a1b,_a1c,_a1d){
+var _a1e=$.data(_a1b,"combogrid");
+var opts=_a1e.options;
+var grid=_a1e.grid;
+var _a1f=$(_a1b).combo("getValues");
+var _a20=$(_a1b).combo("options");
+var _a21=_a20.onChange;
+_a20.onChange=function(){
+};
+var _a22=grid.datagrid("options");
+var _a23=_a22.onSelect;
+var _a24=_a22.onUnselectAll;
+_a22.onSelect=_a22.onUnselectAll=function(){
+};
+if(!$.isArray(_a1c)){
+_a1c=_a1c.split(opts.separator);
+}
+var _a25=[];
+$.map(grid.datagrid("getSelections"),function(row){
+if($.inArray(row[opts.idField],_a1c)>=0){
+_a25.push(row);
+}
+});
+grid.datagrid("clearSelections");
+grid.data("datagrid").selectedRows=_a25;
+var ss=[];
+for(var i=0;i<_a1c.length;i++){
+var _a26=_a1c[i];
+var _a27=grid.datagrid("getRowIndex",_a26);
+if(_a27>=0){
+grid.datagrid("selectRow",_a27);
+}
+ss.push(_a28(_a26,grid.datagrid("getRows"))||_a28(_a26,grid.datagrid("getSelections"))||_a28(_a26,opts.mappingRows)||_a26);
+}
+opts.unselectedValues=[];
+var _a29=$.map(_a25,function(row){
+return row[opts.idField];
+});
+$.map(_a1c,function(_a2a){
+if($.inArray(_a2a,_a29)==-1){
+opts.unselectedValues.push(_a2a);
+}
+});
+$(_a1b).combo("setValues",_a1f);
+_a20.onChange=_a21;
+_a22.onSelect=_a23;
+_a22.onUnselectAll=_a24;
+if(!_a1d){
+var s=ss.join(opts.separator);
+if($(_a1b).combo("getText")!=s){
+$(_a1b).combo("setText",s);
+}
+}
+$(_a1b).combo("setValues",_a1c);
+function _a28(_a2b,a){
+for(var i=0;i<a.length;i++){
+if(_a2b==a[i][opts.idField]){
+return a[i][opts.textField];
+}
+}
+return undefined;
+};
+};
+function _a2c(_a2d,q){
+var _a2e=$.data(_a2d,"combogrid");
+var opts=_a2e.options;
+var grid=_a2e.grid;
+_a2e.remainText=true;
+if(opts.multiple&&!q){
+_a16(_a2d,[],true);
+}else{
+_a16(_a2d,[q],true);
+}
+if(opts.mode=="remote"){
+grid.datagrid("clearSelections");
+grid.datagrid("load",$.extend({},opts.queryParams,{q:q}));
+}else{
+if(!q){
+return;
+}
+grid.datagrid("clearSelections").datagrid("highlightRow",-1);
+var rows=grid.datagrid("getRows");
+var qq=opts.multiple?q.split(opts.separator):[q];
+$.map(qq,function(q){
+q=$.trim(q);
+if(q){
+$.map(rows,function(row,i){
+if(q==row[opts.textField]){
+grid.datagrid("selectRow",i);
+}else{
+if(opts.filter.call(_a2d,q,row)){
+grid.datagrid("highlightRow",i);
+}
+}
+});
+}
+});
+}
+};
+function _a2f(_a30){
+var _a31=$.data(_a30,"combogrid");
+var opts=_a31.options;
+var grid=_a31.grid;
+var tr=opts.finder.getTr(grid[0],null,"highlight");
+_a31.remainText=false;
+if(tr.length){
+var _a32=parseInt(tr.attr("datagrid-row-index"));
+if(opts.multiple){
+if(tr.hasClass("datagrid-row-selected")){
+grid.datagrid("unselectRow",_a32);
+}else{
+grid.datagrid("selectRow",_a32);
+}
+}else{
+grid.datagrid("selectRow",_a32);
+}
+}
+var vv=[];
+$.map(grid.datagrid("getSelections"),function(row){
+vv.push(row[opts.idField]);
+});
+$(_a30).combogrid("setValues",vv);
+if(!opts.multiple){
+$(_a30).combogrid("hidePanel");
+}
+};
+$.fn.combogrid=function(_a33,_a34){
+if(typeof _a33=="string"){
+var _a35=$.fn.combogrid.methods[_a33];
+if(_a35){
+return _a35(this,_a34);
+}else{
+return this.combo(_a33,_a34);
+}
+}
+_a33=_a33||{};
+return this.each(function(){
+var _a36=$.data(this,"combogrid");
+if(_a36){
+$.extend(_a36.options,_a33);
+}else{
+_a36=$.data(this,"combogrid",{options:$.extend({},$.fn.combogrid.defaults,$.fn.combogrid.parseOptions(this),_a33)});
+}
+_a08(this);
+});
+};
+$.fn.combogrid.methods={options:function(jq){
+var _a37=jq.combo("options");
+return $.extend($.data(jq[0],"combogrid").options,{width:_a37.width,height:_a37.height,originalValue:_a37.originalValue,disabled:_a37.disabled,readonly:_a37.readonly});
+},grid:function(jq){
+return $.data(jq[0],"combogrid").grid;
+},setValues:function(jq,_a38){
+return jq.each(function(){
+var opts=$(this).combogrid("options");
+if($.isArray(_a38)){
+_a38=$.map(_a38,function(_a39){
+if(typeof _a39=="object"){
+var v=_a39[opts.idField];
+(function(){
+for(var i=0;i<opts.mappingRows.length;i++){
+if(v==opts.mappingRows[i][opts.idField]){
+return;
+}
+}
+opts.mappingRows.push(_a39);
+})();
+return v;
+}else{
+return _a39;
+}
+});
+}
+_a16(this,_a38);
+});
+},setValue:function(jq,_a3a){
+return jq.each(function(){
+$(this).combogrid("setValues",[_a3a]);
+});
+},clear:function(jq){
+return jq.each(function(){
+$(this).combogrid("grid").datagrid("clearSelections");
+$(this).combo("clear");
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).combogrid("options");
+if(opts.multiple){
+$(this).combogrid("setValues",opts.originalValue);
+}else{
+$(this).combogrid("setValue",opts.originalValue);
+}
+});
+}};
+$.fn.combogrid.parseOptions=function(_a3b){
+var t=$(_a3b);
+return $.extend({},$.fn.combo.parseOptions(_a3b),$.fn.datagrid.parseOptions(_a3b),$.parser.parseOptions(_a3b,["idField","textField","mode"]));
+};
+$.fn.combogrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.datagrid.defaults,{height:22,loadMsg:null,idField:null,textField:null,unselectedValues:[],mappingRows:[],mode:"local",keyHandler:{up:function(e){
+nav(this,"prev");
+e.preventDefault();
+},down:function(e){
+nav(this,"next");
+e.preventDefault();
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_a2f(this);
+},query:function(q,e){
+_a2c(this,q);
+}},filter:function(q,row){
+var opts=$(this).combogrid("options");
+return (row[opts.textField]||"").toLowerCase().indexOf(q.toLowerCase())==0;
+}});
+})(jQuery);
+(function($){
+function _a3c(_a3d){
+var _a3e=$.data(_a3d,"datebox");
+var opts=_a3e.options;
+$(_a3d).addClass("datebox-f").combo($.extend({},opts,{onShowPanel:function(){
+_a3f(this);
+_a40(this);
+_a41(this);
+_a4f(this,$(this).datebox("getText"),true);
+opts.onShowPanel.call(this);
+}}));
+if(!_a3e.calendar){
+var _a42=$(_a3d).combo("panel").css("overflow","hidden");
+_a42.panel("options").onBeforeDestroy=function(){
+var c=$(this).find(".calendar-shared");
+if(c.length){
+c.insertBefore(c[0].pholder);
+}
+};
+var cc=$("<div class=\"datebox-calendar-inner\"></div>").prependTo(_a42);
+if(opts.sharedCalendar){
+var c=$(opts.sharedCalendar);
+if(!c[0].pholder){
+c[0].pholder=$("<div class=\"calendar-pholder\" style=\"display:none\"></div>").insertAfter(c);
+}
+c.addClass("calendar-shared").appendTo(cc);
+if(!c.hasClass("calendar")){
+c.calendar();
+}
+_a3e.calendar=c;
+}else{
+_a3e.calendar=$("<div></div>").appendTo(cc).calendar();
+}
+$.extend(_a3e.calendar.calendar("options"),{fit:true,border:false,onSelect:function(date){
+var _a43=this.target;
+var opts=$(_a43).datebox("options");
+_a4f(_a43,opts.formatter.call(_a43,date));
+$(_a43).combo("hidePanel");
+opts.onSelect.call(_a43,date);
+}});
+}
+$(_a3d).combo("textbox").parent().addClass("datebox");
+$(_a3d).datebox("initValue",opts.value);
+function _a3f(_a44){
+var opts=$(_a44).datebox("options");
+var _a45=$(_a44).combo("panel");
+_a45.unbind(".datebox").bind("click.datebox",function(e){
+if($(e.target).hasClass("datebox-button-a")){
+var _a46=parseInt($(e.target).attr("datebox-button-index"));
+opts.buttons[_a46].handler.call(e.target,_a44);
+}
+});
+};
+function _a40(_a47){
+var _a48=$(_a47).combo("panel");
+if(_a48.children("div.datebox-button").length){
+return;
+}
+var _a49=$("<div class=\"datebox-button\"><table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%\"><tr></tr></table></div>").appendTo(_a48);
+var tr=_a49.find("tr");
+for(var i=0;i<opts.buttons.length;i++){
+var td=$("<td></td>").appendTo(tr);
+var btn=opts.buttons[i];
+var t=$("<a class=\"datebox-button-a\" href=\"javascript:void(0)\"></a>").html($.isFunction(btn.text)?btn.text(_a47):btn.text).appendTo(td);
+t.attr("datebox-button-index",i);
+}
+tr.find("td").css("width",(100/opts.buttons.length)+"%");
+};
+function _a41(_a4a){
+var _a4b=$(_a4a).combo("panel");
+var cc=_a4b.children("div.datebox-calendar-inner");
+_a4b.children()._outerWidth(_a4b.width());
+_a3e.calendar.appendTo(cc);
+_a3e.calendar[0].target=_a4a;
+if(opts.panelHeight!="auto"){
+var _a4c=_a4b.height();
+_a4b.children().not(cc).each(function(){
+_a4c-=$(this).outerHeight();
+});
+cc._outerHeight(_a4c);
+}
+_a3e.calendar.calendar("resize");
+};
+};
+function _a4d(_a4e,q){
+_a4f(_a4e,q,true);
+};
+function _a50(_a51){
+var _a52=$.data(_a51,"datebox");
+var opts=_a52.options;
+var _a53=_a52.calendar.calendar("options").current;
+if(_a53){
+_a4f(_a51,opts.formatter.call(_a51,_a53));
+$(_a51).combo("hidePanel");
+}
+};
+function _a4f(_a54,_a55,_a56){
+var _a57=$.data(_a54,"datebox");
+var opts=_a57.options;
+var _a58=_a57.calendar;
+_a58.calendar("moveTo",opts.parser.call(_a54,_a55));
+if(_a56){
+$(_a54).combo("setValue",_a55);
+}else{
+if(_a55){
+_a55=opts.formatter.call(_a54,_a58.calendar("options").current);
+}
+$(_a54).combo("setText",_a55).combo("setValue",_a55);
+}
+};
+$.fn.datebox=function(_a59,_a5a){
+if(typeof _a59=="string"){
+var _a5b=$.fn.datebox.methods[_a59];
+if(_a5b){
+return _a5b(this,_a5a);
+}else{
+return this.combo(_a59,_a5a);
+}
+}
+_a59=_a59||{};
+return this.each(function(){
+var _a5c=$.data(this,"datebox");
+if(_a5c){
+$.extend(_a5c.options,_a59);
+}else{
+$.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_a59)});
+}
+_a3c(this);
+});
+};
+$.fn.datebox.methods={options:function(jq){
+var _a5d=jq.combo("options");
+return $.extend($.data(jq[0],"datebox").options,{width:_a5d.width,height:_a5d.height,originalValue:_a5d.originalValue,disabled:_a5d.disabled,readonly:_a5d.readonly});
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+$(this).combo("cloneFrom",from);
+$.data(this,"datebox",{options:$.extend(true,{},$(from).datebox("options")),calendar:$(from).datebox("calendar")});
+$(this).addClass("datebox-f");
+});
+},calendar:function(jq){
+return $.data(jq[0],"datebox").calendar;
+},initValue:function(jq,_a5e){
+return jq.each(function(){
+var opts=$(this).datebox("options");
+var _a5f=opts.value;
+if(_a5f){
+_a5f=opts.formatter.call(this,opts.parser.call(this,_a5f));
+}
+$(this).combo("initValue",_a5f).combo("setText",_a5f);
+});
+},setValue:function(jq,_a60){
+return jq.each(function(){
+_a4f(this,_a60);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).datebox("options");
+$(this).datebox("setValue",opts.originalValue);
+});
+}};
+$.fn.datebox.parseOptions=function(_a61){
+return $.extend({},$.fn.combo.parseOptions(_a61),$.parser.parseOptions(_a61,["sharedCalendar"]));
+};
+$.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:180,panelHeight:"auto",sharedCalendar:null,keyHandler:{up:function(e){
+},down:function(e){
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_a50(this);
+},query:function(q,e){
+_a4d(this,q);
+}},currentText:"Today",closeText:"Close",okText:"Ok",buttons:[{text:function(_a62){
+return $(_a62).datebox("options").currentText;
+},handler:function(_a63){
+var now=new Date();
+$(_a63).datebox("calendar").calendar({year:now.getFullYear(),month:now.getMonth()+1,current:new Date(now.getFullYear(),now.getMonth(),now.getDate())});
+_a50(_a63);
+}},{text:function(_a64){
+return $(_a64).datebox("options").closeText;
+},handler:function(_a65){
+$(this).closest("div.combo-panel").panel("close");
+}}],formatter:function(date){
+var y=date.getFullYear();
+var m=date.getMonth()+1;
+var d=date.getDate();
+return (m<10?("0"+m):m)+"/"+(d<10?("0"+d):d)+"/"+y;
+},parser:function(s){
+if(!s){
+return new Date();
+}
+var ss=s.split("/");
+var m=parseInt(ss[0],10);
+var d=parseInt(ss[1],10);
+var y=parseInt(ss[2],10);
+if(!isNaN(y)&&!isNaN(m)&&!isNaN(d)){
+return new Date(y,m-1,d);
+}else{
+return new Date();
+}
+},onSelect:function(date){
+}});
+})(jQuery);
+(function($){
+function _a66(_a67){
+var _a68=$.data(_a67,"datetimebox");
+var opts=_a68.options;
+$(_a67).datebox($.extend({},opts,{onShowPanel:function(){
+var _a69=$(this).datetimebox("getValue");
+_a6f(this,_a69,true);
+opts.onShowPanel.call(this);
+},formatter:$.fn.datebox.defaults.formatter,parser:$.fn.datebox.defaults.parser}));
+$(_a67).removeClass("datebox-f").addClass("datetimebox-f");
+$(_a67).datebox("calendar").calendar({onSelect:function(date){
+opts.onSelect.call(this.target,date);
+}});
+if(!_a68.spinner){
+var _a6a=$(_a67).datebox("panel");
+var p=$("<div style=\"padding:2px\"><input></div>").insertAfter(_a6a.children("div.datebox-calendar-inner"));
+_a68.spinner=p.children("input");
+}
+_a68.spinner.timespinner({width:opts.spinnerWidth,showSeconds:opts.showSeconds,separator:opts.timeSeparator});
+$(_a67).datetimebox("initValue",opts.value);
+};
+function _a6b(_a6c){
+var c=$(_a6c).datetimebox("calendar");
+var t=$(_a6c).datetimebox("spinner");
+var date=c.calendar("options").current;
+return new Date(date.getFullYear(),date.getMonth(),date.getDate(),t.timespinner("getHours"),t.timespinner("getMinutes"),t.timespinner("getSeconds"));
+};
+function _a6d(_a6e,q){
+_a6f(_a6e,q,true);
+};
+function _a70(_a71){
+var opts=$.data(_a71,"datetimebox").options;
+var date=_a6b(_a71);
+_a6f(_a71,opts.formatter.call(_a71,date));
+$(_a71).combo("hidePanel");
+};
+function _a6f(_a72,_a73,_a74){
+var opts=$.data(_a72,"datetimebox").options;
+$(_a72).combo("setValue",_a73);
+if(!_a74){
+if(_a73){
+var date=opts.parser.call(_a72,_a73);
+$(_a72).combo("setText",opts.formatter.call(_a72,date));
+$(_a72).combo("setValue",opts.formatter.call(_a72,date));
+}else{
+$(_a72).combo("setText",_a73);
+}
+}
+var date=opts.parser.call(_a72,_a73);
+$(_a72).datetimebox("calendar").calendar("moveTo",date);
+$(_a72).datetimebox("spinner").timespinner("setValue",_a75(date));
+function _a75(date){
+function _a76(_a77){
+return (_a77<10?"0":"")+_a77;
+};
+var tt=[_a76(date.getHours()),_a76(date.getMinutes())];
+if(opts.showSeconds){
+tt.push(_a76(date.getSeconds()));
+}
+return tt.join($(_a72).datetimebox("spinner").timespinner("options").separator);
+};
+};
+$.fn.datetimebox=function(_a78,_a79){
+if(typeof _a78=="string"){
+var _a7a=$.fn.datetimebox.methods[_a78];
+if(_a7a){
+return _a7a(this,_a79);
+}else{
+return this.datebox(_a78,_a79);
+}
+}
+_a78=_a78||{};
+return this.each(function(){
+var _a7b=$.data(this,"datetimebox");
+if(_a7b){
+$.extend(_a7b.options,_a78);
+}else{
+$.data(this,"datetimebox",{options:$.extend({},$.fn.datetimebox.defaults,$.fn.datetimebox.parseOptions(this),_a78)});
+}
+_a66(this);
+});
+};
+$.fn.datetimebox.methods={options:function(jq){
+var _a7c=jq.datebox("options");
+return $.extend($.data(jq[0],"datetimebox").options,{originalValue:_a7c.originalValue,disabled:_a7c.disabled,readonly:_a7c.readonly});
+},cloneFrom:function(jq,from){
+return jq.each(function(){
+$(this).datebox("cloneFrom",from);
+$.data(this,"datetimebox",{options:$.extend(true,{},$(from).datetimebox("options")),spinner:$(from).datetimebox("spinner")});
+$(this).removeClass("datebox-f").addClass("datetimebox-f");
+});
+},spinner:function(jq){
+return $.data(jq[0],"datetimebox").spinner;
+},initValue:function(jq,_a7d){
+return jq.each(function(){
+var opts=$(this).datetimebox("options");
+var _a7e=opts.value;
+if(_a7e){
+_a7e=opts.formatter.call(this,opts.parser.call(this,_a7e));
+}
+$(this).combo("initValue",_a7e).combo("setText",_a7e);
+});
+},setValue:function(jq,_a7f){
+return jq.each(function(){
+_a6f(this,_a7f);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).datetimebox("options");
+$(this).datetimebox("setValue",opts.originalValue);
+});
+}};
+$.fn.datetimebox.parseOptions=function(_a80){
+var t=$(_a80);
+return $.extend({},$.fn.datebox.parseOptions(_a80),$.parser.parseOptions(_a80,["timeSeparator","spinnerWidth",{showSeconds:"boolean"}]));
+};
+$.fn.datetimebox.defaults=$.extend({},$.fn.datebox.defaults,{spinnerWidth:"100%",showSeconds:true,timeSeparator:":",keyHandler:{up:function(e){
+},down:function(e){
+},left:function(e){
+},right:function(e){
+},enter:function(e){
+_a70(this);
+},query:function(q,e){
+_a6d(this,q);
+}},buttons:[{text:function(_a81){
+return $(_a81).datetimebox("options").currentText;
+},handler:function(_a82){
+var opts=$(_a82).datetimebox("options");
+_a6f(_a82,opts.formatter.call(_a82,new Date()));
+$(_a82).datetimebox("hidePanel");
+}},{text:function(_a83){
+return $(_a83).datetimebox("options").okText;
+},handler:function(_a84){
+_a70(_a84);
+}},{text:function(_a85){
+return $(_a85).datetimebox("options").closeText;
+},handler:function(_a86){
+$(_a86).datetimebox("hidePanel");
+}}],formatter:function(date){
+var h=date.getHours();
+var M=date.getMinutes();
+var s=date.getSeconds();
+function _a87(_a88){
+return (_a88<10?"0":"")+_a88;
+};
+var _a89=$(this).datetimebox("spinner").timespinner("options").separator;
+var r=$.fn.datebox.defaults.formatter(date)+" "+_a87(h)+_a89+_a87(M);
+if($(this).datetimebox("options").showSeconds){
+r+=_a89+_a87(s);
+}
+return r;
+},parser:function(s){
+if($.trim(s)==""){
+return new Date();
+}
+var dt=s.split(" ");
+var d=$.fn.datebox.defaults.parser(dt[0]);
+if(dt.length<2){
+return d;
+}
+var _a8a=$(this).datetimebox("spinner").timespinner("options").separator;
+var tt=dt[1].split(_a8a);
+var hour=parseInt(tt[0],10)||0;
+var _a8b=parseInt(tt[1],10)||0;
+var _a8c=parseInt(tt[2],10)||0;
+return new Date(d.getFullYear(),d.getMonth(),d.getDate(),hour,_a8b,_a8c);
+}});
+})(jQuery);
+(function($){
+function init(_a8d){
+var _a8e=$("<div class=\"slider\">"+"<div class=\"slider-inner\">"+"<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>"+"</div>"+"<div class=\"slider-rule\"></div>"+"<div class=\"slider-rulelabel\"></div>"+"<div style=\"clear:both\"></div>"+"<input type=\"hidden\" class=\"slider-value\">"+"</div>").insertAfter(_a8d);
+var t=$(_a8d);
+t.addClass("slider-f").hide();
+var name=t.attr("name");
+if(name){
+_a8e.find("input.slider-value").attr("name",name);
+t.removeAttr("name").attr("sliderName",name);
+}
+_a8e.bind("_resize",function(e,_a8f){
+if($(this).hasClass("easyui-fluid")||_a8f){
+_a90(_a8d);
+}
+return false;
+});
+return _a8e;
+};
+function _a90(_a91,_a92){
+var _a93=$.data(_a91,"slider");
+var opts=_a93.options;
+var _a94=_a93.slider;
+if(_a92){
+if(_a92.width){
+opts.width=_a92.width;
+}
+if(_a92.height){
+opts.height=_a92.height;
+}
+}
+_a94._size(opts);
+if(opts.mode=="h"){
+_a94.css("height","");
+_a94.children("div").css("height","");
+}else{
+_a94.css("width","");
+_a94.children("div").css("width","");
+_a94.children("div.slider-rule,div.slider-rulelabel,div.slider-inner")._outerHeight(_a94._outerHeight());
+}
+_a95(_a91);
+};
+function _a96(_a97){
+var _a98=$.data(_a97,"slider");
+var opts=_a98.options;
+var _a99=_a98.slider;
+var aa=opts.mode=="h"?opts.rule:opts.rule.slice(0).reverse();
+if(opts.reversed){
+aa=aa.slice(0).reverse();
+}
+_a9a(aa);
+function _a9a(aa){
+var rule=_a99.find("div.slider-rule");
+var _a9b=_a99.find("div.slider-rulelabel");
+rule.empty();
+_a9b.empty();
+for(var i=0;i<aa.length;i++){
+var _a9c=i*100/(aa.length-1)+"%";
+var span=$("<span></span>").appendTo(rule);
+span.css((opts.mode=="h"?"left":"top"),_a9c);
+if(aa[i]!="|"){
+span=$("<span></span>").appendTo(_a9b);
+span.html(aa[i]);
+if(opts.mode=="h"){
+span.css({left:_a9c,marginLeft:-Math.round(span.outerWidth()/2)});
+}else{
+span.css({top:_a9c,marginTop:-Math.round(span.outerHeight()/2)});
+}
+}
+}
+};
+};
+function _a9d(_a9e){
+var _a9f=$.data(_a9e,"slider");
+var opts=_a9f.options;
+var _aa0=_a9f.slider;
+_aa0.removeClass("slider-h slider-v slider-disabled");
+_aa0.addClass(opts.mode=="h"?"slider-h":"slider-v");
+_aa0.addClass(opts.disabled?"slider-disabled":"");
+var _aa1=_aa0.find(".slider-inner");
+_aa1.html("<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>");
+if(opts.range){
+_aa1.append("<a href=\"javascript:void(0)\" class=\"slider-handle\"></a>"+"<span class=\"slider-tip\"></span>");
+}
+_aa0.find("a.slider-handle").draggable({axis:opts.mode,cursor:"pointer",disabled:opts.disabled,onDrag:function(e){
+var left=e.data.left;
+var _aa2=_aa0.width();
+if(opts.mode!="h"){
+left=e.data.top;
+_aa2=_aa0.height();
+}
+if(left<0||left>_aa2){
+return false;
+}else{
+_aa3(left,this);
+return false;
+}
+},onStartDrag:function(){
+_a9f.isDragging=true;
+opts.onSlideStart.call(_a9e,opts.value);
+},onStopDrag:function(e){
+_aa3(opts.mode=="h"?e.data.left:e.data.top,this);
+opts.onSlideEnd.call(_a9e,opts.value);
+opts.onComplete.call(_a9e,opts.value);
+_a9f.isDragging=false;
+}});
+_aa0.find("div.slider-inner").unbind(".slider").bind("mousedown.slider",function(e){
+if(_a9f.isDragging||opts.disabled){
+return;
+}
+var pos=$(this).offset();
+_aa3(opts.mode=="h"?(e.pageX-pos.left):(e.pageY-pos.top));
+opts.onComplete.call(_a9e,opts.value);
+});
+function _aa3(pos,_aa4){
+var _aa5=_aa6(_a9e,pos);
+var s=Math.abs(_aa5%opts.step);
+if(s<opts.step/2){
+_aa5-=s;
+}else{
+_aa5=_aa5-s+opts.step;
+}
+if(opts.range){
+var v1=opts.value[0];
+var v2=opts.value[1];
+var m=parseFloat((v1+v2)/2);
+if(_aa4){
+var _aa7=$(_aa4).nextAll(".slider-handle").length>0;
+if(_aa5<=v2&&_aa7){
+v1=_aa5;
+}else{
+if(_aa5>=v1&&(!_aa7)){
+v2=_aa5;
+}
+}
+}else{
+if(_aa5<v1){
+v1=_aa5;
+}else{
+if(_aa5>v2){
+v2=_aa5;
+}else{
+_aa5<m?v1=_aa5:v2=_aa5;
+}
+}
+}
+$(_a9e).slider("setValues",[v1,v2]);
+}else{
+$(_a9e).slider("setValue",_aa5);
+}
+};
+};
+function _aa8(_aa9,_aaa){
+var _aab=$.data(_aa9,"slider");
+var opts=_aab.options;
+var _aac=_aab.slider;
+var _aad=$.isArray(opts.value)?opts.value:[opts.value];
+var _aae=[];
+if(!$.isArray(_aaa)){
+_aaa=$.map(String(_aaa).split(opts.separator),function(v){
+return parseFloat(v);
+});
+}
+_aac.find(".slider-value").remove();
+var name=$(_aa9).attr("sliderName")||"";
+for(var i=0;i<_aaa.length;i++){
+var _aaf=_aaa[i];
+if(_aaf<opts.min){
+_aaf=opts.min;
+}
+if(_aaf>opts.max){
+_aaf=opts.max;
+}
+var _ab0=$("<input type=\"hidden\" class=\"slider-value\">").appendTo(_aac);
+_ab0.attr("name",name);
+_ab0.val(_aaf);
+_aae.push(_aaf);
+var _ab1=_aac.find(".slider-handle:eq("+i+")");
+var tip=_ab1.next();
+var pos=_ab2(_aa9,_aaf);
+if(opts.showTip){
+tip.show();
+tip.html(opts.tipFormatter.call(_aa9,_aaf));
+}else{
+tip.hide();
+}
+if(opts.mode=="h"){
+var _ab3="left:"+pos+"px;";
+_ab1.attr("style",_ab3);
+tip.attr("style",_ab3+"margin-left:"+(-Math.round(tip.outerWidth()/2))+"px");
+}else{
+var _ab3="top:"+pos+"px;";
+_ab1.attr("style",_ab3);
+tip.attr("style",_ab3+"margin-left:"+(-Math.round(tip.outerWidth()))+"px");
+}
+}
+opts.value=opts.range?_aae:_aae[0];
+$(_aa9).val(opts.range?_aae.join(opts.separator):_aae[0]);
+if(_aad.join(",")!=_aae.join(",")){
+opts.onChange.call(_aa9,opts.value,(opts.range?_aad:_aad[0]));
+}
+};
+function _a95(_ab4){
+var opts=$.data(_ab4,"slider").options;
+var fn=opts.onChange;
+opts.onChange=function(){
+};
+_aa8(_ab4,opts.value);
+opts.onChange=fn;
+};
+function _ab2(_ab5,_ab6){
+var _ab7=$.data(_ab5,"slider");
+var opts=_ab7.options;
+var _ab8=_ab7.slider;
+var size=opts.mode=="h"?_ab8.width():_ab8.height();
+var pos=opts.converter.toPosition.call(_ab5,_ab6,size);
+if(opts.mode=="v"){
+pos=_ab8.height()-pos;
+}
+if(opts.reversed){
+pos=size-pos;
+}
+return pos.toFixed(0);
+};
+function _aa6(_ab9,pos){
+var _aba=$.data(_ab9,"slider");
+var opts=_aba.options;
+var _abb=_aba.slider;
+var size=opts.mode=="h"?_abb.width():_abb.height();
+var pos=opts.mode=="h"?(opts.reversed?(size-pos):pos):(opts.reversed?pos:(size-pos));
+var _abc=opts.converter.toValue.call(_ab9,pos,size);
+return _abc.toFixed(0);
+};
+$.fn.slider=function(_abd,_abe){
+if(typeof _abd=="string"){
+return $.fn.slider.methods[_abd](this,_abe);
+}
+_abd=_abd||{};
+return this.each(function(){
+var _abf=$.data(this,"slider");
+if(_abf){
+$.extend(_abf.options,_abd);
+}else{
+_abf=$.data(this,"slider",{options:$.extend({},$.fn.slider.defaults,$.fn.slider.parseOptions(this),_abd),slider:init(this)});
+$(this).removeAttr("disabled");
+}
+var opts=_abf.options;
+opts.min=parseFloat(opts.min);
+opts.max=parseFloat(opts.max);
+if(opts.range){
+if(!$.isArray(opts.value)){
+opts.value=$.map(String(opts.value).split(opts.separator),function(v){
+return parseFloat(v);
+});
+}
+if(opts.value.length<2){
+opts.value.push(opts.max);
+}
+}else{
+opts.value=parseFloat(opts.value);
+}
+opts.step=parseFloat(opts.step);
+opts.originalValue=opts.value;
+_a9d(this);
+_a96(this);
+_a90(this);
+});
+};
+$.fn.slider.methods={options:function(jq){
+return $.data(jq[0],"slider").options;
+},destroy:function(jq){
+return jq.each(function(){
+$.data(this,"slider").slider.remove();
+$(this).remove();
+});
+},resize:function(jq,_ac0){
+return jq.each(function(){
+_a90(this,_ac0);
+});
+},getValue:function(jq){
+return jq.slider("options").value;
+},getValues:function(jq){
+return jq.slider("options").value;
+},setValue:function(jq,_ac1){
+return jq.each(function(){
+_aa8(this,[_ac1]);
+});
+},setValues:function(jq,_ac2){
+return jq.each(function(){
+_aa8(this,_ac2);
+});
+},clear:function(jq){
+return jq.each(function(){
+var opts=$(this).slider("options");
+_aa8(this,opts.range?[opts.min,opts.max]:[opts.min]);
+});
+},reset:function(jq){
+return jq.each(function(){
+var opts=$(this).slider("options");
+$(this).slider(opts.range?"setValues":"setValue",opts.originalValue);
+});
+},enable:function(jq){
+return jq.each(function(){
+$.data(this,"slider").options.disabled=false;
+_a9d(this);
+});
+},disable:function(jq){
+return jq.each(function(){
+$.data(this,"slider").options.disabled=true;
+_a9d(this);
+});
+}};
+$.fn.slider.parseOptions=function(_ac3){
+var t=$(_ac3);
+return $.extend({},$.parser.parseOptions(_ac3,["width","height","mode",{reversed:"boolean",showTip:"boolean",range:"boolean",min:"number",max:"number",step:"number"}]),{value:(t.val()||undefined),disabled:(t.attr("disabled")?true:undefined),rule:(t.attr("rule")?eval(t.attr("rule")):undefined)});
+};
+$.fn.slider.defaults={width:"auto",height:"auto",mode:"h",reversed:false,showTip:false,disabled:false,range:false,value:0,separator:",",min:0,max:100,step:1,rule:[],tipFormatter:function(_ac4){
+return _ac4;
+},converter:{toPosition:function(_ac5,size){
+var opts=$(this).slider("options");
+return (_ac5-opts.min)/(opts.max-opts.min)*size;
+},toValue:function(pos,size){
+var opts=$(this).slider("options");
+return opts.min+(opts.max-opts.min)*(pos/size);
+}},onChange:function(_ac6,_ac7){
+},onSlideStart:function(_ac8){
+},onSlideEnd:function(_ac9){
+},onComplete:function(_aca){
+}};
+})(jQuery);
+
diff --git a/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js b/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js
new file mode 100644
index 0000000..0f60b7b
--- /dev/null
+++ b/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js
@@ -0,0 +1,5 @@
+/*! 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 id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",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;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;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 href='#'></a>","#"===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="<input/>",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.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;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=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",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<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},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></$2>")+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)?"<table>"!==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></$2>");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("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return 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="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;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),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){
+return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
diff --git a/js/plotPanelControl/zTree/css/zTreeStyle.css b/js/plotPanelControl/zTree/css/zTreeStyle.css
new file mode 100644
index 0000000..efca838
--- /dev/null
+++ b/js/plotPanelControl/zTree/css/zTreeStyle.css
@@ -0,0 +1,97 @@
+/*-------------------------------------
+zTree Style
+
+version: 3.5.19
+author: Hunter.z
+email: hunter.z@263.net
+website: http://code.google.com/p/jquerytree/
+
+-------------------------------------*/
+
+.ztree * {padding:0; margin:0; font-size:16px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
+.ztree {margin:0; padding:5px; color:#333}
+.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0}
+.ztree li ul{ margin:0; padding:0 0 0 18px}
+.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;}
+
+.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent;
+ text-decoration:none; vertical-align:top; display: inline-block}
+.ztree li a:hover {text-decoration:underline}
+.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;}
+.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;}
+.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid;
+ opacity:0.8; filter:alpha(opacity=80)}
+.ztree li a.tmpTargetNode_prev {}
+.ztree li a.tmpTargetNode_next {}
+.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
+ font-size:12px; border:1px #7EC4CC solid; *border:0px}
+.ztree li span {line-height:16px; margin-right:2px}
+.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle;
+ border:0 none; cursor: pointer;outline:none;
+ background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
+ background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
+
+.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto}
+.ztree li span.button.chk.checkbox_false_full {background-position:0 0}
+.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px}
+.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px}
+.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px}
+.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px}
+.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0}
+.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px}
+.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px}
+.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px}
+.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px}
+.ztree li span.button.chk.radio_false_full {background-position:-28px 0}
+.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px}
+.ztree li span.button.chk.radio_false_part {background-position:-28px -28px}
+.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px}
+.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px}
+.ztree li span.button.chk.radio_true_full {background-position:-42px 0}
+.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px}
+.ztree li span.button.chk.radio_true_part {background-position:-42px -28px}
+.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px}
+.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px}
+
+.ztree li span.button.switch {width:18px; height:18px}
+.ztree li span.button.root_open{background-position:-92px -54px}
+.ztree li span.button.root_close{background-position:-74px -54px}
+.ztree li span.button.roots_open{background-position:-92px 0}
+.ztree li span.button.roots_close{background-position:-74px 0}
+.ztree li span.button.center_open{background-position:-92px -18px}
+.ztree li span.button.center_close{background-position:-74px -18px}
+.ztree li span.button.bottom_open{background-position:-92px -36px}
+.ztree li span.button.bottom_close{background-position:-74px -36px}
+.ztree li span.button.noline_open{background-position:-92px -72px}
+.ztree li span.button.noline_close{background-position:-74px -72px}
+.ztree li span.button.root_docu{ background:none;}
+.ztree li span.button.roots_docu{background-position:-56px 0}
+.ztree li span.button.center_docu{background-position:-56px -18px}
+.ztree li span.button.bottom_docu{background-position:-56px -36px}
+.ztree li span.button.noline_docu{ background:none;}
+
+.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle}
+.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle}
+
+.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
+
+ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
+
+span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
+ background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
+ background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
+
+ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
+.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
+
+/* level style*/
+/*.ztree li span.button.level0 {
+ display:none;
+}
+.ztree li ul.level0 {
+ padding:0;
+ background:none;
+}*/
\ No newline at end of file
diff --git a/js/plotPanelControl/zTree/jquery.ztree.core.js b/js/plotPanelControl/zTree/jquery.ztree.core.js
new file mode 100644
index 0000000..1711dae
--- /dev/null
+++ b/js/plotPanelControl/zTree/jquery.ztree.core.js
@@ -0,0 +1,1819 @@
+/*
+ * JQuery zTree core v3.5.23
+ * http://zTree.me/
+ *
+ * Copyright (c) 2010 Hunter.z
+ *
+ * Licensed same as jquery - MIT License
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * email: hunter.z@263.net
+ * Date: 2016-04-01
+ */
+(function($){
+ var settings = {}, roots = {}, caches = {},
+ //default consts of core
+ _consts = {
+ className: {
+ BUTTON: "button",
+ LEVEL: "level",
+ ICO_LOADING: "ico_loading",
+ SWITCH: "switch",
+ NAME: 'node_name'
+ },
+ event: {
+ NODECREATED: "ztree_nodeCreated",
+ CLICK: "ztree_click",
+ EXPAND: "ztree_expand",
+ COLLAPSE: "ztree_collapse",
+ ASYNC_SUCCESS: "ztree_async_success",
+ ASYNC_ERROR: "ztree_async_error",
+ REMOVE: "ztree_remove",
+ SELECTED: "ztree_selected",
+ UNSELECTED: "ztree_unselected"
+ },
+ id: {
+ A: "_a",
+ ICON: "_ico",
+ SPAN: "_span",
+ SWITCH: "_switch",
+ UL: "_ul"
+ },
+ line: {
+ ROOT: "root",
+ ROOTS: "roots",
+ CENTER: "center",
+ BOTTOM: "bottom",
+ NOLINE: "noline",
+ LINE: "line"
+ },
+ folder: {
+ OPEN: "open",
+ CLOSE: "close",
+ DOCU: "docu"
+ },
+ node: {
+ CURSELECTED: "curSelectedNode"
+ }
+ },
+ //default setting of core
+ _setting = {
+ treeId: "",
+ treeObj: null,
+ view: {
+ addDiyDom: null,
+ autoCancelSelected: true,
+ dblClickExpand: true,
+ expandSpeed: "fast",
+ fontCss: {},
+ nameIsHTML: false,
+ selectedMulti: true,
+ showIcon: true,
+ showLine: true,
+ showTitle: true,
+ txtSelectedEnable: false
+ },
+ data: {
+ key: {
+ children: "children",
+ name: "name",
+ title: "",
+ url: "url",
+ icon: "icon"
+ },
+ simpleData: {
+ enable: false,
+ idKey: "id",
+ pIdKey: "pId",
+ rootPId: null
+ },
+ keep: {
+ parent: false,
+ leaf: false
+ }
+ },
+ async: {
+ enable: false,
+ contentType: "application/x-www-form-urlencoded",
+ type: "post",
+ dataType: "text",
+ url: "",
+ autoParam: [],
+ otherParam: [],
+ dataFilter: null
+ },
+ callback: {
+ beforeAsync:null,
+ beforeClick:null,
+ beforeDblClick:null,
+ beforeRightClick:null,
+ beforeMouseDown:null,
+ beforeMouseUp:null,
+ beforeExpand:null,
+ beforeCollapse:null,
+ beforeRemove:null,
+
+ onAsyncError:null,
+ onAsyncSuccess:null,
+ onNodeCreated:null,
+ onClick:null,
+ onDblClick:null,
+ onRightClick:null,
+ onMouseDown:null,
+ onMouseUp:null,
+ onExpand:null,
+ onCollapse:null,
+ onRemove:null
+ }
+ },
+ //default root of core
+ //zTree use root to save full data
+ _initRoot = function (setting) {
+ var r = data.getRoot(setting);
+ if (!r) {
+ r = {};
+ data.setRoot(setting, r);
+ }
+ r[setting.data.key.children] = [];
+ r.expandTriggerFlag = false;
+ r.curSelectedList = [];
+ r.noSelection = true;
+ r.createdNodes = [];
+ r.zId = 0;
+ r._ver = (new Date()).getTime();
+ },
+ //default cache of core
+ _initCache = function(setting) {
+ var c = data.getCache(setting);
+ if (!c) {
+ c = {};
+ data.setCache(setting, c);
+ }
+ c.nodes = [];
+ c.doms = [];
+ },
+ //default bindEvent of core
+ _bindEvent = function(setting) {
+ var o = setting.treeObj,
+ c = consts.event;
+ o.bind(c.NODECREATED, function (event, treeId, node) {
+ tools.apply(setting.callback.onNodeCreated, [event, treeId, node]);
+ });
+
+ o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) {
+ tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]);
+ });
+
+ o.bind(c.EXPAND, function (event, treeId, node) {
+ tools.apply(setting.callback.onExpand, [event, treeId, node]);
+ });
+
+ o.bind(c.COLLAPSE, function (event, treeId, node) {
+ tools.apply(setting.callback.onCollapse, [event, treeId, node]);
+ });
+
+ o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) {
+ tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]);
+ });
+
+ o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) {
+ tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]);
+ });
+
+ o.bind(c.REMOVE, function (event, treeId, treeNode) {
+ tools.apply(setting.callback.onRemove, [event, treeId, treeNode]);
+ });
+
+ o.bind(c.SELECTED, function (event, treeId, node) {
+ tools.apply(setting.callback.onSelected, [treeId, node]);
+ });
+ o.bind(c.UNSELECTED, function (event, treeId, node) {
+ tools.apply(setting.callback.onUnSelected, [treeId, node]);
+ });
+ },
+ _unbindEvent = function(setting) {
+ var o = setting.treeObj,
+ c = consts.event;
+ o.unbind(c.NODECREATED)
+ .unbind(c.CLICK)
+ .unbind(c.EXPAND)
+ .unbind(c.COLLAPSE)
+ .unbind(c.ASYNC_SUCCESS)
+ .unbind(c.ASYNC_ERROR)
+ .unbind(c.REMOVE)
+ .unbind(c.SELECTED)
+ .unbind(c.UNSELECTED);
+ },
+ //default event proxy of core
+ _eventProxy = function(event) {
+ var target = event.target,
+ setting = data.getSetting(event.data.treeId),
+ tId = "", node = null,
+ nodeEventType = "", treeEventType = "",
+ nodeEventCallback = null, treeEventCallback = null,
+ tmp = null;
+
+ if (tools.eqs(event.type, "mousedown")) {
+ treeEventType = "mousedown";
+ } else if (tools.eqs(event.type, "mouseup")) {
+ treeEventType = "mouseup";
+ } else if (tools.eqs(event.type, "contextmenu")) {
+ treeEventType = "contextmenu";
+ } else if (tools.eqs(event.type, "click")) {
+ if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) {
+ tId = tools.getNodeMainDom(target).id;
+ nodeEventType = "switchNode";
+ } else {
+ tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
+ if (tmp) {
+ tId = tools.getNodeMainDom(tmp).id;
+ nodeEventType = "clickNode";
+ }
+ }
+ } else if (tools.eqs(event.type, "dblclick")) {
+ treeEventType = "dblclick";
+ tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
+ if (tmp) {
+ tId = tools.getNodeMainDom(tmp).id;
+ nodeEventType = "switchNode";
+ }
+ }
+ if (treeEventType.length > 0 && tId.length == 0) {
+ tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
+ if (tmp) {tId = tools.getNodeMainDom(tmp).id;}
+ }
+ // event to node
+ if (tId.length>0) {
+ node = data.getNodeCache(setting, tId);
+ switch (nodeEventType) {
+ case "switchNode" :
+ if (!node.isParent) {
+ nodeEventType = "";
+ } else if (tools.eqs(event.type, "click")
+ || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) {
+ nodeEventCallback = handler.onSwitchNode;
+ } else {
+ nodeEventType = "";
+ }
+ break;
+ case "clickNode" :
+ nodeEventCallback = handler.onClickNode;
+ break;
+ }
+ }
+ // event to zTree
+ switch (treeEventType) {
+ case "mousedown" :
+ treeEventCallback = handler.onZTreeMousedown;
+ break;
+ case "mouseup" :
+ treeEventCallback = handler.onZTreeMouseup;
+ break;
+ case "dblclick" :
+ treeEventCallback = handler.onZTreeDblclick;
+ break;
+ case "contextmenu" :
+ treeEventCallback = handler.onZTreeContextmenu;
+ break;
+ }
+ var proxyResult = {
+ stop: false,
+ node: node,
+ nodeEventType: nodeEventType,
+ nodeEventCallback: nodeEventCallback,
+ treeEventType: treeEventType,
+ treeEventCallback: treeEventCallback
+ };
+ return proxyResult
+ },
+ //default init node of core
+ _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
+ if (!n) return;
+ var r = data.getRoot(setting),
+ childKey = setting.data.key.children;
+ n.level = level;
+ n.tId = setting.treeId + "_" + (++r.zId);
+ n.parentTId = parentNode ? parentNode.tId : null;
+ n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open;
+ if (n[childKey] && n[childKey].length > 0) {
+ n.isParent = true;
+ n.zAsync = true;
+ } else {
+ n.isParent = (typeof n.isParent == "string") ? tools.eqs(n.isParent, "true") : !!n.isParent;
+ n.open = (n.isParent && !setting.async.enable) ? n.open : false;
+ n.zAsync = !n.isParent;
+ }
+ n.isFirstNode = isFirstNode;
+ n.isLastNode = isLastNode;
+ n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);};
+ n.getPreNode = function() {return data.getPreNode(setting, n);};
+ n.getNextNode = function() {return data.getNextNode(setting, n);};
+ n.getIndex = function() {return data.getNodeIndex(setting, n);};
+ n.getPath = function() {return data.getNodePath(setting, n);};
+ n.isAjaxing = false;
+ data.fixPIdKeyValue(setting, n);
+ },
+ _init = {
+ bind: [_bindEvent],
+ unbind: [_unbindEvent],
+ caches: [_initCache],
+ nodes: [_initNode],
+ proxys: [_eventProxy],
+ roots: [_initRoot],
+ beforeA: [],
+ afterA: [],
+ innerBeforeA: [],
+ innerAfterA: [],
+ zTreeTools: []
+ },
+ //method of operate data
+ data = {
+ addNodeCache: function(setting, node) {
+ data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node;
+ },
+ getNodeCacheId: function(tId) {
+ return tId.substring(tId.lastIndexOf("_")+1);
+ },
+ addAfterA: function(afterA) {
+ _init.afterA.push(afterA);
+ },
+ addBeforeA: function(beforeA) {
+ _init.beforeA.push(beforeA);
+ },
+ addInnerAfterA: function(innerAfterA) {
+ _init.innerAfterA.push(innerAfterA);
+ },
+ addInnerBeforeA: function(innerBeforeA) {
+ _init.innerBeforeA.push(innerBeforeA);
+ },
+ addInitBind: function(bindEvent) {
+ _init.bind.push(bindEvent);
+ },
+ addInitUnBind: function(unbindEvent) {
+ _init.unbind.push(unbindEvent);
+ },
+ addInitCache: function(initCache) {
+ _init.caches.push(initCache);
+ },
+ addInitNode: function(initNode) {
+ _init.nodes.push(initNode);
+ },
+ addInitProxy: function(initProxy, isFirst) {
+ if (!!isFirst) {
+ _init.proxys.splice(0,0,initProxy);
+ } else {
+ _init.proxys.push(initProxy);
+ }
+ },
+ addInitRoot: function(initRoot) {
+ _init.roots.push(initRoot);
+ },
+ addNodesData: function(setting, parentNode, index, nodes) {
+ var childKey = setting.data.key.children, params;
+ if (!parentNode[childKey]) {
+ parentNode[childKey] = [];
+ index = -1;
+ } else if (index >= parentNode[childKey].length) {
+ index = -1;
+ }
+
+ if (parentNode[childKey].length > 0 && index === 0) {
+ parentNode[childKey][0].isFirstNode = false;
+ view.setNodeLineIcos(setting, parentNode[childKey][0]);
+ } else if (parentNode[childKey].length > 0 && index < 0) {
+ parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false;
+ view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]);
+ }
+ parentNode.isParent = true;
+
+ if (index<0) {
+ parentNode[childKey] = parentNode[childKey].concat(nodes);
+ } else {
+ params = [index, 0].concat(nodes);
+ parentNode[childKey].splice.apply(parentNode[childKey], params);
+ }
+ },
+ addSelectedNode: function(setting, node) {
+ var root = data.getRoot(setting);
+ if (!data.isSelectedNode(setting, node)) {
+ root.curSelectedList.push(node);
+ }
+ },
+ addCreatedNode: function(setting, node) {
+ if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
+ var root = data.getRoot(setting);
+ root.createdNodes.push(node);
+ }
+ },
+ addZTreeTools: function(zTreeTools) {
+ _init.zTreeTools.push(zTreeTools);
+ },
+ exSetting: function(s) {
+ $.extend(true, _setting, s);
+ },
+ fixPIdKeyValue: function(setting, node) {
+ if (setting.data.simpleData.enable) {
+ node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId;
+ }
+ },
+ getAfterA: function(setting, node, array) {
+ for (var i=0, j=_init.afterA.length; i<j; i++) {
+ _init.afterA[i].apply(this, arguments);
+ }
+ },
+ getBeforeA: function(setting, node, array) {
+ for (var i=0, j=_init.beforeA.length; i<j; i++) {
+ _init.beforeA[i].apply(this, arguments);
+ }
+ },
+ getInnerAfterA: function(setting, node, array) {
+ for (var i=0, j=_init.innerAfterA.length; i<j; i++) {
+ _init.innerAfterA[i].apply(this, arguments);
+ }
+ },
+ getInnerBeforeA: function(setting, node, array) {
+ for (var i=0, j=_init.innerBeforeA.length; i<j; i++) {
+ _init.innerBeforeA[i].apply(this, arguments);
+ }
+ },
+ getCache: function(setting) {
+ return caches[setting.treeId];
+ },
+ getNodeIndex: function(setting, node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l=p[childKey].length-1; i<=l; i++) {
+ if (p[childKey][i] === node) {
+ return i;
+ }
+ }
+ return -1;
+ },
+ getNextNode: function(setting, node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l=p[childKey].length-1; i<=l; i++) {
+ if (p[childKey][i] === node) {
+ return (i==l ? null : p[childKey][i+1]);
+ }
+ }
+ return null;
+ },
+ getNodeByParam: function(setting, nodes, key, value) {
+ if (!nodes || !key) return null;
+ var childKey = setting.data.key.children;
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (nodes[i][key] == value) {
+ return nodes[i];
+ }
+ var tmp = data.getNodeByParam(setting, nodes[i][childKey], key, value);
+ if (tmp) return tmp;
+ }
+ return null;
+ },
+ getNodeCache: function(setting, tId) {
+ if (!tId) return null;
+ var n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)];
+ return n ? n : null;
+ },
+ getNodeName: function(setting, node) {
+ var nameKey = setting.data.key.name;
+ return "" + node[nameKey];
+ },
+ getNodePath: function(setting, node) {
+ if (!node) return null;
+
+ var path;
+ if(node.parentTId) {
+ path = node.getParentNode().getPath();
+ } else {
+ path = [];
+ }
+
+ if (path) {
+ path.push(node);
+ }
+
+ return path;
+ },
+ getNodeTitle: function(setting, node) {
+ var t = setting.data.key.title === "" ? setting.data.key.name : setting.data.key.title;
+ return "" + node[t];
+ },
+ getNodes: function(setting) {
+ return data.getRoot(setting)[setting.data.key.children];
+ },
+ getNodesByParam: function(setting, nodes, key, value) {
+ if (!nodes || !key) return [];
+ var childKey = setting.data.key.children,
+ result = [];
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (nodes[i][key] == value) {
+ result.push(nodes[i]);
+ }
+ result = result.concat(data.getNodesByParam(setting, nodes[i][childKey], key, value));
+ }
+ return result;
+ },
+ getNodesByParamFuzzy: function(setting, nodes, key, value) {
+ if (!nodes || !key) return [];
+ var childKey = setting.data.key.children,
+ result = [];
+ value = value.toLowerCase();
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (typeof nodes[i][key] == "string" && nodes[i][key].toLowerCase().indexOf(value)>-1) {
+ result.push(nodes[i]);
+ }
+ result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value));
+ }
+ return result;
+ },
+ getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) {
+ if (!nodes) return (isSingle ? null : []);
+ var childKey = setting.data.key.children,
+ result = isSingle ? null : [];
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ if (tools.apply(filter, [nodes[i], invokeParam], false)) {
+ if (isSingle) {return nodes[i];}
+ result.push(nodes[i]);
+ }
+ var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam);
+ if (isSingle && !!tmpResult) {return tmpResult;}
+ result = isSingle ? tmpResult : result.concat(tmpResult);
+ }
+ return result;
+ },
+ getPreNode: function(setting, node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l=p[childKey].length; i<l; i++) {
+ if (p[childKey][i] === node) {
+ return (i==0 ? null : p[childKey][i-1]);
+ }
+ }
+ return null;
+ },
+ getRoot: function(setting) {
+ return setting ? roots[setting.treeId] : null;
+ },
+ getRoots: function() {
+ return roots;
+ },
+ getSetting: function(treeId) {
+ return settings[treeId];
+ },
+ getSettings: function() {
+ return settings;
+ },
+ getZTreeTools: function(treeId) {
+ var r = this.getRoot(this.getSetting(treeId));
+ return r ? r.treeTools : null;
+ },
+ initCache: function(setting) {
+ for (var i=0, j=_init.caches.length; i<j; i++) {
+ _init.caches[i].apply(this, arguments);
+ }
+ },
+ initNode: function(setting, level, node, parentNode, preNode, nextNode) {
+ for (var i=0, j=_init.nodes.length; i<j; i++) {
+ _init.nodes[i].apply(this, arguments);
+ }
+ },
+ initRoot: function(setting) {
+ for (var i=0, j=_init.roots.length; i<j; i++) {
+ _init.roots[i].apply(this, arguments);
+ }
+ },
+ isSelectedNode: function(setting, node) {
+ var root = data.getRoot(setting);
+ for (var i=0, j=root.curSelectedList.length; i<j; i++) {
+ if(node === root.curSelectedList[i]) return true;
+ }
+ return false;
+ },
+ removeNodeCache: function(setting, node) {
+ var childKey = setting.data.key.children;
+ if (node[childKey]) {
+ for (var i=0, l=node[childKey].length; i<l; i++) {
+ arguments.callee(setting, node[childKey][i]);
+ }
+ }
+ data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null;
+ },
+ removeSelectedNode: function(setting, node) {
+ var root = data.getRoot(setting);
+ for (var i=0, j=root.curSelectedList.length; i<j; i++) {
+ if(node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) {
+ root.curSelectedList.splice(i, 1);
+ setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, node]);
+ i--;j--;
+ }
+ }
+ },
+ setCache: function(setting, cache) {
+ caches[setting.treeId] = cache;
+ },
+ setRoot: function(setting, root) {
+ roots[setting.treeId] = root;
+ },
+ setZTreeTools: function(setting, zTreeTools) {
+ for (var i=0, j=_init.zTreeTools.length; i<j; i++) {
+ _init.zTreeTools[i].apply(this, arguments);
+ }
+ },
+ transformToArrayFormat: function (setting, nodes) {
+ if (!nodes) return [];
+ var childKey = setting.data.key.children,
+ r = [];
+ if (tools.isArray(nodes)) {
+ for (var i=0, l=nodes.length; i<l; i++) {
+ r.push(nodes[i]);
+ if (nodes[i][childKey])
+ r = r.concat(data.transformToArrayFormat(setting, nodes[i][childKey]));
+ }
+ } else {
+ r.push(nodes);
+ if (nodes[childKey])
+ r = r.concat(data.transformToArrayFormat(setting, nodes[childKey]));
+ }
+ return r;
+ },
+ transformTozTreeFormat: function(setting, sNodes) {
+ var i,l,
+ key = setting.data.simpleData.idKey,
+ parentKey = setting.data.simpleData.pIdKey,
+ childKey = setting.data.key.children;
+ if (!key || key=="" || !sNodes) return [];
+
+ if (tools.isArray(sNodes)) {
+ var r = [];
+ var tmpMap = [];
+ for (i=0, l=sNodes.length; i<l; i++) {
+ tmpMap[sNodes[i][key]] = sNodes[i];
+ }
+ for (i=0, l=sNodes.length; i<l; i++) {
+ if (tmpMap[sNodes[i][parentKey]] && sNodes[i][key] != sNodes[i][parentKey]) {
+ if (!tmpMap[sNodes[i][parentKey]][childKey])
+ tmpMap[sNodes[i][parentKey]][childKey] = [];
+ tmpMap[sNodes[i][parentKey]][childKey].push(sNodes[i]);
+ } else {
+ r.push(sNodes[i]);
+ }
+ }
+ return r;
+ }else {
+ return [sNodes];
+ }
+ }
+ },
+ //method of event proxy
+ event = {
+ bindEvent: function(setting) {
+ for (var i=0, j=_init.bind.length; i<j; i++) {
+ _init.bind[i].apply(this, arguments);
+ }
+ },
+ unbindEvent: function(setting) {
+ for (var i=0, j=_init.unbind.length; i<j; i++) {
+ _init.unbind[i].apply(this, arguments);
+ }
+ },
+ bindTree: function(setting) {
+ var eventParam = {
+ treeId: setting.treeId
+ },
+ o = setting.treeObj;
+ if (!setting.view.txtSelectedEnable) {
+ // for can't select text
+ o.bind('selectstart', handler.onSelectStart).css({
+ "-moz-user-select":"-moz-none"
+ });
+ }
+ o.bind('click', eventParam, event.proxy);
+ o.bind('dblclick', eventParam, event.proxy);
+ o.bind('mouseover', eventParam, event.proxy);
+ o.bind('mouseout', eventParam, event.proxy);
+ o.bind('mousedown', eventParam, event.proxy);
+ o.bind('mouseup', eventParam, event.proxy);
+ o.bind('contextmenu', eventParam, event.proxy);
+ },
+ unbindTree: function(setting) {
+ var o = setting.treeObj;
+ o.unbind('selectstart', handler.onSelectStart)
+ .unbind('click', event.proxy)
+ .unbind('dblclick', event.proxy)
+ .unbind('mouseover', event.proxy)
+ .unbind('mouseout', event.proxy)
+ .unbind('mousedown', event.proxy)
+ .unbind('mouseup', event.proxy)
+ .unbind('contextmenu', event.proxy);
+ },
+ doProxy: function(e) {
+ var results = [];
+ for (var i=0, j=_init.proxys.length; i<j; i++) {
+ var proxyResult = _init.proxys[i].apply(this, arguments);
+ results.push(proxyResult);
+ if (proxyResult.stop) {
+ break;
+ }
+ }
+ return results;
+ },
+ proxy: function(e) {
+ var setting = data.getSetting(e.data.treeId);
+ if (!tools.uCanDo(setting, e)) return true;
+ var results = event.doProxy(e),
+ r = true, x = false;
+ for (var i=0, l=results.length; i<l; i++) {
+ var proxyResult = results[i];
+ if (proxyResult.nodeEventCallback) {
+ x = true;
+ r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
+ }
+ if (proxyResult.treeEventCallback) {
+ x = true;
+ r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
+ }
+ }
+ return r;
+ }
+ },
+ //method of event handler
+ handler = {
+ onSwitchNode: function (event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (node.open) {
+ if (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true;
+ data.getRoot(setting).expandTriggerFlag = true;
+ view.switchNode(setting, node);
+ } else {
+ if (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true;
+ data.getRoot(setting).expandTriggerFlag = true;
+ view.switchNode(setting, node);
+ }
+ return true;
+ },
+ onClickNode: function (event, node) {
+ var setting = data.getSetting(event.data.treeId),
+ clickFlag = ( (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1;
+ if (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true;
+ if (clickFlag === 0) {
+ view.cancelPreSelectedNode(setting, node);
+ } else {
+ view.selectNode(setting, node, clickFlag === 2);
+ }
+ setting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]);
+ return true;
+ },
+ onZTreeMousedown: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]);
+ }
+ return true;
+ },
+ onZTreeMouseup: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]);
+ }
+ return true;
+ },
+ onZTreeDblclick: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onDblClick, [event, setting.treeId, node]);
+ }
+ return true;
+ },
+ onZTreeContextmenu: function(event, node) {
+ var setting = data.getSetting(event.data.treeId);
+ if (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) {
+ tools.apply(setting.callback.onRightClick, [event, setting.treeId, node]);
+ }
+ return (typeof setting.callback.onRightClick) != "function";
+ },
+ onSelectStart: function(e){
+ var n = e.originalEvent.srcElement.nodeName.toLowerCase();
+ return (n === "input" || n === "textarea" );
+ }
+ },
+ //method of tools for zTree
+ tools = {
+ apply: function(fun, param, defaultValue) {
+ if ((typeof fun) == "function") {
+ return fun.apply(zt, param?param:[]);
+ }
+ return defaultValue;
+ },
+ canAsync: function(setting, node) {
+ var childKey = setting.data.key.children;
+ return (setting.async.enable && node && node.isParent && !(node.zAsync || (node[childKey] && node[childKey].length > 0)));
+ },
+ clone: function (obj){
+ if (obj === null) return null;
+ var o = tools.isArray(obj) ? [] : {};
+ for(var i in obj){
+ o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]);
+ }
+ return o;
+ },
+ eqs: function(str1, str2) {
+ return str1.toLowerCase() === str2.toLowerCase();
+ },
+ isArray: function(arr) {
+ return Object.prototype.toString.apply(arr) === "[object Array]";
+ },
+ $: function(node, exp, setting) {
+ if (!!exp && typeof exp != "string") {
+ setting = exp;
+ exp = "";
+ }
+ if (typeof node == "string") {
+ return $(node, setting ? setting.treeObj.get(0).ownerDocument : null);
+ } else {
+ return $("#" + node.tId + exp, setting ? setting.treeObj : null);
+ }
+ },
+ getMDom: function (setting, curDom, targetExpr) {
+ if (!curDom) return null;
+ while (curDom && curDom.id !== setting.treeId) {
+ for (var i=0, l=targetExpr.length; curDom.tagName && i<l; i++) {
+ if (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) {
+ return curDom;
+ }
+ }
+ curDom = curDom.parentNode;
+ }
+ return null;
+ },
+ getNodeMainDom:function(target) {
+ return ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0));
+ },
+ isChildOrSelf: function(dom, parentId) {
+ return ( $(dom).closest("#" + parentId).length> 0 );
+ },
+ uCanDo: function(setting, e) {
+ return true;
+ }
+ },
+ //method of operate ztree dom
+ view = {
+ addNodes: function(setting, parentNode, index, newNodes, isSilent) {
+ if (setting.data.keep.leaf && parentNode && !parentNode.isParent) {
+ return;
+ }
+ if (!tools.isArray(newNodes)) {
+ newNodes = [newNodes];
+ }
+ if (setting.data.simpleData.enable) {
+ newNodes = data.transformTozTreeFormat(setting, newNodes);
+ }
+ if (parentNode) {
+ var target_switchObj = $$(parentNode, consts.id.SWITCH, setting),
+ target_icoObj = $$(parentNode, consts.id.ICON, setting),
+ target_ulObj = $$(parentNode, consts.id.UL, setting);
+
+ if (!parentNode.open) {
+ view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE);
+ view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE);
+ parentNode.open = false;
+ target_ulObj.css({
+ "display": "none"
+ });
+ }
+
+ data.addNodesData(setting, parentNode, index, newNodes);
+ view.createNodes(setting, parentNode.level + 1, newNodes, parentNode, index);
+ if (!isSilent) {
+ view.expandCollapseParentNode(setting, parentNode, true);
+ }
+ } else {
+ data.addNodesData(setting, data.getRoot(setting), index, newNodes);
+ view.createNodes(setting, 0, newNodes, null, index);
+ }
+ },
+ appendNodes: function(setting, level, nodes, parentNode, index, initFlag, openFlag) {
+ if (!nodes) return [];
+ var html = [],
+ childKey = setting.data.key.children;
+
+ var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting),
+ tmpPChild = tmpPNode[childKey],
+ isFirstNode, isLastNode;
+
+ if (!tmpPChild || index >= tmpPChild.length) {
+ index = -1;
+ }
+
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ var node = nodes[i];
+ if (initFlag) {
+ isFirstNode = ((index===0 || tmpPChild.length == nodes.length) && (i == 0));
+ isLastNode = (index < 0 && i == (nodes.length - 1));
+ data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag);
+ data.addNodeCache(setting, node);
+ }
+
+ var childHtml = [];
+ if (node[childKey] && node[childKey].length > 0) {
+ //make child html first, because checkType
+ childHtml = view.appendNodes(setting, level + 1, node[childKey], node, -1, initFlag, openFlag && node.open);
+ }
+ if (openFlag) {
+
+ view.makeDOMNodeMainBefore(html, setting, node);
+ view.makeDOMNodeLine(html, setting, node);
+ data.getBeforeA(setting, node, html);
+ view.makeDOMNodeNameBefore(html, setting, node);
+ data.getInnerBeforeA(setting, node, html);
+ view.makeDOMNodeIcon(html, setting, node);
+ data.getInnerAfterA(setting, node, html);
+ view.makeDOMNodeNameAfter(html, setting, node);
+ data.getAfterA(setting, node, html);
+ if (node.isParent && node.open) {
+ view.makeUlHtml(setting, node, html, childHtml.join(''));
+ }
+ view.makeDOMNodeMainAfter(html, setting, node);
+ data.addCreatedNode(setting, node);
+ }
+ }
+ return html;
+ },
+ appendParentULDom: function(setting, node) {
+ var html = [],
+ nObj = $$(node, setting);
+ if (!nObj.get(0) && !!node.parentTId) {
+ view.appendParentULDom(setting, node.getParentNode());
+ nObj = $$(node, setting);
+ }
+ var ulObj = $$(node, consts.id.UL, setting);
+ if (ulObj.get(0)) {
+ ulObj.remove();
+ }
+ var childKey = setting.data.key.children,
+ childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, -1, false, true);
+ view.makeUlHtml(setting, node, html, childHtml.join(''));
+ nObj.append(html.join(''));
+ },
+ asyncNode: function(setting, node, isSilent, callback) {
+ var i, l;
+ if (node && !node.isParent) {
+ tools.apply(callback);
+ return false;
+ } else if (node && node.isAjaxing) {
+ return false;
+ } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) {
+ tools.apply(callback);
+ return false;
+ }
+ if (node) {
+ node.isAjaxing = true;
+ var icoObj = $$(node, consts.id.ICON, setting);
+ icoObj.attr({"style":"", "class":consts.className.BUTTON + " " + consts.className.ICO_LOADING});
+ }
+
+ var tmpParam = {};
+ for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) {
+ var pKey = setting.async.autoParam[i].split("="), spKey = pKey;
+ if (pKey.length>1) {
+ spKey = pKey[1];
+ pKey = pKey[0];
+ }
+ tmpParam[spKey] = node[pKey];
+ }
+ if (tools.isArray(setting.async.otherParam)) {
+ for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) {
+ tmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1];
+ }
+ } else {
+ for (var p in setting.async.otherParam) {
+ tmpParam[p] = setting.async.otherParam[p];
+ }
+ }
+
+ var _tmpV = data.getRoot(setting)._ver;
+ $.ajax({
+ contentType: setting.async.contentType,
+ cache: false,
+ type: setting.async.type,
+ url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url),
+ data: tmpParam,
+ dataType: setting.async.dataType,
+ success: function(msg) {
+ if (_tmpV != data.getRoot(setting)._ver) {
+ return;
+ }
+ var newNodes = [];
+ try {
+ if (!msg || msg.length == 0) {
+ newNodes = [];
+ } else if (typeof msg == "string") {
+ newNodes = eval("(" + msg + ")");
+ } else {
+ newNodes = msg;
+ }
+ } catch(err) {
+ newNodes = msg;
+ }
+
+ if (node) {
+ node.isAjaxing = null;
+ node.zAsync = true;
+ }
+ view.setNodeLineIcos(setting, node);
+ if (newNodes && newNodes !== "") {
+ newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes);
+ view.addNodes(setting, node, -1, !!newNodes ? tools.clone(newNodes) : [], !!isSilent);
+ } else {
+ view.addNodes(setting, node, -1, [], !!isSilent);
+ }
+ setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]);
+ tools.apply(callback);
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ if (_tmpV != data.getRoot(setting)._ver) {
+ return;
+ }
+ if (node) node.isAjaxing = null;
+ view.setNodeLineIcos(setting, node);
+ setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]);
+ }
+ });
+ return true;
+ },
+ cancelPreSelectedNode: function (setting, node, excludeNode) {
+ var list = data.getRoot(setting).curSelectedList,
+ i, n;
+ for (i=list.length-1; i>=0; i--) {
+ n = list[i];
+ if (node === n || (!node && (!excludeNode || excludeNode !== n))) {
+ $$(n, consts.id.A, setting).removeClass(consts.node.CURSELECTED);
+ if (node) {
+ data.removeSelectedNode(setting, node);
+ break;
+ } else {
+ list.splice(i, 1);
+ setting.treeObj.trigger(consts.event.UNSELECTED, [setting.treeId, n]);
+ }
+ }
+ }
+ },
+ createNodeCallback: function(setting) {
+ if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
+ var root = data.getRoot(setting);
+ while (root.createdNodes.length>0) {
+ var node = root.createdNodes.shift();
+ tools.apply(setting.view.addDiyDom, [setting.treeId, node]);
+ if (!!setting.callback.onNodeCreated) {
+ setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]);
+ }
+ }
+ }
+ },
+ createNodes: function(setting, level, nodes, parentNode, index) {
+ if (!nodes || nodes.length == 0) return;
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children,
+ openFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0);
+ root.createdNodes = [];
+ var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, index, true, openFlag),
+ parentObj, nextObj;
+
+ if (!parentNode) {
+ parentObj = setting.treeObj;
+ //setting.treeObj.append(zTreeHtml.join(''));
+ } else {
+ var ulObj = $$(parentNode, consts.id.UL, setting);
+ if (ulObj.get(0)) {
+ parentObj = ulObj;
+ //ulObj.append(zTreeHtml.join(''));
+ }
+ }
+ if (parentObj) {
+ if (index >= 0) {
+ nextObj = parentObj.children()[index];
+ }
+ if (index >=0 && nextObj) {
+ $(nextObj).before(zTreeHtml.join(''));
+ } else {
+ parentObj.append(zTreeHtml.join(''));
+ }
+ }
+
+ view.createNodeCallback(setting);
+ },
+ destroy: function(setting) {
+ if (!setting) return;
+ data.initCache(setting);
+ data.initRoot(setting);
+ event.unbindTree(setting);
+ event.unbindEvent(setting);
+ setting.treeObj.empty();
+ delete settings[setting.treeId];
+ },
+ expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) {
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children;
+ if (!node) {
+ tools.apply(callback, []);
+ return;
+ }
+ if (root.expandTriggerFlag) {
+ var _callback = callback;
+ callback = function(){
+ if (_callback) _callback();
+ if (node.open) {
+ setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]);
+ } else {
+ setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]);
+ }
+ };
+ root.expandTriggerFlag = false;
+ }
+ if (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) {
+ view.appendParentULDom(setting, node);
+ view.createNodeCallback(setting);
+ }
+ if (node.open == expandFlag) {
+ tools.apply(callback, []);
+ return;
+ }
+ var ulObj = $$(node, consts.id.UL, setting),
+ switchObj = $$(node, consts.id.SWITCH, setting),
+ icoObj = $$(node, consts.id.ICON, setting);
+
+ if (node.isParent) {
+ node.open = !node.open;
+ if (node.iconOpen && node.iconClose) {
+ icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
+ }
+
+ if (node.open) {
+ view.replaceSwitchClass(node, switchObj, consts.folder.OPEN);
+ view.replaceIcoClass(node, icoObj, consts.folder.OPEN);
+ if (animateFlag == false || setting.view.expandSpeed == "") {
+ ulObj.show();
+ tools.apply(callback, []);
+ } else {
+ if (node[childKey] && node[childKey].length > 0) {
+ ulObj.slideDown(setting.view.expandSpeed, callback);
+ } else {
+ ulObj.show();
+ tools.apply(callback, []);
+ }
+ }
+ } else {
+ view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE);
+ view.replaceIcoClass(node, icoObj, consts.folder.CLOSE);
+ if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) {
+ ulObj.hide();
+ tools.apply(callback, []);
+ } else {
+ ulObj.slideUp(setting.view.expandSpeed, callback);
+ }
+ }
+ } else {
+ tools.apply(callback, []);
+ }
+ },
+ expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) {
+ if (!node) return;
+ if (!node.parentTId) {
+ view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback);
+ return;
+ } else {
+ view.expandCollapseNode(setting, node, expandFlag, animateFlag);
+ }
+ if (node.parentTId) {
+ view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback);
+ }
+ },
+ expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) {
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children,
+ treeNodes = (node) ? node[childKey]: root[childKey],
+ selfAnimateSign = (node) ? false : animateFlag,
+ expandTriggerFlag = data.getRoot(setting).expandTriggerFlag;
+ data.getRoot(setting).expandTriggerFlag = false;
+ if (treeNodes) {
+ for (var i = 0, l = treeNodes.length; i < l; i++) {
+ if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign);
+ }
+ }
+ data.getRoot(setting).expandTriggerFlag = expandTriggerFlag;
+ view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback );
+ },
+ isSelectedNode: function (setting, node) {
+ if (!node) {
+ return false;
+ }
+ var list = data.getRoot(setting).curSelectedList,
+ i;
+ for (i=list.length-1; i>=0; i--) {
+ if (node === list[i]) {
+ return true;
+ }
+ }
+ return false;
+ },
+ makeDOMNodeIcon: function(html, setting, node) {
+ var nameStr = data.getNodeName(setting, node),
+ name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+ html.push("<span id='", node.tId, consts.id.ICON,
+ "' title='' treeNode", consts.id.ICON," class='", view.makeNodeIcoClass(setting, node),
+ "' style='", view.makeNodeIcoStyle(setting, node), "'></span><span id='", node.tId, consts.id.SPAN,
+ "' class='", consts.className.NAME,
+ "'>",name,"</span>");
+ },
+ makeDOMNodeLine: function(html, setting, node) {
+ html.push("<span id='", node.tId, consts.id.SWITCH, "' title='' class='", view.makeNodeLineClass(setting, node), "' treeNode", consts.id.SWITCH,"></span>");
+ },
+ makeDOMNodeMainAfter: function(html, setting, node) {
+ html.push("</li>");
+ },
+ makeDOMNodeMainBefore: function(html, setting, node) {
+ html.push("<li id='", node.tId, "' class='", consts.className.LEVEL, node.level,"' tabindex='0' hidefocus='true' treenode>");
+ },
+ makeDOMNodeNameAfter: function(html, setting, node) {
+ html.push("</a>");
+ },
+ makeDOMNodeNameBefore: function(html, setting, node) {
+ var title = data.getNodeTitle(setting, node),
+ url = view.makeNodeUrl(setting, node),
+ fontcss = view.makeNodeFontCss(setting, node),
+ fontStyle = [];
+ for (var f in fontcss) {
+ fontStyle.push(f, ":", fontcss[f], ";");
+ }
+ html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,"' treeNode", consts.id.A," onclick=\"", (node.click || ''),
+ "\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''),
+ "'");
+ if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(/</g,'<').replace(/>/g,'>'),"'");}
+ html.push(">");
+ },
+ makeNodeFontCss: function(setting, node) {
+ var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss);
+ return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {};
+ },
+ makeNodeIcoClass: function(setting, node) {
+ var icoCss = ["ico"];
+ if (!node.isAjaxing) {
+ icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0];
+ if (node.isParent) {
+ icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
+ } else {
+ icoCss.push(consts.folder.DOCU);
+ }
+ }
+ return consts.className.BUTTON + " " + icoCss.join('_');
+ },
+ makeNodeIcoStyle: function(setting, node) {
+ var icoStyle = [];
+ if (!node.isAjaxing) {
+ var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node[setting.data.key.icon];
+ if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;");
+ if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) {
+ icoStyle.push("width:0px;height:0px;");
+ }
+ }
+ return icoStyle.join('');
+ },
+ makeNodeLineClass: function(setting, node) {
+ var lineClass = [];
+ if (setting.view.showLine) {
+ if (node.level == 0 && node.isFirstNode && node.isLastNode) {
+ lineClass.push(consts.line.ROOT);
+ } else if (node.level == 0 && node.isFirstNode) {
+ lineClass.push(consts.line.ROOTS);
+ } else if (node.isLastNode) {
+ lineClass.push(consts.line.BOTTOM);
+ } else {
+ lineClass.push(consts.line.CENTER);
+ }
+ } else {
+ lineClass.push(consts.line.NOLINE);
+ }
+ if (node.isParent) {
+ lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
+ } else {
+ lineClass.push(consts.folder.DOCU);
+ }
+ return view.makeNodeLineClassEx(node) + lineClass.join('_');
+ },
+ makeNodeLineClassEx: function(node) {
+ return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " ";
+ },
+ makeNodeTarget: function(node) {
+ return (node.target || "_blank");
+ },
+ makeNodeUrl: function(setting, node) {
+ var urlKey = setting.data.key.url;
+ return node[urlKey] ? node[urlKey] : null;
+ },
+ makeUlHtml: function(setting, node, html, content) {
+ html.push("<ul id='", node.tId, consts.id.UL, "' class='", consts.className.LEVEL, node.level, " ", view.makeUlLineClass(setting, node), "' style='display:", (node.open ? "block": "none"),"'>");
+ html.push(content);
+ html.push("</ul>");
+ },
+ makeUlLineClass: function(setting, node) {
+ return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : "");
+ },
+ removeChildNodes: function(setting, node) {
+ if (!node) return;
+ var childKey = setting.data.key.children,
+ nodes = node[childKey];
+ if (!nodes) return;
+
+ for (var i = 0, l = nodes.length; i < l; i++) {
+ data.removeNodeCache(setting, nodes[i]);
+ }
+ data.removeSelectedNode(setting);
+ delete node[childKey];
+
+ if (!setting.data.keep.parent) {
+ node.isParent = false;
+ node.open = false;
+ var tmp_switchObj = $$(node, consts.id.SWITCH, setting),
+ tmp_icoObj = $$(node, consts.id.ICON, setting);
+ view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU);
+ view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU);
+ $$(node, consts.id.UL, setting).remove();
+ } else {
+ $$(node, consts.id.UL, setting).empty();
+ }
+ },
+ scrollIntoView: function(dom) {
+ if (!dom) {
+ return;
+ }
+ if (dom.scrollIntoViewIfNeeded) {
+ dom.scrollIntoViewIfNeeded();
+ } else if (dom.scrollIntoView) {
+ dom.scrollIntoView(false);
+ } else {
+ try{dom.focus().blur();}catch(e){}
+ }
+ },
+ setFirstNode: function(setting, parentNode) {
+ var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
+ if ( childLength > 0) {
+ parentNode[childKey][0].isFirstNode = true;
+ }
+ },
+ setLastNode: function(setting, parentNode) {
+ var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
+ if ( childLength > 0) {
+ parentNode[childKey][childLength - 1].isLastNode = true;
+ }
+ },
+ removeNode: function(setting, node) {
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children,
+ parentNode = (node.parentTId) ? node.getParentNode() : root;
+
+ node.isFirstNode = false;
+ node.isLastNode = false;
+ node.getPreNode = function() {return null;};
+ node.getNextNode = function() {return null;};
+
+ if (!data.getNodeCache(setting, node.tId)) {
+ return;
+ }
+
+ $$(node, setting).remove();
+ data.removeNodeCache(setting, node);
+ data.removeSelectedNode(setting, node);
+
+ for (var i = 0, l = parentNode[childKey].length; i < l; i++) {
+ if (parentNode[childKey][i].tId == node.tId) {
+ parentNode[childKey].splice(i, 1);
+ break;
+ }
+ }
+ view.setFirstNode(setting, parentNode);
+ view.setLastNode(setting, parentNode);
+
+ var tmp_ulObj,tmp_switchObj,tmp_icoObj,
+ childLength = parentNode[childKey].length;
+
+ //repair nodes old parent
+ if (!setting.data.keep.parent && childLength == 0) {
+ //old parentNode has no child nodes
+ parentNode.isParent = false;
+ parentNode.open = false;
+ tmp_ulObj = $$(parentNode, consts.id.UL, setting);
+ tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting);
+ tmp_icoObj = $$(parentNode, consts.id.ICON, setting);
+ view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU);
+ view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU);
+ tmp_ulObj.css("display", "none");
+
+ } else if (setting.view.showLine && childLength > 0) {
+ //old parentNode has child nodes
+ var newLast = parentNode[childKey][childLength - 1];
+ tmp_ulObj = $$(newLast, consts.id.UL, setting);
+ tmp_switchObj = $$(newLast, consts.id.SWITCH, setting);
+ tmp_icoObj = $$(newLast, consts.id.ICON, setting);
+ if (parentNode == root) {
+ if (parentNode[childKey].length == 1) {
+ //node was root, and ztree has only one root after move node
+ view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT);
+ } else {
+ var tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting);
+ view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS);
+ view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
+ }
+ } else {
+ view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
+ }
+ tmp_ulObj.removeClass(consts.line.LINE);
+ }
+ },
+ replaceIcoClass: function(node, obj, newName) {
+ if (!obj || node.isAjaxing) return;
+ var tmpName = obj.attr("class");
+ if (tmpName == undefined) return;
+ var tmpList = tmpName.split("_");
+ switch (newName) {
+ case consts.folder.OPEN:
+ case consts.folder.CLOSE:
+ case consts.folder.DOCU:
+ tmpList[tmpList.length-1] = newName;
+ break;
+ }
+ obj.attr("class", tmpList.join("_"));
+ },
+ replaceSwitchClass: function(node, obj, newName) {
+ if (!obj) return;
+ var tmpName = obj.attr("class");
+ if (tmpName == undefined) return;
+ var tmpList = tmpName.split("_");
+ switch (newName) {
+ case consts.line.ROOT:
+ case consts.line.ROOTS:
+ case consts.line.CENTER:
+ case consts.line.BOTTOM:
+ case consts.line.NOLINE:
+ tmpList[0] = view.makeNodeLineClassEx(node) + newName;
+ break;
+ case consts.folder.OPEN:
+ case consts.folder.CLOSE:
+ case consts.folder.DOCU:
+ tmpList[1] = newName;
+ break;
+ }
+ obj.attr("class", tmpList.join("_"));
+ if (newName !== consts.folder.DOCU) {
+ obj.removeAttr("disabled");
+ } else {
+ obj.attr("disabled", "disabled");
+ }
+ },
+ selectNode: function(setting, node, addFlag) {
+ if (!addFlag) {
+ view.cancelPreSelectedNode(setting, null, node);
+ }
+ $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED);
+ data.addSelectedNode(setting, node);
+ setting.treeObj.trigger(consts.event.SELECTED, [setting.treeId, node]);
+ },
+ setNodeFontCss: function(setting, treeNode) {
+ var aObj = $$(treeNode, consts.id.A, setting),
+ fontCss = view.makeNodeFontCss(setting, treeNode);
+ if (fontCss) {
+ aObj.css(fontCss);
+ }
+ },
+ setNodeLineIcos: function(setting, node) {
+ if (!node) return;
+ var switchObj = $$(node, consts.id.SWITCH, setting),
+ ulObj = $$(node, consts.id.UL, setting),
+ icoObj = $$(node, consts.id.ICON, setting),
+ ulLine = view.makeUlLineClass(setting, node);
+ if (ulLine.length==0) {
+ ulObj.removeClass(consts.line.LINE);
+ } else {
+ ulObj.addClass(ulLine);
+ }
+ switchObj.attr("class", view.makeNodeLineClass(setting, node));
+ if (node.isParent) {
+ switchObj.removeAttr("disabled");
+ } else {
+ switchObj.attr("disabled", "disabled");
+ }
+ icoObj.removeAttr("style");
+ icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
+ icoObj.attr("class", view.makeNodeIcoClass(setting, node));
+ },
+ setNodeName: function(setting, node) {
+ var title = data.getNodeTitle(setting, node),
+ nObj = $$(node, consts.id.SPAN, setting);
+ nObj.empty();
+ if (setting.view.nameIsHTML) {
+ nObj.html(data.getNodeName(setting, node));
+ } else {
+ nObj.text(data.getNodeName(setting, node));
+ }
+ if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) {
+ var aObj = $$(node, consts.id.A, setting);
+ aObj.attr("title", !title ? "" : title);
+ }
+ },
+ setNodeTarget: function(setting, node) {
+ var aObj = $$(node, consts.id.A, setting);
+ aObj.attr("target", view.makeNodeTarget(node));
+ },
+ setNodeUrl: function(setting, node) {
+ var aObj = $$(node, consts.id.A, setting),
+ url = view.makeNodeUrl(setting, node);
+ if (url == null || url.length == 0) {
+ aObj.removeAttr("href");
+ } else {
+ aObj.attr("href", url);
+ }
+ },
+ switchNode: function(setting, node) {
+ if (node.open || !tools.canAsync(setting, node)) {
+ view.expandCollapseNode(setting, node, !node.open);
+ } else if (setting.async.enable) {
+ if (!view.asyncNode(setting, node)) {
+ view.expandCollapseNode(setting, node, !node.open);
+ return;
+ }
+ } else if (node) {
+ view.expandCollapseNode(setting, node, !node.open);
+ }
+ }
+ };
+ // zTree defind
+ $.fn.zTree = {
+ consts : _consts,
+ _z : {
+ tools: tools,
+ view: view,
+ event: event,
+ data: data
+ },
+ getZTreeObj: function(treeId) {
+ var o = data.getZTreeTools(treeId);
+ return o ? o : null;
+ },
+ destroy: function(treeId) {
+ if (!!treeId && treeId.length > 0) {
+ view.destroy(data.getSetting(treeId));
+ } else {
+ for(var s in settings) {
+ view.destroy(settings[s]);
+ }
+ }
+ },
+ init: function(obj, zSetting, zNodes) {
+ var setting = tools.clone(_setting);
+ $.extend(true, setting, zSetting);
+ setting.treeId = obj.attr("id");
+ setting.treeObj = obj;
+ setting.treeObj.empty();
+ settings[setting.treeId] = setting;
+ //For some older browser,(e.g., ie6)
+ if(typeof document.body.style.maxHeight === "undefined") {
+ setting.view.expandSpeed = "";
+ }
+ data.initRoot(setting);
+ var root = data.getRoot(setting),
+ childKey = setting.data.key.children;
+ zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : [];
+ if (setting.data.simpleData.enable) {
+ root[childKey] = data.transformTozTreeFormat(setting, zNodes);
+ } else {
+ root[childKey] = zNodes;
+ }
+
+ data.initCache(setting);
+ event.unbindTree(setting);
+ event.bindTree(setting);
+ event.unbindEvent(setting);
+ event.bindEvent(setting);
+
+ var zTreeTools = {
+ setting : setting,
+ addNodes : function(parentNode, index, newNodes, isSilent) {
+ if (!parentNode) parentNode = null;
+ if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null;
+
+ var i = parseInt(index, 10);
+ if (isNaN(i)) {
+ isSilent = !!newNodes;
+ newNodes = index;
+ index = -1;
+ } else {
+ index = i;
+ }
+ if (!newNodes) return null;
+
+
+ var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]);
+ function addCallback() {
+ view.addNodes(setting, parentNode, index, xNewNodes, (isSilent==true));
+ }
+
+ if (tools.canAsync(setting, parentNode)) {
+ view.asyncNode(setting, parentNode, isSilent, addCallback);
+ } else {
+ addCallback();
+ }
+ return xNewNodes;
+ },
+ cancelSelectedNode : function(node) {
+ view.cancelPreSelectedNode(setting, node);
+ },
+ destroy : function() {
+ view.destroy(setting);
+ },
+ expandAll : function(expandFlag) {
+ expandFlag = !!expandFlag;
+ view.expandCollapseSonNode(setting, null, expandFlag, true);
+ return expandFlag;
+ },
+ expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) {
+ if (!node || !node.isParent) return null;
+ if (expandFlag !== true && expandFlag !== false) {
+ expandFlag = !node.open;
+ }
+ callbackFlag = !!callbackFlag;
+
+ if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) {
+ return null;
+ } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) {
+ return null;
+ }
+ if (expandFlag && node.parentTId) {
+ view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false);
+ }
+ if (expandFlag === node.open && !sonSign) {
+ return null;
+ }
+
+ data.getRoot(setting).expandTriggerFlag = callbackFlag;
+ if (!tools.canAsync(setting, node) && sonSign) {
+ view.expandCollapseSonNode(setting, node, expandFlag, true, showNodeFocus);
+ } else {
+ node.open = !expandFlag;
+ view.switchNode(this.setting, node);
+ showNodeFocus();
+ }
+ return expandFlag;
+
+ function showNodeFocus() {
+ var a = $$(node, setting).get(0);
+ if (a && focus !== false) {
+ view.scrollIntoView(a);
+ }
+ }
+ },
+ getNodes : function() {
+ return data.getNodes(setting);
+ },
+ getNodeByParam : function(key, value, parentNode) {
+ if (!key) return null;
+ return data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
+ },
+ getNodeByTId : function(tId) {
+ return data.getNodeCache(setting, tId);
+ },
+ getNodesByParam : function(key, value, parentNode) {
+ if (!key) return null;
+ return data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
+ },
+ getNodesByParamFuzzy : function(key, value, parentNode) {
+ if (!key) return null;
+ return data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
+ },
+ getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) {
+ isSingle = !!isSingle;
+ if (!filter || (typeof filter != "function")) return (isSingle ? null : []);
+ return data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam);
+ },
+ getNodeIndex : function(node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);
+ for (var i=0, l = parentNode[childKey].length; i < l; i++) {
+ if (parentNode[childKey][i] == node) return i;
+ }
+ return -1;
+ },
+ getSelectedNodes : function() {
+ var r = [], list = data.getRoot(setting).curSelectedList;
+ for (var i=0, l=list.length; i<l; i++) {
+ r.push(list[i]);
+ }
+ return r;
+ },
+ isSelectedNode : function(node) {
+ return data.isSelectedNode(setting, node);
+ },
+ reAsyncChildNodes : function(parentNode, reloadType, isSilent) {
+ if (!this.setting.async.enable) return;
+ var isRoot = !parentNode;
+ if (isRoot) {
+ parentNode = data.getRoot(setting);
+ }
+ if (reloadType=="refresh") {
+ var childKey = this.setting.data.key.children;
+ for (var i = 0, l = parentNode[childKey] ? parentNode[childKey].length : 0; i < l; i++) {
+ data.removeNodeCache(setting, parentNode[childKey][i]);
+ }
+ data.removeSelectedNode(setting);
+ parentNode[childKey] = [];
+ if (isRoot) {
+ this.setting.treeObj.empty();
+ } else {
+ var ulObj = $$(parentNode, consts.id.UL, setting);
+ ulObj.empty();
+ }
+ }
+ view.asyncNode(this.setting, isRoot? null:parentNode, !!isSilent);
+ },
+ refresh : function() {
+ this.setting.treeObj.empty();
+ var root = data.getRoot(setting),
+ nodes = root[setting.data.key.children]
+ data.initRoot(setting);
+ root[setting.data.key.children] = nodes
+ data.initCache(setting);
+ view.createNodes(setting, 0, root[setting.data.key.children], null, -1);
+ },
+ removeChildNodes : function(node) {
+ if (!node) return null;
+ var childKey = setting.data.key.children,
+ nodes = node[childKey];
+ view.removeChildNodes(setting, node);
+ return nodes ? nodes : null;
+ },
+ removeNode : function(node, callbackFlag) {
+ if (!node) return;
+ callbackFlag = !!callbackFlag;
+ if (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return;
+ view.removeNode(setting, node);
+ if (callbackFlag) {
+ this.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);
+ }
+ },
+ selectNode : function(node, addFlag, isSilent) {
+ if (!node) return;
+ if (tools.uCanDo(setting)) {
+ addFlag = setting.view.selectedMulti && addFlag;
+ if (node.parentTId) {
+ view.expandCollapseParentNode(setting, node.getParentNode(), true, false, showNodeFocus);
+ } else {
+ try{$$(node, setting).focus().blur();}catch(e){}
+ }
+ view.selectNode(setting, node, addFlag);
+ }
+
+ function showNodeFocus() {
+ if (isSilent) {
+ return;
+ }
+ var a = $$(node, setting).get(0);
+ view.scrollIntoView(a);
+ }
+ },
+ transformTozTreeNodes : function(simpleNodes) {
+ return data.transformTozTreeFormat(setting, simpleNodes);
+ },
+ transformToArray : function(nodes) {
+ return data.transformToArrayFormat(setting, nodes);
+ },
+ updateNode : function(node, checkTypeFlag) {
+ if (!node) return;
+ var nObj = $$(node, setting);
+ if (nObj.get(0) && tools.uCanDo(setting)) {
+ view.setNodeName(setting, node);
+ view.setNodeTarget(setting, node);
+ view.setNodeUrl(setting, node);
+ view.setNodeLineIcos(setting, node);
+ view.setNodeFontCss(setting, node);
+ }
+ }
+ }
+ root.treeTools = zTreeTools;
+ data.setZTreeTools(setting, zTreeTools);
+
+ if (root[childKey] && root[childKey].length > 0) {
+ view.createNodes(setting, 0, root[childKey], null, -1);
+ } else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
+ view.asyncNode(setting);
+ }
+ return zTreeTools;
+ }
+ };
+
+ var zt = $.fn.zTree,
+ $$ = tools.$,
+ consts = zt.consts;
+})(jQuery);
\ No newline at end of file
diff --git a/libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude_NoCommon.js b/libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude_NoCommon.js
index 9211afb..2104ea2 100644
--- a/libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude_NoCommon.js
+++ b/libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude_NoCommon.js
@@ -1,4 +1,4 @@
-/******/ (function(modules) { // webpackBootstrap
+/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
@@ -6,15 +6,17 @@
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
-/******/ if(installedModules[moduleId]) {
+/******/ if (installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
-/******/ }
+ /******/
+}
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
-/******/ };
+ /******/
+};
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
@@ -24,7 +26,8 @@
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
-/******/ }
+ /******/
+}
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
@@ -34,296 +37,302 @@
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
-/******/ __webpack_require__.i = function(value) { return value; };
+/******/ __webpack_require__.i = function (value) { return value; };
/******/
/******/ // define getter function for harmony exports
-/******/ __webpack_require__.d = function(exports, name, getter) {
-/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ __webpack_require__.d = function (exports, name, getter) {
+/******/ if (!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
-/******/ });
-/******/ }
-/******/ };
+ /******/
+});
+ /******/
+}
+ /******/
+};
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
-/******/ __webpack_require__.n = function(module) {
+/******/ __webpack_require__.n = function (module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
-/******/ };
+ /******/
+};
/******/
/******/ // Object.prototype.hasOwnProperty.call
-/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/ __webpack_require__.o = function (object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
-/******/ })
+ /******/
+})
/************************************************************************/
-/******/ ([
+/******/([
/* 0 */
-/***/ (function(module, exports) {
+/***/ (function (module, exports) {
-/* COPYRIGHT 2012 SUPERMAP
- * 本程序只能在有效的授权许可下使用。
- * 未经许可,不得以任何手段擅自使用或传播。*/
+ /* COPYRIGHT 2012 SUPERMAP
+ * 本程序只能在有效的授权许可下使用。
+ * 未经许可,不得以任何手段擅自使用或传播。*/
-/**
- * @requires SuperMap/BaseTypes.js
- */
+ /**
+ * @requires SuperMap/BaseTypes.js
+ */
-/**
- * Namespace: SuperMap.Lang
- * 国际化的命名空间,包含多种语言和方法库来设置和获取当前的语言。
- */
-//var SuperMap = window.SuperMap = window.SuperMap || {};
+ /**
+ * Namespace: SuperMap.Lang
+ * 国际化的命名空间,包含多种语言和方法库来设置和获取当前的语言。
+ */
+ //var SuperMap = window.SuperMap = window.SuperMap || {};
-/***
- * @private
- * @type {{translate: SuperMap.PlotLang.translate}}
- */
-SuperMap.PlotLang = {
- /**
- * APIMethod: translate
- * 从当前语言字符串的字典查找key。
- * getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
- *
- * Parameters:
- * key - {String} 字典中i18n字符串值的关键字.
- * context - {Object} <SuperMap.String.format> 使用此参数。
- *
- * Returns:
- * {String} 国际化的字符串。
- */
- translate: function(key, context) {
- var dictionary = SuperMap.PlotLang["zh-CN"];
- var message = dictionary && dictionary[key];
- if(!message) {
- // Message not found, fall back to message key
- message = key;
- }
- if(context) {
- message = SuperMap.String.format(message, context);
- }
- return message;
- }
+ /***
+ * @private
+ * @type {{translate: SuperMap.PlotLang.translate}}
+ */
+ SuperMap.PlotLang = {
+ /**
+ * APIMethod: translate
+ * 从当前语言字符串的字典查找key。
+ * getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
+ *
+ * Parameters:
+ * key - {String} 字典中i18n字符串值的关键字.
+ * context - {Object} <SuperMap.String.format> 使用此参数。
+ *
+ * Returns:
+ * {String} 国际化的字符串。
+ */
+ translate: function (key, context) {
+ var dictionary = SuperMap.PlotLang["zh-CN"];
+ var message = dictionary && dictionary[key];
+ if (!message) {
+ // Message not found, fall back to message key
+ message = key;
+ }
+ if (context) {
+ message = SuperMap.String.format(message, context);
+ }
+ return message;
+ }
-};
+ };
-/**
- * @private
- * APIMethod: SuperMap.plotI18n
- * <SuperMap.Lang.translate> 的别名. 当前语言字符串的字典查找key。
- * getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
- *
- * Parameters:
- * key - {String} 字典中i18n字符串值的关键字.
- * context - {Object} <SuperMap.String.format> 使用此参数。
- *
- * Returns:
- * {String} 国际化的字符串。
- */
-SuperMap.plotI18n = SuperMap.PlotLang.translate;
+ /**
+ * @private
+ * APIMethod: SuperMap.plotI18n
+ * <SuperMap.Lang.translate> 的别名. 当前语言字符串的字典查找key。
+ * getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
+ *
+ * Parameters:
+ * key - {String} 字典中i18n字符串值的关键字.
+ * context - {Object} <SuperMap.String.format> 使用此参数。
+ *
+ * Returns:
+ * {String} 国际化的字符串。
+ */
+ SuperMap.plotI18n = SuperMap.PlotLang.translate;
-/**
- * @private
- * */
-SuperMap.PlotLang["zh-CN"] = {
- //字体
- 'SongTi':"宋体",
- //text
- 'text':"文本",
- 'textSizeLabel':"字体大小",
- 'textSizeTitle':"字体大小",
- 'textFaceNameLabel':"字体",
- 'textFaceNameTitle':"字体",
- 'textAlignLabel':"水平对齐方式",
- 'textAlignTitle':"文本的水平对齐方式",
- 'textVerticalAlignmentLabel':"垂直对齐方式",
- 'textVerticalAlignmentTitle':"文本的垂直对齐方式",
- 'textHaloRadiusLabel':"文本边框宽度",
- 'textHaloRadiusTitle':"文本的外围边框的宽度",
- 'textHaloColorLabel':"文本边框颜色",
- 'textHaloColorTitle':"文本的外围边框的颜色",
- 'textFillLabel':"文本颜色",
- 'textFillTitle':"文本的颜色值",
- 'textOpacityLabel':"透明度",
- 'textOpacityTitle':"文本的透明度",
- 'textDxLabel':"横向偏移",
- 'textDxTitle':"文本的横向偏移值",
- 'textDyLabel':"纵向偏移值",
- 'textDyTitle':"文本的纵向偏移值",
- 'textCompOpLabel':"叠加方式",
- 'textCompOpTitle':"文本之间相互叠加里使用的覆盖或者是异或等运算方式",
- 'expandingPointContent':"展",
- 'volleyPointContent':"齐",
- 'rendezvousPointContent':"会",
- 'supplyPointContent':"补",
- //symbolAlgo
- //JB
- 'symbolAlgo_17703':"加",
- 'symbolAlgo_17704':"急",
- 'symbolAlgo_21600':"冲",
- 'symbolAlgo_28000_1':"危",
- 'symbolAlgo_28000_2':"中",
- 'symbolAlgo_28000_3':"轻",
- 'symbolAlgo_315':"突击",
- 'symbolAlgo_31304':"慑阻",
- 'symbolAlgo_3010301':"调",
- 'symbolAlgo_3010303':"出",
- 'symbolAlgo_3010304':"协",
+ /**
+ * @private
+ * */
+ SuperMap.PlotLang["zh-CN"] = {
+ //字体
+ 'SongTi': "宋体",
+ //text
+ 'text': "文本",
+ 'textSizeLabel': "字体大小",
+ 'textSizeTitle': "字体大小",
+ 'textFaceNameLabel': "字体",
+ 'textFaceNameTitle': "字体",
+ 'textAlignLabel': "水平对齐方式",
+ 'textAlignTitle': "文本的水平对齐方式",
+ 'textVerticalAlignmentLabel': "垂直对齐方式",
+ 'textVerticalAlignmentTitle': "文本的垂直对齐方式",
+ 'textHaloRadiusLabel': "文本边框宽度",
+ 'textHaloRadiusTitle': "文本的外围边框的宽度",
+ 'textHaloColorLabel': "文本边框颜色",
+ 'textHaloColorTitle': "文本的外围边框的颜色",
+ 'textFillLabel': "文本颜色",
+ 'textFillTitle': "文本的颜色值",
+ 'textOpacityLabel': "透明度",
+ 'textOpacityTitle': "文本的透明度",
+ 'textDxLabel': "横向偏移",
+ 'textDxTitle': "文本的横向偏移值",
+ 'textDyLabel': "纵向偏移值",
+ 'textDyTitle': "文本的纵向偏移值",
+ 'textCompOpLabel': "叠加方式",
+ 'textCompOpTitle': "文本之间相互叠加里使用的覆盖或者是异或等运算方式",
+ 'expandingPointContent': "展",
+ 'volleyPointContent': "齐",
+ 'rendezvousPointContent': "会",
+ 'supplyPointContent': "补",
+ //symbolAlgo
+ //JB
+ 'symbolAlgo_17703': "加",
+ 'symbolAlgo_17704': "急",
+ 'symbolAlgo_21600': "冲",
+ 'symbolAlgo_28000_1': "危",
+ 'symbolAlgo_28000_2': "中",
+ 'symbolAlgo_28000_3': "轻",
+ 'symbolAlgo_315': "突击",
+ 'symbolAlgo_31304': "慑阻",
+ 'symbolAlgo_3010301': "调",
+ 'symbolAlgo_3010303': "出",
+ 'symbolAlgo_3010304': "协",
- //WJ
- 'symbolAlgo_2121505':"火",
- 'symbolAlgo_2121506':"墩",
- 'symbolAlgo_2121507':"复",
- 'symbolAlgo_2121601':"遥",
- 'symbolAlgo_2121602':"障",
- 'symbolAlgo_30010':"?",
- 'symbolAlgo_3001101':"集",
- 'symbolAlgo_3001102':"暴",
- 'symbolAlgo_3001103':"骚",
- 'symbolAlgo_3001104':"私",
- 'symbolAlgo_3001105':"盗",
- 'symbolAlgo_30020':"水",
- 'symbolAlgo_3002001':"震",
- 'symbolAlgo_3002004':"火",
- 'symbolAlgo_30025':"滞",
- 'symbolAlgo_5010301':"调",
- 'symbolAlgo_5010303':"出",
- 'symbolAlgo_5010304':"协",
- 'symbolAlgo_5010401':"JZ",
- 'symbolAlgo_5022001':"ZD0",
- 'symbolAlgo_5034801':"催",
- "symbolAlgo_60203":"避",
- 'symbolAlgo_60301':"爆",
- 'symbolAlgo_6030101':"挖",
- 'symbolAlgo_6030102':"浇",
- 'symbolAlgo_6030103':"砌",
- 'symbolAlgo_6030104':"装",
- 'symbolAlgo_6030105':"石",
- 'symbolAlgo_6030106':"沙",
- 'symbolAlgo_6030107':"练",
- 'symbolAlgo_60304':"隧",
- 'symbolAlgo_3002501':"踏",
- 'symbolAlgo_30026':"灾",
- 'symbolAlgo_40104':"缉",
- 'symbolAlgo_4030301':"标",
- 'symbolAlgo_4030302':"劝",
- 'symbolAlgo_4030303':"疏",
- 'symbolAlgo_40304':"警",
- 'symbolAlgo_4030401':"警",
+ //WJ
+ 'symbolAlgo_2121505': "火",
+ 'symbolAlgo_2121506': "墩",
+ 'symbolAlgo_2121507': "复",
+ 'symbolAlgo_2121601': "遥",
+ 'symbolAlgo_2121602': "障",
+ 'symbolAlgo_30010': "?",
+ 'symbolAlgo_3001101': "集",
+ 'symbolAlgo_3001102': "暴",
+ 'symbolAlgo_3001103': "骚",
+ 'symbolAlgo_3001104': "私",
+ 'symbolAlgo_3001105': "盗",
+ 'symbolAlgo_30020': "水",
+ 'symbolAlgo_3002001': "震",
+ 'symbolAlgo_3002004': "火",
+ 'symbolAlgo_30025': "滞",
+ 'symbolAlgo_5010301': "调",
+ 'symbolAlgo_5010303': "出",
+ 'symbolAlgo_5010304': "协",
+ 'symbolAlgo_5010401': "JZ",
+ 'symbolAlgo_5022001': "ZD0",
+ 'symbolAlgo_5034801': "催",
+ "symbolAlgo_60203": "避",
+ 'symbolAlgo_60301': "爆",
+ 'symbolAlgo_6030101': "挖",
+ 'symbolAlgo_6030102': "浇",
+ 'symbolAlgo_6030103': "砌",
+ 'symbolAlgo_6030104': "装",
+ 'symbolAlgo_6030105': "石",
+ 'symbolAlgo_6030106': "沙",
+ 'symbolAlgo_6030107': "练",
+ 'symbolAlgo_60304': "隧",
+ 'symbolAlgo_3002501': "踏",
+ 'symbolAlgo_30026': "灾",
+ 'symbolAlgo_40104': "缉",
+ 'symbolAlgo_4030301': "标",
+ 'symbolAlgo_4030302': "劝",
+ 'symbolAlgo_4030303': "疏",
+ 'symbolAlgo_40304': "警",
+ 'symbolAlgo_4030401': "警",
- //basic symbol
- 'polyLine':"折线",
- 'parallelogram':"平行四边形",
- 'circle':"圆",
- 'ellipse':"椭圆",
- 'annotation':"注记",
- 'regularPolygon':"正多边形",
- 'polygon':"多边形",
- 'bezier':"贝塞尔曲线",
- 'closedBesselCurve':"闭合贝塞尔曲线",
- 'kidney':"集结地",
- 'brace':"大括号",
- 'trapezoid':"梯形",
- 'rectangle':"矩形",
- 'chord':"弓形",
- 'sector':"扇形",
- 'arc':"弧线",
- 'parallel':"平行线",
- 'annoframe':"注记指示框",
- 'tooltipBoxM':"多角标注框",
- 'runway':"跑道线",
- 'curveEight':"八字形",
- 'arrowLine':"箭头线",
- 'pathText':"沿线注记",
- 'concentricCircle':"同心圆",
- 'combinedCircle':"组合圆",
- 'freeCurve':"自由线",
- 'nodeChain':"节点链",
- 'lineMarking':"线型标注",
- 'symbolTextBox':"标注框",
+ //basic symbol
+ 'polyLine': "折线",
+ 'parallelogram': "平行四边形",
+ 'circle': "圆",
+ 'ellipse': "椭圆",
+ 'annotation': "注记",
+ 'regularPolygon': "正多边形",
+ 'polygon': "多边形",
+ 'bezier': "贝塞尔曲线",
+ 'closedBesselCurve': "闭合贝塞尔曲线",
+ 'kidney': "集结地",
+ 'brace': "大括号",
+ 'trapezoid': "梯形",
+ 'rectangle': "矩形",
+ 'chord': "弓形",
+ 'sector': "扇形",
+ 'arc': "弧线",
+ 'parallel': "平行线",
+ 'annoframe': "注记指示框",
+ 'tooltipBoxM': "多角标注框",
+ 'runway': "跑道线",
+ 'curveEight': "八字形",
+ 'arrowLine': "箭头线",
+ 'pathText': "沿线注记",
+ 'concentricCircle': "同心圆",
+ 'combinedCircle': "组合圆",
+ 'freeCurve': "自由线",
+ 'nodeChain': "节点链",
+ 'lineMarking': "线型标注",
+ 'symbolTextBox': "标注框",
- 'parallelFlatArrow':"平行平耳箭头",
- 'multipleArrow':"多箭头",
- 'trapezoidalFlatArrow':"梯形平耳箭头",
- 'besselPointArrow':"贝塞尔尖耳箭头",
- 'besselArrow':"普通贝塞尔箭头",
- 'doubleArrow':"钳击箭头",
- 'brokenSpaceTriangleArrow':"折线空三角箭头",
- 'besselDovetailArrow':"贝塞尔燕尾箭头",
- 'ordinaryLineArrow':"普通折线箭头",
- 'besselPointedEarsTailArrow':"贝塞尔尖耳燕尾箭头",
- 'besselTipArrow':"贝塞尔尖耳单点箭头",
- 'besselArrowNoGraph':"普通贝塞尔箭头(不随图)",
- 'brokenSpaceTriangleArrowNoGraph':"折线空三角箭头(不随图)",
- 'besselPointedEarsTailArrowNoGraph':"贝塞尔尖耳燕尾箭头(不随图)",
- 'ordinaryLineArrowNoGraph':"普通折线箭头(不随图)",
- 'combianationArrow':"组合箭头",
- 'symbolAlgo_311':'进攻方向',
- 'symbolAlgo_317':'钳击',
+ 'parallelFlatArrow': "平行平耳箭头",
+ 'multipleArrow': "多箭头",
+ 'trapezoidalFlatArrow': "梯形平耳箭头",
+ 'besselPointArrow': "贝塞尔尖耳箭头",
+ 'besselArrow': "普通贝塞尔箭头",
+ 'doubleArrow': "钳击箭头",
+ 'brokenSpaceTriangleArrow': "折线空三角箭头",
+ 'besselDovetailArrow': "贝塞尔燕尾箭头",
+ 'ordinaryLineArrow': "普通折线箭头",
+ 'besselPointedEarsTailArrow': "贝塞尔尖耳燕尾箭头",
+ 'besselTipArrow': "贝塞尔尖耳单点箭头",
+ 'besselArrowNoGraph': "普通贝塞尔箭头(不随图)",
+ 'brokenSpaceTriangleArrowNoGraph': "折线空三角箭头(不随图)",
+ 'besselPointedEarsTailArrowNoGraph': "贝塞尔尖耳燕尾箭头(不随图)",
+ 'ordinaryLineArrowNoGraph': "普通折线箭头(不随图)",
+ 'combianationArrow': "组合箭头",
+ 'symbolAlgo_311': '进攻方向',
+ 'symbolAlgo_317': '钳击',
- //new obj
- 'airDeployment':"空军兵力部署",
- 'airRoute':"空军航线",
- 'arcRegion':"扇形区域",
- 'flagGroup':"多旗",
- 'lineRelation':"对象间连线",
- 'polygonRegion':"多边形区域管理",
- 'navyRoute':"海军航线",
- 'missileRoute':"导弹航线",
- 'navyDeployment':"海军兵力部署",
- 'satelliteTimeWindows':"卫星时间窗",
- 'satellite':"卫星",
- 'symbolText':"对象标注",
- 'symbolText1':"对象标注(带指示线)",
- 'interferenceBeam':"干扰波束",
- 'groupObject':"组合对象",
+ //new obj
+ 'airDeployment': "空军兵力部署",
+ 'airRoute': "空军航线",
+ 'arcRegion': "扇形区域",
+ 'flagGroup': "多旗",
+ 'lineRelation': "对象间连线",
+ 'polygonRegion': "多边形区域管理",
+ 'navyRoute': "海军航线",
+ 'missileRoute': "导弹航线",
+ 'navyDeployment': "海军兵力部署",
+ 'satelliteTimeWindows': "卫星时间窗",
+ 'satellite': "卫星",
+ 'symbolText': "对象标注",
+ 'symbolText1': "对象标注(带指示线)",
+ 'interferenceBeam': "干扰波束",
+ 'groupObject': "组合对象",
- //routeNodeTypeName
- 'RENDEZVOUS': "会合点",
- 'EXPANDING': "展开点",
- 'VOLLEY': "齐射点",
- 'STANDBY': "待机点",
- 'SUPPLY': "补给点",
- 'TAKEOFF': "起飞点",
- 'INITIAL': "初始点",
- 'VISUALINITAL': "可视初始点",
- 'LANCH': "发射点",
- 'TURNING': "转弯点",
- 'AIMING': "瞄准点",
- 'COMMONROUTE': "普通航路点",
- 'WEAPONLAUNCH': "武器发射点",
- 'TARGET': "目标点",
- 'ATTACK':"攻击点",
- 'SUPPRESS':"压制点",
- 'EIGHTSPIRAL':"八字盘旋点",
- 'HAPPYVALLEY':"跑马圈点",
+ //routeNodeTypeName
+ 'RENDEZVOUS': "会合点",
+ 'EXPANDING': "展开点",
+ 'VOLLEY': "齐射点",
+ 'STANDBY': "待机点",
+ 'SUPPLY': "补给点",
+ 'TAKEOFF': "起飞点",
+ 'INITIAL': "初始点",
+ 'VISUALINITAL': "可视初始点",
+ 'LANCH': "发射点",
+ 'TURNING': "转弯点",
+ 'AIMING': "瞄准点",
+ 'COMMONROUTE': "普通航路点",
+ 'WEAPONLAUNCH': "武器发射点",
+ 'TARGET': "目标点",
+ 'ATTACK': "攻击点",
+ 'SUPPRESS': "压制点",
+ 'EIGHTSPIRAL': "八字盘旋点",
+ 'HAPPYVALLEY': "跑马圈点",
- 'LITERATESIGN':"标牌文字",
+ 'LITERATESIGN': "标牌文字",
- 'undoStackOverflow': '撤销的栈溢出',
+ 'undoStackOverflow': '撤销的栈溢出',
- //Mapviewer
- 'noContent':'无内容',
- 'lableTitle': '_标签图层'
+ //Mapviewer
+ 'noContent': '无内容',
+ 'lableTitle': '_标签图层'
-};
+ };
-/***/ }),
+ /***/
+}),
/* 1 */
-/***/ (function(module, exports) {
+/***/ (function (module, exports) {
/*!
*
@@ -332,11 +341,12 @@
* license: undefined
* version: v9.1.0
*
- */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=225)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30800),e}();SuperMap.Plot.AlgoSymbol4021102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30800),e}();SuperMap.Plot.AlgoSymbol4021101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020404=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=.3*this.getSubSymbolScaleValue();e>.05&&(e=.05),this.scaleValues[0]=e}for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=Math.abs(l*this.scaleValues[0]),i=this.getDashLinePts(t,o),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},a=1,r=0;r<i.length;r++){var s=i[r];if(0==a%2)if(2===s.length&&r!==i.length-1){var p=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*o,s[0],p),c=null;c=this.scaleValues[0]>0?u.pntLeft:u.pntRight,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,s[0],s[1]],n)}else a--;i[r].length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),a++}var P=180*SuperMap.Plot.PlottingUtil.radian(t[0],t[1])/Math.PI;this.scaleValues[0]>0?P+=90:P-=90;var S=SuperMap.Plot.PlottingUtil.circlePoint(t[0],2*o,2*o,P);this.addScalePoint(S),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var c=r.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=.5*SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;i>=.05&&(i=.05),SuperMap.Plot.PlottingUtil.isRight(e,l[0],l[1])&&(i=-i),this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol6020404=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020403=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=1.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(1.05));var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);2===this.controlPoints.length&&t.splice(1,0,new SuperMap.Geometry.Point(t[0].x+e,t[0].y));var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=SuperMap.Plot.PlottingUtil.distance(l,o),a=n*this.scaleValues[0],r=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI%360,s=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI%360;r>s&&(s+=360);var p=(s-r)/50,u=this.getArcPts(t[0],n,r,s,p),c=this.getArcPts(t[0],a,r,s,p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,s)),this.addScalePoint(new SuperMap.Geometry.Point(c[c.length-1].x,c[c.length-1].y),0),this.finish()}}},{key:"getArcPts",value:function(t,e,l,o,i){void 0!==i&&null!==i||(i=1);for(var n=[],a=l;a<o;a+=i){var r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,a);n.push(r)}var s=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,o);return n.push(s),n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),i=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;i>=1.01&&(this.scaleValues[0]=i)}}}]),e}();SuperMap.Plot.AlgoSymbol6020403=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4022102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3],r=o*i,s=new SuperMap.Geometry.Point(l.x+o*n,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,r,0);var p=new SuperMap.Geometry.Point(s.x+r,s.y+r/2),u=new SuperMap.Geometry.Point(s.x+r,s.y-r/2),c=.3*r,P=SuperMap.Plot.PlottingUtil.radian(u,p)*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,P+157.5),h=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,P+202.5),y=new SuperMap.Geometry.Point((S.x+h.x)/2,(S.y+h.y)/2),f=[];f.push(u),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,y,h,p],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(s);var g=r,M=SuperMap.Plot.PlottingUtil.circlePoint(s,g,g,90);this.addScalePoint(M),this.finish(),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol4022102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4022101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3],r=o*i,s=new SuperMap.Geometry.Point(l.x+o*n,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,r,0);var p=new SuperMap.Geometry.Point(s.x+r,s.y+r/2),u=new SuperMap.Geometry.Point(s.x+r,s.y-r/2),c=.3*r,P=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.circlePoint(u,c,c,P+157.5),h=SuperMap.Plot.PlottingUtil.circlePoint(u,c,c,P+202.5),y=new SuperMap.Geometry.Point((S.x+h.x)/2,(S.y+h.y)/2),f=[];f.push(p),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,y,h,u],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(s);var g=r,M=SuperMap.Plot.PlottingUtil.circlePoint(s,g,g,90);this.addScalePoint(M),this.finish(),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol4022101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4022100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),e}();SuperMap.Plot.AlgoSymbol4022100=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020402=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30102),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.index,p=r.pt,u=new SuperMap.Geometry.Point(o[s].x,o[s].y),c=new SuperMap.Geometry.Point(o[s+1].x,o[s+1].y),P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,a/2,a/2,P+n),h=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S,h]);var y=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(S,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var m=.4*a*this.scaleValues[5],d=.4*a*this.scaleValues[6],v=new SuperMap.Geometry.Point(0,-.9*(m-.25*d)),O=new SuperMap.Geometry.Point(0,.9*(m-.25*d)),U=SuperMap.Plot.PlottingUtil.coordinateTrans(h,v,y),w=SuperMap.Plot.PlottingUtil.coordinateTrans(h,O,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[U,w]);var L=new SuperMap.Geometry.Point(0,-m),V=SuperMap.Plot.PlottingUtil.coordinateTrans(h,L,y),_=new SuperMap.Geometry.Point(.5*d,-.25*d),T=new SuperMap.Geometry.Point(-.25*d,-.25*d),A=new SuperMap.Geometry.Point(-.5*d,.25*d),E=new SuperMap.Geometry.Point(.5*d,.25*d),x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,_,y),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(V,T,y),j=SuperMap.Plot.PlottingUtil.coordinateTrans(V,A,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(V,E,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[x,Y,j,C,x]);var I=new SuperMap.Geometry.Point(0,m),G=SuperMap.Plot.PlottingUtil.coordinateTrans(h,I,y),B=new SuperMap.Geometry.Point(0,.25*d),R=new SuperMap.Geometry.Point(.5*d,0),N=new SuperMap.Geometry.Point(0,-.25*d),D=new SuperMap.Geometry.Point(-.5*d,0),k=SuperMap.Plot.PlottingUtil.coordinateTrans(G,B,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(G,R,y),F=SuperMap.Plot.PlottingUtil.coordinateTrans(G,N,y),K=SuperMap.Plot.PlottingUtil.coordinateTrans(G,D,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[k,z,F,K,k]),this.addScalePoint(p,0);var q=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n);this.addScalePoint(q,1);var W=new SuperMap.Geometry.Point(0,-m),J=SuperMap.Plot.PlottingUtil.coordinateTrans(h,W,y);this.addScalePoint(J,2);var Z=new SuperMap.Geometry.Point(-.5*d,0),H=SuperMap.Plot.PlottingUtil.coordinateTrans(G,Z,y);this.addScalePoint(H,3),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol4020402=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=new SuperMap.Geometry.Point(s.x,s.y),c=new SuperMap.Geometry.Point(o[p].x,o[p].y),P=new SuperMap.Geometry.Point(o[p+1].x,o[p+1].y),S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,S+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,h]);var y=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var m=new SuperMap.Geometry.Point(.6*a,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,y),v=.4*a*this.scaleValues[5],O=.4*a*this.scaleValues[6],U=new SuperMap.Geometry.Point(0,-.9*(v-.25*O)),w=new SuperMap.Geometry.Point(0,.9*(v-.25*O)),L=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,y),V=SuperMap.Plot.PlottingUtil.coordinateTrans(d,w,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[L,V]);var _=new SuperMap.Geometry.Point(0,v),T=SuperMap.Plot.PlottingUtil.coordinateTrans(d,_,y),A=new SuperMap.Geometry.Point(.5*O,-.25*O),E=new SuperMap.Geometry.Point(-.5*O,-.25*O),x=new SuperMap.Geometry.Point(-.5*O,.25*O),Y=new SuperMap.Geometry.Point(.25*O,.25*O),j=new SuperMap.Geometry.Point(.5*O,0),C=SuperMap.Plot.PlottingUtil.coordinateTrans(T,A,y+180),I=SuperMap.Plot.PlottingUtil.coordinateTrans(T,E,y+180),G=SuperMap.Plot.PlottingUtil.coordinateTrans(T,x,y+180),B=SuperMap.Plot.PlottingUtil.coordinateTrans(T,Y,y+180),R=SuperMap.Plot.PlottingUtil.coordinateTrans(T,j,y+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[C,I,G,B,C]);var N=new SuperMap.Geometry.Point(0,-v),D=SuperMap.Plot.PlottingUtil.coordinateTrans(d,N,y),k=SuperMap.Plot.PlottingUtil.coordinateTrans(D,A,y+180),z=SuperMap.Plot.PlottingUtil.coordinateTrans(D,E,y+180),F=SuperMap.Plot.PlottingUtil.coordinateTrans(D,x,y+180),K=SuperMap.Plot.PlottingUtil.coordinateTrans(D,Y,y+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[k,z,F,K,k]),this.addScalePoint(s,0),this.addScalePoint(h,1);var q=new SuperMap.Geometry.Point(0,-v),W=SuperMap.Plot.PlottingUtil.coordinateTrans(d,q,y);this.addScalePoint(W,2),this.addScalePoint(R,3),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol4020401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.14),l.scaleValues.push(.1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(Math.PI/2),this.scaleValues.push(.069485),this.scaleValues.push(.14),this.scaleValues.push(.1),this.scaleValues.push(.1));var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=1.5*o,this.scaleValues[4]=.5*o,this.scaleValues[5]=.5*o}var i=l*this.scaleValues[4],n=this.scaleValues[0]-this.scaleValues[3];n<0&&(n=0);var a=this.scaleValues[0]+this.scaleValues[3];a>1&&(a=1);var r=this.getLinePts(e,this.scaleValues[4],n),s=this.getLinePts(e,this.scaleValues[4],a),p=new SuperMap.Geometry.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),u=SuperMap.Plot.PlottingUtil.radian(r.startPt,r.endPt)*SuperMap.Plot.PlottingUtil.RTOD;this.createSubSymbol1(p,i,u);var c=new SuperMap.Geometry.Point((s.startPt.x+s.endPt.x)/2,(s.startPt.y+s.endPt.y)/2),P=SuperMap.Plot.PlottingUtil.radian(s.startPt,s.endPt)*SuperMap.Plot.PlottingUtil.RTOD;this.createSubSymbol2(c,i,P);for(var S=[],h=[],y=[],f=0;f<=r.startIndex;f++)S.push(e[f]);if(S.push(r.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),r.endIndex<=s.startIndex){h.push(r.endPt);for(var g=r.endIndex+1;g<=s.startIndex;g++)h.push(e[g]);h.push(s.startPt),2===e.length&&SuperMap.Plot.PlottingUtil.distance(e[0],r.endPt)<=SuperMap.Plot.PlottingUtil.distance(e[0],s.startPt)&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),e.length>2&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}y.push(s.endPt);for(var M=s.endIndex+1;M<e.length;M++)y.push(e[M]);this.addArrow(y,this.scaleValues[5]);var b=l*this.scaleValues[0],m=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,d=l*this.scaleValues[2],v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,b);if(-1!==v.index){var O=v.pt,U=new SuperMap.Geometry.Point(e[v.index].x,e[v.index].y),w=new SuperMap.Geometry.Point(e[v.index+1].x,e[v.index+1].y),L=SuperMap.Plot.PlottingUtil.radian(U,w)*SuperMap.Plot.PlottingUtil.RTOD,V=SuperMap.Plot.PlottingUtil.circlePoint(O,d,d,m+L-180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,V]);var _=SuperMap.Plot.PlottingUtil.radian(O,V)*SuperMap.Plot.PlottingUtil.RTOD,T=new SuperMap.Geometry.Point(-.2*d,.05*d),A=new SuperMap.Geometry.Point(-.2*d,-.05*d),E=SuperMap.Plot.PlottingUtil.coordinateTrans(V,T,_),x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,A,_);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[V,E,x],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addScalePoint(v.pt,0),this.addScalePoint(V,1),this.addScalePoint(p,2),this.addScalePoint(r.startPt,3),this.finish()}}}},{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var a=SuperMap.Plot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(a)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t,l=[];return l.push(new SuperMap.Geometry.Point(0,2*e)),l.push(new SuperMap.Geometry.Point(-e,0)),l.push(new SuperMap.Geometry.Point(0,-2*e)),l.push(new SuperMap.Geometry.Point(e,0)),l}},{key:"getSubSymbolPts1",value:function(t){var e=t,l=[];return l.push(new SuperMap.Geometry.Point(e,2*e)),l.push(new SuperMap.Geometry.Point(-e,2*e)),l.push(new SuperMap.Geometry.Point(-e,-2*e)),l.push(new SuperMap.Geometry.Point(e,-e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var y=0;y<o.length-1;y++)(r=[]).push(o[y]),r.push(o[y+1]),s=SuperMap.Plot.PlottingUtil.projectPoint(e,o[y],o[y+1]),-1!==(p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(s,r)).index&&(u=SuperMap.Plot.PlottingUtil.distance(e,s),-1==i?(i=y,a=s,n=u):n>u&&(i=y,a=s,n=u));if(-1==i||i>o.length-1)return;c=0;for(var f=0;f<i;f++)c+=SuperMap.Plot.PlottingUtil.distance(o[f],o[f+1]);if((c+=SuperMap.Plot.PlottingUtil.distance(o[i],a))<0||c>h)return;var g=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[0],o),M=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[3],o),b=0;g.index===M.index&&(b=SuperMap.Plot.PlottingUtil.distance(this.scalePoints[0],this.scalePoints[3]));for(var m=M.index;m<g.index;m++)b+=SuperMap.Plot.PlottingUtil.distance(o[m],o[m+1]);c<b+.5?c=b+.5:c>h-b-.5&&(c=h-b-.5),this.scaleValues[0]=c/h}else if(1===t){var d=h*this.scaleValues[0],v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,d);if(-1===v.index)return;var O=o[v.index],U=o[v.index+1],w=SuperMap.Plot.PlottingUtil.radian(O,U),L=SuperMap.Plot.PlottingUtil.radian(v.pt,e);this.scaleValues[1]=L-w-Math.PI;var V=SuperMap.Plot.PlottingUtil.distance(v.pt,e);this.scaleValues[2]=V/h}else if(2===t){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var _=0;_<o.length-1;_++)(r=[]).push(o[_]),r.push(o[_+1]),s=SuperMap.Plot.PlottingUtil.projectPoint(e,o[_],o[_+1]),-1!==(p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(s,r)).index&&(u=SuperMap.Plot.PlottingUtil.distance(e,s),-1==i?(i=_,a=s,n=u):n>u&&(i=_,a=s,n=u));if(-1!==i&&i<=o.length-1){c=0;for(var T=0;T<i;T++)c+=SuperMap.Plot.PlottingUtil.distance(o[T],o[T+1]);c+=SuperMap.Plot.PlottingUtil.distance(o[i],a);var A=this.getLinePts(o,this.scaleValues[4],5/14),E=SuperMap.Plot.PlottingUtil.distance(A.startPt,A.endPt)/3*2/h;if(c>0&&c<h){var x=c/h;x<E&&(x=E),x>1-E&&(x=1-E),this.scaleValues[3]=Math.abs(x-this.scaleValues[0])}}}else if(3===t)if(this.scaleValues[0]>.5){var Y=this.scaleValues[0]+this.scaleValues[3],j=h*(P=this.scaleValues[0]-this.scaleValues[3]),C=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,j);-1!==C.index&&((S=SuperMap.Plot.PlottingUtil.distance(C.pt,e)/h)>1-Y&&(S=1-Y),this.scaleValues[4]=S)}else{var I=h*(P=this.scaleValues[0]-this.scaleValues[3]);-1!==(p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,I)).index&&((S=SuperMap.Plot.PlottingUtil.distance(p.pt,e)/h)>P&&(S=P),this.scaleValues[4]=S)}}}}]),e}();SuperMap.Plot.AlgoSymbol4020303=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4011101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o,this.scaleValues[3]=i/o}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=[],f=.15*SuperMap.Plot.PlottingUtil.distance(S,h),g=SuperMap.Plot.PlottingUtil.linePnt(S,h,f),M=SuperMap.Plot.PlottingUtil.linePnt(h,S,f);y.push(g),y.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var b=o*n,m=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,m+90);var d=o*r,v=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,d,v+90),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*b,.5*b,m);this.addScalePoint(O),this.addScalePoint(h);var U=SuperMap.Plot.PlottingUtil.circlePoint(h,.5*d,.5*d,v);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=2*SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=2*SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol4011101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4011100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o,this.scaleValues[3]=i/o}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=[],f=.15*SuperMap.Plot.PlottingUtil.distance(S,h),g=SuperMap.Plot.PlottingUtil.linePnt(S,h,f),M=SuperMap.Plot.PlottingUtil.linePnt(h,S,f);y.push(g),y.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var b=o*n,m=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,m-90);var d=o*r,v=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,d,v-90),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*b,.5*b,m);this.addScalePoint(O),this.addScalePoint(h);var U=SuperMap.Plot.PlottingUtil.circlePoint(h,.5*d,.5*d,v);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=2*SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=2*SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol4011100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4010905=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23901),e}();SuperMap.Plot.AlgoSymbol4010905=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4010801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol4010800),e}();SuperMap.Plot.AlgoSymbol4010801=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4010800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l,o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=(l=1.5*this.getDefaultSubSymbolSize())/i;n>.2&&(n=.2),this.scaleValues[0]=n}var a=this.scaleValues[0],r=this.scaleValues[2],s=this.scaleValues[3];l=i*a;var p=new SuperMap.Geometry.Point(o.x+i*r,o.y+i*s);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,l,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000ff",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000ff",this.components[u].style.opacity=1;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.addScalePoint(p);var c=l,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol4010800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3032000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23600),e}();SuperMap.Plot.AlgoSymbol3032000=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3020901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(2==t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI,a=SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n+60);e.push(t[0]),e.push(o),e.push(a),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)e.push(t[r])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),p=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var u=this.scaleValues[0],c=this.scaleValues[1],P=this.scaleValues[2],S=new SuperMap.Geometry.Point(s.x+p*u,s.y+p*c),h=p*P;0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,h,0),this.addScalePoint(S.clone());var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*h,.5*h,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];if(2==l.length){var i=new SuperMap.Geometry.Point(l[0].x,l[0].y),n=new SuperMap.Geometry.Point(l[1].x,l[1].y),a=SuperMap.Plot.PlottingUtil.distance(i,n),r=180*SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(i,a,a,r+60);o.push(l[0]),o.push(n),o.push(s),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var p=0;p<l.length;p++)o.push(l[p])}var u=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),c=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)this.scaleValues[0]=(e.x-u.x)/c,this.scaleValues[1]=(e.y-u.y)/c;else if(1===t){var P=new SuperMap.Geometry.Point(u.x+c*this.scaleValues[0],u.y+c*this.scaleValues[1]),S=2*SuperMap.Plot.PlottingUtil.distance(e,P)/c;S<.5&&(this.scaleValues[2]=S)}}}}]),e}();SuperMap.Plot.AlgoSymbol3020901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="协",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="出",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020402=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol6020400),o(e,[{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMap.Geometry.Point(-t/2,0)),l.push(new SuperMap.Geometry.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMap.Geometry.Point(0,0)),o.push(new SuperMap.Geometry.Point(0,t/2)),e.push(o),e}}]),e}();SuperMap.Plot.AlgoSymbol6020402=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020401=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol6020400),o(e,[{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMap.Geometry.Point(-t/2,0)),l.push(new SuperMap.Geometry.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMap.Geometry.Point(0,-t/2)),o.push(new SuperMap.Geometry.Point(0,t/2)),e.push(o),e}}]),e}();SuperMap.Plot.AlgoSymbol6020401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.05));var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);2===this.controlPoints.length&&t.splice(1,0,new SuperMap.Geometry.Point(t[0].x+e,t[0].y));var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=e,a=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI%360,r=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI%360;if(a>r&&(r+=360),!this.isEdit){var s=.5*this.getDefaultSubSymbolSize()/n;s>.1&&(s=.1),this.scaleValues[0]=s}var p=n*this.scaleValues[0],u=180*Math.atan(.5*p/n)/Math.PI,c=(r-a)/3,P=(r-a)/50,S=this.getArcPts(t[0],n,a,a+c-1.8*u,P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=this.getArcPts(t[0],n,a+c+1.8*u,a+2*c-1.8*u,P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=this.getArcPts(t[0],n,a+2*c+1.8*u,r,P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=a+c+90,g=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,a+c);this.createSubSymbol(g,p,f);var M=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,a+2*c),b=a+2*c+90;this.createSubSymbol(M,p,b);var m=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e+p,e+p,a+c);this.addScalePoint(m),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,r)),this.finish()}}},{key:"getArcPts",value:function(t,e,l,o,i){void 0!==i&&null!==i||(i=1);for(var n=[],a=l;a<o;a+=i){var r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,a);n.push(r)}var s=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,o);return n.push(s),n}},{key:"createSubSymbol",value:function(t,e,l){for(var o=this.getSubSymbolPts(e),i=0;i<o.length;i++){for(var n=o[i],a=[],r=0;r<n.length;r++){var s=SuperMap.Plot.PlottingUtil.coordinateTrans(t,n[r],l);a.push(s)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}},{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMap.Geometry.Point(-t/2,0)),l.push(new SuperMap.Geometry.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMap.Geometry.Point(0,-t/2)),o.push(new SuperMap.Geometry.Point(0,0)),e.push(o),e}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);2===this.controlPoints.length&&l.splice(1,0,new SuperMap.Geometry.Point(l[0].x+o,l[0].y));var i=new SuperMap.Geometry.Point(l[0].x,l[0].y),n=new SuperMap.Geometry.Point(l[1].x,l[1].y),a=new SuperMap.Geometry.Point(l[2].x,l[2].y),r=SuperMap.Plot.PlottingUtil.distance(i,n),s=180*SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI%360,p=180*SuperMap.Plot.PlottingUtil.radian(i,a)/Math.PI%360;s>p&&(p+=360);var u=(p-s)/3,c=SuperMap.Plot.PlottingUtil.circlePoint(l[0],o,o,s+u),P=SuperMap.Plot.PlottingUtil.distance(c,e)/r;P<=.6&&(this.scaleValues[0]=P)}}}]),e}();SuperMap.Plot.AlgoSymbol6020400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010302=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="冲",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="调",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010108=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010107),e}();SuperMap.Plot.AlgoSymbol3010108=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010107=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=this.getLinePts(e,this.scaleValues[0]),i=new SuperMap.Geometry.Point((o.startPt.x+o.endPt.x)/2,(o.startPt.y+o.endPt.y)/2),n=180*SuperMap.Plot.PlottingUtil.radian(o.startPt,o.endPt)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(o.startPt,o.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],i,a,n-90);for(var r=[],s=[],p=0;p<=o.startIndex;p++)r.push(e[p]);if(r.push(o.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),o.endIndex<=e.length){s.push(o.endPt);for(var u=o.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addArrow(s,this.scaleValues[1])}var c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),P=SuperMap.Plot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,n+90);this.addScalePoint(P,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3010107=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010106=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.8*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.3*l);if(-1!==o.index){var i=o.pt,n=o.index,a=l*this.scaleValues[0]*.5,r=SuperMap.Plot.PlottingUtil.radian(i,e[n+1])*SuperMap.Plot.PlottingUtil.RTOD,s=SuperMap.Plot.PlottingUtil.circlePoint(i,a,a,r+90),p=SuperMap.Plot.PlottingUtil.circlePoint(i,a,a,r-90),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,s),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c.pntLeft,c.pntRight]);var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.6*l);if(-1!==P.index){var S=P.pt,h=P.index,y=SuperMap.Plot.PlottingUtil.radian(S,e[h+1])*SuperMap.Plot.PlottingUtil.RTOD,f=SuperMap.Plot.PlottingUtil.circlePoint(S,a,a,y+90),g=SuperMap.Plot.PlottingUtil.circlePoint(S,a,a,y-90),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,S,f),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,S,g);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b.pntLeft,b.pntRight]),this.addArrow(e,this.scaleValues[1]),this.addScalePoint(g,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*i,o);if(!n.bfind)return;var a=2*SuperMap.Plot.PlottingUtil.distance(e,n.pts);this.scaleValues[0]=a/i}}}]),e}();SuperMap.Plot.AlgoSymbol3010106=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010105=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010102),o(e,[{key:"getSubSymbolPts",value:function(t){var e=t/4,l=[];l.push(new SuperMap.Geometry.Point(-2*e,-e)),l.push(new SuperMap.Geometry.Point(e,-e));for(var o=-90;o<=90;o+=5)l.push(SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(e,0),e,e,o));return l.push(new SuperMap.Geometry.Point(e,e)),l.push(new SuperMap.Geometry.Point(-2*e,e)),l}}]),e}();SuperMap.Plot.AlgoSymbol3010105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010104=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010102),o(e,[{key:"getSubSymbolPts",value:function(t){var e=t/4,l=[];return l.push(new SuperMap.Geometry.Point(2*e,0)),l.push(new SuperMap.Geometry.Point(0,e)),l.push(new SuperMap.Geometry.Point(-2*e,0)),l.push(new SuperMap.Geometry.Point(0,-e)),l.push(new SuperMap.Geometry.Point(-e,-e)),l.push(new SuperMap.Geometry.Point(e,-e)),l.push(new SuperMap.Geometry.Point(0,-e)),l}}]),e}();SuperMap.Plot.AlgoSymbol3010104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010102),o(e,[{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts2(e);this.createSubSymbol(t,e,l,o)}},{key:"getSubSymbolPts1",value:function(t){var e=t/4,l=[];return l.push(new SuperMap.Geometry.Point(-2*e,-e)),l.push(new SuperMap.Geometry.Point(2*e,-e)),l.push(new SuperMap.Geometry.Point(e,e)),l.push(new SuperMap.Geometry.Point(-2*e,e)),l}},{key:"getSubSymbolPts2",value:function(t){var e=t/4,l=[];return l.push(new SuperMap.Geometry.Point(-2*e,0)),l.push(new SuperMap.Geometry.Point(0,-e)),l.push(new SuperMap.Geometry.Point(2*e,0)),l.push(new SuperMap.Geometry.Point(0,e)),l}}]),e}();SuperMap.Plot.AlgoSymbol3010103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[0],i=this.getLinePts(l,this.scaleValues[0],5/14),n=this.getLinePts(l,this.scaleValues[0],9/14),a=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol1(a,o,r);var s=new SuperMap.Geometry.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),p=180*SuperMap.Plot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol2(s,o,p);var u=SuperMap.Plot.PlottingUtil.circlePoint(s,.5*o,.5*o,p+90);this.addScalePoint(u);for(var c=[],P=[],S=[],h=0;h<=i.startIndex;h++)c.push(l[h]);if(c.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),i.endIndex<=n.startIndex){P.push(i.endPt);for(var y=i.endIndex+1;y<=n.startIndex;y++)P.push(l[y]);P.push(n.startPt),2===l.length&&SuperMap.Plot.PlottingUtil.distance(l[0],i.endPt)<=SuperMap.Plot.PlottingUtil.distance(l[0],n.startPt)&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),l.length>2&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}S.push(n.endPt);for(var f=n.endIndex+1;f<l.length;f++)S.push(l[f]);this.addArrow(S,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var a=SuperMap.Plot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(a)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t/2,l=[];return l.push(new SuperMap.Geometry.Point(-2*e,0)),l.push(new SuperMap.Geometry.Point(0,-e)),l.push(new SuperMap.Geometry.Point(2*e,0)),l.push(new SuperMap.Geometry.Point(0,e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(9*i/14,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;a<=.3&&(this.scaleValues[0]=a)}}}]),e}();SuperMap.Plot.AlgoSymbol3010102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2890001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!==this.scaleValues.length&&(this.scaleValues=[.5,.05,180]);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var a=l*o,r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(-1!==r.index){for(var s=[],p=0;p<=r.index;p++)s.push(e[p]);var u,c,P,S,h=l*i,y=[];if(a-SuperMap.Plot.PlottingUtil.polylineDistance(s)>(h*=.5)){u=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[r.index],h),s.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),c=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[r.index+1],h),y.push(c);for(var f=e.length,g=r.index+1;g<f;++g)y.push(e[g])}else{for(var M=-1,b=s.length-1;b>=0;b--)if(P=new SuperMap.Geometry.Point(s[b].x,s[b].y),S=new SuperMap.Geometry.Point(r.pts.x,r.pts.y),SuperMap.Plot.PlottingUtil.distance(P,S)>h){M=b;break}if(-1===M)return;s.splice(M+1,s.length-1-M),u=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[M],h),s.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var m=-1,d=r.index;d<e.length;d++)if(P=new SuperMap.Geometry.Point(e[d].x,e[d].y),S=new SuperMap.Geometry.Point(r.pts.x,r.pts.y),SuperMap.Plot.PlottingUtil.distance(P,S)>h){m=d;break}if(-1===m)return;c=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[m],h),y.push(c);for(var v=m+1;v<e.length;++v)y.push(e[v])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var O=y[0],U=s[s.length-1],w=new SuperMap.Geometry.Point((O.x+U.x)/2,(O.y+U.y)/2);r.x=w.x,r.y=w.y;var L=h,V=new SuperMap.Geometry.Point(.5*L,L),_=new SuperMap.Geometry.Point(.5*L,-L),T=new SuperMap.Geometry.Point(-.5*L,-L),A=new SuperMap.Geometry.Point(-.5*L,L),E=[],x=SuperMap.Plot.PlottingUtil.coordinateTrans(w,V,n),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(w,_,n),j=SuperMap.Plot.PlottingUtil.coordinateTrans(w,T,n),C=SuperMap.Plot.PlottingUtil.coordinateTrans(w,A,n);E.push(x),E.push(Y),E.push(j),E.push(C),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,E);var I=new SuperMap.Geometry.Point(0,-2*L),G=new SuperMap.Geometry.Point(.15*L,-1.6*L),B=new SuperMap.Geometry.Point(-.15*L,-1.6*L),R=SuperMap.Plot.PlottingUtil.coordinateTrans(w,I,n),N=SuperMap.Plot.PlottingUtil.coordinateTrans(w,G,n),D=SuperMap.Plot.PlottingUtil.coordinateTrans(w,B,n),k=[];k.push(R),k.push(N),k.push(D);var z={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,k,z);var F=new SuperMap.Geometry.Point(0,-L),K=SuperMap.Plot.PlottingUtil.coordinateTrans(w,F,n);(k=[]).push(K),k.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,k),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],w,1.5*L,n+90);for(var q=.02*l,W=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(q,e[1],e[0]),J=.5*SuperMap.Plot.PlottingUtil.distance(e[0],W.pntLeft),Z=new SuperMap.Geometry.Point((e[0].x+W.pntLeft.x)/2,(e[0].y+W.pntLeft.y)/2),H=SuperMap.Plot.PlottingUtil.radian(e[1],e[0])*SuperMap.Plot.PlottingUtil.RTOD,Q=[],X=270+H;X<=360+H;X+=5)Q.push(SuperMap.Plot.PlottingUtil.circlePoint(Z,J,J,X));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Q),V=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(q,e[e.length-2],e[e.length-1]);for(var $=new SuperMap.Geometry.Point((e[e.length-1].x+V.pntRight.x)/2,(e[e.length-1].y+V.pntRight.y)/2),tt=SuperMap.Plot.PlottingUtil.radian(e[e.length-1],V.pntRight)*SuperMap.Plot.PlottingUtil.RTOD,et=[],lt=90+tt;lt<=180+tt;lt+=5)et.push(SuperMap.Plot.PlottingUtil.circlePoint($,J,J,lt));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,et),this.scalePoints=[],this.addScalePoint(w,0);var ot=new SuperMap.Geometry.Point(0,-2*h),it=SuperMap.Plot.PlottingUtil.coordinateTrans(w,ot,this.scaleValues[2]);this.addScalePoint(it,1),this.finish()}}}},{key:"GetSymbolPt",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!==this.scaleValues.length&&(this.scaleValues=[.5,.05,0]);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[0],i=this.scaleValues[1],n=l*o,a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,e);if(-1!==a.index){for(var r=[],s=0;s<=a.index;s++)r.push(e[s]);var p,u,c,P,S=l*i,h=[];if(n-SuperMap.Plot.PlottingUtil.polylineDistance(r)>(S*=.5)){p=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[a.index],S),r.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),u=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[a.index+1],S),h.push(u);for(var y=e.length,f=a.index+1;f<y;++f)h.push(e[f])}else{for(var g=-1,M=r.length-1;M>=0;M--)if(c=new SuperMap.Geometry.Point(r[M].x,r[M].y),P=new SuperMap.Geometry.Point(a.pts.x,a.pts.y),SuperMap.Plot.PlottingUtil.distance(c,P)>S){g=M;break}if(-1===g)return;r.splice(g+1,r.length-1-g),p=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[g],S),r.push(p);for(var b=-1,m=a.index;m<e.length;m++)if(c=new SuperMap.Geometry.Point(e[m].x,e[m].y),P=new SuperMap.Geometry.Point(a.pts.x,a.pts.y),SuperMap.Plot.PlottingUtil.distance(c,P)>S){b=m;break}if(-1===b)return;u=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[b],S),h.push(u);for(var d=b+1;d<e.length;++d)h.push(e[d])}var v=h[0],O=r[r.length-1];return new SuperMap.Geometry.Point((v.x+O.x)/2,(v.y+O.y)/2)}}}},{key:"computeScaleValues",value:function(t,e){if((0===t||1===t)&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){i=new SuperMap.Geometry.Point(e.x,e.y);for(var s=[],p=0;p<o.length;p++)s.push(o[p]);for(var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0),S=0;S<s.length-1;S++){var h=[];h.push(s[S]),h.push(s[S+1]);var y=SuperMap.Plot.PlottingUtil.projectPoint(i,s[S],s[S+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(y,h).index){var f=SuperMap.Plot.PlottingUtil.distance(i,y);-1===u?(u=S,P=y,c=f):c>f&&(u=S,P=y,c=f)}}if(-1===u||u>s.length-1)return;n=0;for(var g=0;g<u;g++){var M=new SuperMap.Geometry.Point(o[g].x,o[g].y),b=new SuperMap.Geometry.Point(o[g+1].x,o[g+1].y);n+=SuperMap.Plot.PlottingUtil.distance(M,b)}var m=new SuperMap.Geometry.Point(o[u].x,o[u].y);a=(n+=SuperMap.Plot.PlottingUtil.distance(m,P))/r;var d=.4-this.scaleValues[1]+.5,v=.5-(.4-this.scaleValues[1]);a>=d&&(a=d),a<=v&&(a=v),this.scaleValues[0]=a}else if(1===t){i=new SuperMap.Geometry.Point(e.x,e.y);var O=this.GetSymbolPt();a=(n=SuperMap.Plot.PlottingUtil.distance(i,O))/r;var U=this.scaleValues[0]<.4?this.scaleValues[0]:1-this.scaleValues[0];a>=U&&(a=U),this.scaleValues[1]=a;var w=SuperMap.Plot.PlottingUtil.radian(O,i)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=w-270}}}}]),e}();SuperMap.Plot.AlgoSymbol2890001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2350001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(0),l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(-.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o*.8,this.scaleValues[3]=i/o*.8}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=o*n,f=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,y,f);var g=o*r,M=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,g,M),this.addScalePoint(S);var b=SuperMap.Plot.PlottingUtil.circlePoint(S,y,y,f);this.addScalePoint(b),this.addScalePoint(h);var m=SuperMap.Plot.PlottingUtil.circlePoint(h,g,g,M);this.addScalePoint(m),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(o),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol2350001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=0,l.scaleValues[1]=0,l.scaleValues[2]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=0,this.scaleValues[1]=0,this.scaleValues[2]=.1),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,{fill:!1});var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),r=new SuperMap.Geometry.Point(a.x+1,a.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(a,r,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(!(0>=s.length)){var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=[],h=new SuperMap.Geometry.Point(a.x-n/2,c.y);h.x<=P.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var y=new SuperMap.Geometry.Point(a.x+n/2,P.y);y.x<=P.x&&y.x>=c.x&&((S=[]).push(P),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S)),this.scalePoints=[];var f=SuperMap.Plot.PlottingUtil.circlePoint(a,n/2,n/2,90);if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a))return this.addScalePoint(a,0),this.addScalePoint(f,1),a.x<c.x?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,a]):this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,a]),void this.finish();this.addScalePoint(a,0),this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0===SuperMap.Plot.PlottingUtil.getOutRectangleDis(l))return;var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t&&(o=(r.x-a.x)/n,this.scaleValues[0]=o,i=(r.y-a.y)/n,this.scaleValues[1]=i),1==t){o=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+o*n,a.y+i*n),p=2*SuperMap.Plot.PlottingUtil.distance(r,s)/n;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol44400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3];l.x=l.x+n*o,l.y=l.y+a*o;var r=o*i,s=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,90),p=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,210),u=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,330),c=[];c.push(s),c.push(p),c.push(u),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(s),this.addScalePoint(l),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0===t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1===t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol44300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=this.GetGoPts();if(!(t.length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(180));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2],r=l*i,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,c=u,P=n*l,S=new SuperMap.Geometry.Point(P,-.5*P),h=new SuperMap.Geometry.Point(P,.5*P),y=new SuperMap.Geometry.Point(-P,.5*P),f=new SuperMap.Geometry.Point(-P,-.5*P),g=SuperMap.Plot.PlottingUtil.coordinateTrans(c,S,a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(c,h,a),b=SuperMap.Plot.PlottingUtil.coordinateTrans(c,y,a),m=SuperMap.Plot.PlottingUtil.coordinateTrans(c,f,a),d=[];d.push(g),d.push(M),d.push(b),d.push(m),d.push(g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d);var v=new SuperMap.Geometry.Point(.5*P,-.2*P),O=new SuperMap.Geometry.Point(.7*P,.2*P),U=new SuperMap.Geometry.Point(.3*P,.2*P),w=SuperMap.Plot.PlottingUtil.coordinateTrans(c,v,a),L=SuperMap.Plot.PlottingUtil.coordinateTrans(c,U,a),V=SuperMap.Plot.PlottingUtil.coordinateTrans(c,O,a),_=[];_.push(w),_.push(L),_.push(V),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0});var T=new SuperMap.Geometry.Point(P,0),A=new SuperMap.Geometry.Point(2*P,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(c,T,a),x=SuperMap.Plot.PlottingUtil.coordinateTrans(c,A,a);(_=[]).push(E),_.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var Y=new SuperMap.Geometry.Point(2*P,.15*P),j=new SuperMap.Geometry.Point(2*P,-.15*P),C=new SuperMap.Geometry.Point(2.6*P,0),I=SuperMap.Plot.PlottingUtil.coordinateTrans(c,Y,a),G=SuperMap.Plot.PlottingUtil.coordinateTrans(c,j,a),B=SuperMap.Plot.PlottingUtil.coordinateTrans(c,C,a);(_=[]).push(I),_.push(G),_.push(B),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{fillLimit:!0,fill:!0});var R=[];R.push(I),R.push(B);var N,D=[],k=[];for(N=0;N<=p;N++)D.push(e[N]);for(D.push(c),k.push(c),N=p+1;N<e.length;N++)k.push(e[N]);var z,F,K=1.2*P;if(r>K){var q=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r-K,D);if(q.bfind){var W=q.pts,J=q.index;for(_=[],N=0;N<=J;N++)_.push(D[N]);_.push(W),z=SuperMap.Plot.PlottingUtil.radian(_[0],_[1])*SuperMap.Plot.PlottingUtil.RTOD,F=SuperMap.Plot.PlottingUtil.circlePoint(_[0],.1*P,.1*P,90+z),_.splice(0,0,F),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_)}}if(l-r>K){var Z=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(K,k);if(Z.bfind){var H=Z.pts,Q=Z.index;for((_=[]).push(H),N=Q+1;N<k.length;N++)_.push(k[N]);var X=_.length;z=SuperMap.Plot.PlottingUtil.radian(_[X-1],_[X-2])*SuperMap.Plot.PlottingUtil.RTOD,F=SuperMap.Plot.PlottingUtil.circlePoint(_[X-1],.1*P,.1*P,270+z),_.push(F),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_)}}this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(x),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0==t){for(var r=e.clone(),s=-1,p=0,u=0;u<o.length-1;u++){var c=[];c.push(o[u]),c.push(o[u+1]);var P=SuperMap.Plot.PlottingUtil.projectPoint(r,o[u],o[u+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,c).isOnPolyLine){var S=SuperMap.Plot.PlottingUtil.distance(r,P);-1==s?(s=u,p=S):p>S&&(s=u,p=S)}}if(-1==s)return SuperMap.Plot.PlottingUtil.distance(r,o[0])>SuperMap.Plot.PlottingUtil.distance(r,o[o.length-1])?void(s=o.length-1):void(s=0);if(i=0,0===s)i=SuperMap.Plot.PlottingUtil.distance(o[0],P);else for(var h=0;h<s;h++)i+=SuperMap.Plot.PlottingUtil.distance(o[h],o[h+1]);if(i<0||i>a)return;n=i/a,this.scaleValues[0]=n}else if(1==t){i=this.scaleValues[0]*a;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,o);if(!y.bfind)return;var f=y.pts;(n=.5*SuperMap.Plot.PlottingUtil.distance(f,e)/a)>.3&&(n=.3),this.scaleValues[1]=n;var g=SuperMap.Plot.PlottingUtil.radian(f,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=g}}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length<this.minEditPts?t:(t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),1==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length&&(t=[]),t)}}]),e}();SuperMap.Plot.AlgoSymbol44200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(a),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(n);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f);M.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var d=[],v=.06*o,O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,l,e),U=O.pntRight,w=O.pntLeft;d.push(U),d.push(w),v=.15*o;var L=new SuperMap.Geometry.Point(v,0),V=SuperMap.Plot.PlottingUtil.coordinateTrans(e,L,f);d.push(V),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(M[0]),this.addScalePoint(M[1]),this.addScalePoint(M[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol44100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol43500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=[];for(e=15;e<=75;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),o=[],e=105;e<=165;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),o=[],e=195;e<=255;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),o=[],e=285;e<=345;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i,n,a,r,s,p=.2*l,u=new SuperMap.Geometry.Point(t[0].x-p,t[0].y),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],u);i=c.pntRight,n=c.pntLeft,a=(c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*p,i,n)).pntLeft;var P=new SuperMap.Geometry.Point(i.x+2*p,i.y);r=(c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,i,P)).pntRight,s=c.pntLeft,(o=[]).push(a),o.push(n),o.push(i),o.push(s),o.push(r),o.push(i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol43500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.04),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){2==t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,{fill:!1});var e,l,o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),i=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue()),l=i*this.scaleValues[0];var n=i*this.scaleValues[0],a=n+l;e=new SuperMap.Geometry.Point(o.x,o.y+a);var r=[];r.push(e),r.push(new SuperMap.Geometry.Point(e.x+l,e.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,r);var s=new SuperMap.Geometry.Point(o.x,o.y+.8*n),p=new SuperMap.Geometry.Point(o.x-n,o.y-n),u=new SuperMap.Geometry.Point(o.x+n,o.y-n);(r=[]).push(s),r.push(p),r.push(u),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,{fillLimit:!0,fill:!0});var c=new SuperMap.Geometry.Point(o.x-.5*n,o.y-n),P=new SuperMap.Geometry.Point(p.x,p.y-2*l),S=new SuperMap.Geometry.Point(o.x+.5*n,o.y-n),h=new SuperMap.Geometry.Point(u.x,u.y-2*l);(r=[]).push(c),r.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),(r=[]).push(S),r.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol42700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(a),g.push(u),g.push(h),g.push(y),g.push(S),g.push(p),g.push(n);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f);M.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var d,v,O,U=!0;e.x>l.x&&(U=!1);var w,L=(O=.1*o)+(v=.12*o/2);d=1==U?(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntRight:(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntLeft;var V,_,T,A,E,x,Y,j,C=[];C.push(d),C.push(new SuperMap.Geometry.Point(d.x+v,d.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,C),1==U?(V=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntRight,A=w.pntLeft,_=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,V,A)).pntRight,T=w.pntLeft):(V=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntLeft,A=w.pntRight,_=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,V,A)).pntLeft,T=w.pntRight),(C=[]).push(V),C.push(_),C.push(T),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,{fillLimit:!0,fill:!0}),w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,_,T),j=1==U?w.pntRight:w.pntLeft,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,T,_),x=1==U?w.pntLeft:w.pntRight;var I=SuperMap.Plot.PlottingUtil.intersectLines(V,x,T,_);I.isIntersectLines&&(E=I.intersectPoint,(I=SuperMap.Plot.PlottingUtil.intersectLines(V,j,T,_)).isIntersectLines&&(Y=I.intersectPoint,(C=[]).push(E),C.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),(C=[]).push(Y),C.push(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),this.scalePoints=[],this.addScalePoint(M[0]),this.addScalePoint(M[1]),this.addScalePoint(M[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol42500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.5*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=[];s.push(new SuperMap.Geometry.Point(o.x+a,o.y+r)),s.push(new SuperMap.Geometry.Point(o.x+a+n,o.y+r)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,s,{fill:!1}),this.scalePoints=[],this.addScalePoint(new SuperMap.Geometry.Point(o.x+a+n,o.y+r)),this.addScalePoint(new SuperMap.Geometry.Point(o.x+a,o.y+r)),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol42400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*a,l.y+o*r);if(this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0){if(this.subSymbols[0].symbolData)for(var u in this.subSymbols[0].symbolData.innerCells)this.subSymbols[0].symbolData.innerCells[u].type===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL&&(this.subSymbols[0].symbolData.innerCells[u].type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.computeSubSymbol(this.subSymbols[0],p,s,0)}this.addScalePoint(p);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(a.x+r*i,a.y+r*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol42200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!=e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,270),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,30),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,150),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+i*o,a.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!==e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,210),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,330),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+i*o,a.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(r.x+i*e,r.y+n*e),p=a*e,u=new SuperMap.Geometry.Point(s.x,s.y),c=new SuperMap.Geometry.Point(s.x-p,s.y-p),P=new SuperMap.Geometry.Point(s.x+p,s.y-p),S=new SuperMap.Geometry.Point(s.x-p,s.y+p),h=new SuperMap.Geometry.Point(s.x+p,s.y+p),y=[];y.push(u),y.push(c),y.push(P),y.push(u),y.push(S),y.push(h),y.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var f=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+i*o,a.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41100=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.1*e,t[0],t[1]),o=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.2*e,t[0],t[1]),i=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),n=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.8*e,t[0],t[1]),a=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.9*e,t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],l]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[o,n]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,t[1]]);var r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04*e,t[0],t[1]),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04*e,t[1],t[0]),p=r.pntLeft,u=s.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],u]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[1],p]);var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.42*e,t[1],i),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.48*e,t[1],i),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.6*e,t[1],i),h=c.pntRight,y=P.pntRight,f=S.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i,h]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[y,f]);var g=SuperMap.Plot.PlottingUtil.polylineDistance([y,f]),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*g,y,f).pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f,M]),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol41100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40900=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[],l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMap.Plot.PlottingUtil.clearSamePts(e);var n=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(this.getSubSymbolScaleValue())),!(e.length<=0)){var a;a=2==t.length?0:t.length-1;var r=n*this.scaleValues[4*a],s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,c=l*this.scaleValues[4*a+1],P=r-c,S=r+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[u,g]);var b=l*this.scaleValues[4*a+1]/1.667;if(!(f.length<2)){var m=f[0],d=f[1],v=SuperMap.Plot.PlottingUtil.radian(m,d)*SuperMap.Plot.PlottingUtil.RTOD,O=SuperMap.Plot.PlottingUtil.circlePoint(m,b,b,v+90),U=SuperMap.Plot.PlottingUtil.circlePoint(m,b,b,v+270),w=[];if(w.push(O),w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w),!(M.length<2)){var L=M[M.length-1],V=M[M.length-2],_=SuperMap.Plot.PlottingUtil.radian(L,V)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.PlottingUtil.circlePoint(L,b,b,_+90),A=SuperMap.Plot.PlottingUtil.circlePoint(L,b,b,_+270);(w=[]).push(T),w.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w),this.addScalePoint(u),this.addScalePoint(O),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol40900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.2*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+a,o.y+r),p=[];p.push(s),p.push(new SuperMap.Geometry.Point(s.x+n,s.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var u=18*n,c=new SuperMap.Geometry.Point(s.x+u,s.y),P=[],S=135;S<180;S+=3)P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,S));P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,180)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var h=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(h),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+a,o.y+r),p=.6*n,u=new SuperMap.Geometry.Point(s.x+n,s.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,0),P=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,180),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var h=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,90),y=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,270);(S=[]).push(h),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var f=new SuperMap.Geometry.Point(s.x-n,s.y),g=SuperMap.Plot.PlottingUtil.circlePoint(f,.5*n,.5*n,270),M=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,240),b=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,90),m=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,300);(S=[]).push(g),S.push(M),S.push(b),S.push(m),S.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0}),this.scalePoints=[];var d=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(d),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40000=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3.6*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);var b={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,b),!(f.length<2)){var m=f[0],d=f[1],v=SuperMap.Plot.PlottingUtil.radian(m,d)*SuperMap.Plot.PlottingUtil.RTOD,O=SuperMap.Plot.PlottingUtil.circlePoint(m,r,r,v+90),U=SuperMap.Plot.PlottingUtil.circlePoint(m,r,r,v+270),w=[];if(w.push(O),w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,b),!(M.length<2)){var L=M[M.length-1],V=M[M.length-2],_=SuperMap.Plot.PlottingUtil.radian(L,V)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.PlottingUtil.circlePoint(L,r,r,_+90),A=SuperMap.Plot.PlottingUtil.circlePoint(L,r,r,_+270);(w=[]).push(T),w.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,b);var E=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,x=.8*SuperMap.Plot.PlottingUtil.distance(y,g),Y=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0){var j=this.computeSubSymbol(this.subSymbols[0],Y,x,E);if(null!=j)for(var C=0;C<j.length;C++)j[C].style.lineColorLimit=!0,j[C].style.strokeColor="#0000ff",j[C].style.color="#0000ff"}var I=SuperMap.Plot.PlottingUtil.findPointInLine(y,g,.4*x),G=SuperMap.Plot.PlottingUtil.circlePoint(I,.75*x,.75*x,E+135),B=SuperMap.Plot.PlottingUtil.circlePoint(I,.75*x,.75*x,E+315),R=SuperMap.Plot.PlottingUtil.distance(G,B);(w=[]).push(G),w.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var N=SuperMap.Plot.PlottingUtil.findPointInLine(G,B,1.2*R),D=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.08*R,G,B);(w=[]).push(N),w.push(D.pntLeft),w.push(D.pntRight),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,{fillLimit:!0,fill:!0}),this.addScalePoint(u),this.addScalePoint(O),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol40000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,m=SuperMap.Plot.PlottingUtil.distance(y,g),d=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,m,b),!(f.length<2)){var v=f[0],O=f[1],U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,w=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+90),L=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+270),V=[];if(V.push(w),V.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),!(M.length<2)){var _=M[M.length-1],T=M[M.length-2],A=SuperMap.Plot.PlottingUtil.radian(_,T)*SuperMap.Plot.PlottingUtil.RTOD,E=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+90),x=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+270);(V=[]).push(E),V.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var Y=SuperMap.Plot.PlottingUtil.paraLine(e,r,!1),j=SuperMap.Plot.PlottingUtil.polylineDistance(Y)/11,C=j;for(h=0;h<11;h++)if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C-j,Y)).bfind){var I=s.index,G=s.pts;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C,Y)).bfind){var B=s.pts,R=s.index;if(h%2==0){var N=[];N.push(G);for(var D=I+1;D<=R;D++)N.push(Y[D]);N.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=j}}var k;k=SuperMap.Plot.PlottingUtil.paraLine(e,3.5*r,!1),SuperMap.Plot.PlottingUtil.clearSamePts(k),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,k);var z;z=SuperMap.Plot.PlottingUtil.paraLine(e,3.5*r,!0),SuperMap.Plot.PlottingUtil.clearSamePts(z),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,z),this.addScalePoint(u),this.addScalePoint(w),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol39802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,m=SuperMap.Plot.PlottingUtil.distance(y,g),d=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,m,b),!(f.length<2)){var v=f[0],O=f[1],U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,w=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+90),L=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+270),V=[];if(V.push(w),V.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),!(M.length<2)){var _=M[M.length-1],T=M[M.length-2],A=SuperMap.Plot.PlottingUtil.radian(_,T)*SuperMap.Plot.PlottingUtil.RTOD,E=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+90),x=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+270);(V=[]).push(E),V.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),this.addScalePoint(u),this.addScalePoint(w),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol39801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3.6*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,m=SuperMap.Plot.PlottingUtil.distance(y,g),d=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,.8*m,b),!(f.length<2)){var v=f[0],O=f[1],U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,w=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+90),L=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+270),V=[];if(V.push(w),V.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),!(M.length<2)){var _=M[M.length-1],T=M[M.length-2],A=SuperMap.Plot.PlottingUtil.radian(_,T)*SuperMap.Plot.PlottingUtil.RTOD,E=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+90),x=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+270);(V=[]).push(E),V.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var Y=SuperMap.Plot.PlottingUtil.paraLine(e,r,!1),j=SuperMap.Plot.PlottingUtil.polylineDistance(Y)/11,C=j;for(h=0;h<11;h++)if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C-j,Y)).bfind){var I=s.index,G=s.pts;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C,Y)).bfind){var B=s.pts,R=s.index;if(h%2==0){var N=[];N.push(G);for(var D=I+1;D<=R;D++)N.push(Y[D]);N.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=j}}this.addScalePoint(u),this.addScalePoint(w),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol39800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol39600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.03,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol38600),e}();SuperMap.Plot.AlgoSymbol39600=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.08),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.08),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f);M.push(m)}for(var d=[],v=M.length-1;v>=0;--v)d.push(M[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var O=t[0],U=t[0],w=t[1],L=SuperMap.Plot.PlottingUtil.radian(U,w)*SuperMap.Plot.PlottingUtil.RTOD+270,V=.2*o;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],O,V,L),this.scalePoints=[],this.addScalePoint(M[0]),this.addScalePoint(M[1]),this.addScalePoint(M[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol39500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.1||i<=0)&&(i=.1),this.scaleValues[0]=i}var n=l*this.scaleValues[2],a=l*this.scaleValues[3],r=new SuperMap.Geometry.Point(o.x+n,o.y+a),s=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.scalePoints=[];var p=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,180);this.addScalePoint(p),this.addScalePoint(r),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol39101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.08),l.scaleValues.push(.05),l.scaleValues.push(-.08),l.scaleValues.push(-.08),l.scaleValues.push(.05),l.scaleValues.push(.08),l.scaleValues.push(-.08)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(.08),this.scaleValues.push(.05),this.scaleValues.push(-.08),this.scaleValues.push(-.08),this.scaleValues.push(.05),this.scaleValues.push(.08),this.scaleValues.push(-.08));var e=this.scaleValues[1],l=this.scaleValues[2],o=this.scaleValues[4],i=this.scaleValues[5],n=this.scaleValues[7],a=this.scaleValues[8],r=[];if(r=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),r=SuperMap.Plot.PlottingUtil.clearSamePts(r),!(this.minEditPts>r.length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r);var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),p=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var u=this.getSubSymbolScaleValue()*p;this.scaleValues[0]=u/p,this.scaleValues[3]=u/p,this.scaleValues[6]=u/p}var c=new SuperMap.Geometry.Point(s.x+p*e,s.y+p*l),P=new SuperMap.Geometry.Point(s.x+p*o,s.y+p*i),S=new SuperMap.Geometry.Point(s.x+p*n,s.y+p*a),h=p*this.scaleValues[0],y=p*this.scaleValues[3],f=p*this.scaleValues[6];this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,1.5*h,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],P,1.5*y,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[2],S,1.5*f,0),this.addScalePoint(c);var g=SuperMap.Plot.PlottingUtil.circlePoint(c,h,h,180);this.addScalePoint(g),this.addScalePoint(P);var M=SuperMap.Plot.PlottingUtil.circlePoint(P,y,y,180);this.addScalePoint(M),this.addScalePoint(S);var b=SuperMap.Plot.PlottingUtil.circlePoint(S,f,f,180);this.addScalePoint(b),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;0===this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(.08),this.scaleValues.push(.05),this.scaleValues.push(-.08),this.scaleValues.push(-.08),this.scaleValues.push(.05),this.scaleValues.push(.08),this.scaleValues.push(-.08));var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=this.scaleValues[4],s=this.scaleValues[5],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=[];if(P=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.minEditPts>P.length)return;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P);var S=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),h=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-S.x)/h,this.scaleValues[1]=i,n=(e.y-S.y)/h,this.scaleValues[2]=n;else if(1===t){i=this.scaleValues[1],n=this.scaleValues[2];var y=new SuperMap.Geometry.Point(S.x+h*i,S.y+h*n);o=SuperMap.Plot.PlottingUtil.distance(y,e)/h,this.scaleValues[0]=o}if(2===t)r=(e.x-S.x)/h,this.scaleValues[4]=r,s=(e.y-S.y)/h,this.scaleValues[5]=s;else if(3===t){r=this.scaleValues[4],s=this.scaleValues[5];var f=new SuperMap.Geometry.Point(S.x+h*r,S.y+h*s);a=SuperMap.Plot.PlottingUtil.distance(f,e)/h,this.scaleValues[3]=a}if(4===t)u=(e.x-S.x)/h,this.scaleValues[7]=u,c=(e.y-S.y)/h,this.scaleValues[8]=c;else if(5===t){u=this.scaleValues[7],c=this.scaleValues[8];var g=new SuperMap.Geometry.Point(S.x+h*u,S.y+h*c);p=SuperMap.Plot.PlottingUtil.distance(g,e)/h,this.scaleValues[6]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol39000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol38700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=Math.PI/4,l.scaleValues[1]=Math.PI/4,l.scaleValues[2]=.3,l.scaleValues[3]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=Math.PI/4,this.scaleValues[1]=Math.PI/4,this.scaleValues[2]=.3,this.scaleValues[3]=.1);var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD;if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[2]=n}var a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=this.scaleValues[3],u=a*SuperMap.Plot.PlottingUtil.RTOD,c=i-u,P=i+u,S=this.GetArcPts(c,P,e,o);if(!(2>S.length)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=o*s,y=i-90,f=o*p,g=SuperMap.Plot.PlottingUtil.linePnt(e,l,f),M=SuperMap.Plot.PlottingUtil.radian(g,l)*SuperMap.Plot.PlottingUtil.RTOD-30,b=SuperMap.Plot.PlottingUtil.distance(g,l),m=0,d=t[0].clone(),v=SuperMap.Plot.PlottingUtil.circlePoint(g,b,b,M),O=null;if(this.subSymbols.length>0&&null!=(O=this.computeSubSymbol(this.subSymbols[0],g,h,y,0,-.5)))for(var U=0;U<O.length;U++)if(!(2>O[U].positionPoints))for(var w=0;w<O[U].positionPoints.length-1;w++){var L=O[U].positionPoints[w],V=O[U].positionPoints[w+1],_=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.intersectLineSegs(g,v,L,V,_)&&(0==m?d=_:SuperMap.Plot.PlottingUtil.distance(g,_)>SuperMap.Plot.PlottingUtil.distance(g,d)&&(d=_),m++)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[d,v]);var T=SuperMap.Plot.PlottingUtil.radian(v,d)*SuperMap.Plot.PlottingUtil.RTOD,A=SuperMap.Plot.PlottingUtil.distance(d,v),E=SuperMap.Plot.PlottingUtil.circlePoint(v,.1*A,.1*A,T-15),x=SuperMap.Plot.PlottingUtil.circlePoint(v,.1*A,.1*A,T+15),Y=[];Y.push(v),Y.push(E),Y.push(x),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,Y,{fillLimit:!0,fill:!0}),this.scalePoints=[];var j=SuperMap.Plot.PlottingUtil.circlePoint(e,o,o,P);this.addScalePoint(j);var C=SuperMap.Plot.PlottingUtil.linePnt(g,l,o*s);if(this.addScalePoint(C),this.addScalePoint(g),3==t.length){var I=t[2],G=SuperMap.Plot.PlottingUtil.distance(e,I),B=r*SuperMap.Plot.PlottingUtil.RTOD,R=i-B,N=i+B,D=this.GetArcPts(R,N,e,G);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,D);var k=SuperMap.Plot.PlottingUtil.circlePoint(e,G,G,N);this.addScalePoint(k);var z=v,F=SuperMap.Plot.PlottingUtil.distance(e,I)-o,K=SuperMap.Plot.PlottingUtil.circlePoint(z,F,F,M);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[z,K]);var q=SuperMap.Plot.PlottingUtil.circlePoint(K,.1*F,.1*F,T-15),W=SuperMap.Plot.PlottingUtil.circlePoint(K,.1*F,.1*F,T+15),J=[];J.push(K),J.push(q),J.push(W),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,J,{fillLimit:!0,fill:!0})}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>3)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=e,i=l[0],n=l[1],a=SuperMap.Plot.PlottingUtil.distance(i,n),r=SuperMap.Plot.PlottingUtil.radian(i,n);if(0==t){var s=SuperMap.Plot.PlottingUtil.radian(i,o),p=Math.abs(s-r);this.scaleValues[0]=p}else if(1==t){var u=a*this.scaleValues[3],c=SuperMap.Plot.PlottingUtil.linePnt(i,n,u),P=SuperMap.Plot.PlottingUtil.distance(o,c)/a;this.scaleValues[2]=P}else if(2==t){var S=SuperMap.Plot.PlottingUtil.distance(o,i)/a;if(S>=1)return;this.scaleValues[3]=S}else if(3==t){var h=SuperMap.Plot.PlottingUtil.radian(i,o),y=Math.abs(h-r);this.scaleValues[1]=y}}}},{key:"GetArcPts",value:function(t,e,l,o){var i,n=[],a=0;for(a=t;a<e;a+=4)i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,a),n.push(i);return a!=e&&(i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,e),n.push(i)),n}}]),e}();SuperMap.Plot.AlgoSymbol38700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol38600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[2]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[2])}for(var P=[],S=0;S<e.length;S++)P.push(e[S]);var h=l*this.scaleValues[1],y=SuperMap.Plot.PlottingUtil.paraLine(P,h,!0),f=SuperMap.Plot.PlottingUtil.paraLine(P,h,!1),g=[];for(S=0;S<y.length;S++)g.push(y[S]);var M=[];for(S=0;S<f.length;S++)M.push(f[S]);g=SuperMap.Plot.PlottingUtil.clearSamePts(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),M=SuperMap.Plot.PlottingUtil.clearSamePts(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),m=SuperMap.Plot.PlottingUtil.circlePoint(b.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(m,0),this.addScalePoint(f[0],1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}if(1===t){var r=SuperMap.Plot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMap.Plot.AlgoSymbol38600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol37700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=l*this.scaleValues[2],n=l*this.scaleValues[3],a=new SuperMap.Geometry.Point(o.x+i,o.y+n);if(!this.isEdit){var r=this.getDefaultSubSymbolSize()/l;(r>.3||r<=0)&&(r=.3),this.scaleValues[0]=r}var s=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,90),this.scalePoints=[];var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,180);this.addScalePoint(p),this.addScalePoint(a),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol37601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.15||i<=0)&&(i=.15),this.scaleValues[0]=i}var n=o*this.scaleValues[2],a=o*this.scaleValues[3],r=new SuperMap.Geometry.Point(l.x+n,l.y+a),s=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.scalePoints=[];var p=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,180);this.addScalePoint(p),this.addScalePoint(r),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol37600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02,l.scaleValues[2]=.25,l.scaleValues[3]=.8),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=.125,this.scaleValues[1]=.02,this.scaleValues[2]=.25,this.scaleValues[3]=.8),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),l=SuperMap.Plot.PlottingUtil.radian(t[1],t[0])*SuperMap.Plot.PlottingUtil.RTOD,o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=new SuperMap.Geometry.Point(o*e,i*e),s=new SuperMap.Geometry.Point(o*e,-i*e),p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],s,l),c=[];c.push(p),c.push(u),c.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{fillLimit:!0,fill:!0});var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n*e,t);if(P.bfind){var S=.05*e,h=P.pts,y=SuperMap.Plot.PlottingUtil.circlePoint(h,S,S,l+90),f=SuperMap.Plot.PlottingUtil.circlePoint(h,S,S,l+270);if((c=[]).push(y),c.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0}),(P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a*e,t)).bfind){var g=P.pts,M=SuperMap.Plot.PlottingUtil.circlePoint(g,S,S,l+90),b=SuperMap.Plot.PlottingUtil.circlePoint(g,S,S,l+270);(c=[]).push(M),c.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(h),this.addScalePoint(g),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMap.Plot.PlottingUtil.distance(i,l[1]);90>SuperMap.Plot.PlottingUtil.radian(l[1],i)*SuperMap.Plot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}else if(1==t){var s=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(.1>s||s>.95)return;this.scaleValues[2]=s}else if(2==t){var p=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(.1>p||p>.95)return;this.scaleValues[3]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol37301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),l=SuperMap.Plot.PlottingUtil.radian(t[1],t[0])*SuperMap.Plot.PlottingUtil.RTOD,o=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],.35*e),i=SuperMap.Plot.PlottingUtil.circlePoint(o,.05*e,.05*e,l+270);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[i,o],{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var n=this.scaleValues[0],a=this.scaleValues[1],r=new SuperMap.Geometry.Point(n*e,a*e),s=new SuperMap.Geometry.Point(n*e,-a*e),p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],s,l),c=[];c.push(p),c.push(u),c.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(u),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMap.Plot.PlottingUtil.distance(i,l[1]);90>SuperMap.Plot.PlottingUtil.radian(l[1],i)*SuperMap.Plot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol37300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol37200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol27100),e}();SuperMap.Plot.AlgoSymbol37200=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,c=new SuperMap.Geometry.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),P=SuperMap.Plot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),S=SuperMap.Plot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),h=[];h.push(P),h.push.apply(h,s),h.push.apply(h,p),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.radian(S,P)*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,.9*u,y-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,y+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMap.Plot.PlottingUtil.circlePoint(l[0],n,n,90),r=SuperMap.Plot.PlottingUtil.circlePoint(l[1],n,n,90),s=new SuperMap.Geometry.Point((a.x+r.x)/2,(a.y+r.y)/2),p=SuperMap.Plot.PlottingUtil.distance(s,e)/o;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol37100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var l=.1*e,o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]),i=o.pntRight,n=o.pntLeft,a=(o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l,t[0],t[1])).pntRight,r=o.pntLeft,s=[];s.push(i),s.push(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(a),p.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(i),u.push(r);for(var c=SuperMap.Plot.PlottingUtil.polylineDistance(u)/11,P=c,S=0,h=0,y=null,f=null,g=0;g<11;g++){if(0==g)S=0,y=i.clone();else{var M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P-c,u);if(!M.bfind)continue;S=M.index,y=M.pts}if(10==g)h=0,f=r.clone();else{if(!(M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,u)).bfind)continue;h=M.index,f=M.pts}if(g%2==0){var b=[];b.push(y);for(var m=S+1;m<=h;m++)b.push(u[m]);b.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0})}P+=c}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol36800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[1]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addStartPtArrow(s,this.scaleValues[2]),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[2])}for(var P=[],S=0;S<e.length;S++)P.push(e[S]);var h=l*this.scaleValues[1],y=SuperMap.Plot.PlottingUtil.paraLine(P,h,!0),f=SuperMap.Plot.PlottingUtil.paraLine(P,h,!1),g=[];for(S=0;S<y.length;S++)g.push(y[S]);var M=[];for(S=0;S<f.length;S++)M.push(f[S]);g=SuperMap.Plot.PlottingUtil.clearSamePts(g),M=SuperMap.Plot.PlottingUtil.clearSamePts(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),m=SuperMap.Plot.PlottingUtil.circlePoint(b.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(m,0),this.addScalePoint(f[0],1),this.finish()}}},{key:"addStartPtArrow",value:function(t,e){if(t.length<2)return t;var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*e,o=t[0];if(t.length>=2){for(var i=-1,n=0;n<t.length-1;n++)if(l<SuperMap.Plot.PlottingUtil.distance(o,t[n])){i=n;break}t.splice(1,i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[1],r=t[0],s=l,p=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,p+22.5),c=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,p-22.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[0],c],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}if(1===t){var r=SuperMap.Plot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMap.Plot.AlgoSymbol36700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e,l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,i=this.scaleValues[0],n=this.scaleValues[1],a=i*l,r=[];for(e=90;e<=270;e+=3)r.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],a,a,e+o));for(e=-90;e<=90;e+=3)r.push(SuperMap.Plot.PlottingUtil.circlePoint(t[1],a,a,e+o));r.push(r[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var s=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),p=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,u=l*n;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,u,p+90),this.scalePoints=[],this.addScalePoint(r[r.length-1]);var c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),a=SuperMap.Plot.PlottingUtil.distance(n,e)/o;a>=.8&&(a=.8),this.scaleValues[1]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol36600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.index,a=i.pts,r=(i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(n<0||r<0)){var s;if(n!=r)(s=SuperMap.Plot.PlottingUtil.distance(t[n+1],t[n]))<=2*o?(o=s/2,a.x=(t[n+1].x+t[n].x)/2,a.y=(t[n+1].y+t[n].y)/2):a=SuperMap.Plot.PlottingUtil.linePnt(t[n+1],t[n],o);else if((s=SuperMap.Plot.PlottingUtil.distance(t[n+1],t[n]))<=2*o)o=s/2,a.x=(t[n+1].x+t[n].x)/2,a.y=(t[n+1].y+t[n].y)/2;else SuperMap.Plot.PlottingUtil.distance(t[n],a)<o&&(a=SuperMap.Plot.PlottingUtil.linePnt(t[n],t[n+1],o));var p,u=[];for(p=0;p<n+1;p++)u.push(t[p]);var c=SuperMap.Plot.PlottingUtil.linePnt(a,t[n],o);u.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var P=SuperMap.Plot.PlottingUtil.linePnt(a,t[n+1],o),S=[];S.push(P);var h=t.length;for(p=n+1;p<h;++p)S.push(t[p]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var y=t[0],f=t[1],g=t[t.length-2],M=t[t.length-1],b=.03*e,m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,f,y),d=m.pntRight,v=m.pntLeft,O=(m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,g,M)).pntRight,U=m.pntLeft,w=[];w.push(d),w.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,{lineTypeLimit:!0});var L=[];L.push(O),L.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,{lineTypeLimit:!0});var V=SuperMap.Plot.PlottingUtil.radian(P,c)*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,.8*o,V-90),this.scalePoints=[];var _=SuperMap.Plot.PlottingUtil.circlePoint(a,o,o,V-90);this.addScalePoint(_),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=e,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*o,l).pts,a=SuperMap.Plot.PlottingUtil.distance(i,n)/o;this.scaleValues[0]=a<.5?a:.5}}}}]),e}();SuperMap.Plot.AlgoSymbol36401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol36400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=.1*o,n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMap.Plot.PlottingUtil.linePnt(n,e,i),r=SuperMap.Plot.PlottingUtil.linePnt(n,l,i),s=[],p=[];s.push(t[0]),s.push(a),p.push(r),p.push(t[1]);var u=SuperMap.Plot.PlottingUtil.paraLine(s,.5*i,!0),c=SuperMap.Plot.PlottingUtil.paraLine(p,.5*i,!0),P=[],S=[];P.push(u[0]),P.push(u[1]),S.push(c[0]),S.push(c[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var h=[],y=[],f=SuperMap.Plot.PlottingUtil.paraLine(s,.5*i,!1),g=SuperMap.Plot.PlottingUtil.paraLine(p,.5*i,!1);h.push(f[0]),h.push(f[1]),y.push(g[0]),y.push(g[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var M=SuperMap.Plot.PlottingUtil.linePnt(P[1],S[0],.2*i),b=SuperMap.Plot.PlottingUtil.linePnt(S[0],P[1],.2*i),m=SuperMap.Plot.PlottingUtil.linePnt(h[1],y[0],.2*i),d=SuperMap.Plot.PlottingUtil.linePnt(y[0],h[1],.2*i),v=[];v.push(M),v.push(b),v.push(d),v.push(m),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{fillLimit:!0,fill:!0});var O=SuperMap.Plot.PlottingUtil.linePnt(m,M,1.2*i),U=SuperMap.Plot.PlottingUtil.linePnt(M,m,1.2*i),w=[];w.push(O),w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var L=SuperMap.Plot.PlottingUtil.linePnt(d,b,1.2*i),V=SuperMap.Plot.PlottingUtil.linePnt(b,d,1.2*i),_=[];_.push(L),_.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol35500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=0),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=0),!this.isEdit){var e=[];e.push(this.subSymbols[0]),this.scaleValues[0]=this.getSubSymbolScaleValue(),this.subSymbols=[];for(var l=0;l<t.length;l++)this.subSymbols.push(e[0])}var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=[];for(o=0;o<t.length;o++)n.push(t[o]);for(n.push(n[0]),o=0;o<n.length-1;o++){var a=n[o],r=n[o+1],s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD;s+=90;var p=.5*i,u=SuperMap.Plot.PlottingUtil.circlePoint(a,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}this.scalePoints=[];var P=SuperMap.Plot.PlottingUtil.circlePoint(t[0],1.2*i,1.2*i,270);for(this.addScalePoint(P),o=0;o<t.length;o++){var S=n[o];2*(o+1)>=this.scaleValues.length&&this.scaleValues.push(0);var h=this.scaleValues[2*(o+1)];2*(o+1)+1>=this.scaleValues.length&&this.scaleValues.push(1);var y=h;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[o],S,i,y);var f=SuperMap.Plot.PlottingUtil.circlePoint(S,1.5*i,1.5*i,y+90);this.addScalePoint(f)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){for(var o=[],i=0;i<l.length;i++)o.push(l[i]);var n=SuperMap.Plot.PlottingUtil.polylineDistance(o),a=SuperMap.Plot.PlottingUtil.distance(o[0],e)/1.2;this.scaleValues[0]=a/n}else{var r=l[t-1],s=SuperMap.Plot.PlottingUtil.radian(r,e)*SuperMap.Plot.PlottingUtil.RTOD;0>(s-=90)&&(s+=360),this.scaleValues[2*t]=s}}}},{key:"GetCodeByScaleValue",value:function(t){switch(Math.floor(t)){case 0:return 35300;case 1:return 35301;case 2:return 35302;case 3:return 35303;case 4:return 35400;case 5:return 35401;case 6:return 35402;case 7:return 35403;default:return-1}}}]),e}();SuperMap.Plot.AlgoSymbol35304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=e*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,o,0),this.scalePoints=[];var i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,90);this.addScalePoint(i),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol35200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.03),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=e[0],n=e[1],a=e[e.length-1],r=e[e.length-2],s=SuperMap.Plot.PlottingUtil.radian(i,n)*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0],c=l*u,P=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+90),S=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+270),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(S);var y=SuperMap.Plot.PlottingUtil.circlePoint(a,c,c,p+90),f=SuperMap.Plot.PlottingUtil.circlePoint(a,c,c,p+270);(h=[]).push(y),h.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var g,M,b=t.length;if(this.scaleValues.length<=b){for(this.scaleValues=[],this.scaleValues.push(u),M=1/b,g=0;g<b-1;g++)this.scaleValues.push(M*(g+1));this.scaleValues.push(u)}for(g=0;g<b-1;g++){var m=(M=this.scaleValues[g+1])*l,d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(m,e);if(!d.bfind)return;var v=d.pts,O=d.index,U=l*this.getSubSymbolScaleValue(),w=.3*U,L=SuperMap.Plot.PlottingUtil.radian(e[O],e[O+1])*SuperMap.Plot.PlottingUtil.RTOD,V=new SuperMap.Geometry.Point(U,-w),_=new SuperMap.Geometry.Point(-U,-w),T=new SuperMap.Geometry.Point(-U,0),A=new SuperMap.Geometry.Point(U,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(v,V,L),x=SuperMap.Plot.PlottingUtil.coordinateTrans(v,_,L),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(v,T,L),j=SuperMap.Plot.PlottingUtil.coordinateTrans(v,A,L);(h=[]).push(E),h.push(x),h.push(Y),h.push(j),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{lineTypeLimit:!0,fillLimit:!0,fill:!0}),this.addScalePoint(v)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==t){var a=(i=SuperMap.Plot.PlottingUtil.distance(e,l[0]))/n;this.scaleValues[0]=a}else{var r,s=e,p=[];for(r=0;r<o.length;r++)p.push(o[r]);var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0);for(r=0;r<p.length-1;r++){var S=[];S.push(p[r]),S.push(p[r+1]);var h=SuperMap.Plot.PlottingUtil.projectPoint(s,p[r],p[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(h,S).isOnPolyLine){var y=SuperMap.Plot.PlottingUtil.distance(s,h);-1==u?(u=r,P=h,c=y):c>y&&(u=r,P=h,c=y)}}if(-1==u||u>p.length-1)return;for(i=0,r=0;r<u;r++)i+=SuperMap.Plot.PlottingUtil.distance(o[r],o[r+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[u],P))<0||i>n)return;var f=i/n;this.scaleValues[t]=f}}}}]),e}();SuperMap.Plot.AlgoSymbol35000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34902=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l/2,e);if(o.bfind){var i=o.index,n=o.pts;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/l;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a,this.scaleValues[1]=.5*a}var r,s=l*this.scaleValues[0],p=[];for(p.push(n),r=i;r>=0;r--)p.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,p)).bfind){var u=o.index,c=o.pts,P=[];for(r=p.length-1;r>u;r--)P.push(p[r]);P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=[];for(S.push(n),r=i+1;r<e.length;r++)S.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,S)).bfind){var h=o.index,y=o.pts;for((P=[]).push(y),r=h+1;r<S.length;r++)P.push(S[r]);this.addArrow(P,this.scaleValues[1]);var f=.1*s,g=c,M=y,b=SuperMap.Plot.PlottingUtil.radian(g,M)*SuperMap.Plot.PlottingUtil.RTOD,m=new SuperMap.Geometry.Point((g.x+M.x)/2,(g.y+M.y)/2),d=SuperMap.Plot.PlottingUtil.circlePoint(m,2*f,2*f,b),v=SuperMap.Plot.PlottingUtil.circlePoint(m,2*f,2*f,b+180),O=SuperMap.Plot.PlottingUtil.circlePoint(d,f,f,0);(P=[]).push(d),P.push(O);var U={surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,P,U);var w=SuperMap.Plot.PlottingUtil.circlePoint(v,f,f,0);(P=[]).push(v),P.push(w),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,P,U);var L=e[0].clone(),V=e[1].clone(),_=SuperMap.Plot.PlottingUtil.radian(V,L)*SuperMap.Plot.PlottingUtil.RTOD,T=new SuperMap.Geometry.Point(0,.5*s),A=new SuperMap.Geometry.Point(s,.5*s),E=new SuperMap.Geometry.Point(1.5*s,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(L,T,_),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(L,A,_),j=SuperMap.Plot.PlottingUtil.coordinateTrans(L,E,_);(P=[]).push(e[0]),P.push(x),P.push(Y),P.push(j),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P),this.finish()}}}}}}]),e}();SuperMap.Plot.AlgoSymbol34902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l/2,e);if(o.bfind){var i=o.index,n=o.pts;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/l;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a,this.scaleValues[1]=.5*a}var r,s=l*this.scaleValues[0],p=[];for(p.push(n),r=i;r>=0;r--)p.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,p)).bfind){var u=o.index,c=o.pts,P=[];for(r=p.length-1;r>u;r--)P.push(p[r]);P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=[];for(S.push(n),r=i+1;r<e.length;r++)S.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,S)).bfind){var h=o.index,y=o.pts;for((P=[]).push(y),r=h+1;r<S.length;r++)P.push(S[r]);this.addArrow(P,this.scaleValues[1]);var f=.1*s,g=SuperMap.Plot.PlottingUtil.circlePoint(n,f,f,0);(P=[]).push(n),P.push(g);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,P,{surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0});var M=e[0].clone(),b=e[1].clone(),m=SuperMap.Plot.PlottingUtil.radian(b,M)*SuperMap.Plot.PlottingUtil.RTOD,d=new SuperMap.Geometry.Point(0,.5*s),v=new SuperMap.Geometry.Point(s,.5*s),O=new SuperMap.Geometry.Point(1.5*s,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(M,d,m),w=SuperMap.Plot.PlottingUtil.coordinateTrans(M,v,m),L=SuperMap.Plot.PlottingUtil.coordinateTrans(M,O,m);(P=[]).push(e[0]),P.push(U),P.push(w),P.push(L),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P),this.finish()}}}}}}]),e}();SuperMap.Plot.AlgoSymbol34901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(-1!==SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,l/2).index){if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*o}this.addArrow(e,this.scaleValues[1]);var i=l*this.scaleValues[0],n=new SuperMap.Geometry.Point(e[0].x,e[0].y),a=new SuperMap.Geometry.Point(e[1].x,e[1].y),r=SuperMap.Plot.PlottingUtil.radian(a,n)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.5*i),p=new SuperMap.Geometry.Point(i,.5*i),u=new SuperMap.Geometry.Point(1.5*i,0),c=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,r),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,r),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[e[0],c,P,S]),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol34900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34801=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.4),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[],l=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=0;for(n=15;n<=165;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));SuperMap.Plot.PlottingUtil.equalFuzzy(n,165)&&(n=165,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n)));var a=[];for(n=e.length-1;n>=0;n--)a.push(e[n]);for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),e=[],n=195;n<=345;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));for(SuperMap.Plot.PlottingUtil.equalFuzzy(n,345)&&(n=345,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n))),a=[],n=e.length-1;n>=0;n--)a.push(e[n]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var r=2*this.scaleValues[0]*i;(e=[]).push(new SuperMap.Geometry.Point(l.x-r,l.y)),e.push(new SuperMap.Geometry.Point(l.x-.4*r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x-.2*r,l.y)),e.push(new SuperMap.Geometry.Point(l.x+.4*r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x+.6*r,l.y)),e.push(new SuperMap.Geometry.Point(l.x+r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x-this.scaleValues[0]*i,l.y)),e.push(new SuperMap.Geometry.Point(l.x-this.scaleValues[0]*i,l.y+this.scaleValues[0]*i)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[],l=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=0;for(n=15;n<=165;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));SuperMap.Plot.PlottingUtil.equalFuzzy(n,165)&&(n=165,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n)));var a=[];for(n=e.length-1;n>=0;n--)a.push(e[n]);for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),e=[],n=195;n<=345;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));for(SuperMap.Plot.PlottingUtil.equalFuzzy(n,345)&&(n=345,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n))),a=[],n=e.length-1;n>=0;n--)a.push(e[n]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var r=.8*i;(e=[]).push(new SuperMap.Geometry.Point(l.x-r,l.y)),e.push(new SuperMap.Geometry.Point(l.x+r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x-.4*i,l.y)),e.push(new SuperMap.Geometry.Point(l.x-.4*i,l.y+.4*i)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.08,l.scaleValues[1]=.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.08),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.pts,a=i.index,r=(i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(a<0||r<0)){var s,p,u;if(a!=r)s=new SuperMap.Geometry.Point(t[a+1].x,t[a+1].y),p=new SuperMap.Geometry.Point(t[a].x,t[a].y),(u=SuperMap.Plot.PlottingUtil.distance(s,p))<=2*o?(o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2):n=SuperMap.Plot.PlottingUtil.linePnt(t[a+1],t[a],o);else if(s=new SuperMap.Geometry.Point(t[a+1].x,t[a+1].y),p=new SuperMap.Geometry.Point(t[a].x,t[a].y),(u=SuperMap.Plot.PlottingUtil.distance(s,p))<=2*o)o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2;else s=new SuperMap.Geometry.Point(t[a].x,t[a].y),p=new SuperMap.Geometry.Point(n.x,n.y),SuperMap.Plot.PlottingUtil.distance(s,p)<o&&(n=SuperMap.Plot.PlottingUtil.linePnt(t[a],t[a],o));var c,P,S,h=[];for(c=0;c<a+1;c++)h.push(t[c]);P=SuperMap.Plot.PlottingUtil.linePnt(n,t[a],o),h.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),S=SuperMap.Plot.PlottingUtil.linePnt(n,t[a+1],o);var y=[];y.push(S);var f=t.length;for(c=a+1;c<f;++c)y.push(t[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var g=[],M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o/2,P,S);g.push(P),g.push(M.pntRight),g.push(M.pntLeft);var b=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,P,n)).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{lineTypeLimit:!0});var m,d,v,O,U=t[0].clone(),w=t[1].clone(),L=t[t.length-2].clone(),V=t[t.length-1].clone(),_=e*this.scaleValues[1];d=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,w,U)).pntRight,m=M.pntLeft,O=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,L,V)).pntRight,v=M.pntLeft;var T=[];T.push(d),T.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0});var A=[];A.push(O),A.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(b),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==t){var i=.5*o,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,l).pts,a=SuperMap.Plot.PlottingUtil.distance(e,n)/o;a>.5&&(a=.5),this.scaleValues[0]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol34700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts||t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=new SuperMap.Geometry.Point(0,0),a=new SuperMap.Geometry.Point(.475*e,0),r=SuperMap.Plot.PlottingUtil.coordinateTrans(l,n,i),s=SuperMap.Plot.PlottingUtil.coordinateTrans(l,a,i),p=[];p.push(r),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var u=new SuperMap.Geometry.Point(.525*e,0),c=new SuperMap.Geometry.Point(.725*e,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(l,u,i),S=SuperMap.Plot.PlottingUtil.coordinateTrans(l,c,i);(p=[]).push(P),p.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var h=new SuperMap.Geometry.Point(.775*e,0),y=new SuperMap.Geometry.Point(.95*e,0),f=SuperMap.Plot.PlottingUtil.coordinateTrans(l,h,i),g=SuperMap.Plot.PlottingUtil.coordinateTrans(l,y,i);if((p=[]).push(f),p.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0}),this.subSymbols.length>0){var M=.2*e,b=new SuperMap.Geometry.Point(t[1].x,t[1].y+M/2);this.computeSubSymbol(this.subSymbols[0],b,M,0)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=new SuperMap.Geometry.Point(0,0),a=new SuperMap.Geometry.Point(.475*e,0),r=SuperMap.Plot.PlottingUtil.coordinateTrans(l,n,i),s=SuperMap.Plot.PlottingUtil.coordinateTrans(l,a,i),p=[];p.push(r),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var u=new SuperMap.Geometry.Point(.525*e,0),c=new SuperMap.Geometry.Point(.725*e,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(l,u,i),S=SuperMap.Plot.PlottingUtil.coordinateTrans(l,c,i);(p=[]).push(P),p.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var h=new SuperMap.Geometry.Point(.775*e,0),y=new SuperMap.Geometry.Point(.95*e,0),f=SuperMap.Plot.PlottingUtil.coordinateTrans(l,h,i),g=SuperMap.Plot.PlottingUtil.coordinateTrans(l,y,i);(p=[]).push(f),p.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var M=new SuperMap.Geometry.Point(e,.0125*e),b=new SuperMap.Geometry.Point(e,-.0125*e),m=new SuperMap.Geometry.Point(.75*e+.2*e,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(l,M,i),v=SuperMap.Plot.PlottingUtil.coordinateTrans(l,b,i),O=SuperMap.Plot.PlottingUtil.coordinateTrans(l,m,i);(p=[]).push(d),p.push(O),p.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var U=new SuperMap.Geometry.Point(.75*e+.025*e,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(l,U,i);(p=[]).push(O),p.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var L=new SuperMap.Geometry.Point(.75*e+.15*e,0),V=SuperMap.Plot.PlottingUtil.circlePoint(L,.075*e,.1*e,150),_=SuperMap.Plot.PlottingUtil.circlePoint(L,.075*e,.1*e,210),T=SuperMap.Plot.PlottingUtil.coordinateTrans(l,L,i),A=SuperMap.Plot.PlottingUtil.coordinateTrans(l,V,i),E=SuperMap.Plot.PlottingUtil.coordinateTrans(l,_,i);(p=[]).push(A),p.push(T),p.push(E),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var x=new SuperMap.Geometry.Point(.75*e+.05*e,.025*e),Y=new SuperMap.Geometry.Point(.75*e+.05*e,-.025*e),j=SuperMap.Plot.PlottingUtil.coordinateTrans(l,x,i),C=SuperMap.Plot.PlottingUtil.coordinateTrans(l,Y,i);(p=[]).push(j),p.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var I=new SuperMap.Geometry.Point(.75*e+.0125*e,0),G=new SuperMap.Geometry.Point(.75*e+.0125*e,.0125*e),B=SuperMap.Plot.PlottingUtil.coordinateTrans(l,I,i),R=SuperMap.Plot.PlottingUtil.coordinateTrans(l,G,i);(p=[]).push(B),p.push(R),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1];if(!(n<0||a<0)){var r=n*e,s=1-a*(5/4);s<0&&(s=0),s>1&&(s=1);var p,u,c=e*s,P=SuperMap.Plot.PlottingUtil.circlePoint(l,c,c,i),S=[];S.push(t[0].clone()),S.push(P),p=SuperMap.Plot.PlottingUtil.paraLine(S,r,!0),u=SuperMap.Plot.PlottingUtil.paraLine(S,r,!1);var h,y=[];for(h=0;h<p.length;h++)y.push(p[h]);var f=[];for(h=0;h<u.length;h++)f.push(u[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=a*e,M=SuperMap.Plot.PlottingUtil.circlePoint(o,g/2,g/2,i);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,g/2,i+180);for(var b=[],m=.1*c,d=[],v=0;v<y.length;v++)d.push(y[v].clone());var O=[];for(h=0;h<f.length;h++)O.push(f[h].clone());var U=SuperMap.Plot.PlottingUtil.distance(O[0],O[1]);if(!(m>=U)){for(var w=m;w<c-r;w+=m){var L=SuperMap.Plot.PlottingUtil.circlePoint(O[0],w,w,i),V=SuperMap.Plot.PlottingUtil.circlePoint(L,U,U,i+45),_=SuperMap.Plot.PlottingUtil.intersectLines(L,V,d[0],d[1]);if(_.isIntersectLines){var T=_.intersectPoint;if(!SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(T,d).isOnPolyLine)break;(b=[]).push(L),b.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0})}}this.scalePoints=[];var A=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,i+90);this.addScalePoint(A);var E=g/2,x=SuperMap.Plot.PlottingUtil.circlePoint(o,E,E,i+90);this.addScalePoint(x),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(l);0==t?(o=SuperMap.Plot.PlottingUtil.distance(l[0],e)/i,this.scaleValues[0]=o):1==t&&(o=2*SuperMap.Plot.PlottingUtil.distance(l[1],e)/i,this.scaleValues[1]=o)}}}]),e}();SuperMap.Plot.AlgoSymbol34400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.radian(o,i)*SuperMap.Plot.PlottingUtil.RTOD,a=.02*l,r=[];for(e=0;e<360;e+=10)r.push(SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),a,a,e));r.push(r[0]);var s=[],p=new SuperMap.Geometry.Point(.1*l,0),u=SuperMap.Plot.PlottingUtil.coordinateTrans(o,p,n);for(e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+u.x,r[e].y+u.y));var c={lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var P=new SuperMap.Geometry.Point(.25*l,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(o,P,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+S.x,r[e].y+S.y));this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var h=new SuperMap.Geometry.Point(.4*l,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(o,h,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+y.x,r[e].y+y.y));this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var f=new SuperMap.Geometry.Point(.6*l,0),g=SuperMap.Plot.PlottingUtil.coordinateTrans(o,f,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+g.x,r[e].y+g.y));this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var M=new SuperMap.Geometry.Point(.5*l,.05*l),b=new SuperMap.Geometry.Point(.7*l,.05*l),m=new SuperMap.Geometry.Point(.75*l,0),d=new SuperMap.Geometry.Point(.7*l,-.05*l),v=new SuperMap.Geometry.Point(.5*l,-.05*l),O=SuperMap.Plot.PlottingUtil.coordinateTrans(o,M,n),U=SuperMap.Plot.PlottingUtil.coordinateTrans(o,b,n),w=SuperMap.Plot.PlottingUtil.coordinateTrans(o,m,n),L=SuperMap.Plot.PlottingUtil.coordinateTrans(o,d,n),V=SuperMap.Plot.PlottingUtil.coordinateTrans(o,v,n);(s=[]).push(O),s.push(U),s.push(w),s.push(L),s.push(V),s.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol33400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125),this.scaleValues.push(0)),this.scaleValues.length<6&&this.scaleValues.push(.1);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l,o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(((i=this.getDefaultSubSymbolSize()/n)>.3||i<=0)&&(i=.3),this.scaleValues[5]=i);var a=1.5*this.scaleValues[5];2==t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+a),l=this.scaleValues[2],o=this.scaleValues[3]):(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+a,((i=this.getDefaultSubSymbolSize()/n)>.3||i<=0)&&(i=.3),this.scaleValues[5]=i),l=this.scaleValues[3],o=this.scaleValues[4]);var r=n*l,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,c=n*o;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){for(var P=s.index,S=s.pts,h=new SuperMap.Geometry.Point(u.x,u.y),y=new SuperMap.Geometry.Point(S.x,S.y),f=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD,g=[],M=0;M<=p;M++)g.push(e[M]);for(g.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(S),M=P+1;M<e.length;M++)g.push(e[M]);this.addArrow(g,.5*this.scaleValues[5]);var b=SuperMap.Plot.PlottingUtil.distance(h,y),m=new SuperMap.Geometry.Point(2/3*b,.5/3*b),d=new SuperMap.Geometry.Point(0,.5/3*b),v=new SuperMap.Geometry.Point(0,-.5/3*b),O=new SuperMap.Geometry.Point(2/3*b,-.5/3*b),U=SuperMap.Plot.PlottingUtil.coordinateTrans(h,m,f),w=SuperMap.Plot.PlottingUtil.coordinateTrans(h,d,f),L=SuperMap.Plot.PlottingUtil.coordinateTrans(h,v,f),V=SuperMap.Plot.PlottingUtil.coordinateTrans(h,O,f);(g=[]).push(U),g.push(w),g.push(L),g.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var _=b/3*2,T=SuperMap.Plot.PlottingUtil.radian(y,U)*SuperMap.Plot.PlottingUtil.RTOD,A=SuperMap.Plot.PlottingUtil.circlePoint(y,_,_,T),E=SuperMap.Plot.PlottingUtil.radian(y,V)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.circlePoint(y,_,_,E);(g=[]).push(A),g.push(S),g.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.scalePoints=[],this.addScalePoint(S);var Y=SuperMap.Plot.PlottingUtil.circlePoint(h,b/2,b/2,f+90);this.addScalePoint(Y),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.polylineDistance(o),r=0,s=0;if(2==l.length?(r=this.scaleValues[2],s=this.scaleValues[3]):(r=this.scaleValues[3],s=this.scaleValues[4]),0==t){for(var p=s-r,u=e.clone(),c=[],P=0;P<o.length;P++)c.push(o[P].clone());for(var S,h=-1,y=0,f=0;f<c.length-1;f++){var g=[];g.push(c[f]),g.push(c[f+1]);var M=SuperMap.Plot.PlottingUtil.projectPoint(u,c[f],c[f+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,g).isOnPolyLine){var b=SuperMap.Plot.PlottingUtil.distance(u,M);-1==h?(h=f,S=M,y=b):y>b&&(h=f,S=M,y=b)}}if(-1==h||h>c.length-1)return;i=0;for(var m=0;m<h;m++)i+=SuperMap.Plot.PlottingUtil.distance(o[m],o[m+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[h],S))<0||i>a)return;if((n=i/a)>.7||n-p<0)return;2==l.length?(this.scaleValues[2]=n-p,this.scaleValues[3]=n):(this.scaleValues[3]=n-p,this.scaleValues[4]=n)}else if(1==t){i=a*r;var d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,o);if(!d.bfind)return;var v=d.pts;if(.7<(n=(2*SuperMap.Plot.PlottingUtil.distance(v,e)+i)/a))return;2==l.length?this.scaleValues[3]=n:this.scaleValues[4]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol33400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);2===t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),i=o;this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=e*this.scaleValues[0],a=this.scaleValues[1],r=a,s=this.scaleValues[3],p=this.scaleValues[4];i.x=o.x+s*e,i.y=o.y+p*e,this.computeSubSymbol(this.subSymbols[0],o,n,r),this.addScalePoint(i,0);var u=new SuperMap.Geometry.Point(i.x,i.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,n,n,0);this.addScalePoint(c,1);var P=SuperMap.Plot.PlottingUtil.circlePoint(u,2*n,2*n,a);this.addScalePoint(P,2),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t&&(o=(e.x-a.x)/r,this.scaleValues[3]=o,i=(e.y-a.y)/r,this.scaleValues[4]=i),1===t){o=this.scaleValues[3],i=this.scaleValues[4],n=new SuperMap.Geometry.Point(a.x+o*r,a.y+i*r);var s=SuperMap.Plot.PlottingUtil.distance(n,e)/r;this.scaleValues[0]=s}if(2===t){o=this.scaleValues[3],i=this.scaleValues[4],n=new SuperMap.Geometry.Point(a.x+o*r,a.y+i*r);var p=SuperMap.Plot.PlottingUtil.radian(n,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[1]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol32900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0],o=t[1];e=2==t.length?o:t[2];var i=new SuperMap.Geometry.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMap.Plot.PlottingUtil.distance(i,e),a=.5*n,r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,e),s=r.pntLeft,p=r.pntRight,u=!(i.x>e.x),c=[];u?(c.push(l),c.push(s)):(c.push(l),c.push(p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var P=[];u?(P.push(o),P.push(p)):(P.push(o),P.push(s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var S,h,y,f,g=.37*n,M=SuperMap.Plot.PlottingUtil.linePnt(i,e,g),b=.09*n,m=[];m.push(M),m.push(new SuperMap.Geometry.Point(M.x,M.y+b)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,m),u?(S=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,i,M)).pntLeft,h=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*b,i,M)).pntLeft,y=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,S,h)).pntRight,f=r.pntLeft):(S=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,i,M)).pntRight,h=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*b,i,M)).pntRight,y=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,S,h)).pntRight,f=r.pntLeft);var d=[];d.push(S),d.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0});var v=[];v.push(y),v.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol32300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=.5*e,n=e*this.getSubSymbolScaleValue(),a=n,r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=new SuperMap.Geometry.Point(o[r.index].x,o[r.index].y),u=new SuperMap.Geometry.Point(o[r.index+1].x,o[r.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,c+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=new SuperMap.Geometry.Point(-.2*n,.05*n),y=new SuperMap.Geometry.Point(-.2*n,-.05*n),f=SuperMap.Plot.PlottingUtil.coordinateTrans(P,h,S),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,S);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,f,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var M=new SuperMap.Geometry.Point(0,-.6*a);M=SuperMap.Plot.PlottingUtil.coordinateTrans(s,M,c),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,a,c-90),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol31803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var l=this.getDefaultSubSymbolSize()/e;(l>.3||l<=0)&&(l=.3),this.scaleValues[2]=l}var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),i=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,n=Math.abs(t[1].y-t[0].y)*this.getSubSymbolScaleValue()*.5;if(t[0].y>t[1].y){var a=new SuperMap.Geometry.Point(o.x,t[0].y),r=new SuperMap.Geometry.Point(o.x,t[0].y-n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,r]);var s=new SuperMap.Geometry.Point(o.x,t[1].y),p=new SuperMap.Geometry.Point(o.x,t[1].y+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,p])}else{var u=new SuperMap.Geometry.Point(o.x,t[1].y),c=new SuperMap.Geometry.Point(o.x,t[1].y-n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);var P=new SuperMap.Geometry.Point(o.x,t[0].y),S=new SuperMap.Geometry.Point(o.x,t[0].y+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S])}if(t[0].x>t[1].x){var h=new SuperMap.Geometry.Point(t[0].x,o.y),y=new SuperMap.Geometry.Point(t[0].x-i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[h,y]);var f=new SuperMap.Geometry.Point(t[1].x,o.y),g=new SuperMap.Geometry.Point(t[1].x+i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f,g])}else{var M=new SuperMap.Geometry.Point(t[1].x,o.y),b=new SuperMap.Geometry.Point(t[1].x-i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M,b]);var m=new SuperMap.Geometry.Point(t[0].x,o.y),d=new SuperMap.Geometry.Point(t[0].x+i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[m,d])}this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var v=new SuperMap.Geometry.Point(o.x+e*this.scaleValues[0],o.y+e*this.scaleValues[1]),O=e*this.scaleValues[2]*1.2;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],v,O,0),this.addScalePoint(v);var U=SuperMap.Plot.PlottingUtil.circlePoint(v,O/2,O/2,90);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.lenth<3&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===t)o=(e.x-a.x)/n,this.scaleValues[0]=o,i=(e.y-a.y)/n,this.scaleValues[1]=i;else if(1===t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(a.x+n*o,a.y+n*i),s=SuperMap.Plot.PlottingUtil.distance(r,e)/n;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol31601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues.push(.1),this.scaleValues.push(.1),this.scaleValues.push(0)),this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,i=new SuperMap.Geometry.Point(e.x-o,e.y+o),n=new SuperMap.Geometry.Point(e.x-3*o,e.y-o);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i,n]);var a=new SuperMap.Geometry.Point(e.x-o,e.y-o),r=new SuperMap.Geometry.Point(e.x-3*o,e.y+o);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,r]),!this.isEdit){var s=this.getDefaultSubSymbolSize()/l;(s>.3||s<=0)&&(s=.3),this.scaleValues[0]=s}var p=new SuperMap.Geometry.Point(e.x+o,e.y),u=new SuperMap.Geometry.Point(e.x+4*o,e.y),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=l*this.scaleValues[0]*2,S=new SuperMap.Geometry.Point(e.x+l*this.scaleValues[1],e.y+l*this.scaleValues[2]);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,.8*P,c),this.addScalePoint(S);var h=SuperMap.Plot.PlottingUtil.circlePoint(S,P/2,P/2,90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.lenth<3&&(this.scaleValues.push(.1),this.scaleValues.push(.1),this.scaleValues.push(0));var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===t)o=(e.x-a.x)/n,this.scaleValues[1]=o,i=(e.y-a.y)/n,this.scaleValues[2]=i;else if(1===t){o=this.scaleValues[1],i=this.scaleValues[2];var r=new SuperMap.Geometry.Point(a.x+n*o,a.y+n*i),s=SuperMap.Plot.PlottingUtil.distance(r,e)/n;this.scaleValues[0]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol31600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31400),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=0;e=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x-e,l.y-e),i=new SuperMap.Geometry.Point(l.x+e,l.y-3*e),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],n,!0);var a=new SuperMap.Geometry.Point(l.x-e,l.y+e),r=new SuperMap.Geometry.Point(l.x-3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[a,r],n,!0);var s=new SuperMap.Geometry.Point(l.x+e,l.y+e),p=new SuperMap.Geometry.Point(l.x+3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[s,p],n,!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=0;l=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var o=new SuperMap.Geometry.Point(e.x-l,e.y-l),i=new SuperMap.Geometry.Point(e.x+l,e.y+l);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 1===l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.1),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[1]*e,i=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],.5*e),n=SuperMap.Plot.PlottingUtil.linePnt(i,t[0],o),a=SuperMap.Plot.PlottingUtil.linePnt(i,t[1],o),r=this.scaleValues[0]*e,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight]);var u=[],c=[];u.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),u.push(new SuperMap.Geometry.Point(n.x,n.y)),c.push(new SuperMap.Geometry.Point(a.x,a.y)),c.push(new SuperMap.Geometry.Point(t[1].x,t[1].y));for(var P=this.scaleValues[this.scaleValues.length-1]*e,S=SuperMap.Plot.PlottingUtil.paraLine(u,P,!0),h=SuperMap.Plot.PlottingUtil.paraLine(u,P,!1),y=SuperMap.Plot.PlottingUtil.paraLine(c,P,!0),f=SuperMap.Plot.PlottingUtil.paraLine(c,P,!1),g=[],M=[],b=0;b<S.length;b++)g.push(S[b]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);for(var m=0;m<h.length;m++)M.push(h[m]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);for(var d=[],v=[],O=0;O<y.length;O++)d.push(y[O]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);for(var U=0;U<f.length;U++)v.push(f[U]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var w=n,L=a,V=SuperMap.Plot.PlottingUtil.radian(w,L)*SuperMap.Plot.PlottingUtil.RTOD,_=SuperMap.Plot.PlottingUtil.distance(w,L);this.addText("慑阻",i,_,V),this.addScalePoint(s.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31303=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],.5*e),n=SuperMap.Plot.PlottingUtil.linePnt(i,t[0],o),a=SuperMap.Plot.PlottingUtil.linePnt(i,t[1],o);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],n]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,t[1]]);var r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r.pntLeft,r.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]);var p=[],u=[];p.push(t[0]),p.push(n),u.push(a),u.push(t[1]);for(var c=SuperMap.Plot.PlottingUtil.paraLine(p,o,!0),P=SuperMap.Plot.PlottingUtil.paraLine(p,o,!1),S=SuperMap.Plot.PlottingUtil.paraLine(u,o,!0),h=SuperMap.Plot.PlottingUtil.paraLine(u,o,!1),y=[],f=[],g=0;g<c.length;g++)y.push(c[g]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);for(var M=0;M<P.length;M++)f.push(P[M]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);for(var b=[],m=[],d=0;d<S.length;d++)b.push(S[d]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);for(var v=0;v<h.length;v++)m.push(h[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var O=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,2*o,O),this.addScalePoint(r.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31303=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31302=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=t[0],i=t[1],n=this.scaleValues[0]*e,a=SuperMap.Plot.PlottingUtil.linePnt(o,i,.5*e),r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[0],t[1]),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r.pntLeft,r.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]);var p=SuperMap.Plot.PlottingUtil.linePnt(a,o,n),u=SuperMap.Plot.PlottingUtil.linePnt(a,i,n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],p]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,t[1]]);var c=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*n,c),this.addScalePoint(s.pntRight),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31301=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]);var a=[],r=3*o;a.push(t[0]),a.push(t[1]);for(var s=SuperMap.Plot.PlottingUtil.paraLine(a,r,!0),p=SuperMap.Plot.PlottingUtil.paraLine(a,r,!1),u=[],c=0;c<s.length;c++)u.push(s[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[1],s[0]),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[0],s[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S.pntLeft,S.pntRight]);for(var h=[],y=0;y<p.length;y++)h.push(p[y]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[1],p[0]),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[0],p[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0===t){var n=l[0],a=e,r=SuperMap.Plot.PlottingUtil.distance(a,n)/o;this.scaleValues[0]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol31300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(1.570796),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.index,p=r.pt,u=o[s],c=o[s+1],P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,a/2,a/2,P+n),h=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S,h]);var y=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(S,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var m=.5*a*this.scaleValues[5],d=.5*a*this.scaleValues[6],v=new SuperMap.Geometry.Point(0,-.9*(m-.25*d)),O=new SuperMap.Geometry.Point(0,.9*(m-.25*d)),U=SuperMap.Plot.PlottingUtil.coordinateTrans(h,v,y),w=SuperMap.Plot.PlottingUtil.coordinateTrans(h,O,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[U,w]);var L=new SuperMap.Geometry.Point(0,m),V=SuperMap.Plot.PlottingUtil.coordinateTrans(h,L,y),_=new SuperMap.Geometry.Point(.5*d,-.25*d),T=new SuperMap.Geometry.Point(-.5*d,-.25*d),A=new SuperMap.Geometry.Point(-.5*d,.25*d),E=new SuperMap.Geometry.Point(.25*d,.25*d),x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,_,y),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(V,T,y),j=SuperMap.Plot.PlottingUtil.coordinateTrans(V,A,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(V,E,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[x,Y,j,C,x]);var I=new SuperMap.Geometry.Point(0,-m),G=SuperMap.Plot.PlottingUtil.coordinateTrans(h,I,y),B=new SuperMap.Geometry.Point(0,.25*d),R=new SuperMap.Geometry.Point(.5*d,0),N=new SuperMap.Geometry.Point(0,-.25*d),D=new SuperMap.Geometry.Point(-.5*d,0),k=SuperMap.Plot.PlottingUtil.coordinateTrans(G,B,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(G,R,y),F=SuperMap.Plot.PlottingUtil.coordinateTrans(G,N,y),K=SuperMap.Plot.PlottingUtil.coordinateTrans(G,D,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[k,z,F,K,k]),this.addScalePoint(p,0);var q=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n);this.addScalePoint(q,1);var W=new SuperMap.Geometry.Point(0,-m),J=SuperMap.Plot.PlottingUtil.coordinateTrans(h,W,y);this.addScalePoint(J,2);var Z=new SuperMap.Geometry.Point(-.5*d,0),H=SuperMap.Plot.PlottingUtil.coordinateTrans(V,Z,y);this.addScalePoint(H,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(h=SuperMap.Plot.PlottingUtil.clearSamePts(h),0===t){for(var y=-1,f=0,g=new SuperMap.Geometry.Point(0,0),M=0;M<h.length-1;M++){var b=[];b.push(h[M]),b.push(h[M+1]);var m=SuperMap.Plot.PlottingUtil.projectPoint(e,h[M],h[M+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(m,b).index){var d=SuperMap.Plot.PlottingUtil.distance(e,m);-1==y?(y=M,g=m,f=d):f>d&&(y=M,g=m,f=d)}}if(-1==y||y>h.length-1)return;n=0;for(var v=0;v<y;v++)n+=SuperMap.Plot.PlottingUtil.distance(h[v],h[v+1]);if((n+=SuperMap.Plot.PlottingUtil.distance(h[y],g))<0||n>o)return;var O=n/o;this.scaleValues[0]=O}else if(1===t){a=o*this.scaleValues[0];var U=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a);if(-1===U.index)return;s=r=U.pt,p=h[U.index],u=h[U.index+1],c=SuperMap.Plot.PlottingUtil.radian(p,u);var w=SuperMap.Plot.PlottingUtil.radian(s,e)-c;this.scaleValues[1]=w;var L=(n=SuperMap.Plot.PlottingUtil.distance(r,e))/o;this.scaleValues[2]=L}else if(2===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;s=r.pt,p=h[r.index],u=h[r.index+1],c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,c+P-180);var V=SuperMap.Plot.PlottingUtil.distance(e,S)/(.4*n);this.scaleValues[5]=V}else if(3===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;s=r.pt,p=h[r.index],u=h[r.index+1],c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,c+P-180);var _=.4*n*this.scaleValues[5],T=SuperMap.Plot.PlottingUtil.circlePoint(S,_,_,c+P+90),A=2*SuperMap.Plot.PlottingUtil.distance(T,e)/(.4*n);if(this.scaleValues[5]-.25*A<=0)return;this.scaleValues[6]=A}}}}]),e}();SuperMap.Plot.AlgoSymbol30102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(Math.PI/2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.125),this.scaleValues.push(Math.PI/2)),3===this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),!(t.length<this.minEditPts)){for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[1]=i,this.scaleValues[3]=i}var n=this.scaleValues[1],a=180*this.scaleValues[2]/Math.PI,r=l*this.scaleValues[0],s=l*this.scaleValues[3],p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,r);if(-1!==p.index){var u=p.pt,c=e[p.index],P=e[p.index+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pt,h]);var y,f=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,g=l*n;0<this.subSymbols.length&&(y=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+a+180),this.computeSubSymbol(this.subSymbols[0],y,.8*g,S+a-180),this.addScalePoint(SuperMap.Plot.PlottingUtil.circlePoint(y,.5*g,.5*g,S+a+90),1)),y=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+30);var M=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+33),b=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,y,M]);b=SuperMap.Plot.PlottingUtil.clearSamePts(b);var m=SuperMap.Plot.PlottingUtil.polylineDistance(b),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.9*m,b);if(-1!==d.index){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b.slice(0,d.index));var v=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point(-.2*s,.05*s),U=new SuperMap.Geometry.Point(-.2*s,-.05*s),w=SuperMap.Plot.PlottingUtil.coordinateTrans(y,O,v+17),L=SuperMap.Plot.PlottingUtil.coordinateTrans(y,U,v+17),V={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,w,L],V);var _=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+330),T=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+327),A=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,_,T]);A=SuperMap.Plot.PlottingUtil.clearSamePts(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A.slice(0,d.index));var E=SuperMap.Plot.PlottingUtil.radian(h,_)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.coordinateTrans(_,O,E-17),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(_,U,E-17);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[_,x,Y],V),this.addScalePoint(u,0),this.addScalePoint(h,2),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(p=SuperMap.Plot.PlottingUtil.clearSamePts(p),0===t){for(var u=[],c=0;c<p.length;c++)u.push(new SuperMap.Geometry.Point(p[c].x,p[c].y));for(var P=-1,S=0,h=new SuperMap.Geometry.Point(0,0),y=0;y<u.length-1;y++){var f=[];f.push(u[y]),f.push(u[y+1]);var g=SuperMap.Plot.PlottingUtil.projectPoint(e,u[y],u[y+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(g,f).index){var M=SuperMap.Plot.PlottingUtil.distance(e,g);-1==P?(P=y,h=g,S=M):S>M&&(P=y,h=g,S=M)}}if(-1==P||P>u.length-1)return;for(var b=0,m=0;m<P;m++)b+=SuperMap.Plot.PlottingUtil.distance(p[m],p[m+1]);if((b+=SuperMap.Plot.PlottingUtil.distance(p[P],h))<0||b>o)return;var d=b/o;this.scaleValues[0]=d}else if(1===t){var v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,o*this.scaleValues[0]);if(-1===v.index)return;n=v.pt,a=p[v.index],r=p[v.index+1],s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD;var O=o*this.scaleValues[3],U=SuperMap.Plot.PlottingUtil.circlePoint(n,O,O,s+this.scaleValues[2]*SuperMap.Plot.PlottingUtil.RTOD+180),w=SuperMap.Plot.PlottingUtil.distance(U,e)/o*2;this.scaleValues[1]=w}else if(2===t){var L=o*this.scaleValues[0],V=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,L);if(-1===V.index)return;n=V.pt,a=p[V.index],r=p[V.index+1],s=SuperMap.Plot.PlottingUtil.radian(a,r);var _=SuperMap.Plot.PlottingUtil.radian(n,e)-s;this.scaleValues[2]=_}}}}]),e}();SuperMap.Plot.AlgoSymbol30800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30200),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1)),3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMap.Plot.PlottingUtil.radian(n,a)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,r),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,r),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,r),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=new SuperMap.Geometry.Point(.3*o,.1*o),M=new SuperMap.Geometry.Point(.3*o,-.1*o),b=SuperMap.Plot.PlottingUtil.coordinateTrans(n,g,r),m=SuperMap.Plot.PlottingUtil.coordinateTrans(n,M,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b,m]);var d=new SuperMap.Geometry.Point(.4*o,0),v=new SuperMap.Geometry.Point(.8*o,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,d,r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(n,v,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,U]);var w=new SuperMap.Geometry.Point(.7*o,.025*o),L=new SuperMap.Geometry.Point(.7*o,-.025*o),V=SuperMap.Plot.PlottingUtil.coordinateTrans(n,w,r),_=SuperMap.Plot.PlottingUtil.coordinateTrans(n,L,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,V,_],f);var T=[];T.push(i.pt);for(var A=i.index+1;A<l.length;A++)T.push(l[A]);this.addArrow(T,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var E=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(E,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMap.Plot.PlottingUtil.radian(n,a)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,r),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,r),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,r),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=.1*o,M=new SuperMap.Geometry.Point(.3*o,0),b=SuperMap.Plot.PlottingUtil.circlePoint(M,g,g,135),m=SuperMap.Plot.PlottingUtil.circlePoint(M,g,g,225),d=SuperMap.Plot.PlottingUtil.coordinateTrans(n,M,r),v=SuperMap.Plot.PlottingUtil.coordinateTrans(n,b,r),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,m,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v,d,O]);var U=new SuperMap.Geometry.Point(.9*o,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(n,U,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[d,w]);var L=new SuperMap.Geometry.Point(.8*o,.025*o),V=new SuperMap.Geometry.Point(.8*o,-.025*o),_=SuperMap.Plot.PlottingUtil.coordinateTrans(n,L,r),T=SuperMap.Plot.PlottingUtil.coordinateTrans(n,V,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[w,_,T],f);var A=[];A.push(i.pt);for(var E=i.index+1;E<l.length;E++)A.push(l[E]);this.addArrow(A,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var x=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(x,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n=l[0],a=e,r=SuperMap.Plot.PlottingUtil.distance(a,n);if(0===t){var s=r/o;if(.06>s||.3<s)return;this.scaleValues[1]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol30200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=s,c=o[p],P=o[p+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,S+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,h]);var y=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var m=new SuperMap.Geometry.Point(.6*a,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,y),v=.4*a*this.scaleValues[5],O=.4*a*this.scaleValues[6],U=new SuperMap.Geometry.Point(0,-.9*(v-.25*O)),w=new SuperMap.Geometry.Point(0,.9*(v-.25*O)),L=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,y),V=SuperMap.Plot.PlottingUtil.coordinateTrans(d,w,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[L,V]);var _=new SuperMap.Geometry.Point(0,v),T=SuperMap.Plot.PlottingUtil.coordinateTrans(d,_,y),A=new SuperMap.Geometry.Point(0,.25*O),E=new SuperMap.Geometry.Point(.5*O,0),x=new SuperMap.Geometry.Point(0,-.25*O),Y=new SuperMap.Geometry.Point(-.5*O,0),j=SuperMap.Plot.PlottingUtil.coordinateTrans(T,A,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(T,E,y),I=SuperMap.Plot.PlottingUtil.coordinateTrans(T,x,y),G=SuperMap.Plot.PlottingUtil.coordinateTrans(T,Y,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[j,C,I,G,j]);var B=new SuperMap.Geometry.Point(0,-v),R=SuperMap.Plot.PlottingUtil.coordinateTrans(d,B,y),N=SuperMap.Plot.PlottingUtil.coordinateTrans(R,A,y),D=SuperMap.Plot.PlottingUtil.coordinateTrans(R,E,y),k=SuperMap.Plot.PlottingUtil.coordinateTrans(R,x,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(R,Y,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[N,D,k,z,N]),this.addScalePoint(s,0),this.addScalePoint(h,1);var F=new SuperMap.Geometry.Point(0,-v),K=SuperMap.Plot.PlottingUtil.coordinateTrans(d,F,y);this.addScalePoint(K,2),this.addScalePoint(G,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(h=SuperMap.Plot.PlottingUtil.clearSamePts(h),0===t){for(var y=[],f=0;f<h.length;f++)y.push(new SuperMap.Geometry.Point(h[f].x,h[f].y));for(var g=-1,M=0,b=new SuperMap.Geometry.Point(0,0),m=0;m<y.length-1;m++){var d=[];d.push(y[m]),d.push(y[m+1]);var v=SuperMap.Plot.PlottingUtil.projectPoint(e,y[m],y[m+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(v,d).index){var O=SuperMap.Plot.PlottingUtil.distance(e,v);-1==g?(g=m,b=v,M=O):M>O&&(g=m,b=v,M=O)}}if(-1==g||g>y.length-1)return;n=0;for(var U=0;U<g;U++)n+=SuperMap.Plot.PlottingUtil.distance(h[U],h[U+1]);if((n+=SuperMap.Plot.PlottingUtil.distance(h[g],b))<0||n>o)return;var w=n/o;this.scaleValues[0]=w}else if(1===t){a=o*this.scaleValues[0];var L=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a);if(-1===L.index)return;r=L.pt,s=h[L.index],p=h[L.index+1],u=SuperMap.Plot.PlottingUtil.radian(s,p);var V=(S=SuperMap.Plot.PlottingUtil.radian(r,e))-u;this.scaleValues[1]=V;var _=(n=SuperMap.Plot.PlottingUtil.distance(r,e))/o/1.5;this.scaleValues[2]=_}else if(2===t){if(a=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;P=r.pt,s=h[r.index],p=h[r.index+1],u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI;var T=SuperMap.Plot.PlottingUtil.circlePoint(P,.4*n,.4*n,u+c),A=SuperMap.Plot.PlottingUtil.distance(e,T)/(.4*n);this.scaleValues[5]=A}else if(3===t){if(a=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;P=r.pt,s=h[r.index],p=h[r.index+1],S=(u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI)+c;var E=new SuperMap.Geometry.Point(.6*n,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(P,E,S),Y=.4*n*this.scaleValues[5],j=new SuperMap.Geometry.Point(0,Y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(x,j,S),I=2*SuperMap.Plot.PlottingUtil.distance(C,e)/(.4*n);this.scaleValues[6]=I}}}}]),e}();SuperMap.Plot.AlgoSymbol30100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30001),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMap.Geometry.Point(e[r.index].x,e[r.index].y),u=new SuperMap.Geometry.Point(e[r.index+1].x,e[r.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,a,a,c+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S-157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S+157.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,h,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),g=this.getLeftSubSymbolPts(f),M=e[0].clone(),b=-1,m=null,d=1;d<e.length;d++)if(SuperMap.Plot.PlottingUtil.distance(M,e[d])>.5*f){b=d-1,m=SuperMap.Plot.PlottingUtil.linePnt(M,e[d],.5*f);break}-1===b&&(b=e.length-1,m=e[e.length-1]);var v=null;if(null!==m){for(var O=180*SuperMap.Plot.PlottingUtil.radian(M,m)/Math.PI,U=[],w=0;w<g.length;w++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(M,g[w],O));v=U[3].clone(),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}for(var L=this.getRightSubSymbolPts(f),V=e[e.length-1].clone(),_=-1,T=null,A=e.length-2;A>=0;A--)if(SuperMap.Plot.PlottingUtil.distance(V,e[A])>.5*f){_=A,T=SuperMap.Plot.PlottingUtil.linePnt(V,e[A],.5*f);break}if(-1===_&&(_=0,T=e[0]),null!==T){for(var E=180*SuperMap.Plot.PlottingUtil.radian(V,T)/Math.PI,x=[],Y=0;Y<L.length;Y++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(V,L[Y],E));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x)}if(b<=_){var j=[];j.push(m);for(var C=b+1;C<=_;C++)j.push(e[C]);j.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(P),null!==v&&this.addScalePoint(v),this.finish()}}}},{key:"getRightSubSymbolPts",value:function(t){var e=.25*t,l=[];return l.push(new SuperMap.Geometry.Point(0,2*e)),l.push(new SuperMap.Geometry.Point(2*e,2*e)),l.push(new SuperMap.Geometry.Point(2*e,-e)),l.push(new SuperMap.Geometry.Point(0,-2*e)),l.push(new SuperMap.Geometry.Point(0,2*e)),l}}]),e}();SuperMap.Plot.AlgoSymbol30002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();(o>.2||o<=0)&&(o=.2),this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMap.Geometry.Point(e[r.index].x,e[r.index].y),u=new SuperMap.Geometry.Point(e[r.index+1].x,e[r.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,a,a,c+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S-157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S+157.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,h,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),g=this.getLeftSubSymbolPts(f),M=e[0].clone(),b=-1,m=null,d=1;d<e.length;d++)if(SuperMap.Plot.PlottingUtil.distance(M,e[d])>.5*f){b=d-1,m=SuperMap.Plot.PlottingUtil.linePnt(M,e[d],.5*f);break}-1===b&&(b=e.length-1,m=e[e.length-1]);var v=null;if(null!==m){for(var O=180*SuperMap.Plot.PlottingUtil.radian(M,m)/Math.PI,U=[],w=0;w<g.length;w++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(M,g[w],O));v=U[3].clone(),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}for(var L=this.getRightSubSymbolPts(f),V=e[e.length-1].clone(),_=-1,T=null,A=e.length-2;A>=0;A--)if(SuperMap.Plot.PlottingUtil.distance(V,e[A])>.5*f){_=A,T=SuperMap.Plot.PlottingUtil.linePnt(V,e[A],.5*f);break}if(-1===_&&(_=0,T=e[0]),null!==T){for(var E=180*SuperMap.Plot.PlottingUtil.radian(V,T)/Math.PI,x=[],Y=0;Y<L.length;Y++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(V,L[Y],E));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x)}if(b<=_){var j=[];j.push(m);for(var C=b+1;C<=_;C++)j.push(e[C]);j.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(P),null!==v&&this.addScalePoint(v),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMap.Geometry.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var c=SuperMap.Plot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c,u).index){var P=SuperMap.Plot.PlottingUtil.distance(e,c);isNaN(P)||(-1==a?(a=p,s=c,r=P):r>P&&(a=p,s=c,r=P))}}if(-1===a||a>o.length-1)return;i=0;for(var S=0;S<a;S++)i+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[a],s))<0||i>n)return;var h=i/n;this.scaleValues[0]=h}else if(1===t){var y=n*this.scaleValues[0],f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,y);if(-1===f.index)return;var g=f.pt,M=o[f.index],b=o[f.index+1],m=SuperMap.Plot.PlottingUtil.radian(M,b),d=SuperMap.Plot.PlottingUtil.radian(g,e)-m;this.scaleValues[1]=d;var v=(i=SuperMap.Plot.PlottingUtil.distance(g,e))/n;this.scaleValues[2]=v}else if(2===t){var O=SuperMap.Plot.PlottingUtil.distance(e,l[0])/n;O>.35&&(O=.35),this.scaleValues[4]=O}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,l=[],o=new SuperMap.Geometry.Point(0,0),i=new SuperMap.Geometry.Point(e,-2*e),n=new SuperMap.Geometry.Point(2*e,0),a=new SuperMap.Geometry.Point(e,2*e);return l.push(o),l.push(i),l.push(n),l.push(a),l.push(o),l}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}]),e}();SuperMap.Plot.AlgoSymbol30001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var a=this.getSubSymbolScaleValue();this.scaleValues[2]=a}var r=e*this.scaleValues[2],s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMap.Geometry.Point(o[s.index].x,o[s.index].y),c=new SuperMap.Geometry.Point(o[s.index+1].x,o[s.index+1].y),P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,r,r,P+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p,S]);var h=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,y=new SuperMap.Geometry.Point(-.2*r,.05*r),f=new SuperMap.Geometry.Point(-.2*r,-.05*r),g=SuperMap.Plot.PlottingUtil.coordinateTrans(S,y,h),M=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,h);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,g,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addScalePoint(p,0),this.addScalePoint(S,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMap.Geometry.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var c=SuperMap.Plot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c,u).index){var P=SuperMap.Plot.PlottingUtil.distance(e,c);-1==a?(a=p,s=c,r=P):r>P&&(a=p,s=c,r=P)}}if(-1==a||a>o.length-1)return;i=0;for(var S=0;S<a;S++)i+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[a],s))<0||i>n)return;var h=i/n;this.scaleValues[0]=h}else if(1===t){var y=n*this.scaleValues[0],f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,y);if(-1===f.index)return;var g=f.pt,M=o[f.index],b=o[f.index+1],m=SuperMap.Plot.PlottingUtil.radian(M,b),d=SuperMap.Plot.PlottingUtil.radian(g,e)-m;this.scaleValues[1]=d;var v=(i=SuperMap.Plot.PlottingUtil.distance(g,e))/n;this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol30000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29903=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05,this.scaleValues[2]=.02):1===this.scaleValues.length?(this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()):2===this.scaleValues.length&&(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,r,a-180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);if(this.addArrow(p,this.scaleValues[2]),p.length>=2){var P=l*this.scaleValues[1],S=.3*P,h=.8*P,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l-h,e),f=1.1*P,g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l-f,e),M=180*SuperMap.Plot.PlottingUtil.radian(y.pts,g.pts)/Math.PI,b=SuperMap.Plot.PlottingUtil.circlePoint(y.pts,S,S,M+90),m=SuperMap.Plot.PlottingUtil.circlePoint(y.pts,S,S,M+270),d=SuperMap.Plot.PlottingUtil.circlePoint(g.pts,S,S,M+90),v=SuperMap.Plot.PlottingUtil.circlePoint(g.pts,S,S,M+270),O=[];O.push(b),O.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),(O=[]).push(d),O.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O)}}var U=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),w=SuperMap.Plot.PlottingUtil.circlePoint(U.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(w,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}}}]),e}();SuperMap.Plot.AlgoSymbol29903=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 10!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.4),l.scaleValues.push(.4),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var o,i=e*this.scaleValues[4],n=e*this.scaleValues[5],a=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),r=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],a+n);o=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],r));var s,p=e*this.scaleValues[6],u=e*this.scaleValues[7],c=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],a+u);s=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],c));var P=[];P.push(new SuperMap.Geometry.Point(o.pntLeft.x,o.pntLeft.y)),P.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),P.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),P.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var S=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);S=SuperMap.Plot.PlottingUtil.clearSamePts(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addScalePoint(o.pntLeft,3),this.addScalePoint(s.pntRight,4),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[0],l[1]);if(t<=2&&SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments),3===t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o,a=SuperMap.Plot.PlottingUtil.distance(i,l[0])/o;this.scaleValues[4]=n,this.scaleValues[5]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var r=SuperMap.Plot.PlottingUtil.distance(e,i)/o,s=SuperMap.Plot.PlottingUtil.distance(i,l[1])/o;this.scaleValues[6]=r,this.scaleValues[7]=s,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[9]=1:this.scaleValues[9]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol29800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y),r=new SuperMap.Geometry.Point(t[1].x,t[1].y),s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI,p=a,u=i[0],c=[];c.push(p),c.push(u),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c);var P=new SuperMap.Geometry.Point(0,.8*o),S=new SuperMap.Geometry.Point(0,-.8*o),h=SuperMap.Plot.PlottingUtil.coordinateTrans(p,P,s),y=SuperMap.Plot.PlottingUtil.coordinateTrans(p,S,s);(c=[]).push(h),c.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var f=new SuperMap.Geometry.Point(-.3*o,.4*o),g=new SuperMap.Geometry.Point(-.3*o,-.4*o),M=SuperMap.Plot.PlottingUtil.coordinateTrans(p,f,s),b=SuperMap.Plot.PlottingUtil.coordinateTrans(p,g,s);(c=[]).push(M),c.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var m=new SuperMap.Geometry.Point(.3*o,.4*o),d=new SuperMap.Geometry.Point(.3*o,-.4*o),v=SuperMap.Plot.PlottingUtil.coordinateTrans(p,m,s),O=SuperMap.Plot.PlottingUtil.coordinateTrans(p,d,s);(c=[]).push(v),c.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var U=new SuperMap.Geometry.Point((a.x+r.x)/2,(a.y+r.y)/2),w=new SuperMap.Geometry.Point((i[0].x+i[i.length-1].x)/2,(i[i.length-1].y+i[0].y)/2);(c=[]).push(U),c.push(w),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c);var L=SuperMap.Plot.PlottingUtil.coordinateTrans(U,P,s),V=SuperMap.Plot.PlottingUtil.coordinateTrans(U,S,s);(c=[]).push(L),c.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var _=SuperMap.Plot.PlottingUtil.coordinateTrans(U,f,s),T=SuperMap.Plot.PlottingUtil.coordinateTrans(U,g,s);(c=[]).push(_),c.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var A=SuperMap.Plot.PlottingUtil.coordinateTrans(U,m,s),E=SuperMap.Plot.PlottingUtil.coordinateTrans(U,d,s);(c=[]).push(A),c.push(E),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var x=r,Y=i[i.length-1];(c=[]).push(x),c.push(Y),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c);var j=SuperMap.Plot.PlottingUtil.coordinateTrans(x,P,s),C=SuperMap.Plot.PlottingUtil.coordinateTrans(x,S,s);(c=[]).push(j),c.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var I=SuperMap.Plot.PlottingUtil.coordinateTrans(x,f,s),G=SuperMap.Plot.PlottingUtil.coordinateTrans(x,g,s);(c=[]).push(I),c.push(G),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var B=SuperMap.Plot.PlottingUtil.coordinateTrans(x,m,s),R=SuperMap.Plot.PlottingUtil.coordinateTrans(x,d,s);(c=[]).push(B),c.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addScalePoint(i[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n=new SuperMap.Geometry.Point(l[0].x,l[0].y),a=new SuperMap.Geometry.Point(e.x,e.y),r=SuperMap.Plot.PlottingUtil.distance(n,a)/o;this.scaleValues[0]=r}}}]),e}();SuperMap.Plot.AlgoSymbol29401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var i=0;i<4;i++){var n=i*(o.length-1)/4,a=new SuperMap.Geometry.Point(o[n].x,o[n].y),r=new SuperMap.Geometry.Point(o[n+1].x,o[n+1].y),s=new SuperMap.Geometry.Point((a.x+r.x)/2,(a.y+r.y)/2),p=180*SuperMap.Plot.PlottingUtil.radian(s,r)/Math.PI,u=e*this.scaleValues[0]/2,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s,4*u,4*u,p+270),S=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,P,S],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMap.Geometry.Point(l[i].x,l[i].y),a=new SuperMap.Geometry.Point(l[i+1].x,l[i+1].y),r=new SuperMap.Geometry.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),P=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c,P])}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=Math.floor(o*l.length/4),n=new SuperMap.Geometry.Point(l[i].x,l[i].y),a=new SuperMap.Geometry.Point(l[i+1].x,l[i+1].y),r=new SuperMap.Geometry.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),P=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c,P],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(0)),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=this.scaleValues[0],a=this.scaleValues[1],r=SuperMap.Plot.PlottingUtil.polylineDistance(t),s=n*r,p=.083*r,u=0,c=.01*r,P=0,S=0;S<=i;S+=p){if(1==P||11==P||6==P){u=S+c;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(u,e);if(!h.bfind)return;l=h.index,o=h.pts;var y=[],f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[l],o);0==a?y.push(f.pntLeft):y.push(f.pntRight),1==P&&(this.scalePoints=[],this.addScalePoint(y[0])),y.push(o);var g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,y[0],y[1]),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,y[1],y[0]),b=[];b.push(g.pntLeft),b.push(g.pntRight),b.push(M.pntLeft),b.push(M.pntRight),b.push(g.pntLeft.clone());this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{SurroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0})}P++}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=i*n,r=.01*n,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,o);if(!s.bfind)return;var p=s.pts,u=s.index,c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o[u],p).pntLeft,P=SuperMap.Plot.PlottingUtil.projectPoint(e,c,p),S=SuperMap.Plot.PlottingUtil.distance(P,p),h=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P,p,e);this.scaleValues[1]=h?1:0,this.scaleValues[0]=S/n}}}}]),e}();SuperMap.Plot.AlgoSymbol29003=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29001),o(e,[{key:"calculateParts",value:function(){(function t(e,l,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,l);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,l,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"calculateParts",this).call(this)}}]),e}();SuperMap.Plot.AlgoSymbol29002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t.length,l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,i=.3*l,n=t[1].clone(),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],2*l);this.subSymbols.length>1&&(this.computeSubSymbol(this.subSymbols[0],n,i,o),this.computeSubSymbol(this.subSymbols[1],a,i,o));var r,s=[];2==e?(r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),s.push.apply(s,r)):3==e&&(r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),s=s.concat(r));var p,u=new SuperMap.Geometry.Point(.8*l,.1*l),c=new SuperMap.Geometry.Point(1.2*l,.1*l),P=new SuperMap.Geometry.Point(1.2*l,.1*-l),S=new SuperMap.Geometry.Point(.9*l,.1*-l),h=[];h.push(u),h.push(c),h.push(P),h.push(S);var y=[],f=0;for(f=0;f<4;f++)p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],h[f],o),y.push(p);var g=new SuperMap.Geometry.Point(-.8*l,.1*l),M=new SuperMap.Geometry.Point(-1.2*l,.1*l),b=new SuperMap.Geometry.Point(-1.1*l,.1*-l),m=new SuperMap.Geometry.Point(-.8*l,.1*-l);(h=[]).push(g),h.push(M),h.push(b),h.push(m);var d=[];for(f=0;f<4;f++)p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],h[f],o),d.push(p);for(var v,O=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],3*l),U=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],2*l),w=[],L=0;L<s.length-1;L++){var V=SuperMap.Plot.PlottingUtil.intersectLines(s[L],s[L+1],O,U);V.isIntersectLines&&(v=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(V.intersectPoint,s)).isOnPolyLine&&w.push(V.intersectPoint)}if(!(0>=w.length)&&(v=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(w[0],s)).isOnPolyLine){var _=[];for(f=v.index+1;f<s.length;f++)_.push(s[f]);for(f=0;f<=v.index;f++)_.push(s[f]);var T=[],A=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(y,w[0])?(T.push.apply(T,y),A.push.apply(A,d)):(T.push.apply(T,d),A.push.apply(A,y));var E=[],x=[];for(v=-1,f=0;f<_.length;f++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(T,_[f])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(A,_[f])){v=f;break}E.push(_[f])}if(-1!=v)for(f=v;f<_.length;f++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(A,_[f])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(T,_[f]))break;x.push(_[f])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol29001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t.length,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=[];2==l?(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),n.push.apply(n,e)):3==l&&(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),n=n.concat(e));var a,r=new SuperMap.Geometry.Point(.8*o,.1*o),s=new SuperMap.Geometry.Point(1.2*o,.1*o),p=new SuperMap.Geometry.Point(1.2*o,.1*-o),u=new SuperMap.Geometry.Point(.9*o,.1*-o),c=[];c.push(r),c.push(s),c.push(p),c.push(u);var P=[],S=0;for(S=0;S<4;S++)a=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),P.push(a);var h=new SuperMap.Geometry.Point(-.8*o,.1*o),y=new SuperMap.Geometry.Point(-1.2*o,.1*o),f=new SuperMap.Geometry.Point(-1.1*o,.1*-o),g=new SuperMap.Geometry.Point(-.8*o,.1*-o);(c=[]).push(h),c.push(y),c.push(f),c.push(g);var M=[];for(S=0;S<4;S++)a=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),M.push(a);var b,m=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],3*o),d=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],2*o),v=[];for(S=0;S<n.length-1;S++){var O=SuperMap.Plot.PlottingUtil.intersectLines(n[S],n[S+1],m,d);O.isIntersectLines&&(b=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(O.intersectPoint,n)).isOnPolyLine&&v.push(O.intersectPoint)}if(!(0>=v.length)&&(b=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(v[0],n)).isOnPolyLine){var U=[];for(S=b.index+1;S<n.length;S++)U.push(n[S]);for(S=0;S<=b.index;S++)U.push(n[S]);var w=[],L=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(P,v[0])?(w.push.apply(w,P),L.push.apply(L,M)):(w.push.apply(w,M),L.push.apply(L,P));var V=[],_=[];for(b=-1,S=0;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S])){b=S;break}V.push(U[S])}if(-1!==b)for(S=b;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S]))break;_.push(U[S])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_),this.addLine(V),this.addLine(_),this.finish()}}}},{key:"addLine",value:function(t){for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=0;l<t.length-2;l++){var o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.02*e,t);if(-1!==o.index){var i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*e,t);if(-1!==i.index){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.92*e,t);if(-1!==n.index&&(l===o.index||l===o.index+1||l===n.index||l===n.index+1||l===i.index||l===i.index+1)){var a=SuperMap.Plot.PlottingUtil.radian(t[l+1],t[l])*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(t[l+1],.02*e,.02*e,a+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[l+1],r])}}}}}}]),e}();SuperMap.Plot.AlgoSymbol29000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var i=e[0],n=e[1],a=e[e.length-2],r=e[e.length-1],s=l*this.scaleValues[0]*.6,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,n,i),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,a,r),c=p.pntLeft,P=u.pntRight,S=[];S.push(i),S.push(c);for(var h=new SuperMap.Geometry.Point((i.x+c.x)/2,(i.y+c.y)/2),y=SuperMap.Plot.PlottingUtil.polylineDistance(S)/2,f=[],g=180*SuperMap.Plot.PlottingUtil.radian(n,i)/Math.PI,M=270+g;M<=360+g;M+=3)f.push(SuperMap.Plot.PlottingUtil.circlePoint(h,y,y,M));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var b=[];b.push(r),b.push(P);var m=[];m.push(r),m.push(P);for(var d=new SuperMap.Geometry.Point((r.x+P.x)/2,(r.y+P.y)/2),v=SuperMap.Plot.PlottingUtil.polylineDistance(m)/2,O=[],U=180*SuperMap.Plot.PlottingUtil.radian(r,P)/Math.PI,w=90+U;w<=180+U;w+=3)O.push(SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,w));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.087081),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.087081),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=.5*SuperMap.Plot.PlottingUtil.distance(t[0],l),u=new SuperMap.Geometry.Point(l.x+o*a-p,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,s,180),this.addScalePoint(u);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(u,c,c,0);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l),s=.5*SuperMap.Plot.PlottingUtil.distance(l[0],a);if(0===t)i=(e.x+s-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var p=new SuperMap.Geometry.Point(a.x-s+r*i,a.y+r*n),u=SuperMap.Plot.PlottingUtil.distance(p,e)/r;this.scaleValues[0]=u}}}}]),e}();SuperMap.Plot.AlgoSymbol28400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.3),this.scaleValues.push(1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e,l,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.distance(o,i),a=this.scaleValues[0],r=this.scaleValues[1];if(SuperMap.Plot.PlottingUtil.equalFuzzy(1,r))e=SuperMap.Plot.PlottingUtil.radian(o,i)+270*SuperMap.Plot.PlottingUtil.DTOR;else e=SuperMap.Plot.PlottingUtil.radian(o,i)+90*SuperMap.Plot.PlottingUtil.DTOR,l=o,o=i,i=l;var s=n*a*.67,p=SuperMap.Plot.PlottingUtil.circlePoint(o,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,n*a,e*SuperMap.Plot.PlottingUtil.RTOD);var u=SuperMap.Plot.PlottingUtil.circlePoint(i,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],u,n*a,e*SuperMap.Plot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMap.Plot.PlottingUtil.RTOD,P=n*a,S=t[0].clone(),h=SuperMap.Plot.PlottingUtil.circlePoint(S,P,P,c);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l))[0].clone(),i=l[1].clone(),n=e.clone(),a=SuperMap.Plot.PlottingUtil.distance(o,i),r=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i)/a;if(r<0||SuperMap.Plot.PlottingUtil.equalFuzzy(r,0))return;this.scaleValues[0]=r,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,n)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}]),e}();SuperMap.Plot.AlgoSymbol28301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],o,i,0),this.scalePoints=[];var n=SuperMap.Plot.PlottingUtil.circlePoint(o,i,i,0);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol28300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,t[0],t[1]),i=o.pntRight,n=o.pntLeft,a=SuperMap.Plot.PlottingUtil.radian(i,n)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(i,l/6,l/6,a-170),s=SuperMap.Plot.PlottingUtil.circlePoint(n,l/6,l/6,a+10),p=[];p.push(r),p.push(i),p.push(n),p.push(s),this.scalePoints=[],this.addScalePoint(i);var u=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);u=SuperMap.Plot.PlottingUtil.clearSamePts(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var c=SuperMap.Plot.PlottingUtil.paraLine(p,e,!0),P=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=2*SuperMap.Plot.PlottingUtil.distance(e,l[1])/o;this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol28201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28200=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,i=0,n=0;n<t.length-1;n++)i+=SuperMap.Plot.PlottingUtil.distance(e,l);var a=this.scaleValues[0]*i;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[e,new SuperMap.Geometry.Point(e.x+a,e.y)],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var r=180*this.scaleValues[1]/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o-r),p=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o+r);this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,[s,l,p],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],t[1]],{surroundLineFlag:!1},!0);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,o-90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,s],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var c=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,o+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,p],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c],{surroundLineFlag:!1},!0);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,o+180);this.addScalePoint(new SuperMap.Geometry.Point(P.x,P.y),0),this.addScalePoint(p,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===t){var r=SuperMap.Plot.PlottingUtil.distance(o,e)/a;this.scaleValues[0]=r}if(1===t){var s=180*SuperMap.Plot.PlottingUtil.radian(o,e)/Math.PI,p=Math.abs(s-n);if(p>270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}]),e}();SuperMap.Plot.AlgoSymbol28100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n,a,r,s=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,p=new SuperMap.Geometry.Point(t[0].x,t[0].y),u=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=new SuperMap.Geometry.Point(0,0);if(2<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var S=0;S<e.length;S++)n.push(new SuperMap.Geometry.Point(e[S].x,e[S].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),a=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),P=new SuperMap.Geometry.Point(a.x,a.y),(r=[]).push(t[0]),r.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var h=new SuperMap.Geometry.Point(0,0);if(3<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[2].x,t[2].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i)));var y=[];if(0==e.length)return void(y.length>0&&(y=[]));(n=[]).push(t[0]);for(var f=0;f<e.length;f++)n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});for(var g=new SuperMap.Geometry.Point(t[1].x,t[1].y),M=SuperMap.Plot.PlottingUtil.distance(p,g)*this.scaleValues[0],b=[],m=90;m<=270;m+=3)b.push(SuperMap.Plot.PlottingUtil.circlePoint(p,M,M,c+m));n=[];for(var d=b.length-1;d>=0;d--)n.push(new SuperMap.Geometry.Point(b[d].x,b[d].y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(b[0].x,b[0].y)),n.push(new SuperMap.Geometry.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(e[0].x,e[0].y)),n.push(new SuperMap.Geometry.Point(b[b.length-1].x,b[b.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),a=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),h=new SuperMap.Geometry.Point(a.x,a.y),(r=[]).push(P),r.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var v=new SuperMap.Geometry.Point(0,0);if(4<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[3].x,t[3].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<=c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var O=0;O<e.length;O++)n.push(new SuperMap.Geometry.Point(e[O].x,e[O].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),a=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),v=new SuperMap.Geometry.Point(a.x,a.y),(r=[]).push(h),r.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var U=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],w=SuperMap.Plot.PlottingUtil.circlePoint(p,U,U,c+180);this.addScalePoint(w,0)}var L=SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),V=SuperMap.Plot.PlottingUtil.circlePoint(p,L,L,c+s);this.addScalePoint(V,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l,o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),0==t){if(3>o.length)return;var i=new SuperMap.Geometry.Point(o[0].x,o[0].y),n=new SuperMap.Geometry.Point(e.x,e.y),a=SuperMap.Plot.PlottingUtil.distance(i,n),r=new SuperMap.Geometry.Point(o[1].x,o[1].y);if((l=a/SuperMap.Plot.PlottingUtil.distance(i,r))>=2.5)return;this.scaleValues[0]=l}else if(1==t){var s=new SuperMap.Geometry.Point(o[0].x,o[0].y),p=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y),u=SuperMap.Plot.PlottingUtil.radian(s,p),c=new SuperMap.Geometry.Point(e.x,e.y);if(l=SuperMap.Plot.PlottingUtil.radian(s,c)-u,(l=Math.abs(l))>Math.PI/2&&l<3*Math.PI/2)return;l>3*Math.PI/2&&l<=2*Math.PI&&(l=2*Math.PI-l),this.scaleValues[1]=Math.abs(l)}}}}]),e}();SuperMap.Plot.AlgoSymbol28000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27902=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol27900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMap.Geometry.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[new SuperMap.Geometry.Point(t[0].x+e*(this.scaleValues[0]+.1),t[0].y+e*this.scaleValues[0]),new SuperMap.Geometry.Point(t[0].x-e*(this.scaleValues[0]+.1),t[0].y+e*this.scaleValues[0])]);var l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27901=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol27900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMap.Geometry.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[new SuperMap.Geometry.Point(t[0].x+e*(this.scaleValues[0]+.1),t[0].y-e*this.scaleValues[0]),new SuperMap.Geometry.Point(t[0].x-e*(this.scaleValues[0]+.1),t[0].y-e*this.scaleValues[0])]);var l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.25),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMap.Geometry.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1});var l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y),o=new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[1].y),i=new SuperMap.Geometry.Point(e.x,e.y),n=SuperMap.Plot.PlottingUtil.distance(l,i)/SuperMap.Plot.PlottingUtil.distance(l,o);.9<n&&(n=.9),this.scaleValues[0]=n}}}]),e}();SuperMap.Plot.AlgoSymbol27900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27701=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.03);for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var n=this.scaleValues[0]*e*2,a=this.scaleValues[0]*e,r=new SuperMap.Geometry.Point(i.x-n-a,i.y),s=new SuperMap.Geometry.Point(i.x-n,i.y),p=new SuperMap.Geometry.Point(i.x-n+a,i.y),u=new SuperMap.Geometry.Point(i.x+n,i.y),c=new SuperMap.Geometry.Point(i.x+n+a,i.y),P=new SuperMap.Geometry.Point(i.x+n+2*a,i.y),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,r,s),h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,s,p),y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,u,c),f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,c,P),g=[];g.push(new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y)),g.push(new SuperMap.Geometry.Point(r.x,r.y)),g.push(new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(new SuperMap.Geometry.Point(h.pntLeft.x,h.pntLeft.y)),g.push(new SuperMap.Geometry.Point(s.x,s.y)),g.push(new SuperMap.Geometry.Point(h.pntRight.x,h.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)),g.push(new SuperMap.Geometry.Point(u.x,u.y)),g.push(new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(new SuperMap.Geometry.Point(f.pntLeft.x,f.pntLeft.y)),g.push(new SuperMap.Geometry.Point(c.x,c.y)),g.push(new SuperMap.Geometry.Point(f.pntRight.x,f.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y),r=new SuperMap.Geometry.Point(t[1].x,t[1].y),s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI;if(90<s&&s<270){var p=a;a=r,r=p,s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI}var u=new SuperMap.Geometry.Point(.25*e,0),c=new SuperMap.Geometry.Point(.25*e+.2*o,.3*o),P=new SuperMap.Geometry.Point(.25*e+.2*o,-.3*o),S=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,s),h=SuperMap.Plot.PlottingUtil.coordinateTrans(a,c,s),y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,P,s),f=[];f.push(new SuperMap.Geometry.Point(h.x,h.y)),f.push(new SuperMap.Geometry.Point(S.x,S.y)),f.push(new SuperMap.Geometry.Point(y.x,y.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=new SuperMap.Geometry.Point(.3*e,0),M=new SuperMap.Geometry.Point(.3*e+.2*o,.3*o),b=new SuperMap.Geometry.Point(.3*e+.2*o,-.3*o),m=SuperMap.Plot.PlottingUtil.coordinateTrans(a,g,s),d=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,s),v=SuperMap.Plot.PlottingUtil.coordinateTrans(a,b,s);(f=[]).push(new SuperMap.Geometry.Point(d.x,d.y)),f.push(new SuperMap.Geometry.Point(m.x,m.y)),f.push(new SuperMap.Geometry.Point(v.x,v.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var O=new SuperMap.Geometry.Point(.7*e,0),U=new SuperMap.Geometry.Point(.7*e+.2*o,.3*o),w=new SuperMap.Geometry.Point(.7*e+.2*o,-.3*o),L=SuperMap.Plot.PlottingUtil.coordinateTrans(a,O,s),V=SuperMap.Plot.PlottingUtil.coordinateTrans(a,U,s),_=SuperMap.Plot.PlottingUtil.coordinateTrans(a,w,s);(f=[]).push(new SuperMap.Geometry.Point(V.x,V.y)),f.push(new SuperMap.Geometry.Point(L.x,L.y)),f.push(new SuperMap.Geometry.Point(_.x,_.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var T=new SuperMap.Geometry.Point(.75*e,0),A=new SuperMap.Geometry.Point(.75*e+.2*o,.3*o),E=new SuperMap.Geometry.Point(.75*e+.2*o,-.3*o),x=SuperMap.Plot.PlottingUtil.coordinateTrans(a,T,s),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,A,s),j=SuperMap.Plot.PlottingUtil.coordinateTrans(a,E,s);(f=[]).push(new SuperMap.Geometry.Point(Y.x,Y.y)),f.push(new SuperMap.Geometry.Point(x.x,x.y)),f.push(new SuperMap.Geometry.Point(j.x,j.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addScalePoint(i[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){for(var l=0,o=0;o<this.controlPoints.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[o],this.controlPoints[o+1]);var i=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],e)/l;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol27700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),i=new SuperMap.Geometry.Point(o.x,0);if(!1===this.polylineConnectLocationPoint){for(var n=0,a=-1,r=0;r<l.length-1;r++){var s=SuperMap.Plot.PlottingUtil.intersectLines(o,new SuperMap.Geometry.Point(o.x,o.y+1),l[r],l[r+1]);s.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,l[r],l[r+1])&&i.x===s.intersectPoint.x&&(0==n?(i.y=s.intersectPoint.y,a=r):i.y<s.intersectPoint.y&&(i.y=s.intersectPoint.y,a=r),n++))}var p=this.getSubSymbolScaleValue()*e,u=[];u.push(i);for(var c=a+1;c<l.length-1;c++)u.push(new SuperMap.Geometry.Point(l[c].x,l[c].y));for(var P=0;P<=a;P++)u.push(new SuperMap.Geometry.Point(l[P].x,l[P].y));var S=.8*p,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(u,S);if(-1===h.index)return;var y=[];y.push(h.pt);for(var f=h.index+1;f<u.length-1;f++)y.push(u[f]);u=[];for(var g=y.length-1;g>0;g--)u.push(y[g]);var M=SuperMap.Plot.PlottingUtil.findPointInPolyLine(u,S);if(-1===M.index)return;(y=[]).push(M.pt);for(var b=M.index+1;b<u.length-1;b++)y.push(u[b]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,p,0)}else{var m=t[0],d=t[1],v=SuperMap.Plot.PlottingUtil.distance(m,d),O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*v,[m,d]);if(-1===O.index)return;var U=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*v,[m,d]);if(-1===U.index)return;var w=[];w.push(t[0]),w.push(O.pts),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w),(w=[]).push(U.pts);for(var L=1;L<t.length;L++)w.push(t[L]);w.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var V=new SuperMap.Geometry.Point((O.pts.x+U.pts.x)/2,(O.pts.y+U.pts.y)/2);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],V,.1*v,0)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,c=new SuperMap.Geometry.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),P=SuperMap.Plot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),S=SuperMap.Plot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),h=SuperMap.Plot.PlottingUtil.radian(S,P)*SuperMap.Plot.PlottingUtil.RTOD,y=[];y.push(P),y.push.apply(y,s),y.push.apply(y,p),y.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,.9*u,h-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,h+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMap.Plot.PlottingUtil.radian(l[0],l[1])*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(l[0],n,n,90+a),s=SuperMap.Plot.PlottingUtil.circlePoint(l[1],n,n,90+a),p=new SuperMap.Geometry.Point((r.x+s.x)/2,(r.y+s.y)/2),u=SuperMap.Plot.PlottingUtil.distance(p,e)/o;u>=.8&&(u=.8),this.scaleValues[1]=u}}}}]),e}();SuperMap.Plot.AlgoSymbol27100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(2===this.controlPoints.length)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);else if(3===this.controlPoints.length){var e=new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y),l=new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[1].y),o=new SuperMap.Geometry.Point(this.controlPoints[2].x,this.controlPoints[2].y),i=SuperMap.Plot.PlottingUtil.distance(l,o);if(0>=i)return;this.scaleValues=[];var n=SuperMap.Plot.PlottingUtil.distance(e,l)/i;this.scaleValues.push(n);var a=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD;a>90?a-=90:a=270+a,this.scaleValues.push(a*SuperMap.Plot.PlottingUtil.DTOR);var r=SuperMap.Plot.PlottingUtil.radian(e,o)*SuperMap.Plot.PlottingUtil.RTOD;r>90?r-=90:r=270+r,this.scaleValues.push(r*SuperMap.Plot.PlottingUtil.DTOR);var s=this.scaleValues[0]*i,p=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD+90,u=this.scaleValues[2]*SuperMap.Plot.PlottingUtil.RTOD+90;p<u&&(p+=360);for(var c,P=[],S=p;S>=u;S-=4)c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,S),P.push(c);S!=u&&(c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,u),P.push(c)),P.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol26800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),r=2*o*.8,s=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,r,s),0===this.scaleValues[1]?this.addScalePoint(i[0]):this.addScalePoint(n[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===o)return;if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol26700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=.1*i,a=.5*n,r=this.computeDashLine(n,a,e),s=.01*i,p=0;p<r.length;p++)l=SuperMap.Plot.PlottingUtil.paraLine(r[p],s,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),o=SuperMap.Plot.PlottingUtil.paraLine(r[p],s,!1),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=[],a=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=l[0].clone(),s=1,p=0,u=!0,c=!0;p<a;){var P;(i=[]).push(r),p+=t;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=S.index,o=S.pts,!(u=S.bfind))break;if(s<P)for(var h=s;h<P;h++)i.push(l[h]);i.push(o),n.push(i),p+=e;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=y.index,r=y.pts,s=P+1,!(c=y.bfind))break}if(!u){(i=[]).push(r);for(var f=s;f<l.length;f++)i.push(l[f]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||n.push(i)}if(!c){var g=l[l.length-1],M=SuperMap.Plot.PlottingUtil.distance(o,g);if(M*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(M,0)){var b=SuperMap.Plot.PlottingUtil.linePnt(g,o,M);(i=[]).push(b),i.push(g),n.push(i)}}return n}}]),e}();SuperMap.Plot.AlgoSymbol26601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26600=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=.1*SuperMap.Plot.PlottingUtil.polylineDistance(e),o=.5*l;this.computeDashLine(l,o,e),this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var c;(i=[]).push(a),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=P.index,o=P.pts,!(p=P.bfind))break;if(r<c)for(var S=r;S<c;S++)i.push(l[S]);i.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),s+=e;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=h.index,a=h.pts,r=c+1,!(u=h.bfind))break}if(!p){(i=[]).push(a);for(var y=r;y<l.length;y++)i.push(l[y]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],g=SuperMap.Plot.PlottingUtil.distance(o,f);if(g*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(g,0)){var M=SuperMap.Plot.PlottingUtil.linePnt(f,o,g);(i=[]).push(M),i.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMap.Plot.AlgoSymbol26600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26503=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol22000),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}for(var i=l*this.scaleValues[0],n=this.getLinePts(e,this.scaleValues[0]),a=[],r=[],s=0;s<=n.startIndex;s++)a.push(e[s]);if(a.push(n.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),n.endIndex<=e.length){r.push(n.endPt);for(var p=n.endIndex+1;p<=e.length-1;p++)r.push(e[p]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}var u=.5*i,c=new SuperMap.Geometry.Point(n.endPt.x,n.endPt.y),P=new SuperMap.Geometry.Point(n.startPt.x,n.startPt.y),S=SuperMap.Plot.PlottingUtil.distance(c,P),h=.2*S,y=SuperMap.Plot.PlottingUtil.linePnt(c,P,h),f=SuperMap.Plot.PlottingUtil.linePnt(P,c,h),g=.5*S,M=SuperMap.Plot.PlottingUtil.linePnt(c,P,g),b=new SuperMap.Geometry.Point((f.x+M.x)/2,(f.y+M.y)/2),m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,f,b),d=m.pntLeft,v=m.pntRight,O=[];O.push(v),O.push(f),O.push(d),this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,O,null,!0);var U=.1*S,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(U,f,M),L=w.pntLeft,V=w.pntRight,_=[];_.push(f),_.push(L),_.push(V);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var T=[];T.push(M),T.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,null,!0);var A=new SuperMap.Geometry.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),E=180*SuperMap.Plot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,x=.5*l*this.scaleValues[0],Y=SuperMap.Plot.PlottingUtil.circlePoint(A,x,x,E+90),j=e[0],C=e[1],I=e[e.length-2],G=e[e.length-1],B=.5*i,R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,C,j),N=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,I,G),D=R.pntLeft,k=N.pntLeft,z=[];z.push(j),z.push(D),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,z);var F=[];F.push(G),F.push(k),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,F),this.addScalePoint(Y),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol26503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol26502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol22000),e}();SuperMap.Plot.AlgoSymbol26502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol26501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,l/2);if(-1!==o.index){var i=o.pt,n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n;var a=1.5*this.scaleValues[0]*l,r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,e[o.index],i),s=[];s.push(r.pntLeft),s.push(i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,null,!0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol26500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.splice(e,0,0);var l=this.getSubSymbolScaleValue();this.scaleValues[t.length]=.8*l,this.scaleValues[t.length+1]=l,this.scaleValues[t.length+2]=-1.5;var o=.5*SuperMap.Plot.PlottingUtil.distance(t[0],t[1])/SuperMap.Plot.PlottingUtil.polylineDistance(t);this.scaleValues[t.length+3]=o,this.scaleValues[t.length+4]=l}this.isEdit&&this.scaleValues.length===t.length+3&&(this.scaleValues[t.length+3]=.5*SuperMap.Plot.PlottingUtil.distance(t[0],t[1])/SuperMap.Plot.PlottingUtil.polylineDistance(t),this.scaleValues[t.length+4]=.05);var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=i*this.scaleValues[this.scaleValues.length-1],a=i*this.scaleValues[this.scaleValues.length-2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a-.5*n);if(-1!==r.index){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a+.5*n);if(-1!==s.index){var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a).pt,u=SuperMap.Plot.PlottingUtil.radian(r.pt,s.pt)*SuperMap.Plot.PlottingUtil.RTOD;if(0===this.subSymbols.length){var c=new SuperMap.Geometry.Point(p.x+.1*n,p.y);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[p,c],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0)}else this.computeSubSymbol(this.subSymbols[0],p,.8*n,u);for(var P=[],S=[],h=0;h<=r.index;h++)P.push(t[h]);P.push(r.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),S.push(s.pt);for(var y=r.index+1;y<=t.length-1;y++)S.push(t[y]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var f,g,M,b=SuperMap.Plot.PlottingUtil.polylineDistance(t),m=this.scaleValues.length,d=b*this.scaleValues[m-5],v=this.scaleValues[0];if(0===v)f=(g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntRight;else if(1===v)f=(g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntLeft;else{if(2!==v)return;f=t[0]}var O,U,w,L,V=[];if(V.push(t[0]),V.push(f),this.addScalePoint(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,null,!0),t.length>this.minEditPts){for(var _,T,A,E,x,Y=1;Y<t.length-1;Y++){var j,C,I,G=this.scaleValues[Y];if(0===G){for(_=t[Y],C=t[Y+1],I=t[Y-1],T=180*SuperMap.Plot.PlottingUtil.radian(_,C)/Math.PI,A=180*SuperMap.Plot.PlottingUtil.radian(_,I)/Math.PI-T;A<0;)A+=360;E=A/2,x=t[Y+1].clone(),x=SuperMap.Plot.PlottingUtil.rotateAngle(_,E*Math.PI/180,x),j=SuperMap.Plot.PlottingUtil.linePnt(_,x,d)}else if(1===G){for(_=t[Y],C=t[Y+1],I=t[Y-1],T=180*SuperMap.Plot.PlottingUtil.radian(_,C)/Math.PI,A=180*SuperMap.Plot.PlottingUtil.radian(_,I)/Math.PI-T;A<0;)A+=360;E=180-A/2,x=t[Y-1].clone(),x=SuperMap.Plot.PlottingUtil.rotateAngle(_,E*Math.PI/180,x),j=SuperMap.Plot.PlottingUtil.linePnt(_,x,d)}else{if(2!==G)continue;j=t[Y]}(O=[]).push(t[Y]),O.push(j),this.addScalePoint(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0)}var B=t.length,R=this.scaleValues[B-1];if(0===R)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[B-2],t[B-1])).pntLeft,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[B-2],t[B-1]).pntLeft;else if(1===R)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[B-2],t[B-1])).pntRight,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[B-2],t[B-1]).pntRight;else{if(2!==R)return;U=t[B-1].clone(),w=t[B-1].clone()}(O=[]).push(t[B-1]),O.push(U),this.addScalePoint(U),this.addScalePoint(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0)}else{var N=this.scaleValues[1];if(0===N)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntLeft,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntLeft;else if(1===N)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntRight,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntRight;else{if(2!==N)return;U=t[1].clone(),w=t[1].clone()}(O=[]).push(t[1]),O.push(U),this.addScalePoint(U),this.addScalePoint(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0)}var D=this.scaleValues.length,k=this.scaleValues[D-4],z=Math.abs(b*k),F=this.scaleValues[D-3],K=Math.abs(d*F);if(-1!==(g=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,z)).index){var q=g.index,W=g.pt;L=F>=0?(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(K,t[q],W)).pntRight:(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(K,t[q],W)).pntLeft;var J=SuperMap.Plot.PlottingUtil.linePnt(W,L,K),Z=.3*K,H=SuperMap.Plot.PlottingUtil.linePnt(J,W,Z),Q=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*Z,J,H)).pntLeft,X=M.pntRight;(O=[]).push(W),O.push(J),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0),(O=[]).push(Q),O.push(J),O.push(X);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,O,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(J),this.addScalePoint(p);var $=SuperMap.Plot.PlottingUtil.radian(r.pt,s.pt)*SuperMap.Plot.PlottingUtil.RTOD+90,tt=SuperMap.Plot.PlottingUtil.circlePoint(p,.5*n,.5*n,$);this.addScalePoint(tt),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u,c,P,S=SuperMap.Plot.PlottingUtil.polylineDistance(l),h=l.length,y=e;if(t>=0&&t<h){var f=!1;if(0==t)f=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],y);else if(t==h-1)f=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],y);else{var g=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1]),M=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],y);if(g!=M)f=M;else{var b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],y);f=b==M?M:b}}this.scaleValues[t]=f?1:0}else if(t==h){o=SuperMap.Plot.PlottingUtil.distance(l[h-1],y);var m=(o/=2)/S;this.scaleValues[t]=m}else if(t===h+1){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var d=0;d<l.length-1;d++)(r=[]).push(l[d]),r.push(l[d+1]),p=SuperMap.Plot.PlottingUtil.projectPoint(y,l[d],l[d+1]),(s=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(P=SuperMap.Plot.PlottingUtil.distance(y,p),-1==i?(i=d,a=p,n=P):n>P&&(i=d,a=p,n=P));if(-1==i||i>l.length-1)return;u=0;for(var v=0;v<i;v++){var O=l[v],U=l[v+1];u+=SuperMap.Plot.PlottingUtil.distance(O,U)}if(c=l[i],(u+=SuperMap.Plot.PlottingUtil.distance(c,a))<0||u>S)return;var w=u/S;this.scaleValues[h+1]=w;var L,V=this.scaleValues.length;o=S*this.scaleValues[V-5],L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[i],l[i+1],y)?n/o:-Math.abs(n/o),this.scaleValues[h+2]=L}else if(t===h+2){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var _=0;_<l.length-1;_++)(r=[]).push(l[_]),r.push(l[_+1]),p=SuperMap.Plot.PlottingUtil.projectPoint(y,l[_],l[_+1]),(s=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(P=SuperMap.Plot.PlottingUtil.distance(y,p),-1===i?(i=_,a=p,n=P):n>P&&(i=_,a=p,n=P));if(-1===i||i>l.length-1)return;u=0;for(var T=0;T<i;T++)u+=SuperMap.Plot.PlottingUtil.distance(l[T],l[T+1]);if(c=l[i],(u+=SuperMap.Plot.PlottingUtil.distance(c,a))<0||u>S)return;.1*S<u&&.9*S>u&&(this.scaleValues[this.scaleValues.length-2]=u/S)}else if(t===h+3){var A=this.scaleValues[this.scaleValues.length-2]*S;if(-1===(s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,A)).index)return;var E=2*SuperMap.Plot.PlottingUtil.distance(s.pt,e)/S;E>.15&&(E=.15),this.scaleValues[this.scaleValues.length-1]=E}}}}]),e}();SuperMap.Plot.AlgoSymbol26400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25901=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l/2,s=[];s.push(new SuperMap.Geometry.Point(a.x-r,a.y)),s.push(new SuperMap.Geometry.Point(a.x+r,a.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,null,!0);var p=.3*r,u=[];u.push(new SuperMap.Geometry.Point(a.x-r,a.y+p/2)),u.push(new SuperMap.Geometry.Point(a.x-r,a.y-p/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,null,!0);var c=[];c.push(new SuperMap.Geometry.Point(a.x+r,a.y+p/2)),c.push(new SuperMap.Geometry.Point(a.x+r,a.y-p/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,null,!0);var P=[];P.push(new SuperMap.Geometry.Point(a.x,a.y)),P.push(new SuperMap.Geometry.Point(a.x,a.y+1.5*p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,null,!0);var S=[];S.push(new SuperMap.Geometry.Point(a.x-p/2,a.y)),S.push(new SuperMap.Geometry.Point(a.x-p,a.y+p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0);var h=[];h.push(new SuperMap.Geometry.Point(a.x+p/2,a.y)),h.push(new SuperMap.Geometry.Point(a.x+p,a.y+p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,null,!0),this.addScalePoint(a);var y=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(y),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1);if(n.length>2&&a.length>0){for(var r=[],s=0;s<n.length;s++)r.push(n[s]);var p=a[0],u=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(r,p)||(u=u.concat(n),n=(n=[]).concat(a),a=(a=[]).concat(u))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},!0);var c=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),P=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=4*this.getSubSymbolScaleValue());var S=this.scaleValues[0],h=this.scaleValues[1],y=this.scaleValues[2],f=new SuperMap.Geometry.Point(c.x+P*S,c.y+P*h),g=y*P/2,M=[];M.push(new SuperMap.Geometry.Point(f.x-g,f.y)),M.push(new SuperMap.Geometry.Point(f.x+g,f.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,null,!0);var b=.3*g,m=[];m.push(new SuperMap.Geometry.Point(f.x-g,f.y+b/2)),m.push(new SuperMap.Geometry.Point(f.x-g,f.y-b/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,null,!0);var d=[];d.push(new SuperMap.Geometry.Point(f.x+g,f.y+b/2)),d.push(new SuperMap.Geometry.Point(f.x+g,f.y-b/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,null,!0);var v=[];v.push(new SuperMap.Geometry.Point(f.x,f.y)),v.push(new SuperMap.Geometry.Point(f.x,f.y+1.5*b)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,null,!0);var O=[];O.push(new SuperMap.Geometry.Point(f.x-b/2,f.y)),O.push(new SuperMap.Geometry.Point(f.x-b,f.y+b)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0);var U=[];U.push(new SuperMap.Geometry.Point(f.x+b/2,f.y)),U.push(new SuperMap.Geometry.Point(f.x+b,f.y+b)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U,null,!0),this.addScalePoint(f);var w=SuperMap.Plot.PlottingUtil.circlePoint(f,g,g,90);this.addScalePoint(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)o=(e.x-n.x)/a,this.scaleValues[0]=o,i=(e.y-n.y)/a,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*o,n.y+a*i),s=2*SuperMap.Plot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l/2,s=[];s.push(new SuperMap.Geometry.Point(a.x,a.y)),s.push(new SuperMap.Geometry.Point(a.x,a.y+r));this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var p=[];p.push(new SuperMap.Geometry.Point(a.x-1.5*r,a.y+r)),p.push(new SuperMap.Geometry.Point(a.x+1.5*r,a.y+r)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,null,!0),this.addScalePoint(a);var u=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(u),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.08)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1);if(n.length>2&&a.length>0){for(var r=[],s=new SuperMap.Geometry.Point(0,0),p=0;p<n.length;p++)r.push(n[p]);s=a[0];var u=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(r,s)||(u=u.concat(n),n=(n=[]).concat(a),a=(a=[]).concat(u))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},!0);var c=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),P=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var S=this.scaleValues[0],h=this.scaleValues[1],y=this.scaleValues[2],f=new SuperMap.Geometry.Point(c.x+P*S,c.y+P*h),g=y*P/2,M=[];M.push(new SuperMap.Geometry.Point(f.x,f.y)),M.push(new SuperMap.Geometry.Point(f.x,f.y+g));this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,M,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var b=[];b.push(new SuperMap.Geometry.Point(f.x-1.5*g,f.y+g)),b.push(new SuperMap.Geometry.Point(f.x+1.5*g,f.y+g)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,null,!0),this.addScalePoint(f);var m=SuperMap.Plot.PlottingUtil.circlePoint(f,g,g,90);this.addScalePoint(m),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0==n)return;if(0==t)o=(e.x-a.x)/n,this.scaleValues[0]=o,i=(e.y-a.y)/n,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(a.x+n*o,a.y+n*i),s=2*SuperMap.Plot.PlottingUtil.distance(r,e)/n;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25701=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);for(var s=!0,p=a.x,u=a.x;s;){s=!1;for(var c,P,S,h,y,f=[],g=new SuperMap.Geometry.Point(p,a.y),M=SuperMap.Plot.PlottingUtil.circlePoint(g,10,10,45),b=0;b<t.length-1;b++){var m=SuperMap.Plot.PlottingUtil.intersectLines(g,M,t[b],t[b+1]);m.isIntersectLines&&(P=m.intersectPoint,(S=[]).push(t[b]),S.push(t[b+1]),(c=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,S)).isOnPolyLine&&f.push(P))}if(1<f.length){this.sortPts2D(f);for(var d=0;d<f.length-1;d++)y=new SuperMap.Geometry.Point((f[d].x+f[d+1].x)/2,(f[d].y+f[d+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,y)&&((h=[]).push(f[d]),h.push(f[d+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,n,!0))}f.length>0&&(s=!0),f=[];for(var v=new SuperMap.Geometry.Point(u,a.y),O=SuperMap.Plot.PlottingUtil.circlePoint(v,5,5,45),U=0;U<t.length-1;U++)(c=SuperMap.Plot.PlottingUtil.intersectLines(v,O,t[U],t[U+1])).isIntersectLines&&(P=c.intersectPoint,(S=[]).push(t[U]),S.push(t[U+1]),(c=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,S)).isOnPolyLine&&f.push(P));if(1<f.length){this.sortPts2D(f);for(var w=0;w<f.length-1;w++)y=new SuperMap.Geometry.Point((f[w].x+f[w+1].x)/2,(f[w].y+f[w+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,y)&&((h=[]).push(f[w]),h.push(f[w+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,n,!0))}f.length>0&&(s=!0),p-=r,u+=r}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMap.Geometry.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol25701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i,n,a=(l-e)/50,r=SuperMap.Plot.PlottingUtil.paraPolygon(t,a,!0),s=SuperMap.Plot.PlottingUtil.paraPolygon(t,a,!1);if(r.length>2&&s.length>0){for(var p=[],u=0;u<r.length;u++)p.push(r[u]);i=s[0],n=[],SuperMap.Plot.PlottingUtil.ptIsInPolygon(p,i)||(n=n.concat(r),r=(r=[]).concat(s),s=(s=[]).concat(n))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r);var c={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c),s.push(s[0]);for(var P=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),S=10*a,h=!0,y=P.x,f=P.x;h;){h=!1;for(var g,M,b,m=[],d=new SuperMap.Geometry.Point(y,P.y),v=SuperMap.Plot.PlottingUtil.circlePoint(d,10,10,45),O=0;O<s.length-1;O++){var U=SuperMap.Plot.PlottingUtil.intersectLines(d,v,s[O],s[O+1]);U.isIntersectLines&&(M=U.intersectPoint,(n=[]).push(s[O]),n.push(s[O+1]),(g=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,n)).isOnPolyLine&&m.push(M))}if(1<m.length){this.sortPts2D(m);for(var w=0;w<m.length-1;w++)i=new SuperMap.Geometry.Point((m[w].x+m[w+1].x)/2,(m[w].y+m[w+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(s,i)&&((b=[]).push(m[w]),b.push(m[w+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,c))}m.length>0&&(h=!0),m=[];for(var L=new SuperMap.Geometry.Point(f,P.y),V=SuperMap.Plot.PlottingUtil.circlePoint(L,5,5,45),_=0;_<s.length-1;_++)(g=SuperMap.Plot.PlottingUtil.intersectLines(L,V,s[_],s[_+1])).isIntersectLines&&(M=g.intersectPoint,(n=[]).push(s[_]),n.push(s[_+1]),(g=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,n)).isOnPolyLine&&m.push(M));if(1<m.length){this.sortPts2D(m);for(var T=0;T<m.length-1;T++)i=new SuperMap.Geometry.Point((m[T].x+m[T+1].x)/2,(m[T].y+m[T+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(s,i)&&((b=[]).push(m[T]),b.push(m[T+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,c))}m.length>0&&(h=!0),y-=S,f+=S}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMap.Geometry.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol25700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25600),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var l=this.scaleValues[0]*e*.5,o=SuperMap.Plot.PlottingUtil.clonePoints(t);o.push(o[0].clone());for(var i=0;i<o.length-1;i++){var n=new SuperMap.Geometry.Point((o[i].x+o[i+1].x)/2,(o[i].y+o[i+1].y)/2),a=new SuperMap.Geometry.Point(0,1.5*l),r=new SuperMap.Geometry.Point(-.5*l,0),s=new SuperMap.Geometry.Point(0,-1.5*l),p=new SuperMap.Geometry.Point(.5*l,0),u=SuperMap.Plot.PlottingUtil.radian(n,o[i+1])*SuperMap.Plot.PlottingUtil.RTOD,c=SuperMap.Plot.PlottingUtil.coordinateTrans(n,a,u),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,r,u),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,u),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,u),y=[];y.push(c),y.push(P),y.push(S),y.push(h),y.push(c.clone());this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.01),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=[],a=[],r=!0;t.length>2?SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],t[2])?(n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0)):(r=!1,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1)):(n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0));var s,p,u,c,P,S,h,y,f;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,lineWidthLimit:!0}),t.length>2){var g=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var M=this.scaleValues[0]*g*.5;a.push(a[0].clone());for(var b=0;b<a.length-1;b++){s=new SuperMap.Geometry.Point((a[b].x+a[b+1].x)/2,(a[b].y+a[b+1].y)/2),p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),r?(p.x=0,p.y=1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0):(p.x=0,p.y=-1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0),P=SuperMap.Plot.PlottingUtil.radian(s,a[b+1])*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.coordinateTrans(s,p,P),h=SuperMap.Plot.PlottingUtil.coordinateTrans(s,u,P),y=SuperMap.Plot.PlottingUtil.coordinateTrans(s,c,P),(f=[]).push(S),f.push(h),f.push(y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}n.push(n[0].clone());for(var m=0;m<n.length-1;m++){s=new SuperMap.Geometry.Point((n[m].x+n[m+1].x)/2,(n[m].y+n[m+1].y)/2),p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),r?(p.x=0,p.y=-1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0):(p.x=0,p.y=1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0),P=SuperMap.Plot.PlottingUtil.radian(s,n[m+1])*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.coordinateTrans(s,p,P),h=SuperMap.Plot.PlottingUtil.coordinateTrans(s,u,P),y=SuperMap.Plot.PlottingUtil.coordinateTrans(s,c,P),(f=[]).push(S),f.push(h),f.push(y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25503=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.02)),0==this.subSymbols.length&&this.subSymbols.push(new SuperMap.Plot.SubSymbol(100,8402)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l,s=[];s.push(new SuperMap.Geometry.Point(a.x-4*r,a.y+r/2)),s.push(new SuperMap.Geometry.Point(a.x-4*r,a.y-r/2));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,{surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0});var p=[];p.push(new SuperMap.Geometry.Point(a.x-4*r,a.y)),p.push(new SuperMap.Geometry.Point(a.x-r,a.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*r,0);var u=[];u.push(new SuperMap.Geometry.Point(a.x+4*r,a.y)),u.push(new SuperMap.Geometry.Point(a.x+r,a.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0});var c=[];c.push(new SuperMap.Geometry.Point(a.x+4*r,a.y+r/2)),c.push(new SuperMap.Geometry.Point(a.x+4*r,a.y-r/2));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(a.clone());var P=SuperMap.Plot.PlottingUtil.circlePoint(a,2*r,2*r,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l,o,i=this.controlPoints,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(i),a=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)l=(e.x-n.x)/a,this.scaleValues[0]=l,o=(e.y-n.y)/a,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*l,n.y+a*o),s=SuperMap.Plot.PlottingUtil.distance(r,e)/2/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.08)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l/2.5,s=.7*r,p=[];p.push(new SuperMap.Geometry.Point(a.x,a.y)),p.push(new SuperMap.Geometry.Point(a.x+r,a.y));this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{surroundLineFlag:!1,lineTypeLimit:!0});var u=[];u.push(new SuperMap.Geometry.Point(a.x+s,a.y-s/2)),u.push(new SuperMap.Geometry.Point(a.x-s,a.y-s/2));var c={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,c);var P=[];P.push(new SuperMap.Geometry.Point(a.x,a.y-s/2)),P.push(new SuperMap.Geometry.Point(a.x,a.y+s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,c);var S=[];S.push(new SuperMap.Geometry.Point(a.x-s/2,a.y-s/2)),S.push(new SuperMap.Geometry.Point(a.x-s,a.y+s/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,c);var h=[];h.push(new SuperMap.Geometry.Point(a.x+s/2,a.y-s/2)),h.push(new SuperMap.Geometry.Point(a.x+s,a.y+s/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,c),this.scalePoints=[],this.addScalePoint(a.clone());var y=SuperMap.Plot.PlottingUtil.circlePoint(a,1.25*r,1.25*r,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l,o,i=this.controlPoints,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(i),a=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)l=(e.x-n.x)/a,this.scaleValues[0]=l,o=(e.y-n.y)/a,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*l,n.y+a*o),s=2*SuperMap.Plot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.05)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l,s=.25*r,p=[];p.push(new SuperMap.Geometry.Point(a.x-r,a.y+s)),p.push(new SuperMap.Geometry.Point(a.x+r,a.y+s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(new SuperMap.Geometry.Point(a.x+r,a.y-s)),u.push(new SuperMap.Geometry.Point(a.x-r,a.y-s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=[];c.push(new SuperMap.Geometry.Point(a.x+r,a.y+2*s)),c.push(new SuperMap.Geometry.Point(a.x+r,a.y-2*s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var P=[];P.push(new SuperMap.Geometry.Point(a.x-r,a.y+2*s)),P.push(new SuperMap.Geometry.Point(a.x-r,a.y-2*s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.scalePoints=[],this.addScalePoint(a);var S=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(S),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.02));for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMap.Plot.PlottingUtil.polylineDistance(n),r=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),s={surroundLineFlag:!1,lineWidthLimit:!0};a>SuperMap.Plot.PlottingUtil.polylineDistance(r)?(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,s)):(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,s),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r));var p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),u=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var c=this.scaleValues[0],P=this.scaleValues[1],S=this.scaleValues[2],h=new SuperMap.Geometry.Point(p.x+u*c,p.y+u*P),y=S*u,f=new SuperMap.Geometry.Point(h.x-4*y,h.y+y/2),g=new SuperMap.Geometry.Point(h.x-4*y,h.y-y/2),M=[];M.push(f),M.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=new SuperMap.Geometry.Point(h.x-4*y,h.y),m=new SuperMap.Geometry.Point(h.x-1.5*y,h.y);(M=[]).push(b),M.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);for(var d=new SuperMap.Geometry.Point(h.x,h.y-y),v=SuperMap.Plot.PlottingUtil.circlePoint(d,2*y,2*y,60),O=SuperMap.Plot.PlottingUtil.circlePoint(d,2*y,2*y,120),U=new SuperMap.Geometry.Point((v.x+O.x)/2,v.y),w=[],L=0;L<=180;L+=3)w.push(SuperMap.Plot.PlottingUtil.circlePoint(U,y,y,L));M=[];for(var V=0;V<w.length;V++)M.push(w[V].clone());M.push(O.clone()),M.push(d.clone()),M.push(v.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M);var _=new SuperMap.Geometry.Point(h.x+4*y,h.y),T=new SuperMap.Geometry.Point(h.x+1.5*y,h.y);(M=[]).push(_.clone()),M.push(T.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var A=new SuperMap.Geometry.Point(h.x+4*y,h.y+y/2),E=new SuperMap.Geometry.Point(h.x+4*y,h.y-y/2);(M=[]).push(A.clone()),M.push(E.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[],this.addScalePoint(h.clone());var x=SuperMap.Plot.PlottingUtil.circlePoint(h,y,y,90);this.addScalePoint(x.clone()),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)o=(e.x-n.x)/a,this.scaleValues[0]=o,i=(e.y-n.y)/a,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*o,n.y+a*i),s=SuperMap.Plot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));for(var i=this.getLinePts(e,this.scaleValues[0]),n=this.getLinePts(e,1.2*this.scaleValues[0]),a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt),r=[],s=[],p=0;p<=n.startIndex;p++)r.push(e[p]);if(r.push(n.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),n.endIndex<=e.length){s.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}var c=e[0],P=e[1],S=e[e.length-2],h=e[e.length-1],y=.3*a,f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,P,c),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,S,h),M=f.pntLeft,b=g.pntLeft,m=[];m.push(c),m.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=[];d.push(h),d.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),U=new SuperMap.Geometry.Point(.1*a,0),w=new SuperMap.Geometry.Point(.5*a,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(O,U,v),V=SuperMap.Plot.PlottingUtil.coordinateTrans(O,w,v),_=[];_.push(L),_.push(V);var T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,T);var A=new SuperMap.Geometry.Point(.35*a,0),E=SuperMap.Plot.PlottingUtil.circlePoint(A,.2*a,.2*a,135),x=SuperMap.Plot.PlottingUtil.circlePoint(A,.2*a,.2*a,225),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(O,A,v),j=SuperMap.Plot.PlottingUtil.coordinateTrans(O,E,v),C=SuperMap.Plot.PlottingUtil.coordinateTrans(O,x,v);(_=[]).push(j),_.push(Y),_.push(C),T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,T);var I=new SuperMap.Geometry.Point(-.1*a,0),G=new SuperMap.Geometry.Point(-.5*a,-.15*a),B=new SuperMap.Geometry.Point(-.5*a,.15*a),R=SuperMap.Plot.PlottingUtil.coordinateTrans(O,I,v),N=SuperMap.Plot.PlottingUtil.coordinateTrans(O,G,v),D=SuperMap.Plot.PlottingUtil.coordinateTrans(O,B,v);(_=[]).push(R),_.push(N),_.push(D),_.push(R),T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,T);var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),z=SuperMap.Plot.PlottingUtil.circlePoint(k.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,v);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol25400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.068),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&this.scaleValues.push(.068),0==this.subSymbols.length&&(this.subSymbols.push(new SuperMap.Plot.SubSymbol(100,300)),this.subSymbols.push(new SuperMap.Plot.SubSymbol(100,6200)));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0],o=l*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,n);if(a.bfind){var r=a.pts.clone(),s=a.index,p=(l=this.scaleValues[0])*e,u=[];u.push(r);for(var c=s;c>=0;c--)u.push(n[c]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,u)).bfind){var P=a.index,S=a.pts.clone(),h=[];h.push(S);for(var y=P+1;y<u.length;y++)h.push(u[y].clone());var f={surroundLineFlag:!1,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,f);var g=[];g.push(r);for(var M=s+1;M<n.length;M++)g.push(n[M]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,g)).bfind){var b=a.index,m=a.pts.clone();(h=[]).push(m);for(var d=b+1;d<g.length;d++)h.push(g[d].clone());this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1});var v=SuperMap.Plot.PlottingUtil.radian(S,m)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((S.x+m.x)/2,(S.y+m.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],O,p,v+90),e=SuperMap.Plot.PlottingUtil.polylineDistance(i),(a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,i)).bfind){var U=a.index,w=a.pts.clone(),L=[];L.push(w);for(var V=U;V>=0;V--)L.push(i[V]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,L)).bfind){var _=a.index,T=a.pts.clone(),A=[];A.push(T);for(var E=_+1;E<L.length;E++)A.push(L[E]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var x=[];x.push(w);for(var Y=U+1;Y<i.length;Y++)x.push(i[Y]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,x)).bfind){var j=a.index,C=a.pts.clone();(A=[]).push(C);for(var I=j+1;I<x.length;I++)A.push(x[I]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,f);var G=SuperMap.Plot.PlottingUtil.radian(T,C)*SuperMap.Plot.PlottingUtil.RTOD,B=new SuperMap.Geometry.Point((T.x+C.x)/2,(T.y+C.y)/2);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],B,p,G);var R=SuperMap.Plot.PlottingUtil.linePnt(u[u.length-1],L[L.length-1],3*o),N=SuperMap.Plot.PlottingUtil.linePnt(L[L.length-1],u[u.length-1],3*o);(A=[]).push(R),A.push(N),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,f);var D=SuperMap.Plot.PlottingUtil.linePnt(g[g.length-1],x[x.length-1],3*o),k=SuperMap.Plot.PlottingUtil.linePnt(x[x.length-1],g[g.length-1],3*o);(A=[]).push(D),A.push(k),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,f),this.scalePoints=[],this.addScalePoint(R.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o/2;i>=.4&&(i=.4),this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.068),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0],o=l*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,n);if(a.bfind){var r=a.pts.clone(),s=a.index,p=(l=this.scaleValues[0])*e,u=[];u.push(r);for(var c=s;c>=0;c--)u.push(n[c]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,u)).bfind){var P=a.index,S=a.pts.clone(),h=[];h.push(S);for(var y=P+1;y<u.length;y++)h.push(u[y].clone());var f={surroundLineFlag:!1,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,f);var g=[];g.push(r);for(var M=s+1;M<n.length;M++)g.push(n[M]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,g)).bfind){var b=a.index,m=a.pts.clone();(h=[]).push(m);for(var d=b+1;d<g.length;d++)h.push(g[d].clone());this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1});var v=SuperMap.Plot.PlottingUtil.radian(S,m)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((S.x+m.x)/2,(S.y+m.y)/2);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],O,p,v);var U=u[u.length-1].clone(),w=SuperMap.Plot.PlottingUtil.circlePoint(U,.3*o,.3*o,v+30),L=SuperMap.Plot.PlottingUtil.circlePoint(U,.3*o,.3*o,v+180),V=SuperMap.Plot.PlottingUtil.circlePoint(U,.3*o,.3*o,v+330);(h=[]).push(w),h.push(L),h.push(V);var _={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,_,!0),e=SuperMap.Plot.PlottingUtil.polylineDistance(i),(a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,i)).bfind){var T=a.index,A=a.pts.clone(),E=[];E.push(A);for(var x=T;x>=0;x--)E.push(i[x]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,E)).bfind){var Y=a.index,j=a.pts.clone(),C=[];C.push(j);for(var I=Y+1;I<E.length;I++)C.push(E[I]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C);var G=[];G.push(A);for(var B=T+1;B<i.length;B++)G.push(i[B]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,G)).bfind){var R=a.index,N=a.pts.clone();(C=[]).push(N);for(var D=R+1;D<G.length;D++)C.push(G[D]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,f);var k=SuperMap.Plot.PlottingUtil.radian(j,N)*SuperMap.Plot.PlottingUtil.RTOD,z=new SuperMap.Geometry.Point((j.x+N.x)/2,(j.y+N.y)/2);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[1],z,p,k+90);var F=E[E.length-1].clone(),K=SuperMap.Plot.PlottingUtil.circlePoint(F,.3*o,.3*o,v+30),q=SuperMap.Plot.PlottingUtil.circlePoint(F,.3*o,.3*o,v+180),W=SuperMap.Plot.PlottingUtil.circlePoint(F,.3*o,.3*o,v+330);(h=[]).push(K),h.push(q),h.push(W),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,_,!0);var J=SuperMap.Plot.PlottingUtil.linePnt(q,L,3*o),Z=SuperMap.Plot.PlottingUtil.linePnt(L,q,3*o);(C=[]).push(J),C.push(Z),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,f);var H=SuperMap.Plot.PlottingUtil.linePnt(g[g.length-1],G[G.length-1],3*o),Q=SuperMap.Plot.PlottingUtil.linePnt(G[G.length-1],g[g.length-1],3*o);(C=[]).push(H),C.push(Q),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,f),this.scalePoints=[],this.addScalePoint(J.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o/2;i>=.45&&(i=.45),this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.025),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var l,o=e*this.scaleValues[0];l=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0);var i;i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),this.addScalePoint(i[0]);var n=i[i.length-1],a=l[l.length-1],r=SuperMap.Plot.PlottingUtil.distance(n,a),s=.3*r,p=l[l.length-2],u=l[l.length-1],c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,p,u).pntLeft;p=i[i.length-2],u=i[i.length-1];var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,p,u).pntRight,S=r;p=i[i.length-1],u=t[t.length-1];var h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(S,p,u).pntRight,y=[];y.push(c),y.push(h),y.push(P);var f=[];f=(f=f.concat(l)).concat(y);for(var g=i.length-1;g>=0;--g)f.push(i[g]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;if(i>.5)return;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,a=e.length-2;a>=0;a--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[a])){n=a;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var r=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(r,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[l.length-1])/o;if(i>.2)return;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(r.pts,a.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=100*SuperMap.Plot.PlottingUtil.distance(a.pts,r.pts)/l,u=new SuperMap.Geometry.Point((r.pts.x+a.pts.x)/2,(a.pts.y+r.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,p,s),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMap.Plot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol25200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.105263),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25000),o(e,[{key:"calculateParts",value:function(){this.init();var t=this.GetGoPts();if(0!=t.length){0==this.scaleValues.length&&(this.scaleValues.push(.105263),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M,b=[],m=0;m<g.length;m++)M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[m],f*SuperMap.Plot.PlottingUtil.RTOD),b.push(M);for(var d=[],v=b.length-1;v>=0;--v)d.push(b[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.scalePoints=[];var O=b[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=b[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var w=b[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w);var L=.08125*o,V=new SuperMap.Geometry.Point(y.x-L,0),_=new SuperMap.Geometry.Point(V.x-L/2,0),T=new SuperMap.Geometry.Point(V.x+L/2,0),A=[];M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,_,f*SuperMap.Plot.PlottingUtil.RTOD),A.push(M.clone()),M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,T,f*SuperMap.Plot.PlottingUtil.RTOD),A.push(M.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var E=new SuperMap.Geometry.Point(V.x,V.y-L/2),x=new SuperMap.Geometry.Point(V.x,V.y+L/2),Y=[];M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,x,f*SuperMap.Plot.PlottingUtil.RTOD),Y.push(M.clone()),M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,E,f*SuperMap.Plot.PlottingUtil.RTOD),Y.push(M.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y),this.finish()}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length<this.minEditPts?t:(t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),1==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length&&(t=[]),t)}}]),e}();SuperMap.Plot.AlgoSymbol25101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25000),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M,b=[],m=0;m<g.length;m++)M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[m],f*SuperMap.Plot.PlottingUtil.RTOD),b.push(M);for(var d=[],v=b.length-1;v>=0;--v)d.push(b[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.scalePoints=[];var O=b[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=b[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var w=b[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w);var L=.04*o,V=.0475*o,_=new SuperMap.Geometry.Point(y.x-L,0),T=new SuperMap.Geometry.Point(S.x,S.y+V),A=SuperMap.Plot.PlottingUtil.intersectLines(p,S,_,T),E=A.intersectPoint;if(0!=A.isIntersectLines){var x=new SuperMap.Geometry.Point(h.x,h.y-V),Y=(A=SuperMap.Plot.PlottingUtil.intersectLines(h,u,_,x)).intersectPoint;if(0!=A.isIntersectLines){var j=[];j.push(E),j.push(_),j.push(Y);for(var C=[],I=0;I<j.length;I++)M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,j[I],f*SuperMap.Plot.PlottingUtil.RTOD),C.push(M);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),this.finish()}}}}}]),e}();SuperMap.Plot.AlgoSymbol25100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.222222),l.scaleValues.push(.5),l.scaleValues.push(.5),l.scaleValues.push(.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f*SuperMap.Plot.PlottingUtil.RTOD);M.push(m)}for(var d=[],v=M.length-1;v>=0;--v)d.push(M[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.scalePoints=[];var O=M[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=M[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var w=M[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol25000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol24700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.025),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.025),this.scaleValues.push(0)),e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=new SuperMap.Geometry.Point(0,0),o=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=o*i;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/i;(a>.3||a<=0)&&(a=.3),this.scaleValues[1]=a}var r=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.polylineDistance(t),s=0,p=.3*n;this.ComputeDashLine(3*i/19,i/19,e);var u=e[1].clone(),c=e[0].clone(),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,u,c),S=P.pntRight,h=P.pntLeft,y=[];y.push(h.clone()),y.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);for(var f=3*p,g=e[0].clone(),M=0;M<=i;M+=f){s=M+2*p;var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,e);if(b.bfind){if(l=b.pts,b.index>=e.length)break;var m,d,v,O,U,w,L,V=[];if(V.push(g.clone()),V.push(l.clone()),0==M){var _=l.clone();_.isScalePoint=!0,_.tag=0,this.scalePoints.push(_);var T=S.clone();T.isScalePoint=!0,T.tag=1,this.scalePoints.push(T)}if(0==this.scaleValues[2]){m=new SuperMap.Geometry.Point((g.x+l.x)/2,(g.y+l.y)/2),d=g.clone(),v=m.clone(),c=l.clone();var A=(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,d,v)).pntLeft;O=SuperMap.Plot.PlottingUtil.linePnt(m,d,.3*r),U=SuperMap.Plot.PlottingUtil.linePnt(m,c,.3*r),0==M&&((w=A.clone()).isScalePoint=!0,w.tag=2,this.scalePoints.push(w)),(L=[]).push(A.clone()),L.push(O.clone()),L.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,L)}else{m=new SuperMap.Geometry.Point((g.x+l.x)/2,(g.y+l.y)/2),d=g.clone(),v=m.clone(),c=l.clone();var E=(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,d,v)).pntRight;O=SuperMap.Plot.PlottingUtil.linePnt(m,d,.3*p),U=SuperMap.Plot.PlottingUtil.linePnt(m,c,.3*p),0==M&&((w=E.clone()).isScalePoint=!0,w.tag=2,this.scalePoints.push(w)),(L=[]).push(E.clone()),L.push(O.clone()),L.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,L)}if(s=M+3*p,(b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,e)).bfind){if(l=b.pts,!(b.index<e.length))break;g=l}}}u=e[e.length-2].clone(),c=e[e.length-1].clone(),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,u,c),(y=[]).push(P.pntLeft.clone()),y.push(P.pntRight.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t&&1!=t&&2!=t)return;var l,o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=e.clone(),r=l[0].clone();if(0==t)i=SuperMap.Plot.PlottingUtil.distance(a,r)/.6/n,this.scaleValues[0]=i;else if(1==t)i=SuperMap.Plot.PlottingUtil.distance(a,r)/n,this.scaleValues[1]=i;else if(2==t){var s=this.scaleValues[0]*n,p=.01*n,u=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(!u.bfind)return;var c=u.index,P=u.pts.clone();if(!(u.index<l.length))return;var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,l[c],P).pntLeft.clone(),h=SuperMap.Plot.PlottingUtil.projectPoint(e,S,P);(S.x-P.x)*(h.x-P.x)+(S.y-P.y)*(h.y-P.y)>=0?this.scaleValues[2]=0:this.scaleValues[2]=1}}}},{key:"ComputeDashLine",value:function(t,e,l){for(var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var c;(i=[]).push(a),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=P.index,o=P.pts,!(p=P.bfind))break;if(r<c)for(var S=r;S<c;S++)i.push(l[S]);i.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),s+=e;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=h.index,a=h.pts,r=c+1,!(u=h.bfind))break}if(!p){(i=[]).push(a);for(var y=r;y<l.length;y++)i.push(l[y]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],g=SuperMap.Plot.PlottingUtil.distance(o,f);if(g*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(g,0)){var M=SuperMap.Plot.PlottingUtil.linePnt(f,o,g);(i=[]).push(M),i.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMap.Plot.AlgoSymbol24700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23902=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n=[];if(2==t.length){e=t[0],l=t[1];var a=SuperMap.Plot.PlottingUtil.distance(e,l);i=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,o=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,i+60),n.push(e),n.push(o),n.push(l)}else n=n.concat(t);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),n.push(n[0]);var r=SuperMap.Plot.PlottingUtil.polylineDistance(n),s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],c=this.scaleValues[4],P=r*s;e=n[0],l=n[1],o=n[2];var S,h=r*p,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(e,l,o)/Math.PI*u,f=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,g=f-y,M=f+y,b=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,M);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(n,b)?b:m;var d=r*this.scaleValues[3];i=c,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,d,i-90);var v=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,f+180);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*d,.5*d,i);this.addScalePoint(O),this.createArcPts(n,P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u=[];2==l.length?(o=l[0],i=l[1],r=SuperMap.Plot.PlottingUtil.distance(o,i),a=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,n=SuperMap.Plot.PlottingUtil.circlePoint(o,r,r,a+60),u.push(o),u.push(i),u.push(n)):u=u.concat(l),o=u[0],i=u[1],n=u[2],u.push(u[0]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(u),P=e;if(0===t)r=SuperMap.Plot.PlottingUtil.distance(P,u[0]),this.scaleValues[0]=r/c;else if(1===t){s=SuperMap.Plot.PlottingUtil.distance(P,u[0])/c,this.scaleValues[1]=s,a=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI,0<=(p=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,P)/Math.PI/a)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){s=this.scaleValues[1],p=this.scaleValues[2];var S,h=c*s,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI*p,f=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,g=f-y,M=f+y,b=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,M);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,b)?b:m;var d=2*SuperMap.Plot.PlottingUtil.distance(P,S)/c;this.scaleValues[3]=d;var v=180*SuperMap.Plot.PlottingUtil.radian(S,P)/Math.PI;this.scaleValues[4]=v}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(r,a,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}},{key:"createArcPts",value:function(t,e){for(var l=[],o=[],i=0;i<t.length;i++)o.push(e),l.push([{Start:0,End:360}]);for(var n=0;n<t.length;n++)if(0!==l[n].length&&(0!==l[n][0].Start||0!==l[n][0].End))for(var a=n+1;a<t.length;a++)if(0!==l[a].length&&(0!==l[a][0].Start||0!==l[a][0].End)){var r=SuperMap.Plot.PlottingUtil.distance(t[n],t[a]);if(r<o[n]+o[a])if(r>Math.abs(o[n]-o[a]))for(var s=0;s<2;s++){var p,u,c;0==s?(c=n,p=SuperMap.Plot.PlottingUtil.radian(t[n],t[a])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((r*r+o[n]*o[n]-o[a]*o[a])/(2*r*o[n]))*SuperMap.Plot.PlottingUtil.RTOD):(c=a,p=SuperMap.Plot.PlottingUtil.radian(t[a],t[n])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((r*r+o[a]*o[a]-o[n]*o[n])/(2*r*o[a]))*SuperMap.Plot.PlottingUtil.RTOD);var P=p-u,S=p+u,h=P<0&&S>0||P>360||S>360;P=this.adjustAngle(P),S=this.adjustAngle(S);for(var y=l[c].length-1;y>=0;y--)if(h){if(S>l[c][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(S,l[c][y].End)){l[c].splice(y,1);continue}if(S>l[c][y].Start&&(l[c][y].Start=S),P<l[c][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(P,l[c][y].Start)){l[c].splice(y,1);continue}P<l[c][y].End&&(l[c][y].End=P)}else if(P<l[c][y].Start&&S>l[c][y].End)l[c].splice(y,1);else if(P>l[c][y].Start&&S<l[c][y].End)l[c].push({Start:l[c][y].Start,End:P}),l[c].push({Start:S,End:l[c][y].End}),l[c].splice(y,1);else{if(P>l[c][y].End)continue;if(P>l[c][y].Start&&(l[c][y].End=P),S<l[c][y].Start)continue;S<l[c][y].End&&(l[c][y].Start=S)}}else{if(o[n]<o[a]){l[n][0].Start=0,l[n][0].End=0;break}l[a][0].Start=0,l[a][0].End=0}}for(var f=0;f<t.length;f++)if(0!==l[f].length&&(0!==l[f][0].Start||0!==l[f][0].End))for(var g=l[f].length-1;g>=0;g--){for(var M=this.adjustAngle(l[f][g].Start),b=this.adjustAngle(l[f][g].End);b<M;)b+=360;for(var m=[],d=(b-M)/72,v=M;v<b+d/2;v+=d){var O=t[f].x+o[f]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),U=t[f].y+o[f]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);m.push(new SuperMap.Geometry.Point(O,U))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,l,o){var i=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,n=180*SuperMap.Plot.PlottingUtil.radian(t,l)/Math.PI,a=i;n>i&&(a=n);for(var r=[],s=a;s<360+a;s+=4)90==s&&(s=91),r.push(SuperMap.Plot.PlottingUtil.circlePoint(t,o,o,s));return r.push[0],r}},{key:"CreatArc",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,a)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=0;r<o.length;r++){var s=o[r];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}},{key:"GetArcPts3D",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,a)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=[],s=0;s<o.length;s++)r=r.concat(o[s]);return r}},{key:"sortPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);for(var l=0;l<e.length;l++)for(var o=e[l],i=180*SuperMap.Plot.PlottingUtil.radian(t,o)/Math.PI,n=0;n<e.length;n++){var a=e[n],r=180*SuperMap.Plot.PlottingUtil.radian(t,a)/Math.PI;if(i>r){var s=new SuperMap.Geometry.Point(o.x,o.y);o=new SuperMap.Geometry.Point(a.x,a.y),a=new SuperMap.Geometry.Point(s.x,s.y),i=r,e[l]=o,e[n]=a}}return e}}]),e}();SuperMap.Plot.AlgoSymbol23902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=[];if(2==t.length){var o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);e=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;var a=SuperMap.Plot.PlottingUtil.circlePoint(o,n,n,e+60);l.push(t[0]),l.push(i),l.push(a),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)l.push(t[r])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.scaleValues[2]=2*u*this.getSubSymbolScaleValue()/p}var c=this.scaleValues[0],P=this.scaleValues[1],S=this.scaleValues[2],h=this.scaleValues[3],y=this.ComputeSubSymbolPt(c,P,l,s),f=p*S,g=y;e=h-90,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,f,e),this.addScalePoint(g);var M=SuperMap.Plot.PlottingUtil.circlePoint(y,f,f,h);this.addScalePoint(M),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a=[];if(2==l.length){o=l[0],i=l[1];var r=SuperMap.Plot.PlottingUtil.distance(o,i),s=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;n=SuperMap.Plot.PlottingUtil.circlePoint(o,r,r,s+60),a.push(o),a.push(i),a.push(n)}else a=a.concat(l);o=a[0],i=a[1],n=a[2];var p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(a);a.push(a[0]);var u=SuperMap.Plot.PlottingUtil.polylineDistance(a),c=e;if(0==t){var P=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i),S=SuperMap.Plot.PlottingUtil.plumbLineLen(i,o,n),h=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,i)/P,y=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,n)/S;h>1&&(h=1),y>1&&(y=1),this.scaleValues[0]=h,this.scaleValues[1]=y}else if(1==t){var f=this.scaleValues[0],g=this.scaleValues[1],M=this.ComputeSubSymbolPt(f,g,a,p),b=SuperMap.Plot.PlottingUtil.distance(M,c)/u;this.scaleValues[2]=b;var m=180*SuperMap.Plot.PlottingUtil.radian(M,c)/Math.PI;this.scaleValues[3]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(r,a,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}}]),e}();SuperMap.Plot.AlgoSymbol23901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];3>=t.length?(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t),e=SuperMap.Plot.PlottingUtil.clearSamePts(e)):e=t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=i}var n=o*this.scaleValues[0]*.15,a=[];a.push(new SuperMap.Geometry.Point(0,n)),a.push(new SuperMap.Geometry.Point(-n,0)),a.push(new SuperMap.Geometry.Point(0,-n));var r=[];r.push(new SuperMap.Geometry.Point(n,n)),r.push(new SuperMap.Geometry.Point(0,0)),r.push(new SuperMap.Geometry.Point(n,-n));for(var s=new SuperMap.Geometry.Point(-3*n,2*n),p=SuperMap.Plot.PlottingUtil.coordinateTrans(l,s,0),u=[],c=[],P=0;P<3;P++)u.push(new SuperMap.Geometry.Point(a[P].x+p.x,a[P].y+p.y)),c.push(new SuperMap.Geometry.Point(r[P].x+p.x,r[P].y+p.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);for(var S=new SuperMap.Geometry.Point(3*n,2*n),h=SuperMap.Plot.PlottingUtil.coordinateTrans(l,S,0),y=[],f=[],g=0;g<3;g++)y.push(new SuperMap.Geometry.Point(a[g].x+h.x,a[g].y+h.y)),f.push(new SuperMap.Geometry.Point(r[g].x+h.x,r[g].y+h.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var M=new SuperMap.Geometry.Point(-4*n,-2*n),b=SuperMap.Plot.PlottingUtil.coordinateTrans(l,M,0);y=[],f=[];for(var m=0;m<3;m++)y.push(new SuperMap.Geometry.Point(a[m].x+b.x,a[m].y+b.y)),f.push(new SuperMap.Geometry.Point(r[m].x+b.x,r[m].y+b.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(0,-2*n),v=SuperMap.Plot.PlottingUtil.coordinateTrans(l,d,0);y=[],f=[];for(var O=0;O<3;O++)y.push(new SuperMap.Geometry.Point(a[O].x+v.x,a[O].y+v.y)),f.push(new SuperMap.Geometry.Point(r[O].x+v.x,r[O].y+v.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var U=new SuperMap.Geometry.Point(4*n,-2*n),w=SuperMap.Plot.PlottingUtil.coordinateTrans(l,U,0);y=[],f=[];for(var L=0;L<3;L++)y.push(new SuperMap.Geometry.Point(a[L].x+w.x,a[L].y+w.y)),f.push(new SuperMap.Geometry.Point(r[L].x+w.x,r[L].y+w.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol23700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o*.8,this.scaleValues[3]=i/o*.8}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=[],f=.15*SuperMap.Plot.PlottingUtil.distance(S,h),g=SuperMap.Plot.PlottingUtil.linePnt(S,h,f),M=SuperMap.Plot.PlottingUtil.linePnt(h,S,f);y.push(g),y.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var b=o*n,m=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,m);var d=o*r,v=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,d,v),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,b,b,m);this.addScalePoint(O),this.addScalePoint(h);var U=SuperMap.Plot.PlottingUtil.circlePoint(h,d,d,v);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(o),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol23600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*a,l.y+o*r);if(this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0){if(this.subSymbols[0].symbolData)for(var u in this.subSymbols[0].symbolData.innerCells)this.subSymbols[0].symbolData.innerCells[u].type===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL&&(this.subSymbols[0].symbolData.innerCells[u].type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.computeSubSymbol(this.subSymbols[0],p,s,0)}this.addScalePoint(p);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(a.x+r*i,a.y+r*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),a=SuperMap.Plot.PlottingUtil.polylineDistance(t),r=a*i,s=new SuperMap.Geometry.Point(n.x+a*l,n.y+a*o);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,r,0),this.addScalePoint(s);var p=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[0]=i,n=(e.y-a.y)/r,this.scaleValues[1]=n;else if(1===t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+r*i,a.y+r*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/r;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05));var o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.35*this.getSubSymbolScaleValue());var i=o*this.scaleValues[0],n=[];n.push(new SuperMap.Geometry.Point(l.x,l.y)),n.push(new SuperMap.Geometry.Point(l.x+i,l.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n);var a=[];a.push(new SuperMap.Geometry.Point(l.x,l.y+.8*i)),a.push(new SuperMap.Geometry.Point(l.x,l.y-.8*i)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var r=[];r.push(new SuperMap.Geometry.Point(l.x+.8*i,l.y)),r.push(new SuperMap.Geometry.Point(l.x-.8*i,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol22200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol22103=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.025)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol22000),e}();SuperMap.Plot.AlgoSymbol22103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.03):1===this.scaleValues.length&&(this.scaleValues[1]=.02),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=e[0],S=e[1],h=e[e.length-2],y=e[e.length-1],f=l*this.scaleValues[1],g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,S,P),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,h,y),b=g.pntLeft,m=M.pntLeft,d=[];d.push(P),d.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(y),v.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMap.Plot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol22000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.01,l.scaleValues[3]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=.01,this.scaleValues[3]=.02):1===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.01),this.scaleValues.push(.25*this.getSubSymbolScaleValue())),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[3]=.5*o}for(var i=this.getLinePts(e,this.scaleValues[0]),n=[],a=[],r=0;r<=i.startIndex;r++)n.push(e[r]);if(n.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),i.endIndex<=e.length){a.push(i.endPt);for(var s=i.endIndex+1;s<=e.length-1;s++)a.push(e[s]);this.addArrow(a,this.scaleValues[this.scaleValues.length-1])}var p,u,c,P,S,h,y,f,g,M,b,m,d,v=i.startPt.clone(),O=i.endPt.clone(),U=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),w=SuperMap.Plot.PlottingUtil.distance(v,O),L=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD;p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0),h=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),M=new SuperMap.Geometry.Point(0,0),b=new SuperMap.Geometry.Point(0,0),m=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0),v.x>=O.x?(p.x=.25*w,p.y=.25*-w,u.x=.5*-w,u.y=.25*-w,c.x=.5*-w,c.y=.25*w,P.x=.5*w,P.y=.25*w,S.x=.5*w,S.y=0,h.x=.25*-w,h.y=.125*-w,y.x=0,y.y=.125*w,f.x=0,f.y=.125*-w,g.x=.25*w,g.y=.2*w,M.x=.25*-w,M.y=.25*-w,b.x=.375*-w,b.y=.5*-w,m.x=.02*-w,m.y=.25*-w,d.x=.1*w,d.y=.5*-w):(p.x=.25*w,p.y=.25*w,u.x=.5*-w,u.y=.25*w,c.x=.5*-w,c.y=.25*-w,P.x=.5*w,P.y=.25*-w,S.x=.5*w,S.y=0,h.x=.25*w,h.y=.125*-w,y.x=0,y.y=.125*w,f.x=0,f.y=.125*-w,g.x=.25*-w,g.y=.125*w,M.x=.25*-w,M.y=.25*w,b.x=.375*-w,b.y=.5*w,m.x=.02*w,m.y=.25*w,d.x=.15*w,d.y=.5*w);var V=[],_=[],T=[],A=[],E=[],x=SuperMap.Plot.PlottingUtil.coordinateTrans(U,p,L),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(U,u,L),j=SuperMap.Plot.PlottingUtil.coordinateTrans(U,c,L),C=SuperMap.Plot.PlottingUtil.coordinateTrans(U,P,L),I=SuperMap.Plot.PlottingUtil.coordinateTrans(U,S,L),G=SuperMap.Plot.PlottingUtil.coordinateTrans(U,h,L),B=SuperMap.Plot.PlottingUtil.coordinateTrans(U,y,L),R=SuperMap.Plot.PlottingUtil.coordinateTrans(U,f,L),N=SuperMap.Plot.PlottingUtil.coordinateTrans(U,g,L),D=SuperMap.Plot.PlottingUtil.coordinateTrans(U,M,L),k=SuperMap.Plot.PlottingUtil.coordinateTrans(U,b,L),z=SuperMap.Plot.PlottingUtil.coordinateTrans(U,m,L),F=SuperMap.Plot.PlottingUtil.coordinateTrans(U,d,L);V.push(x),V.push(Y),V.push(j),V.push(C),V.push(I),_.push(G),_.push(B),_.push(R),_.push(N),T.push(D),T.push(k),A.push(z),A.push(F),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,null,!0);var K=.3*SuperMap.Plot.PlottingUtil.distance(R,N),q=SuperMap.Plot.PlottingUtil.linePnt(N,R,K),W=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*K,N,q);E.push(W.pntLeft),E.push(N),E.push(W.pntRight);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var J=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),Z=SuperMap.Plot.PlottingUtil.circlePoint(J.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,L+90);this.addScalePoint(Z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+90),r=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,n),p=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,n),u=[];u.push(p),u.push(r),u.push(a),u.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+90),P=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+270),S=SuperMap.Plot.PlottingUtil.circlePoint(c,l,l,n+180),h=SuperMap.Plot.PlottingUtil.circlePoint(P,l,l,n+180);(u=[]).push(S),u.push(c),u.push(P),u.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addScalePoint(a),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l.subText="",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var a=n.pt,r=[],s=0,p=0;p<n.index+1;p++)r.push(e[p]),p>0&&(s+=SuperMap.Plot.PlottingUtil.distance(r[p],r[p-1]));var u,c,P=i-s,S=l*this.scaleValues[1],h=[];if(P>=S){u=SuperMap.Plot.PlottingUtil.linePnt(a,e[n.index],S),r.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),c=SuperMap.Plot.PlottingUtil.linePnt(a,e[n.index+1],S),h.push(c);for(var y=e.length,f=n.index+1;f<y;++f)h.push(e[f]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}else{for(var g,M,b=-1,m=r.length-1;m>=0;m--)if(g=new SuperMap.Geometry.Point(r[m].x,r[m].y),M=new SuperMap.Geometry.Point(a.x,a.y),SuperMap.Plot.PlottingUtil.distance(g,M)>S){b=m;break}if(-1==b)return;r.splice(b+1,r.length-1-b),u=SuperMap.Plot.PlottingUtil.linePnt(a,e[b],S),r.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);for(var d=-1,v=n.index;v<e.length;v++)if(g=new SuperMap.Geometry.Point(e[v].x,e[v].y),M=new SuperMap.Geometry.Point(a.x,a.y),SuperMap.Plot.PlottingUtil.distance(g,M)>S){d=v;break}if(-1==d)return;c=SuperMap.Plot.PlottingUtil.linePnt(a,e[d],S),h.push(c);for(var O=d+1;O<e.length;++O)h.push(e[O]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}if(!(r.length<2)){for(var U=0,w=0;w<t.length-1;w++)U+=SuperMap.Plot.PlottingUtil.distance(t[w],t[w+1]);var L=U*this.scaleValues[0],V=new SuperMap.Geometry.Point(r[0].x,r[0].y),_=new SuperMap.Geometry.Point(r[1].x,r[1].y),T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,_,V),A=[];if(A.push(T.pntLeft),A.push(T.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A),!(h.length<2)){var E=new SuperMap.Geometry.Point(h[h.length-1].x,h[h.length-1].y),x=new SuperMap.Geometry.Point(h[h.length-2].x,h[h.length-2].y),Y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,x,E);(A=[]).push(Y.pntLeft),A.push(Y.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var j=u,C=c,I=180*SuperMap.Plot.PlottingUtil.radian(j,C)/Math.PI,G=SuperMap.Plot.PlottingUtil.distance(j,C),B=new SuperMap.Geometry.Point((u.x+c.x)/2,(u.y+c.y)/2),R=this.subText;this.addText(R,B,G,I),this.addScalePoint(T.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21504=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21503=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol21502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),e}();SuperMap.Plot.AlgoSymbol21502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=l*this.scaleValues[0]*.5,S=SuperMap.Plot.PlottingUtil.circlePoint(n,P,P,a+90);this.addScalePoint(S,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);if(e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),0!==SuperMap.Plot.PlottingUtil.polylineDistance(e)){if(!this.isEdit){var l=this.getSubSymbolScaleValue();this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var o=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=o*i,a=this.scaleValues[1]*i,r=0,s=.01*i,p=s,u=0;p<=i;p+=a,u++){r=p+s;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,r);if(-1===c.index)return;var P=[],S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index],c.pt);P.push(new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y)),P.push(new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),0===u?this.addScalePoint(P[0],0):1===u&&this.addScalePoint(c.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.01*i;if(0===t){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===a.index)return;var r=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/i}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,o);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(o[c],o[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(o[p.index],p.pt),u-=n,this.scaleValues[1]=u/i,this.scaleValues[1]>.93&&(this.scaleValues[1]=.93)}}}}]),e}();SuperMap.Plot.AlgoSymbol21500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.03),l.scaleValues.push(.4),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.03),this.scaleValues.push(.4),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.02);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[1],i=l*(1-o)*.5,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(n.bfind){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue());var a,r=this.scaleValues[0],s=SuperMap.Plot.PlottingUtil.polylineDistance(t)*r,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[n.index],n.pts),u=this.scaleValues[2];1===u?a=new SuperMap.Geometry.Point(p.pntRight.x,p.pntRight.y):0===u&&(a=new SuperMap.Geometry.Point(p.pntLeft.x,p.pntLeft.y));var c=[];c.push(a),c.push(n.pts);var P;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,{lineTypeLimit:!0});var S=l*(.5+.5*o),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e);if(h.bfind){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);1===u?P=new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y):0===u&&(P=new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),this.addScalePoint(P,0);var f=[];f.push(P),f.push(h.pts);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f,{lineTypeLimit:!0}),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=i*(.5+.5*this.scaleValues[1]),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,o);if(!a.bfind)return;var r,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[a.index],a.pts),p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[a.index],o[a.index+1],e);this.scaleValues[2]=p?0:1,r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y),new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var u=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,new SuperMap.Geometry.Point(a.pts.x,a.pts.y));this.scaleValues[0]=u/i}}}]),e}();SuperMap.Plot.AlgoSymbol21401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.02));[].push(e[e.length-1]),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[0],o=t[t.length-1],i=SuperMap.Plot.PlottingUtil.distance(o,e[e.length-1]);i<1.5*l;)e.pop(),i=SuperMap.Plot.PlottingUtil.distance(o,e[e.length-1]);e.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var n=e[e.length-2],a=180*SuperMap.Plot.PlottingUtil.radian(o,n)/Math.PI,r=SuperMap.Plot.PlottingUtil.circlePoint(o,l,l,a+22.5),s=SuperMap.Plot.PlottingUtil.circlePoint(o,l,l,a-22.5),p=[];p.push(r),p.push(o),p.push(s);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol21400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length!==this.minEditPts&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(0)),this.components=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e,l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,a=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2),r=this.scaleValues[0]*l;e=0==this.scaleValues[1]?SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,n+90):SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,n+270);var s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,e]);var p=.02*SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),u=new SuperMap.Geometry.Point((o.x+a.x)/2,(o.y+a.y)/2),c=[u,new SuperMap.Geometry.Point(u.x,u.y+p)];this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var P=new SuperMap.Geometry.Point((i.x+a.x)/2,(i.y+a.y)/2);c=[P,new SuperMap.Geometry.Point(P.x,P.y+p)],this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var S=new SuperMap.Geometry.Point(e.x,e.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===n)return;var a=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2);if(0===t){var r=SuperMap.Plot.PlottingUtil.distance(e,a)/n;this.scaleValues[0]=r,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol20301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){1!==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1)),this.components=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e=this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=l*e,i=.01*l;o<2*i&&(i=.5*o);for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},a=0,r=o;r<l-i;r+=o){var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,t);if(s.bfind){var p=s.pts,u=[];u.push(p);var c=SuperMap.Plot.PlottingUtil.circlePoint(p,i,i,90);if(u.push(c),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,u,n),0===a){var P=new SuperMap.Geometry.Point(p.x,p.y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}a++}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=-1,n=0,a=new SuperMap.Geometry.Point(0,0),r=0;r<l.length-1;r++){var s,p=[];p.push(l[r]),p.push(l[r+1]);var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(u.isOnline&&(s=u.projectPoint),!u.isOnline&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(e,l[r],l[r+1])&&(s=e),void 0===s)return;if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(e,s);-1===i?(i=r,a=s,n=c):n>c&&(i=r,a=s,n=c)}}if(-1===i||i>l.length-1)return;for(var P=0,S=0;S<i;S++){var h=new SuperMap.Geometry.Point(l[S].x,l[S].y),y=new SuperMap.Geometry.Point(l[S+1].x,l[S+1].y);P+=SuperMap.Plot.PlottingUtil.distance(h,y)}var f=new SuperMap.Geometry.Point(l[i].x,l[i].y);if((P+=SuperMap.Plot.PlottingUtil.distance(f,a))<0||P>o)return;var g=P/o;g>.95?g=.95:g<.1&&(g=.1),this.scaleValues[0]=g}}}]),e}();SuperMap.Plot.AlgoSymbol20300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e,l,o,i,n,a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=0,u=0;if(t.length==this.minEditPts){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y);var c=SuperMap.Plot.PlottingUtil.distance(l,o);p=2*c,e=new SuperMap.Geometry.Point(l.x+p*a,l.y+p*r);var P=2*c*s/.28/2;u=P,i=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,0),(n=[]).push(e.clone()),n.push(i.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n)}else{this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),p=SuperMap.Plot.PlottingUtil.distance(l,o)+SuperMap.Plot.PlottingUtil.distance(l,i),e=new SuperMap.Geometry.Point(l.x+p*a,l.y+p*r);var S=p*s/.21/2,h=p*s/.38/2;u=S;var y=SuperMap.Plot.PlottingUtil.circlePoint(e,S,S,0),f=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,90);(n=[]).push(e.clone()),n.push(y.clone()),n.push(f.clone()),this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,n)}this.scalePoints=[];var g=new SuperMap.Geometry.Point(e.x+.1*p,e.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var M=SuperMap.Plot.PlottingUtil.circlePoint(e,u,u,90);M.isScalePoint=!0,M.tag=1,this.scalePoints.push(M),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMap.Plot.PlottingUtil.distance(a[0],a[1]):SuperMap.Plot.PlottingUtil.distance(a[0],a[1])+SuperMap.Plot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*s-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(r.x+s*l,r.y+s*o);n=SuperMap.Plot.PlottingUtil.distance(p,e),i=.1,i=2===a.length?.56*n/s:.42*n/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=3*(l*n),s=new SuperMap.Geometry.Point(-.5*r,.3*r),p=new SuperMap.Geometry.Point(-.5*r,-.3*r),u=new SuperMap.Geometry.Point(.5*r,-.3*r),c=new SuperMap.Geometry.Point(.5*r,.3*r),P=SuperMap.Plot.PlottingUtil.coordinateTrans(a,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(a,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var g=new SuperMap.Geometry.Point(-.3*r,.3*r),M=new SuperMap.Geometry.Point(-.3*r,.5*r),b=SuperMap.Plot.PlottingUtil.coordinateTrans(a,g,0),m=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,0);(f=[]).push(b.clone()),f.push(m.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(-.3*r,-.3*r),v=new SuperMap.Geometry.Point(-.3*r,-.5*r),O=SuperMap.Plot.PlottingUtil.coordinateTrans(a,d,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(a,v,0);(f=[]).push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var w=new SuperMap.Geometry.Point(.3*r,.3*r),L=new SuperMap.Geometry.Point(.3*r,.5*r),V=SuperMap.Plot.PlottingUtil.coordinateTrans(a,w,0),_=SuperMap.Plot.PlottingUtil.coordinateTrans(a,L,0);(f=[]).push(V.clone()),f.push(_.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var T=new SuperMap.Geometry.Point(.3*r,-.3*r),A=new SuperMap.Geometry.Point(.3*r,-.5*r),E=SuperMap.Plot.PlottingUtil.coordinateTrans(a,T,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(a,A,0);(f=[]).push(E.clone()),f.push(x.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var Y=new SuperMap.Geometry.Point(a.x+.1*r,a.y);Y.isScalePoint=!0,Y.tag=0,this.scalePoints.push(Y);var j=SuperMap.Plot.PlottingUtil.circlePoint(a,.5*r,.5*r,90);j.isScalePoint=!0,j.tag=1,this.scalePoints.push(j),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=l*n,s=3*r,p=new SuperMap.Geometry.Point(-.5*s,.5*r),u=new SuperMap.Geometry.Point(.5*s,.5*r),c=SuperMap.Plot.PlottingUtil.coordinateTrans(a,p,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,0),S=[];S.push(c.clone()),S.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=new SuperMap.Geometry.Point(-.5*s,-.5*r),y=new SuperMap.Geometry.Point(.5*s,-.5*r),f=SuperMap.Plot.PlottingUtil.coordinateTrans(a,h,0),g=SuperMap.Plot.PlottingUtil.coordinateTrans(a,y,0);(S=[]).push(f.clone()),S.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var M=new SuperMap.Geometry.Point(-.1*s,.5*r),b=new SuperMap.Geometry.Point(-.15*s,-.5*r),m=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(a,b,0);(S=[]).push(m.clone()),S.push(d.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var v=new SuperMap.Geometry.Point(.15*s,.5*r),O=new SuperMap.Geometry.Point(.1*s,-.5*r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(a,v,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(a,O,0);(S=[]).push(U.clone()),S.push(w.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.scalePoints=[];var L=new SuperMap.Geometry.Point(a.x+.1*s,a.y);L.isScalePoint=!0,L.tag=0,this.scalePoints.push(L);var V=SuperMap.Plot.PlottingUtil.circlePoint(a,.5*s,.5*s,90);V.isScalePoint=!0,V.tag=1,this.scalePoints.push(V),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMap.Plot.PlottingUtil.distance(a[0],a[1]):SuperMap.Plot.PlottingUtil.distance(a[0],a[1])+SuperMap.Plot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(r.x+s*l,r.y+s*o);i=2*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s/3,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.2)),2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=2==t.length?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=l*n,s=new SuperMap.Geometry.Point(-.5*r,.25*r),p=new SuperMap.Geometry.Point(-.4*r,.125*r),u=new SuperMap.Geometry.Point(.4*r,.125*r),c=new SuperMap.Geometry.Point(.5*r,.25*r),P=SuperMap.Plot.PlottingUtil.coordinateTrans(a,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(a,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=new SuperMap.Geometry.Point(-.5*r,-.25*r),M=new SuperMap.Geometry.Point(-.4*r,-.125*r),b=new SuperMap.Geometry.Point(.4*r,-.125*r),m=new SuperMap.Geometry.Point(.5*r,-.25*r),d=SuperMap.Plot.PlottingUtil.coordinateTrans(a,g,0),v=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(a,b,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(a,m,0);(f=[]).push(d.clone()),f.push(v.clone()),f.push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var w=new SuperMap.Geometry.Point(a.x+.1*r,a.y);w.isScalePoint=!0,w.tag=0,this.scalePoints.push(w);var L=SuperMap.Plot.PlottingUtil.circlePoint(a,.25*r,.25*r,90);L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMap.Plot.PlottingUtil.distance(a[0],a[1]):SuperMap.Plot.PlottingUtil.distance(a[0],a[1])+SuperMap.Plot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(r.x+s*l,r.y+s*o);i=4*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],a=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),r=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+90),s=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+270);n.push(a.clone()),n.push(r.clone()),n.push(s.clone()),n.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),c=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(u.clone()),n.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),S=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(P.clone()),n.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var h=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),y=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(h.clone()),n.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var f=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),g=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(f.clone()),n.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],a=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,0);n.push(t[0].clone()),n.push(a.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n);var r=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),s=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(r.clone()),n.push(s.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var p=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),u=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(p.clone()),n.push(u.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var c=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),P=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(c.clone()),n.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var S=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),h=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(S.clone()),n.push(h.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),a=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180),r=[];r.push(n.clone()),r.push(a.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var s=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(r=[]).push(s.clone()),r.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o),c=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(r=[]).push(u.clone()),r.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),S=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(r=[]).push(P.clone()),r.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol17704=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="急",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17703),e}();SuperMap.Plot.AlgoSymbol17704=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17703=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="加",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues=[]);var o=[];if(this.scalePoints=[],t.length<3)o.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),o.push(new SuperMap.Geometry.Point(t[1].x,t[1].y));else{var i=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=i.scaleValues;for(var n=0;n<i.scalePoints.length;n++)this.addScalePoint(i.scalePoints[n]);o=i.beizerPoints}if(!(o.length<2)){var a=e/2;if(-1!==SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,a).index){var r,s;if(r=2==t.length?0:t.length-1,this.isEdit)s=this.scaleValues[4*r]*e,isNaN(s)&&(s=Math.abs(this.scaleValues[4*r-1]*e));else{var p=.5*this.getSubSymbolScaleValue();s=p*e,this.scaleValues.push(p)}var u=a-s,c=a+s,P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,u);if(-1!==P.index){var S=P.pt;this.addScalePoint(new SuperMap.Geometry.Point(S.x,S.y));var h=[];if(0==P.index)h.push(o[0]);else for(var y=0;y<P.index;y++)h.push(o[y]);h.push(S);var f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,c);if(-1!==f.index){var g=f.pt,M=[];M.push(g);for(var b=f.index+1;b<o.length;b++)M.push(o[b]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var m=h[h.length-1],d=M[0],v=180*SuperMap.Plot.PlottingUtil.radian(m,d)/Math.PI,O=SuperMap.Plot.PlottingUtil.distance(m,d),U=new SuperMap.Geometry.Point((m.x+d.x)/2,(m.y+d.y)/2),w=this.subText;this.addText(w,U,O,v),this.finish()}}}}}}},{key:"computeBeizer",value:function(t,e){var l,o,i,n=[];if(this.scalePoints=[],this.isEdit){(i=[]).push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),i.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),l=this.scaleValues[0],o=this.scaleValues[1];var a=t[0].x+e*l,r=t[0].y+e*o;i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r));for(var s=1;s<t.length-1;s++)i.push(new SuperMap.Geometry.Point(t[s].x,t[s].y)),l=this.scaleValues[4*s-2],o=this.scaleValues[4*s-1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r)),l=this.scaleValues[4*s],o=this.scaleValues[4*s+1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r));var p=t.length-1;i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),l=this.scaleValues[4*p-2],o=this.scaleValues[4*p-1],a=t[p].x+e*l,r=t[p].y+e*o,i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r)),i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}else{if(this.scaleValues=[],i=[],(i=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(t)).length<3)return n;var u=i[2].x-i[0].x,c=i[2].y-i[0].y;l=u/e,o=c/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[2].x,i[2].y));for(var P=1;P<t.length-1;P++){l=(u=i[3*P+1].x-i[3*P].x)/e,o=(c=i[3*P+1].y-i[3*P].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+1].x,i[3*P+1].y));var S=(i[3*P+2].x-i[3*P].x)/e,h=(i[3*P+2].y-i[3*P].y)/e;this.scaleValues.push(S),this.scaleValues.push(h),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+2].x,i[3*P+2].y))}l=(u=i[3*(t.length-1)+1].x-i[3*(t.length-1)].x)/e,o=(c=i[3*(t.length-1)+1].y-i[3*(t.length-1)].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*(t.length-1)+1].x,i[3*(t.length-1)+1].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),t<0||t>2*l.length-2)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(2*(l.length-1)==t||2==l.length){for(var n=this.computeBeizer(l,o),a=0,r=0;r<n.length-1;r++)a+=SuperMap.Plot.PlottingUtil.distance(n[r],n[r+1]);var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,a/2);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(e,s.pt)/o;p>.45&&(p=.45),2==l.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var u=-1;u=t%2==0?t/2:(t+1)/2;var c=(e.x-l[u].x)/o,P=(e.y-l[u].y)/o;this.scaleValues[2*t]=c,this.scaleValues[2*t+1]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol17703=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&this.scaleValues.push(.02),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.paraLine(o,l,!0),n=SuperMap.Plot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);for(var a={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},r=this.getDashLinePts(n,5*l),s=0;s<r.length;s++){var p=r[s];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,a)}this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var c=r.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMap.Plot.AlgoSymbol17700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},a=this.scaleValues[0]*e;o=SuperMap.Plot.PlottingUtil.paraLine(t,a,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,a,!1);var r=new SuperMap.Geometry.Point(o[0].x,o[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var s=new SuperMap.Geometry.Point(t[0].x,t[0].y),p=new SuperMap.Geometry.Point(t[1].x,t[1].y),u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI,c=new SuperMap.Geometry.Point(.3*e,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(s,c,u),S=new SuperMap.Geometry.Point(0,.7*a),h=SuperMap.Plot.PlottingUtil.coordinateTrans(P,S,u),y=[];y.push(new SuperMap.Geometry.Point(P.x,P.y)),y.push(new SuperMap.Geometry.Point(h.x,h.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,y,n);var f=new SuperMap.Geometry.Point(.7*a,.7*a),g=new SuperMap.Geometry.Point(-.7*a,.7*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,u),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,g,u);(y=[]).push(new SuperMap.Geometry.Point(M.x,M.y)),y.push(new SuperMap.Geometry.Point(b.x,b.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var m=new SuperMap.Geometry.Point(.7*e,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(s,m,u),v=new SuperMap.Geometry.Point(.7*a,.7*a),O=new SuperMap.Geometry.Point(.7*a,-.7*a),U=new SuperMap.Geometry.Point(-.7*a,-.7*a),w=new SuperMap.Geometry.Point(-.7*a,.7*a),L=SuperMap.Plot.PlottingUtil.coordinateTrans(d,v,u),V=SuperMap.Plot.PlottingUtil.coordinateTrans(d,O,u),_=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,u),T=SuperMap.Plot.PlottingUtil.coordinateTrans(d,w,u);(y=[]).push(new SuperMap.Geometry.Point(L.x,L.y)),y.push(new SuperMap.Geometry.Point(V.x,V.y)),y.push(new SuperMap.Geometry.Point(_.x,_.y)),y.push(new SuperMap.Geometry.Point(T.x,T.y)),y.push(new SuperMap.Geometry.Point(L.x,L.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var A=new SuperMap.Geometry.Point(.3*a,.3*a),E=new SuperMap.Geometry.Point(.3*a,-.3*a),x=new SuperMap.Geometry.Point(-.3*a,-.3*a),Y=new SuperMap.Geometry.Point(-.3*a,.3*a),j=SuperMap.Plot.PlottingUtil.coordinateTrans(d,A,u),C=SuperMap.Plot.PlottingUtil.coordinateTrans(d,E,u),I=SuperMap.Plot.PlottingUtil.coordinateTrans(d,x,u),G=SuperMap.Plot.PlottingUtil.coordinateTrans(d,Y,u);(y=[]).push(new SuperMap.Geometry.Point(j.x,j.y)),y.push(new SuperMap.Geometry.Point(C.x,C.y)),y.push(new SuperMap.Geometry.Point(I.x,I.y)),y.push(new SuperMap.Geometry.Point(G.x,G.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=l[0],a=l[1],r=SuperMap.Plot.PlottingUtil.projectPoint(e,n,a),s=SuperMap.Plot.PlottingUtil.distance(e,r);this.scaleValues[0]=s/o}}}}]),e}();SuperMap.Plot.AlgoSymbol17600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),s=.33*(o-l),p=.1*(n-i),u=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,0),c=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,180),P=[];P.push(new SuperMap.Geometry.Point(u.x,u.y)),P.push(new SuperMap.Geometry.Point(c.x,c.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=new SuperMap.Geometry.Point(r.x-3*s/7,r.y+p),h=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,60),y=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(h.x,h.y)),P.push(new SuperMap.Geometry.Point(S.x,S.y)),P.push(new SuperMap.Geometry.Point(y.x,y.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var f=new SuperMap.Geometry.Point(r.x+3*s/7,r.y+p),g=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,60),M=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(g.x,g.y)),P.push(new SuperMap.Geometry.Point(f.x,f.y)),P.push(new SuperMap.Geometry.Point(M.x,M.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},s=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),p=o-l,u=n-i,c=.1*p,P=.1*u,S=new SuperMap.Geometry.Point(s.x,s.y+P),h=new SuperMap.Geometry.Point(s.x-c,s.y-P),y=new SuperMap.Geometry.Point(s.x+c,s.y-P);c=.03*p,P=.03*u;var f=new SuperMap.Geometry.Point(S.x,S.y+P),g=new SuperMap.Geometry.Point(S.x-c,S.y-P),M=new SuperMap.Geometry.Point(S.x+c,S.y-P),b=[];b.push(new SuperMap.Geometry.Point(f.x,f.y)),b.push(new SuperMap.Geometry.Point(g.x,g.y)),b.push(new SuperMap.Geometry.Point(M.x,M.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,r);var m=new SuperMap.Geometry.Point(h.x,h.y+P),d=new SuperMap.Geometry.Point(h.x-c,h.y-P),v=new SuperMap.Geometry.Point(h.x+c,h.y-P),O=[];O.push(new SuperMap.Geometry.Point(m.x,m.y)),O.push(new SuperMap.Geometry.Point(d.x,d.y)),O.push(new SuperMap.Geometry.Point(v.x,v.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,O,r);var U=new SuperMap.Geometry.Point(y.x,y.y+P),w=new SuperMap.Geometry.Point(y.x-c,y.y-P),L=new SuperMap.Geometry.Point(y.x+c,y.y-P),V=[];V.push(new SuperMap.Geometry.Point(U.x,U.y)),V.push(new SuperMap.Geometry.Point(w.x,w.y)),V.push(new SuperMap.Geometry.Point(L.x,L.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,r),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=[],r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y),a.push(e[r]);for(var s=(o-l)/5,p=.15*s,u=[],c=0;c<360;c+=18){var P=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),p,p,c);u.push(P)}for(var S=0,h=l;h<o;h+=s)for(var y=i;y<n;y+=s){var f=new SuperMap.Geometry.Point(h,y);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(a,f))if(0===S){S++;for(var g=[],M=0;M<u.length;M++){var b=new SuperMap.Geometry.Point(f.x+u[M].x,f.y+u[M].y);g.push(b)}g.push(g[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fillColorLimit:!0,fillColor:"#ffff00",surroundLineFlag:!1,fillLimit:!0,fillOpacity:1});var m=[];m.push(g[10]),m.push(new SuperMap.Geometry.Point(g[10].x-.5*p,g[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=[];d.push(g[0]),d.push(new SuperMap.Geometry.Point(g[0].x+.5*p,g[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}else 1===S?(S++,null!=this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],f,2*p,0)):(S=0,null!=this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],f,3*p,0))}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,a=e[0].y,r=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),a<e[s].y&&(a=e[s].y),r.push(e[s]);for(var p=(i-o)/5,u=.2*p,c=[],P=0;P<360;P+=18){var S=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),u,u,P);c.push(S)}for(var h=0,y=o;y<i;y+=p)for(var f=n;f<a;f+=p){var g,M=new SuperMap.Geometry.Point(y,f);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(r,M))0===h?(h=0,this.subSymbols.length>0&&(g=.015*l,this.computeSubSymbol(this.subSymbols[0],M,g,0)),h++):(h=0,this.subSymbols.length>0&&(g=.022*l,this.computeSubSymbol(this.subSymbols[1],M,g,0)))}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e,a=t[0],r=t[1],s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI;o=SuperMap.Plot.PlottingUtil.paraLine(t,n,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,n,!1);var p=.15*e,u=SuperMap.Plot.PlottingUtil.circlePoint(o[0],p,p,s+165),c=SuperMap.Plot.PlottingUtil.circlePoint(i[0],p,p,s-165),P=SuperMap.Plot.PlottingUtil.circlePoint(o[o.length-1],p,p,s+15),S=SuperMap.Plot.PlottingUtil.circlePoint(i[i.length-1],p,p,s-15),h=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],3*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],4*e/11),f=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],7*e/11),g=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],8*e/11),M=[];M.push(u),M.push(o[0]),M.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),(M=[]).push(y),M.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),(M=[]).push(g),M.push(o[o.length-1]),M.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],8*e/11),O=[];if(O.push(c),O.push(i[0]),O.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),(O=[]).push(m),O.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),(O=[]).push(v),O.push(i[i.length-1]),O.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),90<s&&s<270){var U=a;a=r,r=U,s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI}var w=new SuperMap.Geometry.Point(.25*e,n+.2*e),L=new SuperMap.Geometry.Point(.35*e,n+.2*e+.1*e),V=new SuperMap.Geometry.Point(.35*e,n+.2*e-.1*e),_=SuperMap.Plot.PlottingUtil.coordinateTrans(a,w,s),T=SuperMap.Plot.PlottingUtil.coordinateTrans(a,L,s),A=SuperMap.Plot.PlottingUtil.coordinateTrans(a,V,s),E=[];E.push(new SuperMap.Geometry.Point(T.x,T.y)),E.push(new SuperMap.Geometry.Point(_.x,_.y)),E.push(new SuperMap.Geometry.Point(A.x,A.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var x=new SuperMap.Geometry.Point(.35*e,n+.2*e),Y=new SuperMap.Geometry.Point(.4*e,n+.2*e+.05*e),j=new SuperMap.Geometry.Point(.4*e,n+.2*e-.05*e),C=SuperMap.Plot.PlottingUtil.coordinateTrans(a,x,s),I=SuperMap.Plot.PlottingUtil.coordinateTrans(a,Y,s),G=SuperMap.Plot.PlottingUtil.coordinateTrans(a,j,s);(E=[]).push(new SuperMap.Geometry.Point(I.x,I.y)),E.push(new SuperMap.Geometry.Point(C.x,C.y)),E.push(new SuperMap.Geometry.Point(G.x,G.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var B=new SuperMap.Geometry.Point(.7*e,n+.2*e),R=new SuperMap.Geometry.Point(.8*e,n+.2*e+.1*e),N=new SuperMap.Geometry.Point(.8*e,n+.2*e-.1*e),D=SuperMap.Plot.PlottingUtil.coordinateTrans(a,B,s),k=SuperMap.Plot.PlottingUtil.coordinateTrans(a,R,s),z=SuperMap.Plot.PlottingUtil.coordinateTrans(a,N,s);(E=[]).push(new SuperMap.Geometry.Point(k.x,k.y)),E.push(new SuperMap.Geometry.Point(D.x,D.y)),E.push(new SuperMap.Geometry.Point(z.x,z.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var F=new SuperMap.Geometry.Point(.8*e,n+.2*e),K=new SuperMap.Geometry.Point(.85*e,n+.2*e+.05*e),q=new SuperMap.Geometry.Point(.85*e,n+.2*e-.05*e),W=SuperMap.Plot.PlottingUtil.coordinateTrans(a,F,s),J=SuperMap.Plot.PlottingUtil.coordinateTrans(a,K,s),Z=SuperMap.Plot.PlottingUtil.coordinateTrans(a,q,s);(E=[]).push(new SuperMap.Geometry.Point(J.x,J.y)),E.push(new SuperMap.Geometry.Point(W.x,W.y)),E.push(new SuperMap.Geometry.Point(Z.x,Z.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var H=new SuperMap.Geometry.Point(o[0].x,o[0].y);H.isScalePoint=!0,H.tag=0,this.scalePoints.push(H),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=l[0],a=l[1],r=SuperMap.Plot.PlottingUtil.projectPoint(e,n,a),s=SuperMap.Plot.PlottingUtil.distance(e,r);this.scaleValues[0]=s/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=new SuperMap.Geometry.Point(t[0].x,t[0].y),a=new SuperMap.Geometry.Point(t[1].x,t[1].y),r=180*SuperMap.Plot.PlottingUtil.radian(n,a)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,r+90),p=SuperMap.Plot.PlottingUtil.circlePoint(n,i,i,r+90),u=SuperMap.Plot.PlottingUtil.circlePoint(a,o,o,r+90),c=SuperMap.Plot.PlottingUtil.circlePoint(a,i,i,r+90),P=[];P.push(p),P.push(s),P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(p),P.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(c),P.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P));var S=new SuperMap.Geometry.Point(s.x,s.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var h=new SuperMap.Geometry.Point(p.x,p.y);h.isScalePoint=!0,h.tag=1,this.scalePoints.push(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(this.isEdit=!0,!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(n<this.scaleValues[1])return;this.scaleValues[0]=n}else if(1==t){var a=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(this.scaleValues[0]<a)return;this.scaleValues[1]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol16700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){var t,e=[];if(2===this.controlPoints.length){for(var l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),o=this.scaleValues[0]*l,i=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,o/2),n=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-o/2),a=180*SuperMap.Plot.PlottingUtil.radian(this.controlPoints[0],this.controlPoints[1])/Math.PI,r=[],s=a+90;s<=a+270;s+=10)t=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],o/2,o/2,s),r.push(t);for(var p=[],u=a-90;u<=a+90;u+=10)t=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[1],o/2,o/2,u),p.push(t);e=(e=(e=(e=e.concat(r)).concat(n)).concat(p)).concat(i)}else this.controlPoints.length<=3?e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,this.controlPoints):this.controlPoints.length>3&&!0===this.polylineConnectLocationPoint?e=this.controlPoints:(this.controlPoints.push(this.controlPoints[0]),e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints));e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var c=e[0].x,P=e[0].x,S=e[0].y,h=e[0].y;for(s=0;s<e.length;s++)c>e[s].x&&(c=e[s].x),P<e[s].x&&(P=e[s].x),S>e[s].y&&(S=e[s].y),h<e[s].y&&(h=e[s].y);for(var y=new SuperMap.Geometry.Point((P+c)/2,(h+S)/2),f=(P-c)/5,g={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},M=!0,b=y.x,m=y.x;M;){M=!1;for(var d,v,O,U=[],w=[],L=new SuperMap.Geometry.Point(b,y.y),V=SuperMap.Plot.PlottingUtil.circlePoint(L,10,10,45),_=SuperMap.Plot.PlottingUtil.circlePoint(L,10,10,135),T=0;T<e.length-1;T++)(v=SuperMap.Plot.PlottingUtil.intersectLines(L,V,e[T],e[T+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint,e[T],e[T+1])&&U.push(v.intersectPoint),(O=SuperMap.Plot.PlottingUtil.intersectLines(L,_,e[T],e[T+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(O.intersectPoint,e[T],e[T+1])&&w.push(O.intersectPoint);if(1<U.length){U=this.sortPts2D(U);for(var A=0;A<U.length-1;A++)if(t=new SuperMap.Geometry.Point((U[A].x+U[A+1].x)/2,(U[A].y+U[A+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)){var E=[];E.push(U[A]),E.push(U[A+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E,g,!0)}}if(1<w.length){w=this.sortPts2D(w);for(var x=0;x<w.length-1;x++)t=new SuperMap.Geometry.Point((w[x].x+w[x+1].x)/2,(w[x].y+w[x+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(w[x]),d.push(w[x+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,g,!0))}(U.length>0||w.length>0)&&(M=!0),U=[],w=[];for(var Y=new SuperMap.Geometry.Point(m,y.y),j=SuperMap.Plot.PlottingUtil.circlePoint(Y,5,5,45),C=SuperMap.Plot.PlottingUtil.circlePoint(Y,5,5,135),I=0;I<e.length-1;I++)(v=SuperMap.Plot.PlottingUtil.intersectLines(Y,j,e[I],e[I+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint,e[I],e[I+1])&&U.push(v.intersectPoint),(O=SuperMap.Plot.PlottingUtil.intersectLines(Y,C,e[I],e[I+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(O.intersectPoint,e[I],e[I+1])&&w.push(O.intersectPoint);if(1<U.length){U=this.sortPts2D(U);for(var G=0;G<U.length-1;G+=2)t=new SuperMap.Geometry.Point((U[G].x+U[G+1].x)/2,(U[G].y+U[G+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(U[G]),d.push(U[G+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,g,!0))}if(1<w.length){w=this.sortPts2D(w);for(var B=0;B<w.length-1;B++)t=new SuperMap.Geometry.Point((w[B].x+w[B+1].x)/2,(w[B].y+w[B+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(w[B]),d.push(w[B+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,g,!0))}(U.length>0||w.length>0)&&(M=!0),b-=f,m+=f}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e,l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol16500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16203=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());for(var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=.01*e,a=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ff0000",fillOpacity:1},p=n,u=0;p<=a;p+=i,u++){r=p+n;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,r);if(-1===c.index)return;for(var P=SuperMap.Plot.PlottingUtil.radian(c.pt,l[c.index+1])*SuperMap.Plot.PlottingUtil.RTOD,S=this.getSubSymbolPts(o),h=[],y=0,f=S.length;y<f;y++)h.push(SuperMap.Plot.PlottingUtil.coordinateTrans(c.pt,S[y],P));if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,s),0===u){var g=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);this.addScalePoint(g,0)}else 1===u&&this.addScalePoint(c.pt,1);this.finish()}}}},{key:"getSubSymbolPts",value:function(t){var e=.5*t,l=[];return l.push(new SuperMap.Geometry.Point(.5*e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,-2*e)),l.push(new SuperMap.Geometry.Point(.5*e,-2*e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var n=.01*o;if(0===t){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===a.index)return;var r=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/o}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(i[c],i[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(i[p.index],p.pt),u-=n,this.scaleValues[1]=u/o,u>o-o*this.scaleValues[0]-n&&(this.scaleValues[1]=(o-o*this.scaleValues[0]-n)/o)}}}}]),e}();SuperMap.Plot.AlgoSymbol16203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e;o=SuperMap.Plot.PlottingUtil.paraLine(t,n,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,n,!1);var a=new SuperMap.Geometry.Point(o[0].x,o[0].y);a.isScalePoint=!0,a.tag=0,this.scalePoints.push(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var r=new SuperMap.Geometry.Point(t[0].x,t[0].y),s=new SuperMap.Geometry.Point(t[1].x,t[1].y),p=180*SuperMap.Plot.PlottingUtil.radian(r,s)/Math.PI,u=new SuperMap.Geometry.Point(.3*e,0),c=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,p),P=new SuperMap.Geometry.Point(0,.4*n),S=new SuperMap.Geometry.Point(0,.2*n),h=SuperMap.Plot.PlottingUtil.coordinateTrans(c,P,p),y=SuperMap.Plot.PlottingUtil.coordinateTrans(c,S,p),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var g=new SuperMap.Geometry.Point(0,.2*n),M=new SuperMap.Geometry.Point(0,-.4*n),b=SuperMap.Plot.PlottingUtil.coordinateTrans(c,g,p),m=SuperMap.Plot.PlottingUtil.coordinateTrans(c,M,p);(f=[]).push(b),f.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(.2*n,-.2*n),v=new SuperMap.Geometry.Point(-.2*n,-.6*n),O=SuperMap.Plot.PlottingUtil.coordinateTrans(c,d,p),U=SuperMap.Plot.PlottingUtil.coordinateTrans(c,v,p);(f=[]).push(O),f.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var w=new SuperMap.Geometry.Point(-.2*n,-.2*n),L=new SuperMap.Geometry.Point(.2*n,-.6*n),V=SuperMap.Plot.PlottingUtil.coordinateTrans(c,w,p),_=SuperMap.Plot.PlottingUtil.coordinateTrans(c,L,p);(f=[]).push(V),f.push(_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var T=new SuperMap.Geometry.Point(.7*e,0),A=SuperMap.Plot.PlottingUtil.coordinateTrans(r,T,p),E=SuperMap.Plot.PlottingUtil.coordinateTrans(A,P,p),x=SuperMap.Plot.PlottingUtil.coordinateTrans(A,S,p);(f=[]).push(E),f.push(x),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var Y=SuperMap.Plot.PlottingUtil.coordinateTrans(A,g,p),j=SuperMap.Plot.PlottingUtil.coordinateTrans(A,M,p);(f=[]).push(Y),f.push(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var C=SuperMap.Plot.PlottingUtil.coordinateTrans(A,d,p),I=SuperMap.Plot.PlottingUtil.coordinateTrans(A,v,p);(f=[]).push(C),f.push(I),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var G=SuperMap.Plot.PlottingUtil.coordinateTrans(A,w,p),B=SuperMap.Plot.PlottingUtil.coordinateTrans(A,L,p);(f=[]).push(G),f.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol16202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(.01)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!1);i=SuperMap.Plot.PlottingUtil.clearSamePts(i),n=SuperMap.Plot.PlottingUtil.clearSamePts(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);for(var a=e*this.scaleValues[1],r=e*this.scaleValues[3],s=0,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=r,c=0;u<=p-r;u+=a,c++){s=u+r;var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,s);if(-1!==P.index){var S=new SuperMap.Geometry.Point(P.pt.x,P.pt.y+.5*o),h=[];h.push(P.pt),h.push(S),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,h),0===c?this.addScalePoint(S):1===c&&this.addScalePoint(P.pt)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMap.Plot.PlottingUtil.clearSamePts(a),0==t){n=o*this.scaleValues[3];var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=2*SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=o*this.scaleValues[3];var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,a[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(a[P],a[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*o);var i=this.scaleValues[0]*e,n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!0),a=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!1);n=SuperMap.Plot.PlottingUtil.clearSamePts(n),a=SuperMap.Plot.PlottingUtil.clearSamePts(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);for(var r=e*this.scaleValues[1],s=.5*i,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=s,c=0;u<p;u+=r,c++){var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,u);if(-1!==P.index){var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,l[P.index+1],P.pt),h=[];h.push(S.pntLeft),h.push(S.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),0===c?this.addScalePoint(S.pntRight,0):1===c&&this.addScalePoint(P.pt,1)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMap.Plot.PlottingUtil.clearSamePts(a),0==t){n=.5*(o*this.scaleValues[0]);var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=.5*(o*this.scaleValues[0]);var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,a[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(a[P],a[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16100=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts)this.calAssistantLine();else{var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);t.push(t[0]);for(var l=!0,o=e.x,i=e.x+.8,n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};l;){l=!1;for(var a,r,s,p,u,c,P=[],S=[],h=new SuperMap.Geometry.Point(o,e.y),y=SuperMap.Plot.PlottingUtil.circlePoint(h,10,10,45),f=SuperMap.Plot.PlottingUtil.circlePoint(h,10,10,135),g=0;g<t.length-1;g++)(s=SuperMap.Plot.PlottingUtil.intersectLines(h,y,t[g],t[g+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t[g],t[g+1])&&P.push(s.intersectPoint),(p=SuperMap.Plot.PlottingUtil.intersectLines(h,f,t[g],t[g+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t[g],t[g+1])&&S.push(p.intersectPoint);if(1<P.length){u=[],u=this.sortPts2D(P);for(var M=0;M<u.length-1;M++)a=new SuperMap.Geometry.Point((u[M].x+u[M+1].x)/2,(u[M].y+u[M+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(u[M]),r.push(u[M+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}if(1<S.length){c=[],c=this.sortPts2D(S);for(var b=0;b<c.length-1;b++)a=new SuperMap.Geometry.Point((c[b].x+c[b+1].x)/2,(c[b].y+c[b+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(c[b]),r.push(c[b+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}(P.length>0||S.length>0)&&(l=!0),P=[],S=[];for(var m=new SuperMap.Geometry.Point(i,e.y),d=SuperMap.Plot.PlottingUtil.circlePoint(m,10,10,45),v=SuperMap.Plot.PlottingUtil.circlePoint(m,10,10,135),O=0;O<t.length-1;O++)(s=SuperMap.Plot.PlottingUtil.intersectLines(m,d,t[O],t[O+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t[O],t[O+1])&&P.push(s.intersectPoint),(p=SuperMap.Plot.PlottingUtil.intersectLines(m,v,t[O],t[O+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t[O],t[O+1])&&S.push(p.intersectPoint);if(1<P.length){u=[],u=this.sortPts2D(P);for(var U=0;U<u.length-1;U++)a=new SuperMap.Geometry.Point((u[U].x+u[U+1].x)/2,(u[U].y+u[U+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(u[U]),r.push(u[U+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}if(1<S.length){c=[],c=this.sortPts2D(S);for(var w=0;w<c.length-1;w++)a=new SuperMap.Geometry.Point((c[w].x+c[w+1].x)/2,(c[w].y+c[w+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(c[w]),r.push(c[w+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}(P.length>0||S.length>0)&&(l=!0),o-=.8,i+=.8}this.finish()}}}},{key:"sortPts2D",value:function(t){for(var e,l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=tempPt11):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol16100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.05*SuperMap.Plot.PlottingUtil.distance(e,l),i=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);for(var a=0,r=0;r<i.length-1;r++)a+=SuperMap.Plot.PlottingUtil.distance(i[r],i[r+1]);for(var s,p,u,c,P,S,h=a*this.getSubSymbolScaleValue()*.5,y=6*h,f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},g=h;g<=a-h/2;g+=y)-1!==(s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,g)).index&&(p=180*SuperMap.Plot.PlottingUtil.radian(i[s.index],i[s.index+1])/Math.PI,u=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,h,h,p+90),c=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p+180),(S=[]).push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,f));for(var M=h;M<=a-h/2;M+=y)-1!==(s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,M)).index&&(p=180*SuperMap.Plot.PlottingUtil.radian(n[s.index],n[s.index+1])/Math.PI,u=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,h,h,p+270),c=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p+180),(S=[]).push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,f));this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol16001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.05*SuperMap.Plot.PlottingUtil.distance(e,l),i=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=[];a=this.scaleValues[0]<0?a.concat(n):a.concat(i);for(var r=0,s=0;s<a.length-1;s++)r+=SuperMap.Plot.PlottingUtil.distance(a[s],a[s+1]);for(var p=this.getSubSymbolScaleValue(),u=r*p*.5,c=r*p*.125,P=.1*r,S=r*p*.5,h=0;h<=r;h+=P){var y=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,h+S);if(-1!==y.index){var f,g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,a[y.index],y.pt);f=this.scaleValues[0]>0?new SuperMap.Geometry.Point(g.pntLeft.x,g.pntLeft.y):new SuperMap.Geometry.Point(g.pntRight.x,g.pntRight.y);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(c,f,y.pt),b=[];if(b.push(M.pntRight),b.push(f),b.push(M.pntLeft),0===h){var m=new SuperMap.Geometry.Point(f.x,f.y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMap.Plot.AlgoSymbol16000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);var i=l*this.scaleValues[0],n=l*this.scaleValues[2],a=!1;a=0===this.scaleValues[0];for(var r=0,s=0;s<e.length-1;s++)r+=SuperMap.Plot.PlottingUtil.distance(e[s],e[s+1]);if(0!==r){for(var p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(-1!==u.index){var c=[],P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);a?c.push(P.pntRight):c.push(P.pntLeft);var S=p+n,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,S);if(-1!==h.index){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[h.index+1],h.pt);a?c.push(y.pntLeft):c.push(y.pntRight),Math.abs(p)<1e-6&&(this.addScalePoint(c[0],0),this.addScalePoint(h.pt,1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}}}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return;for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15806=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.06),l.scaleValues.push(1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(t.length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=.6*i,a=this.scaleValues[2]*o,r=0===this.scaleValues[1],s=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===s)return;for(var p=[],u=0;u<=s;u+=a){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),!((c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.65*a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),r?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.8*a)).index<0||(p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.5*a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),r?p.push(P.pntLeft):p.push(P.pntRight),c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.2*a),p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.35*a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),r?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),r?p.push(P.pntRight):p.push(P.pntLeft),!(Math.abs(u)<=1e-6)))))))){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),(S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S)}}}var h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMap.Plot.PlottingUtil.clearSamePts(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,n[1],n[0]),o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),i.pntRight,i.pntLeft);var r=SuperMap.Plot.PlottingUtil.distance(o.projectPoint,l[0])/a;this.scaleValues[0]=r;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0],n[1],new SuperMap.Geometry.Point(e.x,e.y));this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0;c<n.length-1;c++)if((o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),n[c],n[c+1])).isOnline){p=o.projectPoint,u=c;break}if(-1===u)return void(this.scaleValues[2]=.05);for(var P=[],S=0;S<=u;S++)P.push(n[S]);P.push(p);var h=SuperMap.Plot.PlottingUtil.polylineDistance(P);this.scaleValues[2]=h/a}}}}]),e}();SuperMap.Plot.AlgoSymbol15806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=45*Math.PI/180,f=45*Math.PI/180,g=0;g<S-1;g+=2){var M=[],b=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.3,s[g],s[g+1]);M.push(b);var m=new SuperMap.Geometry.Point(s[g].x,s[g].y),d=new SuperMap.Geometry.Point(s[g+1].x,s[g+1].y);h=SuperMap.Plot.PlottingUtil.distance(m,d);var v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.6,s[g],s[g+1]),O=new SuperMap.Geometry.Point(v.x,v.y);O=SuperMap.Plot.PlottingUtil.rotateAngle(b,y,v),M.push(O);var U=.15*h;v=SuperMap.Plot.PlottingUtil.linePnt(M[1],M[0],U);var w=new SuperMap.Geometry.Point(v.x,v.y);SuperMap.Plot.PlottingUtil.rotateAngle(O,f,w),M.push(w);var L=new SuperMap.Geometry.Point(M[1].x-M[0].x+M[2].x,M[1].y-M[0].y+M[2].y);M.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=new SuperMap.Geometry.Point(.5*(f.x+g.x),.5*(f.y+g.y)),m=SuperMap.Plot.PlottingUtil.dirAngle(f,g)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.circlePoint(b,h,h,m+90),v=1.5*h,O=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+260),U=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+280);M.push(O),M.push(d),M.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=[];if(y!==S-2){var m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],s[y+1]);M.push(m.pntLeft),M.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}if(0!==y){var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y+1],s[y]);b.push(d.pntLeft),b.push(d.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s,p=[],u=0;u<=r;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),M=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,M);var b=[],m=[],d=[],v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],s);m.push(O.pntLeft,O.pntRight);var U=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],v);b.push(U.pntLeft,U.pntRight),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntLeft.x,2*s.y-U.pntLeft.y)),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntRight.x,2*s.y-U.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=new SuperMap.Geometry.Point(0,0),p=[],u=0;u<=r;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),M=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,M);var b=[],m=[],d=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],d);b.push(v.pntLeft),b.push(v.pntRight),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntLeft.x,2*s.y-v.pntLeft.y)),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntRight.x,2*s.y-v.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.5,s[y],s[y+1]),m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],b);M.push(m.pntLeft),M.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return void(this.scaleValues[2]=.05);for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(parseFloat(.1732)),l.scaleValues.push(.1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=this.scaleValues[1]*o,a=this.scaleValues[2],r=null;if(1===a){var s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o+i);r=new SuperMap.Geometry.Point(s.x,s.y)}else s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o-i),r=new SuperMap.Geometry.Point(s.x,s.y);var p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*n,t[0],r),u=[];u.push(p.pntRight),u.push(t[0]),u.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=[],P=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(1===a){var S=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y);c.push(S),c.push(t[1]);var h=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y);c.push(h)}else S=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y),c.push(S),c.push(t[1]),h=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y),c.push(h);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,a=0,r=t.length-1;a<r;a++)n+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,p=this.scaleValues[1],u=this.scaleValues[2]*n,c=.3*u,P=u;P<l;P+=u){var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e);if(-1===S.index)return void this.finish();var h=P+c,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===y.index)return void this.finish();var f=[],g=[];f.push(S.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);0===p?f.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):f.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),g.push(y.pts);var b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);if(0===p?g.push(new SuperMap.Geometry.Point(b.pntLeft.x,b.pntLeft.y)):g.push(new SuperMap.Geometry.Point(b.pntRight.x,b.pntRight.y)),u===P){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),r=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,o*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(s.pt,r)/o,u=SuperMap.Plot.PlottingUtil.pointIsRightToLine(a[0],a[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var c=0,P=-1,S=[],h=0,y=a.length-1;h<y;h++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,a[h],a[h+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==c?(c=g,P=h,S=e):g<c&&(c=g,P=h,S=e)}}if(-1==P)return;for(var M=0,b=0,m=P-1;b<m;b++)M+=SuperMap.Plot.PlottingUtil.distance(a[b],a[b+1]);var d=(M+=SuperMap.Plot.PlottingUtil.distance(S,a[P]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol13700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;if(2===t.length)e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);else if(3===t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0>=n)return;this.scaleValues=[];var a=SuperMap.Plot.PlottingUtil.distance(l,o)/n;this.scaleValues.push(a);var r=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI;r>90?r-=90:r=270+r,this.scaleValues.push(r*(Math.PI/180));var s=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*n;var p=this.scaleValues[1]*(180/Math.PI)+90,u=this.scaleValues[2]*(180/Math.PI)+90;p<u&&(p+=360);for(var c,P=[],S=p;S>=u;S-=4)c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,S),P.push(c);S!=u&&(c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),P.push(c)),this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol13700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol12500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var i=this.scaleValues[1]*e,n=o*e,a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==a.index){for(var r,s=a.pt,p=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),u=0;u<t.length-1;u++){var c,P=t[u];r=t[u+1];var S=SuperMap.Plot.PlottingUtil.distance(s,P),h=SuperMap.Plot.PlottingUtil.distance(s,r);if(!(S<i&&h<i))if(S>i&&h<i||S<i&&h>i){var y;y=S>i?P:r,(c=this.getLineAddCircleIntersectPts(P,r,p)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[0],y])}else{var f=SuperMap.Plot.PlottingUtil.projectPoint(s,P,r);if(SuperMap.Plot.PlottingUtil.distance(s,f)>=i)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,r]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f,P,r)){if((c=this.getLineAddCircleIntersectPts(P,r,p)).length>0){c.unshift(P),c.push(r);for(var g=0;g<c.length-1;g++)this.isLineInCircle(c[g],c[g+1],s,i)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[g],c[g+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,r])}}var M=0;c&&(M=SuperMap.Plot.PlottingUtil.radian(s,c[c.length-1])*SuperMap.Plot.PlottingUtil.RTOD);var b=[];r=SuperMap.Plot.PlottingUtil.circlePoint(s,-i,-i,M),b.push(r,s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=SuperMap.Plot.PlottingUtil.radian(r,s)*SuperMap.Plot.PlottingUtil.RTOD,d=[],v=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m+170),O=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m-170);d.push(v),d.push(O),d.push(s);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),this.addScalePoint(s,0),this.addScalePoint(new SuperMap.Geometry.Point(s.x+i,s.y),1),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}}]),e}();SuperMap.Plot.AlgoSymbol12502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var a=this.GetCurvePts(t,l,o);if(0!==a.pt.length){var r=SuperMap.Plot.PlottingUtil.polylineDistance(n)*i,s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,r);if(-1!==s.index){for(var p=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],c=0;c<360;c+=12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt,p,p,c));u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);for(var P=[],S=[],h=0;h<a.pt.length;h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,a.pt[h])?S.length>1&&(P.push(S),S=[]):S.push(a.pt[h]);S.length>1&&P.push(S);for(var y=0;y<P.length;y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P[y]);var f=new SuperMap.Geometry.Point(a.pt[0].x,a.pt[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var g=new SuperMap.Geometry.Point(a.scalePt.x,a.scalePt.y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var M=new SuperMap.Geometry.Point(s.pt.x,s.pt.y);M.isScalePoint=!0,M.tag=2,this.scalePoints.push(M);var b=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p,p,0),m=new SuperMap.Geometry.Point(b.x,b.y);m.isScalePoint=!0,m.tag=3,this.scalePoints.push(m),this.finish()}else this.finish()}else this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(null!=e&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o,i,n,a,r,s=SuperMap.Plot.PlottingUtil.polylineDistance(l),p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),u=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var c=new SuperMap.Geometry.Point(l[0].x,l[0].y),P=SuperMap.Plot.PlottingUtil.distance(c,u);i=2*P/s,this.scaleValues[1]=i}else if(1===t)c=new SuperMap.Geometry.Point(l[0].x,l[0].y),o=(P=SuperMap.Plot.PlottingUtil.distance(c,u))/s,this.scaleValues[0]=o;else if(2==t){var S=-1,h=0;r=new SuperMap.Geometry.Point(0,0),o=this.scaleValues[0],i=this.scaleValues[1];for(var y=0;y<p.length-1;y++){var f=p[y],g=p[y+1],M=SuperMap.Plot.PlottingUtil.projectPoint(u,f,g);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(M,f,g)){var b=SuperMap.Plot.PlottingUtil.distance(u,M);-1==S?(S=y,r=M,h=b):h>b&&(S=y,r=M,h=b)}}if(-1==S||S>p.length-1)return;a=SuperMap.Plot.PlottingUtil.polylineDistance(p);for(var m=[],d=0;d<S;d++)m.push(p[d]);m.push(r);var v=SuperMap.Plot.PlottingUtil.polylineDistance(m);if(v<0||v>a)return;n=v/a,this.scaleValues[2]=n}else if(3===t){o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];var O=(a=SuperMap.Plot.PlottingUtil.polylineDistance(p))*n;if(-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,O)).index)return;var U=SuperMap.Plot.PlottingUtil.distance(r.pt,e)/s;U>.4&&(U=.4),this.scaleValues[3]=U}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),a=n*e,r=n*l/2,s=[],p=[],u=i[0],c=!1,P=i[0],S=1;S<i.length;S++){var h=i[S],y=SuperMap.Plot.PlottingUtil.distance(u,h);if(!(y<a&&S!==i.length-1)){for(var f,g=parseInt(y/a),M=0;M<g;M++){f=SuperMap.Plot.PlottingUtil.linePnt(u,h,a),c||(o=f,c=!0);var b=this.GetCosPts2D(u,f,a,r);s=p.length>1&&0===M?this.ClearCurvePts2D(P,u,h,p,b,s):s.concat(b),p=(p=[]).concat(b),P=u,u=f}S===i.length-1&&(f=i[i.length-1],b=this.GetCosPts2D(u,f,a,r),s=p.length>1&&b.length>1?this.ClearCurvePts2D(P,u,h,p,b,s):s.concat(b))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMap.Plot.PlottingUtil.distance(t,e),a=l/30,r=0;r<n;r+=a){var s=r*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMap.Geometry.Point(r,p),c=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,P=SuperMap.Plot.PlottingUtil.coordinateTrans(t,u,c);i.push(P)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var a=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,r=180*SuperMap.Plot.PlottingUtil.radian(e,t)/Math.PI-a;r<=0;)r+=360;var s=r/2,p=l;p=SuperMap.Plot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMap.Plot.PlottingUtil.linePnt(e,p,1),c=0,P=0;P<o.length;P++)if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,o[P])){c=P;break}if(0!=c)for(var S=0;S<o.length-c;S++)n.slice(S,n.length-1);for(var h=0;h<i.length;h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,i[h])&&n.push(i[h]);return n}}]),e}();SuperMap.Plot.AlgoSymbol12501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var a=n.pt,r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),s=0;s<t.length-1;s++){var p,u=t[s],c=t[s+1],P=SuperMap.Plot.PlottingUtil.distance(a,u),S=SuperMap.Plot.PlottingUtil.distance(a,c);if(!(P<o&&S<o))if(P>o&&S<o||P<o&&S>o){var h;h=P>o?u:c,(p=this.getLineAddCircleIntersectPts(u,c,r)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[0],h])}else{var y=SuperMap.Plot.PlottingUtil.projectPoint(a,u,c);if(SuperMap.Plot.PlottingUtil.distance(a,y)>=o)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y,u,c)){if((p=this.getLineAddCircleIntersectPts(u,c,r)).length>0){p.unshift(u),p.push(c);for(var f=0;f<p.length-1;f++)this.isLineInCircle(p[f],p[f+1],a,o)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[f],p[f+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}}this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),this.scalePoints=[];var g=a;g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var M=new SuperMap.Geometry.Point(a.x+o,a.y);M.isScalePoint=!0,M.tag=1,this.scalePoints.push(M),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,a=null,r=0;r<l.length-1;r++){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[r],l[r+1])){var p=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,e);0==i?(i=p,n=r,a=s.projectPoint):p<i&&(i=p,n=r,a=s.projectPoint)}}if(-1==n)return;for(var u=0,c=0;c<n;c++)u+=SuperMap.Plot.PlottingUtil.distance(l[c],l[c+1]);var P=(u+=SuperMap.Plot.PlottingUtil.distance(a,l[n]))/o;P>1&&(P=1),this.scaleValues[0]=P}if(1===t){var S=this.scaleValues[0]*o,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,S);if(-1===h.index)return;var y=SuperMap.Plot.PlottingUtil.distance(h.pt,e)/o;y>.4&&(y=.4),this.scaleValues[1]=y}}}}]),e}();SuperMap.Plot.AlgoSymbol12500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol4021102=e.AlgoSymbol4021101=e.AlgoSymbol6020404=e.AlgoSymbol6020403=e.AlgoSymbol4022102=e.AlgoSymbol4022101=e.AlgoSymbol4022100=e.AlgoSymbol4020402=e.AlgoSymbol4020401=e.AlgoSymbol4020303=e.AlgoSymbol4011101=e.AlgoSymbol4011100=e.AlgoSymbol4010905=e.AlgoSymbol4010801=e.AlgoSymbol4010800=e.AlgoSymbol3032000=e.AlgoSymbol3020901=e.AlgoSymbol3010304=e.AlgoSymbol3010303=e.AlgoSymbol6020402=e.AlgoSymbol6020401=e.AlgoSymbol6020400=e.AlgoSymbol3010302=void 0,e.AlgoSymbol3010301=e.AlgoSymbol3010108=e.AlgoSymbol3010107=e.AlgoSymbol3010106=e.AlgoSymbol3010105=e.AlgoSymbol3010104=e.AlgoSymbol3010103=e.AlgoSymbol3010102=e.AlgoSymbol2890001=e.AlgoSymbol2350001=e.AlgoSymbol44400=e.AlgoSymbol44300=e.AlgoSymbol44200=e.AlgoSymbol44100=e.AlgoSymbol43500=e.AlgoSymbol42700=e.AlgoSymbol42500=e.AlgoSymbol42400=e.AlgoSymbol42200=e.AlgoSymbol41202=e.AlgoSymbol41201=e.AlgoSymbol41200=e.AlgoSymbol41100=e.AlgoSymbol40900=e.AlgoSymbol40101=e.AlgoSymbol40100=e.AlgoSymbol40000=e.AlgoSymbol39802=e.AlgoSymbol39801=e.AlgoSymbol39800=e.AlgoSymbol39600=e.AlgoSymbol39500=e.AlgoSymbol39101=e.AlgoSymbol39000=e.AlgoSymbol38700=e.AlgoSymbol38600=e.AlgoSymbol37700=e.AlgoSymbol37601=e.AlgoSymbol37600=e.AlgoSymbol37301=e.AlgoSymbol37300=e.AlgoSymbol37200=e.AlgoSymbol37100=e.AlgoSymbol36800=e.AlgoSymbol36700=e.AlgoSymbol36600=e.AlgoSymbol36401=e.AlgoSymbol36400=e.AlgoSymbol35500=e.AlgoSymbol35304=e.AlgoSymbol35200=e.AlgoSymbol35000=e.AlgoSymbol34902=e.AlgoSymbol34901=e.AlgoSymbol34900=e.AlgoSymbol34801=e.AlgoSymbol34800=e.AlgoSymbol34700=e.AlgoSymbol34501=e.AlgoSymbol34500=e.AlgoSymbol34400=e.AlgoSymbol34300=e.AlgoSymbol33400=e.AlgoSymbol32900=e.AlgoSymbol32300=e.AlgoSymbol31803=e.AlgoSymbol31601=e.AlgoSymbol31600=e.AlgoSymbol31401=e.AlgoSymbol31400=e.AlgoSymbol31304=e.AlgoSymbol31303=e.AlgoSymbol31302=e.AlgoSymbol31301=e.AlgoSymbol31300=e.AlgoSymbol30102=e.AlgoSymbol30800=e.AlgoSymbol30201=e.AlgoSymbol30200=e.AlgoSymbol30100=e.AlgoSymbol30002=e.AlgoSymbol30001=e.AlgoSymbol30000=e.AlgoSymbol29903=e.AlgoSymbol29800=e.AlgoSymbol29401=e.AlgoSymbol29103=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol29003=e.AlgoSymbol29002=e.AlgoSymbol29001=e.AlgoSymbol29000=e.AlgoSymbol28900=e.AlgoSymbol28400=e.AlgoSymbol28301=e.AlgoSymbol28300=e.AlgoSymbol28201=e.AlgoSymbol28200=e.AlgoSymbol28100=void 0,e.AlgoSymbol28000=e.AlgoSymbol27902=e.AlgoSymbol27901=e.AlgoSymbol27900=e.AlgoSymbol27701=e.AlgoSymbol27700=e.AlgoSymbol27300=e.AlgoSymbol27100=e.AlgoSymbol26800=e.AlgoSymbol26700=e.AlgoSymbol26601=e.AlgoSymbol26600=e.AlgoSymbol26503=e.AlgoSymbol26502=e.AlgoSymbol26501=e.AlgoSymbol26500=e.AlgoSymbol26400=e.AlgoSymbol25901=e.AlgoSymbol25900=e.AlgoSymbol25801=e.AlgoSymbol25800=e.AlgoSymbol25701=e.AlgoSymbol25700=e.AlgoSymbol25601=e.AlgoSymbol25600=e.AlgoSymbol25503=e.AlgoSymbol25502=e.AlgoSymbol25501=e.AlgoSymbol25500=e.AlgoSymbol25400=e.AlgoSymbol25301=e.AlgoSymbol25300=e.AlgoSymbol25202=e.AlgoSymbol25201=e.AlgoSymbol25200=e.AlgoSymbol25101=e.AlgoSymbol25100=e.AlgoSymbol25000=e.AlgoSymbol24700=e.AlgoSymbol23902=e.AlgoSymbol23901=e.AlgoSymbol23700=e.AlgoSymbol23600=e.AlgoSymbol23500=e.AlgoSymbol23400=e.AlgoSymbol22200=e.AlgoSymbol22103=e.AlgoSymbol22000=e.AlgoSymbol21900=e.AlgoSymbol21800=e.AlgoSymbol21600=e.AlgoSymbol21504=e.AlgoSymbol21503=e.AlgoSymbol21502=e.AlgoSymbol21501=e.AlgoSymbol21500=e.AlgoSymbol21401=e.AlgoSymbol21400=e.AlgoSymbol20301=e.AlgoSymbol20300=e.AlgoSymbol17806=e.AlgoSymbol17805=e.AlgoSymbol17804=e.AlgoSymbol17803=e.AlgoSymbol17802=e.AlgoSymbol17801=e.AlgoSymbol17800=e.AlgoSymbol17704=e.AlgoSymbol17703=e.AlgoSymbol17700=e.AlgoSymbol17600=e.AlgoSymbol17501=e.AlgoSymbol17500=e.AlgoSymbol17401=e.AlgoSymbol17400=e.AlgoSymbol16900=e.AlgoSymbol16700=e.AlgoSymbol16500=e.AlgoSymbol16203=e.AlgoSymbol16202=e.AlgoSymbol16201=e.AlgoSymbol16200=e.AlgoSymbol16100=e.AlgoSymbol16001=e.AlgoSymbol16000=e.AlgoSymbol15900=e.AlgoSymbol15806=e.AlgoSymbol15805=e.AlgoSymbol15804=e.AlgoSymbol15803=e.AlgoSymbol15802=e.AlgoSymbol15801=e.AlgoSymbol15800=e.AlgoSymbol15202=e.AlgoSymbol15201=e.AlgoSymbol15200=e.AlgoSymbol13700=e.AlgoSymbol12502=e.AlgoSymbol12501=e.AlgoSymbol12500=void 0;var o=l(222),i=l(221),n=l(220),a=l(219),r=l(218),s=l(217),p=l(216),u=l(215),c=l(214),P=l(213),S=l(212),h=l(211),y=l(210),f=l(209),g=l(208),M=l(207),b=l(206),m=l(205),d=l(204),v=l(203),O=l(202),U=l(201),w=l(200),L=l(199),V=l(198),_=l(197),T=l(196),A=l(195),E=l(194),x=l(193),Y=l(192),j=l(191),C=l(190),I=l(189),G=l(188),B=l(187),R=l(186),N=l(185),D=l(184),k=l(183),z=l(182),F=l(181),K=l(180),q=l(179),W=l(178),J=l(177),Z=l(176),H=l(175),Q=l(174),X=l(173),$=l(172),tt=l(171),et=l(170),lt=l(169),ot=l(168),it=l(167),nt=l(166),at=l(165),rt=l(164),st=l(163),pt=l(162),ut=l(161),ct=l(160),Pt=l(159),St=l(158),ht=l(157),yt=l(156),ft=l(155),gt=l(154),Mt=l(153),bt=l(152),mt=l(151),dt=l(150),vt=l(149),Ot=l(148),Ut=l(147),wt=l(146),Lt=l(145),Vt=l(144),_t=l(143),Tt=l(142),At=l(141),Et=l(140),xt=l(139),Yt=l(138),jt=l(137),Ct=l(136),It=l(135),Gt=l(134),Bt=l(133),Rt=l(132),Nt=l(131),Dt=l(130),kt=l(129),zt=l(128),Ft=l(127),Kt=l(126),qt=l(125),Wt=l(124),Jt=l(123),Zt=l(122),Ht=l(121),Qt=l(120),Xt=l(119),$t=l(118),te=l(117),ee=l(116),le=l(115),oe=l(114),ie=l(113),ne=l(112),ae=l(111),re=l(110),se=l(109),pe=l(108),ue=l(107),ce=l(106),Pe=l(105),Se=l(104),he=l(103),ye=l(102),fe=l(101),ge=l(100),Me=l(99),be=l(98),me=l(97),de=l(96),ve=l(95),Oe=l(94),Ue=l(93),we=l(92),Le=l(91),Ve=l(90),_e=l(89),Te=l(88),Ae=l(87),Ee=l(86),xe=l(85),Ye=l(84),je=l(83),Ce=l(82),Ie=l(81),Ge=l(80),Be=l(79),Re=l(78),Ne=l(77),De=l(76),ke=l(75),ze=l(74),Fe=l(73),Ke=l(72),qe=l(71),We=l(70),Je=l(69),Ze=l(68),He=l(67),Qe=l(66),Xe=l(65),$e=l(64),tl=l(63),el=l(62),ll=l(61),ol=l(60),il=l(59),nl=l(58),al=l(57),rl=l(56),sl=l(55),pl=l(54),ul=l(53),cl=l(52),Pl=l(51),Sl=l(50),hl=l(49),yl=l(48),fl=l(47),gl=l(46),Ml=l(45),bl=l(44),ml=l(43),dl=l(42),vl=l(41),Ol=l(40),Ul=l(39),wl=l(38),Ll=l(37),Vl=l(36),_l=l(35),Tl=l(34),Al=l(33),El=l(32),xl=l(31),Yl=l(30),jl=l(29),Cl=l(28),Il=l(27),Gl=l(26),Bl=l(25),Rl=l(24),Nl=l(23),Dl=l(22),kl=l(21),zl=l(20),Fl=l(19),Kl=l(18),ql=l(17),Wl=l(16),Jl=l(15),Zl=l(14),Hl=l(13),Ql=l(12),Xl=l(11),$l=l(10),to=l(9),eo=l(8),lo=l(7),oo=l(6),io=l(5),no=l(4),ao=l(3),ro=l(2),so=l(1),po=l(0);e.AlgoSymbol12500=o.AlgoSymbol12500,e.AlgoSymbol12501=i.AlgoSymbol12501,e.AlgoSymbol12502=n.AlgoSymbol12502,e.AlgoSymbol13700=a.AlgoSymbol13700,e.AlgoSymbol15200=r.AlgoSymbol15200,e.AlgoSymbol15201=s.AlgoSymbol15201,e.AlgoSymbol15202=p.AlgoSymbol15202,e.AlgoSymbol15800=u.AlgoSymbol15800,e.AlgoSymbol15801=c.AlgoSymbol15801,e.AlgoSymbol15802=P.AlgoSymbol15802,e.AlgoSymbol15803=S.AlgoSymbol15803,e.AlgoSymbol15804=h.AlgoSymbol15804,e.AlgoSymbol15805=y.AlgoSymbol15805,e.AlgoSymbol15806=f.AlgoSymbol15806,e.AlgoSymbol15900=g.AlgoSymbol15900,e.AlgoSymbol16000=M.AlgoSymbol16000,e.AlgoSymbol16001=b.AlgoSymbol16001,e.AlgoSymbol16100=m.AlgoSymbol16100,e.AlgoSymbol16200=d.AlgoSymbol16200,e.AlgoSymbol16201=v.AlgoSymbol16201,e.AlgoSymbol16202=O.AlgoSymbol16202,e.AlgoSymbol16203=U.AlgoSymbol16203,e.AlgoSymbol16500=w.AlgoSymbol16500,e.AlgoSymbol16700=L.AlgoSymbol16700,e.AlgoSymbol16900=V.AlgoSymbol16900,e.AlgoSymbol17400=_.AlgoSymbol17400,e.AlgoSymbol17401=T.AlgoSymbol17401,e.AlgoSymbol17500=A.AlgoSymbol17500,e.AlgoSymbol17501=E.AlgoSymbol17501,e.AlgoSymbol17600=x.AlgoSymbol17600,e.AlgoSymbol17700=Y.AlgoSymbol17700,e.AlgoSymbol17703=j.AlgoSymbol17703,e.AlgoSymbol17704=C.AlgoSymbol17704,e.AlgoSymbol17800=I.AlgoSymbol17800,e.AlgoSymbol17801=G.AlgoSymbol17801,e.AlgoSymbol17802=B.AlgoSymbol17802,e.AlgoSymbol17803=R.AlgoSymbol17803,e.AlgoSymbol17804=N.AlgoSymbol17804,e.AlgoSymbol17805=D.AlgoSymbol17805,e.AlgoSymbol17806=k.AlgoSymbol17806,e.AlgoSymbol20300=z.AlgoSymbol20300,e.AlgoSymbol20301=F.AlgoSymbol20301,e.AlgoSymbol21400=K.AlgoSymbol21400,e.AlgoSymbol21401=q.AlgoSymbol21401,e.AlgoSymbol21500=W.AlgoSymbol21500,e.AlgoSymbol21501=J.AlgoSymbol21501,e.AlgoSymbol21502=Z.AlgoSymbol21502,e.AlgoSymbol21503=H.AlgoSymbol21503,e.AlgoSymbol21504=Q.AlgoSymbol21504,e.AlgoSymbol21600=X.AlgoSymbol21600,e.AlgoSymbol21800=$.AlgoSymbol21800,e.AlgoSymbol21900=tt.AlgoSymbol21900,e.AlgoSymbol22000=et.AlgoSymbol22000,e.AlgoSymbol22103=lt.AlgoSymbol22103,e.AlgoSymbol22200=ot.AlgoSymbol22200,e.AlgoSymbol23400=it.AlgoSymbol23400,e.AlgoSymbol23500=nt.AlgoSymbol23500,e.AlgoSymbol23600=at.AlgoSymbol23600,e.AlgoSymbol23700=rt.AlgoSymbol23700,e.AlgoSymbol23901=st.AlgoSymbol23901,e.AlgoSymbol23902=pt.AlgoSymbol23902,e.AlgoSymbol24700=ut.AlgoSymbol24700,e.AlgoSymbol25000=ct.AlgoSymbol25000,e.AlgoSymbol25100=Pt.AlgoSymbol25100,e.AlgoSymbol25101=St.AlgoSymbol25101,e.AlgoSymbol25200=ht.AlgoSymbol25200,e.AlgoSymbol25201=yt.AlgoSymbol25201,e.AlgoSymbol25202=ft.AlgoSymbol25202,e.AlgoSymbol25300=gt.AlgoSymbol25300,e.AlgoSymbol25301=Mt.AlgoSymbol25301,e.AlgoSymbol25400=bt.AlgoSymbol25400,e.AlgoSymbol25500=mt.AlgoSymbol25500,e.AlgoSymbol25501=dt.AlgoSymbol25501,e.AlgoSymbol25502=vt.AlgoSymbol25502,e.AlgoSymbol25503=Ot.AlgoSymbol25503,e.AlgoSymbol25600=Ut.AlgoSymbol25600,e.AlgoSymbol25601=wt.AlgoSymbol25601,e.AlgoSymbol25700=Lt.AlgoSymbol25700,e.AlgoSymbol25701=Vt.AlgoSymbol25701,e.AlgoSymbol25800=_t.AlgoSymbol25800,e.AlgoSymbol25801=Tt.AlgoSymbol25801,e.AlgoSymbol25900=At.AlgoSymbol25900,e.AlgoSymbol25901=Et.AlgoSymbol25901,e.AlgoSymbol26400=xt.AlgoSymbol26400,e.AlgoSymbol26500=Yt.AlgoSymbol26500,e.AlgoSymbol26501=jt.AlgoSymbol26501,e.AlgoSymbol26502=Ct.AlgoSymbol26502,e.AlgoSymbol26503=It.AlgoSymbol26503,e.AlgoSymbol26600=Gt.AlgoSymbol26600,e.AlgoSymbol26601=Bt.AlgoSymbol26601,e.AlgoSymbol26700=Rt.AlgoSymbol26700,e.AlgoSymbol26800=Nt.AlgoSymbol26800,e.AlgoSymbol27100=Dt.AlgoSymbol27100,e.AlgoSymbol27300=kt.AlgoSymbol27300,e.AlgoSymbol27700=zt.AlgoSymbol27700,e.AlgoSymbol27701=Ft.AlgoSymbol27701,e.AlgoSymbol27900=Kt.AlgoSymbol27900,e.AlgoSymbol27901=qt.AlgoSymbol27901,e.AlgoSymbol27902=Wt.AlgoSymbol27902,e.AlgoSymbol28000=Jt.AlgoSymbol28000,e.AlgoSymbol28100=Zt.AlgoSymbol28100,e.AlgoSymbol28200=Ht.AlgoSymbol28200,e.AlgoSymbol28201=Qt.AlgoSymbol28201,e.AlgoSymbol28300=Xt.AlgoSymbol28300,e.AlgoSymbol28301=$t.AlgoSymbol28301,e.AlgoSymbol28400=te.AlgoSymbol28400,e.AlgoSymbol28900=ee.AlgoSymbol28900,e.AlgoSymbol29000=le.AlgoSymbol29000,e.AlgoSymbol29001=oe.AlgoSymbol29001,e.AlgoSymbol29002=ie.AlgoSymbol29002,e.AlgoSymbol29003=ne.AlgoSymbol29003,e.AlgoSymbol29100=ae.AlgoSymbol29100,e.AlgoSymbol29101=re.AlgoSymbol29101,e.AlgoSymbol29103=se.AlgoSymbol29103,e.AlgoSymbol29401=pe.AlgoSymbol29401,e.AlgoSymbol29800=ue.AlgoSymbol29800,e.AlgoSymbol29903=ce.AlgoSymbol29903,e.AlgoSymbol30000=Pe.AlgoSymbol30000,e.AlgoSymbol30001=Se.AlgoSymbol30001,e.AlgoSymbol30002=he.AlgoSymbol30002,e.AlgoSymbol30100=ye.AlgoSymbol30100,e.AlgoSymbol30200=fe.AlgoSymbol30200,e.AlgoSymbol30201=ge.AlgoSymbol30201,e.AlgoSymbol30800=Me.AlgoSymbol30800,e.AlgoSymbol30102=be.AlgoSymbol30102,e.AlgoSymbol31300=me.AlgoSymbol31300,e.AlgoSymbol31301=de.AlgoSymbol31301,e.AlgoSymbol31302=ve.AlgoSymbol31302,e.AlgoSymbol31303=Oe.AlgoSymbol31303,e.AlgoSymbol31304=Ue.AlgoSymbol31304,e.AlgoSymbol31400=we.AlgoSymbol31400,e.AlgoSymbol31401=Le.AlgoSymbol31401,e.AlgoSymbol31600=Ve.AlgoSymbol31600,e.AlgoSymbol31601=_e.AlgoSymbol31601,e.AlgoSymbol31803=Te.AlgoSymbol31803,e.AlgoSymbol32300=Ae.AlgoSymbol32300,e.AlgoSymbol32900=Ee.AlgoSymbol32900,e.AlgoSymbol33400=xe.AlgoSymbol33400,e.AlgoSymbol34300=Ye.AlgoSymbol34300,e.AlgoSymbol34400=je.AlgoSymbol34400,e.AlgoSymbol34500=Ce.AlgoSymbol34500,e.AlgoSymbol34501=Ie.AlgoSymbol34501,e.AlgoSymbol34700=Ge.AlgoSymbol34700,e.AlgoSymbol34800=Be.AlgoSymbol34800,e.AlgoSymbol34801=Re.AlgoSymbol34801,e.AlgoSymbol34900=Ne.AlgoSymbol34900,e.AlgoSymbol34901=De.AlgoSymbol34901,e.AlgoSymbol34902=ke.AlgoSymbol34902,e.AlgoSymbol35000=ze.AlgoSymbol35000,e.AlgoSymbol35200=Fe.AlgoSymbol35200,e.AlgoSymbol35304=Ke.AlgoSymbol35304,e.AlgoSymbol35500=qe.AlgoSymbol35500,e.AlgoSymbol36400=We.AlgoSymbol36400,e.AlgoSymbol36401=Je.AlgoSymbol36401,e.AlgoSymbol36600=Ze.AlgoSymbol36600,e.AlgoSymbol36700=He.AlgoSymbol36700,e.AlgoSymbol36800=Qe.AlgoSymbol36800,e.AlgoSymbol37100=Xe.AlgoSymbol37100,e.AlgoSymbol37200=$e.AlgoSymbol37200,e.AlgoSymbol37300=tl.AlgoSymbol37300,e.AlgoSymbol37301=el.AlgoSymbol37301,e.AlgoSymbol37600=ll.AlgoSymbol37600,e.AlgoSymbol37601=ol.AlgoSymbol37601,e.AlgoSymbol37700=il.AlgoSymbol37700,e.AlgoSymbol38600=nl.AlgoSymbol38600,e.AlgoSymbol38700=al.AlgoSymbol38700,e.AlgoSymbol39000=rl.AlgoSymbol39000,e.AlgoSymbol39101=sl.AlgoSymbol39101,e.AlgoSymbol39500=pl.AlgoSymbol39500,e.AlgoSymbol39600=ul.AlgoSymbol39600,e.AlgoSymbol39800=cl.AlgoSymbol39800,e.AlgoSymbol39801=Pl.AlgoSymbol39801,e.AlgoSymbol39802=Sl.AlgoSymbol39802,e.AlgoSymbol40000=hl.AlgoSymbol40000,e.AlgoSymbol40100=yl.AlgoSymbol40100,e.AlgoSymbol40101=fl.AlgoSymbol40101,e.AlgoSymbol40900=gl.AlgoSymbol40900,e.AlgoSymbol41100=Ml.AlgoSymbol41100,e.AlgoSymbol41200=bl.AlgoSymbol41200,e.AlgoSymbol41201=ml.AlgoSymbol41201,e.AlgoSymbol41202=dl.AlgoSymbol41202,e.AlgoSymbol42200=vl.AlgoSymbol42200,e.AlgoSymbol42400=Ol.AlgoSymbol42400,e.AlgoSymbol42500=Ul.AlgoSymbol42500,e.AlgoSymbol42700=wl.AlgoSymbol42700,e.AlgoSymbol43500=Ll.AlgoSymbol43500,e.AlgoSymbol44100=Vl.AlgoSymbol44100,e.AlgoSymbol44200=_l.AlgoSymbol44200,e.AlgoSymbol44300=Tl.AlgoSymbol44300,e.AlgoSymbol44400=Al.AlgoSymbol44400,e.AlgoSymbol2350001=El.AlgoSymbol2350001,e.AlgoSymbol2890001=xl.AlgoSymbol2890001,e.AlgoSymbol3010102=Yl.AlgoSymbol3010102,e.AlgoSymbol3010103=jl.AlgoSymbol3010103,e.AlgoSymbol3010104=Cl.AlgoSymbol3010104,e.AlgoSymbol3010105=Il.AlgoSymbol3010105,e.AlgoSymbol3010106=Gl.AlgoSymbol3010106,e.AlgoSymbol3010107=Bl.AlgoSymbol3010107,e.AlgoSymbol3010108=Rl.AlgoSymbol3010108,e.AlgoSymbol3010301=Nl.AlgoSymbol3010301,e.AlgoSymbol3010302=Dl.AlgoSymbol3010302,e.AlgoSymbol6020400=kl.AlgoSymbol6020400,e.AlgoSymbol6020401=zl.AlgoSymbol6020401,e.AlgoSymbol6020402=Fl.AlgoSymbol6020402,e.AlgoSymbol3010303=Kl.AlgoSymbol3010303,e.AlgoSymbol3010304=ql.AlgoSymbol3010304,e.AlgoSymbol3020901=Wl.AlgoSymbol3020901,e.AlgoSymbol3032000=Jl.AlgoSymbol3032000,e.AlgoSymbol4010800=Zl.AlgoSymbol4010800,e.AlgoSymbol4010801=Hl.AlgoSymbol4010801,e.AlgoSymbol4010905=Ql.AlgoSymbol4010905,e.AlgoSymbol4011100=Xl.AlgoSymbol4011100,e.AlgoSymbol4011101=$l.AlgoSymbol4011101,e.AlgoSymbol4020303=to.AlgoSymbol4020303,e.AlgoSymbol4020401=eo.AlgoSymbol4020401,e.AlgoSymbol4020402=lo.AlgoSymbol4020402,e.AlgoSymbol4022100=oo.AlgoSymbol4022100,e.AlgoSymbol4022101=io.AlgoSymbol4022101,e.AlgoSymbol4022102=no.AlgoSymbol4022102,e.AlgoSymbol6020403=ao.AlgoSymbol6020403,e.AlgoSymbol6020404=ro.AlgoSymbol6020404,e.AlgoSymbol4021101=so.AlgoSymbol4021101,e.AlgoSymbol4021102=po.AlgoSymbol4021102},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JBAlgoSymbolFactory=void 0,l(223);e.JBAlgoSymbolFactory=SuperMap.Plot.JBAlgoSymbolFactory=SuperMap.Plot.JBAlgoSymbolFactory||{};SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(100!==t)return new SuperMap.Plot.AlgoSymbol(l);switch(e){case 12500:return new SuperMap.Plot.AlgoSymbol12500(l);case 12501:return new SuperMap.Plot.AlgoSymbol12501(l);case 12502:return new SuperMap.Plot.AlgoSymbol12502(l);case 13700:return new SuperMap.Plot.AlgoSymbol13700(l);case 15200:return new SuperMap.Plot.AlgoSymbol15200(l);case 15201:case 23800:return new SuperMap.Plot.AlgoSymbol15201(l);case 15202:return new SuperMap.Plot.AlgoSymbol15202(l);case 15800:return new SuperMap.Plot.AlgoSymbol15800(l);case 15801:return new SuperMap.Plot.AlgoSymbol15801(l);case 15802:return new SuperMap.Plot.AlgoSymbol15802(l);case 15803:return new SuperMap.Plot.AlgoSymbol15803(l);case 15804:return new SuperMap.Plot.AlgoSymbol15804(l);case 15805:return new SuperMap.Plot.AlgoSymbol15805(l);case 15806:return new SuperMap.Plot.AlgoSymbol15806(l);case 15900:return new SuperMap.Plot.AlgoSymbol15900(l);case 16e3:return new SuperMap.Plot.AlgoSymbol16000(l);case 16001:return new SuperMap.Plot.AlgoSymbol16001(l);case 16100:return new SuperMap.Plot.AlgoSymbol16100(l);case 16200:return new SuperMap.Plot.AlgoSymbol16200(l);case 16201:return new SuperMap.Plot.AlgoSymbol16201(l);case 16202:return new SuperMap.Plot.AlgoSymbol16202(l);case 16203:return new SuperMap.Plot.AlgoSymbol16203(l);case 16500:return new SuperMap.Plot.AlgoSymbol16500(l);case 16700:return new SuperMap.Plot.AlgoSymbol16700(l);case 16900:return new SuperMap.Plot.AlgoSymbol16900(l);case 17400:return new SuperMap.Plot.AlgoSymbol17400(l);case 17401:return new SuperMap.Plot.AlgoSymbol17401(l);case 17500:return new SuperMap.Plot.AlgoSymbol17500(l);case 17501:return new SuperMap.Plot.AlgoSymbol17501(l);case 17600:return new SuperMap.Plot.AlgoSymbol17600(l);case 17700:return new SuperMap.Plot.AlgoSymbol17700(l);case 17703:return new SuperMap.Plot.AlgoSymbol17703(l);case 17704:return new SuperMap.Plot.AlgoSymbol17704(l);case 17800:return new SuperMap.Plot.AlgoSymbol17800(l);case 17801:return new SuperMap.Plot.AlgoSymbol17801(l);case 17802:return new SuperMap.Plot.AlgoSymbol17802(l);case 17803:return new SuperMap.Plot.AlgoSymbol17803(l);case 17804:return new SuperMap.Plot.AlgoSymbol17804(l);case 17805:return new SuperMap.Plot.AlgoSymbol17805(l);case 17806:return new SuperMap.Plot.AlgoSymbol17806(l);case 20300:return new SuperMap.Plot.AlgoSymbol20300(l);case 20301:return new SuperMap.Plot.AlgoSymbol20301(l);case 21401:return new SuperMap.Plot.AlgoSymbol21401(l);case 21500:return new SuperMap.Plot.AlgoSymbol21500(l);case 21501:return new SuperMap.Plot.AlgoSymbol21501(l);case 21502:return new SuperMap.Plot.AlgoSymbol21502(l);case 21503:return new SuperMap.Plot.AlgoSymbol21503(l);case 21504:return new SuperMap.Plot.AlgoSymbol21504(l);case 21600:return new SuperMap.Plot.AlgoSymbol21600(l);case 21800:return new SuperMap.Plot.AlgoSymbol21800(l);case 21900:return new SuperMap.Plot.AlgoSymbol21900(l);case 22e3:return new SuperMap.Plot.AlgoSymbol22000(l);case 22103:return new SuperMap.Plot.AlgoSymbol22103(l);case 22200:return new SuperMap.Plot.AlgoSymbol22200(l);case 23400:return new SuperMap.Plot.AlgoSymbol23400(l);case 23500:return new SuperMap.Plot.AlgoSymbol23500(l);case 2350001:return new SuperMap.Plot.AlgoSymbol2350001(l);case 23600:return new SuperMap.Plot.AlgoSymbol23600(l);case 23700:return new SuperMap.Plot.AlgoSymbol23700(l);case 23901:return new SuperMap.Plot.AlgoSymbol23901(l);case 23902:return new SuperMap.Plot.AlgoSymbol23902(l);case 24700:return new SuperMap.Plot.AlgoSymbol24700(l);case 25e3:return new SuperMap.Plot.AlgoSymbol25000(l);case 25100:return new SuperMap.Plot.AlgoSymbol25100(l);case 25101:return new SuperMap.Plot.AlgoSymbol25101(l);case 25200:return new SuperMap.Plot.AlgoSymbol25200(l);case 21400:case 25201:return new SuperMap.Plot.AlgoSymbol25201(l);case 25202:return new SuperMap.Plot.AlgoSymbol25202(l);case 25300:return new SuperMap.Plot.AlgoSymbol25300(l);case 25301:return new SuperMap.Plot.AlgoSymbol25301(l);case 25400:return new SuperMap.Plot.AlgoSymbol25400(l);case 25500:return new SuperMap.Plot.AlgoSymbol25500(l);case 25501:return new SuperMap.Plot.AlgoSymbol25501(l);case 25502:return new SuperMap.Plot.AlgoSymbol25502(l);case 25503:return new SuperMap.Plot.AlgoSymbol25503(l);case 25600:return new SuperMap.Plot.AlgoSymbol25600(l);case 25601:return new SuperMap.Plot.AlgoSymbol25601(l);case 25700:return new SuperMap.Plot.AlgoSymbol25700(l);case 25701:return new SuperMap.Plot.AlgoSymbol25701(l);case 25800:return new SuperMap.Plot.AlgoSymbol25800(l);case 25801:return new SuperMap.Plot.AlgoSymbol25801(l);case 25900:return new SuperMap.Plot.AlgoSymbol25900(l);case 25901:return new SuperMap.Plot.AlgoSymbol25901(l);case 26400:return new SuperMap.Plot.AlgoSymbol26400(l);case 26500:return new SuperMap.Plot.AlgoSymbol26500(l);case 26501:return new SuperMap.Plot.AlgoSymbol26501(l);case 26502:return new SuperMap.Plot.AlgoSymbol26502(l);case 26503:return new SuperMap.Plot.AlgoSymbol26503(l);case 26600:return new SuperMap.Plot.AlgoSymbol26600(l);case 26601:return new SuperMap.Plot.AlgoSymbol26601(l);case 26700:return new SuperMap.Plot.AlgoSymbol26700(l);case 26800:return new SuperMap.Plot.AlgoSymbol26800(l);case 27100:return new SuperMap.Plot.AlgoSymbol27100(l);case 27300:return new SuperMap.Plot.AlgoSymbol27300(l);case 27700:return new SuperMap.Plot.AlgoSymbol27700(l);case 27701:return new SuperMap.Plot.AlgoSymbol27701(l);case 27900:return new SuperMap.Plot.AlgoSymbol27900(l);case 27901:return new SuperMap.Plot.AlgoSymbol27901(l);case 27902:return new SuperMap.Plot.AlgoSymbol27902(l);case 28e3:return new SuperMap.Plot.AlgoSymbol28000(l);case 28100:return new SuperMap.Plot.AlgoSymbol28100(l);case 28200:return new SuperMap.Plot.AlgoSymbol28200(l);case 28201:return new SuperMap.Plot.AlgoSymbol28201(l);case 28300:return new SuperMap.Plot.AlgoSymbol28300(l);case 28301:return new SuperMap.Plot.AlgoSymbol28301(l);case 28400:return new SuperMap.Plot.AlgoSymbol28400(l);case 28900:return new SuperMap.Plot.AlgoSymbol28900(l);case 29e3:return new SuperMap.Plot.AlgoSymbol29000(l);case 29001:return new SuperMap.Plot.AlgoSymbol29001(l);case 29002:return new SuperMap.Plot.AlgoSymbol29002(l);case 29003:return new SuperMap.Plot.AlgoSymbol29003(l);case 29100:return new SuperMap.Plot.AlgoSymbol29100(l);case 29101:return new SuperMap.Plot.AlgoSymbol29101(l);case 29103:return new SuperMap.Plot.AlgoSymbol29103(l);case 29401:return new SuperMap.Plot.AlgoSymbol29401(l);case 29800:return new SuperMap.Plot.AlgoSymbol29800(l);case 29903:return new SuperMap.Plot.AlgoSymbol29903(l);case 3e4:return new SuperMap.Plot.AlgoSymbol30000(l);case 30001:return new SuperMap.Plot.AlgoSymbol30001(l);case 30002:return new SuperMap.Plot.AlgoSymbol30002(l);case 30100:case 4020400:return new SuperMap.Plot.AlgoSymbol30100(l);case 30200:return new SuperMap.Plot.AlgoSymbol30200(l);case 30201:return new SuperMap.Plot.AlgoSymbol30201(l);case 30800:return new SuperMap.Plot.AlgoSymbol30800(l);case 30102:return new SuperMap.Plot.AlgoSymbol30102(l);case 31300:return new SuperMap.Plot.AlgoSymbol31300(l);case 31301:return new SuperMap.Plot.AlgoSymbol31301(l);case 31302:return new SuperMap.Plot.AlgoSymbol31302(l);case 31303:return new SuperMap.Plot.AlgoSymbol31303(l);case 31304:return new SuperMap.Plot.AlgoSymbol31304(l);case 31400:return new SuperMap.Plot.AlgoSymbol31400(l);case 31401:return new SuperMap.Plot.AlgoSymbol31401(l);case 31600:return new SuperMap.Plot.AlgoSymbol31600(l);case 31601:return new SuperMap.Plot.AlgoSymbol31601(l);case 31803:return new SuperMap.Plot.AlgoSymbol31803(l);case 32300:return new SuperMap.Plot.AlgoSymbol32300(l);case 32900:return new SuperMap.Plot.AlgoSymbol32900(l);case 33400:return new SuperMap.Plot.AlgoSymbol33400(l);case 34300:return new SuperMap.Plot.AlgoSymbol34300(l);case 34400:return new SuperMap.Plot.AlgoSymbol34400(l);case 34500:return new SuperMap.Plot.AlgoSymbol34500(l);case 34501:return new SuperMap.Plot.AlgoSymbol34501(l);case 34700:return new SuperMap.Plot.AlgoSymbol34700(l);case 34800:return new SuperMap.Plot.AlgoSymbol34800(l);case 34801:return new SuperMap.Plot.AlgoSymbol34801(l);case 34900:return new SuperMap.Plot.AlgoSymbol34900(l);case 34901:return new SuperMap.Plot.AlgoSymbol34901(l);case 34902:return new SuperMap.Plot.AlgoSymbol34902(l);case 35e3:return new SuperMap.Plot.AlgoSymbol35000(l);case 35200:return new SuperMap.Plot.AlgoSymbol35200(l);case 35304:return new SuperMap.Plot.AlgoSymbol35304(l);case 35500:return new SuperMap.Plot.AlgoSymbol35500(l);case 36400:return new SuperMap.Plot.AlgoSymbol36400(l);case 36401:return new SuperMap.Plot.AlgoSymbol36401(l);case 36600:return new SuperMap.Plot.AlgoSymbol36600(l);case 36700:return new SuperMap.Plot.AlgoSymbol36700(l);case 36800:return new SuperMap.Plot.AlgoSymbol36800(l);case 37100:return new SuperMap.Plot.AlgoSymbol37100(l);case 37200:return new SuperMap.Plot.AlgoSymbol37200(l);case 37300:return new SuperMap.Plot.AlgoSymbol37300(l);case 37301:return new SuperMap.Plot.AlgoSymbol37301(l);case 37600:return new SuperMap.Plot.AlgoSymbol37600(l);case 37601:return new SuperMap.Plot.AlgoSymbol37601(l);case 37700:return new SuperMap.Plot.AlgoSymbol37700(l);case 38600:return new SuperMap.Plot.AlgoSymbol38600(l);case 38700:return new SuperMap.Plot.AlgoSymbol38700(l);case 39e3:return new SuperMap.Plot.AlgoSymbol39000(l);case 39101:return new SuperMap.Plot.AlgoSymbol39101(l);case 39500:return new SuperMap.Plot.AlgoSymbol39500(l);case 39600:return new SuperMap.Plot.AlgoSymbol39600(l);case 39800:return new SuperMap.Plot.AlgoSymbol39800(l);case 39801:return new SuperMap.Plot.AlgoSymbol39801(l);case 39802:return new SuperMap.Plot.AlgoSymbol39802(l);case 4e4:return new SuperMap.Plot.AlgoSymbol40000(l);case 40100:return new SuperMap.Plot.AlgoSymbol40100(l);case 40101:return new SuperMap.Plot.AlgoSymbol40101(l);case 40900:return new SuperMap.Plot.AlgoSymbol40900(l);case 41100:return new SuperMap.Plot.AlgoSymbol41100(l);case 41200:return new SuperMap.Plot.AlgoSymbol41200(l);case 41201:return new SuperMap.Plot.AlgoSymbol41201(l);case 41202:return new SuperMap.Plot.AlgoSymbol41202(l);case 42200:return new SuperMap.Plot.AlgoSymbol42200(l);case 42400:return new SuperMap.Plot.AlgoSymbol42400(l);case 42500:return new SuperMap.Plot.AlgoSymbol42500(l);case 42700:return new SuperMap.Plot.AlgoSymbol42700(l);case 43500:return new SuperMap.Plot.AlgoSymbol43500(l);case 44100:return new SuperMap.Plot.AlgoSymbol44100(l);case 44200:return new SuperMap.Plot.AlgoSymbol44200(l);case 44300:return new SuperMap.Plot.AlgoSymbol44300(l);case 44400:return new SuperMap.Plot.AlgoSymbol44400(l);case 2890001:return new SuperMap.Plot.AlgoSymbol2890001(l);case 3010301:return new SuperMap.Plot.AlgoSymbol3010301(l);case 3010302:return new SuperMap.Plot.AlgoSymbol3010302(l);case 3010303:return new SuperMap.Plot.AlgoSymbol3010303(l);case 3010304:return new SuperMap.Plot.AlgoSymbol3010304(l);case 3010102:return new SuperMap.Plot.AlgoSymbol3010102(l);case 3010103:return new SuperMap.Plot.AlgoSymbol3010103(l);case 3010104:return new SuperMap.Plot.AlgoSymbol3010104(l);case 3010105:return new SuperMap.Plot.AlgoSymbol3010105(l);case 3010106:return new SuperMap.Plot.AlgoSymbol3010106(l);case 3010107:return new SuperMap.Plot.AlgoSymbol3010107(l);case 3010108:return new SuperMap.Plot.AlgoSymbol3010108(l);case 3020901:return new SuperMap.Plot.AlgoSymbol3020901(l);case 3032e3:return new SuperMap.Plot.AlgoSymbol3032000(l);case 4010800:return new SuperMap.Plot.AlgoSymbol4010800(l);case 4010801:return new SuperMap.Plot.AlgoSymbol4010801(l);case 4010905:return new SuperMap.Plot.AlgoSymbol4010905(l);case 4011100:return new SuperMap.Plot.AlgoSymbol4011100(l);case 4011101:return new SuperMap.Plot.AlgoSymbol4011101(l);case 4020303:return new SuperMap.Plot.AlgoSymbol4020303(l);case 4020401:return new SuperMap.Plot.AlgoSymbol4020401(l);case 4020402:return new SuperMap.Plot.AlgoSymbol4020402(l);case 4021101:return new SuperMap.Plot.AlgoSymbol4021101(l);case 4021102:return new SuperMap.Plot.AlgoSymbol4021102(l);case 4022100:return new SuperMap.Plot.AlgoSymbol4022100(l);case 4022101:return new SuperMap.Plot.AlgoSymbol4022101(l);case 4022102:return new SuperMap.Plot.AlgoSymbol4022102(l);case 6020400:return new SuperMap.Plot.AlgoSymbol6020400(l);case 6020401:return new SuperMap.Plot.AlgoSymbol6020401(l);case 6020402:return new SuperMap.Plot.AlgoSymbol6020402(l);case 6020403:return new SuperMap.Plot.AlgoSymbol6020403(l);case 6020404:return new SuperMap.Plot.AlgoSymbol6020404(l);default:return new SuperMap.Plot.AlgoSymbol(l)}},SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer=function(t,e){if(100!==t)return!0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16100:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25200:case 25201:case 25202:case 25300:case 25301:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 25800:case 25801:case 25900:case 25901:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29800:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30200:case 30201:case 30800:case 30102:case 31300:case 31301:case 31302:case 31303:case 31304:case 31400:case 31401:case 31600:case 31601:case 31803:case 32300:case 32900:case 33400:case 34300:case 34400:case 34500:case 34501:case 34700:case 34800:case 34801:case 34900:case 34901:case 34902:case 35e3:case 35200:case 35304:case 35500:case 36400:case 36401:case 36600:case 36700:case 36800:case 37100:case 37200:case 37300:case 37301:case 37600:case 37601:case 37700:case 38600:case 38700:case 39e3:case 39101:case 39500:case 39600:case 39800:case 39801:case 39802:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 4e4:case 40100:case 40101:case 40900:case 41100:case 41200:case 41201:case 41202:case 42200:case 42400:case 42500:case 42700:case 43500:case 44100:case 44200:case 44300:case 44400:case 2350001:case 2890001:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 3032e3:case 4010800:case 4010801:case 4010905:case 4011100:case 4011101:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4022101:case 4022102:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:case 4021101:case 4021102:return!1;default:return!0}},SuperMap.Plot.JBAlgoSymbolFactory.getSymbolWayType=function(t,e){if(100!==t)return SuperMap.Plot.AddPoint_WayType.UNKNOWN;switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 26500:case 26501:case 26502:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 26503:case 25503:case 25601:case 25801:case 25901:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var l=[];if(100!==t)return l;switch(e){case 17400:case 17401:return l.push(new SuperMap.Plot.SubSymbol(100,17300)),l.push(new SuperMap.Plot.SubSymbol(100,17301)),l;case 21501:case 26502:return l.push(new SuperMap.Plot.SubSymbol(100,19700)),l;case 21502:return l.push(new SuperMap.Plot.SubSymbol(100,6803)),l;case 22103:case 26501:return l.push(new SuperMap.Plot.SubSymbol(100,22100)),l;case 21503:return l.push(new SuperMap.Plot.SubSymbol(100,7900)),l;case 21504:return l.push(new SuperMap.Plot.SubSymbol(100,8404)),l;case 22e3:return l.push(new SuperMap.Plot.SubSymbol(100,1e3)),l;case 23500:return l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 23600:return l.push(new SuperMap.Plot.SubSymbol(100,800)),l.push(new SuperMap.Plot.SubSymbol(100,800)),l;case 25300:return l.push(new SuperMap.Plot.SubSymbol(100,6302)),l.push(new SuperMap.Plot.SubSymbol(100,7900)),l;case 25301:return l.push(new SuperMap.Plot.SubSymbol(100,300)),l.push(new SuperMap.Plot.SubSymbol(100,6200)),l;case 25503:return l.push(new SuperMap.Plot.SubSymbol(100,8402)),l;case 26700:return l.push(new SuperMap.Plot.SubSymbol(100,4500)),l;case 27100:return l.push(new SuperMap.Plot.SubSymbol(100,7700)),l;case 27300:return l.push(new SuperMap.Plot.SubSymbol(100,1500)),l;case 3032e3:return l.push(new SuperMap.Plot.SubSymbol(100,1500)),l.push(new SuperMap.Plot.SubSymbol(100,1500)),l;case 28300:return l.push(new SuperMap.Plot.SubSymbol(100,18600)),l;case 28301:return l.push(new SuperMap.Plot.SubSymbol(100,18600)),l.push(new SuperMap.Plot.SubSymbol(100,18600)),l;case 28400:return l.push(new SuperMap.Plot.SubSymbol(100,4801)),l;case 29001:return l.push(new SuperMap.Plot.SubSymbol(100,5200)),l.push(new SuperMap.Plot.SubSymbol(100,5200)),l;case 29002:return l.push(new SuperMap.Plot.SubSymbol(100,600)),l.push(new SuperMap.Plot.SubSymbol(100,5300)),l;case 23901:case 23902:return l.push(new SuperMap.Plot.SubSymbol(100,4800)),l;case 31600:case 31601:return l.push(new SuperMap.Plot.SubSymbol(100,700)),l;case 29903:case 4021101:return l.push(new SuperMap.Plot.SubSymbol(100,600)),l;case 32900:return l.push(new SuperMap.Plot.SubSymbol(100,6700)),l;case 35200:return l.push(new SuperMap.Plot.SubSymbol(100,6803)),l;case 37700:return l.push(new SuperMap.Plot.SubSymbol(100,37800)),l;case 3010107:return l.push(new SuperMap.Plot.SubSymbol(100,800)),l;case 3010108:return l.push(new SuperMap.Plot.SubSymbol(100,4600)),l;case 4010800:return l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 4010801:case 4022100:case 4022101:case 4022102:case 4021102:return l.push(new SuperMap.Plot.SubSymbol(100,8400)),l;case 31303:case 31302:return l.push(new SuperMap.Plot.SubSymbol(100,4400)),l;case 4010905:return l.push(new SuperMap.Plot.SubSymbol(100,700)),l;case 31803:return l.push(new SuperMap.Plot.SubSymbol(100,8402)),l;case 34400:return l.push(new SuperMap.Plot.SubSymbol(100,6202)),l;case 34501:return l.push(new SuperMap.Plot.SubSymbol(100,8403)),l;case 35304:return l.push(new SuperMap.Plot.SubSymbol(100,35301)),l;case 36401:return l.push(new SuperMap.Plot.SubSymbol(100,7200)),l;case 36600:return l.push(new SuperMap.Plot.SubSymbol(100,300)),l;case 37100:return l.push(new SuperMap.Plot.SubSymbol(100,8e3)),l;case 37200:return l.push(new SuperMap.Plot.SubSymbol(100,7101)),l;case 37600:case 37601:case 38600:case 38700:return l.push(new SuperMap.Plot.SubSymbol(100,4600)),l;case 39e3:return l.push(new SuperMap.Plot.SubSymbol(100,9300)),l.push(new SuperMap.Plot.SubSymbol(100,9300)),l.push(new SuperMap.Plot.SubSymbol(100,9300)),l;case 39101:return l.push(new SuperMap.Plot.SubSymbol(100,39100)),l;case 39500:case 39600:return l.push(new SuperMap.Plot.SubSymbol(100,8700)),l;case 39800:case 39801:case 39802:case 4e4:return l.push(new SuperMap.Plot.SubSymbol(100,8900)),l;case 36700:return l.push(new SuperMap.Plot.SubSymbol(100,300)),l;case 42200:return l.push(new SuperMap.Plot.SubSymbol(100,20901)),l;case 4011100:return l.push(new SuperMap.Plot.SubSymbol(100,4e3)),l.push(new SuperMap.Plot.SubSymbol(100,4001)),l;case 4011101:return l.push(new SuperMap.Plot.SubSymbol(100,700)),l.push(new SuperMap.Plot.SubSymbol(100,700)),l;case 2350001:return l.push(new SuperMap.Plot.SubSymbol(100,7900)),l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 2890001:return l.push(new SuperMap.Plot.SubSymbol(100,4003)),l;default:return l}},SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts=function(t,e){if(100!==t)return 0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25201:case 25202:case 25300:case 25301:case 25400:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29903:case 41100:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 38700:case 32300:case 42700:case 34902:case 34901:case 34900:case 32900:case 2350001:case 2890001:case 3032e3:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 4021102:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:return 2;case 16100:case 25200:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 25800:case 25801:case 25900:case 25901:case 29800:case 44400:return 3;default:return 0}},SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts=function(t,e){if(100!==t)return 0;switch(e){case 15202:case 16202:case 20301:case 16700:case 16900:case 17600:case 25e3:case 25100:case 25101:case 25300:case 25301:case 27100:case 27700:case 27900:case 27901:case 27902:case 28100:case 28201:case 28301:case 41100:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 21800:case 26700:case 29401:return 2;case 13700:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 23901:case 23902:case 38700:case 26800:case 29001:case 29002:case 32300:case 29101:case 29100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 29e3:return 3;case 28e3:return 4;case 16201:case 17400:case 17401:case 17500:case 17501:case 22200:case 23400:case 23500:case 2350001:case 23600:case 23700:case 23800:case 25200:case 27300:case 27701:case 28400:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 29903:case 29800:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 16500:return 30;case 42700:case 34902:case 34901:case 34900:case 32900:case 6020404:return 512;case 12500:case 12501:case 12502:case 16e3:case 16001:case 16100:case 16200:case 16203:case 17700:case 17703:case 17704:case 21900:case 22e3:case 22103:case 25201:case 25202:case 24700:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 25800:case 25801:case 25900:case 25901:case 28900:case 2890001:case 44400:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 4021102:case 29103:case 28300:case 28200:case 29003:return 1e3;case 15200:case 15201:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 20300:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:return 9999;default:return 0}},SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle=function(t,e){var l={};if(100===t)switch(e){case 34800:case 34801:case 22200:case 28e3:case 28100:case 28200:case 28201:case 44400:l.color=l.strokeColor="#0000ff";break;case 42500:case 42700:l.color=l.strokeColor="#00ff00";break;case 42400:l.color=l.strokeColor="#006600"}return l},SuperMap.Plot.JBAlgoSymbolFactory.canPolylineConnect=function(t,e){if(100===t)switch(e){case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42200:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMap.Plot.JBAlgoSymbolFactory.canSetSubSymbol=function(t,e){return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t,e).length>0||100===this.libID&&(25200===e||3020901===e||23400===e||30800===e||26400===e)},SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol=function(){return!1},SuperMap.Plot.JBAlgoSymbolFactory.zoomCalSymbol=function(t,e){if(100!==t)return!1;switch(e){case 28e3:case 28100:case 28200:case 28201:case 32300:return!0;default:return!1}}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JBAlgoSymbolFactory=void 0;var o=l(224);e.JBAlgoSymbolFactory=o.JBAlgoSymbolFactory}]);
+ */!function (t) { var e = {}; function l(o) { if (e[o]) return e[o].exports; var i = e[o] = { i: o, l: !1, exports: {} }; return t[o].call(i.exports, i, i.exports, l), i.l = !0, i.exports } l.m = t, l.c = e, l.d = function (t, e, o) { l.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: o }) }, l.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, l.t = function (t, e) { if (1 & e && (t = l(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var o = Object.create(null); if (l.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var i in t) l.d(o, i, function (e) { return t[e] }.bind(null, i)); return o }, l.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return l.d(e, "a", e), e }, l.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, l.p = "", l(l.s = 225) }([function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4021102 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30800), e }(); SuperMap.Plot.AlgoSymbol4021102 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4021101 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30800), e }(); SuperMap.Plot.AlgoSymbol4021101 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6020404 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (!this.isEdit) { var e = .3 * this.getSubSymbolScaleValue(); e > .05 && (e = .05), this.scaleValues[0] = e } for (var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = Math.abs(l * this.scaleValues[0]), i = this.getDashLinePts(t, o), n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, a = 1, r = 0; r < i.length; r++) { var s = i[r]; if (0 == a % 2) if (2 === s.length && r !== i.length - 1) { var p = new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2), u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * o, s[0], p), c = null; c = this.scaleValues[0] > 0 ? u.pntLeft : u.pntRight, this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [c, s[0], s[1]], n) } else a--; i[r].length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), a++ } var P = 180 * SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) / Math.PI; this.scaleValues[0] > 0 ? P += 90 : P -= 90; var S = SuperMap.Plot.PlottingUtil.circlePoint(t[0], 2 * o, 2 * o, P); this.addScalePoint(S), this.finish() } } }, { key: "getDashLinePts", value: function (t, e) { var l = [], o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (e > o) return l; for (var i = SuperMap.Plot.PlottingUtil.clonePoints(t), n = 2 * parseInt(o / (1.5 * e)), a = 0; a < n; a++) { var r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, e); if (-1 !== r.index) { if (0 == a % 2) { for (var s = [], p = 0; p < r.index + 1; p++)s.push(i[p].clone()); s.push(r.pt), l.push(s) } var u = []; u.push(r.pt); for (var c = r.index + 1; c < i.length; c++)u.push(i[c]); i = (i = []).concat(u) } } return i.length > 0 && l.push(i), l } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = .5 * SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; i >= .05 && (i = .05), SuperMap.Plot.PlottingUtil.isRight(e, l[0], l[1]) && (i = -i), this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol6020404 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6020403 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = 1.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(1.05)); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); 2 === this.controlPoints.length && t.splice(1, 0, new SuperMap.Geometry.Point(t[0].x + e, t[0].y)); var l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = new SuperMap.Geometry.Point(t[2].x, t[2].y), n = SuperMap.Plot.PlottingUtil.distance(l, o), a = n * this.scaleValues[0], r = 180 * SuperMap.Plot.PlottingUtil.radian(l, o) / Math.PI % 360, s = 180 * SuperMap.Plot.PlottingUtil.radian(l, i) / Math.PI % 360; r > s && (s += 360); var p = (s - r) / 50, u = this.getArcPts(t[0], n, r, s, p), c = this.getArcPts(t[0], a, r, s, p); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { surroundLineFlag: !1, lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, surroundLineLimit: !0 }), 3 === this.controlPoints.length && (this.controlPoints[2] = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e, e, s)), this.addScalePoint(new SuperMap.Geometry.Point(c[c.length - 1].x, c[c.length - 1].y), 0), this.finish() } } }, { key: "getArcPts", value: function (t, e, l, o, i) { void 0 !== i && null !== i || (i = 1); for (var n = [], a = l; a < o; a += i) { var r = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, a); n.push(r) } var s = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, o); return n.push(s), n } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), i = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; i >= 1.01 && (this.scaleValues[0] = i) } } }]), e }(); SuperMap.Plot.AlgoSymbol6020403 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4022102 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (SuperMap.Plot.PlottingUtil.clearSamePts(t), !(t.length < this.minEditPts)) { 4 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var i = this.scaleValues[0], n = this.scaleValues[2], a = this.scaleValues[3], r = o * i, s = new SuperMap.Geometry.Point(l.x + o * n, l.y + o * a); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], s, r, 0); var p = new SuperMap.Geometry.Point(s.x + r, s.y + r / 2), u = new SuperMap.Geometry.Point(s.x + r, s.y - r / 2), c = .3 * r, P = SuperMap.Plot.PlottingUtil.radian(u, p) * SuperMap.Plot.PlottingUtil.RTOD, S = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, P + 157.5), h = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, P + 202.5), y = new SuperMap.Geometry.Point((S.x + h.x) / 2, (S.y + h.y) / 2), f = []; f.push(u), f.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [S, y, h, p], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.addScalePoint(s); var g = r, M = SuperMap.Plot.PlottingUtil.circlePoint(s, g, g, 90); this.addScalePoint(M), this.finish(), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol4022102 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4022101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (SuperMap.Plot.PlottingUtil.clearSamePts(t), !(t.length < this.minEditPts)) { 4 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var i = this.scaleValues[0], n = this.scaleValues[2], a = this.scaleValues[3], r = o * i, s = new SuperMap.Geometry.Point(l.x + o * n, l.y + o * a); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], s, r, 0); var p = new SuperMap.Geometry.Point(s.x + r, s.y + r / 2), u = new SuperMap.Geometry.Point(s.x + r, s.y - r / 2), c = .3 * r, P = SuperMap.Plot.PlottingUtil.radian(p, u) * SuperMap.Plot.PlottingUtil.RTOD, S = SuperMap.Plot.PlottingUtil.circlePoint(u, c, c, P + 157.5), h = SuperMap.Plot.PlottingUtil.circlePoint(u, c, c, P + 202.5), y = new SuperMap.Geometry.Point((S.x + h.x) / 2, (S.y + h.y) / 2), f = []; f.push(p), f.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [S, y, h, u], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.addScalePoint(s); var g = r, M = SuperMap.Plot.PlottingUtil.circlePoint(s, g, g, 90); this.addScalePoint(M), this.finish(), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol4022101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4022100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23500), e }(); SuperMap.Plot.AlgoSymbol4022100 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4020402 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.069485), l.scaleValues.push(.15), l.scaleValues.push(.1), l.scaleValues.push(1.731025), l.scaleValues.push(2.076877)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30102), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var i = e * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI, a = e * this.scaleValues[2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== r.index) { var s = r.index, p = r.pt, u = new SuperMap.Geometry.Point(o[s].x, o[s].y), c = new SuperMap.Geometry.Point(o[s + 1].x, o[s + 1].y), P = 180 * SuperMap.Plot.PlottingUtil.radian(u, c) / Math.PI, S = SuperMap.Plot.PlottingUtil.circlePoint(p, a / 2, a / 2, P + n), h = SuperMap.Plot.PlottingUtil.circlePoint(p, a, a, P + n + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [S, h]); var y = 180 * SuperMap.Plot.PlottingUtil.radian(p, S) / Math.PI, f = new SuperMap.Geometry.Point(-.2 * a, .05 * a), g = new SuperMap.Geometry.Point(-.2 * a, -.05 * a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(S, f, y), b = SuperMap.Plot.PlottingUtil.coordinateTrans(S, g, y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [S, M, b], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var m = .4 * a * this.scaleValues[5], d = .4 * a * this.scaleValues[6], v = new SuperMap.Geometry.Point(0, -.9 * (m - .25 * d)), O = new SuperMap.Geometry.Point(0, .9 * (m - .25 * d)), U = SuperMap.Plot.PlottingUtil.coordinateTrans(h, v, y), w = SuperMap.Plot.PlottingUtil.coordinateTrans(h, O, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [U, w]); var L = new SuperMap.Geometry.Point(0, -m), V = SuperMap.Plot.PlottingUtil.coordinateTrans(h, L, y), _ = new SuperMap.Geometry.Point(.5 * d, -.25 * d), T = new SuperMap.Geometry.Point(-.25 * d, -.25 * d), A = new SuperMap.Geometry.Point(-.5 * d, .25 * d), E = new SuperMap.Geometry.Point(.5 * d, .25 * d), x = SuperMap.Plot.PlottingUtil.coordinateTrans(V, _, y), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(V, T, y), j = SuperMap.Plot.PlottingUtil.coordinateTrans(V, A, y), C = SuperMap.Plot.PlottingUtil.coordinateTrans(V, E, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [x, Y, j, C, x]); var I = new SuperMap.Geometry.Point(0, m), G = SuperMap.Plot.PlottingUtil.coordinateTrans(h, I, y), B = new SuperMap.Geometry.Point(0, .25 * d), R = new SuperMap.Geometry.Point(.5 * d, 0), N = new SuperMap.Geometry.Point(0, -.25 * d), D = new SuperMap.Geometry.Point(-.5 * d, 0), k = SuperMap.Plot.PlottingUtil.coordinateTrans(G, B, y), z = SuperMap.Plot.PlottingUtil.coordinateTrans(G, R, y), F = SuperMap.Plot.PlottingUtil.coordinateTrans(G, N, y), K = SuperMap.Plot.PlottingUtil.coordinateTrans(G, D, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [k, z, F, K, k]), this.addScalePoint(p, 0); var q = SuperMap.Plot.PlottingUtil.circlePoint(p, a, a, P + n); this.addScalePoint(q, 1); var W = new SuperMap.Geometry.Point(0, -m), J = SuperMap.Plot.PlottingUtil.coordinateTrans(h, W, y); this.addScalePoint(J, 2); var Z = new SuperMap.Geometry.Point(-.5 * d, 0), H = SuperMap.Plot.PlottingUtil.coordinateTrans(G, Z, y); this.addScalePoint(H, 3), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol4020402 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4020401 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30100), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var i = e * this.scaleValues[0], n = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD, a = e * this.scaleValues[2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== r.index) { var s = r.pt, p = r.index, u = new SuperMap.Geometry.Point(s.x, s.y), c = new SuperMap.Geometry.Point(o[p].x, o[p].y), P = new SuperMap.Geometry.Point(o[p + 1].x, o[p + 1].y), S = SuperMap.Plot.PlottingUtil.radian(c, P) * SuperMap.Plot.PlottingUtil.RTOD, h = SuperMap.Plot.PlottingUtil.circlePoint(u, 1.5 * a, 1.5 * a, S + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, h]); var y = SuperMap.Plot.PlottingUtil.radian(u, h) * SuperMap.Plot.PlottingUtil.RTOD, f = new SuperMap.Geometry.Point(-.2 * a, .05 * a), g = new SuperMap.Geometry.Point(-.2 * a, -.05 * a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(h, f, y), b = SuperMap.Plot.PlottingUtil.coordinateTrans(h, g, y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [h, M, b], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var m = new SuperMap.Geometry.Point(.6 * a, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(u, m, y), v = .4 * a * this.scaleValues[5], O = .4 * a * this.scaleValues[6], U = new SuperMap.Geometry.Point(0, -.9 * (v - .25 * O)), w = new SuperMap.Geometry.Point(0, .9 * (v - .25 * O)), L = SuperMap.Plot.PlottingUtil.coordinateTrans(d, U, y), V = SuperMap.Plot.PlottingUtil.coordinateTrans(d, w, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [L, V]); var _ = new SuperMap.Geometry.Point(0, v), T = SuperMap.Plot.PlottingUtil.coordinateTrans(d, _, y), A = new SuperMap.Geometry.Point(.5 * O, -.25 * O), E = new SuperMap.Geometry.Point(-.5 * O, -.25 * O), x = new SuperMap.Geometry.Point(-.5 * O, .25 * O), Y = new SuperMap.Geometry.Point(.25 * O, .25 * O), j = new SuperMap.Geometry.Point(.5 * O, 0), C = SuperMap.Plot.PlottingUtil.coordinateTrans(T, A, y + 180), I = SuperMap.Plot.PlottingUtil.coordinateTrans(T, E, y + 180), G = SuperMap.Plot.PlottingUtil.coordinateTrans(T, x, y + 180), B = SuperMap.Plot.PlottingUtil.coordinateTrans(T, Y, y + 180), R = SuperMap.Plot.PlottingUtil.coordinateTrans(T, j, y + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [C, I, G, B, C]); var N = new SuperMap.Geometry.Point(0, -v), D = SuperMap.Plot.PlottingUtil.coordinateTrans(d, N, y), k = SuperMap.Plot.PlottingUtil.coordinateTrans(D, A, y + 180), z = SuperMap.Plot.PlottingUtil.coordinateTrans(D, E, y + 180), F = SuperMap.Plot.PlottingUtil.coordinateTrans(D, x, y + 180), K = SuperMap.Plot.PlottingUtil.coordinateTrans(D, Y, y + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [k, z, F, K, k]), this.addScalePoint(s, 0), this.addScalePoint(h, 1); var q = new SuperMap.Geometry.Point(0, -v), W = SuperMap.Plot.PlottingUtil.coordinateTrans(d, q, y); this.addScalePoint(W, 2), this.addScalePoint(R, 3), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol4020401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4020303 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.069485), l.scaleValues.push(.14), l.scaleValues.push(.1), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.scaleValues.length < 5 && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(Math.PI / 2), this.scaleValues.push(.069485), this.scaleValues.push(.14), this.scaleValues.push(.1), this.scaleValues.push(.1)); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[2] = 1.5 * o, this.scaleValues[4] = .5 * o, this.scaleValues[5] = .5 * o } var i = l * this.scaleValues[4], n = this.scaleValues[0] - this.scaleValues[3]; n < 0 && (n = 0); var a = this.scaleValues[0] + this.scaleValues[3]; a > 1 && (a = 1); var r = this.getLinePts(e, this.scaleValues[4], n), s = this.getLinePts(e, this.scaleValues[4], a), p = new SuperMap.Geometry.Point((r.startPt.x + r.endPt.x) / 2, (r.startPt.y + r.endPt.y) / 2), u = SuperMap.Plot.PlottingUtil.radian(r.startPt, r.endPt) * SuperMap.Plot.PlottingUtil.RTOD; this.createSubSymbol1(p, i, u); var c = new SuperMap.Geometry.Point((s.startPt.x + s.endPt.x) / 2, (s.startPt.y + s.endPt.y) / 2), P = SuperMap.Plot.PlottingUtil.radian(s.startPt, s.endPt) * SuperMap.Plot.PlottingUtil.RTOD; this.createSubSymbol2(c, i, P); for (var S = [], h = [], y = [], f = 0; f <= r.startIndex; f++)S.push(e[f]); if (S.push(r.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), r.endIndex <= s.startIndex) { h.push(r.endPt); for (var g = r.endIndex + 1; g <= s.startIndex; g++)h.push(e[g]); h.push(s.startPt), 2 === e.length && SuperMap.Plot.PlottingUtil.distance(e[0], r.endPt) <= SuperMap.Plot.PlottingUtil.distance(e[0], s.startPt) && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h), e.length > 2 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } y.push(s.endPt); for (var M = s.endIndex + 1; M < e.length; M++)y.push(e[M]); this.addArrow(y, this.scaleValues[5]); var b = l * this.scaleValues[0], m = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD, d = l * this.scaleValues[2], v = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, b); if (-1 !== v.index) { var O = v.pt, U = new SuperMap.Geometry.Point(e[v.index].x, e[v.index].y), w = new SuperMap.Geometry.Point(e[v.index + 1].x, e[v.index + 1].y), L = SuperMap.Plot.PlottingUtil.radian(U, w) * SuperMap.Plot.PlottingUtil.RTOD, V = SuperMap.Plot.PlottingUtil.circlePoint(O, d, d, m + L - 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [O, V]); var _ = SuperMap.Plot.PlottingUtil.radian(O, V) * SuperMap.Plot.PlottingUtil.RTOD, T = new SuperMap.Geometry.Point(-.2 * d, .05 * d), A = new SuperMap.Geometry.Point(-.2 * d, -.05 * d), E = SuperMap.Plot.PlottingUtil.coordinateTrans(V, T, _), x = SuperMap.Plot.PlottingUtil.coordinateTrans(V, A, _); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [V, E, x], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }), this.addScalePoint(v.pt, 0), this.addScalePoint(V, 1), this.addScalePoint(p, 2), this.addScalePoint(r.startPt, 3), this.finish() } } } }, { key: "createSubSymbol1", value: function (t, e, l) { var o = this.getSubSymbolPts(e); this.createSubSymbol(t, e, l, o) } }, { key: "createSubSymbol2", value: function (t, e, l) { var o = this.getSubSymbolPts1(e); this.createSubSymbol(t, e, l, o) } }, { key: "createSubSymbol", value: function (t, e, l, o) { for (var i = [], n = 0; n < o.length; n++) { var a = SuperMap.Plot.PlottingUtil.coordinateTrans(t, o[n], l); i.push(a) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, i) } }, { key: "getSubSymbolPts", value: function (t) { var e = t, l = []; return l.push(new SuperMap.Geometry.Point(0, 2 * e)), l.push(new SuperMap.Geometry.Point(-e, 0)), l.push(new SuperMap.Geometry.Point(0, -2 * e)), l.push(new SuperMap.Geometry.Point(e, 0)), l } }, { key: "getSubSymbolPts1", value: function (t) { var e = t, l = []; return l.push(new SuperMap.Geometry.Point(e, 2 * e)), l.push(new SuperMap.Geometry.Point(-e, 2 * e)), l.push(new SuperMap.Geometry.Point(-e, -2 * e)), l.push(new SuperMap.Geometry.Point(e, -e)), l } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a, r, s, p, u, c, P, S, h = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { i = -1, n = 0, a = new SuperMap.Geometry.Point(0, 0); for (var y = 0; y < o.length - 1; y++)(r = []).push(o[y]), r.push(o[y + 1]), s = SuperMap.Plot.PlottingUtil.projectPoint(e, o[y], o[y + 1]), -1 !== (p = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(s, r)).index && (u = SuperMap.Plot.PlottingUtil.distance(e, s), -1 == i ? (i = y, a = s, n = u) : n > u && (i = y, a = s, n = u)); if (-1 == i || i > o.length - 1) return; c = 0; for (var f = 0; f < i; f++)c += SuperMap.Plot.PlottingUtil.distance(o[f], o[f + 1]); if ((c += SuperMap.Plot.PlottingUtil.distance(o[i], a)) < 0 || c > h) return; var g = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[0], o), M = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[3], o), b = 0; g.index === M.index && (b = SuperMap.Plot.PlottingUtil.distance(this.scalePoints[0], this.scalePoints[3])); for (var m = M.index; m < g.index; m++)b += SuperMap.Plot.PlottingUtil.distance(o[m], o[m + 1]); c < b + .5 ? c = b + .5 : c > h - b - .5 && (c = h - b - .5), this.scaleValues[0] = c / h } else if (1 === t) { var d = h * this.scaleValues[0], v = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, d); if (-1 === v.index) return; var O = o[v.index], U = o[v.index + 1], w = SuperMap.Plot.PlottingUtil.radian(O, U), L = SuperMap.Plot.PlottingUtil.radian(v.pt, e); this.scaleValues[1] = L - w - Math.PI; var V = SuperMap.Plot.PlottingUtil.distance(v.pt, e); this.scaleValues[2] = V / h } else if (2 === t) { i = -1, n = 0, a = new SuperMap.Geometry.Point(0, 0); for (var _ = 0; _ < o.length - 1; _++)(r = []).push(o[_]), r.push(o[_ + 1]), s = SuperMap.Plot.PlottingUtil.projectPoint(e, o[_], o[_ + 1]), -1 !== (p = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(s, r)).index && (u = SuperMap.Plot.PlottingUtil.distance(e, s), -1 == i ? (i = _, a = s, n = u) : n > u && (i = _, a = s, n = u)); if (-1 !== i && i <= o.length - 1) { c = 0; for (var T = 0; T < i; T++)c += SuperMap.Plot.PlottingUtil.distance(o[T], o[T + 1]); c += SuperMap.Plot.PlottingUtil.distance(o[i], a); var A = this.getLinePts(o, this.scaleValues[4], 5 / 14), E = SuperMap.Plot.PlottingUtil.distance(A.startPt, A.endPt) / 3 * 2 / h; if (c > 0 && c < h) { var x = c / h; x < E && (x = E), x > 1 - E && (x = 1 - E), this.scaleValues[3] = Math.abs(x - this.scaleValues[0]) } } } else if (3 === t) if (this.scaleValues[0] > .5) { var Y = this.scaleValues[0] + this.scaleValues[3], j = h * (P = this.scaleValues[0] - this.scaleValues[3]), C = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, j); -1 !== C.index && ((S = SuperMap.Plot.PlottingUtil.distance(C.pt, e) / h) > 1 - Y && (S = 1 - Y), this.scaleValues[4] = S) } else { var I = h * (P = this.scaleValues[0] - this.scaleValues[3]); -1 !== (p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, I)).index && ((S = SuperMap.Plot.PlottingUtil.distance(p.pt, e) / h) > P && (S = P), this.scaleValues[4] = S) } } } }]), e }(); SuperMap.Plot.AlgoSymbol4020303 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4011101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(-.1), l.scaleValues.push(0), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 10 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(-.1), this.scaleValues.push(0), this.scaleValues.push(.1), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[0] = i / o, this.scaleValues[3] = i / o } var n = this.scaleValues[0], a = this.scaleValues[1], r = this.scaleValues[3], s = this.scaleValues[4], p = this.scaleValues[6], u = this.scaleValues[7], c = this.scaleValues[8], P = this.scaleValues[9], S = new SuperMap.Geometry.Point(l.x + o * p, l.y + o * u), h = new SuperMap.Geometry.Point(l.x + o * c, l.y + o * P), y = [], f = .15 * SuperMap.Plot.PlottingUtil.distance(S, h), g = SuperMap.Plot.PlottingUtil.linePnt(S, h, f), M = SuperMap.Plot.PlottingUtil.linePnt(h, S, f); y.push(g), y.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var b = o * n, m = a; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], S, b, m + 90); var d = o * r, v = s; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], h, d, v + 90), this.addScalePoint(S); var O = SuperMap.Plot.PlottingUtil.circlePoint(S, .5 * b, .5 * b, m); this.addScalePoint(O), this.addScalePoint(h); var U = SuperMap.Plot.PlottingUtil.circlePoint(h, .5 * d, .5 * d, v); this.addScalePoint(U), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; 10 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(-.1), this.scaleValues.push(0), this.scaleValues.push(.1), this.scaleValues.push(0)); var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a, r, s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), p = SuperMap.Plot.PlottingUtil.polylineDistance(l), u = e; if (0 == t) i = (u.x - s.x) / p, this.scaleValues[6] = i, n = (u.y - s.y) / p, this.scaleValues[7] = n; else if (1 == t) { i = this.scaleValues[6], n = this.scaleValues[7]; var c = new SuperMap.Geometry.Point(s.x + p * i, s.y + p * n), P = 2 * SuperMap.Plot.PlottingUtil.distance(c, u) / p; this.scaleValues[0] = P; var S = 180 * SuperMap.Plot.PlottingUtil.radian(c, u) / Math.PI; this.scaleValues[1] = S, this.scaleValues[2] = 0 <= S && S < 90 ? 1 : 90 <= S && S < 180 ? 2 : 180 <= S && S < 270 ? 3 : 4 } else if (2 == t) a = (u.x - s.x) / p, this.scaleValues[8] = a, r = (u.y - s.y) / p, this.scaleValues[9] = r; else if (3 == t) { a = this.scaleValues[8], r = this.scaleValues[9]; var h = new SuperMap.Geometry.Point(s.x + p * a, s.y + p * r), y = 2 * SuperMap.Plot.PlottingUtil.distance(h, u) / p; this.scaleValues[3] = y; var f = 180 * SuperMap.Plot.PlottingUtil.radian(h, u) / Math.PI; this.scaleValues[4] = f, this.scaleValues[5] = 0 <= f && f < 90 ? 1 : 90 <= f && f < 180 ? 2 : 180 <= f && f < 270 ? 3 : 4 } } } }]), e }(); SuperMap.Plot.AlgoSymbol4011101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4011100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(-.1), l.scaleValues.push(0), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 10 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(-.1), this.scaleValues.push(0), this.scaleValues.push(.1), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[0] = i / o, this.scaleValues[3] = i / o } var n = this.scaleValues[0], a = this.scaleValues[1], r = this.scaleValues[3], s = this.scaleValues[4], p = this.scaleValues[6], u = this.scaleValues[7], c = this.scaleValues[8], P = this.scaleValues[9], S = new SuperMap.Geometry.Point(l.x + o * p, l.y + o * u), h = new SuperMap.Geometry.Point(l.x + o * c, l.y + o * P), y = [], f = .15 * SuperMap.Plot.PlottingUtil.distance(S, h), g = SuperMap.Plot.PlottingUtil.linePnt(S, h, f), M = SuperMap.Plot.PlottingUtil.linePnt(h, S, f); y.push(g), y.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var b = o * n, m = a; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], S, b, m - 90); var d = o * r, v = s; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], h, d, v - 90), this.addScalePoint(S); var O = SuperMap.Plot.PlottingUtil.circlePoint(S, .5 * b, .5 * b, m); this.addScalePoint(O), this.addScalePoint(h); var U = SuperMap.Plot.PlottingUtil.circlePoint(h, .5 * d, .5 * d, v); this.addScalePoint(U), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; 10 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(-.1), this.scaleValues.push(0), this.scaleValues.push(.1), this.scaleValues.push(0)); var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a, r, s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), p = SuperMap.Plot.PlottingUtil.polylineDistance(l), u = e; if (0 == t) i = (u.x - s.x) / p, this.scaleValues[6] = i, n = (u.y - s.y) / p, this.scaleValues[7] = n; else if (1 == t) { i = this.scaleValues[6], n = this.scaleValues[7]; var c = new SuperMap.Geometry.Point(s.x + p * i, s.y + p * n), P = 2 * SuperMap.Plot.PlottingUtil.distance(c, u) / p; this.scaleValues[0] = P; var S = 180 * SuperMap.Plot.PlottingUtil.radian(c, u) / Math.PI; this.scaleValues[1] = S, this.scaleValues[2] = 0 <= S && S < 90 ? 1 : 90 <= S && S < 180 ? 2 : 180 <= S && S < 270 ? 3 : 4 } else if (2 == t) a = (u.x - s.x) / p, this.scaleValues[8] = a, r = (u.y - s.y) / p, this.scaleValues[9] = r; else if (3 == t) { a = this.scaleValues[8], r = this.scaleValues[9]; var h = new SuperMap.Geometry.Point(s.x + p * a, s.y + p * r), y = 2 * SuperMap.Plot.PlottingUtil.distance(h, u) / p; this.scaleValues[3] = y; var f = 180 * SuperMap.Plot.PlottingUtil.radian(h, u) / Math.PI; this.scaleValues[4] = f, this.scaleValues[5] = 0 <= f && f < 90 ? 1 : 90 <= f && f < 180 ? 2 : 180 <= f && f < 270 ? 3 : 4 } } } }]), e }(); SuperMap.Plot.AlgoSymbol4011100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4010905 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.333333), l.scaleValues.push(.333333), l.scaleValues.push(.125), l.scaleValues.push(90)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23901), e }(); SuperMap.Plot.AlgoSymbol4010905 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4010801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol4010800), e }(); SuperMap.Plot.AlgoSymbol4010801 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4010800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 4 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l, o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), i = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var n = (l = 1.5 * this.getDefaultSubSymbolSize()) / i; n > .2 && (n = .2), this.scaleValues[0] = n } var a = this.scaleValues[0], r = this.scaleValues[2], s = this.scaleValues[3]; l = i * a; var p = new SuperMap.Geometry.Point(o.x + i * r, o.y + i * s); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, l, 0); for (var u = 0; u < this.components.length; u++)this.components[u].style.strokeColor = "#0000ff", this.components[u].style.lineColorLimit = !0, this.components[u].style.strokeOpacity = 1, this.components[u].style.color = "#0000ff", this.components[u].style.opacity = 1; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e), this.addScalePoint(p); var c = l, P = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, 90); this.addScalePoint(P), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol4010800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3032000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(-.1), l.scaleValues.push(0), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23600), e }(); SuperMap.Plot.AlgoSymbol3032000 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3020901 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.125)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (2 == t.length) { var l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = SuperMap.Plot.PlottingUtil.distance(l, o), n = 180 * SuperMap.Plot.PlottingUtil.radian(l, o) / Math.PI, a = SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n + 60); e.push(t[0]), e.push(o), e.push(a), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e) } else { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); for (var r = 0; r < t.length; r++)e.push(t[r]) } var s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), p = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var u = this.scaleValues[0], c = this.scaleValues[1], P = this.scaleValues[2], S = new SuperMap.Geometry.Point(s.x + p * u, s.y + p * c), h = p * P; 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], S, h, 0), this.addScalePoint(S.clone()); var y = SuperMap.Plot.PlottingUtil.circlePoint(S, .5 * h, .5 * h, 90); this.addScalePoint(y), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; if (2 == l.length) { var i = new SuperMap.Geometry.Point(l[0].x, l[0].y), n = new SuperMap.Geometry.Point(l[1].x, l[1].y), a = SuperMap.Plot.PlottingUtil.distance(i, n), r = 180 * SuperMap.Plot.PlottingUtil.radian(i, n) / Math.PI, s = SuperMap.Plot.PlottingUtil.circlePoint(i, a, a, r + 60); o.push(l[0]), o.push(n), o.push(s), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o) } else { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l); for (var p = 0; p < l.length; p++)o.push(l[p]) } var u = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), c = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) this.scaleValues[0] = (e.x - u.x) / c, this.scaleValues[1] = (e.y - u.y) / c; else if (1 === t) { var P = new SuperMap.Geometry.Point(u.x + c * this.scaleValues[0], u.y + c * this.scaleValues[1]), S = 2 * SuperMap.Plot.PlottingUtil.distance(e, P) / c; S < .5 && (this.scaleValues[2] = S) } } } }]), e }(); SuperMap.Plot.AlgoSymbol3020901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010304 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "协", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010304 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010303 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "出", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010303 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6020402 = function (t) { function e() { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol6020400), o(e, [{ key: "getSubSymbolPts", value: function (t) { var e = [], l = []; l.push(new SuperMap.Geometry.Point(-t / 2, 0)), l.push(new SuperMap.Geometry.Point(t / 2, 0)), e.push(l); var o = []; return o.push(new SuperMap.Geometry.Point(0, 0)), o.push(new SuperMap.Geometry.Point(0, t / 2)), e.push(o), e } }]), e }(); SuperMap.Plot.AlgoSymbol6020402 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6020401 = function (t) { function e() { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol6020400), o(e, [{ key: "getSubSymbolPts", value: function (t) { var e = [], l = []; l.push(new SuperMap.Geometry.Point(-t / 2, 0)), l.push(new SuperMap.Geometry.Point(t / 2, 0)), e.push(l); var o = []; return o.push(new SuperMap.Geometry.Point(0, -t / 2)), o.push(new SuperMap.Geometry.Point(0, t / 2)), e.push(o), e } }]), e }(); SuperMap.Plot.AlgoSymbol6020401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6020400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.05)); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); 2 === this.controlPoints.length && t.splice(1, 0, new SuperMap.Geometry.Point(t[0].x + e, t[0].y)); var l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = new SuperMap.Geometry.Point(t[2].x, t[2].y), n = e, a = 180 * SuperMap.Plot.PlottingUtil.radian(l, o) / Math.PI % 360, r = 180 * SuperMap.Plot.PlottingUtil.radian(l, i) / Math.PI % 360; if (a > r && (r += 360), !this.isEdit) { var s = .5 * this.getDefaultSubSymbolSize() / n; s > .1 && (s = .1), this.scaleValues[0] = s } var p = n * this.scaleValues[0], u = 180 * Math.atan(.5 * p / n) / Math.PI, c = (r - a) / 3, P = (r - a) / 50, S = this.getArcPts(t[0], n, a, a + c - 1.8 * u, P); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = this.getArcPts(t[0], n, a + c + 1.8 * u, a + 2 * c - 1.8 * u, P); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var y = this.getArcPts(t[0], n, a + 2 * c + 1.8 * u, r, P); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var f = a + c + 90, g = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e, e, a + c); this.createSubSymbol(g, p, f); var M = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e, e, a + 2 * c), b = a + 2 * c + 90; this.createSubSymbol(M, p, b); var m = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e + p, e + p, a + c); this.addScalePoint(m), 3 === this.controlPoints.length && (this.controlPoints[2] = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e, e, r)), this.finish() } } }, { key: "getArcPts", value: function (t, e, l, o, i) { void 0 !== i && null !== i || (i = 1); for (var n = [], a = l; a < o; a += i) { var r = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, a); n.push(r) } var s = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, o); return n.push(s), n } }, { key: "createSubSymbol", value: function (t, e, l) { for (var o = this.getSubSymbolPts(e), i = 0; i < o.length; i++) { for (var n = o[i], a = [], r = 0; r < n.length; r++) { var s = SuperMap.Plot.PlottingUtil.coordinateTrans(t, n[r], l); a.push(s) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a) } } }, { key: "getSubSymbolPts", value: function (t) { var e = [], l = []; l.push(new SuperMap.Geometry.Point(-t / 2, 0)), l.push(new SuperMap.Geometry.Point(t / 2, 0)), e.push(l); var o = []; return o.push(new SuperMap.Geometry.Point(0, -t / 2)), o.push(new SuperMap.Geometry.Point(0, 0)), e.push(o), e } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); 2 === this.controlPoints.length && l.splice(1, 0, new SuperMap.Geometry.Point(l[0].x + o, l[0].y)); var i = new SuperMap.Geometry.Point(l[0].x, l[0].y), n = new SuperMap.Geometry.Point(l[1].x, l[1].y), a = new SuperMap.Geometry.Point(l[2].x, l[2].y), r = SuperMap.Plot.PlottingUtil.distance(i, n), s = 180 * SuperMap.Plot.PlottingUtil.radian(i, n) / Math.PI % 360, p = 180 * SuperMap.Plot.PlottingUtil.radian(i, a) / Math.PI % 360; s > p && (p += 360); var u = (p - s) / 3, c = SuperMap.Plot.PlottingUtil.circlePoint(l[0], o, o, s + u), P = SuperMap.Plot.PlottingUtil.distance(c, e) / r; P <= .6 && (this.scaleValues[0] = P) } } }]), e }(); SuperMap.Plot.AlgoSymbol6020400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010302 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "冲", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010302 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "调", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010301 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010108 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3010107), e }(); SuperMap.Plot.AlgoSymbol3010108 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3010107 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); 0 == this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .05) : 1 == this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue(l), this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var o = this.getLinePts(e, this.scaleValues[0]), i = new SuperMap.Geometry.Point((o.startPt.x + o.endPt.x) / 2, (o.startPt.y + o.endPt.y) / 2), n = 180 * SuperMap.Plot.PlottingUtil.radian(o.startPt, o.endPt) / Math.PI, a = SuperMap.Plot.PlottingUtil.distance(o.startPt, o.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], i, a, n - 90); for (var r = [], s = [], p = 0; p <= o.startIndex; p++)r.push(e[p]); if (r.push(o.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), o.endIndex <= e.length) { s.push(o.endPt); for (var u = o.endIndex + 1; u <= e.length - 1; u++)s.push(e[u]); this.addArrow(s, this.scaleValues[1]) } var c = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), P = SuperMap.Plot.PlottingUtil.circlePoint(c.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, n + 90); this.addScalePoint(P, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol3010107 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3010106 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .05) : 1 == this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[0] = .8 * this.getSubSymbolScaleValue(l), this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var o = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, .3 * l); if (-1 !== o.index) { var i = o.pt, n = o.index, a = l * this.scaleValues[0] * .5, r = SuperMap.Plot.PlottingUtil.radian(i, e[n + 1]) * SuperMap.Plot.PlottingUtil.RTOD, s = SuperMap.Plot.PlottingUtil.circlePoint(i, a, a, r + 90), p = SuperMap.Plot.PlottingUtil.circlePoint(i, a, a, r - 90), u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, i, s), c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, i, p); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u.pntLeft, u.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c.pntLeft, c.pntRight]); var P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, .6 * l); if (-1 !== P.index) { var S = P.pt, h = P.index, y = SuperMap.Plot.PlottingUtil.radian(S, e[h + 1]) * SuperMap.Plot.PlottingUtil.RTOD, f = SuperMap.Plot.PlottingUtil.circlePoint(S, a, a, y + 90), g = SuperMap.Plot.PlottingUtil.circlePoint(S, a, a, y - 90), M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, S, f), b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, S, g); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [M.pntLeft, M.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [b.pntLeft, b.pntRight]), this.addArrow(e, this.scaleValues[1]), this.addScalePoint(g, 0), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6 * i, o); if (!n.bfind) return; var a = 2 * SuperMap.Plot.PlottingUtil.distance(e, n.pts); this.scaleValues[0] = a / i } } }]), e }(); SuperMap.Plot.AlgoSymbol3010106 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3010105 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3010102), o(e, [{ key: "getSubSymbolPts", value: function (t) { var e = t / 4, l = []; l.push(new SuperMap.Geometry.Point(-2 * e, -e)), l.push(new SuperMap.Geometry.Point(e, -e)); for (var o = -90; o <= 90; o += 5)l.push(SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(e, 0), e, e, o)); return l.push(new SuperMap.Geometry.Point(e, e)), l.push(new SuperMap.Geometry.Point(-2 * e, e)), l } }]), e }(); SuperMap.Plot.AlgoSymbol3010105 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3010104 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3010102), o(e, [{ key: "getSubSymbolPts", value: function (t) { var e = t / 4, l = []; return l.push(new SuperMap.Geometry.Point(2 * e, 0)), l.push(new SuperMap.Geometry.Point(0, e)), l.push(new SuperMap.Geometry.Point(-2 * e, 0)), l.push(new SuperMap.Geometry.Point(0, -e)), l.push(new SuperMap.Geometry.Point(-e, -e)), l.push(new SuperMap.Geometry.Point(e, -e)), l.push(new SuperMap.Geometry.Point(0, -e)), l } }]), e }(); SuperMap.Plot.AlgoSymbol3010104 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3010103 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3010102), o(e, [{ key: "createSubSymbol1", value: function (t, e, l) { var o = this.getSubSymbolPts1(e); this.createSubSymbol(t, e, l, o) } }, { key: "createSubSymbol2", value: function (t, e, l) { var o = this.getSubSymbolPts2(e); this.createSubSymbol(t, e, l, o) } }, { key: "getSubSymbolPts1", value: function (t) { var e = t / 4, l = []; return l.push(new SuperMap.Geometry.Point(-2 * e, -e)), l.push(new SuperMap.Geometry.Point(2 * e, -e)), l.push(new SuperMap.Geometry.Point(e, e)), l.push(new SuperMap.Geometry.Point(-2 * e, e)), l } }, { key: "getSubSymbolPts2", value: function (t) { var e = t / 4, l = []; return l.push(new SuperMap.Geometry.Point(-2 * e, 0)), l.push(new SuperMap.Geometry.Point(0, -e)), l.push(new SuperMap.Geometry.Point(2 * e, 0)), l.push(new SuperMap.Geometry.Point(0, e)), l } }]), e }(); SuperMap.Plot.AlgoSymbol3010103 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3010102 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .05) : 1 == this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue(), this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = e * this.scaleValues[0], i = this.getLinePts(l, this.scaleValues[0], 5 / 14), n = this.getLinePts(l, this.scaleValues[0], 9 / 14), a = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI; this.createSubSymbol1(a, o, r); var s = new SuperMap.Geometry.Point((n.startPt.x + n.endPt.x) / 2, (n.startPt.y + n.endPt.y) / 2), p = 180 * SuperMap.Plot.PlottingUtil.radian(n.startPt, n.endPt) / Math.PI; this.createSubSymbol2(s, o, p); var u = SuperMap.Plot.PlottingUtil.circlePoint(s, .5 * o, .5 * o, p + 90); this.addScalePoint(u); for (var c = [], P = [], S = [], h = 0; h <= i.startIndex; h++)c.push(l[h]); if (c.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), i.endIndex <= n.startIndex) { P.push(i.endPt); for (var y = i.endIndex + 1; y <= n.startIndex; y++)P.push(l[y]); P.push(n.startPt), 2 === l.length && SuperMap.Plot.PlottingUtil.distance(l[0], i.endPt) <= SuperMap.Plot.PlottingUtil.distance(l[0], n.startPt) && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), l.length > 2 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P) } S.push(n.endPt); for (var f = n.endIndex + 1; f < l.length; f++)S.push(l[f]); this.addArrow(S, this.scaleValues[1]), this.finish() } } }, { key: "createSubSymbol1", value: function (t, e, l) { var o = this.getSubSymbolPts(e); this.createSubSymbol(t, e, l, o) } }, { key: "createSubSymbol2", value: function (t, e, l) { var o = this.getSubSymbolPts(e); this.createSubSymbol(t, e, l, o) } }, { key: "createSubSymbol", value: function (t, e, l, o) { for (var i = [], n = 0; n < o.length; n++) { var a = SuperMap.Plot.PlottingUtil.coordinateTrans(t, o[n], l); i.push(a) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, i) } }, { key: "getSubSymbolPts", value: function (t) { var e = t / 2, l = []; return l.push(new SuperMap.Geometry.Point(-2 * e, 0)), l.push(new SuperMap.Geometry.Point(0, -e)), l.push(new SuperMap.Geometry.Point(2 * e, 0)), l.push(new SuperMap.Geometry.Point(0, e)), l } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(9 * i / 14, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; a <= .3 && (this.scaleValues[0] = a) } } }]), e }(); SuperMap.Plot.AlgoSymbol3010102 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2890001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.05), l.scaleValues.push(180)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 3 !== this.scaleValues.length && (this.scaleValues = [.5, .05, 180]); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2]; this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); var a = l * o, r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (-1 !== r.index) { for (var s = [], p = 0; p <= r.index; p++)s.push(e[p]); var u, c, P, S, h = l * i, y = []; if (a - SuperMap.Plot.PlottingUtil.polylineDistance(s) > (h *= .5)) { u = SuperMap.Plot.PlottingUtil.linePnt(r.pts, e[r.index], h), s.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), c = SuperMap.Plot.PlottingUtil.linePnt(r.pts, e[r.index + 1], h), y.push(c); for (var f = e.length, g = r.index + 1; g < f; ++g)y.push(e[g]) } else { for (var M = -1, b = s.length - 1; b >= 0; b--)if (P = new SuperMap.Geometry.Point(s[b].x, s[b].y), S = new SuperMap.Geometry.Point(r.pts.x, r.pts.y), SuperMap.Plot.PlottingUtil.distance(P, S) > h) { M = b; break } if (-1 === M) return; s.splice(M + 1, s.length - 1 - M), u = SuperMap.Plot.PlottingUtil.linePnt(r.pts, e[M], h), s.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var m = -1, d = r.index; d < e.length; d++)if (P = new SuperMap.Geometry.Point(e[d].x, e[d].y), S = new SuperMap.Geometry.Point(r.pts.x, r.pts.y), SuperMap.Plot.PlottingUtil.distance(P, S) > h) { m = d; break } if (-1 === m) return; c = SuperMap.Plot.PlottingUtil.linePnt(r.pts, e[m], h), y.push(c); for (var v = m + 1; v < e.length; ++v)y.push(e[v]) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var O = y[0], U = s[s.length - 1], w = new SuperMap.Geometry.Point((O.x + U.x) / 2, (O.y + U.y) / 2); r.x = w.x, r.y = w.y; var L = h, V = new SuperMap.Geometry.Point(.5 * L, L), _ = new SuperMap.Geometry.Point(.5 * L, -L), T = new SuperMap.Geometry.Point(-.5 * L, -L), A = new SuperMap.Geometry.Point(-.5 * L, L), E = [], x = SuperMap.Plot.PlottingUtil.coordinateTrans(w, V, n), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(w, _, n), j = SuperMap.Plot.PlottingUtil.coordinateTrans(w, T, n), C = SuperMap.Plot.PlottingUtil.coordinateTrans(w, A, n); E.push(x), E.push(Y), E.push(j), E.push(C), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, E); var I = new SuperMap.Geometry.Point(0, -2 * L), G = new SuperMap.Geometry.Point(.15 * L, -1.6 * L), B = new SuperMap.Geometry.Point(-.15 * L, -1.6 * L), R = SuperMap.Plot.PlottingUtil.coordinateTrans(w, I, n), N = SuperMap.Plot.PlottingUtil.coordinateTrans(w, G, n), D = SuperMap.Plot.PlottingUtil.coordinateTrans(w, B, n), k = []; k.push(R), k.push(N), k.push(D); var z = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0, lineTypeLimit: !0, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.NONE }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, k, z); var F = new SuperMap.Geometry.Point(0, -L), K = SuperMap.Plot.PlottingUtil.coordinateTrans(w, F, n); (k = []).push(K), k.push(R), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, k), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], w, 1.5 * L, n + 90); for (var q = .02 * l, W = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(q, e[1], e[0]), J = .5 * SuperMap.Plot.PlottingUtil.distance(e[0], W.pntLeft), Z = new SuperMap.Geometry.Point((e[0].x + W.pntLeft.x) / 2, (e[0].y + W.pntLeft.y) / 2), H = SuperMap.Plot.PlottingUtil.radian(e[1], e[0]) * SuperMap.Plot.PlottingUtil.RTOD, Q = [], X = 270 + H; X <= 360 + H; X += 5)Q.push(SuperMap.Plot.PlottingUtil.circlePoint(Z, J, J, X)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, Q), V = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(q, e[e.length - 2], e[e.length - 1]); for (var $ = new SuperMap.Geometry.Point((e[e.length - 1].x + V.pntRight.x) / 2, (e[e.length - 1].y + V.pntRight.y) / 2), tt = SuperMap.Plot.PlottingUtil.radian(e[e.length - 1], V.pntRight) * SuperMap.Plot.PlottingUtil.RTOD, et = [], lt = 90 + tt; lt <= 180 + tt; lt += 5)et.push(SuperMap.Plot.PlottingUtil.circlePoint($, J, J, lt)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, et), this.scalePoints = [], this.addScalePoint(w, 0); var ot = new SuperMap.Geometry.Point(0, -2 * h), it = SuperMap.Plot.PlottingUtil.coordinateTrans(w, ot, this.scaleValues[2]); this.addScalePoint(it, 1), this.finish() } } } }, { key: "GetSymbolPt", value: function () { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 3 !== this.scaleValues.length && (this.scaleValues = [.5, .05, 0]); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = this.scaleValues[0], i = this.scaleValues[1], n = l * o, a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, e); if (-1 !== a.index) { for (var r = [], s = 0; s <= a.index; s++)r.push(e[s]); var p, u, c, P, S = l * i, h = []; if (n - SuperMap.Plot.PlottingUtil.polylineDistance(r) > (S *= .5)) { p = SuperMap.Plot.PlottingUtil.linePnt(a.pts, e[a.index], S), r.push(p), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), u = SuperMap.Plot.PlottingUtil.linePnt(a.pts, e[a.index + 1], S), h.push(u); for (var y = e.length, f = a.index + 1; f < y; ++f)h.push(e[f]) } else { for (var g = -1, M = r.length - 1; M >= 0; M--)if (c = new SuperMap.Geometry.Point(r[M].x, r[M].y), P = new SuperMap.Geometry.Point(a.pts.x, a.pts.y), SuperMap.Plot.PlottingUtil.distance(c, P) > S) { g = M; break } if (-1 === g) return; r.splice(g + 1, r.length - 1 - g), p = SuperMap.Plot.PlottingUtil.linePnt(a.pts, e[g], S), r.push(p); for (var b = -1, m = a.index; m < e.length; m++)if (c = new SuperMap.Geometry.Point(e[m].x, e[m].y), P = new SuperMap.Geometry.Point(a.pts.x, a.pts.y), SuperMap.Plot.PlottingUtil.distance(c, P) > S) { b = m; break } if (-1 === b) return; u = SuperMap.Plot.PlottingUtil.linePnt(a.pts, e[b], S), h.push(u); for (var d = b + 1; d < e.length; ++d)h.push(e[d]) } var v = h[0], O = r[r.length - 1]; return new SuperMap.Geometry.Point((v.x + O.x) / 2, (v.y + O.y) / 2) } } } }, { key: "computeScaleValues", value: function (t, e) { if ((0 === t || 1 === t) && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a, r = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { i = new SuperMap.Geometry.Point(e.x, e.y); for (var s = [], p = 0; p < o.length; p++)s.push(o[p]); for (var u = -1, c = 0, P = new SuperMap.Geometry.Point(0, 0), S = 0; S < s.length - 1; S++) { var h = []; h.push(s[S]), h.push(s[S + 1]); var y = SuperMap.Plot.PlottingUtil.projectPoint(i, s[S], s[S + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(y, h).index) { var f = SuperMap.Plot.PlottingUtil.distance(i, y); -1 === u ? (u = S, P = y, c = f) : c > f && (u = S, P = y, c = f) } } if (-1 === u || u > s.length - 1) return; n = 0; for (var g = 0; g < u; g++) { var M = new SuperMap.Geometry.Point(o[g].x, o[g].y), b = new SuperMap.Geometry.Point(o[g + 1].x, o[g + 1].y); n += SuperMap.Plot.PlottingUtil.distance(M, b) } var m = new SuperMap.Geometry.Point(o[u].x, o[u].y); a = (n += SuperMap.Plot.PlottingUtil.distance(m, P)) / r; var d = .4 - this.scaleValues[1] + .5, v = .5 - (.4 - this.scaleValues[1]); a >= d && (a = d), a <= v && (a = v), this.scaleValues[0] = a } else if (1 === t) { i = new SuperMap.Geometry.Point(e.x, e.y); var O = this.GetSymbolPt(); a = (n = SuperMap.Plot.PlottingUtil.distance(i, O)) / r; var U = this.scaleValues[0] < .4 ? this.scaleValues[0] : 1 - this.scaleValues[0]; a >= U && (a = U), this.scaleValues[1] = a; var w = SuperMap.Plot.PlottingUtil.radian(O, i) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[2] = w - 270 } } } }]), e }(); SuperMap.Plot.AlgoSymbol2890001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2350001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(0), l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(-.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 4 >= this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(0), this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(-.05)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var i = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[0] = i / o * .8, this.scaleValues[3] = i / o * .8 } var n = this.scaleValues[0], a = this.scaleValues[1], r = this.scaleValues[3], s = this.scaleValues[4], p = this.scaleValues[6], u = this.scaleValues[7], c = this.scaleValues[8], P = this.scaleValues[9], S = new SuperMap.Geometry.Point(l.x + o * p, l.y + o * u), h = new SuperMap.Geometry.Point(l.x + o * c, l.y + o * P), y = o * n, f = a; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], S, y, f); var g = o * r, M = s; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], h, g, M), this.addScalePoint(S); var b = SuperMap.Plot.PlottingUtil.circlePoint(S, y, y, f); this.addScalePoint(b), this.addScalePoint(h); var m = SuperMap.Plot.PlottingUtil.circlePoint(h, g, g, M); this.addScalePoint(m), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; 10 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(0), this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(-.05)); var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a, r, s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), p = SuperMap.Plot.PlottingUtil.polylineDistance(o), u = e; if (0 == t) i = (u.x - s.x) / p, this.scaleValues[6] = i, n = (u.y - s.y) / p, this.scaleValues[7] = n; else if (1 == t) { i = this.scaleValues[6], n = this.scaleValues[7]; var c = new SuperMap.Geometry.Point(s.x + p * i, s.y + p * n), P = SuperMap.Plot.PlottingUtil.distance(c, u) / p; this.scaleValues[0] = P; var S = 180 * SuperMap.Plot.PlottingUtil.radian(c, u) / Math.PI; this.scaleValues[1] = S, this.scaleValues[2] = 0 <= S && S < 90 ? 1 : 90 <= S && S < 180 ? 2 : 180 <= S && S < 270 ? 3 : 4 } else if (2 == t) a = (u.x - s.x) / p, this.scaleValues[8] = a, r = (u.y - s.y) / p, this.scaleValues[9] = r; else if (3 == t) { a = this.scaleValues[8], r = this.scaleValues[9]; var h = new SuperMap.Geometry.Point(s.x + p * a, s.y + p * r), y = SuperMap.Plot.PlottingUtil.distance(h, u) / p; this.scaleValues[3] = y; var f = 180 * SuperMap.Plot.PlottingUtil.radian(h, u) / Math.PI; this.scaleValues[4] = f, this.scaleValues[5] = 0 <= f && f < 90 ? 1 : 90 <= f && f < 180 ? 2 : 180 <= f && f < 270 ? 3 : 4 } } } }]), e }(); SuperMap.Plot.AlgoSymbol2350001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol44400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = 0, l.scaleValues[1] = 0, l.scaleValues[2] = .1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues[0] = 0, this.scaleValues[1] = 0, this.scaleValues[2] = .1), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t, { fill: !1 }); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], a = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), r = new SuperMap.Geometry.Point(a.x + 1, a.y), s = []; t.push(t[0].clone()); for (var p = 0; p < t.length - 1; p++) { var u = SuperMap.Plot.PlottingUtil.intersectLines(a, r, t[p], t[p + 1]); u.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint, t[p], t[p + 1]) && s.push(u.intersectPoint)) } if (!(0 >= s.length)) { var c = s[0].clone(), P = s[0].clone(); for (p = 0; p < s.length; p++)c.x > s[p].x && (c = s[p].clone()), P.x < s[p].x && (P = s[p].clone()); var S = [], h = new SuperMap.Geometry.Point(a.x - n / 2, c.y); h.x <= P.x && h.x >= c.x && ((S = []).push(c), S.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S)); var y = new SuperMap.Geometry.Point(a.x + n / 2, P.y); y.x <= P.x && y.x >= c.x && ((S = []).push(P), S.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S)), this.scalePoints = []; var f = SuperMap.Plot.PlottingUtil.circlePoint(a, n / 2, n / 2, 90); if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, a)) return this.addScalePoint(a, 0), this.addScalePoint(f, 1), a.x < c.x ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c, a]) : this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, a]), void this.finish(); this.addScalePoint(a, 0), this.addScalePoint(f, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; if (0 === SuperMap.Plot.PlottingUtil.getOutRectangleDis(l)) return; var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), r = e; if (0 == t && (o = (r.x - a.x) / n, this.scaleValues[0] = o, i = (r.y - a.y) / n, this.scaleValues[1] = i), 1 == t) { o = this.scaleValues[0], i = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(a.x + o * n, a.y + i * n), p = 2 * SuperMap.Plot.PlottingUtil.distance(r, s) / n; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol44400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol44300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var i = this.scaleValues[0], n = this.scaleValues[2], a = this.scaleValues[3]; l.x = l.x + n * o, l.y = l.y + a * o; var r = o * i, s = SuperMap.Plot.PlottingUtil.circlePoint(l, r, r, 90), p = SuperMap.Plot.PlottingUtil.circlePoint(l, r, r, 210), u = SuperMap.Plot.PlottingUtil.circlePoint(l, r, r, 330), c = []; c.push(s), c.push(p), c.push(u), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, c, { lineTypeLimit: !0, lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, surroundLineLimit: !0, fillLimit: !0, fill: !0 }), this.scalePoints = [], this.addScalePoint(s), this.addScalePoint(l), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = []; if (o = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 === t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 === t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol44300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol44200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.05), l.scaleValues.push(180)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = this.GetGoPts(); if (!(t.length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.05), this.scaleValues.push(180)); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[1] = o } var i = this.scaleValues[0], n = this.scaleValues[1], a = this.scaleValues[2], r = l * i, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r, e); if (s.bfind) { var p = s.index, u = s.pts, c = u, P = n * l, S = new SuperMap.Geometry.Point(P, -.5 * P), h = new SuperMap.Geometry.Point(P, .5 * P), y = new SuperMap.Geometry.Point(-P, .5 * P), f = new SuperMap.Geometry.Point(-P, -.5 * P), g = SuperMap.Plot.PlottingUtil.coordinateTrans(c, S, a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(c, h, a), b = SuperMap.Plot.PlottingUtil.coordinateTrans(c, y, a), m = SuperMap.Plot.PlottingUtil.coordinateTrans(c, f, a), d = []; d.push(g), d.push(M), d.push(b), d.push(m), d.push(g), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, d); var v = new SuperMap.Geometry.Point(.5 * P, -.2 * P), O = new SuperMap.Geometry.Point(.7 * P, .2 * P), U = new SuperMap.Geometry.Point(.3 * P, .2 * P), w = SuperMap.Plot.PlottingUtil.coordinateTrans(c, v, a), L = SuperMap.Plot.PlottingUtil.coordinateTrans(c, U, a), V = SuperMap.Plot.PlottingUtil.coordinateTrans(c, O, a), _ = []; _.push(w), _.push(L), _.push(V), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, _, { lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, fillLimit: !0, fill: !0 }); var T = new SuperMap.Geometry.Point(P, 0), A = new SuperMap.Geometry.Point(2 * P, 0), E = SuperMap.Plot.PlottingUtil.coordinateTrans(c, T, a), x = SuperMap.Plot.PlottingUtil.coordinateTrans(c, A, a); (_ = []).push(E), _.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _); var Y = new SuperMap.Geometry.Point(2 * P, .15 * P), j = new SuperMap.Geometry.Point(2 * P, -.15 * P), C = new SuperMap.Geometry.Point(2.6 * P, 0), I = SuperMap.Plot.PlottingUtil.coordinateTrans(c, Y, a), G = SuperMap.Plot.PlottingUtil.coordinateTrans(c, j, a), B = SuperMap.Plot.PlottingUtil.coordinateTrans(c, C, a); (_ = []).push(I), _.push(G), _.push(B), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, _, { fillLimit: !0, fill: !0 }); var R = []; R.push(I), R.push(B); var N, D = [], k = []; for (N = 0; N <= p; N++)D.push(e[N]); for (D.push(c), k.push(c), N = p + 1; N < e.length; N++)k.push(e[N]); var z, F, K = 1.2 * P; if (r > K) { var q = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r - K, D); if (q.bfind) { var W = q.pts, J = q.index; for (_ = [], N = 0; N <= J; N++)_.push(D[N]); _.push(W), z = SuperMap.Plot.PlottingUtil.radian(_[0], _[1]) * SuperMap.Plot.PlottingUtil.RTOD, F = SuperMap.Plot.PlottingUtil.circlePoint(_[0], .1 * P, .1 * P, 90 + z), _.splice(0, 0, F), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _) } } if (l - r > K) { var Z = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(K, k); if (Z.bfind) { var H = Z.pts, Q = Z.index; for ((_ = []).push(H), N = Q + 1; N < k.length; N++)_.push(k[N]); var X = _.length; z = SuperMap.Plot.PlottingUtil.radian(_[X - 1], _[X - 2]) * SuperMap.Plot.PlottingUtil.RTOD, F = SuperMap.Plot.PlottingUtil.circlePoint(_[X - 1], .1 * P, .1 * P, 270 + z), _.push(F), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _) } } this.scalePoints = [], this.addScalePoint(u), this.addScalePoint(x), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 == t) { for (var r = e.clone(), s = -1, p = 0, u = 0; u < o.length - 1; u++) { var c = []; c.push(o[u]), c.push(o[u + 1]); var P = SuperMap.Plot.PlottingUtil.projectPoint(r, o[u], o[u + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P, c).isOnPolyLine) { var S = SuperMap.Plot.PlottingUtil.distance(r, P); -1 == s ? (s = u, p = S) : p > S && (s = u, p = S) } } if (-1 == s) return SuperMap.Plot.PlottingUtil.distance(r, o[0]) > SuperMap.Plot.PlottingUtil.distance(r, o[o.length - 1]) ? void (s = o.length - 1) : void (s = 0); if (i = 0, 0 === s) i = SuperMap.Plot.PlottingUtil.distance(o[0], P); else for (var h = 0; h < s; h++)i += SuperMap.Plot.PlottingUtil.distance(o[h], o[h + 1]); if (i < 0 || i > a) return; n = i / a, this.scaleValues[0] = n } else if (1 == t) { i = this.scaleValues[0] * a; var y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, o); if (!y.bfind) return; var f = y.pts; (n = .5 * SuperMap.Plot.PlottingUtil.distance(f, e) / a) > .3 && (n = .3), this.scaleValues[1] = n; var g = SuperMap.Plot.PlottingUtil.radian(f, e) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[2] = g } } } }, { key: "GetGoPts", value: function () { var t = []; return this.controlPoints.length < this.minEditPts ? t : (t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), 1 == (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length && (t = []), t) } }]), e }(); SuperMap.Plot.AlgoSymbol44200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol44100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.285714), l.scaleValues.push(.105263), l.scaleValues.push(.181818), l.scaleValues.push(.285714), l.scaleValues.push(.285714)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 5 && (this.scaleValues = [], this.scaleValues.push(.285714), this.scaleValues.push(.105263), this.scaleValues.push(.181818), this.scaleValues.push(.285714), this.scaleValues.push(.285714)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), a = new SuperMap.Geometry.Point(0, o * i), r = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * r), u = new SuperMap.Geometry.Point(o * (1 - s), o * r), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, g = []; g.push(a), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(n); for (var M = [], b = 0; b < g.length; b++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[b], f); M.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var d = [], v = .06 * o, O = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v, l, e), U = O.pntRight, w = O.pntLeft; d.push(U), d.push(w), v = .15 * o; var L = new SuperMap.Geometry.Point(v, 0), V = SuperMap.Plot.PlottingUtil.coordinateTrans(e, L, f); d.push(V), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, d, { lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, fillLimit: !0, fill: !0 }), this.scalePoints = [], this.addScalePoint(M[0]), this.addScalePoint(M[1]), this.addScalePoint(M[2]), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), a = l[1].clone(), r = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(r, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var p = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var c = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol44100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol43500 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), o = []; for (e = 15; e <= 75; e += 5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0], l, l, e)); for (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), o = [], e = 105; e <= 165; e += 5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0], l, l, e)); for (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), o = [], e = 195; e <= 255; e += 5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0], l, l, e)); for (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), o = [], e = 285; e <= 345; e += 5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0], l, l, e)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); var i, n, a, r, s, p = .2 * l, u = new SuperMap.Geometry.Point(t[0].x - p, t[0].y), c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, t[0], u); i = c.pntRight, n = c.pntLeft, a = (c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * p, i, n)).pntLeft; var P = new SuperMap.Geometry.Point(i.x + 2 * p, i.y); r = (c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, i, P)).pntRight, s = c.pntLeft, (o = []).push(a), o.push(n), o.push(i), o.push(s), o.push(r), o.push(i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o, { fillLimit: !0, lineTypeLimit: !0, surroundLineLimit: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol43500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol42700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .04), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t, { fill: !1 }); var e, l, o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), i = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .2 * this.getSubSymbolScaleValue()), l = i * this.scaleValues[0]; var n = i * this.scaleValues[0], a = n + l; e = new SuperMap.Geometry.Point(o.x, o.y + a); var r = []; r.push(e), r.push(new SuperMap.Geometry.Point(e.x + l, e.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, r); var s = new SuperMap.Geometry.Point(o.x, o.y + .8 * n), p = new SuperMap.Geometry.Point(o.x - n, o.y - n), u = new SuperMap.Geometry.Point(o.x + n, o.y - n); (r = []).push(s), r.push(p), r.push(u), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, r, { fillLimit: !0, fill: !0 }); var c = new SuperMap.Geometry.Point(o.x - .5 * n, o.y - n), P = new SuperMap.Geometry.Point(p.x, p.y - 2 * l), S = new SuperMap.Geometry.Point(o.x + .5 * n, o.y - n), h = new SuperMap.Geometry.Point(u.x, u.y - 2 * l); (r = []).push(c), r.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), (r = []).push(S), r.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol42700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol42500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.285714), l.scaleValues.push(.285714), l.scaleValues.push(.5), l.scaleValues.push(.333333), l.scaleValues.push(.333333)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.285714), this.scaleValues.push(.285714), this.scaleValues.push(.5), this.scaleValues.push(.333333)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), a = new SuperMap.Geometry.Point(0, o * i), r = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * r), u = new SuperMap.Geometry.Point(o * (1 - s), o * r), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, g = []; g.push(a), g.push(u), g.push(h), g.push(y), g.push(S), g.push(p), g.push(n); for (var M = [], b = 0; b < g.length; b++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[b], f); M.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var d, v, O, U = !0; e.x > l.x && (U = !1); var w, L = (O = .1 * o) + (v = .12 * o / 2); d = 1 == U ? (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, l, e)).pntRight : (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, l, e)).pntLeft; var V, _, T, A, E, x, Y, j, C = []; C.push(d), C.push(new SuperMap.Geometry.Point(d.x + v, d.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, C), 1 == U ? (V = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85 * O, l, e)).pntRight, A = w.pntLeft, _ = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, V, A)).pntRight, T = w.pntLeft) : (V = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85 * O, l, e)).pntLeft, A = w.pntRight, _ = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, V, A)).pntLeft, T = w.pntRight), (C = []).push(V), C.push(_), C.push(T), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, C, { fillLimit: !0, fill: !0 }), w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * v, _, T), j = 1 == U ? w.pntRight : w.pntLeft, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * v, T, _), x = 1 == U ? w.pntLeft : w.pntRight; var I = SuperMap.Plot.PlottingUtil.intersectLines(V, x, T, _); I.isIntersectLines && (E = I.intersectPoint, (I = SuperMap.Plot.PlottingUtil.intersectLines(V, j, T, _)).isIntersectLines && (Y = I.intersectPoint, (C = []).push(E), C.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C), (C = []).push(Y), C.push(j), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C), this.scalePoints = [], this.addScalePoint(M[0]), this.addScalePoint(M[1]), this.addScalePoint(M[2]), this.finish())) } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), a = l[1].clone(), r = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(r, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var p = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var c = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol42500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol42400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = .5 * i } var n = l * this.scaleValues[0], a = l * this.scaleValues[2], r = l * this.scaleValues[3], s = []; s.push(new SuperMap.Geometry.Point(o.x + a, o.y + r)), s.push(new SuperMap.Geometry.Point(o.x + a + n, o.y + r)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, s, { fill: !1 }), this.scalePoints = [], this.addScalePoint(new SuperMap.Geometry.Point(o.x + a + n, o.y + r)), this.addScalePoint(new SuperMap.Geometry.Point(o.x + a, o.y + r)), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = []; if (o = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol42400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol42200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e, { fillLimit: !0, fill: !1, surroundLineFlag: !1 }); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .2 || i <= 0) && (i = .2), this.scaleValues[0] = i } var n = this.scaleValues[0], a = this.scaleValues[2], r = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * a, l.y + o * r); if (this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0) { if (this.subSymbols[0].symbolData) for (var u in this.subSymbols[0].symbolData.innerCells) this.subSymbols[0].symbolData.innerCells[u].type === SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL && (this.subSymbols[0].symbolData.innerCells[u].type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL); this.computeSubSymbol(this.subSymbols[0], p, s, 0) } this.addScalePoint(p); var c = s, P = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, 90); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), r = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - a.x) / r, this.scaleValues[2] = i, n = (e.y - a.y) / r, this.scaleValues[3] = n; else if (1 === t) { i = this.scaleValues[2], n = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(a.x + r * i, a.y + r * n), p = SuperMap.Plot.PlottingUtil.distance(s, e) / r; this.scaleValues[0] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol42200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = -.25, l.scaleValues[1] = .1, l.scaleValues[2] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues[0] = -.25, this.scaleValues[1] = .1, this.scaleValues[2] = .05); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (0 != e) { var l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); if (!this.isEdit) { var o = this.getSubSymbolScaleValue() * l; this.scaleValues[2] = .35 * o / e } var i = this.scaleValues[0], n = this.scaleValues[1], a = this.scaleValues[2]; 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), s = new SuperMap.Geometry.Point(r.x + i * e, r.y + n * e), p = a * e, u = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 270), c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 30), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 150), S = []; S.push(u), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { fill: !1, lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(s); var h = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90); this.addScalePoint(h), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == o) return; var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), r = e; if (0 == t) i = (r.x - a.x) / o, this.scaleValues[0] = i, n = (r.y - a.y) / o, this.scaleValues[1] = n; else if (1 == t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(a.x + i * o, a.y + n * o), p = SuperMap.Plot.PlottingUtil.distance(r, s) / o; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol41202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = -.25, l.scaleValues[1] = .1, l.scaleValues[2] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues[0] = -.25, this.scaleValues[1] = .1, this.scaleValues[2] = .05); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (0 !== e) { var l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); if (!this.isEdit) { var o = this.getSubSymbolScaleValue() * l; this.scaleValues[2] = .35 * o / e } var i = this.scaleValues[0], n = this.scaleValues[1], a = this.scaleValues[2]; 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), s = new SuperMap.Geometry.Point(r.x + i * e, r.y + n * e), p = a * e, u = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90), c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 210), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 330), S = []; S.push(u), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { fill: !1, lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(s); var h = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90); this.addScalePoint(h), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == o) return; var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), r = e; if (0 == t) i = (r.x - a.x) / o, this.scaleValues[0] = i, n = (r.y - a.y) / o, this.scaleValues[1] = n; else if (1 == t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(a.x + i * o, a.y + n * o), p = SuperMap.Plot.PlottingUtil.distance(r, s) / o; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol41201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = -.25, l.scaleValues[1] = .1, l.scaleValues[2] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues[0] = -.25, this.scaleValues[1] = .1, this.scaleValues[2] = .05); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); if (!this.isEdit) { var o = this.getSubSymbolScaleValue() * l; this.scaleValues[2] = .35 * o / e } var i = this.scaleValues[0], n = this.scaleValues[1], a = this.scaleValues[2]; 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), s = new SuperMap.Geometry.Point(r.x + i * e, r.y + n * e), p = a * e, u = new SuperMap.Geometry.Point(s.x, s.y), c = new SuperMap.Geometry.Point(s.x - p, s.y - p), P = new SuperMap.Geometry.Point(s.x + p, s.y - p), S = new SuperMap.Geometry.Point(s.x - p, s.y + p), h = new SuperMap.Geometry.Point(s.x + p, s.y + p), y = []; y.push(u), y.push(c), y.push(P), y.push(u), y.push(S), y.push(h), y.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y, { lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(s); var f = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90); this.addScalePoint(f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == o) return; var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), r = e; if (0 == t) i = (r.x - a.x) / o, this.scaleValues[0] = i, n = (r.y - a.y) / o, this.scaleValues[1] = n; else if (1 == t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(a.x + i * o, a.y + n * o), p = SuperMap.Plot.PlottingUtil.distance(r, s) / o; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol41200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41100 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.1 * e, t[0], t[1]), o = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.2 * e, t[0], t[1]), i = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2), n = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.8 * e, t[0], t[1]), a = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.9 * e, t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], l]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [o, n]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [a, t[1]]); var r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04 * e, t[0], t[1]), s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04 * e, t[1], t[0]), p = r.pntLeft, u = s.pntRight; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], u]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[1], p]); var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.42 * e, t[1], i), P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.48 * e, t[1], i), S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.6 * e, t[1], i), h = c.pntRight, y = P.pntRight, f = S.pntRight; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i, h]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [y, f]); var g = SuperMap.Plot.PlottingUtil.polylineDistance([y, f]), M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3 * g, y, f).pntRight; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [f, M]), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol41100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40900 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues = []), this.scalePoints = []; var e = [], l = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (t.length < 3) e.push(t[0]), e.push(t[1]); else { var o = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = o.scaleValues; for (var i = 0; i < o.scalePoints.length; i++)this.addScalePoint(o.scalePoints[i]); e = o.beizerPoints } SuperMap.Plot.PlottingUtil.clearSamePts(e); var n = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.isEdit || (this.scaleValues.push(.5), this.scaleValues.push(this.getSubSymbolScaleValue())), !(e.length <= 0)) { var a; a = 2 == t.length ? 0 : t.length - 1; var r = n * this.scaleValues[4 * a], s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r, e); if (s.bfind) { var p = s.index, u = s.pts, c = l * this.scaleValues[4 * a + 1], P = r - c, S = r + c; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e)).bfind) { var h, y = s.pts, f = []; if (0 == (p = s.index)) f.push(e[0]); else for (h = 0; h < p; h++)f.push(e[h]); if (f.push(y), (s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e)).bfind) { var g = s.pts; p = s.index; var M = []; for (M.push(g), h = p + 1; h < e.length; h++)M.push(e[h]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [u, g]); var b = l * this.scaleValues[4 * a + 1] / 1.667; if (!(f.length < 2)) { var m = f[0], d = f[1], v = SuperMap.Plot.PlottingUtil.radian(m, d) * SuperMap.Plot.PlottingUtil.RTOD, O = SuperMap.Plot.PlottingUtil.circlePoint(m, b, b, v + 90), U = SuperMap.Plot.PlottingUtil.circlePoint(m, b, b, v + 270), w = []; if (w.push(O), w.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w), !(M.length < 2)) { var L = M[M.length - 1], V = M[M.length - 2], _ = SuperMap.Plot.PlottingUtil.radian(L, V) * SuperMap.Plot.PlottingUtil.RTOD, T = SuperMap.Plot.PlottingUtil.circlePoint(L, b, b, _ + 90), A = SuperMap.Plot.PlottingUtil.circlePoint(L, b, b, _ + 270); (w = []).push(T), w.push(A), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w), this.addScalePoint(u), this.addScalePoint(O), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) return; if (2 * (l.length - 1) == t || 2 == l.length && 0 == t) { var a, r = e, s = []; for (a = 0; a < o.length; a++)s.push(o[a]); var p, u = -1, c = 0; for (a = 0; a < s.length - 1; a++) { var P = []; P.push(s[a]), P.push(s[a + 1]); var S = SuperMap.Plot.PlottingUtil.projectPoint(r, s[a], s[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S, P).isOnPolyLine) { var h = SuperMap.Plot.PlottingUtil.distance(r, S); -1 == u ? (u = a, p = S, c = h) : c > h && (u = a, p = S, c = h) } } if (-1 == u || u > s.length - 1) return; var y = 0; for (a = 0; a < u; a++) { var f = o[a], g = o[a + 1]; y += SuperMap.Plot.PlottingUtil.distance(f, g) } var M = o[u]; if ((y += SuperMap.Plot.PlottingUtil.distance(M, p)) < 0 || y > n) return; var b = y / n; if (b > .8 || b < .2) return; 2 == l.length ? this.scaleValues[0] = b : this.scaleValues[2 * t] = b } else if (2 * l.length - 1 == t || 2 == l.length && 1 == t) { var m = 1.667 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / i; 2 == l.length ? this.scaleValues[1] = m : this.scaleValues[2 * t - 1] = m } else { var d = -1; d = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var v = (e.x - l[d].x) / i, O = (e.y - l[d].y) / i; this.scaleValues[2 * t] = v, this.scaleValues[2 * t + 1] = O } } } }]), e }(); SuperMap.Plot.AlgoSymbol40900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = .2 * i } var n = l * this.scaleValues[0], a = l * this.scaleValues[2], r = l * this.scaleValues[3], s = new SuperMap.Geometry.Point(o.x + a, o.y + r), p = []; p.push(s), p.push(new SuperMap.Geometry.Point(s.x + n, s.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, p, { fillLimit: !0, fill: !0, lineTypeLimit: !0, surroundLineLimit: !0 }); for (var u = 18 * n, c = new SuperMap.Geometry.Point(s.x + u, s.y), P = [], S = 135; S < 180; S += 3)P.push(SuperMap.Plot.PlottingUtil.circlePoint(c, u, u, S)); P.push(SuperMap.Plot.PlottingUtil.circlePoint(c, u, u, 180)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = []; var h = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, 0); this.addScalePoint(h), this.addScalePoint(s), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = []; if (o = 3 >= (l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol40101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = .4 * i } var n = l * this.scaleValues[0], a = l * this.scaleValues[2], r = l * this.scaleValues[3], s = new SuperMap.Geometry.Point(o.x + a, o.y + r), p = .6 * n, u = new SuperMap.Geometry.Point(s.x + n, s.y), c = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 0), P = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 180), S = []; S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0 }); var h = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 90), y = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 270); (S = []).push(h), S.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0 }); var f = new SuperMap.Geometry.Point(s.x - n, s.y), g = SuperMap.Plot.PlottingUtil.circlePoint(f, .5 * n, .5 * n, 270), M = SuperMap.Plot.PlottingUtil.circlePoint(f, n, n, 240), b = SuperMap.Plot.PlottingUtil.circlePoint(f, n, n, 90), m = SuperMap.Plot.PlottingUtil.circlePoint(f, n, n, 300); (S = []).push(g), S.push(M), S.push(b), S.push(m), S.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0 }), this.scalePoints = []; var d = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, 0); this.addScalePoint(d), this.addScalePoint(s), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = []; if (o = 3 >= (l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol40100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40000 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues = []), this.scalePoints = []; var e = []; if (t.length < 3) e.push(t[0]), e.push(t[1]); else { var l = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = l.scaleValues; for (var o = 0; o < l.scalePoints.length; o++)this.addScalePoint(l.scalePoints[o]); e = l.beizerPoints } if (SuperMap.Plot.PlottingUtil.clearSamePts(e), !(e.length <= 0)) { this.isEdit || (this.scaleValues.push(.5), this.scaleValues.push(.5 * this.getSubSymbolScaleValue())); var i = 0; t.length > 2 && (i = t.length - 1); var n = SuperMap.Plot.PlottingUtil.polylineDistance(t), a = SuperMap.Plot.PlottingUtil.polylineDistance(e) * this.scaleValues[4 * i], r = n * this.scaleValues[4 * i + 1] / 1.667, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = 3.6 * r, P = a - c, S = a + c; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e)).bfind) { var h, y = s.pts, f = []; if (0 == (p = s.index)) f.push(e[0]); else for (h = 0; h < p; h++)f.push(e[h]); if (f.push(y), (s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e)).bfind) { var g = s.pts; p = s.index; var M = []; for (M.push(g), h = p + 1; h < e.length; h++)M.push(e[h]); var b = { lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1 }; if (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f, b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M, b), !(f.length < 2)) { var m = f[0], d = f[1], v = SuperMap.Plot.PlottingUtil.radian(m, d) * SuperMap.Plot.PlottingUtil.RTOD, O = SuperMap.Plot.PlottingUtil.circlePoint(m, r, r, v + 90), U = SuperMap.Plot.PlottingUtil.circlePoint(m, r, r, v + 270), w = []; if (w.push(O), w.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w, b), !(M.length < 2)) { var L = M[M.length - 1], V = M[M.length - 2], _ = SuperMap.Plot.PlottingUtil.radian(L, V) * SuperMap.Plot.PlottingUtil.RTOD, T = SuperMap.Plot.PlottingUtil.circlePoint(L, r, r, _ + 90), A = SuperMap.Plot.PlottingUtil.circlePoint(L, r, r, _ + 270); (w = []).push(T), w.push(A), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w, b); var E = SuperMap.Plot.PlottingUtil.radian(y, g) * SuperMap.Plot.PlottingUtil.RTOD, x = .8 * SuperMap.Plot.PlottingUtil.distance(y, g), Y = new SuperMap.Geometry.Point((y.x + g.x) / 2, (y.y + g.y) / 2); if (this.subSymbols.length > 0) { var j = this.computeSubSymbol(this.subSymbols[0], Y, x, E); if (null != j) for (var C = 0; C < j.length; C++)j[C].style.lineColorLimit = !0, j[C].style.strokeColor = "#0000ff", j[C].style.color = "#0000ff" } var I = SuperMap.Plot.PlottingUtil.findPointInLine(y, g, .4 * x), G = SuperMap.Plot.PlottingUtil.circlePoint(I, .75 * x, .75 * x, E + 135), B = SuperMap.Plot.PlottingUtil.circlePoint(I, .75 * x, .75 * x, E + 315), R = SuperMap.Plot.PlottingUtil.distance(G, B); (w = []).push(G), w.push(B), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w); var N = SuperMap.Plot.PlottingUtil.findPointInLine(G, B, 1.2 * R), D = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.08 * R, G, B); (w = []).push(N), w.push(D.pntLeft), w.push(D.pntRight), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, w, { fillLimit: !0, fill: !0 }), this.addScalePoint(u), this.addScalePoint(O), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) return; if (2 * (l.length - 1) == t || 2 == l.length && 0 == t) { var a, r = e, s = []; for (a = 0; a < o.length; a++)s.push(o[a]); var p, u = -1, c = 0; for (a = 0; a < s.length - 1; a++) { var P = []; P.push(s[a]), P.push(s[a + 1]); var S = SuperMap.Plot.PlottingUtil.projectPoint(r, s[a], s[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S, P).isOnPolyLine) { var h = SuperMap.Plot.PlottingUtil.distance(r, S); -1 == u ? (u = a, p = S, c = h) : c > h && (u = a, p = S, c = h) } } if (-1 == u || u > s.length - 1) return; var y = 0; for (a = 0; a < u; a++) { var f = o[a], g = o[a + 1]; y += SuperMap.Plot.PlottingUtil.distance(f, g) } var M = o[u]; if ((y += SuperMap.Plot.PlottingUtil.distance(M, p)) < 0 || y > n) return; var b = y / n; if (b > .8 || b < .2) return; 2 == l.length ? this.scaleValues[0] = b : this.scaleValues[2 * t] = b } else if (2 * l.length - 1 == t || 2 == l.length && 1 == t) { var m = 1.667 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / i; 2 == l.length ? this.scaleValues[1] = m : this.scaleValues[2 * t - 1] = m } else { var d = -1; d = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var v = (e.x - l[d].x) / i, O = (e.y - l[d].y) / i; this.scaleValues[2 * t] = v, this.scaleValues[2 * t + 1] = O } } } }]), e }(); SuperMap.Plot.AlgoSymbol40000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol39802 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues = []), this.scalePoints = []; var e = []; if (t.length < 3) e.push(t[0]), e.push(t[1]); else { var l = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = l.scaleValues; for (var o = 0; o < l.scalePoints.length; o++)this.addScalePoint(l.scalePoints[o]); e = l.beizerPoints } if (SuperMap.Plot.PlottingUtil.clearSamePts(e), !(e.length <= 0)) { this.isEdit || (this.scaleValues.push(.5), this.scaleValues.push(.5 * this.getSubSymbolScaleValue())); var i = 0; t.length > 2 && (i = t.length - 1); var n = SuperMap.Plot.PlottingUtil.polylineDistance(t), a = SuperMap.Plot.PlottingUtil.polylineDistance(e) * this.scaleValues[4 * i], r = n * this.scaleValues[4 * i + 1] / 1.667, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = 3 * r, P = a - c, S = a + c; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e)).bfind) { var h, y = s.pts, f = []; if (0 == (p = s.index)) f.push(e[0]); else for (h = 0; h < p; h++)f.push(e[h]); if (f.push(y), (s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e)).bfind) { var g = s.pts; p = s.index; var M = []; for (M.push(g), h = p + 1; h < e.length; h++)M.push(e[h]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = SuperMap.Plot.PlottingUtil.radian(y, g) * SuperMap.Plot.PlottingUtil.RTOD, m = SuperMap.Plot.PlottingUtil.distance(y, g), d = new SuperMap.Geometry.Point((y.x + g.x) / 2, (y.y + g.y) / 2); if (this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], d, m, b), !(f.length < 2)) { var v = f[0], O = f[1], U = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD, w = SuperMap.Plot.PlottingUtil.circlePoint(v, r, r, U + 90), L = SuperMap.Plot.PlottingUtil.circlePoint(v, r, r, U + 270), V = []; if (V.push(w), V.push(L), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V), !(M.length < 2)) { var _ = M[M.length - 1], T = M[M.length - 2], A = SuperMap.Plot.PlottingUtil.radian(_, T) * SuperMap.Plot.PlottingUtil.RTOD, E = SuperMap.Plot.PlottingUtil.circlePoint(_, r, r, A + 90), x = SuperMap.Plot.PlottingUtil.circlePoint(_, r, r, A + 270); (V = []).push(E), V.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V); var Y = SuperMap.Plot.PlottingUtil.paraLine(e, r, !1), j = SuperMap.Plot.PlottingUtil.polylineDistance(Y) / 11, C = j; for (h = 0; h < 11; h++)if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C - j, Y)).bfind) { var I = s.index, G = s.pts; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C, Y)).bfind) { var B = s.pts, R = s.index; if (h % 2 == 0) { var N = []; N.push(G); for (var D = I + 1; D <= R; D++)N.push(Y[D]); N.push(B), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, N, { surroundLineLimit: !0, lineColorLimit: !0, strokeColor: "#000000", strokeOpacity: 1, color: "#000000", opacity: 1 }) } C += j } } var k; k = SuperMap.Plot.PlottingUtil.paraLine(e, 3.5 * r, !1), SuperMap.Plot.PlottingUtil.clearSamePts(k), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, k); var z; z = SuperMap.Plot.PlottingUtil.paraLine(e, 3.5 * r, !0), SuperMap.Plot.PlottingUtil.clearSamePts(z), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, z), this.addScalePoint(u), this.addScalePoint(w), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) return; if (2 * (l.length - 1) == t || 2 == l.length && 0 == t) { var a, r = e, s = []; for (a = 0; a < o.length; a++)s.push(o[a]); var p, u = -1, c = 0; for (a = 0; a < s.length - 1; a++) { var P = []; P.push(s[a]), P.push(s[a + 1]); var S = SuperMap.Plot.PlottingUtil.projectPoint(r, s[a], s[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S, P).isOnPolyLine) { var h = SuperMap.Plot.PlottingUtil.distance(r, S); -1 == u ? (u = a, p = S, c = h) : c > h && (u = a, p = S, c = h) } } if (-1 == u || u > s.length - 1) return; var y = 0; for (a = 0; a < u; a++) { var f = o[a], g = o[a + 1]; y += SuperMap.Plot.PlottingUtil.distance(f, g) } var M = o[u]; if ((y += SuperMap.Plot.PlottingUtil.distance(M, p)) < 0 || y > n) return; var b = y / n; if (b > .8 || b < .2) return; 2 == l.length ? this.scaleValues[0] = b : this.scaleValues[2 * t] = b } else if (2 * l.length - 1 == t || 2 == l.length && 1 == t) { var m = 1.667 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / i; 2 == l.length ? this.scaleValues[1] = m : this.scaleValues[2 * t - 1] = m } else { var d = -1; d = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var v = (e.x - l[d].x) / i, O = (e.y - l[d].y) / i; this.scaleValues[2 * t] = v, this.scaleValues[2 * t + 1] = O } } } }]), e }(); SuperMap.Plot.AlgoSymbol39802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol39801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues = []), this.scalePoints = []; var e = []; if (t.length < 3) e.push(t[0]), e.push(t[1]); else { var l = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = l.scaleValues; for (var o = 0; o < l.scalePoints.length; o++)this.addScalePoint(l.scalePoints[o]); e = l.beizerPoints } if (SuperMap.Plot.PlottingUtil.clearSamePts(e), !(e.length <= 0)) { this.isEdit || (this.scaleValues.push(.5), this.scaleValues.push(.5 * this.getSubSymbolScaleValue())); var i = 0; t.length > 2 && (i = t.length - 1); var n = SuperMap.Plot.PlottingUtil.polylineDistance(t), a = SuperMap.Plot.PlottingUtil.polylineDistance(e) * this.scaleValues[4 * i], r = n * this.scaleValues[4 * i + 1] / 1.667, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = 3 * r, P = a - c, S = a + c; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e)).bfind) { var h, y = s.pts, f = []; if (0 == (p = s.index)) f.push(e[0]); else for (h = 0; h < p; h++)f.push(e[h]); if (f.push(y), (s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e)).bfind) { var g = s.pts; p = s.index; var M = []; for (M.push(g), h = p + 1; h < e.length; h++)M.push(e[h]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = SuperMap.Plot.PlottingUtil.radian(y, g) * SuperMap.Plot.PlottingUtil.RTOD, m = SuperMap.Plot.PlottingUtil.distance(y, g), d = new SuperMap.Geometry.Point((y.x + g.x) / 2, (y.y + g.y) / 2); if (this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], d, m, b), !(f.length < 2)) { var v = f[0], O = f[1], U = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD, w = SuperMap.Plot.PlottingUtil.circlePoint(v, r, r, U + 90), L = SuperMap.Plot.PlottingUtil.circlePoint(v, r, r, U + 270), V = []; if (V.push(w), V.push(L), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V), !(M.length < 2)) { var _ = M[M.length - 1], T = M[M.length - 2], A = SuperMap.Plot.PlottingUtil.radian(_, T) * SuperMap.Plot.PlottingUtil.RTOD, E = SuperMap.Plot.PlottingUtil.circlePoint(_, r, r, A + 90), x = SuperMap.Plot.PlottingUtil.circlePoint(_, r, r, A + 270); (V = []).push(E), V.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V), this.addScalePoint(u), this.addScalePoint(w), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) return; if (2 * (l.length - 1) == t || 2 == l.length && 0 == t) { var a, r = e, s = []; for (a = 0; a < o.length; a++)s.push(o[a]); var p, u = -1, c = 0; for (a = 0; a < s.length - 1; a++) { var P = []; P.push(s[a]), P.push(s[a + 1]); var S = SuperMap.Plot.PlottingUtil.projectPoint(r, s[a], s[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S, P).isOnPolyLine) { var h = SuperMap.Plot.PlottingUtil.distance(r, S); -1 == u ? (u = a, p = S, c = h) : c > h && (u = a, p = S, c = h) } } if (-1 == u || u > s.length - 1) return; var y = 0; for (a = 0; a < u; a++) { var f = o[a], g = o[a + 1]; y += SuperMap.Plot.PlottingUtil.distance(f, g) } var M = o[u]; if ((y += SuperMap.Plot.PlottingUtil.distance(M, p)) < 0 || y > n) return; var b = y / n; if (b > .8 || b < .2) return; 2 == l.length ? this.scaleValues[0] = b : this.scaleValues[2 * t] = b } else if (2 * l.length - 1 == t || 2 == l.length && 1 == t) { var m = 1.667 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / i; 2 == l.length ? this.scaleValues[1] = m : this.scaleValues[2 * t - 1] = m } else { var d = -1; d = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var v = (e.x - l[d].x) / i, O = (e.y - l[d].y) / i; this.scaleValues[2 * t] = v, this.scaleValues[2 * t + 1] = O } } } }]), e }(); SuperMap.Plot.AlgoSymbol39801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol39800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues = []), this.scalePoints = []; var e = []; if (t.length < 3) e.push(t[0]), e.push(t[1]); else { var l = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = l.scaleValues; for (var o = 0; o < l.scalePoints.length; o++)this.addScalePoint(l.scalePoints[o]); e = l.beizerPoints } if (SuperMap.Plot.PlottingUtil.clearSamePts(e), !(e.length <= 0)) { this.isEdit || (this.scaleValues.push(.5), this.scaleValues.push(.5 * this.getSubSymbolScaleValue())); var i = 0; t.length > 2 && (i = t.length - 1); var n = SuperMap.Plot.PlottingUtil.polylineDistance(t), a = SuperMap.Plot.PlottingUtil.polylineDistance(e) * this.scaleValues[4 * i], r = n * this.scaleValues[4 * i + 1] / 1.667, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = 3.6 * r, P = a - c, S = a + c; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e)).bfind) { var h, y = s.pts, f = []; if (0 == (p = s.index)) f.push(e[0]); else for (h = 0; h < p; h++)f.push(e[h]); if (f.push(y), (s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e)).bfind) { var g = s.pts; p = s.index; var M = []; for (M.push(g), h = p + 1; h < e.length; h++)M.push(e[h]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = SuperMap.Plot.PlottingUtil.radian(y, g) * SuperMap.Plot.PlottingUtil.RTOD, m = SuperMap.Plot.PlottingUtil.distance(y, g), d = new SuperMap.Geometry.Point((y.x + g.x) / 2, (y.y + g.y) / 2); if (this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], d, .8 * m, b), !(f.length < 2)) { var v = f[0], O = f[1], U = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD, w = SuperMap.Plot.PlottingUtil.circlePoint(v, r, r, U + 90), L = SuperMap.Plot.PlottingUtil.circlePoint(v, r, r, U + 270), V = []; if (V.push(w), V.push(L), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V), !(M.length < 2)) { var _ = M[M.length - 1], T = M[M.length - 2], A = SuperMap.Plot.PlottingUtil.radian(_, T) * SuperMap.Plot.PlottingUtil.RTOD, E = SuperMap.Plot.PlottingUtil.circlePoint(_, r, r, A + 90), x = SuperMap.Plot.PlottingUtil.circlePoint(_, r, r, A + 270); (V = []).push(E), V.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V); var Y = SuperMap.Plot.PlottingUtil.paraLine(e, r, !1), j = SuperMap.Plot.PlottingUtil.polylineDistance(Y) / 11, C = j; for (h = 0; h < 11; h++)if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C - j, Y)).bfind) { var I = s.index, G = s.pts; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C, Y)).bfind) { var B = s.pts, R = s.index; if (h % 2 == 0) { var N = []; N.push(G); for (var D = I + 1; D <= R; D++)N.push(Y[D]); N.push(B), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, N, { surroundLineLimit: !0, lineColorLimit: !0, strokeColor: "#000000", strokeOpacity: 1, color: "#000000", opacity: 1 }) } C += j } } this.addScalePoint(u), this.addScalePoint(w), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) return; if (2 * (l.length - 1) == t || 2 == l.length && 0 == t) { var a, r = e, s = []; for (a = 0; a < o.length; a++)s.push(o[a]); var p, u = -1, c = 0; for (a = 0; a < s.length - 1; a++) { var P = []; P.push(s[a]), P.push(s[a + 1]); var S = SuperMap.Plot.PlottingUtil.projectPoint(r, s[a], s[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S, P).isOnPolyLine) { var h = SuperMap.Plot.PlottingUtil.distance(r, S); -1 == u ? (u = a, p = S, c = h) : c > h && (u = a, p = S, c = h) } } if (-1 == u || u > s.length - 1) return; var y = 0; for (a = 0; a < u; a++) { var f = o[a], g = o[a + 1]; y += SuperMap.Plot.PlottingUtil.distance(f, g) } var M = o[u]; if ((y += SuperMap.Plot.PlottingUtil.distance(M, p)) < 0 || y > n) return; var b = y / n; if (b > .8 || b < .2) return; 2 == l.length ? this.scaleValues[0] = b : this.scaleValues[2 * t] = b } else if (2 * l.length - 1 == t || 2 == l.length && 1 == t) { var m = 1.667 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / i; 2 == l.length ? this.scaleValues[1] = m : this.scaleValues[2 * t - 1] = m } else { var d = -1; d = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var v = (e.x - l[d].x) / i, O = (e.y - l[d].y) / i; this.scaleValues[2 * t] = v, this.scaleValues[2 * t + 1] = O } } } }]), e }(); SuperMap.Plot.AlgoSymbol39800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol39600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .03, l.scaleValues[1] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol38600), e }(); SuperMap.Plot.AlgoSymbol39600 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol39500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.285714), l.scaleValues.push(.08), l.scaleValues.push(.181818), l.scaleValues.push(.285714), l.scaleValues.push(.285714)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.285714), this.scaleValues.push(.08), this.scaleValues.push(.181818), this.scaleValues.push(.285714), this.scaleValues.push(.285714)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), a = new SuperMap.Geometry.Point(0, o * i), r = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * r), u = new SuperMap.Geometry.Point(o * (1 - s), o * r), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, g = []; g.push(n), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(a); for (var M = [], b = 0; b < g.length; b++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[b], f); M.push(m) } for (var d = [], v = M.length - 1; v >= 0; --v)d.push(M[v]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var O = t[0], U = t[0], w = t[1], L = SuperMap.Plot.PlottingUtil.radian(U, w) * SuperMap.Plot.PlottingUtil.RTOD + 270, V = .2 * o; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], O, V, L), this.scalePoints = [], this.addScalePoint(M[0]), this.addScalePoint(M[1]), this.addScalePoint(M[2]), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), a = l[1].clone(), r = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(r, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var p = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var c = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol39500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol39101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .1 || i <= 0) && (i = .1), this.scaleValues[0] = i } var n = l * this.scaleValues[2], a = l * this.scaleValues[3], r = new SuperMap.Geometry.Point(o.x + n, o.y + a), s = l * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], r, s, 0), this.scalePoints = []; var p = SuperMap.Plot.PlottingUtil.circlePoint(r, s, s, 180); this.addScalePoint(p), this.addScalePoint(r), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = []; if (o = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol39101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol39000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(.08), l.scaleValues.push(.05), l.scaleValues.push(-.08), l.scaleValues.push(-.08), l.scaleValues.push(.05), l.scaleValues.push(.08), l.scaleValues.push(-.08)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(.08), this.scaleValues.push(.05), this.scaleValues.push(-.08), this.scaleValues.push(-.08), this.scaleValues.push(.05), this.scaleValues.push(.08), this.scaleValues.push(-.08)); var e = this.scaleValues[1], l = this.scaleValues[2], o = this.scaleValues[4], i = this.scaleValues[5], n = this.scaleValues[7], a = this.scaleValues[8], r = []; if (r = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), r = SuperMap.Plot.PlottingUtil.clearSamePts(r), !(this.minEditPts > r.length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, r); var s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), p = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var u = this.getSubSymbolScaleValue() * p; this.scaleValues[0] = u / p, this.scaleValues[3] = u / p, this.scaleValues[6] = u / p } var c = new SuperMap.Geometry.Point(s.x + p * e, s.y + p * l), P = new SuperMap.Geometry.Point(s.x + p * o, s.y + p * i), S = new SuperMap.Geometry.Point(s.x + p * n, s.y + p * a), h = p * this.scaleValues[0], y = p * this.scaleValues[3], f = p * this.scaleValues[6]; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], c, 1.5 * h, 0), this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], P, 1.5 * y, 0), this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[2], S, 1.5 * f, 0), this.addScalePoint(c); var g = SuperMap.Plot.PlottingUtil.circlePoint(c, h, h, 180); this.addScalePoint(g), this.addScalePoint(P); var M = SuperMap.Plot.PlottingUtil.circlePoint(P, y, y, 180); this.addScalePoint(M), this.addScalePoint(S); var b = SuperMap.Plot.PlottingUtil.circlePoint(S, f, f, 180); this.addScalePoint(b), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; 0 === this.scaleValues.length && (this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(.08), this.scaleValues.push(.05), this.scaleValues.push(-.08), this.scaleValues.push(-.08), this.scaleValues.push(.05), this.scaleValues.push(.08), this.scaleValues.push(-.08)); var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = this.scaleValues[3], r = this.scaleValues[4], s = this.scaleValues[5], p = this.scaleValues[6], u = this.scaleValues[7], c = this.scaleValues[8], P = []; if (P = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), P = SuperMap.Plot.PlottingUtil.clearSamePts(P), this.minEditPts > P.length) return; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, P); var S = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), h = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - S.x) / h, this.scaleValues[1] = i, n = (e.y - S.y) / h, this.scaleValues[2] = n; else if (1 === t) { i = this.scaleValues[1], n = this.scaleValues[2]; var y = new SuperMap.Geometry.Point(S.x + h * i, S.y + h * n); o = SuperMap.Plot.PlottingUtil.distance(y, e) / h, this.scaleValues[0] = o } if (2 === t) r = (e.x - S.x) / h, this.scaleValues[4] = r, s = (e.y - S.y) / h, this.scaleValues[5] = s; else if (3 === t) { r = this.scaleValues[4], s = this.scaleValues[5]; var f = new SuperMap.Geometry.Point(S.x + h * r, S.y + h * s); a = SuperMap.Plot.PlottingUtil.distance(f, e) / h, this.scaleValues[3] = a } if (4 === t) u = (e.x - S.x) / h, this.scaleValues[7] = u, c = (e.y - S.y) / h, this.scaleValues[8] = c; else if (5 === t) { u = this.scaleValues[7], c = this.scaleValues[8]; var g = new SuperMap.Geometry.Point(S.x + h * u, S.y + h * c); p = SuperMap.Plot.PlottingUtil.distance(g, e) / h, this.scaleValues[6] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol39000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol38700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = Math.PI / 4, l.scaleValues[1] = Math.PI / 4, l.scaleValues[2] = .3, l.scaleValues[3] = .1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 4 && (this.scaleValues = [], this.scaleValues[0] = Math.PI / 4, this.scaleValues[1] = Math.PI / 4, this.scaleValues[2] = .3, this.scaleValues[3] = .1); var e = t[0], l = t[1], o = SuperMap.Plot.PlottingUtil.distance(e, l), i = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD; if (!this.isEdit) { var n = this.getDefaultSubSymbolSize() / o; (n > .3 || n <= 0) && (n = .3), this.scaleValues[2] = n } var a = this.scaleValues[0], r = this.scaleValues[1], s = this.scaleValues[2], p = this.scaleValues[3], u = a * SuperMap.Plot.PlottingUtil.RTOD, c = i - u, P = i + u, S = this.GetArcPts(c, P, e, o); if (!(2 > S.length)) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = o * s, y = i - 90, f = o * p, g = SuperMap.Plot.PlottingUtil.linePnt(e, l, f), M = SuperMap.Plot.PlottingUtil.radian(g, l) * SuperMap.Plot.PlottingUtil.RTOD - 30, b = SuperMap.Plot.PlottingUtil.distance(g, l), m = 0, d = t[0].clone(), v = SuperMap.Plot.PlottingUtil.circlePoint(g, b, b, M), O = null; if (this.subSymbols.length > 0 && null != (O = this.computeSubSymbol(this.subSymbols[0], g, h, y, 0, -.5))) for (var U = 0; U < O.length; U++)if (!(2 > O[U].positionPoints)) for (var w = 0; w < O[U].positionPoints.length - 1; w++) { var L = O[U].positionPoints[w], V = O[U].positionPoints[w + 1], _ = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.intersectLineSegs(g, v, L, V, _) && (0 == m ? d = _ : SuperMap.Plot.PlottingUtil.distance(g, _) > SuperMap.Plot.PlottingUtil.distance(g, d) && (d = _), m++) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [d, v]); var T = SuperMap.Plot.PlottingUtil.radian(v, d) * SuperMap.Plot.PlottingUtil.RTOD, A = SuperMap.Plot.PlottingUtil.distance(d, v), E = SuperMap.Plot.PlottingUtil.circlePoint(v, .1 * A, .1 * A, T - 15), x = SuperMap.Plot.PlottingUtil.circlePoint(v, .1 * A, .1 * A, T + 15), Y = []; Y.push(v), Y.push(E), Y.push(x), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, Y, { fillLimit: !0, fill: !0 }), this.scalePoints = []; var j = SuperMap.Plot.PlottingUtil.circlePoint(e, o, o, P); this.addScalePoint(j); var C = SuperMap.Plot.PlottingUtil.linePnt(g, l, o * s); if (this.addScalePoint(C), this.addScalePoint(g), 3 == t.length) { var I = t[2], G = SuperMap.Plot.PlottingUtil.distance(e, I), B = r * SuperMap.Plot.PlottingUtil.RTOD, R = i - B, N = i + B, D = this.GetArcPts(R, N, e, G); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, D); var k = SuperMap.Plot.PlottingUtil.circlePoint(e, G, G, N); this.addScalePoint(k); var z = v, F = SuperMap.Plot.PlottingUtil.distance(e, I) - o, K = SuperMap.Plot.PlottingUtil.circlePoint(z, F, F, M); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [z, K]); var q = SuperMap.Plot.PlottingUtil.circlePoint(K, .1 * F, .1 * F, T - 15), W = SuperMap.Plot.PlottingUtil.circlePoint(K, .1 * F, .1 * F, T + 15), J = []; J.push(K), J.push(q), J.push(W), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, J, { fillLimit: !0, fill: !0 }) } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 3) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = e, i = l[0], n = l[1], a = SuperMap.Plot.PlottingUtil.distance(i, n), r = SuperMap.Plot.PlottingUtil.radian(i, n); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.radian(i, o), p = Math.abs(s - r); this.scaleValues[0] = p } else if (1 == t) { var u = a * this.scaleValues[3], c = SuperMap.Plot.PlottingUtil.linePnt(i, n, u), P = SuperMap.Plot.PlottingUtil.distance(o, c) / a; this.scaleValues[2] = P } else if (2 == t) { var S = SuperMap.Plot.PlottingUtil.distance(o, i) / a; if (S >= 1) return; this.scaleValues[3] = S } else if (3 == t) { var h = SuperMap.Plot.PlottingUtil.radian(i, o), y = Math.abs(h - r); this.scaleValues[1] = y } } } }, { key: "GetArcPts", value: function (t, e, l, o) { var i, n = [], a = 0; for (a = t; a < e; a += 4)i = SuperMap.Plot.PlottingUtil.circlePoint(l, o, o, a), n.push(i); return a != e && (i = SuperMap.Plot.PlottingUtil.circlePoint(l, o, o, e), n.push(i)), n } }]), e }(); SuperMap.Plot.AlgoSymbol38700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol38600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .04, l.scaleValues[2] = .1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .05, this.scaleValues[1] = .04), 2 === this.scaleValues.length && this.scaleValues.push(.1), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = o, this.scaleValues[2] = .5 * o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI, r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .7 * r, a - 90); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p, this.scaleValues[2]) } for (var P = [], S = 0; S < e.length; S++)P.push(e[S]); var h = l * this.scaleValues[1], y = SuperMap.Plot.PlottingUtil.paraLine(P, h, !0), f = SuperMap.Plot.PlottingUtil.paraLine(P, h, !1), g = []; for (S = 0; S < y.length; S++)g.push(y[S]); var M = []; for (S = 0; S < f.length; S++)M.push(f[S]); g = SuperMap.Plot.PlottingUtil.clearSamePts(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), M = SuperMap.Plot.PlottingUtil.clearSamePts(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), m = SuperMap.Plot.PlottingUtil.circlePoint(b.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, a + 90); this.addScalePoint(m, 0), this.addScalePoint(f[0], 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (l.length < this.minEditPts) return; if (0 === t) { var n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o); if (-1 === n.index) return; var a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } if (1 === t) { var r = SuperMap.Plot.PlottingUtil.distance(e, l[0]); this.scaleValues[1] = r / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol38600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .2 || i <= 0) && (i = .2), this.scaleValues[0] = i } var n = this.scaleValues[0], a = this.scaleValues[2], r = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * a, l.y + o * r); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, s, 0), this.addScalePoint(p); var u = s, c = SuperMap.Plot.PlottingUtil.circlePoint(p, u, u, 90); this.addScalePoint(c), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol37700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37601 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), i = l * this.scaleValues[2], n = l * this.scaleValues[3], a = new SuperMap.Geometry.Point(o.x + i, o.y + n); if (!this.isEdit) { var r = this.getDefaultSubSymbolSize() / l; (r > .3 || r <= 0) && (r = .3), this.scaleValues[0] = r } var s = l * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, s, 90), this.scalePoints = []; var p = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 180); this.addScalePoint(p), this.addScalePoint(a), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = []; if (o = 3 >= (l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol37601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .15 || i <= 0) && (i = .15), this.scaleValues[0] = i } var n = o * this.scaleValues[2], a = o * this.scaleValues[3], r = new SuperMap.Geometry.Point(l.x + n, l.y + a), s = o * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], r, s, 0), this.scalePoints = []; var p = SuperMap.Plot.PlottingUtil.circlePoint(r, s, s, 180); this.addScalePoint(p), this.addScalePoint(r), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = []; if (o = 3 >= (l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = i * this.scaleValues[2], r = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + a, n.y + r), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol37600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .125, l.scaleValues[1] = .02, l.scaleValues[2] = .25, l.scaleValues[3] = .8), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 4 && (this.scaleValues = [], this.scaleValues[0] = .125, this.scaleValues[1] = .02, this.scaleValues[2] = .25, this.scaleValues[3] = .8), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.distance(t[1], t[0]), l = SuperMap.Plot.PlottingUtil.radian(t[1], t[0]) * SuperMap.Plot.PlottingUtil.RTOD, o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = this.scaleValues[3], r = new SuperMap.Geometry.Point(o * e, i * e), s = new SuperMap.Geometry.Point(o * e, -i * e), p = SuperMap.Plot.PlottingUtil.coordinateTrans(t[1], r, l), u = SuperMap.Plot.PlottingUtil.coordinateTrans(t[1], s, l), c = []; c.push(p), c.push(u), c.push(t[1]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, c, { fillLimit: !0, fill: !0 }); var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n * e, t); if (P.bfind) { var S = .05 * e, h = P.pts, y = SuperMap.Plot.PlottingUtil.circlePoint(h, S, S, l + 90), f = SuperMap.Plot.PlottingUtil.circlePoint(h, S, S, l + 270); if ((c = []).push(y), c.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { lineTypeLimit: !0, surroundLineLimit: !0 }), (P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a * e, t)).bfind) { var g = P.pts, M = SuperMap.Plot.PlottingUtil.circlePoint(g, S, S, l + 90), b = SuperMap.Plot.PlottingUtil.circlePoint(g, S, S, l + 270); (c = []).push(M), c.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(u), this.addScalePoint(h), this.addScalePoint(g), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[1], l[0]); if (0 == t) { var i = SuperMap.Plot.PlottingUtil.projectPoint(e, l[1], l[0]), n = SuperMap.Plot.PlottingUtil.distance(i, l[1]); 90 > SuperMap.Plot.PlottingUtil.radian(l[1], i) * SuperMap.Plot.PlottingUtil.RTOD && (n = -n); var a = n / o; this.scaleValues[0] = a; var r = SuperMap.Plot.PlottingUtil.distance(e, i) / o; this.scaleValues[1] = r } else if (1 == t) { var s = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; if (.1 > s || s > .95) return; this.scaleValues[2] = s } else if (2 == t) { var p = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; if (.1 > p || p > .95) return; this.scaleValues[3] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol37301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .125, l.scaleValues[1] = .02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.distance(t[1], t[0]), l = SuperMap.Plot.PlottingUtil.radian(t[1], t[0]) * SuperMap.Plot.PlottingUtil.RTOD, o = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], .35 * e), i = SuperMap.Plot.PlottingUtil.circlePoint(o, .05 * e, .05 * e, l + 270); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [i, o], { fill: !1, fillLimit: !0, lineTypeLimit: !0, surroundLineLimit: !0 }); var n = this.scaleValues[0], a = this.scaleValues[1], r = new SuperMap.Geometry.Point(n * e, a * e), s = new SuperMap.Geometry.Point(n * e, -a * e), p = SuperMap.Plot.PlottingUtil.coordinateTrans(t[1], r, l), u = SuperMap.Plot.PlottingUtil.coordinateTrans(t[1], s, l), c = []; c.push(p), c.push(u), c.push(t[1]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, c, { fillLimit: !0, fill: !0 }), this.scalePoints = [], this.addScalePoint(u), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[1], l[0]); if (0 == t) { var i = SuperMap.Plot.PlottingUtil.projectPoint(e, l[1], l[0]), n = SuperMap.Plot.PlottingUtil.distance(i, l[1]); 90 > SuperMap.Plot.PlottingUtil.radian(l[1], i) * SuperMap.Plot.PlottingUtil.RTOD && (n = -n); var a = n / o; this.scaleValues[0] = a; var r = SuperMap.Plot.PlottingUtil.distance(e, i) / o; this.scaleValues[1] = r } } } }]), e }(); SuperMap.Plot.AlgoSymbol37300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol37200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .1, l.scaleValues[1] = .2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol27100), e }(); SuperMap.Plot.AlgoSymbol37200 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .1, l.scaleValues[1] = .2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .1, this.scaleValues[1] = .2), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var e, l, o = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), i = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, n = this.scaleValues[0], a = this.scaleValues[1], r = n * o, s = []; for (e = 90; e <= 270; e += 3)l = SuperMap.Plot.PlottingUtil.circlePoint(t[0], r, r, e + i), s.push(l); var p = []; for (e = -90; e <= 90; e += 3)l = SuperMap.Plot.PlottingUtil.circlePoint(t[1], r, r, e + i), p.push(l); var u = o * a, c = new SuperMap.Geometry.Point((s[0].x + p[p.length - 1].x) / 2, (s[0].y + p[p.length - 1].y) / 2), P = SuperMap.Plot.PlottingUtil.linePnt(s[0], p[p.length - 1], .5 * (o - 1.2 * u)), S = SuperMap.Plot.PlottingUtil.linePnt(p[p.length - 1], s[0], .5 * (o - 1.2 * u)), h = []; h.push(P), h.push.apply(h, s), h.push.apply(h, p), h.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var y = SuperMap.Plot.PlottingUtil.radian(S, P) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], c, .9 * u, y - 90), this.scalePoints = [], this.addScalePoint(s[s.length - 1]); var f = SuperMap.Plot.PlottingUtil.circlePoint(c, u, u, y + 90); this.addScalePoint(f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } else if (1 == t) { var n = this.scaleValues[0] * o, a = SuperMap.Plot.PlottingUtil.circlePoint(l[0], n, n, 90), r = SuperMap.Plot.PlottingUtil.circlePoint(l[1], n, n, 90), s = new SuperMap.Geometry.Point((a.x + r.x) / 2, (a.y + r.y) / 2), p = SuperMap.Plot.PlottingUtil.distance(s, e) / o; p >= .8 && (p = .8), this.scaleValues[1] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol37100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol36800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .05), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var l = .1 * e, o = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l, t[1], t[0]), i = o.pntRight, n = o.pntLeft, a = (o = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l, t[0], t[1])).pntRight, r = o.pntLeft, s = []; s.push(i), s.push(n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); var p = []; p.push(a), p.push(r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); var u = []; u.push(i), u.push(r); for (var c = SuperMap.Plot.PlottingUtil.polylineDistance(u) / 11, P = c, S = 0, h = 0, y = null, f = null, g = 0; g < 11; g++) { if (0 == g) S = 0, y = i.clone(); else { var M = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P - c, u); if (!M.bfind) continue; S = M.index, y = M.pts } if (10 == g) h = 0, f = r.clone(); else { if (!(M = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, u)).bfind) continue; h = M.index, f = M.pts } if (g % 2 == 0) { var b = []; b.push(y); for (var m = S + 1; m <= h; m++)b.push(u[m]); b.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, { lineColorLimit: !0, strokeColor: "#0000ff", strokeOpacity: 1, color: "#0000ff", opacity: 1, surroundLineLimit: !0 }) } P += c } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol36800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol36700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .04, l.scaleValues[1] = .1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues[0] = .05, this.scaleValues[1] = .04), 2 === this.scaleValues.length && this.scaleValues.push(.1), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = o, this.scaleValues[2] = .5 * o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI, r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .7 * r, a - 90); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addStartPtArrow(s, this.scaleValues[2]), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p, this.scaleValues[2]) } for (var P = [], S = 0; S < e.length; S++)P.push(e[S]); var h = l * this.scaleValues[1], y = SuperMap.Plot.PlottingUtil.paraLine(P, h, !0), f = SuperMap.Plot.PlottingUtil.paraLine(P, h, !1), g = []; for (S = 0; S < y.length; S++)g.push(y[S]); var M = []; for (S = 0; S < f.length; S++)M.push(f[S]); g = SuperMap.Plot.PlottingUtil.clearSamePts(g), M = SuperMap.Plot.PlottingUtil.clearSamePts(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), m = SuperMap.Plot.PlottingUtil.circlePoint(b.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, a + 90); this.addScalePoint(m, 0), this.addScalePoint(f[0], 1), this.finish() } } }, { key: "addStartPtArrow", value: function (t, e) { if (t.length < 2) return t; var l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints) * e, o = t[0]; if (t.length >= 2) { for (var i = -1, n = 0; n < t.length - 1; n++)if (l < SuperMap.Plot.PlottingUtil.distance(o, t[n])) { i = n; break } t.splice(1, i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var a = t[1], r = t[0], s = l, p = SuperMap.Plot.PlottingUtil.radian(r, a) * SuperMap.Plot.PlottingUtil.RTOD, u = SuperMap.Plot.PlottingUtil.circlePoint(r, s, s, p + 22.5), c = SuperMap.Plot.PlottingUtil.circlePoint(r, s, s, p - 22.5); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [u, t[0], c], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0) } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (l.length < this.minEditPts) return; if (0 === t) { var n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o); if (-1 === n.index) return; var a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .4 ? a : .4 } if (1 === t) { var r = SuperMap.Plot.PlottingUtil.distance(e, l[0]); this.scaleValues[1] = r / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol36700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol36600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .1, l.scaleValues[1] = .2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .1, this.scaleValues[1] = .2), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue(), this.scaleValues[1] = this.getSubSymbolScaleValue()); var e, l = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), o = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, i = this.scaleValues[0], n = this.scaleValues[1], a = i * l, r = []; for (e = 90; e <= 270; e += 3)r.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0], a, a, e + o)); for (e = -90; e <= 90; e += 3)r.push(SuperMap.Plot.PlottingUtil.circlePoint(t[1], a, a, e + o)); r.push(r[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); var s = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2), p = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, u = l * n; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], s, u, p + 90), this.scalePoints = [], this.addScalePoint(r[r.length - 1]); var c = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 90); this.addScalePoint(c), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } else if (1 == t) { var n = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), a = SuperMap.Plot.PlottingUtil.distance(n, e) / o; a >= .8 && (a = .8), this.scaleValues[1] = a } } } }]), e }(); SuperMap.Plot.AlgoSymbol36600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol36401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .1), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = .5 * e, o = e * this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l, t), n = i.index, a = i.pts, r = (i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l + o, t)).index; if (!(n < 0 || r < 0)) { var s; if (n != r) (s = SuperMap.Plot.PlottingUtil.distance(t[n + 1], t[n])) <= 2 * o ? (o = s / 2, a.x = (t[n + 1].x + t[n].x) / 2, a.y = (t[n + 1].y + t[n].y) / 2) : a = SuperMap.Plot.PlottingUtil.linePnt(t[n + 1], t[n], o); else if ((s = SuperMap.Plot.PlottingUtil.distance(t[n + 1], t[n])) <= 2 * o) o = s / 2, a.x = (t[n + 1].x + t[n].x) / 2, a.y = (t[n + 1].y + t[n].y) / 2; else SuperMap.Plot.PlottingUtil.distance(t[n], a) < o && (a = SuperMap.Plot.PlottingUtil.linePnt(t[n], t[n + 1], o)); var p, u = []; for (p = 0; p < n + 1; p++)u.push(t[p]); var c = SuperMap.Plot.PlottingUtil.linePnt(a, t[n], o); u.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var P = SuperMap.Plot.PlottingUtil.linePnt(a, t[n + 1], o), S = []; S.push(P); var h = t.length; for (p = n + 1; p < h; ++p)S.push(t[p]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var y = t[0], f = t[1], g = t[t.length - 2], M = t[t.length - 1], b = .03 * e, m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b, f, y), d = m.pntRight, v = m.pntLeft, O = (m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b, g, M)).pntRight, U = m.pntLeft, w = []; w.push(d), w.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w, { lineTypeLimit: !0 }); var L = []; L.push(O), L.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, L, { lineTypeLimit: !0 }); var V = SuperMap.Plot.PlottingUtil.radian(P, c) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, .8 * o, V - 90), this.scalePoints = []; var _ = SuperMap.Plot.PlottingUtil.circlePoint(a, o, o, V - 90); this.addScalePoint(_), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; if (0 == t) { var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = e, n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * o, l).pts, a = SuperMap.Plot.PlottingUtil.distance(i, n) / o; this.scaleValues[0] = a < .5 ? a : .5 } } } }]), e }(); SuperMap.Plot.AlgoSymbol36401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol36400 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol36400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol35500 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], l = t[1], o = SuperMap.Plot.PlottingUtil.distance(e, l), i = .1 * o, n = SuperMap.Plot.PlottingUtil.linePnt(e, l, .5 * o), a = SuperMap.Plot.PlottingUtil.linePnt(n, e, i), r = SuperMap.Plot.PlottingUtil.linePnt(n, l, i), s = [], p = []; s.push(t[0]), s.push(a), p.push(r), p.push(t[1]); var u = SuperMap.Plot.PlottingUtil.paraLine(s, .5 * i, !0), c = SuperMap.Plot.PlottingUtil.paraLine(p, .5 * i, !0), P = [], S = []; P.push(u[0]), P.push(u[1]), S.push(c[0]), S.push(c[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { lineColorLimit: !0, strokeColor: "#000000", strokeOpacity: 1, color: "#000000", opacity: 1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineColorLimit: !0, strokeColor: "#000000", strokeOpacity: 1, color: "#000000", opacity: 1 }); var h = [], y = [], f = SuperMap.Plot.PlottingUtil.paraLine(s, .5 * i, !1), g = SuperMap.Plot.PlottingUtil.paraLine(p, .5 * i, !1); h.push(f[0]), h.push(f[1]), y.push(g[0]), y.push(g[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { lineColorLimit: !0, strokeColor: "#000000", strokeOpacity: 1, color: "#000000", opacity: 1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y, { lineColorLimit: !0, strokeColor: "#000000", strokeOpacity: 1, color: "#000000", opacity: 1 }); var M = SuperMap.Plot.PlottingUtil.linePnt(P[1], S[0], .2 * i), b = SuperMap.Plot.PlottingUtil.linePnt(S[0], P[1], .2 * i), m = SuperMap.Plot.PlottingUtil.linePnt(h[1], y[0], .2 * i), d = SuperMap.Plot.PlottingUtil.linePnt(y[0], h[1], .2 * i), v = []; v.push(M), v.push(b), v.push(d), v.push(m), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, v, { fillLimit: !0, fill: !0 }); var O = SuperMap.Plot.PlottingUtil.linePnt(m, M, 1.2 * i), U = SuperMap.Plot.PlottingUtil.linePnt(M, m, 1.2 * i), w = []; w.push(O), w.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w); var L = SuperMap.Plot.PlottingUtil.linePnt(d, b, 1.2 * i), V = SuperMap.Plot.PlottingUtil.linePnt(b, d, 1.2 * i), _ = []; _.push(L), _.push(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol35500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol35304 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = 0), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .05, this.scaleValues[1] = 0), !this.isEdit) { var e = []; e.push(this.subSymbols[0]), this.scaleValues[0] = this.getSubSymbolScaleValue(), this.subSymbols = []; for (var l = 0; l < t.length; l++)this.subSymbols.push(e[0]) } var o, i = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], n = []; for (o = 0; o < t.length; o++)n.push(t[o]); for (n.push(n[0]), o = 0; o < n.length - 1; o++) { var a = n[o], r = n[o + 1], s = SuperMap.Plot.PlottingUtil.radian(a, r) * SuperMap.Plot.PlottingUtil.RTOD; s += 90; var p = .5 * i, u = SuperMap.Plot.PlottingUtil.circlePoint(a, p, p, s), c = SuperMap.Plot.PlottingUtil.circlePoint(r, p, p, s); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]) } this.scalePoints = []; var P = SuperMap.Plot.PlottingUtil.circlePoint(t[0], 1.2 * i, 1.2 * i, 270); for (this.addScalePoint(P), o = 0; o < t.length; o++) { var S = n[o]; 2 * (o + 1) >= this.scaleValues.length && this.scaleValues.push(0); var h = this.scaleValues[2 * (o + 1)]; 2 * (o + 1) + 1 >= this.scaleValues.length && this.scaleValues.push(1); var y = h; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[o], S, i, y); var f = SuperMap.Plot.PlottingUtil.circlePoint(S, 1.5 * i, 1.5 * i, y + 90); this.addScalePoint(f) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > this.scalePoints.length) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; if (0 == t) { for (var o = [], i = 0; i < l.length; i++)o.push(l[i]); var n = SuperMap.Plot.PlottingUtil.polylineDistance(o), a = SuperMap.Plot.PlottingUtil.distance(o[0], e) / 1.2; this.scaleValues[0] = a / n } else { var r = l[t - 1], s = SuperMap.Plot.PlottingUtil.radian(r, e) * SuperMap.Plot.PlottingUtil.RTOD; 0 > (s -= 90) && (s += 360), this.scaleValues[2 * t] = s } } } }, { key: "GetCodeByScaleValue", value: function (t) { switch (Math.floor(t)) { case 0: return 35300; case 1: return 35301; case 2: return 35302; case 3: return 35303; case 4: return 35400; case 5: return 35401; case 6: return 35402; case 7: return 35403; default: return -1 } } }]), e }(); SuperMap.Plot.AlgoSymbol35304 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol35200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .05), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()), 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = e * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], l, o, 0), this.scalePoints = []; var i = SuperMap.Plot.PlottingUtil.circlePoint(l, o, o, 90); this.addScalePoint(i), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 == t) { var n = SuperMap.Plot.PlottingUtil.distance(e, i) / o; this.scaleValues[0] = n } } } }]), e }(); SuperMap.Plot.AlgoSymbol35200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol35000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .03), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .03), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = e[0], n = e[1], a = e[e.length - 1], r = e[e.length - 2], s = SuperMap.Plot.PlottingUtil.radian(i, n) * SuperMap.Plot.PlottingUtil.RTOD, p = SuperMap.Plot.PlottingUtil.radian(r, a) * SuperMap.Plot.PlottingUtil.RTOD, u = this.scaleValues[0], c = l * u, P = SuperMap.Plot.PlottingUtil.circlePoint(i, c, c, s + 90), S = SuperMap.Plot.PlottingUtil.circlePoint(i, c, c, s + 270), h = []; h.push(P), h.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { lineTypeLimit: !0 }), this.scalePoints = [], this.addScalePoint(S); var y = SuperMap.Plot.PlottingUtil.circlePoint(a, c, c, p + 90), f = SuperMap.Plot.PlottingUtil.circlePoint(a, c, c, p + 270); (h = []).push(y), h.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { lineTypeLimit: !0 }); var g, M, b = t.length; if (this.scaleValues.length <= b) { for (this.scaleValues = [], this.scaleValues.push(u), M = 1 / b, g = 0; g < b - 1; g++)this.scaleValues.push(M * (g + 1)); this.scaleValues.push(u) } for (g = 0; g < b - 1; g++) { var m = (M = this.scaleValues[g + 1]) * l, d = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(m, e); if (!d.bfind) return; var v = d.pts, O = d.index, U = l * this.getSubSymbolScaleValue(), w = .3 * U, L = SuperMap.Plot.PlottingUtil.radian(e[O], e[O + 1]) * SuperMap.Plot.PlottingUtil.RTOD, V = new SuperMap.Geometry.Point(U, -w), _ = new SuperMap.Geometry.Point(-U, -w), T = new SuperMap.Geometry.Point(-U, 0), A = new SuperMap.Geometry.Point(U, 0), E = SuperMap.Plot.PlottingUtil.coordinateTrans(v, V, L), x = SuperMap.Plot.PlottingUtil.coordinateTrans(v, _, L), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(v, T, L), j = SuperMap.Plot.PlottingUtil.coordinateTrans(v, A, L); (h = []).push(E), h.push(x), h.push(Y), h.push(j), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, { lineTypeLimit: !0, fillLimit: !0, fill: !0 }), this.addScalePoint(v) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t >= this.scalePoints.length) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 == t) { var a = (i = SuperMap.Plot.PlottingUtil.distance(e, l[0])) / n; this.scaleValues[0] = a } else { var r, s = e, p = []; for (r = 0; r < o.length; r++)p.push(o[r]); var u = -1, c = 0, P = new SuperMap.Geometry.Point(0, 0); for (r = 0; r < p.length - 1; r++) { var S = []; S.push(p[r]), S.push(p[r + 1]); var h = SuperMap.Plot.PlottingUtil.projectPoint(s, p[r], p[r + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(h, S).isOnPolyLine) { var y = SuperMap.Plot.PlottingUtil.distance(s, h); -1 == u ? (u = r, P = h, c = y) : c > y && (u = r, P = h, c = y) } } if (-1 == u || u > p.length - 1) return; for (i = 0, r = 0; r < u; r++)i += SuperMap.Plot.PlottingUtil.distance(o[r], o[r + 1]); if ((i += SuperMap.Plot.PlottingUtil.distance(o[u], P)) < 0 || i > n) return; var f = i / n; this.scaleValues[t] = f } } } }]), e }(); SuperMap.Plot.AlgoSymbol35000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34902 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .02) : 1 === this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l / 2, e); if (o.bfind) { var i = o.index, n = o.pts; if (!this.isEdit) { var a = this.getDefaultSubSymbolSize() / l; (a > .3 || a <= 0) && (a = .3), this.scaleValues[0] = a, this.scaleValues[1] = .5 * a } var r, s = l * this.scaleValues[0], p = []; for (p.push(n), r = i; r >= 0; r--)p.push(e[r]); if ((o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, p)).bfind) { var u = o.index, c = o.pts, P = []; for (r = p.length - 1; r > u; r--)P.push(p[r]); P.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = []; for (S.push(n), r = i + 1; r < e.length; r++)S.push(e[r]); if ((o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, S)).bfind) { var h = o.index, y = o.pts; for ((P = []).push(y), r = h + 1; r < S.length; r++)P.push(S[r]); this.addArrow(P, this.scaleValues[1]); var f = .1 * s, g = c, M = y, b = SuperMap.Plot.PlottingUtil.radian(g, M) * SuperMap.Plot.PlottingUtil.RTOD, m = new SuperMap.Geometry.Point((g.x + M.x) / 2, (g.y + M.y) / 2), d = SuperMap.Plot.PlottingUtil.circlePoint(m, 2 * f, 2 * f, b), v = SuperMap.Plot.PlottingUtil.circlePoint(m, 2 * f, 2 * f, b + 180), O = SuperMap.Plot.PlottingUtil.circlePoint(d, f, f, 0); (P = []).push(d), P.push(O); var U = { surroundLineLimit: !0, lineTypeLimit: !0, fillLimit: !0, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, P, U); var w = SuperMap.Plot.PlottingUtil.circlePoint(v, f, f, 0); (P = []).push(v), P.push(w), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, P, U); var L = e[0].clone(), V = e[1].clone(), _ = SuperMap.Plot.PlottingUtil.radian(V, L) * SuperMap.Plot.PlottingUtil.RTOD, T = new SuperMap.Geometry.Point(0, .5 * s), A = new SuperMap.Geometry.Point(s, .5 * s), E = new SuperMap.Geometry.Point(1.5 * s, 0), x = SuperMap.Plot.PlottingUtil.coordinateTrans(L, T, _), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(L, A, _), j = SuperMap.Plot.PlottingUtil.coordinateTrans(L, E, _); (P = []).push(e[0]), P.push(x), P.push(Y), P.push(j), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, P), this.finish() } } } } } }]), e }(); SuperMap.Plot.AlgoSymbol34902 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34901 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); 0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .02) : 1 === this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l / 2, e); if (o.bfind) { var i = o.index, n = o.pts; if (!this.isEdit) { var a = this.getDefaultSubSymbolSize() / l; (a > .3 || a <= 0) && (a = .3), this.scaleValues[0] = a, this.scaleValues[1] = .5 * a } var r, s = l * this.scaleValues[0], p = []; for (p.push(n), r = i; r >= 0; r--)p.push(e[r]); if ((o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, p)).bfind) { var u = o.index, c = o.pts, P = []; for (r = p.length - 1; r > u; r--)P.push(p[r]); P.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = []; for (S.push(n), r = i + 1; r < e.length; r++)S.push(e[r]); if ((o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, S)).bfind) { var h = o.index, y = o.pts; for ((P = []).push(y), r = h + 1; r < S.length; r++)P.push(S[r]); this.addArrow(P, this.scaleValues[1]); var f = .1 * s, g = SuperMap.Plot.PlottingUtil.circlePoint(n, f, f, 0); (P = []).push(n), P.push(g); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, P, { surroundLineLimit: !0, lineTypeLimit: !0, fillLimit: !0, fill: !0 }); var M = e[0].clone(), b = e[1].clone(), m = SuperMap.Plot.PlottingUtil.radian(b, M) * SuperMap.Plot.PlottingUtil.RTOD, d = new SuperMap.Geometry.Point(0, .5 * s), v = new SuperMap.Geometry.Point(s, .5 * s), O = new SuperMap.Geometry.Point(1.5 * s, 0), U = SuperMap.Plot.PlottingUtil.coordinateTrans(M, d, m), w = SuperMap.Plot.PlottingUtil.coordinateTrans(M, v, m), L = SuperMap.Plot.PlottingUtil.coordinateTrans(M, O, m); (P = []).push(e[0]), P.push(U), P.push(w), P.push(L), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, P), this.finish() } } } } } }]), e }(); SuperMap.Plot.AlgoSymbol34901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .02) : 1 === this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (-1 !== SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, l / 2).index) { if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = .5 * o } this.addArrow(e, this.scaleValues[1]); var i = l * this.scaleValues[0], n = new SuperMap.Geometry.Point(e[0].x, e[0].y), a = new SuperMap.Geometry.Point(e[1].x, e[1].y), r = SuperMap.Plot.PlottingUtil.radian(a, n) * SuperMap.Plot.PlottingUtil.RTOD, s = new SuperMap.Geometry.Point(0, .5 * i), p = new SuperMap.Geometry.Point(i, .5 * i), u = new SuperMap.Geometry.Point(1.5 * i, 0), c = SuperMap.Plot.PlottingUtil.coordinateTrans(n, s, r), P = SuperMap.Plot.PlottingUtil.coordinateTrans(n, p, r), S = SuperMap.Plot.PlottingUtil.coordinateTrans(n, u, r); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [e[0], c, P, S]), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol34900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34801 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.4), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = [], l = t[0].clone(), o = t[1].clone(), i = SuperMap.Plot.PlottingUtil.distance(l, o), n = 0; for (n = 15; n <= 165; n += 4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n)); SuperMap.Plot.PlottingUtil.equalFuzzy(n, 165) && (n = 165, e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n))); var a = []; for (n = e.length - 1; n >= 0; n--)a.push(e[n]); for (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a), e = [], n = 195; n <= 345; n += 4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n)); for (SuperMap.Plot.PlottingUtil.equalFuzzy(n, 345) && (n = 345, e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n))), a = [], n = e.length - 1; n >= 0; n--)a.push(e[n]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); var r = 2 * this.scaleValues[0] * i; (e = []).push(new SuperMap.Geometry.Point(l.x - r, l.y)), e.push(new SuperMap.Geometry.Point(l.x - .4 * r, l.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e, { lineTypeLimit: !0 }), (e = []).push(new SuperMap.Geometry.Point(l.x - .2 * r, l.y)), e.push(new SuperMap.Geometry.Point(l.x + .4 * r, l.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e, { lineTypeLimit: !0 }), (e = []).push(new SuperMap.Geometry.Point(l.x + .6 * r, l.y)), e.push(new SuperMap.Geometry.Point(l.x + r, l.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e, { lineTypeLimit: !0 }), (e = []).push(new SuperMap.Geometry.Point(l.x - this.scaleValues[0] * i, l.y)), e.push(new SuperMap.Geometry.Point(l.x - this.scaleValues[0] * i, l.y + this.scaleValues[0] * i)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e, { lineTypeLimit: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol34801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = [], l = t[0].clone(), o = t[1].clone(), i = SuperMap.Plot.PlottingUtil.distance(l, o), n = 0; for (n = 15; n <= 165; n += 4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n)); SuperMap.Plot.PlottingUtil.equalFuzzy(n, 165) && (n = 165, e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n))); var a = []; for (n = e.length - 1; n >= 0; n--)a.push(e[n]); for (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a), e = [], n = 195; n <= 345; n += 4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n)); for (SuperMap.Plot.PlottingUtil.equalFuzzy(n, 345) && (n = 345, e.push(SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n))), a = [], n = e.length - 1; n >= 0; n--)a.push(e[n]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); var r = .8 * i; (e = []).push(new SuperMap.Geometry.Point(l.x - r, l.y)), e.push(new SuperMap.Geometry.Point(l.x + r, l.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e, { lineTypeLimit: !0 }), (e = []).push(new SuperMap.Geometry.Point(l.x - .4 * i, l.y)), e.push(new SuperMap.Geometry.Point(l.x - .4 * i, l.y + .4 * i)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e, { lineTypeLimit: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol34800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .08, l.scaleValues[1] = .03), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .08), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = .5 * e, o = e * this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l, t), n = i.pts, a = i.index, r = (i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l + o, t)).index; if (!(a < 0 || r < 0)) { var s, p, u; if (a != r) s = new SuperMap.Geometry.Point(t[a + 1].x, t[a + 1].y), p = new SuperMap.Geometry.Point(t[a].x, t[a].y), (u = SuperMap.Plot.PlottingUtil.distance(s, p)) <= 2 * o ? (o = u / 2, n.x = (t[a + 1].x + t[a].x) / 2, n.y = (t[a + 1].y + t[a].y) / 2) : n = SuperMap.Plot.PlottingUtil.linePnt(t[a + 1], t[a], o); else if (s = new SuperMap.Geometry.Point(t[a + 1].x, t[a + 1].y), p = new SuperMap.Geometry.Point(t[a].x, t[a].y), (u = SuperMap.Plot.PlottingUtil.distance(s, p)) <= 2 * o) o = u / 2, n.x = (t[a + 1].x + t[a].x) / 2, n.y = (t[a + 1].y + t[a].y) / 2; else s = new SuperMap.Geometry.Point(t[a].x, t[a].y), p = new SuperMap.Geometry.Point(n.x, n.y), SuperMap.Plot.PlottingUtil.distance(s, p) < o && (n = SuperMap.Plot.PlottingUtil.linePnt(t[a], t[a], o)); var c, P, S, h = []; for (c = 0; c < a + 1; c++)h.push(t[c]); P = SuperMap.Plot.PlottingUtil.linePnt(n, t[a], o), h.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h), S = SuperMap.Plot.PlottingUtil.linePnt(n, t[a + 1], o); var y = []; y.push(S); var f = t.length; for (c = a + 1; c < f; ++c)y.push(t[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var g = [], M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o / 2, P, S); g.push(P), g.push(M.pntRight), g.push(M.pntLeft); var b = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, P, n)).pntRight; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, g, { lineTypeLimit: !0 }); var m, d, v, O, U = t[0].clone(), w = t[1].clone(), L = t[t.length - 2].clone(), V = t[t.length - 1].clone(), _ = e * this.scaleValues[1]; d = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_, w, U)).pntRight, m = M.pntLeft, O = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_, L, V)).pntRight, v = M.pntLeft; var T = []; T.push(d), T.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T, { lineTypeLimit: !0 }); var A = []; A.push(O), A.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, { lineTypeLimit: !0 }), this.scalePoints = [], this.addScalePoint(b), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 == t) { var i = .5 * o, n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, l).pts, a = SuperMap.Plot.PlottingUtil.distance(e, n) / o; a > .5 && (a = .5), this.scaleValues[0] = a } } } }]), e }(); SuperMap.Plot.AlgoSymbol34700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34501 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts || t.length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = SuperMap.Plot.PlottingUtil.radian(l, o) * SuperMap.Plot.PlottingUtil.RTOD, n = new SuperMap.Geometry.Point(0, 0), a = new SuperMap.Geometry.Point(.475 * e, 0), r = SuperMap.Plot.PlottingUtil.coordinateTrans(l, n, i), s = SuperMap.Plot.PlottingUtil.coordinateTrans(l, a, i), p = []; p.push(r), p.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var u = new SuperMap.Geometry.Point(.525 * e, 0), c = new SuperMap.Geometry.Point(.725 * e, 0), P = SuperMap.Plot.PlottingUtil.coordinateTrans(l, u, i), S = SuperMap.Plot.PlottingUtil.coordinateTrans(l, c, i); (p = []).push(P), p.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var h = new SuperMap.Geometry.Point(.775 * e, 0), y = new SuperMap.Geometry.Point(.95 * e, 0), f = SuperMap.Plot.PlottingUtil.coordinateTrans(l, h, i), g = SuperMap.Plot.PlottingUtil.coordinateTrans(l, y, i); if ((p = []).push(f), p.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }), this.subSymbols.length > 0) { var M = .2 * e, b = new SuperMap.Geometry.Point(t[1].x, t[1].y + M / 2); this.computeSubSymbol(this.subSymbols[0], b, M, 0) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol34501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34500 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = SuperMap.Plot.PlottingUtil.radian(l, o) * SuperMap.Plot.PlottingUtil.RTOD, n = new SuperMap.Geometry.Point(0, 0), a = new SuperMap.Geometry.Point(.475 * e, 0), r = SuperMap.Plot.PlottingUtil.coordinateTrans(l, n, i), s = SuperMap.Plot.PlottingUtil.coordinateTrans(l, a, i), p = []; p.push(r), p.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var u = new SuperMap.Geometry.Point(.525 * e, 0), c = new SuperMap.Geometry.Point(.725 * e, 0), P = SuperMap.Plot.PlottingUtil.coordinateTrans(l, u, i), S = SuperMap.Plot.PlottingUtil.coordinateTrans(l, c, i); (p = []).push(P), p.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var h = new SuperMap.Geometry.Point(.775 * e, 0), y = new SuperMap.Geometry.Point(.95 * e, 0), f = SuperMap.Plot.PlottingUtil.coordinateTrans(l, h, i), g = SuperMap.Plot.PlottingUtil.coordinateTrans(l, y, i); (p = []).push(f), p.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var M = new SuperMap.Geometry.Point(e, .0125 * e), b = new SuperMap.Geometry.Point(e, -.0125 * e), m = new SuperMap.Geometry.Point(.75 * e + .2 * e, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(l, M, i), v = SuperMap.Plot.PlottingUtil.coordinateTrans(l, b, i), O = SuperMap.Plot.PlottingUtil.coordinateTrans(l, m, i); (p = []).push(d), p.push(O), p.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var U = new SuperMap.Geometry.Point(.75 * e + .025 * e, 0), w = SuperMap.Plot.PlottingUtil.coordinateTrans(l, U, i); (p = []).push(O), p.push(w), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var L = new SuperMap.Geometry.Point(.75 * e + .15 * e, 0), V = SuperMap.Plot.PlottingUtil.circlePoint(L, .075 * e, .1 * e, 150), _ = SuperMap.Plot.PlottingUtil.circlePoint(L, .075 * e, .1 * e, 210), T = SuperMap.Plot.PlottingUtil.coordinateTrans(l, L, i), A = SuperMap.Plot.PlottingUtil.coordinateTrans(l, V, i), E = SuperMap.Plot.PlottingUtil.coordinateTrans(l, _, i); (p = []).push(A), p.push(T), p.push(E), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var x = new SuperMap.Geometry.Point(.75 * e + .05 * e, .025 * e), Y = new SuperMap.Geometry.Point(.75 * e + .05 * e, -.025 * e), j = SuperMap.Plot.PlottingUtil.coordinateTrans(l, x, i), C = SuperMap.Plot.PlottingUtil.coordinateTrans(l, Y, i); (p = []).push(j), p.push(C), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { lineTypeLimit: !0 }); var I = new SuperMap.Geometry.Point(.75 * e + .0125 * e, 0), G = new SuperMap.Geometry.Point(.75 * e + .0125 * e, .0125 * e), B = SuperMap.Plot.PlottingUtil.coordinateTrans(l, I, i), R = SuperMap.Plot.PlottingUtil.coordinateTrans(l, G, i); (p = []).push(B), p.push(R), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, p, { lineTypeLimit: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol34500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .1, l.scaleValues[1] = .2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues[0] = .1, this.scaleValues[1] = .2); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = SuperMap.Plot.PlottingUtil.radian(l, o) * SuperMap.Plot.PlottingUtil.RTOD, n = this.scaleValues[0], a = this.scaleValues[1]; if (!(n < 0 || a < 0)) { var r = n * e, s = 1 - a * (5 / 4); s < 0 && (s = 0), s > 1 && (s = 1); var p, u, c = e * s, P = SuperMap.Plot.PlottingUtil.circlePoint(l, c, c, i), S = []; S.push(t[0].clone()), S.push(P), p = SuperMap.Plot.PlottingUtil.paraLine(S, r, !0), u = SuperMap.Plot.PlottingUtil.paraLine(S, r, !1); var h, y = []; for (h = 0; h < p.length; h++)y.push(p[h]); var f = []; for (h = 0; h < u.length; h++)f.push(u[h]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = a * e, M = SuperMap.Plot.PlottingUtil.circlePoint(o, g / 2, g / 2, i); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], M, g / 2, i + 180); for (var b = [], m = .1 * c, d = [], v = 0; v < y.length; v++)d.push(y[v].clone()); var O = []; for (h = 0; h < f.length; h++)O.push(f[h].clone()); var U = SuperMap.Plot.PlottingUtil.distance(O[0], O[1]); if (!(m >= U)) { for (var w = m; w < c - r; w += m) { var L = SuperMap.Plot.PlottingUtil.circlePoint(O[0], w, w, i), V = SuperMap.Plot.PlottingUtil.circlePoint(L, U, U, i + 45), _ = SuperMap.Plot.PlottingUtil.intersectLines(L, V, d[0], d[1]); if (_.isIntersectLines) { var T = _.intersectPoint; if (!SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(T, d).isOnPolyLine) break; (b = []).push(L), b.push(T), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, { lineTypeLimit: !0, surroundLineLimit: !0 }) } } this.scalePoints = []; var A = SuperMap.Plot.PlottingUtil.circlePoint(l, r, r, i + 90); this.addScalePoint(A); var E = g / 2, x = SuperMap.Plot.PlottingUtil.circlePoint(o, E, E, i + 90); this.addScalePoint(x), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i = SuperMap.Plot.PlottingUtil.polylineDistance(l); 0 == t ? (o = SuperMap.Plot.PlottingUtil.distance(l[0], e) / i, this.scaleValues[0] = o) : 1 == t && (o = 2 * SuperMap.Plot.PlottingUtil.distance(l[1], e) / i, this.scaleValues[1] = o) } } }]), e }(); SuperMap.Plot.AlgoSymbol34400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol34300 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = SuperMap.Plot.PlottingUtil.radian(o, i) * SuperMap.Plot.PlottingUtil.RTOD, a = .02 * l, r = []; for (e = 0; e < 360; e += 10)r.push(SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0, 0), a, a, e)); r.push(r[0]); var s = [], p = new SuperMap.Geometry.Point(.1 * l, 0), u = SuperMap.Plot.PlottingUtil.coordinateTrans(o, p, n); for (e = 0; e < r.length; e++)s.push(new SuperMap.Geometry.Point(r[e].x + u.x, r[e].y + u.y)); var c = { lineTypeLimit: !0, surroundLineLimit: !0, fillLimit: !0, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, c); var P = new SuperMap.Geometry.Point(.25 * l, 0), S = SuperMap.Plot.PlottingUtil.coordinateTrans(o, P, n); for (s = [], e = 0; e < r.length; e++)s.push(new SuperMap.Geometry.Point(r[e].x + S.x, r[e].y + S.y)); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, c); var h = new SuperMap.Geometry.Point(.4 * l, 0), y = SuperMap.Plot.PlottingUtil.coordinateTrans(o, h, n); for (s = [], e = 0; e < r.length; e++)s.push(new SuperMap.Geometry.Point(r[e].x + y.x, r[e].y + y.y)); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, c); var f = new SuperMap.Geometry.Point(.6 * l, 0), g = SuperMap.Plot.PlottingUtil.coordinateTrans(o, f, n); for (s = [], e = 0; e < r.length; e++)s.push(new SuperMap.Geometry.Point(r[e].x + g.x, r[e].y + g.y)); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, c); var M = new SuperMap.Geometry.Point(.5 * l, .05 * l), b = new SuperMap.Geometry.Point(.7 * l, .05 * l), m = new SuperMap.Geometry.Point(.75 * l, 0), d = new SuperMap.Geometry.Point(.7 * l, -.05 * l), v = new SuperMap.Geometry.Point(.5 * l, -.05 * l), O = SuperMap.Plot.PlottingUtil.coordinateTrans(o, M, n), U = SuperMap.Plot.PlottingUtil.coordinateTrans(o, b, n), w = SuperMap.Plot.PlottingUtil.coordinateTrans(o, m, n), L = SuperMap.Plot.PlottingUtil.coordinateTrans(o, d, n), V = SuperMap.Plot.PlottingUtil.coordinateTrans(o, v, n); (s = []).push(O), s.push(U), s.push(w), s.push(L), s.push(V), s.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol34300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol33400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.125), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 5 && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.125), this.scaleValues.push(0)), this.scaleValues.length < 6 && this.scaleValues.push(.1); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l, o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (((i = this.getDefaultSubSymbolSize() / n) > .3 || i <= 0) && (i = .3), this.scaleValues[5] = i); var a = 1.5 * this.scaleValues[5]; 2 == t.length ? (this.isEdit || (this.scaleValues[3] = this.scaleValues[2] + a), l = this.scaleValues[2], o = this.scaleValues[3]) : (SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4], 0) && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.125)), this.isEdit || (this.scaleValues[4] = this.scaleValues[3] + a, ((i = this.getDefaultSubSymbolSize() / n) > .3 || i <= 0) && (i = .3), this.scaleValues[5] = i), l = this.scaleValues[3], o = this.scaleValues[4]); var r = n * l, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r, e); if (s.bfind) { var p = s.index, u = s.pts, c = n * o; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c, e)).bfind) { for (var P = s.index, S = s.pts, h = new SuperMap.Geometry.Point(u.x, u.y), y = new SuperMap.Geometry.Point(S.x, S.y), f = SuperMap.Plot.PlottingUtil.radian(h, y) * SuperMap.Plot.PlottingUtil.RTOD, g = [], M = 0; M <= p; M++)g.push(e[M]); for (g.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), (g = []).push(S), M = P + 1; M < e.length; M++)g.push(e[M]); this.addArrow(g, .5 * this.scaleValues[5]); var b = SuperMap.Plot.PlottingUtil.distance(h, y), m = new SuperMap.Geometry.Point(2 / 3 * b, .5 / 3 * b), d = new SuperMap.Geometry.Point(0, .5 / 3 * b), v = new SuperMap.Geometry.Point(0, -.5 / 3 * b), O = new SuperMap.Geometry.Point(2 / 3 * b, -.5 / 3 * b), U = SuperMap.Plot.PlottingUtil.coordinateTrans(h, m, f), w = SuperMap.Plot.PlottingUtil.coordinateTrans(h, d, f), L = SuperMap.Plot.PlottingUtil.coordinateTrans(h, v, f), V = SuperMap.Plot.PlottingUtil.coordinateTrans(h, O, f); (g = []).push(U), g.push(w), g.push(L), g.push(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g); var _ = b / 3 * 2, T = SuperMap.Plot.PlottingUtil.radian(y, U) * SuperMap.Plot.PlottingUtil.RTOD, A = SuperMap.Plot.PlottingUtil.circlePoint(y, _, _, T), E = SuperMap.Plot.PlottingUtil.radian(y, V) * SuperMap.Plot.PlottingUtil.RTOD, x = SuperMap.Plot.PlottingUtil.circlePoint(y, _, _, E); (g = []).push(A), g.push(S), g.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), this.scalePoints = [], this.addScalePoint(S); var Y = SuperMap.Plot.PlottingUtil.circlePoint(h, b / 2, b / 2, f + 90); this.addScalePoint(Y), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a = SuperMap.Plot.PlottingUtil.polylineDistance(o), r = 0, s = 0; if (2 == l.length ? (r = this.scaleValues[2], s = this.scaleValues[3]) : (r = this.scaleValues[3], s = this.scaleValues[4]), 0 == t) { for (var p = s - r, u = e.clone(), c = [], P = 0; P < o.length; P++)c.push(o[P].clone()); for (var S, h = -1, y = 0, f = 0; f < c.length - 1; f++) { var g = []; g.push(c[f]), g.push(c[f + 1]); var M = SuperMap.Plot.PlottingUtil.projectPoint(u, c[f], c[f + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M, g).isOnPolyLine) { var b = SuperMap.Plot.PlottingUtil.distance(u, M); -1 == h ? (h = f, S = M, y = b) : y > b && (h = f, S = M, y = b) } } if (-1 == h || h > c.length - 1) return; i = 0; for (var m = 0; m < h; m++)i += SuperMap.Plot.PlottingUtil.distance(o[m], o[m + 1]); if ((i += SuperMap.Plot.PlottingUtil.distance(o[h], S)) < 0 || i > a) return; if ((n = i / a) > .7 || n - p < 0) return; 2 == l.length ? (this.scaleValues[2] = n - p, this.scaleValues[3] = n) : (this.scaleValues[3] = n - p, this.scaleValues[4] = n) } else if (1 == t) { i = a * r; var d = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, o); if (!d.bfind) return; var v = d.pts; if (.7 < (n = (2 * SuperMap.Plot.PlottingUtil.distance(v, e) + i) / a)) return; 2 == l.length ? this.scaleValues[3] = n : this.scaleValues[4] = n } } } }]), e }(); SuperMap.Plot.AlgoSymbol33400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol32900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), i = o; this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var n = e * this.scaleValues[0], a = this.scaleValues[1], r = a, s = this.scaleValues[3], p = this.scaleValues[4]; i.x = o.x + s * e, i.y = o.y + p * e, this.computeSubSymbol(this.subSymbols[0], o, n, r), this.addScalePoint(i, 0); var u = new SuperMap.Geometry.Point(i.x, i.y), c = SuperMap.Plot.PlottingUtil.circlePoint(u, n, n, 0); this.addScalePoint(c, 1); var P = SuperMap.Plot.PlottingUtil.circlePoint(u, 2 * n, 2 * n, a); this.addScalePoint(P, 2), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), r = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t && (o = (e.x - a.x) / r, this.scaleValues[3] = o, i = (e.y - a.y) / r, this.scaleValues[4] = i), 1 === t) { o = this.scaleValues[3], i = this.scaleValues[4], n = new SuperMap.Geometry.Point(a.x + o * r, a.y + i * r); var s = SuperMap.Plot.PlottingUtil.distance(n, e) / r; this.scaleValues[0] = s } if (2 === t) { o = this.scaleValues[3], i = this.scaleValues[4], n = new SuperMap.Geometry.Point(a.x + o * r, a.y + i * r); var p = SuperMap.Plot.PlottingUtil.radian(n, e) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[1] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol32900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol32300 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = t[0], o = t[1]; e = 2 == t.length ? o : t[2]; var i = new SuperMap.Geometry.Point((l.x + o.x) / 2, (l.y + o.y) / 2), n = SuperMap.Plot.PlottingUtil.distance(i, e), a = .5 * n, r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, i, e), s = r.pntLeft, p = r.pntRight, u = !(i.x > e.x), c = []; u ? (c.push(l), c.push(s)) : (c.push(l), c.push(p)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var P = []; u ? (P.push(o), P.push(p)) : (P.push(o), P.push(s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var S, h, y, f, g = .37 * n, M = SuperMap.Plot.PlottingUtil.linePnt(i, e, g), b = .09 * n, m = []; m.push(M), m.push(new SuperMap.Geometry.Point(M.x, M.y + b)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, m), u ? (S = (r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b, i, M)).pntLeft, h = (r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * b, i, M)).pntLeft, y = (r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b, S, h)).pntRight, f = r.pntLeft) : (S = (r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b, i, M)).pntRight, h = (r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * b, i, M)).pntRight, y = (r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b, S, h)).pntRight, f = r.pntLeft); var d = []; d.push(S), d.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, { lineTypeLimit: !0 }); var v = []; v.push(y), v.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v, { lineTypeLimit: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol32300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31803 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); var i = .5 * e, n = e * this.getSubSymbolScaleValue(), a = n, r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== r.index) { var s = r.pt, p = new SuperMap.Geometry.Point(o[r.index].x, o[r.index].y), u = new SuperMap.Geometry.Point(o[r.index + 1].x, o[r.index + 1].y), c = 180 * SuperMap.Plot.PlottingUtil.radian(p, u) / Math.PI, P = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, c + 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, P]); var S = 180 * SuperMap.Plot.PlottingUtil.radian(s, P) / Math.PI, h = new SuperMap.Geometry.Point(-.2 * n, .05 * n), y = new SuperMap.Geometry.Point(-.2 * n, -.05 * n), f = SuperMap.Plot.PlottingUtil.coordinateTrans(P, h, S), g = SuperMap.Plot.PlottingUtil.coordinateTrans(P, y, S); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [P, f, g], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var M = new SuperMap.Geometry.Point(0, -.6 * a); M = SuperMap.Plot.PlottingUtil.coordinateTrans(s, M, c), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], M, a, c - 90), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol31803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31601 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var l = this.getDefaultSubSymbolSize() / e; (l > .3 || l <= 0) && (l = .3), this.scaleValues[2] = l } var o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), i = Math.abs(t[1].x - t[0].x) * this.getSubSymbolScaleValue() * .5, n = Math.abs(t[1].y - t[0].y) * this.getSubSymbolScaleValue() * .5; if (t[0].y > t[1].y) { var a = new SuperMap.Geometry.Point(o.x, t[0].y), r = new SuperMap.Geometry.Point(o.x, t[0].y - n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [a, r]); var s = new SuperMap.Geometry.Point(o.x, t[1].y), p = new SuperMap.Geometry.Point(o.x, t[1].y + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, p]) } else { var u = new SuperMap.Geometry.Point(o.x, t[1].y), c = new SuperMap.Geometry.Point(o.x, t[1].y - n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]); var P = new SuperMap.Geometry.Point(o.x, t[0].y), S = new SuperMap.Geometry.Point(o.x, t[0].y + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, S]) } if (t[0].x > t[1].x) { var h = new SuperMap.Geometry.Point(t[0].x, o.y), y = new SuperMap.Geometry.Point(t[0].x - i, o.y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [h, y]); var f = new SuperMap.Geometry.Point(t[1].x, o.y), g = new SuperMap.Geometry.Point(t[1].x + i, o.y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [f, g]) } else { var M = new SuperMap.Geometry.Point(t[1].x, o.y), b = new SuperMap.Geometry.Point(t[1].x - i, o.y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [M, b]); var m = new SuperMap.Geometry.Point(t[0].x, o.y), d = new SuperMap.Geometry.Point(t[0].x + i, o.y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [m, d]) } this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t); var v = new SuperMap.Geometry.Point(o.x + e * this.scaleValues[0], o.y + e * this.scaleValues[1]), O = e * this.scaleValues[2] * 1.2; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], v, O, 0), this.addScalePoint(v); var U = SuperMap.Plot.PlottingUtil.circlePoint(v, O / 2, O / 2, 90); this.addScalePoint(U), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; this.scaleValues.lenth < 3 && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === t) o = (e.x - a.x) / n, this.scaleValues[0] = o, i = (e.y - a.y) / n, this.scaleValues[1] = i; else if (1 === t) { o = this.scaleValues[0], i = this.scaleValues[1]; var r = new SuperMap.Geometry.Point(a.x + n * o, a.y + n * i), s = SuperMap.Plot.PlottingUtil.distance(r, e) / n; this.scaleValues[2] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol31601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues.push(.1), this.scaleValues.push(.1), this.scaleValues.push(0)), this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = Math.abs(t[1].x - t[0].x) * this.getSubSymbolScaleValue() * .5, i = new SuperMap.Geometry.Point(e.x - o, e.y + o), n = new SuperMap.Geometry.Point(e.x - 3 * o, e.y - o); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i, n]); var a = new SuperMap.Geometry.Point(e.x - o, e.y - o), r = new SuperMap.Geometry.Point(e.x - 3 * o, e.y + o); if (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [a, r]), !this.isEdit) { var s = this.getDefaultSubSymbolSize() / l; (s > .3 || s <= 0) && (s = .3), this.scaleValues[0] = s } var p = new SuperMap.Geometry.Point(e.x + o, e.y), u = new SuperMap.Geometry.Point(e.x + 4 * o, e.y), c = SuperMap.Plot.PlottingUtil.radian(p, u) * SuperMap.Plot.PlottingUtil.RTOD, P = l * this.scaleValues[0] * 2, S = new SuperMap.Geometry.Point(e.x + l * this.scaleValues[1], e.y + l * this.scaleValues[2]); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], S, .8 * P, c), this.addScalePoint(S); var h = SuperMap.Plot.PlottingUtil.circlePoint(S, P / 2, P / 2, 90); this.addScalePoint(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; this.scaleValues.lenth < 3 && (this.scaleValues.push(.1), this.scaleValues.push(.1), this.scaleValues.push(0)); var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === t) o = (e.x - a.x) / n, this.scaleValues[1] = o, i = (e.y - a.y) / n, this.scaleValues[2] = i; else if (1 === t) { o = this.scaleValues[1], i = this.scaleValues[2]; var r = new SuperMap.Geometry.Point(a.x + n * o, a.y + n * i), s = SuperMap.Plot.PlottingUtil.distance(r, e) / n; this.scaleValues[0] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol31600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31401 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31400), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t); var e = 0; e = Math.abs(t[1].x - t[0].x) < Math.abs(t[1].y - t[0].y) ? .1 * Math.abs(t[1].x - t[0].x) : .1 * Math.abs(t[1].y - t[0].y); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = new SuperMap.Geometry.Point(l.x - e, l.y - e), i = new SuperMap.Geometry.Point(l.x + e, l.y - 3 * e), n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [o, i], n, !0); var a = new SuperMap.Geometry.Point(l.x - e, l.y + e), r = new SuperMap.Geometry.Point(l.x - 3 * e, l.y + 3 * e); this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [a, r], n, !0); var s = new SuperMap.Geometry.Point(l.x + e, l.y + e), p = new SuperMap.Geometry.Point(l.x + 3 * e, l.y + 3 * e); this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [s, p], n, !0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31400 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = 0; l = Math.abs(t[1].x - t[0].x) < Math.abs(t[1].y - t[0].y) ? .1 * Math.abs(t[1].x - t[0].x) : .1 * Math.abs(t[1].y - t[0].y); var o = new SuperMap.Geometry.Point(e.x - l, e.y - l), i = new SuperMap.Geometry.Point(e.x + l, e.y + l); this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [o, i], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31304 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 1 === l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.1), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31300), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[1] * e, i = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], .5 * e), n = SuperMap.Plot.PlottingUtil.linePnt(i, t[0], o), a = SuperMap.Plot.PlottingUtil.linePnt(i, t[1], o), r = this.scaleValues[0] * e, s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[1], t[0]), p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s.pntLeft, s.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p.pntLeft, p.pntRight]); var u = [], c = []; u.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), u.push(new SuperMap.Geometry.Point(n.x, n.y)), c.push(new SuperMap.Geometry.Point(a.x, a.y)), c.push(new SuperMap.Geometry.Point(t[1].x, t[1].y)); for (var P = this.scaleValues[this.scaleValues.length - 1] * e, S = SuperMap.Plot.PlottingUtil.paraLine(u, P, !0), h = SuperMap.Plot.PlottingUtil.paraLine(u, P, !1), y = SuperMap.Plot.PlottingUtil.paraLine(c, P, !0), f = SuperMap.Plot.PlottingUtil.paraLine(c, P, !1), g = [], M = [], b = 0; b < S.length; b++)g.push(S[b]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g); for (var m = 0; m < h.length; m++)M.push(h[m]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); for (var d = [], v = [], O = 0; O < y.length; O++)d.push(y[O]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); for (var U = 0; U < f.length; U++)v.push(f[U]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v); var w = n, L = a, V = SuperMap.Plot.PlottingUtil.radian(w, L) * SuperMap.Plot.PlottingUtil.RTOD, _ = SuperMap.Plot.PlottingUtil.distance(w, L); this.addText("慑阻", i, _, V), this.addScalePoint(s.pntRight, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31304 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31303 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31300), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], .5 * e), n = SuperMap.Plot.PlottingUtil.linePnt(i, t[0], o), a = SuperMap.Plot.PlottingUtil.linePnt(i, t[1], o); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], n]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [a, t[1]]); var r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[1], t[0]), s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [r.pntLeft, r.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s.pntLeft, s.pntRight]); var p = [], u = []; p.push(t[0]), p.push(n), u.push(a), u.push(t[1]); for (var c = SuperMap.Plot.PlottingUtil.paraLine(p, o, !0), P = SuperMap.Plot.PlottingUtil.paraLine(p, o, !1), S = SuperMap.Plot.PlottingUtil.paraLine(u, o, !0), h = SuperMap.Plot.PlottingUtil.paraLine(u, o, !1), y = [], f = [], g = 0; g < c.length; g++)y.push(c[g]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); for (var M = 0; M < P.length; M++)f.push(P[M]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); for (var b = [], m = [], d = 0; d < S.length; d++)b.push(S[d]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); for (var v = 0; v < h.length; v++)m.push(h[v]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); var O = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], i, 2 * o, O), this.addScalePoint(r.pntRight, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31303 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31302 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31300), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = t[0], i = t[1], n = this.scaleValues[0] * e, a = SuperMap.Plot.PlottingUtil.linePnt(o, i, .5 * e), r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, t[0], t[1]), s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, t[1], t[0]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [r.pntLeft, r.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s.pntLeft, s.pntRight]); var p = SuperMap.Plot.PlottingUtil.linePnt(a, o, n), u = SuperMap.Plot.PlottingUtil.linePnt(a, i, n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], p]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, t[1]]); var c = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, 2 * n, c), this.addScalePoint(s.pntRight), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31302 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31301 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31300), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[0], t[1]), n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[1], t[0]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i.pntLeft, i.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [n.pntLeft, n.pntRight]); var a = [], r = 3 * o; a.push(t[0]), a.push(t[1]); for (var s = SuperMap.Plot.PlottingUtil.paraLine(a, r, !0), p = SuperMap.Plot.PlottingUtil.paraLine(a, r, !1), u = [], c = 0; c < s.length; c++)u.push(s[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, s[1], s[0]), S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, s[0], s[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P.pntLeft, P.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [S.pntLeft, S.pntRight]); for (var h = [], y = 0; y < p.length; y++)h.push(p[y]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, p[1], p[0]), g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, p[0], p[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [f.pntLeft, f.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [g.pntLeft, g.pntRight]), this.addScalePoint(n.pntRight, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[0], t[1]), n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[1], t[0]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i.pntLeft, i.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [n.pntLeft, n.pntRight]), this.addScalePoint(n.pntRight, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 === t) { var n = l[0], a = e, r = SuperMap.Plot.PlottingUtil.distance(a, n) / o; this.scaleValues[0] = r } } } }]), e }(); SuperMap.Plot.AlgoSymbol31300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30102 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(1.570796), l.scaleValues.push(.069485), l.scaleValues.push(.15), l.scaleValues.push(.1), l.scaleValues.push(1.731025), l.scaleValues.push(2.076877)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var i = e * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI, a = e * this.scaleValues[2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== r.index) { var s = r.index, p = r.pt, u = o[s], c = o[s + 1], P = 180 * SuperMap.Plot.PlottingUtil.radian(u, c) / Math.PI, S = SuperMap.Plot.PlottingUtil.circlePoint(p, a / 2, a / 2, P + n), h = SuperMap.Plot.PlottingUtil.circlePoint(p, a, a, P + n + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [S, h]); var y = 180 * SuperMap.Plot.PlottingUtil.radian(p, S) / Math.PI, f = new SuperMap.Geometry.Point(-.2 * a, .05 * a), g = new SuperMap.Geometry.Point(-.2 * a, -.05 * a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(S, f, y), b = SuperMap.Plot.PlottingUtil.coordinateTrans(S, g, y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [S, M, b], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var m = .5 * a * this.scaleValues[5], d = .5 * a * this.scaleValues[6], v = new SuperMap.Geometry.Point(0, -.9 * (m - .25 * d)), O = new SuperMap.Geometry.Point(0, .9 * (m - .25 * d)), U = SuperMap.Plot.PlottingUtil.coordinateTrans(h, v, y), w = SuperMap.Plot.PlottingUtil.coordinateTrans(h, O, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [U, w]); var L = new SuperMap.Geometry.Point(0, m), V = SuperMap.Plot.PlottingUtil.coordinateTrans(h, L, y), _ = new SuperMap.Geometry.Point(.5 * d, -.25 * d), T = new SuperMap.Geometry.Point(-.5 * d, -.25 * d), A = new SuperMap.Geometry.Point(-.5 * d, .25 * d), E = new SuperMap.Geometry.Point(.25 * d, .25 * d), x = SuperMap.Plot.PlottingUtil.coordinateTrans(V, _, y), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(V, T, y), j = SuperMap.Plot.PlottingUtil.coordinateTrans(V, A, y), C = SuperMap.Plot.PlottingUtil.coordinateTrans(V, E, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [x, Y, j, C, x]); var I = new SuperMap.Geometry.Point(0, -m), G = SuperMap.Plot.PlottingUtil.coordinateTrans(h, I, y), B = new SuperMap.Geometry.Point(0, .25 * d), R = new SuperMap.Geometry.Point(.5 * d, 0), N = new SuperMap.Geometry.Point(0, -.25 * d), D = new SuperMap.Geometry.Point(-.5 * d, 0), k = SuperMap.Plot.PlottingUtil.coordinateTrans(G, B, y), z = SuperMap.Plot.PlottingUtil.coordinateTrans(G, R, y), F = SuperMap.Plot.PlottingUtil.coordinateTrans(G, N, y), K = SuperMap.Plot.PlottingUtil.coordinateTrans(G, D, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [k, z, F, K, k]), this.addScalePoint(p, 0); var q = SuperMap.Plot.PlottingUtil.circlePoint(p, a, a, P + n); this.addScalePoint(q, 1); var W = new SuperMap.Geometry.Point(0, -m), J = SuperMap.Plot.PlottingUtil.coordinateTrans(h, W, y); this.addScalePoint(J, 2); var Z = new SuperMap.Geometry.Point(-.5 * d, 0), H = SuperMap.Plot.PlottingUtil.coordinateTrans(V, Z, y); this.addScalePoint(H, 3), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, a, r, s, p, u, c, P, S, h = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (h = SuperMap.Plot.PlottingUtil.clearSamePts(h), 0 === t) { for (var y = -1, f = 0, g = new SuperMap.Geometry.Point(0, 0), M = 0; M < h.length - 1; M++) { var b = []; b.push(h[M]), b.push(h[M + 1]); var m = SuperMap.Plot.PlottingUtil.projectPoint(e, h[M], h[M + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(m, b).index) { var d = SuperMap.Plot.PlottingUtil.distance(e, m); -1 == y ? (y = M, g = m, f = d) : f > d && (y = M, g = m, f = d) } } if (-1 == y || y > h.length - 1) return; n = 0; for (var v = 0; v < y; v++)n += SuperMap.Plot.PlottingUtil.distance(h[v], h[v + 1]); if ((n += SuperMap.Plot.PlottingUtil.distance(h[y], g)) < 0 || n > o) return; var O = n / o; this.scaleValues[0] = O } else if (1 === t) { a = o * this.scaleValues[0]; var U = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, a); if (-1 === U.index) return; s = r = U.pt, p = h[U.index], u = h[U.index + 1], c = SuperMap.Plot.PlottingUtil.radian(p, u); var w = SuperMap.Plot.PlottingUtil.radian(s, e) - c; this.scaleValues[1] = w; var L = (n = SuperMap.Plot.PlottingUtil.distance(r, e)) / o; this.scaleValues[2] = L } else if (2 === t) { if (a = o * this.scaleValues[0], P = 180 * this.scaleValues[1] / Math.PI, n = o * this.scaleValues[2], -1 === (r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, a)).index) return; s = r.pt, p = h[r.index], u = h[r.index + 1], c = 180 * SuperMap.Plot.PlottingUtil.radian(p, u) / Math.PI, S = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, c + P - 180); var V = SuperMap.Plot.PlottingUtil.distance(e, S) / (.4 * n); this.scaleValues[5] = V } else if (3 === t) { if (a = o * this.scaleValues[0], P = 180 * this.scaleValues[1] / Math.PI, n = o * this.scaleValues[2], -1 === (r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, a)).index) return; s = r.pt, p = h[r.index], u = h[r.index + 1], c = 180 * SuperMap.Plot.PlottingUtil.radian(p, u) / Math.PI, S = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, c + P - 180); var _ = .4 * n * this.scaleValues[5], T = SuperMap.Plot.PlottingUtil.circlePoint(S, _, _, c + P + 90), A = 2 * SuperMap.Plot.PlottingUtil.distance(T, e) / (.4 * n); if (this.scaleValues[5] - .25 * A <= 0) return; this.scaleValues[6] = A } } } }]), e }(); SuperMap.Plot.AlgoSymbol30102 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.125), l.scaleValues.push(Math.PI / 2)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); t = SuperMap.Plot.PlottingUtil.clearSamePts(t); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); if (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.125), this.scaleValues.push(Math.PI / 2)), 3 === this.scaleValues.length && this.scaleValues.push(this.getSubSymbolScaleValue()), !(t.length < this.minEditPts)) { for (var l = 0, o = 0; o < t.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(t[o], t[o + 1]); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[1] = i, this.scaleValues[3] = i } var n = this.scaleValues[1], a = 180 * this.scaleValues[2] / Math.PI, r = l * this.scaleValues[0], s = l * this.scaleValues[3], p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, r); if (-1 !== p.index) { var u = p.pt, c = e[p.index], P = e[p.index + 1], S = SuperMap.Plot.PlottingUtil.radian(c, P) * SuperMap.Plot.PlottingUtil.RTOD, h = SuperMap.Plot.PlottingUtil.circlePoint(u, s, s, S + a); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p.pt, h]); var y, f = SuperMap.Plot.PlottingUtil.radian(u, h) * SuperMap.Plot.PlottingUtil.RTOD, g = l * n; 0 < this.subSymbols.length && (y = SuperMap.Plot.PlottingUtil.circlePoint(u, s, s, S + a + 180), this.computeSubSymbol(this.subSymbols[0], y, .8 * g, S + a - 180), this.addScalePoint(SuperMap.Plot.PlottingUtil.circlePoint(y, .5 * g, .5 * g, S + a + 90), 1)), y = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 30); var M = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 33), b = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h, y, M]); b = SuperMap.Plot.PlottingUtil.clearSamePts(b); var m = SuperMap.Plot.PlottingUtil.polylineDistance(b), d = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.9 * m, b); if (-1 !== d.index) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b.slice(0, d.index)); var v = SuperMap.Plot.PlottingUtil.radian(h, y) * SuperMap.Plot.PlottingUtil.RTOD, O = new SuperMap.Geometry.Point(-.2 * s, .05 * s), U = new SuperMap.Geometry.Point(-.2 * s, -.05 * s), w = SuperMap.Plot.PlottingUtil.coordinateTrans(y, O, v + 17), L = SuperMap.Plot.PlottingUtil.coordinateTrans(y, U, v + 17), V = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [y, w, L], V); var _ = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 330), T = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 327), A = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h, _, T]); A = SuperMap.Plot.PlottingUtil.clearSamePts(A), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A.slice(0, d.index)); var E = SuperMap.Plot.PlottingUtil.radian(h, _) * SuperMap.Plot.PlottingUtil.RTOD, x = SuperMap.Plot.PlottingUtil.coordinateTrans(_, O, E - 17), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(_, U, E - 17); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [_, x, Y], V), this.addScalePoint(u, 0), this.addScalePoint(h, 2), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, a, r, s, p = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (p = SuperMap.Plot.PlottingUtil.clearSamePts(p), 0 === t) { for (var u = [], c = 0; c < p.length; c++)u.push(new SuperMap.Geometry.Point(p[c].x, p[c].y)); for (var P = -1, S = 0, h = new SuperMap.Geometry.Point(0, 0), y = 0; y < u.length - 1; y++) { var f = []; f.push(u[y]), f.push(u[y + 1]); var g = SuperMap.Plot.PlottingUtil.projectPoint(e, u[y], u[y + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(g, f).index) { var M = SuperMap.Plot.PlottingUtil.distance(e, g); -1 == P ? (P = y, h = g, S = M) : S > M && (P = y, h = g, S = M) } } if (-1 == P || P > u.length - 1) return; for (var b = 0, m = 0; m < P; m++)b += SuperMap.Plot.PlottingUtil.distance(p[m], p[m + 1]); if ((b += SuperMap.Plot.PlottingUtil.distance(p[P], h)) < 0 || b > o) return; var d = b / o; this.scaleValues[0] = d } else if (1 === t) { var v = SuperMap.Plot.PlottingUtil.findPointInPolyLine(p, o * this.scaleValues[0]); if (-1 === v.index) return; n = v.pt, a = p[v.index], r = p[v.index + 1], s = SuperMap.Plot.PlottingUtil.radian(a, r) * SuperMap.Plot.PlottingUtil.RTOD; var O = o * this.scaleValues[3], U = SuperMap.Plot.PlottingUtil.circlePoint(n, O, O, s + this.scaleValues[2] * SuperMap.Plot.PlottingUtil.RTOD + 180), w = SuperMap.Plot.PlottingUtil.distance(U, e) / o * 2; this.scaleValues[1] = w } else if (2 === t) { var L = o * this.scaleValues[0], V = SuperMap.Plot.PlottingUtil.findPointInPolyLine(p, L); if (-1 === V.index) return; n = V.pt, a = p[V.index], r = p[V.index + 1], s = SuperMap.Plot.PlottingUtil.radian(a, r); var _ = SuperMap.Plot.PlottingUtil.radian(n, e) - s; this.scaleValues[2] = _ } } } }]), e }(); SuperMap.Plot.AlgoSymbol30800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30201 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30200), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(1e3), this.scaleValues.push(.2), this.scaleValues.push(.1)), 3 === this.scaleValues.length && this.scaleValues.push(.5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l), 0 == this.scaleValues.length ? (this.scaleValues.push(1e3), this.scaleValues.push(.2), this.scaleValues.push(.1), this.scaleValues.push(.05)) : 3 == this.scaleValues.length && (this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[1] = 2 * this.getSubSymbolScaleValue(), this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()); var o = e * this.scaleValues[1], i = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, o); if (-1 !== i.index) { var n = t[0], a = i.pt, r = SuperMap.Plot.PlottingUtil.radian(n, a) * SuperMap.Plot.PlottingUtil.RTOD, s = new SuperMap.Geometry.Point(0, .1 * o), p = new SuperMap.Geometry.Point(.4 * o, .1 * o), u = new SuperMap.Geometry.Point(.4 * o, -.1 * o), c = new SuperMap.Geometry.Point(0, -.1 * o), P = SuperMap.Plot.PlottingUtil.coordinateTrans(n, s, r), S = SuperMap.Plot.PlottingUtil.coordinateTrans(n, p, r), h = SuperMap.Plot.PlottingUtil.coordinateTrans(n, u, r), y = SuperMap.Plot.PlottingUtil.coordinateTrans(n, c, r), f = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, S, h, y, P], f); var g = new SuperMap.Geometry.Point(.3 * o, .1 * o), M = new SuperMap.Geometry.Point(.3 * o, -.1 * o), b = SuperMap.Plot.PlottingUtil.coordinateTrans(n, g, r), m = SuperMap.Plot.PlottingUtil.coordinateTrans(n, M, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [b, m]); var d = new SuperMap.Geometry.Point(.4 * o, 0), v = new SuperMap.Geometry.Point(.8 * o, 0), O = SuperMap.Plot.PlottingUtil.coordinateTrans(n, d, r), U = SuperMap.Plot.PlottingUtil.coordinateTrans(n, v, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [O, U]); var w = new SuperMap.Geometry.Point(.7 * o, .025 * o), L = new SuperMap.Geometry.Point(.7 * o, -.025 * o), V = SuperMap.Plot.PlottingUtil.coordinateTrans(n, w, r), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(n, L, r); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [U, V, _], f); var T = []; T.push(i.pt); for (var A = i.index + 1; A < l.length; A++)T.push(l[A]); this.addArrow(T, this.scaleValues[3]), this.components[this.components.length - 2].style.strokeDashstyle = "dash", this.components[this.components.length - 2].style.lineSymbolID = 1, this.components[this.components.length - 2].style.lineTypeLimit = !0; var E = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, r + 90); this.addScalePoint(E, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol30201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(1e3), l.scaleValues.push(.2), l.scaleValues.push(.1), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length ? (this.scaleValues.push(1e3), this.scaleValues.push(.2), this.scaleValues.push(.1), this.scaleValues.push(.05)) : 3 == this.scaleValues.length && (this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[1] = 2 * this.getSubSymbolScaleValue(), this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = e * this.scaleValues[1], i = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, o); if (-1 !== i.index) { var n = t[0], a = i.pt, r = SuperMap.Plot.PlottingUtil.radian(n, a) * SuperMap.Plot.PlottingUtil.RTOD, s = new SuperMap.Geometry.Point(0, .1 * o), p = new SuperMap.Geometry.Point(.4 * o, .1 * o), u = new SuperMap.Geometry.Point(.4 * o, -.1 * o), c = new SuperMap.Geometry.Point(0, -.1 * o), P = SuperMap.Plot.PlottingUtil.coordinateTrans(n, s, r), S = SuperMap.Plot.PlottingUtil.coordinateTrans(n, p, r), h = SuperMap.Plot.PlottingUtil.coordinateTrans(n, u, r), y = SuperMap.Plot.PlottingUtil.coordinateTrans(n, c, r), f = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, S, h, y, P], f); var g = .1 * o, M = new SuperMap.Geometry.Point(.3 * o, 0), b = SuperMap.Plot.PlottingUtil.circlePoint(M, g, g, 135), m = SuperMap.Plot.PlottingUtil.circlePoint(M, g, g, 225), d = SuperMap.Plot.PlottingUtil.coordinateTrans(n, M, r), v = SuperMap.Plot.PlottingUtil.coordinateTrans(n, b, r), O = SuperMap.Plot.PlottingUtil.coordinateTrans(n, m, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [v, d, O]); var U = new SuperMap.Geometry.Point(.9 * o, 0), w = SuperMap.Plot.PlottingUtil.coordinateTrans(n, U, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [d, w]); var L = new SuperMap.Geometry.Point(.8 * o, .025 * o), V = new SuperMap.Geometry.Point(.8 * o, -.025 * o), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(n, L, r), T = SuperMap.Plot.PlottingUtil.coordinateTrans(n, V, r); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [w, _, T], f); var A = []; A.push(i.pt); for (var E = i.index + 1; E < l.length; E++)A.push(l[E]); this.addArrow(A, this.scaleValues[3]), this.components[this.components.length - 2].style.strokeDashstyle = "dash", this.components[this.components.length - 2].style.lineSymbolID = 1, this.components[this.components.length - 2].style.lineTypeLimit = !0; var x = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, r + 90); this.addScalePoint(x, 0), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n = l[0], a = e, r = SuperMap.Plot.PlottingUtil.distance(a, n); if (0 === t) { var s = r / o; if (.06 > s || .3 < s) return; this.scaleValues[1] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol30200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.069485), l.scaleValues.push(.15), l.scaleValues.push(.1), l.scaleValues.push(1.731025), l.scaleValues.push(2.076877)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var i = e * this.scaleValues[0], n = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD, a = e * this.scaleValues[2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== r.index) { var s = r.pt, p = r.index, u = s, c = o[p], P = o[p + 1], S = SuperMap.Plot.PlottingUtil.radian(c, P) * SuperMap.Plot.PlottingUtil.RTOD, h = SuperMap.Plot.PlottingUtil.circlePoint(u, 1.5 * a, 1.5 * a, S + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, h]); var y = SuperMap.Plot.PlottingUtil.radian(u, h) * SuperMap.Plot.PlottingUtil.RTOD, f = new SuperMap.Geometry.Point(-.2 * a, .05 * a), g = new SuperMap.Geometry.Point(-.2 * a, -.05 * a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(h, f, y), b = SuperMap.Plot.PlottingUtil.coordinateTrans(h, g, y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [h, M, b], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var m = new SuperMap.Geometry.Point(.6 * a, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(u, m, y), v = .4 * a * this.scaleValues[5], O = .4 * a * this.scaleValues[6], U = new SuperMap.Geometry.Point(0, -.9 * (v - .25 * O)), w = new SuperMap.Geometry.Point(0, .9 * (v - .25 * O)), L = SuperMap.Plot.PlottingUtil.coordinateTrans(d, U, y), V = SuperMap.Plot.PlottingUtil.coordinateTrans(d, w, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [L, V]); var _ = new SuperMap.Geometry.Point(0, v), T = SuperMap.Plot.PlottingUtil.coordinateTrans(d, _, y), A = new SuperMap.Geometry.Point(0, .25 * O), E = new SuperMap.Geometry.Point(.5 * O, 0), x = new SuperMap.Geometry.Point(0, -.25 * O), Y = new SuperMap.Geometry.Point(-.5 * O, 0), j = SuperMap.Plot.PlottingUtil.coordinateTrans(T, A, y), C = SuperMap.Plot.PlottingUtil.coordinateTrans(T, E, y), I = SuperMap.Plot.PlottingUtil.coordinateTrans(T, x, y), G = SuperMap.Plot.PlottingUtil.coordinateTrans(T, Y, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [j, C, I, G, j]); var B = new SuperMap.Geometry.Point(0, -v), R = SuperMap.Plot.PlottingUtil.coordinateTrans(d, B, y), N = SuperMap.Plot.PlottingUtil.coordinateTrans(R, A, y), D = SuperMap.Plot.PlottingUtil.coordinateTrans(R, E, y), k = SuperMap.Plot.PlottingUtil.coordinateTrans(R, x, y), z = SuperMap.Plot.PlottingUtil.coordinateTrans(R, Y, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [N, D, k, z, N]), this.addScalePoint(s, 0), this.addScalePoint(h, 1); var F = new SuperMap.Geometry.Point(0, -v), K = SuperMap.Plot.PlottingUtil.coordinateTrans(d, F, y); this.addScalePoint(K, 2), this.addScalePoint(G, 3), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, a, r, s, p, u, c, P, S, h = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (h = SuperMap.Plot.PlottingUtil.clearSamePts(h), 0 === t) { for (var y = [], f = 0; f < h.length; f++)y.push(new SuperMap.Geometry.Point(h[f].x, h[f].y)); for (var g = -1, M = 0, b = new SuperMap.Geometry.Point(0, 0), m = 0; m < y.length - 1; m++) { var d = []; d.push(y[m]), d.push(y[m + 1]); var v = SuperMap.Plot.PlottingUtil.projectPoint(e, y[m], y[m + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(v, d).index) { var O = SuperMap.Plot.PlottingUtil.distance(e, v); -1 == g ? (g = m, b = v, M = O) : M > O && (g = m, b = v, M = O) } } if (-1 == g || g > y.length - 1) return; n = 0; for (var U = 0; U < g; U++)n += SuperMap.Plot.PlottingUtil.distance(h[U], h[U + 1]); if ((n += SuperMap.Plot.PlottingUtil.distance(h[g], b)) < 0 || n > o) return; var w = n / o; this.scaleValues[0] = w } else if (1 === t) { a = o * this.scaleValues[0]; var L = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, a); if (-1 === L.index) return; r = L.pt, s = h[L.index], p = h[L.index + 1], u = SuperMap.Plot.PlottingUtil.radian(s, p); var V = (S = SuperMap.Plot.PlottingUtil.radian(r, e)) - u; this.scaleValues[1] = V; var _ = (n = SuperMap.Plot.PlottingUtil.distance(r, e)) / o / 1.5; this.scaleValues[2] = _ } else if (2 === t) { if (a = o * this.scaleValues[0], c = 180 * this.scaleValues[1] / Math.PI, n = o * this.scaleValues[2], -1 === (r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, a)).index) return; P = r.pt, s = h[r.index], p = h[r.index + 1], u = 180 * SuperMap.Plot.PlottingUtil.radian(s, p) / Math.PI; var T = SuperMap.Plot.PlottingUtil.circlePoint(P, .4 * n, .4 * n, u + c), A = SuperMap.Plot.PlottingUtil.distance(e, T) / (.4 * n); this.scaleValues[5] = A } else if (3 === t) { if (a = o * this.scaleValues[0], c = 180 * this.scaleValues[1] / Math.PI, n = o * this.scaleValues[2], -1 === (r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, a)).index) return; P = r.pt, s = h[r.index], p = h[r.index + 1], S = (u = 180 * SuperMap.Plot.PlottingUtil.radian(s, p) / Math.PI) + c; var E = new SuperMap.Geometry.Point(.6 * n, 0), x = SuperMap.Plot.PlottingUtil.coordinateTrans(P, E, S), Y = .4 * n * this.scaleValues[5], j = new SuperMap.Geometry.Point(0, Y), C = SuperMap.Plot.PlottingUtil.coordinateTrans(x, j, S), I = 2 * SuperMap.Plot.PlottingUtil.distance(C, e) / (.4 * n); this.scaleValues[6] = I } } } }]), e }(); SuperMap.Plot.AlgoSymbol30100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30002 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30001), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getSubSymbolScaleValue(); this.scaleValues[2] = o, this.scaleValues[4] = o } var i = l * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI, a = l * this.scaleValues[2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, i); if (-1 !== r.index) { var s = r.pt, p = new SuperMap.Geometry.Point(e[r.index].x, e[r.index].y), u = new SuperMap.Geometry.Point(e[r.index + 1].x, e[r.index + 1].y), c = 180 * SuperMap.Plot.PlottingUtil.radian(p, u) / Math.PI, P = SuperMap.Plot.PlottingUtil.circlePoint(s, a, a, c + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, P]); var S = 180 * SuperMap.Plot.PlottingUtil.radian(s, P) / Math.PI, h = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * a, .2 * a, S - 157.5), y = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * a, .2 * a, S + 157.5); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [P, h, y], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); for (var f = 4.5 * (l * this.scaleValues[4]) * Math.sin(Math.PI / 8), g = this.getLeftSubSymbolPts(f), M = e[0].clone(), b = -1, m = null, d = 1; d < e.length; d++)if (SuperMap.Plot.PlottingUtil.distance(M, e[d]) > .5 * f) { b = d - 1, m = SuperMap.Plot.PlottingUtil.linePnt(M, e[d], .5 * f); break } -1 === b && (b = e.length - 1, m = e[e.length - 1]); var v = null; if (null !== m) { for (var O = 180 * SuperMap.Plot.PlottingUtil.radian(M, m) / Math.PI, U = [], w = 0; w < g.length; w++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(M, g[w], O)); v = U[3].clone(), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U) } for (var L = this.getRightSubSymbolPts(f), V = e[e.length - 1].clone(), _ = -1, T = null, A = e.length - 2; A >= 0; A--)if (SuperMap.Plot.PlottingUtil.distance(V, e[A]) > .5 * f) { _ = A, T = SuperMap.Plot.PlottingUtil.linePnt(V, e[A], .5 * f); break } if (-1 === _ && (_ = 0, T = e[0]), null !== T) { for (var E = 180 * SuperMap.Plot.PlottingUtil.radian(V, T) / Math.PI, x = [], Y = 0; Y < L.length; Y++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(V, L[Y], E)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, x) } if (b <= _) { var j = []; j.push(m); for (var C = b + 1; C <= _; C++)j.push(e[C]); j.push(T), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, j) } this.addScalePoint(s), this.addScalePoint(P), null !== v && this.addScalePoint(v), this.finish() } } } }, { key: "getRightSubSymbolPts", value: function (t) { var e = .25 * t, l = []; return l.push(new SuperMap.Geometry.Point(0, 2 * e)), l.push(new SuperMap.Geometry.Point(2 * e, 2 * e)), l.push(new SuperMap.Geometry.Point(2 * e, -e)), l.push(new SuperMap.Geometry.Point(0, -2 * e)), l.push(new SuperMap.Geometry.Point(0, 2 * e)), l } }]), e }(); SuperMap.Plot.AlgoSymbol30002 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getSubSymbolScaleValue(); (o > .2 || o <= 0) && (o = .2), this.scaleValues[2] = o, this.scaleValues[4] = o } var i = l * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI, a = l * this.scaleValues[2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, i); if (-1 !== r.index) { var s = r.pt, p = new SuperMap.Geometry.Point(e[r.index].x, e[r.index].y), u = new SuperMap.Geometry.Point(e[r.index + 1].x, e[r.index + 1].y), c = 180 * SuperMap.Plot.PlottingUtil.radian(p, u) / Math.PI, P = SuperMap.Plot.PlottingUtil.circlePoint(s, a, a, c + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, P]); var S = 180 * SuperMap.Plot.PlottingUtil.radian(s, P) / Math.PI, h = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * a, .2 * a, S - 157.5), y = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * a, .2 * a, S + 157.5); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [P, h, y], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); for (var f = 4.5 * (l * this.scaleValues[4]) * Math.sin(Math.PI / 8), g = this.getLeftSubSymbolPts(f), M = e[0].clone(), b = -1, m = null, d = 1; d < e.length; d++)if (SuperMap.Plot.PlottingUtil.distance(M, e[d]) > .5 * f) { b = d - 1, m = SuperMap.Plot.PlottingUtil.linePnt(M, e[d], .5 * f); break } -1 === b && (b = e.length - 1, m = e[e.length - 1]); var v = null; if (null !== m) { for (var O = 180 * SuperMap.Plot.PlottingUtil.radian(M, m) / Math.PI, U = [], w = 0; w < g.length; w++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(M, g[w], O)); v = U[3].clone(), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U) } for (var L = this.getRightSubSymbolPts(f), V = e[e.length - 1].clone(), _ = -1, T = null, A = e.length - 2; A >= 0; A--)if (SuperMap.Plot.PlottingUtil.distance(V, e[A]) > .5 * f) { _ = A, T = SuperMap.Plot.PlottingUtil.linePnt(V, e[A], .5 * f); break } if (-1 === _ && (_ = 0, T = e[0]), null !== T) { for (var E = 180 * SuperMap.Plot.PlottingUtil.radian(V, T) / Math.PI, x = [], Y = 0; Y < L.length; Y++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(V, L[Y], E)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, x) } if (b <= _) { var j = []; j.push(m); for (var C = b + 1; C <= _; C++)j.push(e[C]); j.push(T), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, j) } this.addScalePoint(s), this.addScalePoint(P), null !== v && this.addScalePoint(v), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var a = -1, r = 0, s = new SuperMap.Geometry.Point(0, 0), p = 0; p < o.length - 1; p++) { var u = []; u.push(o[p]), u.push(o[p + 1]); var c = SuperMap.Plot.PlottingUtil.projectPoint(e, o[p], o[p + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c, u).index) { var P = SuperMap.Plot.PlottingUtil.distance(e, c); isNaN(P) || (-1 == a ? (a = p, s = c, r = P) : r > P && (a = p, s = c, r = P)) } } if (-1 === a || a > o.length - 1) return; i = 0; for (var S = 0; S < a; S++)i += SuperMap.Plot.PlottingUtil.distance(o[S], o[S + 1]); if ((i += SuperMap.Plot.PlottingUtil.distance(o[a], s)) < 0 || i > n) return; var h = i / n; this.scaleValues[0] = h } else if (1 === t) { var y = n * this.scaleValues[0], f = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, y); if (-1 === f.index) return; var g = f.pt, M = o[f.index], b = o[f.index + 1], m = SuperMap.Plot.PlottingUtil.radian(M, b), d = SuperMap.Plot.PlottingUtil.radian(g, e) - m; this.scaleValues[1] = d; var v = (i = SuperMap.Plot.PlottingUtil.distance(g, e)) / n; this.scaleValues[2] = v } else if (2 === t) { var O = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / n; O > .35 && (O = .35), this.scaleValues[4] = O } } } }, { key: "getLeftSubSymbolPts", value: function (t) { var e = .25 * t, l = [], o = new SuperMap.Geometry.Point(0, 0), i = new SuperMap.Geometry.Point(e, -2 * e), n = new SuperMap.Geometry.Point(2 * e, 0), a = new SuperMap.Geometry.Point(e, 2 * e); return l.push(o), l.push(i), l.push(n), l.push(a), l.push(o), l } }, { key: "getRightSubSymbolPts", value: function (t) { return this.getLeftSubSymbolPts(t) } }]), e }(); SuperMap.Plot.AlgoSymbol30001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); var i = e * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI; if (!this.isEdit) { var a = this.getSubSymbolScaleValue(); this.scaleValues[2] = a } var r = e * this.scaleValues[2], s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== s.index) { var p = s.pt, u = new SuperMap.Geometry.Point(o[s.index].x, o[s.index].y), c = new SuperMap.Geometry.Point(o[s.index + 1].x, o[s.index + 1].y), P = 180 * SuperMap.Plot.PlottingUtil.radian(u, c) / Math.PI, S = SuperMap.Plot.PlottingUtil.circlePoint(p, r, r, P + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p, S]); var h = 180 * SuperMap.Plot.PlottingUtil.radian(p, S) / Math.PI, y = new SuperMap.Geometry.Point(-.2 * r, .05 * r), f = new SuperMap.Geometry.Point(-.2 * r, -.05 * r), g = SuperMap.Plot.PlottingUtil.coordinateTrans(S, y, h), M = SuperMap.Plot.PlottingUtil.coordinateTrans(S, f, h); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [S, g, M], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }), this.addScalePoint(p, 0), this.addScalePoint(S, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var a = -1, r = 0, s = new SuperMap.Geometry.Point(0, 0), p = 0; p < o.length - 1; p++) { var u = []; u.push(o[p]), u.push(o[p + 1]); var c = SuperMap.Plot.PlottingUtil.projectPoint(e, o[p], o[p + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c, u).index) { var P = SuperMap.Plot.PlottingUtil.distance(e, c); -1 == a ? (a = p, s = c, r = P) : r > P && (a = p, s = c, r = P) } } if (-1 == a || a > o.length - 1) return; i = 0; for (var S = 0; S < a; S++)i += SuperMap.Plot.PlottingUtil.distance(o[S], o[S + 1]); if ((i += SuperMap.Plot.PlottingUtil.distance(o[a], s)) < 0 || i > n) return; var h = i / n; this.scaleValues[0] = h } else if (1 === t) { var y = n * this.scaleValues[0], f = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, y); if (-1 === f.index) return; var g = f.pt, M = o[f.index], b = o[f.index + 1], m = SuperMap.Plot.PlottingUtil.radian(M, b), d = SuperMap.Plot.PlottingUtil.radian(g, e) - m; this.scaleValues[1] = d; var v = (i = SuperMap.Plot.PlottingUtil.distance(g, e)) / n; this.scaleValues[2] = v } } } }]), e }(); SuperMap.Plot.AlgoSymbol30000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29903 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .05, l.scaleValues[2] = .02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .05, this.scaleValues[2] = .02) : 1 === this.scaleValues.length ? (this.scaleValues[1] = this.getSubSymbolScaleValue(), this.scaleValues[2] = .5 * this.getSubSymbolScaleValue()) : 2 === this.scaleValues.length && (this.scaleValues[2] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = this.getSubSymbolScaleValue(), this.scaleValues[2] = .5 * this.getSubSymbolScaleValue() } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, r, a - 180); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); if (this.addArrow(p, this.scaleValues[2]), p.length >= 2) { var P = l * this.scaleValues[1], S = .3 * P, h = .8 * P, y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l - h, e), f = 1.1 * P, g = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l - f, e), M = 180 * SuperMap.Plot.PlottingUtil.radian(y.pts, g.pts) / Math.PI, b = SuperMap.Plot.PlottingUtil.circlePoint(y.pts, S, S, M + 90), m = SuperMap.Plot.PlottingUtil.circlePoint(y.pts, S, S, M + 270), d = SuperMap.Plot.PlottingUtil.circlePoint(g.pts, S, S, M + 90), v = SuperMap.Plot.PlottingUtil.circlePoint(g.pts, S, S, M + 270), O = []; O.push(b), O.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), (O = []).push(d), O.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O) } } var U = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), w = SuperMap.Plot.PlottingUtil.circlePoint(U.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, a + 90); this.addScalePoint(w, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .4 ? a : .4 } } }]), e }(); SuperMap.Plot.AlgoSymbol29903 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 10 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.2), l.scaleValues.push(.2), l.scaleValues.push(.4), l.scaleValues.push(.4), l.scaleValues.push(.1), l.scaleValues.push(.2), l.scaleValues.push(.1), l.scaleValues.push(.2), l.scaleValues.push(1), l.scaleValues.push(1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var o, i = e * this.scaleValues[4], n = e * this.scaleValues[5], a = SuperMap.Plot.PlottingUtil.distance(t[1], t[0]), r = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], a + n); o = (this.scaleValues[8], SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[1], r)); var s, p = e * this.scaleValues[6], u = e * this.scaleValues[7], c = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], a + u); s = (this.scaleValues[9], SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, t[0], c)); var P = []; P.push(new SuperMap.Geometry.Point(o.pntLeft.x, o.pntLeft.y)), P.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), P.push(new SuperMap.Geometry.Point(t[1].x, t[1].y)), P.push(new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)); var S = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(P); S = SuperMap.Plot.PlottingUtil.clearSamePts(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), this.addScalePoint(o.pntLeft, 3), this.addScalePoint(s.pntRight, 4), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.projectPoint(e, l[0], l[1]); if (t <= 2 && SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments), 3 === t) { var n = SuperMap.Plot.PlottingUtil.distance(e, i) / o, a = SuperMap.Plot.PlottingUtil.distance(i, l[0]) / o; this.scaleValues[4] = n, this.scaleValues[5] = a, SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e) ? this.scaleValues[8] = 1 : this.scaleValues[8] = 0 } if (4 === t) { var r = SuperMap.Plot.PlottingUtil.distance(e, i) / o, s = SuperMap.Plot.PlottingUtil.distance(i, l[1]) / o; this.scaleValues[6] = r, this.scaleValues[7] = s, SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e) ? this.scaleValues[9] = 1 : this.scaleValues[9] = 0 } } } }]), e }(); SuperMap.Plot.AlgoSymbol29800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var a = new SuperMap.Geometry.Point(t[0].x, t[0].y), r = new SuperMap.Geometry.Point(t[1].x, t[1].y), s = 180 * SuperMap.Plot.PlottingUtil.radian(a, r) / Math.PI, p = a, u = i[0], c = []; c.push(p), c.push(u), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c); var P = new SuperMap.Geometry.Point(0, .8 * o), S = new SuperMap.Geometry.Point(0, -.8 * o), h = SuperMap.Plot.PlottingUtil.coordinateTrans(p, P, s), y = SuperMap.Plot.PlottingUtil.coordinateTrans(p, S, s); (c = []).push(h), c.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var f = new SuperMap.Geometry.Point(-.3 * o, .4 * o), g = new SuperMap.Geometry.Point(-.3 * o, -.4 * o), M = SuperMap.Plot.PlottingUtil.coordinateTrans(p, f, s), b = SuperMap.Plot.PlottingUtil.coordinateTrans(p, g, s); (c = []).push(M), c.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var m = new SuperMap.Geometry.Point(.3 * o, .4 * o), d = new SuperMap.Geometry.Point(.3 * o, -.4 * o), v = SuperMap.Plot.PlottingUtil.coordinateTrans(p, m, s), O = SuperMap.Plot.PlottingUtil.coordinateTrans(p, d, s); (c = []).push(v), c.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var U = new SuperMap.Geometry.Point((a.x + r.x) / 2, (a.y + r.y) / 2), w = new SuperMap.Geometry.Point((i[0].x + i[i.length - 1].x) / 2, (i[i.length - 1].y + i[0].y) / 2); (c = []).push(U), c.push(w), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c); var L = SuperMap.Plot.PlottingUtil.coordinateTrans(U, P, s), V = SuperMap.Plot.PlottingUtil.coordinateTrans(U, S, s); (c = []).push(L), c.push(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var _ = SuperMap.Plot.PlottingUtil.coordinateTrans(U, f, s), T = SuperMap.Plot.PlottingUtil.coordinateTrans(U, g, s); (c = []).push(_), c.push(T), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var A = SuperMap.Plot.PlottingUtil.coordinateTrans(U, m, s), E = SuperMap.Plot.PlottingUtil.coordinateTrans(U, d, s); (c = []).push(A), c.push(E), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var x = r, Y = i[i.length - 1]; (c = []).push(x), c.push(Y), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c); var j = SuperMap.Plot.PlottingUtil.coordinateTrans(x, P, s), C = SuperMap.Plot.PlottingUtil.coordinateTrans(x, S, s); (c = []).push(j), c.push(C), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var I = SuperMap.Plot.PlottingUtil.coordinateTrans(x, f, s), G = SuperMap.Plot.PlottingUtil.coordinateTrans(x, g, s); (c = []).push(I), c.push(G), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var B = SuperMap.Plot.PlottingUtil.coordinateTrans(x, m, s), R = SuperMap.Plot.PlottingUtil.coordinateTrans(x, d, s); (c = []).push(B), c.push(R), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), this.addScalePoint(i[0], 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n = new SuperMap.Geometry.Point(l[0].x, l[0].y), a = new SuperMap.Geometry.Point(e.x, e.y), r = SuperMap.Plot.PlottingUtil.distance(n, a) / o; this.scaleValues[0] = r } } }]), e }(); SuperMap.Plot.AlgoSymbol29401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29103 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol29100), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = []; o = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o); for (var i = 0; i < 4; i++) { var n = i * (o.length - 1) / 4, a = new SuperMap.Geometry.Point(o[n].x, o[n].y), r = new SuperMap.Geometry.Point(o[n + 1].x, o[n + 1].y), s = new SuperMap.Geometry.Point((a.x + r.x) / 2, (a.y + r.y) / 2), p = 180 * SuperMap.Plot.PlottingUtil.radian(s, r) / Math.PI, u = e * this.scaleValues[0] / 2, c = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p), P = SuperMap.Plot.PlottingUtil.circlePoint(s, 4 * u, 4 * u, p + 270), S = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 180); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [c, P, S], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29103 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29101 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol29100), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .25 * this.getSubSymbolScaleValue()); var l = []; l = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l); for (var o = 0; o < 4; o++) { var i = o * (l.length - 1) / 4, n = new SuperMap.Geometry.Point(l[i].x, l[i].y), a = new SuperMap.Geometry.Point(l[i + 1].x, l[i + 1].y), r = new SuperMap.Geometry.Point((n.x + a.x) / 2, (n.y + a.y) / 2), s = SuperMap.Plot.PlottingUtil.radian(r, a) * SuperMap.Plot.PlottingUtil.RTOD, p = this.scaleValues[0] * e / 2, u = SuperMap.Plot.PlottingUtil.circlePoint(r, p, p, s), c = SuperMap.Plot.PlottingUtil.circlePoint(r, 4 * p, 4 * p, s + 270), P = SuperMap.Plot.PlottingUtil.circlePoint(r, p, p, s + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c, P]) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .25 * this.getSubSymbolScaleValue()); var l = []; l = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l); for (var o = 0; o < 4; o++) { var i = Math.floor(o * l.length / 4), n = new SuperMap.Geometry.Point(l[i].x, l[i].y), a = new SuperMap.Geometry.Point(l[i + 1].x, l[i + 1].y), r = new SuperMap.Geometry.Point((n.x + a.x) / 2, (n.y + a.y) / 2), s = SuperMap.Plot.PlottingUtil.radian(a, r) * SuperMap.Plot.PlottingUtil.RTOD, p = this.scaleValues[0] * e / 2, u = SuperMap.Plot.PlottingUtil.circlePoint(r, p, p, s), c = SuperMap.Plot.PlottingUtil.circlePoint(r, 4 * p, 4 * p, s + 270), P = SuperMap.Plot.PlottingUtil.circlePoint(r, p, p, s + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c, P], { lineTypeLimit: !0, surroundLineLimit: !0 }) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29003 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.02), this.scaleValues.push(0)), this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); for (var l, o, i = SuperMap.Plot.PlottingUtil.polylineDistance(e), n = this.scaleValues[0], a = this.scaleValues[1], r = SuperMap.Plot.PlottingUtil.polylineDistance(t), s = n * r, p = .083 * r, u = 0, c = .01 * r, P = 0, S = 0; S <= i; S += p) { if (1 == P || 11 == P || 6 == P) { u = S + c; var h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(u, e); if (!h.bfind) return; l = h.index, o = h.pts; var y = [], f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[l], o); 0 == a ? y.push(f.pntLeft) : y.push(f.pntRight), 1 == P && (this.scalePoints = [], this.addScalePoint(y[0])), y.push(o); var g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, y[0], y[1]), M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, y[1], y[0]), b = []; b.push(g.pntLeft), b.push(g.pntRight), b.push(M.pntLeft), b.push(M.pntRight), b.push(g.pntLeft.clone()); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b, { SurroundLineLimit: !0, lineTypeLimit: !0, fillLimit: !0, fill: !0 }) } P++ } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; if (0 == t) { var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), i = this.scaleValues[0], n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = i * n, r = .01 * n, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r, o); if (!s.bfind) return; var p = s.pts, u = s.index, c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, o[u], p).pntLeft, P = SuperMap.Plot.PlottingUtil.projectPoint(e, c, p), S = SuperMap.Plot.PlottingUtil.distance(P, p), h = SuperMap.Plot.PlottingUtil.pointIsRightToLine(P, p, e); this.scaleValues[1] = h ? 1 : 0, this.scaleValues[0] = S / n } } } }]), e }(); SuperMap.Plot.AlgoSymbol29003 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29002 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol29001), o(e, [{ key: "calculateParts", value: function () { (function t(e, l, o) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, l); if (void 0 === i) { var n = Object.getPrototypeOf(e); return null === n ? void 0 : t(n, l, o) } if ("value" in i) return i.value; var a = i.get; return void 0 !== a ? a.call(o) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "calculateParts", this).call(this) } }]), e }(); SuperMap.Plot.AlgoSymbol29002 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29001 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t.length, l = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), o = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, i = .3 * l, n = t[1].clone(), a = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], 2 * l); this.subSymbols.length > 1 && (this.computeSubSymbol(this.subSymbols[0], n, i, o), this.computeSubSymbol(this.subSymbols[1], a, i, o)); var r, s = []; 2 == e ? (r = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t), s.push.apply(s, r)) : 3 == e && (r = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), s = s.concat(r)); var p, u = new SuperMap.Geometry.Point(.8 * l, .1 * l), c = new SuperMap.Geometry.Point(1.2 * l, .1 * l), P = new SuperMap.Geometry.Point(1.2 * l, .1 * -l), S = new SuperMap.Geometry.Point(.9 * l, .1 * -l), h = []; h.push(u), h.push(c), h.push(P), h.push(S); var y = [], f = 0; for (f = 0; f < 4; f++)p = SuperMap.Plot.PlottingUtil.coordinateTrans(t[0], h[f], o), y.push(p); var g = new SuperMap.Geometry.Point(-.8 * l, .1 * l), M = new SuperMap.Geometry.Point(-1.2 * l, .1 * l), b = new SuperMap.Geometry.Point(-1.1 * l, .1 * -l), m = new SuperMap.Geometry.Point(-.8 * l, .1 * -l); (h = []).push(g), h.push(M), h.push(b), h.push(m); var d = []; for (f = 0; f < 4; f++)p = SuperMap.Plot.PlottingUtil.coordinateTrans(t[0], h[f], o), d.push(p); for (var v, O = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], 3 * l), U = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], 2 * l), w = [], L = 0; L < s.length - 1; L++) { var V = SuperMap.Plot.PlottingUtil.intersectLines(s[L], s[L + 1], O, U); V.isIntersectLines && (v = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(V.intersectPoint, s)).isOnPolyLine && w.push(V.intersectPoint) } if (!(0 >= w.length) && (v = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(w[0], s)).isOnPolyLine) { var _ = []; for (f = v.index + 1; f < s.length; f++)_.push(s[f]); for (f = 0; f <= v.index; f++)_.push(s[f]); var T = [], A = []; SuperMap.Plot.PlottingUtil.ptIsInPolygon(y, w[0]) ? (T.push.apply(T, y), A.push.apply(A, d)) : (T.push.apply(T, d), A.push.apply(A, y)); var E = [], x = []; for (v = -1, f = 0; f < _.length; f++)if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(T, _[f])) { if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(A, _[f])) { v = f; break } E.push(_[f]) } if (-1 != v) for (f = v; f < _.length; f++)if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(A, _[f])) { if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(T, _[f])) break; x.push(_[f]) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, E), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, x), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol29001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = t.length, o = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), i = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, n = []; 2 == l ? (e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t), n.push.apply(n, e)) : 3 == l && (e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), n = n.concat(e)); var a, r = new SuperMap.Geometry.Point(.8 * o, .1 * o), s = new SuperMap.Geometry.Point(1.2 * o, .1 * o), p = new SuperMap.Geometry.Point(1.2 * o, .1 * -o), u = new SuperMap.Geometry.Point(.9 * o, .1 * -o), c = []; c.push(r), c.push(s), c.push(p), c.push(u); var P = [], S = 0; for (S = 0; S < 4; S++)a = SuperMap.Plot.PlottingUtil.coordinateTrans(t[0], c[S], i), P.push(a); var h = new SuperMap.Geometry.Point(-.8 * o, .1 * o), y = new SuperMap.Geometry.Point(-1.2 * o, .1 * o), f = new SuperMap.Geometry.Point(-1.1 * o, .1 * -o), g = new SuperMap.Geometry.Point(-.8 * o, .1 * -o); (c = []).push(h), c.push(y), c.push(f), c.push(g); var M = []; for (S = 0; S < 4; S++)a = SuperMap.Plot.PlottingUtil.coordinateTrans(t[0], c[S], i), M.push(a); var b, m = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], 3 * o), d = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], 2 * o), v = []; for (S = 0; S < n.length - 1; S++) { var O = SuperMap.Plot.PlottingUtil.intersectLines(n[S], n[S + 1], m, d); O.isIntersectLines && (b = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(O.intersectPoint, n)).isOnPolyLine && v.push(O.intersectPoint) } if (!(0 >= v.length) && (b = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(v[0], n)).isOnPolyLine) { var U = []; for (S = b.index + 1; S < n.length; S++)U.push(n[S]); for (S = 0; S <= b.index; S++)U.push(n[S]); var w = [], L = []; SuperMap.Plot.PlottingUtil.ptIsInPolygon(P, v[0]) ? (w.push.apply(w, P), L.push.apply(L, M)) : (w.push.apply(w, M), L.push.apply(L, P)); var V = [], _ = []; for (b = -1, S = 0; S < U.length; S++)if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(w, U[S])) { if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(L, U[S])) { b = S; break } V.push(U[S]) } if (-1 !== b) for (S = b; S < U.length; S++)if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(L, U[S])) { if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(w, U[S])) break; _.push(U[S]) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _), this.addLine(V), this.addLine(_), this.finish() } } } }, { key: "addLine", value: function (t) { for (var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = 0; l < t.length - 2; l++) { var o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.02 * e, t); if (-1 !== o.index) { var i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * e, t); if (-1 !== i.index) { var n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.92 * e, t); if (-1 !== n.index && (l === o.index || l === o.index + 1 || l === n.index || l === n.index + 1 || l === i.index || l === i.index + 1)) { var a = SuperMap.Plot.PlottingUtil.radian(t[l + 1], t[l]) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.circlePoint(t[l + 1], .02 * e, .02 * e, a + 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[l + 1], r]) } } } } } }]), e }(); SuperMap.Plot.AlgoSymbol29000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var i = e[0], n = e[1], a = e[e.length - 2], r = e[e.length - 1], s = l * this.scaleValues[0] * .6, p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, n, i), u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, a, r), c = p.pntLeft, P = u.pntRight, S = []; S.push(i), S.push(c); for (var h = new SuperMap.Geometry.Point((i.x + c.x) / 2, (i.y + c.y) / 2), y = SuperMap.Plot.PlottingUtil.polylineDistance(S) / 2, f = [], g = 180 * SuperMap.Plot.PlottingUtil.radian(n, i) / Math.PI, M = 270 + g; M <= 360 + g; M += 3)f.push(SuperMap.Plot.PlottingUtil.circlePoint(h, y, y, M)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var b = []; b.push(r), b.push(P); var m = []; m.push(r), m.push(P); for (var d = new SuperMap.Geometry.Point((r.x + P.x) / 2, (r.y + P.y) / 2), v = SuperMap.Plot.PlottingUtil.polylineDistance(m) / 2, O = [], U = 180 * SuperMap.Plot.PlottingUtil.radian(r, P) / Math.PI, w = 90 + U; w <= 180 + U; w += 3)O.push(SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, w)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol28900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.087081), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.087081), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], a = this.scaleValues[2], r = this.scaleValues[3], s = o * n, p = .5 * SuperMap.Plot.PlottingUtil.distance(t[0], l), u = new SuperMap.Geometry.Point(l.x + o * a - p, l.y + o * r); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], u, s, 180), this.addScalePoint(u); var c = s, P = SuperMap.Plot.PlottingUtil.circlePoint(u, c, c, 0); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), r = SuperMap.Plot.PlottingUtil.polylineDistance(l), s = .5 * SuperMap.Plot.PlottingUtil.distance(l[0], a); if (0 === t) i = (e.x + s - a.x) / r, this.scaleValues[2] = i, n = (e.y - a.y) / r, this.scaleValues[3] = n; else if (1 === t) { i = this.scaleValues[2], n = this.scaleValues[3]; var p = new SuperMap.Geometry.Point(a.x - s + r * i, a.y + r * n), u = SuperMap.Plot.PlottingUtil.distance(p, e) / r; this.scaleValues[0] = u } } } }]), e }(); SuperMap.Plot.AlgoSymbol28400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.3), l.scaleValues.push(1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.3), this.scaleValues.push(1)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var e, l, o = t[0].clone(), i = t[1].clone(), n = SuperMap.Plot.PlottingUtil.distance(o, i), a = this.scaleValues[0], r = this.scaleValues[1]; if (SuperMap.Plot.PlottingUtil.equalFuzzy(1, r)) e = SuperMap.Plot.PlottingUtil.radian(o, i) + 270 * SuperMap.Plot.PlottingUtil.DTOR; else e = SuperMap.Plot.PlottingUtil.radian(o, i) + 90 * SuperMap.Plot.PlottingUtil.DTOR, l = o, o = i, i = l; var s = n * a * .67, p = SuperMap.Plot.PlottingUtil.circlePoint(o, s, s, e * SuperMap.Plot.PlottingUtil.RTOD); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, n * a, e * SuperMap.Plot.PlottingUtil.RTOD); var u = SuperMap.Plot.PlottingUtil.circlePoint(i, s, s, e * SuperMap.Plot.PlottingUtil.RTOD); this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], u, n * a, e * SuperMap.Plot.PlottingUtil.RTOD), this.scalePoints = []; var c = e * SuperMap.Plot.PlottingUtil.RTOD, P = n * a, S = t[0].clone(), h = SuperMap.Plot.PlottingUtil.circlePoint(S, P, P, c); this.addScalePoint(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = (l = SuperMap.Plot.PlottingUtil.clearSamePts(l))[0].clone(), i = l[1].clone(), n = e.clone(), a = SuperMap.Plot.PlottingUtil.distance(o, i), r = SuperMap.Plot.PlottingUtil.plumbLineLen(n, o, i) / a; if (r < 0 || SuperMap.Plot.PlottingUtil.equalFuzzy(r, 0)) return; this.scaleValues[0] = r, SuperMap.Plot.PlottingUtil.pointIsRightToLine(o, i, n) ? this.scaleValues[1] = 1 : this.scaleValues[1] = 0 } } }]), e }(); SuperMap.Plot.AlgoSymbol28301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var i = l * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], o, i, 0), this.scalePoints = []; var n = SuperMap.Plot.PlottingUtil.circlePoint(o, i, i, 0); this.addScalePoint(n), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = []; o = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var a = SuperMap.Plot.PlottingUtil.distance(e, n) / i; this.scaleValues[0] = a } } } }]), e }(); SuperMap.Plot.AlgoSymbol28300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = e * this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l / 2, t[0], t[1]), i = o.pntRight, n = o.pntLeft, a = SuperMap.Plot.PlottingUtil.radian(i, n) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.circlePoint(i, l / 6, l / 6, a - 170), s = SuperMap.Plot.PlottingUtil.circlePoint(n, l / 6, l / 6, a + 10), p = []; p.push(r), p.push(i), p.push(n), p.push(s), this.scalePoints = [], this.addScalePoint(i); var u = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p); u = SuperMap.Plot.PlottingUtil.clearSamePts(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var c = SuperMap.Plot.PlottingUtil.paraLine(p, e, !0), P = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c); P = SuperMap.Plot.PlottingUtil.clearSamePts(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == t) { var i = 2 * SuperMap.Plot.PlottingUtil.distance(e, l[1]) / o; this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol28201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28200 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol28200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(.349066)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[1].x, t[1].y), o = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, i = 0, n = 0; n < t.length - 1; n++)i += SuperMap.Plot.PlottingUtil.distance(e, l); var a = this.scaleValues[0] * i; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [e, new SuperMap.Geometry.Point(e.x + a, e.y)], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var r = 180 * this.scaleValues[1] / Math.PI, s = SuperMap.Plot.PlottingUtil.circlePoint(e, i, i, o - r), p = SuperMap.Plot.PlottingUtil.circlePoint(e, i, i, o + r); this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL, [s, l, p], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], t[1]], { surroundLineFlag: !1 }, !0); var u = SuperMap.Plot.PlottingUtil.circlePoint(e, a, a, o - 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, s], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var c = SuperMap.Plot.PlottingUtil.circlePoint(e, a, a, o + 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c, p], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c], { surroundLineFlag: !1 }, !0); var P = SuperMap.Plot.PlottingUtil.circlePoint(e, a, a, o + 180); this.addScalePoint(new SuperMap.Geometry.Point(P.x, P.y), 0), this.addScalePoint(p, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = new SuperMap.Geometry.Point(l[0].x, l[0].y), i = new SuperMap.Geometry.Point(l[1].x, l[1].y), n = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, a = SuperMap.Plot.PlottingUtil.distance(o, i); if (0 === t) { var r = SuperMap.Plot.PlottingUtil.distance(o, e) / a; this.scaleValues[0] = r } if (1 === t) { var s = 180 * SuperMap.Plot.PlottingUtil.radian(o, e) / Math.PI, p = Math.abs(s - n); if (p > 270 && p < 360 && (p = 360 - p), p > 90) return; this.scaleValues[1] = p * Math.PI / 180 } } } }]), e }(); SuperMap.Plot.AlgoSymbol28100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.349066)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l, o, i, n, a, r, s = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD, p = new SuperMap.Geometry.Point(t[0].x, t[0].y), u = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), c = SuperMap.Plot.PlottingUtil.radian(p, u) * SuperMap.Plot.PlottingUtil.RTOD, P = new SuperMap.Geometry.Point(0, 0); if (2 <= t.length) { for (e = [], l = new SuperMap.Geometry.Point(t[1].x, t[1].y), o = SuperMap.Plot.PlottingUtil.distance(p, l), i = 0, i = c - s; i < c + s; i += 3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i)); SuperMap.Plot.PlottingUtil.equalFuzzy(i, c + s) && (i = c + s, e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i))), (n = []).push(t[0]); for (var S = 0; S < e.length; S++)n.push(new SuperMap.Geometry.Point(e[S].x, e[S].y)); n.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), a = SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, c), P = new SuperMap.Geometry.Point(a.x, a.y), (r = []).push(t[0]), r.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }) } var h = new SuperMap.Geometry.Point(0, 0); if (3 <= t.length) { for (e = [], l = new SuperMap.Geometry.Point(t[2].x, t[2].y), o = SuperMap.Plot.PlottingUtil.distance(p, l), i = 0, i = c - s; i < c + s; i += 3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i)); SuperMap.Plot.PlottingUtil.equalFuzzy(i, c + s) && (i = c + s, e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i))); var y = []; if (0 == e.length) return void (y.length > 0 && (y = [])); (n = []).push(t[0]); for (var f = 0; f < e.length; f++)n.push(new SuperMap.Geometry.Point(e[f].x, e[f].y)); n.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); for (var g = new SuperMap.Geometry.Point(t[1].x, t[1].y), M = SuperMap.Plot.PlottingUtil.distance(p, g) * this.scaleValues[0], b = [], m = 90; m <= 270; m += 3)b.push(SuperMap.Plot.PlottingUtil.circlePoint(p, M, M, c + m)); n = []; for (var d = b.length - 1; d >= 0; d--)n.push(new SuperMap.Geometry.Point(b[d].x, b[d].y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), (n = []).push(new SuperMap.Geometry.Point(b[0].x, b[0].y)), n.push(new SuperMap.Geometry.Point(e[e.length - 1].x, e[e.length - 1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), (n = []).push(new SuperMap.Geometry.Point(e[0].x, e[0].y)), n.push(new SuperMap.Geometry.Point(b[b.length - 1].x, b[b.length - 1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), a = SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, c), h = new SuperMap.Geometry.Point(a.x, a.y), (r = []).push(P), r.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }) } var v = new SuperMap.Geometry.Point(0, 0); if (4 <= t.length) { for (e = [], l = new SuperMap.Geometry.Point(t[3].x, t[3].y), o = SuperMap.Plot.PlottingUtil.distance(p, l), i = 0, i = c - s; i <= c + s; i += 3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i)); SuperMap.Plot.PlottingUtil.equalFuzzy(i, c + s) && (i = c + s, e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i))), (n = []).push(t[0]); for (var O = 0; O < e.length; O++)n.push(new SuperMap.Geometry.Point(e[O].x, e[O].y)); n.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), a = SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, c), v = new SuperMap.Geometry.Point(a.x, a.y), (r = []).push(h), r.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }) } if (3 > t.length) this.addScalePoint(t[0]); else { var U = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) * this.scaleValues[0], w = SuperMap.Plot.PlottingUtil.circlePoint(p, U, U, c + 180); this.addScalePoint(w, 0) } var L = SuperMap.Plot.PlottingUtil.distance(t[0], t[t.length - 1]), V = SuperMap.Plot.PlottingUtil.circlePoint(p, L, L, c + s); this.addScalePoint(V, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l, o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (o = SuperMap.Plot.PlottingUtil.clearSamePts(o), 0 == t) { if (3 > o.length) return; var i = new SuperMap.Geometry.Point(o[0].x, o[0].y), n = new SuperMap.Geometry.Point(e.x, e.y), a = SuperMap.Plot.PlottingUtil.distance(i, n), r = new SuperMap.Geometry.Point(o[1].x, o[1].y); if ((l = a / SuperMap.Plot.PlottingUtil.distance(i, r)) >= 2.5) return; this.scaleValues[0] = l } else if (1 == t) { var s = new SuperMap.Geometry.Point(o[0].x, o[0].y), p = new SuperMap.Geometry.Point(o[o.length - 1].x, o[o.length - 1].y), u = SuperMap.Plot.PlottingUtil.radian(s, p), c = new SuperMap.Geometry.Point(e.x, e.y); if (l = SuperMap.Plot.PlottingUtil.radian(s, c) - u, (l = Math.abs(l)) > Math.PI / 2 && l < 3 * Math.PI / 2) return; l > 3 * Math.PI / 2 && l <= 2 * Math.PI && (l = 2 * Math.PI - l), this.scaleValues[1] = Math.abs(l) } } } }]), e }(); SuperMap.Plot.AlgoSymbol28000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27902 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol27900), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [t[0], new SuperMap.Geometry.Point(t[0].x - e * this.scaleValues[0], t[0].y)], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !0, fill: !0, fillColor: "#ffff00", fillOpacity: 1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [new SuperMap.Geometry.Point(t[0].x + e * (this.scaleValues[0] + .1), t[0].y + e * this.scaleValues[0]), new SuperMap.Geometry.Point(t[0].x - e * (this.scaleValues[0] + .1), t[0].y + e * this.scaleValues[0])]); var l = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e * this.scaleValues[0], e * this.scaleValues[0], 90); this.addScalePoint(l, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol27902 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27901 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol27900), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [t[0], new SuperMap.Geometry.Point(t[0].x - e * this.scaleValues[0], t[0].y)], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !0, fill: !0, fillColor: "#ffff00", fillOpacity: 1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [new SuperMap.Geometry.Point(t[0].x + e * (this.scaleValues[0] + .1), t[0].y - e * this.scaleValues[0]), new SuperMap.Geometry.Point(t[0].x - e * (this.scaleValues[0] + .1), t[0].y - e * this.scaleValues[0])]); var l = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e * this.scaleValues[0], e * this.scaleValues[0], 90); this.addScalePoint(l, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol27901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.25), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [t[0], new SuperMap.Geometry.Point(t[0].x - e * this.scaleValues[0], t[0].y)], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !0, fill: !0, fillColor: "#ffff00", fillOpacity: 1 }); var l = SuperMap.Plot.PlottingUtil.circlePoint(t[0], e * this.scaleValues[0], e * this.scaleValues[0], 90); this.addScalePoint(l, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = new SuperMap.Geometry.Point(this.controlPoints[0].x, this.controlPoints[0].y), o = new SuperMap.Geometry.Point(this.controlPoints[1].x, this.controlPoints[1].y), i = new SuperMap.Geometry.Point(e.x, e.y), n = SuperMap.Plot.PlottingUtil.distance(l, i) / SuperMap.Plot.PlottingUtil.distance(l, o); .9 < n && (n = .9), this.scaleValues[0] = n } } }]), e }(); SuperMap.Plot.AlgoSymbol27900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27701 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.03), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && this.scaleValues.push(.03); for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = []; o = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue()); var n = this.scaleValues[0] * e * 2, a = this.scaleValues[0] * e, r = new SuperMap.Geometry.Point(i.x - n - a, i.y), s = new SuperMap.Geometry.Point(i.x - n, i.y), p = new SuperMap.Geometry.Point(i.x - n + a, i.y), u = new SuperMap.Geometry.Point(i.x + n, i.y), c = new SuperMap.Geometry.Point(i.x + n + a, i.y), P = new SuperMap.Geometry.Point(i.x + n + 2 * a, i.y), S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, r, s), h = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, s, p), y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, u, c), f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, c, P), g = []; g.push(new SuperMap.Geometry.Point(S.pntLeft.x, S.pntLeft.y)), g.push(new SuperMap.Geometry.Point(r.x, r.y)), g.push(new SuperMap.Geometry.Point(S.pntRight.x, S.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), (g = []).push(new SuperMap.Geometry.Point(h.pntLeft.x, h.pntLeft.y)), g.push(new SuperMap.Geometry.Point(s.x, s.y)), g.push(new SuperMap.Geometry.Point(h.pntRight.x, h.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), (g = []).push(new SuperMap.Geometry.Point(y.pntLeft.x, y.pntLeft.y)), g.push(new SuperMap.Geometry.Point(u.x, u.y)), g.push(new SuperMap.Geometry.Point(y.pntRight.x, y.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), (g = []).push(new SuperMap.Geometry.Point(f.pntLeft.x, f.pntLeft.y)), g.push(new SuperMap.Geometry.Point(c.x, c.y)), g.push(new SuperMap.Geometry.Point(f.pntRight.x, f.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol27701 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var a = new SuperMap.Geometry.Point(t[0].x, t[0].y), r = new SuperMap.Geometry.Point(t[1].x, t[1].y), s = 180 * SuperMap.Plot.PlottingUtil.radian(a, r) / Math.PI; if (90 < s && s < 270) { var p = a; a = r, r = p, s = 180 * SuperMap.Plot.PlottingUtil.radian(a, r) / Math.PI } var u = new SuperMap.Geometry.Point(.25 * e, 0), c = new SuperMap.Geometry.Point(.25 * e + .2 * o, .3 * o), P = new SuperMap.Geometry.Point(.25 * e + .2 * o, -.3 * o), S = SuperMap.Plot.PlottingUtil.coordinateTrans(a, u, s), h = SuperMap.Plot.PlottingUtil.coordinateTrans(a, c, s), y = SuperMap.Plot.PlottingUtil.coordinateTrans(a, P, s), f = []; f.push(new SuperMap.Geometry.Point(h.x, h.y)), f.push(new SuperMap.Geometry.Point(S.x, S.y)), f.push(new SuperMap.Geometry.Point(y.x, y.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = new SuperMap.Geometry.Point(.3 * e, 0), M = new SuperMap.Geometry.Point(.3 * e + .2 * o, .3 * o), b = new SuperMap.Geometry.Point(.3 * e + .2 * o, -.3 * o), m = SuperMap.Plot.PlottingUtil.coordinateTrans(a, g, s), d = SuperMap.Plot.PlottingUtil.coordinateTrans(a, M, s), v = SuperMap.Plot.PlottingUtil.coordinateTrans(a, b, s); (f = []).push(new SuperMap.Geometry.Point(d.x, d.y)), f.push(new SuperMap.Geometry.Point(m.x, m.y)), f.push(new SuperMap.Geometry.Point(v.x, v.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var O = new SuperMap.Geometry.Point(.7 * e, 0), U = new SuperMap.Geometry.Point(.7 * e + .2 * o, .3 * o), w = new SuperMap.Geometry.Point(.7 * e + .2 * o, -.3 * o), L = SuperMap.Plot.PlottingUtil.coordinateTrans(a, O, s), V = SuperMap.Plot.PlottingUtil.coordinateTrans(a, U, s), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(a, w, s); (f = []).push(new SuperMap.Geometry.Point(V.x, V.y)), f.push(new SuperMap.Geometry.Point(L.x, L.y)), f.push(new SuperMap.Geometry.Point(_.x, _.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var T = new SuperMap.Geometry.Point(.75 * e, 0), A = new SuperMap.Geometry.Point(.75 * e + .2 * o, .3 * o), E = new SuperMap.Geometry.Point(.75 * e + .2 * o, -.3 * o), x = SuperMap.Plot.PlottingUtil.coordinateTrans(a, T, s), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(a, A, s), j = SuperMap.Plot.PlottingUtil.coordinateTrans(a, E, s); (f = []).push(new SuperMap.Geometry.Point(Y.x, Y.y)), f.push(new SuperMap.Geometry.Point(x.x, x.y)), f.push(new SuperMap.Geometry.Point(j.x, j.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addScalePoint(i[0], 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { for (var l = 0, o = 0; o < this.controlPoints.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(this.controlPoints[o], this.controlPoints[o + 1]); var i = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], e) / l; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol27700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27300 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = []; l = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), i = new SuperMap.Geometry.Point(o.x, 0); if (!1 === this.polylineConnectLocationPoint) { for (var n = 0, a = -1, r = 0; r < l.length - 1; r++) { var s = SuperMap.Plot.PlottingUtil.intersectLines(o, new SuperMap.Geometry.Point(o.x, o.y + 1), l[r], l[r + 1]); s.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint, l[r], l[r + 1]) && i.x === s.intersectPoint.x && (0 == n ? (i.y = s.intersectPoint.y, a = r) : i.y < s.intersectPoint.y && (i.y = s.intersectPoint.y, a = r), n++)) } var p = this.getSubSymbolScaleValue() * e, u = []; u.push(i); for (var c = a + 1; c < l.length - 1; c++)u.push(new SuperMap.Geometry.Point(l[c].x, l[c].y)); for (var P = 0; P <= a; P++)u.push(new SuperMap.Geometry.Point(l[P].x, l[P].y)); var S = .8 * p, h = SuperMap.Plot.PlottingUtil.findPointInPolyLine(u, S); if (-1 === h.index) return; var y = []; y.push(h.pt); for (var f = h.index + 1; f < u.length - 1; f++)y.push(u[f]); u = []; for (var g = y.length - 1; g > 0; g--)u.push(y[g]); var M = SuperMap.Plot.PlottingUtil.findPointInPolyLine(u, S); if (-1 === M.index) return; (y = []).push(M.pt); for (var b = M.index + 1; b < u.length - 1; b++)y.push(u[b]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], i, p, 0) } else { var m = t[0], d = t[1], v = SuperMap.Plot.PlottingUtil.distance(m, d), O = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2 * v, [m, d]); if (-1 === O.index) return; var U = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4 * v, [m, d]); if (-1 === U.index) return; var w = []; w.push(t[0]), w.push(O.pts), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w), (w = []).push(U.pts); for (var L = 1; L < t.length; L++)w.push(t[L]); w.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w); var V = new SuperMap.Geometry.Point((O.pts.x + U.pts.x) / 2, (O.pts.y + U.pts.y) / 2); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], V, .1 * v, 0) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol27300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol27100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .1, l.scaleValues[1] = .2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues[0] = .1, this.scaleValues[1] = .2), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var e, l, o = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), i = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, n = this.scaleValues[0], a = this.scaleValues[1], r = n * o, s = []; for (e = 90; e <= 270; e += 3)l = SuperMap.Plot.PlottingUtil.circlePoint(t[0], r, r, e + i), s.push(l); var p = []; for (e = -90; e <= 90; e += 3)l = SuperMap.Plot.PlottingUtil.circlePoint(t[1], r, r, e + i), p.push(l); var u = o * a, c = new SuperMap.Geometry.Point((s[0].x + p[p.length - 1].x) / 2, (s[0].y + p[p.length - 1].y) / 2), P = SuperMap.Plot.PlottingUtil.linePnt(s[0], p[p.length - 1], .5 * (o - 1.2 * u)), S = SuperMap.Plot.PlottingUtil.linePnt(p[p.length - 1], s[0], .5 * (o - 1.2 * u)), h = SuperMap.Plot.PlottingUtil.radian(S, P) * SuperMap.Plot.PlottingUtil.RTOD, y = []; y.push(P), y.push.apply(y, s), y.push.apply(y, p), y.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], c, .9 * u, h - 90), this.scalePoints = [], this.addScalePoint(s[s.length - 1]); var f = SuperMap.Plot.PlottingUtil.circlePoint(c, u, u, h + 90); this.addScalePoint(f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } else if (1 == t) { var n = this.scaleValues[0] * o, a = SuperMap.Plot.PlottingUtil.radian(l[0], l[1]) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.circlePoint(l[0], n, n, 90 + a), s = SuperMap.Plot.PlottingUtil.circlePoint(l[1], n, n, 90 + a), p = new SuperMap.Geometry.Point((r.x + s.x) / 2, (r.y + s.y) / 2), u = SuperMap.Plot.PlottingUtil.distance(p, e) / o; u >= .8 && (u = .8), this.scaleValues[1] = u } } } }]), e }(); SuperMap.Plot.AlgoSymbol27100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (2 === this.controlPoints.length) this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t); else if (3 === this.controlPoints.length) { var e = new SuperMap.Geometry.Point(this.controlPoints[0].x, this.controlPoints[0].y), l = new SuperMap.Geometry.Point(this.controlPoints[1].x, this.controlPoints[1].y), o = new SuperMap.Geometry.Point(this.controlPoints[2].x, this.controlPoints[2].y), i = SuperMap.Plot.PlottingUtil.distance(l, o); if (0 >= i) return; this.scaleValues = []; var n = SuperMap.Plot.PlottingUtil.distance(e, l) / i; this.scaleValues.push(n); var a = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD; a > 90 ? a -= 90 : a = 270 + a, this.scaleValues.push(a * SuperMap.Plot.PlottingUtil.DTOR); var r = SuperMap.Plot.PlottingUtil.radian(e, o) * SuperMap.Plot.PlottingUtil.RTOD; r > 90 ? r -= 90 : r = 270 + r, this.scaleValues.push(r * SuperMap.Plot.PlottingUtil.DTOR); var s = this.scaleValues[0] * i, p = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD + 90, u = this.scaleValues[2] * SuperMap.Plot.PlottingUtil.RTOD + 90; p < u && (p += 360); for (var c, P = [], S = p; S >= u; S -= 4)c = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], s, s, S), P.push(c); S != u && (c = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], s, s, u), P.push(c)), P.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, P) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol26800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), r = 2 * o * .8, s = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, r, s), 0 === this.scaleValues[1] ? this.addScalePoint(i[0]) : this.addScalePoint(n[0]), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === o) return; if (0 === t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol26700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26601 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); for (var l, o, i = SuperMap.Plot.PlottingUtil.polylineDistance(e), n = .1 * i, a = .5 * n, r = this.computeDashLine(n, a, e), s = .01 * i, p = 0; p < r.length; p++)l = SuperMap.Plot.PlottingUtil.paraLine(r[p], s, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l), o = SuperMap.Plot.PlottingUtil.paraLine(r[p], s, !1), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); this.finish() } } }, { key: "computeDashLine", value: function (t, e, l) { for (var o, i, n = [], a = SuperMap.Plot.PlottingUtil.polylineDistance(l), r = l[0].clone(), s = 1, p = 0, u = !0, c = !0; p < a;) { var P; (i = []).push(r), p += t; var S = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, l); if (P = S.index, o = S.pts, !(u = S.bfind)) break; if (s < P) for (var h = s; h < P; h++)i.push(l[h]); i.push(o), n.push(i), p += e; var y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, l); if (P = y.index, r = y.pts, s = P + 1, !(c = y.bfind)) break } if (!u) { (i = []).push(r); for (var f = s; f < l.length; f++)i.push(l[f]); 2 === i.length && 0 === SuperMap.Plot.PlottingUtil.distance(i[0], i[1]) || n.push(i) } if (!c) { var g = l[l.length - 1], M = SuperMap.Plot.PlottingUtil.distance(o, g); if (M *= .01, !SuperMap.Plot.PlottingUtil.equalFuzzy(M, 0)) { var b = SuperMap.Plot.PlottingUtil.linePnt(g, o, M); (i = []).push(b), i.push(g), n.push(i) } } return n } }]), e }(); SuperMap.Plot.AlgoSymbol26601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26600 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = .1 * SuperMap.Plot.PlottingUtil.polylineDistance(e), o = .5 * l; this.computeDashLine(l, o, e), this.finish() } } }, { key: "computeDashLine", value: function (t, e, l) { for (var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = l[0].clone(), r = 1, s = 0, p = !0, u = !0; s < n;) { var c; (i = []).push(a), s += t; var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, l); if (c = P.index, o = P.pts, !(p = P.bfind)) break; if (r < c) for (var S = r; S < c; S++)i.push(l[S]); i.push(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), s += e; var h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, l); if (c = h.index, a = h.pts, r = c + 1, !(u = h.bfind)) break } if (!p) { (i = []).push(a); for (var y = r; y < l.length; y++)i.push(l[y]); 2 === i.length && 0 === SuperMap.Plot.PlottingUtil.distance(i[0], i[1]) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } if (!u) { var f = l[l.length - 1], g = SuperMap.Plot.PlottingUtil.distance(o, f); if (g *= .01, !SuperMap.Plot.PlottingUtil.equalFuzzy(g, 0)) { var M = SuperMap.Plot.PlottingUtil.linePnt(f, o, g); (i = []).push(M), i.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } } } }]), e }(); SuperMap.Plot.AlgoSymbol26600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26503 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol22000), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } for (var i = l * this.scaleValues[0], n = this.getLinePts(e, this.scaleValues[0]), a = [], r = [], s = 0; s <= n.startIndex; s++)a.push(e[s]); if (a.push(n.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a), n.endIndex <= e.length) { r.push(n.endPt); for (var p = n.endIndex + 1; p <= e.length - 1; p++)r.push(e[p]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r) } var u = .5 * i, c = new SuperMap.Geometry.Point(n.endPt.x, n.endPt.y), P = new SuperMap.Geometry.Point(n.startPt.x, n.startPt.y), S = SuperMap.Plot.PlottingUtil.distance(c, P), h = .2 * S, y = SuperMap.Plot.PlottingUtil.linePnt(c, P, h), f = SuperMap.Plot.PlottingUtil.linePnt(P, c, h), g = .5 * S, M = SuperMap.Plot.PlottingUtil.linePnt(c, P, g), b = new SuperMap.Geometry.Point((f.x + M.x) / 2, (f.y + M.y) / 2), m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u, f, b), d = m.pntLeft, v = m.pntRight, O = []; O.push(v), O.push(f), O.push(d), this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL, O, null, !0); var U = .1 * S, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(U, f, M), L = w.pntLeft, V = w.pntRight, _ = []; _.push(f), _.push(L), _.push(V); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, _, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0); var T = []; T.push(M), T.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T, null, !0); var A = new SuperMap.Geometry.Point((n.startPt.x + n.endPt.x) / 2, (n.startPt.y + n.endPt.y) / 2), E = 180 * SuperMap.Plot.PlottingUtil.radian(n.startPt, n.endPt) / Math.PI, x = .5 * l * this.scaleValues[0], Y = SuperMap.Plot.PlottingUtil.circlePoint(A, x, x, E + 90), j = e[0], C = e[1], I = e[e.length - 2], G = e[e.length - 1], B = .5 * i, R = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B, C, j), N = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B, I, G), D = R.pntLeft, k = N.pntLeft, z = []; z.push(j), z.push(D), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, z); var F = []; F.push(G), F.push(k), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, F), this.addScalePoint(Y), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol26503 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol26502 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.05), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol22000), e }(); SuperMap.Plot.AlgoSymbol26502 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI, r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .8 * r, a); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p) } var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), S = SuperMap.Plot.PlottingUtil.circlePoint(P.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, a); this.addScalePoint(S, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol26501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, l / 2); if (-1 !== o.index) { var i = o.pt, n = this.getDefaultSubSymbolSize() / l; (n > .3 || n <= 0) && (n = .3), this.scaleValues[0] = n; var a = 1.5 * this.scaleValues[0] * l, r = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, e[o.index], i), s = []; s.push(r.pntLeft), s.push(i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s, null, !0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol26500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.05), l.scaleValues.push(-1.5)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (!this.isEdit) { this.scaleValues = []; for (var e = 0; e < t.length; e++)this.scaleValues.splice(e, 0, 0); var l = this.getSubSymbolScaleValue(); this.scaleValues[t.length] = .8 * l, this.scaleValues[t.length + 1] = l, this.scaleValues[t.length + 2] = -1.5; var o = .5 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) / SuperMap.Plot.PlottingUtil.polylineDistance(t); this.scaleValues[t.length + 3] = o, this.scaleValues[t.length + 4] = l } this.isEdit && this.scaleValues.length === t.length + 3 && (this.scaleValues[t.length + 3] = .5 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) / SuperMap.Plot.PlottingUtil.polylineDistance(t), this.scaleValues[t.length + 4] = .05); var i = SuperMap.Plot.PlottingUtil.polylineDistance(t), n = i * this.scaleValues[this.scaleValues.length - 1], a = i * this.scaleValues[this.scaleValues.length - 2], r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, a - .5 * n); if (-1 !== r.index) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, a + .5 * n); if (-1 !== s.index) { var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, a).pt, u = SuperMap.Plot.PlottingUtil.radian(r.pt, s.pt) * SuperMap.Plot.PlottingUtil.RTOD; if (0 === this.subSymbols.length) { var c = new SuperMap.Geometry.Point(p.x + .1 * n, p.y); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [p, c], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0) } else this.computeSubSymbol(this.subSymbols[0], p, .8 * n, u); for (var P = [], S = [], h = 0; h <= r.index; h++)P.push(t[h]); P.push(r.pt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), S.push(s.pt); for (var y = r.index + 1; y <= t.length - 1; y++)S.push(t[y]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var f, g, M, b = SuperMap.Plot.PlottingUtil.polylineDistance(t), m = this.scaleValues.length, d = b * this.scaleValues[m - 5], v = this.scaleValues[0]; if (0 === v) f = (g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[1], t[0])).pntRight; else if (1 === v) f = (g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[1], t[0])).pntLeft; else { if (2 !== v) return; f = t[0] } var O, U, w, L, V = []; if (V.push(t[0]), V.push(f), this.addScalePoint(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, null, !0), t.length > this.minEditPts) { for (var _, T, A, E, x, Y = 1; Y < t.length - 1; Y++) { var j, C, I, G = this.scaleValues[Y]; if (0 === G) { for (_ = t[Y], C = t[Y + 1], I = t[Y - 1], T = 180 * SuperMap.Plot.PlottingUtil.radian(_, C) / Math.PI, A = 180 * SuperMap.Plot.PlottingUtil.radian(_, I) / Math.PI - T; A < 0;)A += 360; E = A / 2, x = t[Y + 1].clone(), x = SuperMap.Plot.PlottingUtil.rotateAngle(_, E * Math.PI / 180, x), j = SuperMap.Plot.PlottingUtil.linePnt(_, x, d) } else if (1 === G) { for (_ = t[Y], C = t[Y + 1], I = t[Y - 1], T = 180 * SuperMap.Plot.PlottingUtil.radian(_, C) / Math.PI, A = 180 * SuperMap.Plot.PlottingUtil.radian(_, I) / Math.PI - T; A < 0;)A += 360; E = 180 - A / 2, x = t[Y - 1].clone(), x = SuperMap.Plot.PlottingUtil.rotateAngle(_, E * Math.PI / 180, x), j = SuperMap.Plot.PlottingUtil.linePnt(_, x, d) } else { if (2 !== G) continue; j = t[Y] } (O = []).push(t[Y]), O.push(j), this.addScalePoint(j), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, null, !0) } var B = t.length, R = this.scaleValues[B - 1]; if (0 === R) U = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[B - 2], t[B - 1])).pntLeft, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * d, t[B - 2], t[B - 1]).pntLeft; else if (1 === R) U = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[B - 2], t[B - 1])).pntRight, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * d, t[B - 2], t[B - 1]).pntRight; else { if (2 !== R) return; U = t[B - 1].clone(), w = t[B - 1].clone() } (O = []).push(t[B - 1]), O.push(U), this.addScalePoint(U), this.addScalePoint(w), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, null, !0) } else { var N = this.scaleValues[1]; if (0 === N) U = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[0], t[1])).pntLeft, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * d, t[0], t[1]).pntLeft; else if (1 === N) U = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[0], t[1])).pntRight, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * d, t[0], t[1]).pntRight; else { if (2 !== N) return; U = t[1].clone(), w = t[1].clone() } (O = []).push(t[1]), O.push(U), this.addScalePoint(U), this.addScalePoint(w), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, null, !0) } var D = this.scaleValues.length, k = this.scaleValues[D - 4], z = Math.abs(b * k), F = this.scaleValues[D - 3], K = Math.abs(d * F); if (-1 !== (g = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, z)).index) { var q = g.index, W = g.pt; L = F >= 0 ? (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(K, t[q], W)).pntRight : (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(K, t[q], W)).pntLeft; var J = SuperMap.Plot.PlottingUtil.linePnt(W, L, K), Z = .3 * K, H = SuperMap.Plot.PlottingUtil.linePnt(J, W, Z), Q = (M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3 * Z, J, H)).pntLeft, X = M.pntRight; (O = []).push(W), O.push(J), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, null, !0), (O = []).push(Q), O.push(J), O.push(X); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, O, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.addScalePoint(J), this.addScalePoint(p); var $ = SuperMap.Plot.PlottingUtil.radian(r.pt, s.pt) * SuperMap.Plot.PlottingUtil.RTOD + 90, tt = SuperMap.Plot.PlottingUtil.circlePoint(p, .5 * n, .5 * n, $); this.addScalePoint(tt), this.finish() } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i, n, a, r, s, p, u, c, P, S = SuperMap.Plot.PlottingUtil.polylineDistance(l), h = l.length, y = e; if (t >= 0 && t < h) { var f = !1; if (0 == t) f = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t], l[t + 1], y); else if (t == h - 1) f = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t - 1], l[t], y); else { var g = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t - 1], l[t], l[t + 1]), M = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t - 1], l[t], y); if (g != M) f = M; else { var b = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t], l[t + 1], y); f = b == M ? M : b } } this.scaleValues[t] = f ? 1 : 0 } else if (t == h) { o = SuperMap.Plot.PlottingUtil.distance(l[h - 1], y); var m = (o /= 2) / S; this.scaleValues[t] = m } else if (t === h + 1) { i = -1, n = 0, a = new SuperMap.Geometry.Point(0, 0); for (var d = 0; d < l.length - 1; d++)(r = []).push(l[d]), r.push(l[d + 1]), p = SuperMap.Plot.PlottingUtil.projectPoint(y, l[d], l[d + 1]), (s = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p, r)).isOnPolyLine && (P = SuperMap.Plot.PlottingUtil.distance(y, p), -1 == i ? (i = d, a = p, n = P) : n > P && (i = d, a = p, n = P)); if (-1 == i || i > l.length - 1) return; u = 0; for (var v = 0; v < i; v++) { var O = l[v], U = l[v + 1]; u += SuperMap.Plot.PlottingUtil.distance(O, U) } if (c = l[i], (u += SuperMap.Plot.PlottingUtil.distance(c, a)) < 0 || u > S) return; var w = u / S; this.scaleValues[h + 1] = w; var L, V = this.scaleValues.length; o = S * this.scaleValues[V - 5], L = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[i], l[i + 1], y) ? n / o : -Math.abs(n / o), this.scaleValues[h + 2] = L } else if (t === h + 2) { i = -1, n = 0, a = new SuperMap.Geometry.Point(0, 0); for (var _ = 0; _ < l.length - 1; _++)(r = []).push(l[_]), r.push(l[_ + 1]), p = SuperMap.Plot.PlottingUtil.projectPoint(y, l[_], l[_ + 1]), (s = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p, r)).isOnPolyLine && (P = SuperMap.Plot.PlottingUtil.distance(y, p), -1 === i ? (i = _, a = p, n = P) : n > P && (i = _, a = p, n = P)); if (-1 === i || i > l.length - 1) return; u = 0; for (var T = 0; T < i; T++)u += SuperMap.Plot.PlottingUtil.distance(l[T], l[T + 1]); if (c = l[i], (u += SuperMap.Plot.PlottingUtil.distance(c, a)) < 0 || u > S) return; .1 * S < u && .9 * S > u && (this.scaleValues[this.scaleValues.length - 2] = u / S) } else if (t === h + 3) { var A = this.scaleValues[this.scaleValues.length - 2] * S; if (-1 === (s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, A)).index) return; var E = 2 * SuperMap.Plot.PlottingUtil.distance(s.pt, e) / S; E > .15 && (E = .15), this.scaleValues[this.scaleValues.length - 1] = E } } } }]), e }(); SuperMap.Plot.AlgoSymbol26400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25901 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol25900), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = 2 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = n * l / 2, s = []; s.push(new SuperMap.Geometry.Point(a.x - r, a.y)), s.push(new SuperMap.Geometry.Point(a.x + r, a.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s, null, !0); var p = .3 * r, u = []; u.push(new SuperMap.Geometry.Point(a.x - r, a.y + p / 2)), u.push(new SuperMap.Geometry.Point(a.x - r, a.y - p / 2)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, null, !0); var c = []; c.push(new SuperMap.Geometry.Point(a.x + r, a.y + p / 2)), c.push(new SuperMap.Geometry.Point(a.x + r, a.y - p / 2)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, null, !0); var P = []; P.push(new SuperMap.Geometry.Point(a.x, a.y)), P.push(new SuperMap.Geometry.Point(a.x, a.y + 1.5 * p)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, null, !0); var S = []; S.push(new SuperMap.Geometry.Point(a.x - p / 2, a.y)), S.push(new SuperMap.Geometry.Point(a.x - p, a.y + p)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, null, !0); var h = []; h.push(new SuperMap.Geometry.Point(a.x + p / 2, a.y)), h.push(new SuperMap.Geometry.Point(a.x + p, a.y + p)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, null, !0), this.addScalePoint(a); var y = SuperMap.Plot.PlottingUtil.circlePoint(a, r, r, 90); this.addScalePoint(y), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol25901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = t[0].x, l = t[0].x, o = 0; o < t.length; o++)e > t[o].x && (e = t[o].x), l < t[o].x && (l = t[o].x); var i = (l - e) / 50, n = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !0), a = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !1); if (n.length > 2 && a.length > 0) { for (var r = [], s = 0; s < n.length; s++)r.push(n[s]); var p = a[0], u = []; SuperMap.Plot.PlottingUtil.ptIsInPolygon(r, p) || (u = u.concat(n), n = (n = []).concat(a), a = (a = []).concat(u)) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, a, { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 1, weight: 1 }, !0); var c = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), P = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = 4 * this.getSubSymbolScaleValue()); var S = this.scaleValues[0], h = this.scaleValues[1], y = this.scaleValues[2], f = new SuperMap.Geometry.Point(c.x + P * S, c.y + P * h), g = y * P / 2, M = []; M.push(new SuperMap.Geometry.Point(f.x - g, f.y)), M.push(new SuperMap.Geometry.Point(f.x + g, f.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M, null, !0); var b = .3 * g, m = []; m.push(new SuperMap.Geometry.Point(f.x - g, f.y + b / 2)), m.push(new SuperMap.Geometry.Point(f.x - g, f.y - b / 2)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m, null, !0); var d = []; d.push(new SuperMap.Geometry.Point(f.x + g, f.y + b / 2)), d.push(new SuperMap.Geometry.Point(f.x + g, f.y - b / 2)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, null, !0); var v = []; v.push(new SuperMap.Geometry.Point(f.x, f.y)), v.push(new SuperMap.Geometry.Point(f.x, f.y + 1.5 * b)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v, null, !0); var O = []; O.push(new SuperMap.Geometry.Point(f.x - b / 2, f.y)), O.push(new SuperMap.Geometry.Point(f.x - b, f.y + b)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, null, !0); var U = []; U.push(new SuperMap.Geometry.Point(f.x + b / 2, f.y)), U.push(new SuperMap.Geometry.Point(f.x + b, f.y + b)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U, null, !0), this.addScalePoint(f); var w = SuperMap.Plot.PlottingUtil.circlePoint(f, g, g, 90); this.addScalePoint(w), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t && 1 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i, n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), a = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) return; if (0 == t) o = (e.x - n.x) / a, this.scaleValues[0] = o, i = (e.y - n.y) / a, this.scaleValues[1] = i; else if (1 == t) { o = this.scaleValues[0], i = this.scaleValues[1]; var r = new SuperMap.Geometry.Point(n.x + a * o, n.y + a * i), s = 2 * SuperMap.Plot.PlottingUtil.distance(r, e) / a; this.scaleValues[2] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol25900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol25800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = 2 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = n * l / 2, s = []; s.push(new SuperMap.Geometry.Point(a.x, a.y)), s.push(new SuperMap.Geometry.Point(a.x, a.y + r)); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, s, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0); var p = []; p.push(new SuperMap.Geometry.Point(a.x - 1.5 * r, a.y + r)), p.push(new SuperMap.Geometry.Point(a.x + 1.5 * r, a.y + r)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, null, !0), this.addScalePoint(a); var u = SuperMap.Plot.PlottingUtil.circlePoint(a, r, r, 90); this.addScalePoint(u), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol25801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.08)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = t[0].x, l = t[0].x, o = 0; o < t.length; o++)e > t[o].x && (e = t[o].x), l < t[o].x && (l = t[o].x); var i = (l - e) / 50, n = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !0), a = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !1); if (n.length > 2 && a.length > 0) { for (var r = [], s = new SuperMap.Geometry.Point(0, 0), p = 0; p < n.length; p++)r.push(n[p]); s = a[0]; var u = []; SuperMap.Plot.PlottingUtil.ptIsInPolygon(r, s) || (u = u.concat(n), n = (n = []).concat(a), a = (a = []).concat(u)) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, a, { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 1, weight: 1 }, !0); var c = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), P = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = 2 * this.getSubSymbolScaleValue()); var S = this.scaleValues[0], h = this.scaleValues[1], y = this.scaleValues[2], f = new SuperMap.Geometry.Point(c.x + P * S, c.y + P * h), g = y * P / 2, M = []; M.push(new SuperMap.Geometry.Point(f.x, f.y)), M.push(new SuperMap.Geometry.Point(f.x, f.y + g)); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, M, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0); var b = []; b.push(new SuperMap.Geometry.Point(f.x - 1.5 * g, f.y + g)), b.push(new SuperMap.Geometry.Point(f.x + 1.5 * g, f.y + g)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, null, !0), this.addScalePoint(f); var m = SuperMap.Plot.PlottingUtil.circlePoint(f, g, g, 90); this.addScalePoint(m), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 == n) return; if (0 == t) o = (e.x - a.x) / n, this.scaleValues[0] = o, i = (e.y - a.y) / n, this.scaleValues[1] = i; else if (1 == t) { o = this.scaleValues[0], i = this.scaleValues[1]; var r = new SuperMap.Geometry.Point(a.x + n * o, a.y + n * i), s = 2 * SuperMap.Plot.PlottingUtil.distance(r, e) / n; this.scaleValues[2] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol25800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25701 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = t[0].x, l = t[0].x, o = 0; o < t.length; o++)e > t[o].x && (e = t[o].x), l < t[o].x && (l = t[o].x); var i = (l - e) / 50; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var n = { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 1, weight: 1 }, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), r = 10 * i; t.push(t[0]); for (var s = !0, p = a.x, u = a.x; s;) { s = !1; for (var c, P, S, h, y, f = [], g = new SuperMap.Geometry.Point(p, a.y), M = SuperMap.Plot.PlottingUtil.circlePoint(g, 10, 10, 45), b = 0; b < t.length - 1; b++) { var m = SuperMap.Plot.PlottingUtil.intersectLines(g, M, t[b], t[b + 1]); m.isIntersectLines && (P = m.intersectPoint, (S = []).push(t[b]), S.push(t[b + 1]), (c = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P, S)).isOnPolyLine && f.push(P)) } if (1 < f.length) { this.sortPts2D(f); for (var d = 0; d < f.length - 1; d++)y = new SuperMap.Geometry.Point((f[d].x + f[d + 1].x) / 2, (f[d].y + f[d + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, y) && ((h = []).push(f[d]), h.push(f[d + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, n, !0)) } f.length > 0 && (s = !0), f = []; for (var v = new SuperMap.Geometry.Point(u, a.y), O = SuperMap.Plot.PlottingUtil.circlePoint(v, 5, 5, 45), U = 0; U < t.length - 1; U++)(c = SuperMap.Plot.PlottingUtil.intersectLines(v, O, t[U], t[U + 1])).isIntersectLines && (P = c.intersectPoint, (S = []).push(t[U]), S.push(t[U + 1]), (c = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P, S)).isOnPolyLine && f.push(P)); if (1 < f.length) { this.sortPts2D(f); for (var w = 0; w < f.length - 1; w++)y = new SuperMap.Geometry.Point((f[w].x + f[w + 1].x) / 2, (f[w].y + f[w + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, y) && ((h = []).push(f[w]), h.push(f[w + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, n, !0)) } f.length > 0 && (s = !0), p -= r, u += r } this.finish() } } }, { key: "sortPts2D", value: function (t) { for (var e = new SuperMap.Geometry.Point(0, 0), l = 0; l < t.length; l++)for (var o = 0; o < t.length - 1 - l; o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x, t[o + 1].x) ? t[o].y > t[o + 1].y && (e = t[o], t[o] = t[o + 1], t[o + 1] = e) : t[o].x > t[o + 1].x && (e = t[o], t[o] = t[o + 1], t[o + 1] = e); return t } }]), e }(); SuperMap.Plot.AlgoSymbol25701 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25700 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = t[0].x, l = t[0].x, o = 0; o < t.length; o++)e > t[o].x && (e = t[o].x), l < t[o].x && (l = t[o].x); var i, n, a = (l - e) / 50, r = SuperMap.Plot.PlottingUtil.paraPolygon(t, a, !0), s = SuperMap.Plot.PlottingUtil.paraPolygon(t, a, !1); if (r.length > 2 && s.length > 0) { for (var p = [], u = 0; u < r.length; u++)p.push(r[u]); i = s[0], n = [], SuperMap.Plot.PlottingUtil.ptIsInPolygon(p, i) || (n = n.concat(r), r = (r = []).concat(s), s = (s = []).concat(n)) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, r); var c = { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 1, weight: 1 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, c), s.push(s[0]); for (var P = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), S = 10 * a, h = !0, y = P.x, f = P.x; h;) { h = !1; for (var g, M, b, m = [], d = new SuperMap.Geometry.Point(y, P.y), v = SuperMap.Plot.PlottingUtil.circlePoint(d, 10, 10, 45), O = 0; O < s.length - 1; O++) { var U = SuperMap.Plot.PlottingUtil.intersectLines(d, v, s[O], s[O + 1]); U.isIntersectLines && (M = U.intersectPoint, (n = []).push(s[O]), n.push(s[O + 1]), (g = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M, n)).isOnPolyLine && m.push(M)) } if (1 < m.length) { this.sortPts2D(m); for (var w = 0; w < m.length - 1; w++)i = new SuperMap.Geometry.Point((m[w].x + m[w + 1].x) / 2, (m[w].y + m[w + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(s, i) && ((b = []).push(m[w]), b.push(m[w + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, c)) } m.length > 0 && (h = !0), m = []; for (var L = new SuperMap.Geometry.Point(f, P.y), V = SuperMap.Plot.PlottingUtil.circlePoint(L, 5, 5, 45), _ = 0; _ < s.length - 1; _++)(g = SuperMap.Plot.PlottingUtil.intersectLines(L, V, s[_], s[_ + 1])).isIntersectLines && (M = g.intersectPoint, (n = []).push(s[_]), n.push(s[_ + 1]), (g = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M, n)).isOnPolyLine && m.push(M)); if (1 < m.length) { this.sortPts2D(m); for (var T = 0; T < m.length - 1; T++)i = new SuperMap.Geometry.Point((m[T].x + m[T + 1].x) / 2, (m[T].y + m[T + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(s, i) && ((b = []).push(m[T]), b.push(m[T + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, c)) } m.length > 0 && (h = !0), y -= S, f += S } this.finish() } } }, { key: "sortPts2D", value: function (t) { for (var e = new SuperMap.Geometry.Point(0, 0), l = 0; l < t.length; l++)for (var o = 0; o < t.length - 1 - l; o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x, t[o + 1].x) ? t[o].y > t[o + 1].y && (e = t[o], t[o] = t[o + 1], t[o + 1] = e) : t[o].x > t[o + 1].x && (e = t[o], t[o] = t[o + 1], t[o + 1] = e); return t } }]), e }(); SuperMap.Plot.AlgoSymbol25700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25601 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol25600), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var l = this.scaleValues[0] * e * .5, o = SuperMap.Plot.PlottingUtil.clonePoints(t); o.push(o[0].clone()); for (var i = 0; i < o.length - 1; i++) { var n = new SuperMap.Geometry.Point((o[i].x + o[i + 1].x) / 2, (o[i].y + o[i + 1].y) / 2), a = new SuperMap.Geometry.Point(0, 1.5 * l), r = new SuperMap.Geometry.Point(-.5 * l, 0), s = new SuperMap.Geometry.Point(0, -1.5 * l), p = new SuperMap.Geometry.Point(.5 * l, 0), u = SuperMap.Plot.PlottingUtil.radian(n, o[i + 1]) * SuperMap.Plot.PlottingUtil.RTOD, c = SuperMap.Plot.PlottingUtil.coordinateTrans(n, a, u), P = SuperMap.Plot.PlottingUtil.coordinateTrans(n, r, u), S = SuperMap.Plot.PlottingUtil.coordinateTrans(n, s, u), h = SuperMap.Plot.PlottingUtil.coordinateTrans(n, p, u), y = []; y.push(c), y.push(P), y.push(S), y.push(h), y.push(c.clone()); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, y, { surroundLineFlag: !1, surroundLineLimit: !0, lineTypeLimit: !0, fillLimit: !0, fill: !0, lineWidthLimit: !0 }) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol25601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.01), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { for (var e = t[0].x, l = t[0].x, o = 0; o < t.length; o++)e > t[o].x && (e = t[o].x), l < t[o].x && (l = t[o].x); var i = (l - e) / 50, n = [], a = [], r = !0; t.length > 2 ? SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0], t[1], t[2]) ? (n = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !1), a = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !0)) : (r = !1, n = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !0), a = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !1)) : (n = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !1), a = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !0)); var s, p, u, c, P, S, h, y, f; if (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, a), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n, { surroundLineFlag: !1, lineWidthLimit: !0 }), t.length > 2) { var g = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var M = this.scaleValues[0] * g * .5; a.push(a[0].clone()); for (var b = 0; b < a.length - 1; b++) { s = new SuperMap.Geometry.Point((a[b].x + a[b + 1].x) / 2, (a[b].y + a[b + 1].y) / 2), p = new SuperMap.Geometry.Point(0, 0), u = new SuperMap.Geometry.Point(0, 0), c = new SuperMap.Geometry.Point(0, 0), r ? (p.x = 0, p.y = 1.5 * M, u.x = -.5 * M, u.y = 0, c.x = .5 * M, c.y = 0) : (p.x = 0, p.y = -1.5 * M, u.x = -.5 * M, u.y = 0, c.x = .5 * M, c.y = 0), P = SuperMap.Plot.PlottingUtil.radian(s, a[b + 1]) * SuperMap.Plot.PlottingUtil.RTOD, S = SuperMap.Plot.PlottingUtil.coordinateTrans(s, p, P), h = SuperMap.Plot.PlottingUtil.coordinateTrans(s, u, P), y = SuperMap.Plot.PlottingUtil.coordinateTrans(s, c, P), (f = []).push(S), f.push(h), f.push(y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, f, { surroundLineFlag: !1, surroundLineLimit: !0, lineTypeLimit: !0, fillLimit: !0, fill: !0, lineWidthLimit: !0 }) } n.push(n[0].clone()); for (var m = 0; m < n.length - 1; m++) { s = new SuperMap.Geometry.Point((n[m].x + n[m + 1].x) / 2, (n[m].y + n[m + 1].y) / 2), p = new SuperMap.Geometry.Point(0, 0), u = new SuperMap.Geometry.Point(0, 0), c = new SuperMap.Geometry.Point(0, 0), r ? (p.x = 0, p.y = -1.5 * M, u.x = -.5 * M, u.y = 0, c.x = .5 * M, c.y = 0) : (p.x = 0, p.y = 1.5 * M, u.x = -.5 * M, u.y = 0, c.x = .5 * M, c.y = 0), P = SuperMap.Plot.PlottingUtil.radian(s, n[m + 1]) * SuperMap.Plot.PlottingUtil.RTOD, S = SuperMap.Plot.PlottingUtil.coordinateTrans(s, p, P), h = SuperMap.Plot.PlottingUtil.coordinateTrans(s, u, P), y = SuperMap.Plot.PlottingUtil.coordinateTrans(s, c, P), (f = []).push(S), f.push(h), f.push(y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, f, { surroundLineFlag: !1, surroundLineLimit: !0, lineTypeLimit: !0, fillLimit: !0, fill: !0, lineWidthLimit: !0 }) } } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol25600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25503 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.02)), 0 == this.subSymbols.length && this.subSymbols.push(new SuperMap.Plot.SubSymbol(100, 8402)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = .5 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = n * l, s = []; s.push(new SuperMap.Geometry.Point(a.x - 4 * r, a.y + r / 2)), s.push(new SuperMap.Geometry.Point(a.x - 4 * r, a.y - r / 2)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s, { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }); var p = []; p.push(new SuperMap.Geometry.Point(a.x - 4 * r, a.y)), p.push(new SuperMap.Geometry.Point(a.x - r, a.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { surroundLineFlag: !1, surroundLineLimit: !0, lineTypeLimit: !0 }), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, 2 * r, 0); var u = []; u.push(new SuperMap.Geometry.Point(a.x + 4 * r, a.y)), u.push(new SuperMap.Geometry.Point(a.x + r, a.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, { surroundLineFlag: !1, surroundLineLimit: !0, lineTypeLimit: !0 }); var c = []; c.push(new SuperMap.Geometry.Point(a.x + 4 * r, a.y + r / 2)), c.push(new SuperMap.Geometry.Point(a.x + 4 * r, a.y - r / 2)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { surroundLineFlag: !1, surroundLineLimit: !0, lineTypeLimit: !0 }), this.scalePoints = [], this.addScalePoint(a.clone()); var P = SuperMap.Plot.PlottingUtil.circlePoint(a, 2 * r, 2 * r, 90); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t && 1 != t) return; var l, o, i = this.controlPoints, n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(i), a = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) return; if (0 == t) l = (e.x - n.x) / a, this.scaleValues[0] = l, o = (e.y - n.y) / a, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var r = new SuperMap.Geometry.Point(n.x + a * l, n.y + a * o), s = SuperMap.Plot.PlottingUtil.distance(r, e) / 2 / a; this.scaleValues[2] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol25503 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25502 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.08)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = 2 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = n * l / 2.5, s = .7 * r, p = []; p.push(new SuperMap.Geometry.Point(a.x, a.y)), p.push(new SuperMap.Geometry.Point(a.x + r, a.y)); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, p, { surroundLineFlag: !1, lineTypeLimit: !0 }); var u = []; u.push(new SuperMap.Geometry.Point(a.x + s, a.y - s / 2)), u.push(new SuperMap.Geometry.Point(a.x - s, a.y - s / 2)); var c = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, c); var P = []; P.push(new SuperMap.Geometry.Point(a.x, a.y - s / 2)), P.push(new SuperMap.Geometry.Point(a.x, a.y + s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, c); var S = []; S.push(new SuperMap.Geometry.Point(a.x - s / 2, a.y - s / 2)), S.push(new SuperMap.Geometry.Point(a.x - s, a.y + s / 2)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, c); var h = []; h.push(new SuperMap.Geometry.Point(a.x + s / 2, a.y - s / 2)), h.push(new SuperMap.Geometry.Point(a.x + s, a.y + s / 2)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, c), this.scalePoints = [], this.addScalePoint(a.clone()); var y = SuperMap.Plot.PlottingUtil.circlePoint(a, 1.25 * r, 1.25 * r, 90); this.addScalePoint(y), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t && 1 != t) return; var l, o, i = this.controlPoints, n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(i), a = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) return; if (0 == t) l = (e.x - n.x) / a, this.scaleValues[0] = l, o = (e.y - n.y) / a, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var r = new SuperMap.Geometry.Point(n.x + a * l, n.y + a * o), s = 2 * SuperMap.Plot.PlottingUtil.distance(r, e) / a; this.scaleValues[2] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol25502 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol25500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.05)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = 2 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = n * l, s = .25 * r, p = []; p.push(new SuperMap.Geometry.Point(a.x - r, a.y + s)), p.push(new SuperMap.Geometry.Point(a.x + r, a.y + s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); var u = []; u.push(new SuperMap.Geometry.Point(a.x + r, a.y - s)), u.push(new SuperMap.Geometry.Point(a.x - r, a.y - s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var c = []; c.push(new SuperMap.Geometry.Point(a.x + r, a.y + 2 * s)), c.push(new SuperMap.Geometry.Point(a.x + r, a.y - 2 * s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var P = []; P.push(new SuperMap.Geometry.Point(a.x - r, a.y + 2 * s)), P.push(new SuperMap.Geometry.Point(a.x - r, a.y - 2 * s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.scalePoints = [], this.addScalePoint(a); var S = SuperMap.Plot.PlottingUtil.circlePoint(a, r, r, 90); this.addScalePoint(S), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol25501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.02)); for (var e = t[0].x, l = t[0].x, o = 0; o < t.length; o++)e > t[o].x && (e = t[o].x), l < t[o].x && (l = t[o].x); var i = (l - e) / 50, n = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !1), a = SuperMap.Plot.PlottingUtil.polylineDistance(n), r = SuperMap.Plot.PlottingUtil.paraPolygon(t, i, !0), s = { surroundLineFlag: !1, lineWidthLimit: !0 }; a > SuperMap.Plot.PlottingUtil.polylineDistance(r) ? (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, r, s)) : (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n, s), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, r)); var p = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), u = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[2] = .5 * this.getSubSymbolScaleValue()); var c = this.scaleValues[0], P = this.scaleValues[1], S = this.scaleValues[2], h = new SuperMap.Geometry.Point(p.x + u * c, p.y + u * P), y = S * u, f = new SuperMap.Geometry.Point(h.x - 4 * y, h.y + y / 2), g = new SuperMap.Geometry.Point(h.x - 4 * y, h.y - y / 2), M = []; M.push(f), M.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = new SuperMap.Geometry.Point(h.x - 4 * y, h.y), m = new SuperMap.Geometry.Point(h.x - 1.5 * y, h.y); (M = []).push(b), M.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); for (var d = new SuperMap.Geometry.Point(h.x, h.y - y), v = SuperMap.Plot.PlottingUtil.circlePoint(d, 2 * y, 2 * y, 60), O = SuperMap.Plot.PlottingUtil.circlePoint(d, 2 * y, 2 * y, 120), U = new SuperMap.Geometry.Point((v.x + O.x) / 2, v.y), w = [], L = 0; L <= 180; L += 3)w.push(SuperMap.Plot.PlottingUtil.circlePoint(U, y, y, L)); M = []; for (var V = 0; V < w.length; V++)M.push(w[V].clone()); M.push(O.clone()), M.push(d.clone()), M.push(v.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, M); var _ = new SuperMap.Geometry.Point(h.x + 4 * y, h.y), T = new SuperMap.Geometry.Point(h.x + 1.5 * y, h.y); (M = []).push(_.clone()), M.push(T.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var A = new SuperMap.Geometry.Point(h.x + 4 * y, h.y + y / 2), E = new SuperMap.Geometry.Point(h.x + 4 * y, h.y - y / 2); (M = []).push(A.clone()), M.push(E.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.scalePoints = [], this.addScalePoint(h.clone()); var x = SuperMap.Plot.PlottingUtil.circlePoint(h, y, y, 90); this.addScalePoint(x.clone()), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t && 1 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i, n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), a = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) return; if (0 == t) o = (e.x - n.x) / a, this.scaleValues[0] = o, i = (e.y - n.y) / a, this.scaleValues[1] = i; else if (1 == t) { o = this.scaleValues[0], i = this.scaleValues[1]; var r = new SuperMap.Geometry.Point(n.x + a * o, n.y + a * i), s = SuperMap.Plot.PlottingUtil.distance(r, e) / a; this.scaleValues[2] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol25500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)); for (var i = this.getLinePts(e, this.scaleValues[0]), n = this.getLinePts(e, 1.2 * this.scaleValues[0]), a = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt), r = [], s = [], p = 0; p <= n.startIndex; p++)r.push(e[p]); if (r.push(n.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), n.endIndex <= e.length) { s.push(n.endPt); for (var u = n.endIndex + 1; u <= e.length - 1; u++)s.push(e[u]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } var c = e[0], P = e[1], S = e[e.length - 2], h = e[e.length - 1], y = .3 * a, f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y, P, c), g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y, S, h), M = f.pntLeft, b = g.pntLeft, m = []; m.push(c), m.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); var d = []; d.push(h), d.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, O = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), U = new SuperMap.Geometry.Point(.1 * a, 0), w = new SuperMap.Geometry.Point(.5 * a, 0), L = SuperMap.Plot.PlottingUtil.coordinateTrans(O, U, v), V = SuperMap.Plot.PlottingUtil.coordinateTrans(O, w, v), _ = []; _.push(L), _.push(V); var T = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _, T); var A = new SuperMap.Geometry.Point(.35 * a, 0), E = SuperMap.Plot.PlottingUtil.circlePoint(A, .2 * a, .2 * a, 135), x = SuperMap.Plot.PlottingUtil.circlePoint(A, .2 * a, .2 * a, 225), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(O, A, v), j = SuperMap.Plot.PlottingUtil.coordinateTrans(O, E, v), C = SuperMap.Plot.PlottingUtil.coordinateTrans(O, x, v); (_ = []).push(j), _.push(Y), _.push(C), T = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }, this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _, T); var I = new SuperMap.Geometry.Point(-.1 * a, 0), G = new SuperMap.Geometry.Point(-.5 * a, -.15 * a), B = new SuperMap.Geometry.Point(-.5 * a, .15 * a), R = SuperMap.Plot.PlottingUtil.coordinateTrans(O, I, v), N = SuperMap.Plot.PlottingUtil.coordinateTrans(O, G, v), D = SuperMap.Plot.PlottingUtil.coordinateTrans(O, B, v); (_ = []).push(R), _.push(N), _.push(D), _.push(R), T = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }, this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _, T); var k = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), z = SuperMap.Plot.PlottingUtil.circlePoint(k.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, v); this.addScalePoint(z, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol25400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.068), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && this.scaleValues.push(.068), 0 == this.subSymbols.length && (this.subSymbols.push(new SuperMap.Plot.SubSymbol(100, 300)), this.subSymbols.push(new SuperMap.Plot.SubSymbol(100, 6200))); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0], o = l * e, i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e / 2, n); if (a.bfind) { var r = a.pts.clone(), s = a.index, p = (l = this.scaleValues[0]) * e, u = []; u.push(r); for (var c = s; c >= 0; c--)u.push(n[c]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, u)).bfind) { var P = a.index, S = a.pts.clone(), h = []; h.push(S); for (var y = P + 1; y < u.length; y++)h.push(u[y].clone()); var f = { surroundLineFlag: !1, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, f); var g = []; g.push(r); for (var M = s + 1; M < n.length; M++)g.push(n[M]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, g)).bfind) { var b = a.index, m = a.pts.clone(); (h = []).push(m); for (var d = b + 1; d < g.length; d++)h.push(g[d].clone()); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1 }); var v = SuperMap.Plot.PlottingUtil.radian(S, m) * SuperMap.Plot.PlottingUtil.RTOD, O = new SuperMap.Geometry.Point((S.x + m.x) / 2, (S.y + m.y) / 2); if (this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], O, p, v + 90), e = SuperMap.Plot.PlottingUtil.polylineDistance(i), (a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e / 2, i)).bfind) { var U = a.index, w = a.pts.clone(), L = []; L.push(w); for (var V = U; V >= 0; V--)L.push(i[V]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, L)).bfind) { var _ = a.index, T = a.pts.clone(), A = []; A.push(T); for (var E = _ + 1; E < L.length; E++)A.push(L[E]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A); var x = []; x.push(w); for (var Y = U + 1; Y < i.length; Y++)x.push(i[Y]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, x)).bfind) { var j = a.index, C = a.pts.clone(); (A = []).push(C); for (var I = j + 1; I < x.length; I++)A.push(x[I]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, f); var G = SuperMap.Plot.PlottingUtil.radian(T, C) * SuperMap.Plot.PlottingUtil.RTOD, B = new SuperMap.Geometry.Point((T.x + C.x) / 2, (T.y + C.y) / 2); this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], B, p, G); var R = SuperMap.Plot.PlottingUtil.linePnt(u[u.length - 1], L[L.length - 1], 3 * o), N = SuperMap.Plot.PlottingUtil.linePnt(L[L.length - 1], u[u.length - 1], 3 * o); (A = []).push(R), A.push(N), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, f); var D = SuperMap.Plot.PlottingUtil.linePnt(g[g.length - 1], x[x.length - 1], 3 * o), k = SuperMap.Plot.PlottingUtil.linePnt(x[x.length - 1], g[g.length - 1], 3 * o); (A = []).push(D), A.push(k), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, f), this.scalePoints = [], this.addScalePoint(R.clone()), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o / 2; i >= .4 && (i = .4), this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol25301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.068), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0], o = l * e, i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e / 2, n); if (a.bfind) { var r = a.pts.clone(), s = a.index, p = (l = this.scaleValues[0]) * e, u = []; u.push(r); for (var c = s; c >= 0; c--)u.push(n[c]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, u)).bfind) { var P = a.index, S = a.pts.clone(), h = []; h.push(S); for (var y = P + 1; y < u.length; y++)h.push(u[y].clone()); var f = { surroundLineFlag: !1, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, f); var g = []; g.push(r); for (var M = s + 1; M < n.length; M++)g.push(n[M]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, g)).bfind) { var b = a.index, m = a.pts.clone(); (h = []).push(m); for (var d = b + 1; d < g.length; d++)h.push(g[d].clone()); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1 }); var v = SuperMap.Plot.PlottingUtil.radian(S, m) * SuperMap.Plot.PlottingUtil.RTOD, O = new SuperMap.Geometry.Point((S.x + m.x) / 2, (S.y + m.y) / 2); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], O, p, v); var U = u[u.length - 1].clone(), w = SuperMap.Plot.PlottingUtil.circlePoint(U, .3 * o, .3 * o, v + 30), L = SuperMap.Plot.PlottingUtil.circlePoint(U, .3 * o, .3 * o, v + 180), V = SuperMap.Plot.PlottingUtil.circlePoint(U, .3 * o, .3 * o, v + 330); (h = []).push(w), h.push(L), h.push(V); var _ = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; if (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, _, !0), e = SuperMap.Plot.PlottingUtil.polylineDistance(i), (a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e / 2, i)).bfind) { var T = a.index, A = a.pts.clone(), E = []; E.push(A); for (var x = T; x >= 0; x--)E.push(i[x]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, E)).bfind) { var Y = a.index, j = a.pts.clone(), C = []; C.push(j); for (var I = Y + 1; I < E.length; I++)C.push(E[I]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C); var G = []; G.push(A); for (var B = T + 1; B < i.length; B++)G.push(i[B]); if ((a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, G)).bfind) { var R = a.index, N = a.pts.clone(); (C = []).push(N); for (var D = R + 1; D < G.length; D++)C.push(G[D]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C, f); var k = SuperMap.Plot.PlottingUtil.radian(j, N) * SuperMap.Plot.PlottingUtil.RTOD, z = new SuperMap.Geometry.Point((j.x + N.x) / 2, (j.y + N.y) / 2); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[1], z, p, k + 90); var F = E[E.length - 1].clone(), K = SuperMap.Plot.PlottingUtil.circlePoint(F, .3 * o, .3 * o, v + 30), q = SuperMap.Plot.PlottingUtil.circlePoint(F, .3 * o, .3 * o, v + 180), W = SuperMap.Plot.PlottingUtil.circlePoint(F, .3 * o, .3 * o, v + 330); (h = []).push(K), h.push(q), h.push(W), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, _, !0); var J = SuperMap.Plot.PlottingUtil.linePnt(q, L, 3 * o), Z = SuperMap.Plot.PlottingUtil.linePnt(L, q, 3 * o); (C = []).push(J), C.push(Z), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C, f); var H = SuperMap.Plot.PlottingUtil.linePnt(g[g.length - 1], G[G.length - 1], 3 * o), Q = SuperMap.Plot.PlottingUtil.linePnt(G[G.length - 1], g[g.length - 1], 3 * o); (C = []).push(H), C.push(Q), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C, f), this.scalePoints = [], this.addScalePoint(J.clone()), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o / 2; i >= .45 && (i = .45), this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol25300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.025), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var l, o = e * this.scaleValues[0]; l = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0); var i; i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1), this.addScalePoint(i[0]); var n = i[i.length - 1], a = l[l.length - 1], r = SuperMap.Plot.PlottingUtil.distance(n, a), s = .3 * r, p = l[l.length - 2], u = l[l.length - 1], c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, p, u).pntLeft; p = i[i.length - 2], u = i[i.length - 1]; var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, p, u).pntRight, S = r; p = i[i.length - 1], u = t[t.length - 1]; var h = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(S, p, u).pntRight, y = []; y.push(c), y.push(h), y.push(P); var f = []; f = (f = f.concat(l)).concat(y); for (var g = i.length - 1; g >= 0; --g)f.push(i[g]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; if (i > .5) return; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol25202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = l * this.scaleValues[0], i = e[e.length - 1]; if (e.length > 2) { for (var n = -1, a = e.length - 2; a >= 0; a--)if (o < SuperMap.Plot.PlottingUtil.distance(i, e[a])) { n = a; break } e.splice(n + 1, e.length - n), e.push(i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var r = e[e.length - 2], s = e[e.length - 1], p = o, u = 180 * SuperMap.Plot.PlottingUtil.radian(r, s) / Math.PI, c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 157.5), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 202.5), S = []; S.push(c), S.push(i), S.push(P); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0, lineTypeLimit: !0 }, !0); var h = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u); this.addScalePoint(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[l.length - 1]) / o; if (i > .2) return; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol25201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 6 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (t.splice(0, 2), t.unshift(e), this.subSymbols.length > 0) { var l; if (null == this.subSymbols[0].symbolData) return; l = Math.max(this.subSymbols[0].symbolData.symbolSize.x, this.subSymbols[0].symbolData.symbolSize.y); var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * this.scaleValues[4], n = o * this.scaleValues[5], a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, t), s = SuperMap.Plot.PlottingUtil.radian(r.pts, a.pts) * SuperMap.Plot.PlottingUtil.RTOD + 270, p = 100 * SuperMap.Plot.PlottingUtil.distance(a.pts, r.pts) / l, u = new SuperMap.Geometry.Point((r.pts.x + a.pts.x) / 2, (a.pts.y + r.pts.y) / 2); if (null == this.subSymbols.length) return; null != this.subSymbols[0].code && this.computeSubSymbol(this.subSymbols[0], u, p, s), a.pts.isScalePoint = !0, a.pts.tag = this.scalePoints.length, this.scalePoints.push(a.pts.clone()), r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), a = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (3 === t && null == n.pt && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var r = SuperMap.Plot.PlottingUtil.clonePoints(i); r.splice(0, n.index + 1), r.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(r); a < s && (s = a), this.scaleValues[t + 1] = (a - s) / a, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol25200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.105263), l.scaleValues.push(.105263), l.scaleValues.push(.181818), l.scaleValues.push(.285714), l.scaleValues.push(.285714)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol25000), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = this.GetGoPts(); if (0 != t.length) { 0 == this.scaleValues.length && (this.scaleValues.push(.105263), this.scaleValues.push(.105263), this.scaleValues.push(.181818), this.scaleValues.push(.285714), this.scaleValues.push(.285714)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), a = new SuperMap.Geometry.Point(0, o * i), r = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * r), u = new SuperMap.Geometry.Point(o * (1 - s), o * r), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l), g = []; g.push(n), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(a); for (var M, b = [], m = 0; m < g.length; m++)M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[m], f * SuperMap.Plot.PlottingUtil.RTOD), b.push(M); for (var d = [], v = b.length - 1; v >= 0; --v)d.push(b[v]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b), this.scalePoints = []; var O = b[0].clone(); O.isScalePoint = !0, O.tag = 0, this.scalePoints.push(O); var U = b[1].clone(); U.isScalePoint = !0, U.tag = 1, this.scalePoints.push(U); var w = b[2].clone(); w.isScalePoint = !0, w.tag = 2, this.scalePoints.push(w); var L = .08125 * o, V = new SuperMap.Geometry.Point(y.x - L, 0), _ = new SuperMap.Geometry.Point(V.x - L / 2, 0), T = new SuperMap.Geometry.Point(V.x + L / 2, 0), A = []; M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, _, f * SuperMap.Plot.PlottingUtil.RTOD), A.push(M.clone()), M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, T, f * SuperMap.Plot.PlottingUtil.RTOD), A.push(M.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A); var E = new SuperMap.Geometry.Point(V.x, V.y - L / 2), x = new SuperMap.Geometry.Point(V.x, V.y + L / 2), Y = []; M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, x, f * SuperMap.Plot.PlottingUtil.RTOD), Y.push(M.clone()), M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, E, f * SuperMap.Plot.PlottingUtil.RTOD), Y.push(M.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, Y), this.finish() } } }, { key: "GetGoPts", value: function () { var t = []; return this.controlPoints.length < this.minEditPts ? t : (t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), 1 == (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length && (t = []), t) } }]), e }(); SuperMap.Plot.AlgoSymbol25101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.285714), l.scaleValues.push(.285714), l.scaleValues.push(.5), l.scaleValues.push(.333333), l.scaleValues.push(.333333)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol25000), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.285714), this.scaleValues.push(.285714), this.scaleValues.push(.5), this.scaleValues.push(.333333), this.scaleValues.push(.333333)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), a = new SuperMap.Geometry.Point(0, o * i), r = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * r), u = new SuperMap.Geometry.Point(o * (1 - s), o * r), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l), g = []; g.push(n), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(a); for (var M, b = [], m = 0; m < g.length; m++)M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[m], f * SuperMap.Plot.PlottingUtil.RTOD), b.push(M); for (var d = [], v = b.length - 1; v >= 0; --v)d.push(b[v]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b), this.scalePoints = []; var O = b[0].clone(); O.isScalePoint = !0, O.tag = 0, this.scalePoints.push(O); var U = b[1].clone(); U.isScalePoint = !0, U.tag = 1, this.scalePoints.push(U); var w = b[2].clone(); w.isScalePoint = !0, w.tag = 2, this.scalePoints.push(w); var L = .04 * o, V = .0475 * o, _ = new SuperMap.Geometry.Point(y.x - L, 0), T = new SuperMap.Geometry.Point(S.x, S.y + V), A = SuperMap.Plot.PlottingUtil.intersectLines(p, S, _, T), E = A.intersectPoint; if (0 != A.isIntersectLines) { var x = new SuperMap.Geometry.Point(h.x, h.y - V), Y = (A = SuperMap.Plot.PlottingUtil.intersectLines(h, u, _, x)).intersectPoint; if (0 != A.isIntersectLines) { var j = []; j.push(E), j.push(_), j.push(Y); for (var C = [], I = 0; I < j.length; I++)M = SuperMap.Plot.PlottingUtil.coordinateTrans(e, j[I], f * SuperMap.Plot.PlottingUtil.RTOD), C.push(M); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C), this.finish() } } } } }]), e }(); SuperMap.Plot.AlgoSymbol25100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.222222), l.scaleValues.push(.5), l.scaleValues.push(.5), l.scaleValues.push(.5)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.222222), this.scaleValues.push(.5), this.scaleValues.push(.5), this.scaleValues.push(.5)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), a = new SuperMap.Geometry.Point(0, o * i), r = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * r), u = new SuperMap.Geometry.Point(o * (1 - s), o * r), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l), g = []; g.push(n), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(a); for (var M = [], b = 0; b < g.length; b++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[b], f * SuperMap.Plot.PlottingUtil.RTOD); M.push(m) } for (var d = [], v = M.length - 1; v >= 0; --v)d.push(M[v]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d), this.scalePoints = []; var O = M[0].clone(); O.isScalePoint = !0, O.tag = 0, this.scalePoints.push(O); var U = M[1].clone(); U.isScalePoint = !0, U.tag = 1, this.scalePoints.push(U); var w = M[2].clone(); w.isScalePoint = !0, w.tag = 2, this.scalePoints.push(w), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), a = l[1].clone(), r = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(r, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var p = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(r, n, a); var c = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol25000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol24700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(.025), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e; 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(.025), this.scaleValues.push(0)), e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = new SuperMap.Geometry.Point(0, 0), o = this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.polylineDistance(e), n = o * i; if (!this.isEdit) { var a = this.getDefaultSubSymbolSize() / i; (a > .3 || a <= 0) && (a = .3), this.scaleValues[1] = a } var r = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.polylineDistance(t), s = 0, p = .3 * n; this.ComputeDashLine(3 * i / 19, i / 19, e); var u = e[1].clone(), c = e[0].clone(), P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, u, c), S = P.pntRight, h = P.pntLeft, y = []; y.push(h.clone()), y.push(S.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); for (var f = 3 * p, g = e[0].clone(), M = 0; M <= i; M += f) { s = M + 2 * p; var b = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, e); if (b.bfind) { if (l = b.pts, b.index >= e.length) break; var m, d, v, O, U, w, L, V = []; if (V.push(g.clone()), V.push(l.clone()), 0 == M) { var _ = l.clone(); _.isScalePoint = !0, _.tag = 0, this.scalePoints.push(_); var T = S.clone(); T.isScalePoint = !0, T.tag = 1, this.scalePoints.push(T) } if (0 == this.scaleValues[2]) { m = new SuperMap.Geometry.Point((g.x + l.x) / 2, (g.y + l.y) / 2), d = g.clone(), v = m.clone(), c = l.clone(); var A = (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, d, v)).pntLeft; O = SuperMap.Plot.PlottingUtil.linePnt(m, d, .3 * r), U = SuperMap.Plot.PlottingUtil.linePnt(m, c, .3 * r), 0 == M && ((w = A.clone()).isScalePoint = !0, w.tag = 2, this.scalePoints.push(w)), (L = []).push(A.clone()), L.push(O.clone()), L.push(U.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, L) } else { m = new SuperMap.Geometry.Point((g.x + l.x) / 2, (g.y + l.y) / 2), d = g.clone(), v = m.clone(), c = l.clone(); var E = (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, d, v)).pntRight; O = SuperMap.Plot.PlottingUtil.linePnt(m, d, .3 * p), U = SuperMap.Plot.PlottingUtil.linePnt(m, c, .3 * p), 0 == M && ((w = E.clone()).isScalePoint = !0, w.tag = 2, this.scalePoints.push(w)), (L = []).push(E.clone()), L.push(O.clone()), L.push(U.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, L) } if (s = M + 3 * p, (b = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, e)).bfind) { if (l = b.pts, !(b.index < e.length)) break; g = l } } } u = e[e.length - 2].clone(), c = e[e.length - 1].clone(), P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, u, c), (y = []).push(P.pntLeft.clone()), y.push(P.pntRight.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t && 1 != t && 2 != t) return; var l, o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o), l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = e.clone(), r = l[0].clone(); if (0 == t) i = SuperMap.Plot.PlottingUtil.distance(a, r) / .6 / n, this.scaleValues[0] = i; else if (1 == t) i = SuperMap.Plot.PlottingUtil.distance(a, r) / n, this.scaleValues[1] = i; else if (2 == t) { var s = this.scaleValues[0] * n, p = .01 * n, u = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, l); if (!u.bfind) return; var c = u.index, P = u.pts.clone(); if (!(u.index < l.length)) return; var S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, l[c], P).pntLeft.clone(), h = SuperMap.Plot.PlottingUtil.projectPoint(e, S, P); (S.x - P.x) * (h.x - P.x) + (S.y - P.y) * (h.y - P.y) >= 0 ? this.scaleValues[2] = 0 : this.scaleValues[2] = 1 } } } }, { key: "ComputeDashLine", value: function (t, e, l) { for (var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = l[0].clone(), r = 1, s = 0, p = !0, u = !0; s < n;) { var c; (i = []).push(a), s += t; var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, l); if (c = P.index, o = P.pts, !(p = P.bfind)) break; if (r < c) for (var S = r; S < c; S++)i.push(l[S]); i.push(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), s += e; var h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, l); if (c = h.index, a = h.pts, r = c + 1, !(u = h.bfind)) break } if (!p) { (i = []).push(a); for (var y = r; y < l.length; y++)i.push(l[y]); 2 === i.length && 0 === SuperMap.Plot.PlottingUtil.distance(i[0], i[1]) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } if (!u) { var f = l[l.length - 1], g = SuperMap.Plot.PlottingUtil.distance(o, f); if (g *= .01, !SuperMap.Plot.PlottingUtil.equalFuzzy(g, 0)) { var M = SuperMap.Plot.PlottingUtil.linePnt(f, o, g); (i = []).push(M), i.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } } } }]), e }(); SuperMap.Plot.AlgoSymbol24700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23902 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.125), l.scaleValues.push(90)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l, o, i, n = []; if (2 == t.length) { e = t[0], l = t[1]; var a = SuperMap.Plot.PlottingUtil.distance(e, l); i = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, o = SuperMap.Plot.PlottingUtil.circlePoint(e, a, a, i + 60), n.push(e), n.push(o), n.push(l) } else n = n.concat(t); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n), n.push(n[0]); var r = SuperMap.Plot.PlottingUtil.polylineDistance(n), s = this.scaleValues[0], p = this.scaleValues[1], u = this.scaleValues[2], c = this.scaleValues[4], P = r * s; e = n[0], l = n[1], o = n[2]; var S, h = r * p, y = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(e, l, o) / Math.PI * u, f = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, g = f - y, M = f + y, b = SuperMap.Plot.PlottingUtil.circlePoint(e, h, h, g), m = SuperMap.Plot.PlottingUtil.circlePoint(e, h, h, M); S = SuperMap.Plot.PlottingUtil.ptIsInPolygon(n, b) ? b : m; var d = r * this.scaleValues[3]; i = c, 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], S, d, i - 90); var v = SuperMap.Plot.PlottingUtil.circlePoint(e, P, P, f + 180); this.addScalePoint(v), this.addScalePoint(S); var O = SuperMap.Plot.PlottingUtil.circlePoint(S, .5 * d, .5 * d, i); this.addScalePoint(O), this.createArcPts(n, P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i, n, a, r, s, p, u = []; 2 == l.length ? (o = l[0], i = l[1], r = SuperMap.Plot.PlottingUtil.distance(o, i), a = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, n = SuperMap.Plot.PlottingUtil.circlePoint(o, r, r, a + 60), u.push(o), u.push(i), u.push(n)) : u = u.concat(l), o = u[0], i = u[1], n = u[2], u.push(u[0]); var c = SuperMap.Plot.PlottingUtil.polylineDistance(u), P = e; if (0 === t) r = SuperMap.Plot.PlottingUtil.distance(P, u[0]), this.scaleValues[0] = r / c; else if (1 === t) { s = SuperMap.Plot.PlottingUtil.distance(P, u[0]) / c, this.scaleValues[1] = s, a = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(o, i, n) / Math.PI, 0 <= (p = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(o, i, P) / Math.PI / a) && 1 >= p && (this.scaleValues[2] = p) } else if (2 === t) { s = this.scaleValues[1], p = this.scaleValues[2]; var S, h = c * s, y = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(o, i, n) / Math.PI * p, f = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, g = f - y, M = f + y, b = SuperMap.Plot.PlottingUtil.circlePoint(o, h, h, g), m = SuperMap.Plot.PlottingUtil.circlePoint(o, h, h, M); S = SuperMap.Plot.PlottingUtil.ptIsInPolygon(u, b) ? b : m; var d = 2 * SuperMap.Plot.PlottingUtil.distance(P, S) / c; this.scaleValues[3] = d; var v = 180 * SuperMap.Plot.PlottingUtil.radian(S, P) / Math.PI; this.scaleValues[4] = v } } } }, { key: "ComputeSubSymbolPt", value: function (t, e, l, o) { var i, n, a = l[0], r = l[1], s = l[2], p = SuperMap.Plot.PlottingUtil.plumbLineLen(s, a, r) * t, u = SuperMap.Plot.PlottingUtil.plumbLineLen(r, a, s) * e, c = []; if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(a, r, o) ? ((i = []).push(a), i.push(r), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !1)) : ((i = []).push(a), i.push(r), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !0)), SuperMap.Plot.PlottingUtil.pointIsRightToLine(a, s, o) ? ((i = []).push(a), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !1)) : ((i = []).push(a), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !0)), 2 > c.length || 2 > n.length) return o; var P = SuperMap.Plot.PlottingUtil.intersectLines(c[0], c[1], n[0], n[1]); return P.isIntersectLines ? P.intersectPoint : o } }, { key: "createArcPts", value: function (t, e) { for (var l = [], o = [], i = 0; i < t.length; i++)o.push(e), l.push([{ Start: 0, End: 360 }]); for (var n = 0; n < t.length; n++)if (0 !== l[n].length && (0 !== l[n][0].Start || 0 !== l[n][0].End)) for (var a = n + 1; a < t.length; a++)if (0 !== l[a].length && (0 !== l[a][0].Start || 0 !== l[a][0].End)) { var r = SuperMap.Plot.PlottingUtil.distance(t[n], t[a]); if (r < o[n] + o[a]) if (r > Math.abs(o[n] - o[a])) for (var s = 0; s < 2; s++) { var p, u, c; 0 == s ? (c = n, p = SuperMap.Plot.PlottingUtil.radian(t[n], t[a]) * SuperMap.Plot.PlottingUtil.RTOD, u = Math.acos((r * r + o[n] * o[n] - o[a] * o[a]) / (2 * r * o[n])) * SuperMap.Plot.PlottingUtil.RTOD) : (c = a, p = SuperMap.Plot.PlottingUtil.radian(t[a], t[n]) * SuperMap.Plot.PlottingUtil.RTOD, u = Math.acos((r * r + o[a] * o[a] - o[n] * o[n]) / (2 * r * o[a])) * SuperMap.Plot.PlottingUtil.RTOD); var P = p - u, S = p + u, h = P < 0 && S > 0 || P > 360 || S > 360; P = this.adjustAngle(P), S = this.adjustAngle(S); for (var y = l[c].length - 1; y >= 0; y--)if (h) { if (S > l[c][y].End || SuperMap.Plot.PlottingUtil.equalFuzzy(S, l[c][y].End)) { l[c].splice(y, 1); continue } if (S > l[c][y].Start && (l[c][y].Start = S), P < l[c][y].Start || SuperMap.Plot.PlottingUtil.equalFuzzy(P, l[c][y].Start)) { l[c].splice(y, 1); continue } P < l[c][y].End && (l[c][y].End = P) } else if (P < l[c][y].Start && S > l[c][y].End) l[c].splice(y, 1); else if (P > l[c][y].Start && S < l[c][y].End) l[c].push({ Start: l[c][y].Start, End: P }), l[c].push({ Start: S, End: l[c][y].End }), l[c].splice(y, 1); else { if (P > l[c][y].End) continue; if (P > l[c][y].Start && (l[c][y].End = P), S < l[c][y].Start) continue; S < l[c][y].End && (l[c][y].Start = S) } } else { if (o[n] < o[a]) { l[n][0].Start = 0, l[n][0].End = 0; break } l[a][0].Start = 0, l[a][0].End = 0 } } for (var f = 0; f < t.length; f++)if (0 !== l[f].length && (0 !== l[f][0].Start || 0 !== l[f][0].End)) for (var g = l[f].length - 1; g >= 0; g--) { for (var M = this.adjustAngle(l[f][g].Start), b = this.adjustAngle(l[f][g].End); b < M;)b += 360; for (var m = [], d = (b - M) / 72, v = M; v < b + d / 2; v += d) { var O = t[f].x + o[f] * Math.cos(v * SuperMap.Plot.PlottingUtil.DTOR), U = t[f].y + o[f] * Math.sin(v * SuperMap.Plot.PlottingUtil.DTOR); m.push(new SuperMap.Geometry.Point(O, U)) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m) } } }, { key: "adjustAngle", value: function (t) { for (; t > 360;)t -= 360; for (; t < 0;)t += 360; return t } }, { key: "GetCirclePts", value: function (t, e, l, o) { var i = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, n = 180 * SuperMap.Plot.PlottingUtil.radian(t, l) / Math.PI, a = i; n > i && (a = n); for (var r = [], s = a; s < 360 + a; s += 4)90 == s && (s = 91), r.push(SuperMap.Plot.PlottingUtil.circlePoint(t, o, o, s)); return r.push[0], r } }, { key: "CreatArc", value: function (t, e, l) { for (var o = [], i = [], n = 0; n < t.length; n++) { var a = t[n]; SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, a) || SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, a) ? (i.length > 1 && o.push(i), i = []) : i.push(a) } i.length > 1 && o.push(i); for (var r = 0; r < o.length; r++) { var s = o[r]; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } } }, { key: "GetArcPts3D", value: function (t, e, l) { for (var o = [], i = [], n = 0; n < t.length; n++) { var a = t[n]; SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, a) || SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, a) ? (i.length > 1 && o.push(i), i = []) : i.push(a) } i.length > 1 && o.push(i); for (var r = [], s = 0; s < o.length; s++)r = r.concat(o[s]); return r } }, { key: "sortPts", value: function (t, e) { t = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); for (var l = 0; l < e.length; l++)for (var o = e[l], i = 180 * SuperMap.Plot.PlottingUtil.radian(t, o) / Math.PI, n = 0; n < e.length; n++) { var a = e[n], r = 180 * SuperMap.Plot.PlottingUtil.radian(t, a) / Math.PI; if (i > r) { var s = new SuperMap.Geometry.Point(o.x, o.y); o = new SuperMap.Geometry.Point(a.x, a.y), a = new SuperMap.Geometry.Point(s.x, s.y), i = r, e[l] = o, e[n] = a } } return e } }]), e }(); SuperMap.Plot.AlgoSymbol23902 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23901 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.333333), l.scaleValues.push(.333333), l.scaleValues.push(.125), l.scaleValues.push(90)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = []; if (2 == t.length) { var o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = SuperMap.Plot.PlottingUtil.distance(o, i); e = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI; var a = SuperMap.Plot.PlottingUtil.circlePoint(o, n, n, e + 60); l.push(t[0]), l.push(i), l.push(a), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l) } else { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); for (var r = 0; r < t.length; r++)l.push(t[r]) } var s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); l.push(l[0]); var p = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (!this.isEdit) { var u = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.scaleValues[2] = 2 * u * this.getSubSymbolScaleValue() / p } var c = this.scaleValues[0], P = this.scaleValues[1], S = this.scaleValues[2], h = this.scaleValues[3], y = this.ComputeSubSymbolPt(c, P, l, s), f = p * S, g = y; e = h - 90, 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], g, f, e), this.addScalePoint(g); var M = SuperMap.Plot.PlottingUtil.circlePoint(y, f, f, h); this.addScalePoint(M), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i, n, a = []; if (2 == l.length) { o = l[0], i = l[1]; var r = SuperMap.Plot.PlottingUtil.distance(o, i), s = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI; n = SuperMap.Plot.PlottingUtil.circlePoint(o, r, r, s + 60), a.push(o), a.push(i), a.push(n) } else a = a.concat(l); o = a[0], i = a[1], n = a[2]; var p = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(a); a.push(a[0]); var u = SuperMap.Plot.PlottingUtil.polylineDistance(a), c = e; if (0 == t) { var P = SuperMap.Plot.PlottingUtil.plumbLineLen(n, o, i), S = SuperMap.Plot.PlottingUtil.plumbLineLen(i, o, n), h = SuperMap.Plot.PlottingUtil.plumbLineLen(c, o, i) / P, y = SuperMap.Plot.PlottingUtil.plumbLineLen(c, o, n) / S; h > 1 && (h = 1), y > 1 && (y = 1), this.scaleValues[0] = h, this.scaleValues[1] = y } else if (1 == t) { var f = this.scaleValues[0], g = this.scaleValues[1], M = this.ComputeSubSymbolPt(f, g, a, p), b = SuperMap.Plot.PlottingUtil.distance(M, c) / u; this.scaleValues[2] = b; var m = 180 * SuperMap.Plot.PlottingUtil.radian(M, c) / Math.PI; this.scaleValues[3] = m } } } }, { key: "ComputeSubSymbolPt", value: function (t, e, l, o) { var i, n, a = l[0], r = l[1], s = l[2], p = SuperMap.Plot.PlottingUtil.plumbLineLen(s, a, r) * t, u = SuperMap.Plot.PlottingUtil.plumbLineLen(r, a, s) * e, c = []; if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(a, r, o) ? ((i = []).push(a), i.push(r), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !1)) : ((i = []).push(a), i.push(r), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !0)), SuperMap.Plot.PlottingUtil.pointIsRightToLine(a, s, o) ? ((i = []).push(a), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !1)) : ((i = []).push(a), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !0)), 2 > c.length || 2 > n.length) return o; var P = SuperMap.Plot.PlottingUtil.intersectLines(c[0], c[1], n[0], n[1]); return P.isIntersectLines ? P.intersectPoint : o } }]), e }(); SuperMap.Plot.AlgoSymbol23901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23700 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; 3 >= t.length ? (e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t), e = SuperMap.Plot.PlottingUtil.clearSamePts(e)) : e = t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = i } var n = o * this.scaleValues[0] * .15, a = []; a.push(new SuperMap.Geometry.Point(0, n)), a.push(new SuperMap.Geometry.Point(-n, 0)), a.push(new SuperMap.Geometry.Point(0, -n)); var r = []; r.push(new SuperMap.Geometry.Point(n, n)), r.push(new SuperMap.Geometry.Point(0, 0)), r.push(new SuperMap.Geometry.Point(n, -n)); for (var s = new SuperMap.Geometry.Point(-3 * n, 2 * n), p = SuperMap.Plot.PlottingUtil.coordinateTrans(l, s, 0), u = [], c = [], P = 0; P < 3; P++)u.push(new SuperMap.Geometry.Point(a[P].x + p.x, a[P].y + p.y)), c.push(new SuperMap.Geometry.Point(r[P].x + p.x, r[P].y + p.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); for (var S = new SuperMap.Geometry.Point(3 * n, 2 * n), h = SuperMap.Plot.PlottingUtil.coordinateTrans(l, S, 0), y = [], f = [], g = 0; g < 3; g++)y.push(new SuperMap.Geometry.Point(a[g].x + h.x, a[g].y + h.y)), f.push(new SuperMap.Geometry.Point(r[g].x + h.x, r[g].y + h.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var M = new SuperMap.Geometry.Point(-4 * n, -2 * n), b = SuperMap.Plot.PlottingUtil.coordinateTrans(l, M, 0); y = [], f = []; for (var m = 0; m < 3; m++)y.push(new SuperMap.Geometry.Point(a[m].x + b.x, a[m].y + b.y)), f.push(new SuperMap.Geometry.Point(r[m].x + b.x, r[m].y + b.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var d = new SuperMap.Geometry.Point(0, -2 * n), v = SuperMap.Plot.PlottingUtil.coordinateTrans(l, d, 0); y = [], f = []; for (var O = 0; O < 3; O++)y.push(new SuperMap.Geometry.Point(a[O].x + v.x, a[O].y + v.y)), f.push(new SuperMap.Geometry.Point(r[O].x + v.x, r[O].y + v.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var U = new SuperMap.Geometry.Point(4 * n, -2 * n), w = SuperMap.Plot.PlottingUtil.coordinateTrans(l, U, 0); y = [], f = []; for (var L = 0; L < 3; L++)y.push(new SuperMap.Geometry.Point(a[L].x + w.x, a[L].y + w.y)), f.push(new SuperMap.Geometry.Point(r[L].x + w.x, r[L].y + w.y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol23700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(1), l.scaleValues.push(-.1), l.scaleValues.push(0), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 4 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(-.1), this.scaleValues.push(0), this.scaleValues.push(.1), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var i = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[0] = i / o * .8, this.scaleValues[3] = i / o * .8 } var n = this.scaleValues[0], a = this.scaleValues[1], r = this.scaleValues[3], s = this.scaleValues[4], p = this.scaleValues[6], u = this.scaleValues[7], c = this.scaleValues[8], P = this.scaleValues[9], S = new SuperMap.Geometry.Point(l.x + o * p, l.y + o * u), h = new SuperMap.Geometry.Point(l.x + o * c, l.y + o * P), y = [], f = .15 * SuperMap.Plot.PlottingUtil.distance(S, h), g = SuperMap.Plot.PlottingUtil.linePnt(S, h, f), M = SuperMap.Plot.PlottingUtil.linePnt(h, S, f); y.push(g), y.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var b = o * n, m = a; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], S, b, m); var d = o * r, v = s; this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], h, d, v), this.addScalePoint(S); var O = SuperMap.Plot.PlottingUtil.circlePoint(S, b, b, m); this.addScalePoint(O), this.addScalePoint(h); var U = SuperMap.Plot.PlottingUtil.circlePoint(h, d, d, v); this.addScalePoint(U), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; 10 > this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(1), this.scaleValues.push(-.1), this.scaleValues.push(0), this.scaleValues.push(.1), this.scaleValues.push(0)); var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a, r, s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), p = SuperMap.Plot.PlottingUtil.polylineDistance(o), u = e; if (0 == t) i = (u.x - s.x) / p, this.scaleValues[6] = i, n = (u.y - s.y) / p, this.scaleValues[7] = n; else if (1 == t) { i = this.scaleValues[6], n = this.scaleValues[7]; var c = new SuperMap.Geometry.Point(s.x + p * i, s.y + p * n), P = SuperMap.Plot.PlottingUtil.distance(c, u) / p; this.scaleValues[0] = P; var S = 180 * SuperMap.Plot.PlottingUtil.radian(c, u) / Math.PI; this.scaleValues[1] = S, this.scaleValues[2] = 0 <= S && S < 90 ? 1 : 90 <= S && S < 180 ? 2 : 180 <= S && S < 270 ? 3 : 4 } else if (2 == t) a = (u.x - s.x) / p, this.scaleValues[8] = a, r = (u.y - s.y) / p, this.scaleValues[9] = r; else if (3 == t) { a = this.scaleValues[8], r = this.scaleValues[9]; var h = new SuperMap.Geometry.Point(s.x + p * a, s.y + p * r), y = SuperMap.Plot.PlottingUtil.distance(h, u) / p; this.scaleValues[3] = y; var f = 180 * SuperMap.Plot.PlottingUtil.radian(h, u) / Math.PI; this.scaleValues[4] = f, this.scaleValues[5] = 0 <= f && f < 90 ? 1 : 90 <= f && f < 180 ? 2 : 180 <= f && f < 270 ? 3 : 4 } } } }]), e }(); SuperMap.Plot.AlgoSymbol23600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e, { fillLimit: !0, fill: !1, surroundLineFlag: !1 }); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .2 || i <= 0) && (i = .2), this.scaleValues[0] = i } var n = this.scaleValues[0], a = this.scaleValues[2], r = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * a, l.y + o * r); if (this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0) { if (this.subSymbols[0].symbolData) for (var u in this.subSymbols[0].symbolData.innerCells) this.subSymbols[0].symbolData.innerCells[u].type === SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL && (this.subSymbols[0].symbolData.innerCells[u].type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL); this.computeSubSymbol(this.subSymbols[0], p, s, 0) } this.addScalePoint(p); var c = s, P = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, 90); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), r = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - a.x) / r, this.scaleValues[2] = i, n = (e.y - a.y) / r, this.scaleValues[3] = n; else if (1 === t) { i = this.scaleValues[2], n = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(a.x + r * i, a.y + r * n), p = SuperMap.Plot.PlottingUtil.distance(s, e) / r; this.scaleValues[0] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol23500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e), this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var l = this.scaleValues[0], o = this.scaleValues[1], i = this.scaleValues[2], n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), a = SuperMap.Plot.PlottingUtil.polylineDistance(t), r = a * i, s = new SuperMap.Geometry.Point(n.x + a * l, n.y + a * o); if (this.subSymbols.length > 0) { if (null == this.subSymbols.length) return; null != this.subSymbols[0].code && this.computeSubSymbol(this.subSymbols[0], s, r, 0), this.addScalePoint(s); var p = SuperMap.Plot.PlottingUtil.circlePoint(s, r, r, 0); this.addScalePoint(p) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), r = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - a.x) / r, this.scaleValues[0] = i, n = (e.y - a.y) / r, this.scaleValues[1] = n; else if (1 === t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(a.x + r * i, a.y + r * n), p = SuperMap.Plot.PlottingUtil.distance(s, e) / r; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol23400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol22200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05)); var o = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .35 * this.getSubSymbolScaleValue()); var i = o * this.scaleValues[0], n = []; n.push(new SuperMap.Geometry.Point(l.x, l.y)), n.push(new SuperMap.Geometry.Point(l.x + i, l.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, n); var a = []; a.push(new SuperMap.Geometry.Point(l.x, l.y + .8 * i)), a.push(new SuperMap.Geometry.Point(l.x, l.y - .8 * i)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); var r = []; r.push(new SuperMap.Geometry.Point(l.x + .8 * i, l.y)), r.push(new SuperMap.Geometry.Point(l.x - .8 * i, l.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol22200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol22103 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.025)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol22000), e }(); SuperMap.Plot.AlgoSymbol22103 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol22000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .03) : 1 === this.scaleValues.length && (this.scaleValues[1] = .02), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = .6 * this.getSubSymbolScaleValue() } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .8 * r, a); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p) } var P = e[0], S = e[1], h = e[e.length - 2], y = e[e.length - 1], f = l * this.scaleValues[1], g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, S, P), M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, h, y), b = g.pntLeft, m = M.pntLeft, d = []; d.push(P), d.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = []; v.push(y), v.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v); var O = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), U = SuperMap.Plot.PlottingUtil.circlePoint(O.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, a); this.addScalePoint(U, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol22000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .05, l.scaleValues[2] = .01, l.scaleValues[3] = .02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === this.scaleValues.length ? (this.scaleValues = [], this.scaleValues[0] = .05, this.scaleValues[1] = .02, this.scaleValues[2] = .01, this.scaleValues[3] = .02) : 1 === this.scaleValues.length && (this.scaleValues.push(.02), this.scaleValues.push(.01), this.scaleValues.push(.25 * this.getSubSymbolScaleValue())), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[3] = .5 * o } for (var i = this.getLinePts(e, this.scaleValues[0]), n = [], a = [], r = 0; r <= i.startIndex; r++)n.push(e[r]); if (n.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), i.endIndex <= e.length) { a.push(i.endPt); for (var s = i.endIndex + 1; s <= e.length - 1; s++)a.push(e[s]); this.addArrow(a, this.scaleValues[this.scaleValues.length - 1]) } var p, u, c, P, S, h, y, f, g, M, b, m, d, v = i.startPt.clone(), O = i.endPt.clone(), U = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), w = SuperMap.Plot.PlottingUtil.distance(v, O), L = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD; p = new SuperMap.Geometry.Point(0, 0), u = new SuperMap.Geometry.Point(0, 0), c = new SuperMap.Geometry.Point(0, 0), P = new SuperMap.Geometry.Point(0, 0), S = new SuperMap.Geometry.Point(0, 0), h = new SuperMap.Geometry.Point(0, 0), y = new SuperMap.Geometry.Point(0, 0), f = new SuperMap.Geometry.Point(0, 0), g = new SuperMap.Geometry.Point(0, 0), M = new SuperMap.Geometry.Point(0, 0), b = new SuperMap.Geometry.Point(0, 0), m = new SuperMap.Geometry.Point(0, 0), d = new SuperMap.Geometry.Point(0, 0), v.x >= O.x ? (p.x = .25 * w, p.y = .25 * -w, u.x = .5 * -w, u.y = .25 * -w, c.x = .5 * -w, c.y = .25 * w, P.x = .5 * w, P.y = .25 * w, S.x = .5 * w, S.y = 0, h.x = .25 * -w, h.y = .125 * -w, y.x = 0, y.y = .125 * w, f.x = 0, f.y = .125 * -w, g.x = .25 * w, g.y = .2 * w, M.x = .25 * -w, M.y = .25 * -w, b.x = .375 * -w, b.y = .5 * -w, m.x = .02 * -w, m.y = .25 * -w, d.x = .1 * w, d.y = .5 * -w) : (p.x = .25 * w, p.y = .25 * w, u.x = .5 * -w, u.y = .25 * w, c.x = .5 * -w, c.y = .25 * -w, P.x = .5 * w, P.y = .25 * -w, S.x = .5 * w, S.y = 0, h.x = .25 * w, h.y = .125 * -w, y.x = 0, y.y = .125 * w, f.x = 0, f.y = .125 * -w, g.x = .25 * -w, g.y = .125 * w, M.x = .25 * -w, M.y = .25 * w, b.x = .375 * -w, b.y = .5 * w, m.x = .02 * w, m.y = .25 * w, d.x = .15 * w, d.y = .5 * w); var V = [], _ = [], T = [], A = [], E = [], x = SuperMap.Plot.PlottingUtil.coordinateTrans(U, p, L), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(U, u, L), j = SuperMap.Plot.PlottingUtil.coordinateTrans(U, c, L), C = SuperMap.Plot.PlottingUtil.coordinateTrans(U, P, L), I = SuperMap.Plot.PlottingUtil.coordinateTrans(U, S, L), G = SuperMap.Plot.PlottingUtil.coordinateTrans(U, h, L), B = SuperMap.Plot.PlottingUtil.coordinateTrans(U, y, L), R = SuperMap.Plot.PlottingUtil.coordinateTrans(U, f, L), N = SuperMap.Plot.PlottingUtil.coordinateTrans(U, g, L), D = SuperMap.Plot.PlottingUtil.coordinateTrans(U, M, L), k = SuperMap.Plot.PlottingUtil.coordinateTrans(U, b, L), z = SuperMap.Plot.PlottingUtil.coordinateTrans(U, m, L), F = SuperMap.Plot.PlottingUtil.coordinateTrans(U, d, L); V.push(x), V.push(Y), V.push(j), V.push(C), V.push(I), _.push(G), _.push(B), _.push(R), _.push(N), T.push(D), T.push(k), A.push(z), A.push(F), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, V, null, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _, null, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T, null, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, null, !0); var K = .3 * SuperMap.Plot.PlottingUtil.distance(R, N), q = SuperMap.Plot.PlottingUtil.linePnt(N, R, K), W = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3 * K, N, q); E.push(W.pntLeft), E.push(N), E.push(W.pntRight); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, E, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0); var J = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), Z = SuperMap.Plot.PlottingUtil.circlePoint(J.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, L + 90); this.addScalePoint(Z, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol21900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.2)); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], l = .5 * e, o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, a = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, n + 90), r = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, n + 270), s = SuperMap.Plot.PlottingUtil.circlePoint(a, l, l, n), p = SuperMap.Plot.PlottingUtil.circlePoint(r, l, l, n), u = []; u.push(p), u.push(r), u.push(a), u.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var c = SuperMap.Plot.PlottingUtil.circlePoint(i, e, e, n + 90), P = SuperMap.Plot.PlottingUtil.circlePoint(i, e, e, n + 270), S = SuperMap.Plot.PlottingUtil.circlePoint(c, l, l, n + 180), h = SuperMap.Plot.PlottingUtil.circlePoint(P, l, l, n + 180); (u = []).push(S), u.push(c), u.push(P), u.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addScalePoint(a), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol21800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.05)), l.subText = "", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (SuperMap.Plot.PlottingUtil.clearSamePts(t), !(t.length < this.minEditPts)) { 1 == this.scaleValues.length && this.scaleValues.push(this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[0] = .6 * this.getSubSymbolScaleValue(), this.scaleValues[1] = this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); for (var l = 0, o = 0; o < e.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(e[o], e[o + 1]); var i = .5 * l, n = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, i); if (-1 !== n.index) { for (var a = n.pt, r = [], s = 0, p = 0; p < n.index + 1; p++)r.push(e[p]), p > 0 && (s += SuperMap.Plot.PlottingUtil.distance(r[p], r[p - 1])); var u, c, P = i - s, S = l * this.scaleValues[1], h = []; if (P >= S) { u = SuperMap.Plot.PlottingUtil.linePnt(a, e[n.index], S), r.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), c = SuperMap.Plot.PlottingUtil.linePnt(a, e[n.index + 1], S), h.push(c); for (var y = e.length, f = n.index + 1; f < y; ++f)h.push(e[f]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } else { for (var g, M, b = -1, m = r.length - 1; m >= 0; m--)if (g = new SuperMap.Geometry.Point(r[m].x, r[m].y), M = new SuperMap.Geometry.Point(a.x, a.y), SuperMap.Plot.PlottingUtil.distance(g, M) > S) { b = m; break } if (-1 == b) return; r.splice(b + 1, r.length - 1 - b), u = SuperMap.Plot.PlottingUtil.linePnt(a, e[b], S), r.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); for (var d = -1, v = n.index; v < e.length; v++)if (g = new SuperMap.Geometry.Point(e[v].x, e[v].y), M = new SuperMap.Geometry.Point(a.x, a.y), SuperMap.Plot.PlottingUtil.distance(g, M) > S) { d = v; break } if (-1 == d) return; c = SuperMap.Plot.PlottingUtil.linePnt(a, e[d], S), h.push(c); for (var O = d + 1; O < e.length; ++O)h.push(e[O]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } if (!(r.length < 2)) { for (var U = 0, w = 0; w < t.length - 1; w++)U += SuperMap.Plot.PlottingUtil.distance(t[w], t[w + 1]); var L = U * this.scaleValues[0], V = new SuperMap.Geometry.Point(r[0].x, r[0].y), _ = new SuperMap.Geometry.Point(r[1].x, r[1].y), T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, _, V), A = []; if (A.push(T.pntLeft), A.push(T.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A), !(h.length < 2)) { var E = new SuperMap.Geometry.Point(h[h.length - 1].x, h[h.length - 1].y), x = new SuperMap.Geometry.Point(h[h.length - 2].x, h[h.length - 2].y), Y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, x, E); (A = []).push(Y.pntLeft), A.push(Y.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A); var j = u, C = c, I = 180 * SuperMap.Plot.PlottingUtil.radian(j, C) / Math.PI, G = SuperMap.Plot.PlottingUtil.distance(j, C), B = new SuperMap.Geometry.Point((u.x + c.x) / 2, (u.y + c.y) / 2), R = this.subText; this.addText(R, B, G, I), this.addScalePoint(T.pntLeft), this.finish() } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol21600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21504 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21501), o(e, [{ key: "addSubSymbols", value: function (t, e, l) { this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], t, .8 * e, l - 90) } }]), e }(); SuperMap.Plot.AlgoSymbol21504 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21503 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21501), o(e, [{ key: "addSubSymbols", value: function (t, e, l) { this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], t, .8 * e, l - 90) } }]), e }(); SuperMap.Plot.AlgoSymbol21503 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol21502 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21501), e }(); SuperMap.Plot.AlgoSymbol21502 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .02) : 1 === this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = .5 * this.getSubSymbolScaleValue() } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.addSubSymbols(n, r, a); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p, this.scaleValues[1]) } var P = l * this.scaleValues[0] * .5, S = SuperMap.Plot.PlottingUtil.circlePoint(n, P, P, a + 90); this.addScalePoint(S, 0), this.finish() } } }, { key: "addSubSymbols", value: function (t, e, l) { this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], t, .8 * e, l - 180) } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), a = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = a <= .5 ? a : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol21501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues = [], this.scaleValues.push(.02), this.scaleValues.push(.1), this.scaleValues.push(0)) : 3 === this.scaleValues.length && this.scaleValues.push(.5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); if (e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addArrow(e, this.scaleValues[this.scaleValues.length - 1]), 0 !== SuperMap.Plot.PlottingUtil.polylineDistance(e)) { if (!this.isEdit) { var l = this.getSubSymbolScaleValue(); this.scaleValues[0] = .5 * l, this.scaleValues[this.scaleValues.length - 1] = .5 * this.getSubSymbolScaleValue() } for (var o = this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.polylineDistance(t), n = o * i, a = this.scaleValues[1] * i, r = 0, s = .01 * i, p = s, u = 0; p <= i; p += a, u++) { r = p + s; var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, r); if (-1 === c.index) return; var P = [], S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, e[c.index], c.pt); P.push(new SuperMap.Geometry.Point(S.pntLeft.x, S.pntLeft.y)), P.push(new SuperMap.Geometry.Point(S.pntRight.x, S.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), 0 === u ? this.addScalePoint(P[0], 0) : 1 === u && this.addScalePoint(c.pt, 1) } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = .01 * i; if (0 === t) { var a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, n); if (-1 === a.index) return; var r = SuperMap.Plot.PlottingUtil.distance(e, a.pt); this.scaleValues[0] = r / i } else if (1 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, n); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, o); if (-1 === p.index) return; for (var u = 0, c = s.index + 1; c < p.index; c++)u += SuperMap.Plot.PlottingUtil.distance(o[c], o[c + 1]); u += SuperMap.Plot.PlottingUtil.distance(o[p.index], p.pt), u -= n, this.scaleValues[1] = u / i, this.scaleValues[1] > .93 && (this.scaleValues[1] = .93) } } } }]), e }(); SuperMap.Plot.AlgoSymbol21500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.03), l.scaleValues.push(.4), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues = [], this.scaleValues.push(.03), this.scaleValues.push(.4), this.scaleValues.push(0)) : 3 === this.scaleValues.length && this.scaleValues.push(.02); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = this.scaleValues[1], i = l * (1 - o) * .5, n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, e); if (n.bfind) { this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue(), this.scaleValues[this.scaleValues.length - 1] = .5 * this.getSubSymbolScaleValue()); var a, r = this.scaleValues[0], s = SuperMap.Plot.PlottingUtil.polylineDistance(t) * r, p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[n.index], n.pts), u = this.scaleValues[2]; 1 === u ? a = new SuperMap.Geometry.Point(p.pntRight.x, p.pntRight.y) : 0 === u && (a = new SuperMap.Geometry.Point(p.pntLeft.x, p.pntLeft.y)); var c = []; c.push(a), c.push(n.pts); var P; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c, { lineTypeLimit: !0 }); var S = l * (.5 + .5 * o), h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e); if (h.bfind) { var y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[h.index], h.pts); 1 === u ? P = new SuperMap.Geometry.Point(y.pntRight.x, y.pntRight.y) : 0 === u && (P = new SuperMap.Geometry.Point(y.pntLeft.x, y.pntLeft.y)), this.addArrow(e, this.scaleValues[this.scaleValues.length - 1]), this.addScalePoint(P, 0); var f = []; f.push(P), f.push(h.pts); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, f, { lineTypeLimit: !0 }), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = i * (.5 + .5 * this.scaleValues[1]), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, o); if (!a.bfind) return; var r, s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, o[a.index], a.pts), p = SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[a.index], o[a.index + 1], e); this.scaleValues[2] = p ? 0 : 1, r = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, new SuperMap.Geometry.Point(s.pntLeft.x, s.pntLeft.y), new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)); var u = SuperMap.Plot.PlottingUtil.distance(r.projectPoint, new SuperMap.Geometry.Point(a.pts.x, a.pts.y)); this.scaleValues[0] = u / i } } }]), e }(); SuperMap.Plot.AlgoSymbol21401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), !(this.controlPoints < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.02));[].push(e[e.length - 1]), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); for (var l = SuperMap.Plot.PlottingUtil.polylineDistance(e) * this.scaleValues[0], o = t[t.length - 1], i = SuperMap.Plot.PlottingUtil.distance(o, e[e.length - 1]); i < 1.5 * l;)e.pop(), i = SuperMap.Plot.PlottingUtil.distance(o, e[e.length - 1]); e.push(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var n = e[e.length - 2], a = 180 * SuperMap.Plot.PlottingUtil.radian(o, n) / Math.PI, r = SuperMap.Plot.PlottingUtil.circlePoint(o, l, l, a + 22.5), s = SuperMap.Plot.PlottingUtil.circlePoint(o, l, l, a - 22.5), p = []; p.push(r), p.push(o), p.push(s); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, p, { surroundLineFlag: !1, fillLimit: !0, lineTypeLimit: !0, fill: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol21400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol20301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length !== this.minEditPts && (this.scaleValues = [], this.scaleValues.push(.2), this.scaleValues.push(0)), this.components = [], this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, this.controlPoints); var e, l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, a = new SuperMap.Geometry.Point((o.x + i.x) / 2, (o.y + i.y) / 2), r = this.scaleValues[0] * l; e = 0 == this.scaleValues[1] ? SuperMap.Plot.PlottingUtil.circlePoint(a, r, r, n + 90) : SuperMap.Plot.PlottingUtil.circlePoint(a, r, r, n + 270); var s = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [a, e]); var p = .02 * SuperMap.Plot.PlottingUtil.distance(t[0], t[t.length - 1]), u = new SuperMap.Geometry.Point((o.x + a.x) / 2, (o.y + a.y) / 2), c = [u, new SuperMap.Geometry.Point(u.x, u.y + p)]; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c, s, !0); var P = new SuperMap.Geometry.Point((i.x + a.x) / 2, (i.y + a.y) / 2); c = [P, new SuperMap.Geometry.Point(P.x, P.y + p)], this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c, s, !0); var S = new SuperMap.Geometry.Point(e.x, e.y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = new SuperMap.Geometry.Point(l[0].x, l[0].y), i = new SuperMap.Geometry.Point(l[1].x, l[1].y), n = SuperMap.Plot.PlottingUtil.distance(o, i); if (0 === n) return; var a = new SuperMap.Geometry.Point((o.x + i.x) / 2, (o.y + i.y) / 2); if (0 === t) { var r = SuperMap.Plot.PlottingUtil.distance(e, a) / n; this.scaleValues[0] = r, SuperMap.Plot.PlottingUtil.pointIsRightToLine(o, i, e) ? this.scaleValues[1] = 1 : this.scaleValues[1] = 0 } } } }]), e }(); SuperMap.Plot.AlgoSymbol20301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol20300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 1 !== this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1)), this.components = [], this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, this.controlPoints); var e = this.scaleValues[0], l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = l * e, i = .01 * l; o < 2 * i && (i = .5 * o); for (var n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, a = 0, r = o; r < l - i; r += o) { var s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r, t); if (s.bfind) { var p = s.pts, u = []; u.push(p); var c = SuperMap.Plot.PlottingUtil.circlePoint(p, i, i, 90); if (u.push(c), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, u, n), 0 === a) { var P = new SuperMap.Geometry.Point(p.x, p.y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } a++ } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; for (var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = -1, n = 0, a = new SuperMap.Geometry.Point(0, 0), r = 0; r < l.length - 1; r++) { var s, p = []; p.push(l[r]), p.push(l[r + 1]); var u = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, l[r], l[r + 1]); if (u.isOnline && (s = u.projectPoint), !u.isOnline && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(e, l[r], l[r + 1]) && (s = e), void 0 === s) return; if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s, p).isOnPolyLine) { var c = SuperMap.Plot.PlottingUtil.distance(e, s); -1 === i ? (i = r, a = s, n = c) : n > c && (i = r, a = s, n = c) } } if (-1 === i || i > l.length - 1) return; for (var P = 0, S = 0; S < i; S++) { var h = new SuperMap.Geometry.Point(l[S].x, l[S].y), y = new SuperMap.Geometry.Point(l[S + 1].x, l[S + 1].y); P += SuperMap.Plot.PlottingUtil.distance(h, y) } var f = new SuperMap.Geometry.Point(l[i].x, l[i].y); if ((P += SuperMap.Plot.PlottingUtil.distance(f, a)) < 0 || P > o) return; var g = P / o; g > .95 ? g = .95 : g < .1 && (g = .1), this.scaleValues[0] = g } } }]), e }(); SuperMap.Plot.AlgoSymbol20300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17806 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17804), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var e, l, o, i, n, a = this.scaleValues[0], r = this.scaleValues[1], s = this.scaleValues[2], p = 0, u = 0; if (t.length == this.minEditPts) { this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y); var c = SuperMap.Plot.PlottingUtil.distance(l, o); p = 2 * c, e = new SuperMap.Geometry.Point(l.x + p * a, l.y + p * r); var P = 2 * c * s / .28 / 2; u = P, i = SuperMap.Plot.PlottingUtil.circlePoint(e, P, P, 0), (n = []).push(e.clone()), n.push(i.clone()), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, n) } else { this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = new SuperMap.Geometry.Point(t[2].x, t[2].y), p = SuperMap.Plot.PlottingUtil.distance(l, o) + SuperMap.Plot.PlottingUtil.distance(l, i), e = new SuperMap.Geometry.Point(l.x + p * a, l.y + p * r); var S = p * s / .21 / 2, h = p * s / .38 / 2; u = S; var y = SuperMap.Plot.PlottingUtil.circlePoint(e, S, S, 0), f = SuperMap.Plot.PlottingUtil.circlePoint(e, h, h, 90); (n = []).push(e.clone()), n.push(y.clone()), n.push(f.clone()), this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, n) } this.scalePoints = []; var g = new SuperMap.Geometry.Point(e.x + .1 * p, e.y); g.isScalePoint = !0, g.tag = 0, this.scalePoints.push(g); var M = SuperMap.Plot.PlottingUtil.circlePoint(e, u, u, 90); M.isScalePoint = !0, M.tag = 1, this.scalePoints.push(M), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l, o, i, n, a = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), r = (a = SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(), s = 0; if (0 == (s = 2 == a.length ? 2 * SuperMap.Plot.PlottingUtil.distance(a[0], a[1]) : SuperMap.Plot.PlottingUtil.distance(a[0], a[1]) + SuperMap.Plot.PlottingUtil.distance(a[0], a[2]))) return; if (0 == t) n = (i = this.scaleValues[2]) * s, l = (e.x - .1 * s - r.x) / s, this.scaleValues[0] = l, o = (e.y - r.y) / s, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var p = new SuperMap.Geometry.Point(r.x + s * l, r.y + s * o); n = SuperMap.Plot.PlottingUtil.distance(p, e), i = .1, i = 2 === a.length ? .56 * n / s : .42 * n / s, this.scaleValues[2] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol17806 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17805 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17804), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)), t.length == this.minEditPts ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = 0; if (0 != (l = t.length == this.minEditPts ? 2 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) : SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) + SuperMap.Plot.PlottingUtil.distance(t[0], t[2]))) { var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = 3 * (l * n), s = new SuperMap.Geometry.Point(-.5 * r, .3 * r), p = new SuperMap.Geometry.Point(-.5 * r, -.3 * r), u = new SuperMap.Geometry.Point(.5 * r, -.3 * r), c = new SuperMap.Geometry.Point(.5 * r, .3 * r), P = SuperMap.Plot.PlottingUtil.coordinateTrans(a, s, 0), S = SuperMap.Plot.PlottingUtil.coordinateTrans(a, p, 0), h = SuperMap.Plot.PlottingUtil.coordinateTrans(a, u, 0), y = SuperMap.Plot.PlottingUtil.coordinateTrans(a, c, 0), f = []; f.push(P.clone()), f.push(S.clone()), f.push(h.clone()), f.push(y.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, f); var g = new SuperMap.Geometry.Point(-.3 * r, .3 * r), M = new SuperMap.Geometry.Point(-.3 * r, .5 * r), b = SuperMap.Plot.PlottingUtil.coordinateTrans(a, g, 0), m = SuperMap.Plot.PlottingUtil.coordinateTrans(a, M, 0); (f = []).push(b.clone()), f.push(m.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var d = new SuperMap.Geometry.Point(-.3 * r, -.3 * r), v = new SuperMap.Geometry.Point(-.3 * r, -.5 * r), O = SuperMap.Plot.PlottingUtil.coordinateTrans(a, d, 0), U = SuperMap.Plot.PlottingUtil.coordinateTrans(a, v, 0); (f = []).push(O.clone()), f.push(U.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var w = new SuperMap.Geometry.Point(.3 * r, .3 * r), L = new SuperMap.Geometry.Point(.3 * r, .5 * r), V = SuperMap.Plot.PlottingUtil.coordinateTrans(a, w, 0), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(a, L, 0); (f = []).push(V.clone()), f.push(_.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var T = new SuperMap.Geometry.Point(.3 * r, -.3 * r), A = new SuperMap.Geometry.Point(.3 * r, -.5 * r), E = SuperMap.Plot.PlottingUtil.coordinateTrans(a, T, 0), x = SuperMap.Plot.PlottingUtil.coordinateTrans(a, A, 0); (f = []).push(E.clone()), f.push(x.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.scalePoints = []; var Y = new SuperMap.Geometry.Point(a.x + .1 * r, a.y); Y.isScalePoint = !0, Y.tag = 0, this.scalePoints.push(Y); var j = SuperMap.Plot.PlottingUtil.circlePoint(a, .5 * r, .5 * r, 90); j.isScalePoint = !0, j.tag = 1, this.scalePoints.push(j), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17805 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17804 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)), t.length == this.minEditPts ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = 0; if (0 != (l = t.length == this.minEditPts ? 2 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) : SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) + SuperMap.Plot.PlottingUtil.distance(t[0], t[2]))) { var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = l * n, s = 3 * r, p = new SuperMap.Geometry.Point(-.5 * s, .5 * r), u = new SuperMap.Geometry.Point(.5 * s, .5 * r), c = SuperMap.Plot.PlottingUtil.coordinateTrans(a, p, 0), P = SuperMap.Plot.PlottingUtil.coordinateTrans(a, u, 0), S = []; S.push(c.clone()), S.push(P.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = new SuperMap.Geometry.Point(-.5 * s, -.5 * r), y = new SuperMap.Geometry.Point(.5 * s, -.5 * r), f = SuperMap.Plot.PlottingUtil.coordinateTrans(a, h, 0), g = SuperMap.Plot.PlottingUtil.coordinateTrans(a, y, 0); (S = []).push(f.clone()), S.push(g.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var M = new SuperMap.Geometry.Point(-.1 * s, .5 * r), b = new SuperMap.Geometry.Point(-.15 * s, -.5 * r), m = SuperMap.Plot.PlottingUtil.coordinateTrans(a, M, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(a, b, 0); (S = []).push(m.clone()), S.push(d.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var v = new SuperMap.Geometry.Point(.15 * s, .5 * r), O = new SuperMap.Geometry.Point(.1 * s, -.5 * r), U = SuperMap.Plot.PlottingUtil.coordinateTrans(a, v, 0), w = SuperMap.Plot.PlottingUtil.coordinateTrans(a, O, 0); (S = []).push(U.clone()), S.push(w.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), this.scalePoints = []; var L = new SuperMap.Geometry.Point(a.x + .1 * s, a.y); L.isScalePoint = !0, L.tag = 0, this.scalePoints.push(L); var V = SuperMap.Plot.PlottingUtil.circlePoint(a, .5 * s, .5 * s, 90); V.isScalePoint = !0, V.tag = 1, this.scalePoints.push(V), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l, o, i, n, a = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), r = (a = SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(), s = 0; if (0 == (s = 2 == a.length ? 2 * SuperMap.Plot.PlottingUtil.distance(a[0], a[1]) : SuperMap.Plot.PlottingUtil.distance(a[0], a[1]) + SuperMap.Plot.PlottingUtil.distance(a[0], a[2]))) return; if (0 == t) n = (i = this.scaleValues[2]) * s, l = (e.x - .1 * n - r.x) / s, this.scaleValues[0] = l, o = (e.y - r.y) / s, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var p = new SuperMap.Geometry.Point(r.x + s * l, r.y + s * o); i = 2 * (n = SuperMap.Plot.PlottingUtil.distance(p, e)) / s / 3, this.scaleValues[2] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol17804 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17803 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.2)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.2)), 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = 0; if (0 != (l = 2 == t.length ? 2 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) : SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) + SuperMap.Plot.PlottingUtil.distance(t[0], t[2]))) { var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], a = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), r = l * n, s = new SuperMap.Geometry.Point(-.5 * r, .25 * r), p = new SuperMap.Geometry.Point(-.4 * r, .125 * r), u = new SuperMap.Geometry.Point(.4 * r, .125 * r), c = new SuperMap.Geometry.Point(.5 * r, .25 * r), P = SuperMap.Plot.PlottingUtil.coordinateTrans(a, s, 0), S = SuperMap.Plot.PlottingUtil.coordinateTrans(a, p, 0), h = SuperMap.Plot.PlottingUtil.coordinateTrans(a, u, 0), y = SuperMap.Plot.PlottingUtil.coordinateTrans(a, c, 0), f = []; f.push(P.clone()), f.push(S.clone()), f.push(h.clone()), f.push(y.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = new SuperMap.Geometry.Point(-.5 * r, -.25 * r), M = new SuperMap.Geometry.Point(-.4 * r, -.125 * r), b = new SuperMap.Geometry.Point(.4 * r, -.125 * r), m = new SuperMap.Geometry.Point(.5 * r, -.25 * r), d = SuperMap.Plot.PlottingUtil.coordinateTrans(a, g, 0), v = SuperMap.Plot.PlottingUtil.coordinateTrans(a, M, 0), O = SuperMap.Plot.PlottingUtil.coordinateTrans(a, b, 0), U = SuperMap.Plot.PlottingUtil.coordinateTrans(a, m, 0); (f = []).push(d.clone()), f.push(v.clone()), f.push(O.clone()), f.push(U.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.scalePoints = []; var w = new SuperMap.Geometry.Point(a.x + .1 * r, a.y); w.isScalePoint = !0, w.tag = 0, this.scalePoints.push(w); var L = SuperMap.Plot.PlottingUtil.circlePoint(a, .25 * r, .25 * r, 90); L.isScalePoint = !0, L.tag = 1, this.scalePoints.push(L), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l, o, i, n, a = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), r = (a = SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(), s = 0; if (0 == (s = 2 == a.length ? 2 * SuperMap.Plot.PlottingUtil.distance(a[0], a[1]) : SuperMap.Plot.PlottingUtil.distance(a[0], a[1]) + SuperMap.Plot.PlottingUtil.distance(a[0], a[2]))) return; if (0 == t) n = (i = this.scaleValues[2]) * s, l = (e.x - .1 * n - r.x) / s, this.scaleValues[0] = l, o = (e.y - r.y) / s, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var p = new SuperMap.Geometry.Point(r.x + s * l, r.y + s * o); i = 4 * (n = SuperMap.Plot.PlottingUtil.distance(p, e)) / s, this.scaleValues[2] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol17803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17802 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), o = 0; 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : (this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), o = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD); var i = SuperMap.Plot.PlottingUtil.distance(e, l), n = [], a = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o), r = SuperMap.Plot.PlottingUtil.circlePoint(e, .08 * i, .08 * i, o + 90), s = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o + 180), p = SuperMap.Plot.PlottingUtil.circlePoint(e, .08 * i, .08 * i, o + 270); n.push(a.clone()), n.push(r.clone()), n.push(s.clone()), n.push(p.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n); var u = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o + 180), c = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o + 180); (n = []).push(u.clone()), n.push(c.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var P = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o + 180), S = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o + 180); (n = []).push(P.clone()), n.push(S.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var h = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o), y = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o); (n = []).push(h.clone()), n.push(y.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var f = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o), g = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o); (n = []).push(f.clone()), n.push(g.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), o = 0; 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : (this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), o = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD); var i = SuperMap.Plot.PlottingUtil.distance(e, l), n = [], a = SuperMap.Plot.PlottingUtil.circlePoint(e, .1 * i, .1 * i, 0); n.push(t[0].clone()), n.push(a.clone()), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, n); var r = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o + 180), s = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o + 180); (n = []).push(r.clone()), n.push(s.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var p = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o + 180), u = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o + 180); (n = []).push(p.clone()), n.push(u.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var c = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o), P = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o); (n = []).push(c.clone()), n.push(P.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var S = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o), h = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o); (n = []).push(S.clone()), n.push(h.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), o = 0; 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : (this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), o = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD); var i = SuperMap.Plot.PlottingUtil.distance(e, l), n = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o + 180), a = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o + 180), r = []; r.push(n.clone()), r.push(a.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); var s = SuperMap.Plot.PlottingUtil.circlePoint(e, .1 * i, .1 * i, o + 180), p = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o + 180); (r = []).push(s.clone()), r.push(p.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); var u = SuperMap.Plot.PlottingUtil.circlePoint(e, .1 * i, .1 * i, o), c = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o); (r = []).push(u.clone()), r.push(c.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); var P = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o), S = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o); (r = []).push(P.clone()), r.push(S.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol17704 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "急", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17703), e }(); SuperMap.Plot.AlgoSymbol17704 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17703 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "加", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.isEdit || (this.scaleValues = []); var o = []; if (this.scalePoints = [], t.length < 3) o.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), o.push(new SuperMap.Geometry.Point(t[1].x, t[1].y)); else { var i = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = i.scaleValues; for (var n = 0; n < i.scalePoints.length; n++)this.addScalePoint(i.scalePoints[n]); o = i.beizerPoints } if (!(o.length < 2)) { var a = e / 2; if (-1 !== SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, a).index) { var r, s; if (r = 2 == t.length ? 0 : t.length - 1, this.isEdit) s = this.scaleValues[4 * r] * e, isNaN(s) && (s = Math.abs(this.scaleValues[4 * r - 1] * e)); else { var p = .5 * this.getSubSymbolScaleValue(); s = p * e, this.scaleValues.push(p) } var u = a - s, c = a + s, P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, u); if (-1 !== P.index) { var S = P.pt; this.addScalePoint(new SuperMap.Geometry.Point(S.x, S.y)); var h = []; if (0 == P.index) h.push(o[0]); else for (var y = 0; y < P.index; y++)h.push(o[y]); h.push(S); var f = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, c); if (-1 !== f.index) { var g = f.pt, M = []; M.push(g); for (var b = f.index + 1; b < o.length; b++)M.push(o[b]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var m = h[h.length - 1], d = M[0], v = 180 * SuperMap.Plot.PlottingUtil.radian(m, d) / Math.PI, O = SuperMap.Plot.PlottingUtil.distance(m, d), U = new SuperMap.Geometry.Point((m.x + d.x) / 2, (m.y + d.y) / 2), w = this.subText; this.addText(w, U, O, v), this.finish() } } } } } } }, { key: "computeBeizer", value: function (t, e) { var l, o, i, n = []; if (this.scalePoints = [], this.isEdit) { (i = []).push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), i.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), l = this.scaleValues[0], o = this.scaleValues[1]; var a = t[0].x + e * l, r = t[0].y + e * o; i.push(new SuperMap.Geometry.Point(a, r)), this.addScalePoint(new SuperMap.Geometry.Point(a, r)); for (var s = 1; s < t.length - 1; s++)i.push(new SuperMap.Geometry.Point(t[s].x, t[s].y)), l = this.scaleValues[4 * s - 2], o = this.scaleValues[4 * s - 1], a = t[s].x + e * l, r = t[s].y + e * o, i.push(new SuperMap.Geometry.Point(a, r)), this.addScalePoint(new SuperMap.Geometry.Point(a, r)), l = this.scaleValues[4 * s], o = this.scaleValues[4 * s + 1], a = t[s].x + e * l, r = t[s].y + e * o, i.push(new SuperMap.Geometry.Point(a, r)), this.addScalePoint(new SuperMap.Geometry.Point(a, r)); var p = t.length - 1; i.push(new SuperMap.Geometry.Point(t[p].x, t[p].y)), l = this.scaleValues[4 * p - 2], o = this.scaleValues[4 * p - 1], a = t[p].x + e * l, r = t[p].y + e * o, i.push(new SuperMap.Geometry.Point(a, r)), this.addScalePoint(new SuperMap.Geometry.Point(a, r)), i.push(new SuperMap.Geometry.Point(t[p].x, t[p].y)), n = SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i) } else { if (this.scaleValues = [], i = [], (i = SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(t)).length < 3) return n; var u = i[2].x - i[0].x, c = i[2].y - i[0].y; l = u / e, o = c / e, this.scaleValues.push(l), this.scaleValues.push(o), this.addScalePoint(new SuperMap.Geometry.Point(i[2].x, i[2].y)); for (var P = 1; P < t.length - 1; P++) { l = (u = i[3 * P + 1].x - i[3 * P].x) / e, o = (c = i[3 * P + 1].y - i[3 * P].y) / e, this.scaleValues.push(l), this.scaleValues.push(o), this.addScalePoint(new SuperMap.Geometry.Point(i[3 * P + 1].x, i[3 * P + 1].y)); var S = (i[3 * P + 2].x - i[3 * P].x) / e, h = (i[3 * P + 2].y - i[3 * P].y) / e; this.scaleValues.push(S), this.scaleValues.push(h), this.addScalePoint(new SuperMap.Geometry.Point(i[3 * P + 2].x, i[3 * P + 2].y)) } l = (u = i[3 * (t.length - 1) + 1].x - i[3 * (t.length - 1)].x) / e, o = (c = i[3 * (t.length - 1) + 1].y - i[3 * (t.length - 1)].y) / e, this.scaleValues.push(l), this.scaleValues.push(o), this.addScalePoint(new SuperMap.Geometry.Point(i[3 * (t.length - 1) + 1].x, i[3 * (t.length - 1) + 1].y)), n = SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i) } return n } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), t < 0 || t > 2 * l.length - 2) return; for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (2 * (l.length - 1) == t || 2 == l.length) { for (var n = this.computeBeizer(l, o), a = 0, r = 0; r < n.length - 1; r++)a += SuperMap.Plot.PlottingUtil.distance(n[r], n[r + 1]); var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(n, a / 2); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.distance(e, s.pt) / o; p > .45 && (p = .45), 2 == l.length ? this.scaleValues[0] = p : this.scaleValues[2 * t] = p } else { var u = -1; u = t % 2 == 0 ? t / 2 : (t + 1) / 2; var c = (e.x - l[u].x) / o, P = (e.y - l[u].y) / o; this.scaleValues[2 * t] = c, this.scaleValues[2 * t + 1] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol17703 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); 0 === this.scaleValues.length && this.scaleValues.push(.02), this.isEdit || (this.scaleValues[0] = .2 * this.getSubSymbolScaleValue()); var l = e * this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.paraLine(o, l, !0), n = SuperMap.Plot.PlottingUtil.paraLine(o, l, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); for (var a = { surroundLineFlag: !1, fillLimit: !0, lineTypeLimit: !0 }, r = this.getDashLinePts(n, 5 * l), s = 0; s < r.length; s++) { var p = r[s]; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, a) } this.finish() } } }, { key: "getDashLinePts", value: function (t, e) { var l = [], o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (e > o) return l; for (var i = SuperMap.Plot.PlottingUtil.clonePoints(t), n = 2 * parseInt(o / (1.5 * e)), a = 0; a < n; a++) { var r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, e); if (-1 !== r.index) { if (0 == a % 2) { for (var s = [], p = 0; p < r.index + 1; p++)s.push(i[p].clone()); s.push(r.pt), l.push(s) } var u = []; u.push(r.pt); for (var c = r.index + 1; c < i.length; c++)u.push(i[c]); i = (i = []).concat(u) } } return i.length > 0 && l.push(i), l } }]), e }(); SuperMap.Plot.AlgoSymbol17700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o, i, n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, a = this.scaleValues[0] * e; o = SuperMap.Plot.PlottingUtil.paraLine(t, a, !0), i = SuperMap.Plot.PlottingUtil.paraLine(t, a, !1); var r = new SuperMap.Geometry.Point(o[0].x, o[0].y); r.isScalePoint = !0, r.tag = 0, this.scalePoints.push(r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); var s = new SuperMap.Geometry.Point(t[0].x, t[0].y), p = new SuperMap.Geometry.Point(t[1].x, t[1].y), u = 180 * SuperMap.Plot.PlottingUtil.radian(s, p) / Math.PI, c = new SuperMap.Geometry.Point(.3 * e, 0), P = SuperMap.Plot.PlottingUtil.coordinateTrans(s, c, u), S = new SuperMap.Geometry.Point(0, .7 * a), h = SuperMap.Plot.PlottingUtil.coordinateTrans(P, S, u), y = []; y.push(new SuperMap.Geometry.Point(P.x, P.y)), y.push(new SuperMap.Geometry.Point(h.x, h.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, y, n); var f = new SuperMap.Geometry.Point(.7 * a, .7 * a), g = new SuperMap.Geometry.Point(-.7 * a, .7 * a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(P, f, u), b = SuperMap.Plot.PlottingUtil.coordinateTrans(P, g, u); (y = []).push(new SuperMap.Geometry.Point(M.x, M.y)), y.push(new SuperMap.Geometry.Point(b.x, b.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var m = new SuperMap.Geometry.Point(.7 * e, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(s, m, u), v = new SuperMap.Geometry.Point(.7 * a, .7 * a), O = new SuperMap.Geometry.Point(.7 * a, -.7 * a), U = new SuperMap.Geometry.Point(-.7 * a, -.7 * a), w = new SuperMap.Geometry.Point(-.7 * a, .7 * a), L = SuperMap.Plot.PlottingUtil.coordinateTrans(d, v, u), V = SuperMap.Plot.PlottingUtil.coordinateTrans(d, O, u), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(d, U, u), T = SuperMap.Plot.PlottingUtil.coordinateTrans(d, w, u); (y = []).push(new SuperMap.Geometry.Point(L.x, L.y)), y.push(new SuperMap.Geometry.Point(V.x, V.y)), y.push(new SuperMap.Geometry.Point(_.x, _.y)), y.push(new SuperMap.Geometry.Point(T.x, T.y)), y.push(new SuperMap.Geometry.Point(L.x, L.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var A = new SuperMap.Geometry.Point(.3 * a, .3 * a), E = new SuperMap.Geometry.Point(.3 * a, -.3 * a), x = new SuperMap.Geometry.Point(-.3 * a, -.3 * a), Y = new SuperMap.Geometry.Point(-.3 * a, .3 * a), j = SuperMap.Plot.PlottingUtil.coordinateTrans(d, A, u), C = SuperMap.Plot.PlottingUtil.coordinateTrans(d, E, u), I = SuperMap.Plot.PlottingUtil.coordinateTrans(d, x, u), G = SuperMap.Plot.PlottingUtil.coordinateTrans(d, Y, u); (y = []).push(new SuperMap.Geometry.Point(j.x, j.y)), y.push(new SuperMap.Geometry.Point(C.x, C.y)), y.push(new SuperMap.Geometry.Point(I.x, I.y)), y.push(new SuperMap.Geometry.Point(G.x, G.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, y, n), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 == t) { var n = l[0], a = l[1], r = SuperMap.Plot.PlottingUtil.projectPoint(e, n, a), s = SuperMap.Plot.PlottingUtil.distance(e, r); this.scaleValues[0] = s / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol17600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17501 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(3 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); for (var l = e[0].x, o = e[0].x, i = e[0].y, n = e[0].y, a = 0; a < e.length; a++)l > e[a].x && (l = e[a].x), o < e[a].x && (o = e[a].x), i > e[a].y && (i = e[a].y), n < e[a].y && (n = e[a].y); var r = new SuperMap.Geometry.Point((o + l) / 2, (n + i) / 2), s = .33 * (o - l), p = .1 * (n - i), u = SuperMap.Plot.PlottingUtil.circlePoint(r, s, s, 0), c = SuperMap.Plot.PlottingUtil.circlePoint(r, s, s, 180), P = []; P.push(new SuperMap.Geometry.Point(u.x, u.y)), P.push(new SuperMap.Geometry.Point(c.x, c.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = new SuperMap.Geometry.Point(r.x - 3 * s / 7, r.y + p), h = SuperMap.Plot.PlottingUtil.circlePoint(S, p, p, 60), y = SuperMap.Plot.PlottingUtil.circlePoint(S, p, p, 120); (P = []).push(new SuperMap.Geometry.Point(h.x, h.y)), P.push(new SuperMap.Geometry.Point(S.x, S.y)), P.push(new SuperMap.Geometry.Point(y.x, y.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var f = new SuperMap.Geometry.Point(r.x + 3 * s / 7, r.y + p), g = SuperMap.Plot.PlottingUtil.circlePoint(f, p, p, 60), M = SuperMap.Plot.PlottingUtil.circlePoint(f, p, p, 120); (P = []).push(new SuperMap.Geometry.Point(g.x, g.y)), P.push(new SuperMap.Geometry.Point(f.x, f.y)), P.push(new SuperMap.Geometry.Point(M.x, M.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17500 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(3 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); for (var l = e[0].x, o = e[0].x, i = e[0].y, n = e[0].y, a = 0; a < e.length; a++)l > e[a].x && (l = e[a].x), o < e[a].x && (o = e[a].x), i > e[a].y && (i = e[a].y), n < e[a].y && (n = e[a].y); var r = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, s = new SuperMap.Geometry.Point((o + l) / 2, (n + i) / 2), p = o - l, u = n - i, c = .1 * p, P = .1 * u, S = new SuperMap.Geometry.Point(s.x, s.y + P), h = new SuperMap.Geometry.Point(s.x - c, s.y - P), y = new SuperMap.Geometry.Point(s.x + c, s.y - P); c = .03 * p, P = .03 * u; var f = new SuperMap.Geometry.Point(S.x, S.y + P), g = new SuperMap.Geometry.Point(S.x - c, S.y - P), M = new SuperMap.Geometry.Point(S.x + c, S.y - P), b = []; b.push(new SuperMap.Geometry.Point(f.x, f.y)), b.push(new SuperMap.Geometry.Point(g.x, g.y)), b.push(new SuperMap.Geometry.Point(M.x, M.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b, r); var m = new SuperMap.Geometry.Point(h.x, h.y + P), d = new SuperMap.Geometry.Point(h.x - c, h.y - P), v = new SuperMap.Geometry.Point(h.x + c, h.y - P), O = []; O.push(new SuperMap.Geometry.Point(m.x, m.y)), O.push(new SuperMap.Geometry.Point(d.x, d.y)), O.push(new SuperMap.Geometry.Point(v.x, v.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, O, r); var U = new SuperMap.Geometry.Point(y.x, y.y + P), w = new SuperMap.Geometry.Point(y.x - c, y.y - P), L = new SuperMap.Geometry.Point(y.x + c, y.y - P), V = []; V.push(new SuperMap.Geometry.Point(U.x, U.y)), V.push(new SuperMap.Geometry.Point(w.x, w.y)), V.push(new SuperMap.Geometry.Point(L.x, L.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, V, r), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17401 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); for (var l = e[0].x, o = e[0].x, i = e[0].y, n = e[0].y, a = [], r = 0; r < e.length; r++)l > e[r].x && (l = e[r].x), o < e[r].x && (o = e[r].x), i > e[r].y && (i = e[r].y), n < e[r].y && (n = e[r].y), a.push(e[r]); for (var s = (o - l) / 5, p = .15 * s, u = [], c = 0; c < 360; c += 18) { var P = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0, 0), p, p, c); u.push(P) } for (var S = 0, h = l; h < o; h += s)for (var y = i; y < n; y += s) { var f = new SuperMap.Geometry.Point(h, y); if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(a, f)) if (0 === S) { S++; for (var g = [], M = 0; M < u.length; M++) { var b = new SuperMap.Geometry.Point(f.x + u[M].x, f.y + u[M].y); g.push(b) } g.push(g[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, g, { fillColorLimit: !0, fillColor: "#ffff00", surroundLineFlag: !1, fillLimit: !0, fillOpacity: 1 }); var m = []; m.push(g[10]), m.push(new SuperMap.Geometry.Point(g[10].x - .5 * p, g[10].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); var d = []; d.push(g[0]), d.push(new SuperMap.Geometry.Point(g[0].x + .5 * p, g[10].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d) } else 1 === S ? (S++, null != this.subSymbols[0] && this.computeSubSymbol(this.subSymbols[0], f, 2 * p, 0)) : (S = 0, null != this.subSymbols[1] && this.computeSubSymbol(this.subSymbols[1], f, 3 * p, 0)) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17400 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(3 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); for (var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = e[0].x, i = e[0].x, n = e[0].y, a = e[0].y, r = [], s = 0; s < e.length; s++)o > e[s].x && (o = e[s].x), i < e[s].x && (i = e[s].x), n > e[s].y && (n = e[s].y), a < e[s].y && (a = e[s].y), r.push(e[s]); for (var p = (i - o) / 5, u = .2 * p, c = [], P = 0; P < 360; P += 18) { var S = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0, 0), u, u, P); c.push(S) } for (var h = 0, y = o; y < i; y += p)for (var f = n; f < a; f += p) { var g, M = new SuperMap.Geometry.Point(y, f); if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(r, M)) 0 === h ? (h = 0, this.subSymbols.length > 0 && (g = .015 * l, this.computeSubSymbol(this.subSymbols[0], M, g, 0)), h++) : (h = 0, this.subSymbols.length > 0 && (g = .022 * l, this.computeSubSymbol(this.subSymbols[1], M, g, 0))) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o, i, n = this.scaleValues[0] * e, a = t[0], r = t[1], s = 180 * SuperMap.Plot.PlottingUtil.radian(a, r) / Math.PI; o = SuperMap.Plot.PlottingUtil.paraLine(t, n, !0), i = SuperMap.Plot.PlottingUtil.paraLine(t, n, !1); var p = .15 * e, u = SuperMap.Plot.PlottingUtil.circlePoint(o[0], p, p, s + 165), c = SuperMap.Plot.PlottingUtil.circlePoint(i[0], p, p, s - 165), P = SuperMap.Plot.PlottingUtil.circlePoint(o[o.length - 1], p, p, s + 15), S = SuperMap.Plot.PlottingUtil.circlePoint(i[i.length - 1], p, p, s - 15), h = SuperMap.Plot.PlottingUtil.linePnt(o[0], o[o.length - 1], 3 * e / 11), y = SuperMap.Plot.PlottingUtil.linePnt(o[0], o[o.length - 1], 4 * e / 11), f = SuperMap.Plot.PlottingUtil.linePnt(o[0], o[o.length - 1], 7 * e / 11), g = SuperMap.Plot.PlottingUtil.linePnt(o[0], o[o.length - 1], 8 * e / 11), M = []; M.push(u), M.push(o[0]), M.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), (M = []).push(y), M.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), (M = []).push(g), M.push(o[o.length - 1]), M.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var b = SuperMap.Plot.PlottingUtil.linePnt(i[0], i[i.length - 1], 3 * e / 11), m = SuperMap.Plot.PlottingUtil.linePnt(i[0], i[i.length - 1], 4 * e / 11), d = SuperMap.Plot.PlottingUtil.linePnt(i[0], i[i.length - 1], 7 * e / 11), v = SuperMap.Plot.PlottingUtil.linePnt(i[0], i[i.length - 1], 8 * e / 11), O = []; if (O.push(c), O.push(i[0]), O.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), (O = []).push(m), O.push(d), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), (O = []).push(v), O.push(i[i.length - 1]), O.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), 90 < s && s < 270) { var U = a; a = r, r = U, s = 180 * SuperMap.Plot.PlottingUtil.radian(a, r) / Math.PI } var w = new SuperMap.Geometry.Point(.25 * e, n + .2 * e), L = new SuperMap.Geometry.Point(.35 * e, n + .2 * e + .1 * e), V = new SuperMap.Geometry.Point(.35 * e, n + .2 * e - .1 * e), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(a, w, s), T = SuperMap.Plot.PlottingUtil.coordinateTrans(a, L, s), A = SuperMap.Plot.PlottingUtil.coordinateTrans(a, V, s), E = []; E.push(new SuperMap.Geometry.Point(T.x, T.y)), E.push(new SuperMap.Geometry.Point(_.x, _.y)), E.push(new SuperMap.Geometry.Point(A.x, A.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, E); var x = new SuperMap.Geometry.Point(.35 * e, n + .2 * e), Y = new SuperMap.Geometry.Point(.4 * e, n + .2 * e + .05 * e), j = new SuperMap.Geometry.Point(.4 * e, n + .2 * e - .05 * e), C = SuperMap.Plot.PlottingUtil.coordinateTrans(a, x, s), I = SuperMap.Plot.PlottingUtil.coordinateTrans(a, Y, s), G = SuperMap.Plot.PlottingUtil.coordinateTrans(a, j, s); (E = []).push(new SuperMap.Geometry.Point(I.x, I.y)), E.push(new SuperMap.Geometry.Point(C.x, C.y)), E.push(new SuperMap.Geometry.Point(G.x, G.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, E); var B = new SuperMap.Geometry.Point(.7 * e, n + .2 * e), R = new SuperMap.Geometry.Point(.8 * e, n + .2 * e + .1 * e), N = new SuperMap.Geometry.Point(.8 * e, n + .2 * e - .1 * e), D = SuperMap.Plot.PlottingUtil.coordinateTrans(a, B, s), k = SuperMap.Plot.PlottingUtil.coordinateTrans(a, R, s), z = SuperMap.Plot.PlottingUtil.coordinateTrans(a, N, s); (E = []).push(new SuperMap.Geometry.Point(k.x, k.y)), E.push(new SuperMap.Geometry.Point(D.x, D.y)), E.push(new SuperMap.Geometry.Point(z.x, z.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, E); var F = new SuperMap.Geometry.Point(.8 * e, n + .2 * e), K = new SuperMap.Geometry.Point(.85 * e, n + .2 * e + .05 * e), q = new SuperMap.Geometry.Point(.85 * e, n + .2 * e - .05 * e), W = SuperMap.Plot.PlottingUtil.coordinateTrans(a, F, s), J = SuperMap.Plot.PlottingUtil.coordinateTrans(a, K, s), Z = SuperMap.Plot.PlottingUtil.coordinateTrans(a, q, s); (E = []).push(new SuperMap.Geometry.Point(J.x, J.y)), E.push(new SuperMap.Geometry.Point(W.x, W.y)), E.push(new SuperMap.Geometry.Point(Z.x, Z.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, E); var H = new SuperMap.Geometry.Point(o[0].x, o[0].y); H.isScalePoint = !0, H.tag = 0, this.scalePoints.push(H), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 == t) { var n = l[0], a = l[1], r = SuperMap.Plot.PlottingUtil.projectPoint(e, n, a), s = SuperMap.Plot.PlottingUtil.distance(e, r); this.scaleValues[0] = s / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol16900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0] * e, i = this.scaleValues[1] * e, n = new SuperMap.Geometry.Point(t[0].x, t[0].y), a = new SuperMap.Geometry.Point(t[1].x, t[1].y), r = 180 * SuperMap.Plot.PlottingUtil.radian(n, a) / Math.PI, s = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, r + 90), p = SuperMap.Plot.PlottingUtil.circlePoint(n, i, i, r + 90), u = SuperMap.Plot.PlottingUtil.circlePoint(a, o, o, r + 90), c = SuperMap.Plot.PlottingUtil.circlePoint(a, i, i, r + 90), P = []; P.push(p), P.push(s), P.push(u), P.push(c), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, SuperMap.Plot.PlottingUtil.clonePoints(P)), (P = []).push(p), P.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, SuperMap.Plot.PlottingUtil.clonePoints(P)), (P = []).push(c), P.push(t[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, SuperMap.Plot.PlottingUtil.clonePoints(P)); var S = new SuperMap.Geometry.Point(s.x, s.y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S); var h = new SuperMap.Geometry.Point(p.x, p.y); h.isScalePoint = !0, h.tag = 1, this.scalePoints.push(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (this.isEdit = !0, !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 == t) { var n = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; if (n < this.scaleValues[1]) return; this.scaleValues[0] = n } else if (1 == t) { var a = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; if (this.scaleValues[0] < a) return; this.scaleValues[1] = a } } } }]), e }(); SuperMap.Plot.AlgoSymbol16700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { if (this.init(), this.controlPoints.length >= this.minEditPts) { var t, e = []; if (2 === this.controlPoints.length) { for (var l = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], this.controlPoints[1]), o = this.scaleValues[0] * l, i = SuperMap.Plot.PlottingUtil.parallel(this.controlPoints, o / 2), n = SuperMap.Plot.PlottingUtil.parallel(this.controlPoints, -o / 2), a = 180 * SuperMap.Plot.PlottingUtil.radian(this.controlPoints[0], this.controlPoints[1]) / Math.PI, r = [], s = a + 90; s <= a + 270; s += 10)t = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], o / 2, o / 2, s), r.push(t); for (var p = [], u = a - 90; u <= a + 90; u += 10)t = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[1], o / 2, o / 2, u), p.push(t); e = (e = (e = (e = e.concat(r)).concat(n)).concat(p)).concat(i) } else this.controlPoints.length <= 3 ? e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, this.controlPoints) : this.controlPoints.length > 3 && !0 === this.polylineConnectLocationPoint ? e = this.controlPoints : (this.controlPoints.push(this.controlPoints[0]), e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints)); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var c = e[0].x, P = e[0].x, S = e[0].y, h = e[0].y; for (s = 0; s < e.length; s++)c > e[s].x && (c = e[s].x), P < e[s].x && (P = e[s].x), S > e[s].y && (S = e[s].y), h < e[s].y && (h = e[s].y); for (var y = new SuperMap.Geometry.Point((P + c) / 2, (h + S) / 2), f = (P - c) / 5, g = { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 1, weight: 1 }, M = !0, b = y.x, m = y.x; M;) { M = !1; for (var d, v, O, U = [], w = [], L = new SuperMap.Geometry.Point(b, y.y), V = SuperMap.Plot.PlottingUtil.circlePoint(L, 10, 10, 45), _ = SuperMap.Plot.PlottingUtil.circlePoint(L, 10, 10, 135), T = 0; T < e.length - 1; T++)(v = SuperMap.Plot.PlottingUtil.intersectLines(L, V, e[T], e[T + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint, e[T], e[T + 1]) && U.push(v.intersectPoint), (O = SuperMap.Plot.PlottingUtil.intersectLines(L, _, e[T], e[T + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(O.intersectPoint, e[T], e[T + 1]) && w.push(O.intersectPoint); if (1 < U.length) { U = this.sortPts2D(U); for (var A = 0; A < U.length - 1; A++)if (t = new SuperMap.Geometry.Point((U[A].x + U[A + 1].x) / 2, (U[A].y + U[A + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, t)) { var E = []; E.push(U[A]), E.push(U[A + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, E, g, !0) } } if (1 < w.length) { w = this.sortPts2D(w); for (var x = 0; x < w.length - 1; x++)t = new SuperMap.Geometry.Point((w[x].x + w[x + 1].x) / 2, (w[x].y + w[x + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, t) && ((d = []).push(w[x]), d.push(w[x + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, g, !0)) } (U.length > 0 || w.length > 0) && (M = !0), U = [], w = []; for (var Y = new SuperMap.Geometry.Point(m, y.y), j = SuperMap.Plot.PlottingUtil.circlePoint(Y, 5, 5, 45), C = SuperMap.Plot.PlottingUtil.circlePoint(Y, 5, 5, 135), I = 0; I < e.length - 1; I++)(v = SuperMap.Plot.PlottingUtil.intersectLines(Y, j, e[I], e[I + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint, e[I], e[I + 1]) && U.push(v.intersectPoint), (O = SuperMap.Plot.PlottingUtil.intersectLines(Y, C, e[I], e[I + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(O.intersectPoint, e[I], e[I + 1]) && w.push(O.intersectPoint); if (1 < U.length) { U = this.sortPts2D(U); for (var G = 0; G < U.length - 1; G += 2)t = new SuperMap.Geometry.Point((U[G].x + U[G + 1].x) / 2, (U[G].y + U[G + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, t) && ((d = []).push(U[G]), d.push(U[G + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, g, !0)) } if (1 < w.length) { w = this.sortPts2D(w); for (var B = 0; B < w.length - 1; B++)t = new SuperMap.Geometry.Point((w[B].x + w[B + 1].x) / 2, (w[B].y + w[B + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, t) && ((d = []).push(w[B]), d.push(w[B + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, g, !0)) } (U.length > 0 || w.length > 0) && (M = !0), b -= f, m += f } this.finish() } } }, { key: "sortPts2D", value: function (t) { for (var e, l = 0; l < t.length; l++)for (var o = 0; o < t.length - 1 - l; o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x, t[o + 1].x) ? t[o].y > t[o + 1].y && (e = t[o], t[o] = t[o + 1], t[o + 1] = e) : t[o].x > t[o + 1].x && (e = t[o], t[o] = t[o + 1], t[o + 1] = e); return t } }]), e }(); SuperMap.Plot.AlgoSymbol16500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16203 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l), this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue()); for (var o = this.scaleValues[0] * e, i = this.scaleValues[1] * e, n = .01 * e, a = SuperMap.Plot.PlottingUtil.polylineDistance(l), r = 0, s = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !0, fill: !0, fillColor: "#ff0000", fillOpacity: 1 }, p = n, u = 0; p <= a; p += i, u++) { r = p + n; var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, r); if (-1 === c.index) return; for (var P = SuperMap.Plot.PlottingUtil.radian(c.pt, l[c.index + 1]) * SuperMap.Plot.PlottingUtil.RTOD, S = this.getSubSymbolPts(o), h = [], y = 0, f = S.length; y < f; y++)h.push(SuperMap.Plot.PlottingUtil.coordinateTrans(c.pt, S[y], P)); if (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, s), 0 === u) { var g = new SuperMap.Geometry.Point((h[0].x + h[1].x) / 2, (h[0].y + h[1].y) / 2); this.addScalePoint(g, 0) } else 1 === u && this.addScalePoint(c.pt, 1); this.finish() } } } }, { key: "getSubSymbolPts", value: function (t) { var e = .5 * t, l = []; return l.push(new SuperMap.Geometry.Point(.5 * e, 2 * e)), l.push(new SuperMap.Geometry.Point(.5 * -e, 2 * e)), l.push(new SuperMap.Geometry.Point(.5 * -e, -2 * e)), l.push(new SuperMap.Geometry.Point(.5 * e, -2 * e)), l } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); i = SuperMap.Plot.PlottingUtil.clearSamePts(i); var n = .01 * o; if (0 === t) { var a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, n); if (-1 === a.index) return; var r = SuperMap.Plot.PlottingUtil.distance(e, a.pt); this.scaleValues[0] = r / o } else if (1 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, n); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i); if (-1 === p.index) return; for (var u = 0, c = s.index + 1; c < p.index; c++)u += SuperMap.Plot.PlottingUtil.distance(i[c], i[c + 1]); u += SuperMap.Plot.PlottingUtil.distance(i[p.index], p.pt), u -= n, this.scaleValues[1] = u / o, u > o - o * this.scaleValues[0] - n && (this.scaleValues[1] = (o - o * this.scaleValues[0] - n) / o) } } } }]), e }(); SuperMap.Plot.AlgoSymbol16203 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o, i, n = this.scaleValues[0] * e; o = SuperMap.Plot.PlottingUtil.paraLine(t, n, !0), i = SuperMap.Plot.PlottingUtil.paraLine(t, n, !1); var a = new SuperMap.Geometry.Point(o[0].x, o[0].y); a.isScalePoint = !0, a.tag = 0, this.scalePoints.push(a), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); var r = new SuperMap.Geometry.Point(t[0].x, t[0].y), s = new SuperMap.Geometry.Point(t[1].x, t[1].y), p = 180 * SuperMap.Plot.PlottingUtil.radian(r, s) / Math.PI, u = new SuperMap.Geometry.Point(.3 * e, 0), c = SuperMap.Plot.PlottingUtil.coordinateTrans(r, u, p), P = new SuperMap.Geometry.Point(0, .4 * n), S = new SuperMap.Geometry.Point(0, .2 * n), h = SuperMap.Plot.PlottingUtil.coordinateTrans(c, P, p), y = SuperMap.Plot.PlottingUtil.coordinateTrans(c, S, p), f = []; f.push(h), f.push(y), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, f); var g = new SuperMap.Geometry.Point(0, .2 * n), M = new SuperMap.Geometry.Point(0, -.4 * n), b = SuperMap.Plot.PlottingUtil.coordinateTrans(c, g, p), m = SuperMap.Plot.PlottingUtil.coordinateTrans(c, M, p); (f = []).push(b), f.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var d = new SuperMap.Geometry.Point(.2 * n, -.2 * n), v = new SuperMap.Geometry.Point(-.2 * n, -.6 * n), O = SuperMap.Plot.PlottingUtil.coordinateTrans(c, d, p), U = SuperMap.Plot.PlottingUtil.coordinateTrans(c, v, p); (f = []).push(O), f.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var w = new SuperMap.Geometry.Point(-.2 * n, -.2 * n), L = new SuperMap.Geometry.Point(.2 * n, -.6 * n), V = SuperMap.Plot.PlottingUtil.coordinateTrans(c, w, p), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(c, L, p); (f = []).push(V), f.push(_), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var T = new SuperMap.Geometry.Point(.7 * e, 0), A = SuperMap.Plot.PlottingUtil.coordinateTrans(r, T, p), E = SuperMap.Plot.PlottingUtil.coordinateTrans(A, P, p), x = SuperMap.Plot.PlottingUtil.coordinateTrans(A, S, p); (f = []).push(E), f.push(x), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, f); var Y = SuperMap.Plot.PlottingUtil.coordinateTrans(A, g, p), j = SuperMap.Plot.PlottingUtil.coordinateTrans(A, M, p); (f = []).push(Y), f.push(j), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var C = SuperMap.Plot.PlottingUtil.coordinateTrans(A, d, p), I = SuperMap.Plot.PlottingUtil.coordinateTrans(A, v, p); (f = []).push(C), f.push(I), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var G = SuperMap.Plot.PlottingUtil.coordinateTrans(A, w, p), B = SuperMap.Plot.PlottingUtil.coordinateTrans(A, L, p); (f = []).push(G), f.push(B), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 == t) { var n = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; this.scaleValues[0] = n } } } }]), e }(); SuperMap.Plot.AlgoSymbol16202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues.push(.02), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(.01)) : 3 === this.scaleValues.length && this.scaleValues.push(.5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * o, !1); i = SuperMap.Plot.PlottingUtil.clearSamePts(i), n = SuperMap.Plot.PlottingUtil.clearSamePts(n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); for (var a = e * this.scaleValues[1], r = e * this.scaleValues[3], s = 0, p = SuperMap.Plot.PlottingUtil.polylineDistance(l), u = r, c = 0; u <= p - r; u += a, c++) { s = u + r; var P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, s); if (-1 !== P.index) { var S = new SuperMap.Geometry.Point(P.pt.x, P.pt.y + .5 * o), h = []; h.push(P.pt), h.push(S), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, h), 0 === c ? this.addScalePoint(S) : 1 === c && this.addScalePoint(P.pt) } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, a = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (a = SuperMap.Plot.PlottingUtil.clearSamePts(a), 0 == t) { n = o * this.scaleValues[3]; var r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(a, n); if (-1 === r.index) return; var s = 2 * SuperMap.Plot.PlottingUtil.distance(e, r.pt); this.scaleValues[0] = s / o } else if (1 === t) { n = o * this.scaleValues[3]; var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(a, n); if (-1 === p.index) return; var u = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, a); if (-1 == u.index) return; for (var c = SuperMap.Plot.PlottingUtil.distance(p.pt, a[p.index + 1]), P = p.index + 1; P < u.index; P++)c += SuperMap.Plot.PlottingUtil.distance(a[P], a[P + 1]); c += SuperMap.Plot.PlottingUtil.distance(a[u.index], u.pt), this.scaleValues[1] = c / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol16201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = this.getSubSymbolScaleValue(); this.isEdit || (this.scaleValues[0] = .5 * o); var i = this.scaleValues[0] * e, n = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * i, !0), a = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * i, !1); n = SuperMap.Plot.PlottingUtil.clearSamePts(n), a = SuperMap.Plot.PlottingUtil.clearSamePts(a), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); for (var r = e * this.scaleValues[1], s = .5 * i, p = SuperMap.Plot.PlottingUtil.polylineDistance(l), u = s, c = 0; u < p; u += r, c++) { var P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, u); if (-1 !== P.index) { var S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, l[P.index + 1], P.pt), h = []; h.push(S.pntLeft), h.push(S.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h), 0 === c ? this.addScalePoint(S.pntRight, 0) : 1 === c && this.addScalePoint(P.pt, 1) } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, a = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (a = SuperMap.Plot.PlottingUtil.clearSamePts(a), 0 == t) { n = .5 * (o * this.scaleValues[0]); var r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(a, n); if (-1 === r.index) return; var s = SuperMap.Plot.PlottingUtil.distance(e, r.pt); this.scaleValues[0] = s / o } else if (1 === t) { n = .5 * (o * this.scaleValues[0]); var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(a, n); if (-1 === p.index) return; var u = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, a); if (-1 == u.index) return; for (var c = SuperMap.Plot.PlottingUtil.distance(p.pt, a[p.index + 1]), P = p.index + 1; P < u.index; P++)c += SuperMap.Plot.PlottingUtil.distance(a[P], a[P + 1]); c += SuperMap.Plot.PlottingUtil.distance(a[u.index], u.pt), this.scaleValues[1] = c / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol16200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16100 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { if (this.init(), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts) this.calAssistantLine(); else { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (SuperMap.Plot.PlottingUtil.clearSamePts(t), !(t.length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t); t.push(t[0]); for (var l = !0, o = e.x, i = e.x + .8, n = { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 1, weight: 1 }; l;) { l = !1; for (var a, r, s, p, u, c, P = [], S = [], h = new SuperMap.Geometry.Point(o, e.y), y = SuperMap.Plot.PlottingUtil.circlePoint(h, 10, 10, 45), f = SuperMap.Plot.PlottingUtil.circlePoint(h, 10, 10, 135), g = 0; g < t.length - 1; g++)(s = SuperMap.Plot.PlottingUtil.intersectLines(h, y, t[g], t[g + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint, t[g], t[g + 1]) && P.push(s.intersectPoint), (p = SuperMap.Plot.PlottingUtil.intersectLines(h, f, t[g], t[g + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, t[g], t[g + 1]) && S.push(p.intersectPoint); if (1 < P.length) { u = [], u = this.sortPts2D(P); for (var M = 0; M < u.length - 1; M++)a = new SuperMap.Geometry.Point((u[M].x + u[M + 1].x) / 2, (u[M].y + u[M + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, a) && ((r = []).push(u[M]), r.push(u[M + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, n, !0)) } if (1 < S.length) { c = [], c = this.sortPts2D(S); for (var b = 0; b < c.length - 1; b++)a = new SuperMap.Geometry.Point((c[b].x + c[b + 1].x) / 2, (c[b].y + c[b + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, a) && ((r = []).push(c[b]), r.push(c[b + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, n, !0)) } (P.length > 0 || S.length > 0) && (l = !0), P = [], S = []; for (var m = new SuperMap.Geometry.Point(i, e.y), d = SuperMap.Plot.PlottingUtil.circlePoint(m, 10, 10, 45), v = SuperMap.Plot.PlottingUtil.circlePoint(m, 10, 10, 135), O = 0; O < t.length - 1; O++)(s = SuperMap.Plot.PlottingUtil.intersectLines(m, d, t[O], t[O + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint, t[O], t[O + 1]) && P.push(s.intersectPoint), (p = SuperMap.Plot.PlottingUtil.intersectLines(m, v, t[O], t[O + 1])).isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, t[O], t[O + 1]) && S.push(p.intersectPoint); if (1 < P.length) { u = [], u = this.sortPts2D(P); for (var U = 0; U < u.length - 1; U++)a = new SuperMap.Geometry.Point((u[U].x + u[U + 1].x) / 2, (u[U].y + u[U + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, a) && ((r = []).push(u[U]), r.push(u[U + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, n, !0)) } if (1 < S.length) { c = [], c = this.sortPts2D(S); for (var w = 0; w < c.length - 1; w++)a = new SuperMap.Geometry.Point((c[w].x + c[w + 1].x) / 2, (c[w].y + c[w + 1].y) / 2), SuperMap.Plot.PlottingUtil.ptIsInPolygon(t, a) && ((r = []).push(c[w]), r.push(c[w + 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, n, !0)) } (P.length > 0 || S.length > 0) && (l = !0), o -= .8, i += .8 } this.finish() } } } }, { key: "sortPts2D", value: function (t) { for (var e, l = 0; l < t.length; l++)for (var o = 0; o < t.length - 1 - l; o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x, t[o + 1].x) ? t[o].y > t[o + 1].y && (e = t[o], t[o] = t[o + 1], t[o + 1] = tempPt11) : t[o].x > t[o + 1].x && (e = t[o], t[o] = t[o + 1], t[o + 1] = e); return t } }]), e }(); SuperMap.Plot.AlgoSymbol16100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16001 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], l = t[1], o = .05 * SuperMap.Plot.PlottingUtil.distance(e, l), i = SuperMap.Plot.PlottingUtil.paraLine(t, .5 * o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, .5 * o, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); for (var a = 0, r = 0; r < i.length - 1; r++)a += SuperMap.Plot.PlottingUtil.distance(i[r], i[r + 1]); for (var s, p, u, c, P, S, h = a * this.getSubSymbolScaleValue() * .5, y = 6 * h, f = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, g = h; g <= a - h / 2; g += y)-1 !== (s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, g)).index && (p = 180 * SuperMap.Plot.PlottingUtil.radian(i[s.index], i[s.index + 1]) / Math.PI, u = SuperMap.Plot.PlottingUtil.circlePoint(s.pt, h, h, p + 90), c = SuperMap.Plot.PlottingUtil.circlePoint(s.pt, .25 * h, .25 * h, p), P = SuperMap.Plot.PlottingUtil.circlePoint(s.pt, .25 * h, .25 * h, p + 180), (S = []).push(u), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, f)); for (var M = h; M <= a - h / 2; M += y)-1 !== (s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(n, M)).index && (p = 180 * SuperMap.Plot.PlottingUtil.radian(n[s.index], n[s.index + 1]) / Math.PI, u = SuperMap.Plot.PlottingUtil.circlePoint(s.pt, h, h, p + 270), c = SuperMap.Plot.PlottingUtil.circlePoint(s.pt, .25 * h, .25 * h, p), P = SuperMap.Plot.PlottingUtil.circlePoint(s.pt, .25 * h, .25 * h, p + 180), (S = []).push(u), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, f)); this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol16001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], l = t[1], o = .05 * SuperMap.Plot.PlottingUtil.distance(e, l), i = SuperMap.Plot.PlottingUtil.paraLine(t, .5 * o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(t, .5 * o, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var a = []; a = this.scaleValues[0] < 0 ? a.concat(n) : a.concat(i); for (var r = 0, s = 0; s < a.length - 1; s++)r += SuperMap.Plot.PlottingUtil.distance(a[s], a[s + 1]); for (var p = this.getSubSymbolScaleValue(), u = r * p * .5, c = r * p * .125, P = .1 * r, S = r * p * .5, h = 0; h <= r; h += P) { var y = SuperMap.Plot.PlottingUtil.findPointInPolyLine(a, h + S); if (-1 !== y.index) { var f, g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u, a[y.index], y.pt); f = this.scaleValues[0] > 0 ? new SuperMap.Geometry.Point(g.pntLeft.x, g.pntLeft.y) : new SuperMap.Geometry.Point(g.pntRight.x, g.pntRight.y); var M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(c, f, y.pt), b = []; if (b.push(M.pntRight), b.push(f), b.push(M.pntLeft), 0 === h) { var m = new SuperMap.Geometry.Point(f.x, f.y); m.isScalePoint = !0, m.tag = 0, this.scalePoints.push(m) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e); this.scaleValues[0] = o ? -1 : 1 } } }]), e }(); SuperMap.Plot.AlgoSymbol16000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(1), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); for (var l = 0, o = 0; o < t.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(t[o], t[o + 1]); var i = l * this.scaleValues[0], n = l * this.scaleValues[2], a = !1; a = 0 === this.scaleValues[0]; for (var r = 0, s = 0; s < e.length - 1; s++)r += SuperMap.Plot.PlottingUtil.distance(e[s], e[s + 1]); if (0 !== r) { for (var p = 0; p <= r; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (-1 !== u.index) { var c = [], P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); a ? c.push(P.pntRight) : c.push(P.pntLeft); var S = p + n, h = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, S); if (-1 !== h.index) { var y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[h.index + 1], h.pt); a ? c.push(y.pntLeft) : c.push(y.pntRight), Math.abs(p) < 1e-6 && (this.addScalePoint(c[0], 0), this.addScalePoint(h.pt, 1)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c) } } } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), i = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { var n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, o[1], o[0]), a = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n.pntRight, n.pntLeft), r = SuperMap.Plot.PlottingUtil.distance(a.projectPoint, l[0]); this.scaleValues[0] = r / i; var s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0], o[1], e); this.scaleValues[1] = s ? 1 : 0 } else { for (var p, u = -1, c = 0, P = o.length - 1; c < P; c++) { var S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, o[c], o[c + 1]); if (S.isOnline) { p = S.projectPoint, u = c; break } } if (-1 === u) return; for (var h = [], y = 0, f = u; y <= f; y++)h.push(o[y]); h.push(p); var g = SuperMap.Plot.PlottingUtil.polylineDistance(h); this.scaleValues[2] = g / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol15900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15806 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.06), l.scaleValues.push(1), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (t.length >= this.minEditPts) { this.scalePoints = []; var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = .6 * i, a = this.scaleValues[2] * o, r = 0 === this.scaleValues[1], s = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === s) return; for (var p = [], u = 0; u <= s; u += a) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(c.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt); if (r ? p.push(P.pntRight) : p.push(P.pntLeft), !((c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .65 * a)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, e[c.index + 1], c.pt), r ? p.push(P.pntRight) : p.push(P.pntLeft), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .8 * a)).index < 0 || (p.push(c.pt), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .5 * a)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt), r ? p.push(P.pntLeft) : p.push(P.pntRight), c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .2 * a), p.push(c.pt), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .35 * a)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, e[c.index + 1], c.pt), r ? p.push(P.pntRight) : p.push(P.pntLeft), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + a)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt), r ? p.push(P.pntRight) : p.push(P.pntLeft), !(Math.abs(u) <= 1e-6)))))))) { this.scalePoints = []; var S = new SuperMap.Geometry.Point(p[0].x, p[0].y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S), (S = new SuperMap.Geometry.Point(c.pt.x, c.pt.y)).isScalePoint = !0, S.tag = 1, this.scalePoints.push(S) } } } var h = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p); SuperMap.Plot.PlottingUtil.clearSamePts(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o, i, n = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), a = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { i = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, n[1], n[0]), o = SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x, e.y), i.pntRight, i.pntLeft); var r = SuperMap.Plot.PlottingUtil.distance(o.projectPoint, l[0]) / a; this.scaleValues[0] = r; var s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0], n[1], new SuperMap.Geometry.Point(e.x, e.y)); this.scaleValues[1] = s ? 1 : 0 } else { for (var p, u = -1, c = 0; c < n.length - 1; c++)if ((o = SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x, e.y), n[c], n[c + 1])).isOnline) { p = o.projectPoint, u = c; break } if (-1 === u) return void (this.scaleValues[2] = .05); for (var P = [], S = 0; S <= u; S++)P.push(n[S]); P.push(p); var h = SuperMap.Plot.PlottingUtil.polylineDistance(P); this.scaleValues[2] = h / a } } } }]), e }(); SuperMap.Plot.AlgoSymbol15806 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15805 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, a = !1; a = 0 === this.scaleValues[1]; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== r) { for (var s = [], p = 0; p <= r; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (a ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); a = !a } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 45 * Math.PI / 180, f = 45 * Math.PI / 180, g = 0; g < S - 1; g += 2) { var M = [], b = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.3, s[g], s[g + 1]); M.push(b); var m = new SuperMap.Geometry.Point(s[g].x, s[g].y), d = new SuperMap.Geometry.Point(s[g + 1].x, s[g + 1].y); h = SuperMap.Plot.PlottingUtil.distance(m, d); var v = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.6, s[g], s[g + 1]), O = new SuperMap.Geometry.Point(v.x, v.y); O = SuperMap.Plot.PlottingUtil.rotateAngle(b, y, v), M.push(O); var U = .15 * h; v = SuperMap.Plot.PlottingUtil.linePnt(M[1], M[0], U); var w = new SuperMap.Geometry.Point(v.x, v.y); SuperMap.Plot.PlottingUtil.rotateAngle(O, f, w), M.push(w); var L = new SuperMap.Geometry.Point(M[1].x - M[0].x + M[2].x, M[1].y - M[0].y + M[2].y); M.push(L), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15805 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15804 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.029615), l.scaleValues.push(1), l.scaleValues.push(.12)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, a = !1; a = 0 === this.scaleValues[1]; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== r) { for (var s = [], p = 0; p <= r; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (a ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); a = !a } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 0; y < S - 1; ++y) { var f = new SuperMap.Geometry.Point(s[y].x, s[y].y), g = new SuperMap.Geometry.Point(s[y + 1].x, s[y + 1].y); h = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var M = [], b = new SuperMap.Geometry.Point(.5 * (f.x + g.x), .5 * (f.y + g.y)), m = SuperMap.Plot.PlottingUtil.dirAngle(f, g) * SuperMap.Plot.PlottingUtil.RTOD, d = SuperMap.Plot.PlottingUtil.circlePoint(b, h, h, m + 90), v = 1.5 * h, O = SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, m + 260), U = SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, m + 280); M.push(O), M.push(d), M.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15804 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15803 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, a = !1; a = 0 === this.scaleValues[1]; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== r) { for (var s = [], p = 0; p <= r; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (a ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); a = !a } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 0; y < S - 1; ++y) { var f = new SuperMap.Geometry.Point(s[y].x, s[y].y), g = new SuperMap.Geometry.Point(s[y + 1].x, s[y + 1].y); h = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var M = [], b = []; if (y !== S - 2) { var m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * h, s[y], s[y + 1]); M.push(m.pntLeft), M.push(m.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M) } if (0 !== y) { var d = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * h, s[y + 1], s[y]); b.push(d.pntLeft), b.push(d.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b) } } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15802 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, a = !1; a = 0 === this.scaleValues[1]; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== r) { for (var s, p = [], u = 0; u <= r; u += n) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(c.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt); if (a ? p.push(P.pntRight) : p.push(P.pntLeft), Math.abs(u) <= 1e-6) { this.scalePoints = []; var S = new SuperMap.Geometry.Point(p[0].x, p[0].y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S) } else Math.abs(2 * n - u) <= 1e-6 && ((S = new SuperMap.Geometry.Point(c.pt.x, c.pt.y)).isScalePoint = !0, S.tag = 1, this.scalePoints.push(S)); a = !a } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); for (var h = p.length, y = 0, f = 0; f < h - 1; ++f) { var g = new SuperMap.Geometry.Point(p[f].x, p[f].y), M = new SuperMap.Geometry.Point(p[f + 1].x, p[f + 1].y); y = .3 * SuperMap.Plot.PlottingUtil.distance(g, M); var b = [], m = [], d = [], v = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35, p[f], p[f + 1]); s = new SuperMap.Geometry.Point((p[f].x + p[f + 1].x) / 2, (p[f].y + p[f + 1].y) / 2); var O = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * y, p[f], s); m.push(O.pntLeft, O.pntRight); var U = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * y, p[f], v); b.push(U.pntLeft, U.pntRight), d.push(new SuperMap.Geometry.Point(2 * s.x - U.pntLeft.x, 2 * s.y - U.pntLeft.y)), d.push(new SuperMap.Geometry.Point(2 * s.x - U.pntRight.x, 2 * s.y - U.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, a = !1; a = 0 === this.scaleValues[1]; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== r) { for (var s = new SuperMap.Geometry.Point(0, 0), p = [], u = 0; u <= r; u += n) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(c.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt); if (a ? p.push(P.pntRight) : p.push(P.pntLeft), Math.abs(u) <= 1e-6) { this.scalePoints = []; var S = new SuperMap.Geometry.Point(p[0].x, p[0].y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S) } else Math.abs(2 * n - u) <= 1e-6 && ((S = new SuperMap.Geometry.Point(c.pt.x, c.pt.y)).isScalePoint = !0, S.tag = 1, this.scalePoints.push(S)); a = !a } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); for (var h = p.length, y = 0, f = 0; f < h - 1; ++f) { var g = new SuperMap.Geometry.Point(p[f].x, p[f].y), M = new SuperMap.Geometry.Point(p[f + 1].x, p[f + 1].y); y = .3 * SuperMap.Plot.PlottingUtil.distance(g, M); var b = [], m = [], d = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35, p[f], p[f + 1]); s = new SuperMap.Geometry.Point((p[f].x + p[f + 1].x) / 2, (p[f].y + p[f + 1].y) / 2); var v = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * y, p[f], d); b.push(v.pntLeft), b.push(v.pntRight), m.push(new SuperMap.Geometry.Point(2 * s.x - v.pntLeft.x, 2 * s.y - v.pntLeft.y)), m.push(new SuperMap.Geometry.Point(2 * s.x - v.pntRight.x, 2 * s.y - v.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.04), l.scaleValues.push(1), l.scaleValues.push(.12)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, a = !1; a = 0 === this.scaleValues[1]; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== r) { for (var s = [], p = 0; p <= r; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (a ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); a = !a } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 0; y < S - 1; ++y) { var f = new SuperMap.Geometry.Point(s[y].x, s[y].y), g = new SuperMap.Geometry.Point(s[y + 1].x, s[y + 1].y); h = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var M = [], b = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.5, s[y], s[y + 1]), m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * h, s[y], b); M.push(m.pntLeft), M.push(m.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M) } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), i = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { var n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, o[1], o[0]), a = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n.pntRight, n.pntLeft), r = SuperMap.Plot.PlottingUtil.distance(a.projectPoint, l[0]); this.scaleValues[0] = r / i; var s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0], o[1], e); this.scaleValues[1] = s ? 1 : 0 } else { for (var p, u = -1, c = 0, P = o.length - 1; c < P; c++) { var S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, o[c], o[c + 1]); if (S.isOnline) { p = S.projectPoint, u = c; break } } if (-1 === u) return void (this.scaleValues[2] = .05); for (var h = [], y = 0, f = u; y <= f; y++)h.push(o[y]); h.push(p); var g = SuperMap.Plot.PlottingUtil.polylineDistance(h); this.scaleValues[2] = g / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol15800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(parseFloat(.1732)), l.scaleValues.push(.1), l.scaleValues.push(1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[1].x, t[1].y), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0] * o, n = this.scaleValues[1] * o, a = this.scaleValues[2], r = null; if (1 === a) { var s = SuperMap.Plot.PlottingUtil.linePnt(l, e, o + i); r = new SuperMap.Geometry.Point(s.x, s.y) } else s = SuperMap.Plot.PlottingUtil.linePnt(l, e, o - i), r = new SuperMap.Geometry.Point(s.x, s.y); var p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * n, t[0], r), u = []; u.push(p.pntRight), u.push(t[0]), u.push(p.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var c = [], P = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (1 === a) { var S = new SuperMap.Geometry.Point(2 * P.x - p.pntLeft.x, 2 * P.y - p.pntLeft.y); c.push(S), c.push(t[1]); var h = new SuperMap.Geometry.Point(2 * P.x - p.pntRight.x, 2 * P.y - p.pntRight.y); c.push(h) } else S = new SuperMap.Geometry.Point(2 * P.x - p.pntRight.x, 2 * P.y - p.pntRight.y), c.push(S), c.push(t[1]), h = new SuperMap.Geometry.Point(2 * P.x - p.pntLeft.x, 2 * P.y - p.pntLeft.y), c.push(h); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol15202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15201 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol15201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(.185)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); for (var l = 0, o = 0, i = e.length - 1; o < i; o++)l += SuperMap.Plot.PlottingUtil.distance(e[o], e[o + 1]); for (var n = 0, a = 0, r = t.length - 1; a < r; a++)n += SuperMap.Plot.PlottingUtil.distance(t[a], t[a + 1]); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); for (var s = this.scaleValues[0] * n, p = this.scaleValues[1], u = this.scaleValues[2] * n, c = .3 * u, P = u; P < l; P += u) { var S = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e); if (-1 === S.index) return void this.finish(); var h = P + c, y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h, e); if (-1 === y.index) return void this.finish(); var f = [], g = []; f.push(S.pts); var M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[S.index], S.pts); 0 === p ? f.push(new SuperMap.Geometry.Point(M.pntLeft.x, M.pntLeft.y)) : f.push(new SuperMap.Geometry.Point(M.pntRight.x, M.pntRight.y)), g.push(y.pts); var b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[y.index], y.pts); if (0 === p ? g.push(new SuperMap.Geometry.Point(b.pntLeft.x, b.pntLeft.y)) : g.push(new SuperMap.Geometry.Point(b.pntRight.x, b.pntRight.y)), u === P) { this.scalePoints = []; var m = new SuperMap.Geometry.Point(f[1].x, f[1].y); m.isScalePoint = !0, m.tag = 0, this.scalePoints.push(m), (m = new SuperMap.Geometry.Point(f[0].x, f[0].y)).isScalePoint = !0, m.tag = 1, this.scalePoints.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; for (var o = 0, i = 0, n = l.length - 1; i < n; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var a = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), r = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(a, o * this.scaleValues[2]); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.distance(s.pt, r) / o, u = SuperMap.Plot.PlottingUtil.pointIsRightToLine(a[0], a[1], e); this.scaleValues[1] = u ? 1 : 0, this.scaleValues[0] = p } else if (1 === t) { for (var c = 0, P = -1, S = [], h = 0, y = a.length - 1; h < y; h++) { var f = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, a[h], a[h + 1]); if (f.isOnline) { var g = SuperMap.Plot.PlottingUtil.distance(f.projectPoint, this.controlPoints[1]); 0 == c ? (c = g, P = h, S = e) : g < c && (c = g, P = h, S = e) } } if (-1 == P) return; for (var M = 0, b = 0, m = P - 1; b < m; b++)M += SuperMap.Plot.PlottingUtil.distance(a[b], a[b + 1]); var d = (M += SuperMap.Plot.PlottingUtil.distance(S, a[P])) / o; d > .7 && (d = .7), this.scaleValues[2] = d } } } }]), e }(); SuperMap.Plot.AlgoSymbol15200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol13700 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e; if (2 === t.length) e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t); else if (3 === t.length) { var l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = new SuperMap.Geometry.Point(t[2].x, t[2].y), n = SuperMap.Plot.PlottingUtil.distance(o, i); if (0 >= n) return; this.scaleValues = []; var a = SuperMap.Plot.PlottingUtil.distance(l, o) / n; this.scaleValues.push(a); var r = 180 * SuperMap.Plot.PlottingUtil.radian(l, o) / Math.PI; r > 90 ? r -= 90 : r = 270 + r, this.scaleValues.push(r * (Math.PI / 180)); var s = 180 * SuperMap.Plot.PlottingUtil.radian(l, i) / Math.PI; s > 90 ? s -= 90 : s = 270 + s, this.scaleValues.push(s * (Math.PI / 180)), e = this.scaleValues[0] * n; var p = this.scaleValues[1] * (180 / Math.PI) + 90, u = this.scaleValues[2] * (180 / Math.PI) + 90; p < u && (p += 360); for (var c, P = [], S = p; S >= u; S -= 4)c = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], e, e, S), P.push(c); S != u && (c = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], e, e, u), P.push(c)), this.controlPoints[2] = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], e, e, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol13700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol12502 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol12500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.5), this.scaleValues.push(.03)); for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0]; this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); var i = this.scaleValues[1] * e, n = o * e, a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, n); if (-1 !== a.index) { for (var r, s = a.pt, p = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [s, new SuperMap.Geometry.Point(s.x + i, s.y)]), u = 0; u < t.length - 1; u++) { var c, P = t[u]; r = t[u + 1]; var S = SuperMap.Plot.PlottingUtil.distance(s, P), h = SuperMap.Plot.PlottingUtil.distance(s, r); if (!(S < i && h < i)) if (S > i && h < i || S < i && h > i) { var y; y = S > i ? P : r, (c = this.getLineAddCircleIntersectPts(P, r, p)).length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c[0], y]) } else { var f = SuperMap.Plot.PlottingUtil.projectPoint(s, P, r); if (SuperMap.Plot.PlottingUtil.distance(s, f) >= i) this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, r]); else if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f, P, r)) { if ((c = this.getLineAddCircleIntersectPts(P, r, p)).length > 0) { c.unshift(P), c.push(r); for (var g = 0; g < c.length - 1; g++)this.isLineInCircle(c[g], c[g + 1], s, i) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c[g], c[g + 1]]) } } else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, r]) } } var M = 0; c && (M = SuperMap.Plot.PlottingUtil.radian(s, c[c.length - 1]) * SuperMap.Plot.PlottingUtil.RTOD); var b = []; r = SuperMap.Plot.PlottingUtil.circlePoint(s, -i, -i, M), b.push(r, s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var m = SuperMap.Plot.PlottingUtil.radian(r, s) * SuperMap.Plot.PlottingUtil.RTOD, d = [], v = SuperMap.Plot.PlottingUtil.circlePoint(s, .8 * i, .8 * i, m + 170), O = SuperMap.Plot.PlottingUtil.circlePoint(s, .8 * i, .8 * i, m - 170); d.push(v), d.push(O), d.push(s); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, d, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [s, new SuperMap.Geometry.Point(s.x + i, s.y)]), this.addScalePoint(s, 0), this.addScalePoint(new SuperMap.Geometry.Point(s.x + i, s.y), 1), this.finish() } } } }, { key: "isLineInCircle", value: function (t, e, l, o) { var i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2); return o > SuperMap.Plot.PlottingUtil.distance(i, l) } }, { key: "getLineAddCircleIntersectPts", value: function (t, e, l) { var o = l.slice(); o[0].x === o[o.length - 1].x && o[0].y === o[o.length - 1].y || o.push(o[0]); for (var i, n = [], a = 0; a < o.length - 1; a++) { var r = o[a], s = o[a + 1], p = SuperMap.Plot.PlottingUtil.intersectLines(t, e, r, s); p.isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, t, e) && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, r, s) && n.push(p.intersectPoint) } for (var u = 0; u < n.length - 1; u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u], n[u + 1]) && (n.splice(u, 1), u--); if (t.x > e.x) for (var c = 0; c < n.length && c != n.length - 1; c++)n[c].x < n[c + 1].x && (i = n[c], n[c] = n[c + 1], n[c + 1] = i); else if (t.x < e.x) for (var P = 0; P < n.length && P != n.length - 1; P++)n[P].x > n[P + 1].x && (i = n[P], n[P] = n[P + 1], n[P + 1] = i); else if (t.y > e.y) for (var S = 0; S < n.length && S != n.length - 1; S++)n[S].y < n[S + 1].y && (i = n[S], n[S] = n[S + 1], n[S + 1] = i); else if (t.y < e.y) for (var h = 0; h < n.length && h != n.length - 1; h++)n[h].y > n[h + 1].y && (i = n[h], n[h] = n[h + 1], n[h + 1] = i); return n } }]), e }(); SuperMap.Plot.AlgoSymbol12502 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol12501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(.03), l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (!this.isEdit) { var e = this.getSubSymbolScaleValue(); this.scaleValues[0] = e, this.scaleValues[1] = .5 * e, this.scaleValues[3] = .5 * e } var l = this.scaleValues[0], o = this.scaleValues[1], i = this.scaleValues[2], n = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); n = SuperMap.Plot.PlottingUtil.clearSamePts(n); var a = this.GetCurvePts(t, l, o); if (0 !== a.pt.length) { var r = SuperMap.Plot.PlottingUtil.polylineDistance(n) * i, s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(n, r); if (-1 !== s.index) { for (var p = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[3], u = [], c = 0; c < 360; c += 12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt, p, p, c)); u.push(u[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); for (var P = [], S = [], h = 0; h < a.pt.length; h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u, a.pt[h]) ? S.length > 1 && (P.push(S), S = []) : S.push(a.pt[h]); S.length > 1 && P.push(S); for (var y = 0; y < P.length; y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P[y]); var f = new SuperMap.Geometry.Point(a.pt[0].x, a.pt[0].y); f.isScalePoint = !0, f.tag = 0, this.scalePoints.push(f); var g = new SuperMap.Geometry.Point(a.scalePt.x, a.scalePt.y); g.isScalePoint = !0, g.tag = 1, this.scalePoints.push(g); var M = new SuperMap.Geometry.Point(s.pt.x, s.pt.y); M.isScalePoint = !0, M.tag = 2, this.scalePoints.push(M); var b = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x, s.pt.y), p, p, 0), m = new SuperMap.Geometry.Point(b.x, b.y); m.isScalePoint = !0, m.tag = 3, this.scalePoints.push(m), this.finish() } else this.finish() } else this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (null != e && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; if (4 > this.scaleValues.length) return; var o, i, n, a, r, s = SuperMap.Plot.PlottingUtil.polylineDistance(l), p = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), u = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var c = new SuperMap.Geometry.Point(l[0].x, l[0].y), P = SuperMap.Plot.PlottingUtil.distance(c, u); i = 2 * P / s, this.scaleValues[1] = i } else if (1 === t) c = new SuperMap.Geometry.Point(l[0].x, l[0].y), o = (P = SuperMap.Plot.PlottingUtil.distance(c, u)) / s, this.scaleValues[0] = o; else if (2 == t) { var S = -1, h = 0; r = new SuperMap.Geometry.Point(0, 0), o = this.scaleValues[0], i = this.scaleValues[1]; for (var y = 0; y < p.length - 1; y++) { var f = p[y], g = p[y + 1], M = SuperMap.Plot.PlottingUtil.projectPoint(u, f, g); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(M, f, g)) { var b = SuperMap.Plot.PlottingUtil.distance(u, M); -1 == S ? (S = y, r = M, h = b) : h > b && (S = y, r = M, h = b) } } if (-1 == S || S > p.length - 1) return; a = SuperMap.Plot.PlottingUtil.polylineDistance(p); for (var m = [], d = 0; d < S; d++)m.push(p[d]); m.push(r); var v = SuperMap.Plot.PlottingUtil.polylineDistance(m); if (v < 0 || v > a) return; n = v / a, this.scaleValues[2] = n } else if (3 === t) { o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2]; var O = (a = SuperMap.Plot.PlottingUtil.polylineDistance(p)) * n; if (-1 === (r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(p, O)).index) return; var U = SuperMap.Plot.PlottingUtil.distance(r.pt, e) / s; U > .4 && (U = .4), this.scaleValues[3] = U } } } }, { key: "GetCurvePts", value: function (t, e, l) { for (var o, i = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t), n = SuperMap.Plot.PlottingUtil.polylineDistance(i), a = n * e, r = n * l / 2, s = [], p = [], u = i[0], c = !1, P = i[0], S = 1; S < i.length; S++) { var h = i[S], y = SuperMap.Plot.PlottingUtil.distance(u, h); if (!(y < a && S !== i.length - 1)) { for (var f, g = parseInt(y / a), M = 0; M < g; M++) { f = SuperMap.Plot.PlottingUtil.linePnt(u, h, a), c || (o = f, c = !0); var b = this.GetCosPts2D(u, f, a, r); s = p.length > 1 && 0 === M ? this.ClearCurvePts2D(P, u, h, p, b, s) : s.concat(b), p = (p = []).concat(b), P = u, u = f } S === i.length - 1 && (f = i[i.length - 1], b = this.GetCosPts2D(u, f, a, r), s = p.length > 1 && b.length > 1 ? this.ClearCurvePts2D(P, u, h, p, b, s) : s.concat(b)) } } return { pt: s, scalePt: o } } }, { key: "GetCosPts2D", value: function (t, e, l, o) { for (var i = [], n = SuperMap.Plot.PlottingUtil.distance(t, e), a = l / 30, r = 0; r < n; r += a) { var s = r * (2 * Math.PI / l), p = o * Math.cos(s), u = new SuperMap.Geometry.Point(r, p), c = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, P = SuperMap.Plot.PlottingUtil.coordinateTrans(t, u, c); i.push(P) } return i } }, { key: "ClearCurvePts2D", value: function (t, e, l, o, i, n) { for (var a = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, r = 180 * SuperMap.Plot.PlottingUtil.radian(e, t) / Math.PI - a; r <= 0;)r += 360; var s = r / 2, p = l; p = SuperMap.Plot.PlottingUtil.rotateAngle(e, s * Math.PI / 180, p); for (var u = SuperMap.Plot.PlottingUtil.linePnt(e, p, 1), c = 0, P = 0; P < o.length; P++)if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(e, u, o[P])) { c = P; break } if (0 != c) for (var S = 0; S < o.length - c; S++)n.slice(S, n.length - 1); for (var h = 0; h < i.length; h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e, u, i[h]) && n.push(i[h]); return n } }]), e }(); SuperMap.Plot.AlgoSymbol12501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol12500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.5), this.scaleValues.push(.03)); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0]; this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); var o = this.scaleValues[1] * e, i = l * e, n = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, i); if (-1 !== n.index) { for (var a = n.pt, r = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [a, new SuperMap.Geometry.Point(a.x + o, a.y)]), s = 0; s < t.length - 1; s++) { var p, u = t[s], c = t[s + 1], P = SuperMap.Plot.PlottingUtil.distance(a, u), S = SuperMap.Plot.PlottingUtil.distance(a, c); if (!(P < o && S < o)) if (P > o && S < o || P < o && S > o) { var h; h = P > o ? u : c, (p = this.getLineAddCircleIntersectPts(u, c, r)).length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p[0], h]) } else { var y = SuperMap.Plot.PlottingUtil.projectPoint(a, u, c); if (SuperMap.Plot.PlottingUtil.distance(a, y) >= o) this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]); else if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y, u, c)) { if ((p = this.getLineAddCircleIntersectPts(u, c, r)).length > 0) { p.unshift(u), p.push(c); for (var f = 0; f < p.length - 1; f++)this.isLineInCircle(p[f], p[f + 1], a, o) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p[f], p[f + 1]]) } } else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]) } } this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [a, new SuperMap.Geometry.Point(a.x + o, a.y)]), this.scalePoints = []; var g = a; g.isScalePoint = !0, g.tag = 0, this.scalePoints.push(g); var M = new SuperMap.Geometry.Point(a.x + o, a.y); M.isScalePoint = !0, M.tag = 1, this.scalePoints.push(M), this.finish() } } } }, { key: "isLineInCircle", value: function (t, e, l, o) { var i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2); return o > SuperMap.Plot.PlottingUtil.distance(i, l) } }, { key: "getLineAddCircleIntersectPts", value: function (t, e, l) { var o = l.slice(); o[0].x === o[o.length - 1].x && o[0].y === o[o.length - 1].y || o.push(o[0]); for (var i, n = [], a = 0; a < o.length - 1; a++) { var r = o[a], s = o[a + 1], p = SuperMap.Plot.PlottingUtil.intersectLines(t, e, r, s); p.isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, t, e) && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, r, s) && n.push(p.intersectPoint) } for (var u = 0; u < n.length - 1; u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u], n[u + 1]) && (n.splice(u, 1), u--); if (t.x > e.x) for (var c = 0; c < n.length && c != n.length - 1; c++)n[c].x < n[c + 1].x && (i = n[c], n[c] = n[c + 1], n[c + 1] = i); else if (t.x < e.x) for (var P = 0; P < n.length && P != n.length - 1; P++)n[P].x > n[P + 1].x && (i = n[P], n[P] = n[P + 1], n[P + 1] = i); else if (t.y > e.y) for (var S = 0; S < n.length && S != n.length - 1; S++)n[S].y < n[S + 1].y && (i = n[S], n[S] = n[S + 1], n[S + 1] = i); else if (t.y < e.y) for (var h = 0; h < n.length && h != n.length - 1; h++)n[h].y > n[h + 1].y && (i = n[h], n[h] = n[h + 1], n[h + 1] = i); return n } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { for (var i = 0, n = -1, a = null, r = 0; r < l.length - 1; r++) { var s = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, l[r], l[r + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint, l[r], l[r + 1])) { var p = SuperMap.Plot.PlottingUtil.distance(s.projectPoint, e); 0 == i ? (i = p, n = r, a = s.projectPoint) : p < i && (i = p, n = r, a = s.projectPoint) } } if (-1 == n) return; for (var u = 0, c = 0; c < n; c++)u += SuperMap.Plot.PlottingUtil.distance(l[c], l[c + 1]); var P = (u += SuperMap.Plot.PlottingUtil.distance(a, l[n])) / o; P > 1 && (P = 1), this.scaleValues[0] = P } if (1 === t) { var S = this.scaleValues[0] * o, h = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, S); if (-1 === h.index) return; var y = SuperMap.Plot.PlottingUtil.distance(h.pt, e) / o; y > .4 && (y = .4), this.scaleValues[1] = y } } } }]), e }(); SuperMap.Plot.AlgoSymbol12500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbol4021102 = e.AlgoSymbol4021101 = e.AlgoSymbol6020404 = e.AlgoSymbol6020403 = e.AlgoSymbol4022102 = e.AlgoSymbol4022101 = e.AlgoSymbol4022100 = e.AlgoSymbol4020402 = e.AlgoSymbol4020401 = e.AlgoSymbol4020303 = e.AlgoSymbol4011101 = e.AlgoSymbol4011100 = e.AlgoSymbol4010905 = e.AlgoSymbol4010801 = e.AlgoSymbol4010800 = e.AlgoSymbol3032000 = e.AlgoSymbol3020901 = e.AlgoSymbol3010304 = e.AlgoSymbol3010303 = e.AlgoSymbol6020402 = e.AlgoSymbol6020401 = e.AlgoSymbol6020400 = e.AlgoSymbol3010302 = void 0, e.AlgoSymbol3010301 = e.AlgoSymbol3010108 = e.AlgoSymbol3010107 = e.AlgoSymbol3010106 = e.AlgoSymbol3010105 = e.AlgoSymbol3010104 = e.AlgoSymbol3010103 = e.AlgoSymbol3010102 = e.AlgoSymbol2890001 = e.AlgoSymbol2350001 = e.AlgoSymbol44400 = e.AlgoSymbol44300 = e.AlgoSymbol44200 = e.AlgoSymbol44100 = e.AlgoSymbol43500 = e.AlgoSymbol42700 = e.AlgoSymbol42500 = e.AlgoSymbol42400 = e.AlgoSymbol42200 = e.AlgoSymbol41202 = e.AlgoSymbol41201 = e.AlgoSymbol41200 = e.AlgoSymbol41100 = e.AlgoSymbol40900 = e.AlgoSymbol40101 = e.AlgoSymbol40100 = e.AlgoSymbol40000 = e.AlgoSymbol39802 = e.AlgoSymbol39801 = e.AlgoSymbol39800 = e.AlgoSymbol39600 = e.AlgoSymbol39500 = e.AlgoSymbol39101 = e.AlgoSymbol39000 = e.AlgoSymbol38700 = e.AlgoSymbol38600 = e.AlgoSymbol37700 = e.AlgoSymbol37601 = e.AlgoSymbol37600 = e.AlgoSymbol37301 = e.AlgoSymbol37300 = e.AlgoSymbol37200 = e.AlgoSymbol37100 = e.AlgoSymbol36800 = e.AlgoSymbol36700 = e.AlgoSymbol36600 = e.AlgoSymbol36401 = e.AlgoSymbol36400 = e.AlgoSymbol35500 = e.AlgoSymbol35304 = e.AlgoSymbol35200 = e.AlgoSymbol35000 = e.AlgoSymbol34902 = e.AlgoSymbol34901 = e.AlgoSymbol34900 = e.AlgoSymbol34801 = e.AlgoSymbol34800 = e.AlgoSymbol34700 = e.AlgoSymbol34501 = e.AlgoSymbol34500 = e.AlgoSymbol34400 = e.AlgoSymbol34300 = e.AlgoSymbol33400 = e.AlgoSymbol32900 = e.AlgoSymbol32300 = e.AlgoSymbol31803 = e.AlgoSymbol31601 = e.AlgoSymbol31600 = e.AlgoSymbol31401 = e.AlgoSymbol31400 = e.AlgoSymbol31304 = e.AlgoSymbol31303 = e.AlgoSymbol31302 = e.AlgoSymbol31301 = e.AlgoSymbol31300 = e.AlgoSymbol30102 = e.AlgoSymbol30800 = e.AlgoSymbol30201 = e.AlgoSymbol30200 = e.AlgoSymbol30100 = e.AlgoSymbol30002 = e.AlgoSymbol30001 = e.AlgoSymbol30000 = e.AlgoSymbol29903 = e.AlgoSymbol29800 = e.AlgoSymbol29401 = e.AlgoSymbol29103 = e.AlgoSymbol29101 = e.AlgoSymbol29100 = e.AlgoSymbol29003 = e.AlgoSymbol29002 = e.AlgoSymbol29001 = e.AlgoSymbol29000 = e.AlgoSymbol28900 = e.AlgoSymbol28400 = e.AlgoSymbol28301 = e.AlgoSymbol28300 = e.AlgoSymbol28201 = e.AlgoSymbol28200 = e.AlgoSymbol28100 = void 0, e.AlgoSymbol28000 = e.AlgoSymbol27902 = e.AlgoSymbol27901 = e.AlgoSymbol27900 = e.AlgoSymbol27701 = e.AlgoSymbol27700 = e.AlgoSymbol27300 = e.AlgoSymbol27100 = e.AlgoSymbol26800 = e.AlgoSymbol26700 = e.AlgoSymbol26601 = e.AlgoSymbol26600 = e.AlgoSymbol26503 = e.AlgoSymbol26502 = e.AlgoSymbol26501 = e.AlgoSymbol26500 = e.AlgoSymbol26400 = e.AlgoSymbol25901 = e.AlgoSymbol25900 = e.AlgoSymbol25801 = e.AlgoSymbol25800 = e.AlgoSymbol25701 = e.AlgoSymbol25700 = e.AlgoSymbol25601 = e.AlgoSymbol25600 = e.AlgoSymbol25503 = e.AlgoSymbol25502 = e.AlgoSymbol25501 = e.AlgoSymbol25500 = e.AlgoSymbol25400 = e.AlgoSymbol25301 = e.AlgoSymbol25300 = e.AlgoSymbol25202 = e.AlgoSymbol25201 = e.AlgoSymbol25200 = e.AlgoSymbol25101 = e.AlgoSymbol25100 = e.AlgoSymbol25000 = e.AlgoSymbol24700 = e.AlgoSymbol23902 = e.AlgoSymbol23901 = e.AlgoSymbol23700 = e.AlgoSymbol23600 = e.AlgoSymbol23500 = e.AlgoSymbol23400 = e.AlgoSymbol22200 = e.AlgoSymbol22103 = e.AlgoSymbol22000 = e.AlgoSymbol21900 = e.AlgoSymbol21800 = e.AlgoSymbol21600 = e.AlgoSymbol21504 = e.AlgoSymbol21503 = e.AlgoSymbol21502 = e.AlgoSymbol21501 = e.AlgoSymbol21500 = e.AlgoSymbol21401 = e.AlgoSymbol21400 = e.AlgoSymbol20301 = e.AlgoSymbol20300 = e.AlgoSymbol17806 = e.AlgoSymbol17805 = e.AlgoSymbol17804 = e.AlgoSymbol17803 = e.AlgoSymbol17802 = e.AlgoSymbol17801 = e.AlgoSymbol17800 = e.AlgoSymbol17704 = e.AlgoSymbol17703 = e.AlgoSymbol17700 = e.AlgoSymbol17600 = e.AlgoSymbol17501 = e.AlgoSymbol17500 = e.AlgoSymbol17401 = e.AlgoSymbol17400 = e.AlgoSymbol16900 = e.AlgoSymbol16700 = e.AlgoSymbol16500 = e.AlgoSymbol16203 = e.AlgoSymbol16202 = e.AlgoSymbol16201 = e.AlgoSymbol16200 = e.AlgoSymbol16100 = e.AlgoSymbol16001 = e.AlgoSymbol16000 = e.AlgoSymbol15900 = e.AlgoSymbol15806 = e.AlgoSymbol15805 = e.AlgoSymbol15804 = e.AlgoSymbol15803 = e.AlgoSymbol15802 = e.AlgoSymbol15801 = e.AlgoSymbol15800 = e.AlgoSymbol15202 = e.AlgoSymbol15201 = e.AlgoSymbol15200 = e.AlgoSymbol13700 = e.AlgoSymbol12502 = e.AlgoSymbol12501 = e.AlgoSymbol12500 = void 0; var o = l(222), i = l(221), n = l(220), a = l(219), r = l(218), s = l(217), p = l(216), u = l(215), c = l(214), P = l(213), S = l(212), h = l(211), y = l(210), f = l(209), g = l(208), M = l(207), b = l(206), m = l(205), d = l(204), v = l(203), O = l(202), U = l(201), w = l(200), L = l(199), V = l(198), _ = l(197), T = l(196), A = l(195), E = l(194), x = l(193), Y = l(192), j = l(191), C = l(190), I = l(189), G = l(188), B = l(187), R = l(186), N = l(185), D = l(184), k = l(183), z = l(182), F = l(181), K = l(180), q = l(179), W = l(178), J = l(177), Z = l(176), H = l(175), Q = l(174), X = l(173), $ = l(172), tt = l(171), et = l(170), lt = l(169), ot = l(168), it = l(167), nt = l(166), at = l(165), rt = l(164), st = l(163), pt = l(162), ut = l(161), ct = l(160), Pt = l(159), St = l(158), ht = l(157), yt = l(156), ft = l(155), gt = l(154), Mt = l(153), bt = l(152), mt = l(151), dt = l(150), vt = l(149), Ot = l(148), Ut = l(147), wt = l(146), Lt = l(145), Vt = l(144), _t = l(143), Tt = l(142), At = l(141), Et = l(140), xt = l(139), Yt = l(138), jt = l(137), Ct = l(136), It = l(135), Gt = l(134), Bt = l(133), Rt = l(132), Nt = l(131), Dt = l(130), kt = l(129), zt = l(128), Ft = l(127), Kt = l(126), qt = l(125), Wt = l(124), Jt = l(123), Zt = l(122), Ht = l(121), Qt = l(120), Xt = l(119), $t = l(118), te = l(117), ee = l(116), le = l(115), oe = l(114), ie = l(113), ne = l(112), ae = l(111), re = l(110), se = l(109), pe = l(108), ue = l(107), ce = l(106), Pe = l(105), Se = l(104), he = l(103), ye = l(102), fe = l(101), ge = l(100), Me = l(99), be = l(98), me = l(97), de = l(96), ve = l(95), Oe = l(94), Ue = l(93), we = l(92), Le = l(91), Ve = l(90), _e = l(89), Te = l(88), Ae = l(87), Ee = l(86), xe = l(85), Ye = l(84), je = l(83), Ce = l(82), Ie = l(81), Ge = l(80), Be = l(79), Re = l(78), Ne = l(77), De = l(76), ke = l(75), ze = l(74), Fe = l(73), Ke = l(72), qe = l(71), We = l(70), Je = l(69), Ze = l(68), He = l(67), Qe = l(66), Xe = l(65), $e = l(64), tl = l(63), el = l(62), ll = l(61), ol = l(60), il = l(59), nl = l(58), al = l(57), rl = l(56), sl = l(55), pl = l(54), ul = l(53), cl = l(52), Pl = l(51), Sl = l(50), hl = l(49), yl = l(48), fl = l(47), gl = l(46), Ml = l(45), bl = l(44), ml = l(43), dl = l(42), vl = l(41), Ol = l(40), Ul = l(39), wl = l(38), Ll = l(37), Vl = l(36), _l = l(35), Tl = l(34), Al = l(33), El = l(32), xl = l(31), Yl = l(30), jl = l(29), Cl = l(28), Il = l(27), Gl = l(26), Bl = l(25), Rl = l(24), Nl = l(23), Dl = l(22), kl = l(21), zl = l(20), Fl = l(19), Kl = l(18), ql = l(17), Wl = l(16), Jl = l(15), Zl = l(14), Hl = l(13), Ql = l(12), Xl = l(11), $l = l(10), to = l(9), eo = l(8), lo = l(7), oo = l(6), io = l(5), no = l(4), ao = l(3), ro = l(2), so = l(1), po = l(0); e.AlgoSymbol12500 = o.AlgoSymbol12500, e.AlgoSymbol12501 = i.AlgoSymbol12501, e.AlgoSymbol12502 = n.AlgoSymbol12502, e.AlgoSymbol13700 = a.AlgoSymbol13700, e.AlgoSymbol15200 = r.AlgoSymbol15200, e.AlgoSymbol15201 = s.AlgoSymbol15201, e.AlgoSymbol15202 = p.AlgoSymbol15202, e.AlgoSymbol15800 = u.AlgoSymbol15800, e.AlgoSymbol15801 = c.AlgoSymbol15801, e.AlgoSymbol15802 = P.AlgoSymbol15802, e.AlgoSymbol15803 = S.AlgoSymbol15803, e.AlgoSymbol15804 = h.AlgoSymbol15804, e.AlgoSymbol15805 = y.AlgoSymbol15805, e.AlgoSymbol15806 = f.AlgoSymbol15806, e.AlgoSymbol15900 = g.AlgoSymbol15900, e.AlgoSymbol16000 = M.AlgoSymbol16000, e.AlgoSymbol16001 = b.AlgoSymbol16001, e.AlgoSymbol16100 = m.AlgoSymbol16100, e.AlgoSymbol16200 = d.AlgoSymbol16200, e.AlgoSymbol16201 = v.AlgoSymbol16201, e.AlgoSymbol16202 = O.AlgoSymbol16202, e.AlgoSymbol16203 = U.AlgoSymbol16203, e.AlgoSymbol16500 = w.AlgoSymbol16500, e.AlgoSymbol16700 = L.AlgoSymbol16700, e.AlgoSymbol16900 = V.AlgoSymbol16900, e.AlgoSymbol17400 = _.AlgoSymbol17400, e.AlgoSymbol17401 = T.AlgoSymbol17401, e.AlgoSymbol17500 = A.AlgoSymbol17500, e.AlgoSymbol17501 = E.AlgoSymbol17501, e.AlgoSymbol17600 = x.AlgoSymbol17600, e.AlgoSymbol17700 = Y.AlgoSymbol17700, e.AlgoSymbol17703 = j.AlgoSymbol17703, e.AlgoSymbol17704 = C.AlgoSymbol17704, e.AlgoSymbol17800 = I.AlgoSymbol17800, e.AlgoSymbol17801 = G.AlgoSymbol17801, e.AlgoSymbol17802 = B.AlgoSymbol17802, e.AlgoSymbol17803 = R.AlgoSymbol17803, e.AlgoSymbol17804 = N.AlgoSymbol17804, e.AlgoSymbol17805 = D.AlgoSymbol17805, e.AlgoSymbol17806 = k.AlgoSymbol17806, e.AlgoSymbol20300 = z.AlgoSymbol20300, e.AlgoSymbol20301 = F.AlgoSymbol20301, e.AlgoSymbol21400 = K.AlgoSymbol21400, e.AlgoSymbol21401 = q.AlgoSymbol21401, e.AlgoSymbol21500 = W.AlgoSymbol21500, e.AlgoSymbol21501 = J.AlgoSymbol21501, e.AlgoSymbol21502 = Z.AlgoSymbol21502, e.AlgoSymbol21503 = H.AlgoSymbol21503, e.AlgoSymbol21504 = Q.AlgoSymbol21504, e.AlgoSymbol21600 = X.AlgoSymbol21600, e.AlgoSymbol21800 = $.AlgoSymbol21800, e.AlgoSymbol21900 = tt.AlgoSymbol21900, e.AlgoSymbol22000 = et.AlgoSymbol22000, e.AlgoSymbol22103 = lt.AlgoSymbol22103, e.AlgoSymbol22200 = ot.AlgoSymbol22200, e.AlgoSymbol23400 = it.AlgoSymbol23400, e.AlgoSymbol23500 = nt.AlgoSymbol23500, e.AlgoSymbol23600 = at.AlgoSymbol23600, e.AlgoSymbol23700 = rt.AlgoSymbol23700, e.AlgoSymbol23901 = st.AlgoSymbol23901, e.AlgoSymbol23902 = pt.AlgoSymbol23902, e.AlgoSymbol24700 = ut.AlgoSymbol24700, e.AlgoSymbol25000 = ct.AlgoSymbol25000, e.AlgoSymbol25100 = Pt.AlgoSymbol25100, e.AlgoSymbol25101 = St.AlgoSymbol25101, e.AlgoSymbol25200 = ht.AlgoSymbol25200, e.AlgoSymbol25201 = yt.AlgoSymbol25201, e.AlgoSymbol25202 = ft.AlgoSymbol25202, e.AlgoSymbol25300 = gt.AlgoSymbol25300, e.AlgoSymbol25301 = Mt.AlgoSymbol25301, e.AlgoSymbol25400 = bt.AlgoSymbol25400, e.AlgoSymbol25500 = mt.AlgoSymbol25500, e.AlgoSymbol25501 = dt.AlgoSymbol25501, e.AlgoSymbol25502 = vt.AlgoSymbol25502, e.AlgoSymbol25503 = Ot.AlgoSymbol25503, e.AlgoSymbol25600 = Ut.AlgoSymbol25600, e.AlgoSymbol25601 = wt.AlgoSymbol25601, e.AlgoSymbol25700 = Lt.AlgoSymbol25700, e.AlgoSymbol25701 = Vt.AlgoSymbol25701, e.AlgoSymbol25800 = _t.AlgoSymbol25800, e.AlgoSymbol25801 = Tt.AlgoSymbol25801, e.AlgoSymbol25900 = At.AlgoSymbol25900, e.AlgoSymbol25901 = Et.AlgoSymbol25901, e.AlgoSymbol26400 = xt.AlgoSymbol26400, e.AlgoSymbol26500 = Yt.AlgoSymbol26500, e.AlgoSymbol26501 = jt.AlgoSymbol26501, e.AlgoSymbol26502 = Ct.AlgoSymbol26502, e.AlgoSymbol26503 = It.AlgoSymbol26503, e.AlgoSymbol26600 = Gt.AlgoSymbol26600, e.AlgoSymbol26601 = Bt.AlgoSymbol26601, e.AlgoSymbol26700 = Rt.AlgoSymbol26700, e.AlgoSymbol26800 = Nt.AlgoSymbol26800, e.AlgoSymbol27100 = Dt.AlgoSymbol27100, e.AlgoSymbol27300 = kt.AlgoSymbol27300, e.AlgoSymbol27700 = zt.AlgoSymbol27700, e.AlgoSymbol27701 = Ft.AlgoSymbol27701, e.AlgoSymbol27900 = Kt.AlgoSymbol27900, e.AlgoSymbol27901 = qt.AlgoSymbol27901, e.AlgoSymbol27902 = Wt.AlgoSymbol27902, e.AlgoSymbol28000 = Jt.AlgoSymbol28000, e.AlgoSymbol28100 = Zt.AlgoSymbol28100, e.AlgoSymbol28200 = Ht.AlgoSymbol28200, e.AlgoSymbol28201 = Qt.AlgoSymbol28201, e.AlgoSymbol28300 = Xt.AlgoSymbol28300, e.AlgoSymbol28301 = $t.AlgoSymbol28301, e.AlgoSymbol28400 = te.AlgoSymbol28400, e.AlgoSymbol28900 = ee.AlgoSymbol28900, e.AlgoSymbol29000 = le.AlgoSymbol29000, e.AlgoSymbol29001 = oe.AlgoSymbol29001, e.AlgoSymbol29002 = ie.AlgoSymbol29002, e.AlgoSymbol29003 = ne.AlgoSymbol29003, e.AlgoSymbol29100 = ae.AlgoSymbol29100, e.AlgoSymbol29101 = re.AlgoSymbol29101, e.AlgoSymbol29103 = se.AlgoSymbol29103, e.AlgoSymbol29401 = pe.AlgoSymbol29401, e.AlgoSymbol29800 = ue.AlgoSymbol29800, e.AlgoSymbol29903 = ce.AlgoSymbol29903, e.AlgoSymbol30000 = Pe.AlgoSymbol30000, e.AlgoSymbol30001 = Se.AlgoSymbol30001, e.AlgoSymbol30002 = he.AlgoSymbol30002, e.AlgoSymbol30100 = ye.AlgoSymbol30100, e.AlgoSymbol30200 = fe.AlgoSymbol30200, e.AlgoSymbol30201 = ge.AlgoSymbol30201, e.AlgoSymbol30800 = Me.AlgoSymbol30800, e.AlgoSymbol30102 = be.AlgoSymbol30102, e.AlgoSymbol31300 = me.AlgoSymbol31300, e.AlgoSymbol31301 = de.AlgoSymbol31301, e.AlgoSymbol31302 = ve.AlgoSymbol31302, e.AlgoSymbol31303 = Oe.AlgoSymbol31303, e.AlgoSymbol31304 = Ue.AlgoSymbol31304, e.AlgoSymbol31400 = we.AlgoSymbol31400, e.AlgoSymbol31401 = Le.AlgoSymbol31401, e.AlgoSymbol31600 = Ve.AlgoSymbol31600, e.AlgoSymbol31601 = _e.AlgoSymbol31601, e.AlgoSymbol31803 = Te.AlgoSymbol31803, e.AlgoSymbol32300 = Ae.AlgoSymbol32300, e.AlgoSymbol32900 = Ee.AlgoSymbol32900, e.AlgoSymbol33400 = xe.AlgoSymbol33400, e.AlgoSymbol34300 = Ye.AlgoSymbol34300, e.AlgoSymbol34400 = je.AlgoSymbol34400, e.AlgoSymbol34500 = Ce.AlgoSymbol34500, e.AlgoSymbol34501 = Ie.AlgoSymbol34501, e.AlgoSymbol34700 = Ge.AlgoSymbol34700, e.AlgoSymbol34800 = Be.AlgoSymbol34800, e.AlgoSymbol34801 = Re.AlgoSymbol34801, e.AlgoSymbol34900 = Ne.AlgoSymbol34900, e.AlgoSymbol34901 = De.AlgoSymbol34901, e.AlgoSymbol34902 = ke.AlgoSymbol34902, e.AlgoSymbol35000 = ze.AlgoSymbol35000, e.AlgoSymbol35200 = Fe.AlgoSymbol35200, e.AlgoSymbol35304 = Ke.AlgoSymbol35304, e.AlgoSymbol35500 = qe.AlgoSymbol35500, e.AlgoSymbol36400 = We.AlgoSymbol36400, e.AlgoSymbol36401 = Je.AlgoSymbol36401, e.AlgoSymbol36600 = Ze.AlgoSymbol36600, e.AlgoSymbol36700 = He.AlgoSymbol36700, e.AlgoSymbol36800 = Qe.AlgoSymbol36800, e.AlgoSymbol37100 = Xe.AlgoSymbol37100, e.AlgoSymbol37200 = $e.AlgoSymbol37200, e.AlgoSymbol37300 = tl.AlgoSymbol37300, e.AlgoSymbol37301 = el.AlgoSymbol37301, e.AlgoSymbol37600 = ll.AlgoSymbol37600, e.AlgoSymbol37601 = ol.AlgoSymbol37601, e.AlgoSymbol37700 = il.AlgoSymbol37700, e.AlgoSymbol38600 = nl.AlgoSymbol38600, e.AlgoSymbol38700 = al.AlgoSymbol38700, e.AlgoSymbol39000 = rl.AlgoSymbol39000, e.AlgoSymbol39101 = sl.AlgoSymbol39101, e.AlgoSymbol39500 = pl.AlgoSymbol39500, e.AlgoSymbol39600 = ul.AlgoSymbol39600, e.AlgoSymbol39800 = cl.AlgoSymbol39800, e.AlgoSymbol39801 = Pl.AlgoSymbol39801, e.AlgoSymbol39802 = Sl.AlgoSymbol39802, e.AlgoSymbol40000 = hl.AlgoSymbol40000, e.AlgoSymbol40100 = yl.AlgoSymbol40100, e.AlgoSymbol40101 = fl.AlgoSymbol40101, e.AlgoSymbol40900 = gl.AlgoSymbol40900, e.AlgoSymbol41100 = Ml.AlgoSymbol41100, e.AlgoSymbol41200 = bl.AlgoSymbol41200, e.AlgoSymbol41201 = ml.AlgoSymbol41201, e.AlgoSymbol41202 = dl.AlgoSymbol41202, e.AlgoSymbol42200 = vl.AlgoSymbol42200, e.AlgoSymbol42400 = Ol.AlgoSymbol42400, e.AlgoSymbol42500 = Ul.AlgoSymbol42500, e.AlgoSymbol42700 = wl.AlgoSymbol42700, e.AlgoSymbol43500 = Ll.AlgoSymbol43500, e.AlgoSymbol44100 = Vl.AlgoSymbol44100, e.AlgoSymbol44200 = _l.AlgoSymbol44200, e.AlgoSymbol44300 = Tl.AlgoSymbol44300, e.AlgoSymbol44400 = Al.AlgoSymbol44400, e.AlgoSymbol2350001 = El.AlgoSymbol2350001, e.AlgoSymbol2890001 = xl.AlgoSymbol2890001, e.AlgoSymbol3010102 = Yl.AlgoSymbol3010102, e.AlgoSymbol3010103 = jl.AlgoSymbol3010103, e.AlgoSymbol3010104 = Cl.AlgoSymbol3010104, e.AlgoSymbol3010105 = Il.AlgoSymbol3010105, e.AlgoSymbol3010106 = Gl.AlgoSymbol3010106, e.AlgoSymbol3010107 = Bl.AlgoSymbol3010107, e.AlgoSymbol3010108 = Rl.AlgoSymbol3010108, e.AlgoSymbol3010301 = Nl.AlgoSymbol3010301, e.AlgoSymbol3010302 = Dl.AlgoSymbol3010302, e.AlgoSymbol6020400 = kl.AlgoSymbol6020400, e.AlgoSymbol6020401 = zl.AlgoSymbol6020401, e.AlgoSymbol6020402 = Fl.AlgoSymbol6020402, e.AlgoSymbol3010303 = Kl.AlgoSymbol3010303, e.AlgoSymbol3010304 = ql.AlgoSymbol3010304, e.AlgoSymbol3020901 = Wl.AlgoSymbol3020901, e.AlgoSymbol3032000 = Jl.AlgoSymbol3032000, e.AlgoSymbol4010800 = Zl.AlgoSymbol4010800, e.AlgoSymbol4010801 = Hl.AlgoSymbol4010801, e.AlgoSymbol4010905 = Ql.AlgoSymbol4010905, e.AlgoSymbol4011100 = Xl.AlgoSymbol4011100, e.AlgoSymbol4011101 = $l.AlgoSymbol4011101, e.AlgoSymbol4020303 = to.AlgoSymbol4020303, e.AlgoSymbol4020401 = eo.AlgoSymbol4020401, e.AlgoSymbol4020402 = lo.AlgoSymbol4020402, e.AlgoSymbol4022100 = oo.AlgoSymbol4022100, e.AlgoSymbol4022101 = io.AlgoSymbol4022101, e.AlgoSymbol4022102 = no.AlgoSymbol4022102, e.AlgoSymbol6020403 = ao.AlgoSymbol6020403, e.AlgoSymbol6020404 = ro.AlgoSymbol6020404, e.AlgoSymbol4021101 = so.AlgoSymbol4021101, e.AlgoSymbol4021102 = po.AlgoSymbol4021102 }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.JBAlgoSymbolFactory = void 0, l(223); e.JBAlgoSymbolFactory = SuperMap.Plot.JBAlgoSymbolFactory = SuperMap.Plot.JBAlgoSymbolFactory || {}; SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol = function (t, e, l) { if (100 !== t) return new SuperMap.Plot.AlgoSymbol(l); switch (e) { case 12500: return new SuperMap.Plot.AlgoSymbol12500(l); case 12501: return new SuperMap.Plot.AlgoSymbol12501(l); case 12502: return new SuperMap.Plot.AlgoSymbol12502(l); case 13700: return new SuperMap.Plot.AlgoSymbol13700(l); case 15200: return new SuperMap.Plot.AlgoSymbol15200(l); case 15201: case 23800: return new SuperMap.Plot.AlgoSymbol15201(l); case 15202: return new SuperMap.Plot.AlgoSymbol15202(l); case 15800: return new SuperMap.Plot.AlgoSymbol15800(l); case 15801: return new SuperMap.Plot.AlgoSymbol15801(l); case 15802: return new SuperMap.Plot.AlgoSymbol15802(l); case 15803: return new SuperMap.Plot.AlgoSymbol15803(l); case 15804: return new SuperMap.Plot.AlgoSymbol15804(l); case 15805: return new SuperMap.Plot.AlgoSymbol15805(l); case 15806: return new SuperMap.Plot.AlgoSymbol15806(l); case 15900: return new SuperMap.Plot.AlgoSymbol15900(l); case 16e3: return new SuperMap.Plot.AlgoSymbol16000(l); case 16001: return new SuperMap.Plot.AlgoSymbol16001(l); case 16100: return new SuperMap.Plot.AlgoSymbol16100(l); case 16200: return new SuperMap.Plot.AlgoSymbol16200(l); case 16201: return new SuperMap.Plot.AlgoSymbol16201(l); case 16202: return new SuperMap.Plot.AlgoSymbol16202(l); case 16203: return new SuperMap.Plot.AlgoSymbol16203(l); case 16500: return new SuperMap.Plot.AlgoSymbol16500(l); case 16700: return new SuperMap.Plot.AlgoSymbol16700(l); case 16900: return new SuperMap.Plot.AlgoSymbol16900(l); case 17400: return new SuperMap.Plot.AlgoSymbol17400(l); case 17401: return new SuperMap.Plot.AlgoSymbol17401(l); case 17500: return new SuperMap.Plot.AlgoSymbol17500(l); case 17501: return new SuperMap.Plot.AlgoSymbol17501(l); case 17600: return new SuperMap.Plot.AlgoSymbol17600(l); case 17700: return new SuperMap.Plot.AlgoSymbol17700(l); case 17703: return new SuperMap.Plot.AlgoSymbol17703(l); case 17704: return new SuperMap.Plot.AlgoSymbol17704(l); case 17800: return new SuperMap.Plot.AlgoSymbol17800(l); case 17801: return new SuperMap.Plot.AlgoSymbol17801(l); case 17802: return new SuperMap.Plot.AlgoSymbol17802(l); case 17803: return new SuperMap.Plot.AlgoSymbol17803(l); case 17804: return new SuperMap.Plot.AlgoSymbol17804(l); case 17805: return new SuperMap.Plot.AlgoSymbol17805(l); case 17806: return new SuperMap.Plot.AlgoSymbol17806(l); case 20300: return new SuperMap.Plot.AlgoSymbol20300(l); case 20301: return new SuperMap.Plot.AlgoSymbol20301(l); case 21401: return new SuperMap.Plot.AlgoSymbol21401(l); case 21500: return new SuperMap.Plot.AlgoSymbol21500(l); case 21501: return new SuperMap.Plot.AlgoSymbol21501(l); case 21502: return new SuperMap.Plot.AlgoSymbol21502(l); case 21503: return new SuperMap.Plot.AlgoSymbol21503(l); case 21504: return new SuperMap.Plot.AlgoSymbol21504(l); case 21600: return new SuperMap.Plot.AlgoSymbol21600(l); case 21800: return new SuperMap.Plot.AlgoSymbol21800(l); case 21900: return new SuperMap.Plot.AlgoSymbol21900(l); case 22e3: return new SuperMap.Plot.AlgoSymbol22000(l); case 22103: return new SuperMap.Plot.AlgoSymbol22103(l); case 22200: return new SuperMap.Plot.AlgoSymbol22200(l); case 23400: return new SuperMap.Plot.AlgoSymbol23400(l); case 23500: return new SuperMap.Plot.AlgoSymbol23500(l); case 2350001: return new SuperMap.Plot.AlgoSymbol2350001(l); case 23600: return new SuperMap.Plot.AlgoSymbol23600(l); case 23700: return new SuperMap.Plot.AlgoSymbol23700(l); case 23901: return new SuperMap.Plot.AlgoSymbol23901(l); case 23902: return new SuperMap.Plot.AlgoSymbol23902(l); case 24700: return new SuperMap.Plot.AlgoSymbol24700(l); case 25e3: return new SuperMap.Plot.AlgoSymbol25000(l); case 25100: return new SuperMap.Plot.AlgoSymbol25100(l); case 25101: return new SuperMap.Plot.AlgoSymbol25101(l); case 25200: return new SuperMap.Plot.AlgoSymbol25200(l); case 21400: case 25201: return new SuperMap.Plot.AlgoSymbol25201(l); case 25202: return new SuperMap.Plot.AlgoSymbol25202(l); case 25300: return new SuperMap.Plot.AlgoSymbol25300(l); case 25301: return new SuperMap.Plot.AlgoSymbol25301(l); case 25400: return new SuperMap.Plot.AlgoSymbol25400(l); case 25500: return new SuperMap.Plot.AlgoSymbol25500(l); case 25501: return new SuperMap.Plot.AlgoSymbol25501(l); case 25502: return new SuperMap.Plot.AlgoSymbol25502(l); case 25503: return new SuperMap.Plot.AlgoSymbol25503(l); case 25600: return new SuperMap.Plot.AlgoSymbol25600(l); case 25601: return new SuperMap.Plot.AlgoSymbol25601(l); case 25700: return new SuperMap.Plot.AlgoSymbol25700(l); case 25701: return new SuperMap.Plot.AlgoSymbol25701(l); case 25800: return new SuperMap.Plot.AlgoSymbol25800(l); case 25801: return new SuperMap.Plot.AlgoSymbol25801(l); case 25900: return new SuperMap.Plot.AlgoSymbol25900(l); case 25901: return new SuperMap.Plot.AlgoSymbol25901(l); case 26400: return new SuperMap.Plot.AlgoSymbol26400(l); case 26500: return new SuperMap.Plot.AlgoSymbol26500(l); case 26501: return new SuperMap.Plot.AlgoSymbol26501(l); case 26502: return new SuperMap.Plot.AlgoSymbol26502(l); case 26503: return new SuperMap.Plot.AlgoSymbol26503(l); case 26600: return new SuperMap.Plot.AlgoSymbol26600(l); case 26601: return new SuperMap.Plot.AlgoSymbol26601(l); case 26700: return new SuperMap.Plot.AlgoSymbol26700(l); case 26800: return new SuperMap.Plot.AlgoSymbol26800(l); case 27100: return new SuperMap.Plot.AlgoSymbol27100(l); case 27300: return new SuperMap.Plot.AlgoSymbol27300(l); case 27700: return new SuperMap.Plot.AlgoSymbol27700(l); case 27701: return new SuperMap.Plot.AlgoSymbol27701(l); case 27900: return new SuperMap.Plot.AlgoSymbol27900(l); case 27901: return new SuperMap.Plot.AlgoSymbol27901(l); case 27902: return new SuperMap.Plot.AlgoSymbol27902(l); case 28e3: return new SuperMap.Plot.AlgoSymbol28000(l); case 28100: return new SuperMap.Plot.AlgoSymbol28100(l); case 28200: return new SuperMap.Plot.AlgoSymbol28200(l); case 28201: return new SuperMap.Plot.AlgoSymbol28201(l); case 28300: return new SuperMap.Plot.AlgoSymbol28300(l); case 28301: return new SuperMap.Plot.AlgoSymbol28301(l); case 28400: return new SuperMap.Plot.AlgoSymbol28400(l); case 28900: return new SuperMap.Plot.AlgoSymbol28900(l); case 29e3: return new SuperMap.Plot.AlgoSymbol29000(l); case 29001: return new SuperMap.Plot.AlgoSymbol29001(l); case 29002: return new SuperMap.Plot.AlgoSymbol29002(l); case 29003: return new SuperMap.Plot.AlgoSymbol29003(l); case 29100: return new SuperMap.Plot.AlgoSymbol29100(l); case 29101: return new SuperMap.Plot.AlgoSymbol29101(l); case 29103: return new SuperMap.Plot.AlgoSymbol29103(l); case 29401: return new SuperMap.Plot.AlgoSymbol29401(l); case 29800: return new SuperMap.Plot.AlgoSymbol29800(l); case 29903: return new SuperMap.Plot.AlgoSymbol29903(l); case 3e4: return new SuperMap.Plot.AlgoSymbol30000(l); case 30001: return new SuperMap.Plot.AlgoSymbol30001(l); case 30002: return new SuperMap.Plot.AlgoSymbol30002(l); case 30100: case 4020400: return new SuperMap.Plot.AlgoSymbol30100(l); case 30200: return new SuperMap.Plot.AlgoSymbol30200(l); case 30201: return new SuperMap.Plot.AlgoSymbol30201(l); case 30800: return new SuperMap.Plot.AlgoSymbol30800(l); case 30102: return new SuperMap.Plot.AlgoSymbol30102(l); case 31300: return new SuperMap.Plot.AlgoSymbol31300(l); case 31301: return new SuperMap.Plot.AlgoSymbol31301(l); case 31302: return new SuperMap.Plot.AlgoSymbol31302(l); case 31303: return new SuperMap.Plot.AlgoSymbol31303(l); case 31304: return new SuperMap.Plot.AlgoSymbol31304(l); case 31400: return new SuperMap.Plot.AlgoSymbol31400(l); case 31401: return new SuperMap.Plot.AlgoSymbol31401(l); case 31600: return new SuperMap.Plot.AlgoSymbol31600(l); case 31601: return new SuperMap.Plot.AlgoSymbol31601(l); case 31803: return new SuperMap.Plot.AlgoSymbol31803(l); case 32300: return new SuperMap.Plot.AlgoSymbol32300(l); case 32900: return new SuperMap.Plot.AlgoSymbol32900(l); case 33400: return new SuperMap.Plot.AlgoSymbol33400(l); case 34300: return new SuperMap.Plot.AlgoSymbol34300(l); case 34400: return new SuperMap.Plot.AlgoSymbol34400(l); case 34500: return new SuperMap.Plot.AlgoSymbol34500(l); case 34501: return new SuperMap.Plot.AlgoSymbol34501(l); case 34700: return new SuperMap.Plot.AlgoSymbol34700(l); case 34800: return new SuperMap.Plot.AlgoSymbol34800(l); case 34801: return new SuperMap.Plot.AlgoSymbol34801(l); case 34900: return new SuperMap.Plot.AlgoSymbol34900(l); case 34901: return new SuperMap.Plot.AlgoSymbol34901(l); case 34902: return new SuperMap.Plot.AlgoSymbol34902(l); case 35e3: return new SuperMap.Plot.AlgoSymbol35000(l); case 35200: return new SuperMap.Plot.AlgoSymbol35200(l); case 35304: return new SuperMap.Plot.AlgoSymbol35304(l); case 35500: return new SuperMap.Plot.AlgoSymbol35500(l); case 36400: return new SuperMap.Plot.AlgoSymbol36400(l); case 36401: return new SuperMap.Plot.AlgoSymbol36401(l); case 36600: return new SuperMap.Plot.AlgoSymbol36600(l); case 36700: return new SuperMap.Plot.AlgoSymbol36700(l); case 36800: return new SuperMap.Plot.AlgoSymbol36800(l); case 37100: return new SuperMap.Plot.AlgoSymbol37100(l); case 37200: return new SuperMap.Plot.AlgoSymbol37200(l); case 37300: return new SuperMap.Plot.AlgoSymbol37300(l); case 37301: return new SuperMap.Plot.AlgoSymbol37301(l); case 37600: return new SuperMap.Plot.AlgoSymbol37600(l); case 37601: return new SuperMap.Plot.AlgoSymbol37601(l); case 37700: return new SuperMap.Plot.AlgoSymbol37700(l); case 38600: return new SuperMap.Plot.AlgoSymbol38600(l); case 38700: return new SuperMap.Plot.AlgoSymbol38700(l); case 39e3: return new SuperMap.Plot.AlgoSymbol39000(l); case 39101: return new SuperMap.Plot.AlgoSymbol39101(l); case 39500: return new SuperMap.Plot.AlgoSymbol39500(l); case 39600: return new SuperMap.Plot.AlgoSymbol39600(l); case 39800: return new SuperMap.Plot.AlgoSymbol39800(l); case 39801: return new SuperMap.Plot.AlgoSymbol39801(l); case 39802: return new SuperMap.Plot.AlgoSymbol39802(l); case 4e4: return new SuperMap.Plot.AlgoSymbol40000(l); case 40100: return new SuperMap.Plot.AlgoSymbol40100(l); case 40101: return new SuperMap.Plot.AlgoSymbol40101(l); case 40900: return new SuperMap.Plot.AlgoSymbol40900(l); case 41100: return new SuperMap.Plot.AlgoSymbol41100(l); case 41200: return new SuperMap.Plot.AlgoSymbol41200(l); case 41201: return new SuperMap.Plot.AlgoSymbol41201(l); case 41202: return new SuperMap.Plot.AlgoSymbol41202(l); case 42200: return new SuperMap.Plot.AlgoSymbol42200(l); case 42400: return new SuperMap.Plot.AlgoSymbol42400(l); case 42500: return new SuperMap.Plot.AlgoSymbol42500(l); case 42700: return new SuperMap.Plot.AlgoSymbol42700(l); case 43500: return new SuperMap.Plot.AlgoSymbol43500(l); case 44100: return new SuperMap.Plot.AlgoSymbol44100(l); case 44200: return new SuperMap.Plot.AlgoSymbol44200(l); case 44300: return new SuperMap.Plot.AlgoSymbol44300(l); case 44400: return new SuperMap.Plot.AlgoSymbol44400(l); case 2890001: return new SuperMap.Plot.AlgoSymbol2890001(l); case 3010301: return new SuperMap.Plot.AlgoSymbol3010301(l); case 3010302: return new SuperMap.Plot.AlgoSymbol3010302(l); case 3010303: return new SuperMap.Plot.AlgoSymbol3010303(l); case 3010304: return new SuperMap.Plot.AlgoSymbol3010304(l); case 3010102: return new SuperMap.Plot.AlgoSymbol3010102(l); case 3010103: return new SuperMap.Plot.AlgoSymbol3010103(l); case 3010104: return new SuperMap.Plot.AlgoSymbol3010104(l); case 3010105: return new SuperMap.Plot.AlgoSymbol3010105(l); case 3010106: return new SuperMap.Plot.AlgoSymbol3010106(l); case 3010107: return new SuperMap.Plot.AlgoSymbol3010107(l); case 3010108: return new SuperMap.Plot.AlgoSymbol3010108(l); case 3020901: return new SuperMap.Plot.AlgoSymbol3020901(l); case 3032e3: return new SuperMap.Plot.AlgoSymbol3032000(l); case 4010800: return new SuperMap.Plot.AlgoSymbol4010800(l); case 4010801: return new SuperMap.Plot.AlgoSymbol4010801(l); case 4010905: return new SuperMap.Plot.AlgoSymbol4010905(l); case 4011100: return new SuperMap.Plot.AlgoSymbol4011100(l); case 4011101: return new SuperMap.Plot.AlgoSymbol4011101(l); case 4020303: return new SuperMap.Plot.AlgoSymbol4020303(l); case 4020401: return new SuperMap.Plot.AlgoSymbol4020401(l); case 4020402: return new SuperMap.Plot.AlgoSymbol4020402(l); case 4021101: return new SuperMap.Plot.AlgoSymbol4021101(l); case 4021102: return new SuperMap.Plot.AlgoSymbol4021102(l); case 4022100: return new SuperMap.Plot.AlgoSymbol4022100(l); case 4022101: return new SuperMap.Plot.AlgoSymbol4022101(l); case 4022102: return new SuperMap.Plot.AlgoSymbol4022102(l); case 6020400: return new SuperMap.Plot.AlgoSymbol6020400(l); case 6020401: return new SuperMap.Plot.AlgoSymbol6020401(l); case 6020402: return new SuperMap.Plot.AlgoSymbol6020402(l); case 6020403: return new SuperMap.Plot.AlgoSymbol6020403(l); case 6020404: return new SuperMap.Plot.AlgoSymbol6020404(l); default: return new SuperMap.Plot.AlgoSymbol(l) } }, SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer = function (t, e) { if (100 !== t) return !0; switch (e) { case 12500: case 12501: case 12502: case 13700: case 15200: case 15201: case 15202: case 15800: case 15801: case 15802: case 15803: case 15804: case 15805: case 15806: case 15900: case 16e3: case 16001: case 16100: case 16200: case 16201: case 16202: case 16203: case 16500: case 16700: case 16900: case 17400: case 17401: case 17500: case 17501: case 17600: case 17700: case 17703: case 17704: case 17800: case 17801: case 17802: case 17803: case 17804: case 17805: case 17806: case 20300: case 20301: case 21400: case 21401: case 21500: case 21501: case 21502: case 21503: case 21504: case 21600: case 21800: case 21900: case 22e3: case 22103: case 22200: case 23400: case 23500: case 23600: case 23700: case 23800: case 23901: case 23902: case 24700: case 25e3: case 25100: case 25101: case 25200: case 25201: case 25202: case 25300: case 25301: case 25400: case 25500: case 25501: case 25502: case 25503: case 25600: case 25601: case 25700: case 25701: case 25800: case 25801: case 25900: case 25901: case 26400: case 26500: case 26501: case 26502: case 26503: case 26600: case 26601: case 26700: case 26800: case 27100: case 27300: case 27700: case 27701: case 27900: case 27901: case 27902: case 28e3: case 28100: case 28200: case 28201: case 28300: case 28301: case 28400: case 28900: case 29e3: case 29001: case 29002: case 29003: case 29100: case 29101: case 29103: case 29401: case 29800: case 29903: case 3e4: case 30001: case 30002: case 30100: case 30200: case 30201: case 30800: case 30102: case 31300: case 31301: case 31302: case 31303: case 31304: case 31400: case 31401: case 31600: case 31601: case 31803: case 32300: case 32900: case 33400: case 34300: case 34400: case 34500: case 34501: case 34700: case 34800: case 34801: case 34900: case 34901: case 34902: case 35e3: case 35200: case 35304: case 35500: case 36400: case 36401: case 36600: case 36700: case 36800: case 37100: case 37200: case 37300: case 37301: case 37600: case 37601: case 37700: case 38600: case 38700: case 39e3: case 39101: case 39500: case 39600: case 39800: case 39801: case 39802: case 3010102: case 3010103: case 3010104: case 3010105: case 3010106: case 3010107: case 3010108: case 4e4: case 40100: case 40101: case 40900: case 41100: case 41200: case 41201: case 41202: case 42200: case 42400: case 42500: case 42700: case 43500: case 44100: case 44200: case 44300: case 44400: case 2350001: case 2890001: case 3010301: case 3010302: case 3010303: case 3010304: case 3020901: case 3032e3: case 4010800: case 4010801: case 4010905: case 4011100: case 4011101: case 4020303: case 4020400: case 4020401: case 4020402: case 4022100: case 4022101: case 4022102: case 6020400: case 6020401: case 6020402: case 6020403: case 6020404: case 4021101: case 4021102: return !1; default: return !0 } }, SuperMap.Plot.JBAlgoSymbolFactory.getSymbolWayType = function (t, e) { if (100 !== t) return SuperMap.Plot.AddPoint_WayType.UNKNOWN; switch (e) { case 15200: case 15201: case 16203: case 17703: case 17704: case 21400: case 21401: case 21500: case 21501: case 21502: case 21503: case 21504: case 21600: case 21900: case 22e3: case 22103: case 23800: case 24700: case 25201: case 25400: case 26500: case 26501: case 26502: case 26600: case 28900: case 29e3: case 29003: case 29903: case 3e4: case 30001: case 30002: case 30100: case 30102: case 30200: case 30201: case 30800: case 31803: case 33400: case 34900: case 34901: case 34902: case 35e3: case 36400: case 44200: case 3010102: case 3010103: case 3010104: case 3010105: case 3010106: case 3010107: case 3010108: case 3010301: case 3010302: case 3010303: case 3010304: return SuperMap.Plot.AddPoint_WayType.CURVE; case 12500: case 12502: case 16100: case 20300: case 25501: case 25502: case 26503: case 25503: case 25601: case 25801: case 25901: case 32900: case 34700: case 35200: case 36401: case 41200: case 41201: case 41202: case 42700: case 44400: return SuperMap.Plot.AddPoint_WayType.POLYLINE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } }, SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols = function (t, e) { var l = []; if (100 !== t) return l; switch (e) { case 17400: case 17401: return l.push(new SuperMap.Plot.SubSymbol(100, 17300)), l.push(new SuperMap.Plot.SubSymbol(100, 17301)), l; case 21501: case 26502: return l.push(new SuperMap.Plot.SubSymbol(100, 19700)), l; case 21502: return l.push(new SuperMap.Plot.SubSymbol(100, 6803)), l; case 22103: case 26501: return l.push(new SuperMap.Plot.SubSymbol(100, 22100)), l; case 21503: return l.push(new SuperMap.Plot.SubSymbol(100, 7900)), l; case 21504: return l.push(new SuperMap.Plot.SubSymbol(100, 8404)), l; case 22e3: return l.push(new SuperMap.Plot.SubSymbol(100, 1e3)), l; case 23500: return l.push(new SuperMap.Plot.SubSymbol(100, 1300)), l; case 23600: return l.push(new SuperMap.Plot.SubSymbol(100, 800)), l.push(new SuperMap.Plot.SubSymbol(100, 800)), l; case 25300: return l.push(new SuperMap.Plot.SubSymbol(100, 6302)), l.push(new SuperMap.Plot.SubSymbol(100, 7900)), l; case 25301: return l.push(new SuperMap.Plot.SubSymbol(100, 300)), l.push(new SuperMap.Plot.SubSymbol(100, 6200)), l; case 25503: return l.push(new SuperMap.Plot.SubSymbol(100, 8402)), l; case 26700: return l.push(new SuperMap.Plot.SubSymbol(100, 4500)), l; case 27100: return l.push(new SuperMap.Plot.SubSymbol(100, 7700)), l; case 27300: return l.push(new SuperMap.Plot.SubSymbol(100, 1500)), l; case 3032e3: return l.push(new SuperMap.Plot.SubSymbol(100, 1500)), l.push(new SuperMap.Plot.SubSymbol(100, 1500)), l; case 28300: return l.push(new SuperMap.Plot.SubSymbol(100, 18600)), l; case 28301: return l.push(new SuperMap.Plot.SubSymbol(100, 18600)), l.push(new SuperMap.Plot.SubSymbol(100, 18600)), l; case 28400: return l.push(new SuperMap.Plot.SubSymbol(100, 4801)), l; case 29001: return l.push(new SuperMap.Plot.SubSymbol(100, 5200)), l.push(new SuperMap.Plot.SubSymbol(100, 5200)), l; case 29002: return l.push(new SuperMap.Plot.SubSymbol(100, 600)), l.push(new SuperMap.Plot.SubSymbol(100, 5300)), l; case 23901: case 23902: return l.push(new SuperMap.Plot.SubSymbol(100, 4800)), l; case 31600: case 31601: return l.push(new SuperMap.Plot.SubSymbol(100, 700)), l; case 29903: case 4021101: return l.push(new SuperMap.Plot.SubSymbol(100, 600)), l; case 32900: return l.push(new SuperMap.Plot.SubSymbol(100, 6700)), l; case 35200: return l.push(new SuperMap.Plot.SubSymbol(100, 6803)), l; case 37700: return l.push(new SuperMap.Plot.SubSymbol(100, 37800)), l; case 3010107: return l.push(new SuperMap.Plot.SubSymbol(100, 800)), l; case 3010108: return l.push(new SuperMap.Plot.SubSymbol(100, 4600)), l; case 4010800: return l.push(new SuperMap.Plot.SubSymbol(100, 1300)), l; case 4010801: case 4022100: case 4022101: case 4022102: case 4021102: return l.push(new SuperMap.Plot.SubSymbol(100, 8400)), l; case 31303: case 31302: return l.push(new SuperMap.Plot.SubSymbol(100, 4400)), l; case 4010905: return l.push(new SuperMap.Plot.SubSymbol(100, 700)), l; case 31803: return l.push(new SuperMap.Plot.SubSymbol(100, 8402)), l; case 34400: return l.push(new SuperMap.Plot.SubSymbol(100, 6202)), l; case 34501: return l.push(new SuperMap.Plot.SubSymbol(100, 8403)), l; case 35304: return l.push(new SuperMap.Plot.SubSymbol(100, 35301)), l; case 36401: return l.push(new SuperMap.Plot.SubSymbol(100, 7200)), l; case 36600: return l.push(new SuperMap.Plot.SubSymbol(100, 300)), l; case 37100: return l.push(new SuperMap.Plot.SubSymbol(100, 8e3)), l; case 37200: return l.push(new SuperMap.Plot.SubSymbol(100, 7101)), l; case 37600: case 37601: case 38600: case 38700: return l.push(new SuperMap.Plot.SubSymbol(100, 4600)), l; case 39e3: return l.push(new SuperMap.Plot.SubSymbol(100, 9300)), l.push(new SuperMap.Plot.SubSymbol(100, 9300)), l.push(new SuperMap.Plot.SubSymbol(100, 9300)), l; case 39101: return l.push(new SuperMap.Plot.SubSymbol(100, 39100)), l; case 39500: case 39600: return l.push(new SuperMap.Plot.SubSymbol(100, 8700)), l; case 39800: case 39801: case 39802: case 4e4: return l.push(new SuperMap.Plot.SubSymbol(100, 8900)), l; case 36700: return l.push(new SuperMap.Plot.SubSymbol(100, 300)), l; case 42200: return l.push(new SuperMap.Plot.SubSymbol(100, 20901)), l; case 4011100: return l.push(new SuperMap.Plot.SubSymbol(100, 4e3)), l.push(new SuperMap.Plot.SubSymbol(100, 4001)), l; case 4011101: return l.push(new SuperMap.Plot.SubSymbol(100, 700)), l.push(new SuperMap.Plot.SubSymbol(100, 700)), l; case 2350001: return l.push(new SuperMap.Plot.SubSymbol(100, 7900)), l.push(new SuperMap.Plot.SubSymbol(100, 1300)), l; case 2890001: return l.push(new SuperMap.Plot.SubSymbol(100, 4003)), l; default: return l } }, SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts = function (t, e) { if (100 !== t) return 0; switch (e) { case 12500: case 12501: case 12502: case 13700: case 15200: case 15201: case 15202: case 15800: case 15801: case 15802: case 15803: case 15804: case 15805: case 15806: case 15900: case 16e3: case 16001: case 16200: case 16201: case 16202: case 16203: case 16500: case 16700: case 16900: case 17400: case 17401: case 17500: case 17501: case 17600: case 17700: case 17703: case 17704: case 17800: case 17801: case 17802: case 17803: case 17804: case 17805: case 17806: case 20300: case 20301: case 21400: case 21401: case 21500: case 21501: case 21502: case 21503: case 21504: case 21600: case 21800: case 21900: case 22e3: case 22103: case 22200: case 23400: case 23500: case 23600: case 23700: case 23800: case 23901: case 23902: case 24700: case 25e3: case 25100: case 25101: case 25201: case 25202: case 25300: case 25301: case 25400: case 26400: case 26500: case 26501: case 26502: case 26503: case 26600: case 26601: case 26700: case 26800: case 27100: case 27300: case 27700: case 27701: case 27900: case 27901: case 27902: case 28e3: case 28100: case 28200: case 28201: case 28300: case 28301: case 28400: case 28900: case 29e3: case 29001: case 29002: case 29003: case 29100: case 29101: case 29103: case 29401: case 29903: case 41100: case 44100: case 43500: case 42500: case 39500: case 37301: case 37300: case 37200: case 37100: case 36800: case 36600: case 35500: case 34801: case 34800: case 34501: case 34500: case 34400: case 34300: case 31600: case 31601: case 31401: case 31400: case 31304: case 31303: case 31302: case 31301: case 31300: case 44200: case 41200: case 41201: case 41202: case 31803: case 30800: case 30201: case 30200: case 44300: case 42400: case 42200: case 40900: case 40100: case 40101: case 4e4: case 39802: case 39801: case 39800: case 39600: case 39101: case 39e3: case 38600: case 37700: case 37601: case 37600: case 36700: case 36401: case 36400: case 35304: case 35200: case 35e3: case 34700: case 33400: case 30100: case 30102: case 30002: case 30001: case 3e4: case 38700: case 32300: case 42700: case 34902: case 34901: case 34900: case 32900: case 2350001: case 2890001: case 3032e3: case 3010102: case 3010103: case 3010104: case 3010105: case 3010106: case 3010107: case 3010108: case 3010301: case 3010302: case 3010303: case 3010304: case 3020901: case 4021101: case 4021102: case 4010800: case 4010801: case 4011100: case 4011101: case 4022101: case 4022102: case 4020303: case 4020400: case 4020401: case 4020402: case 4022100: case 4010905: case 6020400: case 6020401: case 6020402: case 6020403: case 6020404: return 2; case 16100: case 25200: case 25500: case 25501: case 25502: case 25503: case 25600: case 25601: case 25700: case 25701: case 25800: case 25801: case 25900: case 25901: case 29800: case 44400: return 3; default: return 0 } }, SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts = function (t, e) { if (100 !== t) return 0; switch (e) { case 15202: case 16202: case 20301: case 16700: case 16900: case 17600: case 25e3: case 25100: case 25101: case 25300: case 25301: case 27100: case 27700: case 27900: case 27901: case 27902: case 28100: case 28201: case 28301: case 41100: case 44100: case 43500: case 42500: case 39500: case 37301: case 37300: case 37200: case 37100: case 36800: case 36600: case 35500: case 34801: case 34800: case 34501: case 34500: case 34400: case 34300: case 31600: case 31601: case 31401: case 31400: case 31304: case 31303: case 31302: case 31301: case 31300: case 21800: case 26700: case 29401: return 2; case 13700: case 17800: case 17801: case 17802: case 17803: case 17804: case 17805: case 17806: case 23901: case 23902: case 38700: case 26800: case 29001: case 29002: case 32300: case 29101: case 29100: case 4010905: case 6020400: case 6020401: case 6020402: case 6020403: case 29e3: return 3; case 28e3: return 4; case 16201: case 17400: case 17401: case 17500: case 17501: case 22200: case 23400: case 23500: case 2350001: case 23600: case 23700: case 23800: case 25200: case 27300: case 27701: case 28400: case 44300: case 42400: case 42200: case 40900: case 40100: case 40101: case 4e4: case 39802: case 39801: case 39800: case 39600: case 39101: case 39e3: case 38600: case 37700: case 37601: case 37600: case 36700: case 36401: case 36400: case 35304: case 35200: case 35e3: case 34700: case 33400: case 30100: case 30102: case 30002: case 30001: case 3e4: case 29903: case 29800: case 3032e3: case 4010800: case 4010801: case 4011100: case 4011101: case 4022101: case 4022102: case 4020303: case 4020400: case 4020401: case 4020402: case 4022100: case 16500: return 30; case 42700: case 34902: case 34901: case 34900: case 32900: case 6020404: return 512; case 12500: case 12501: case 12502: case 16e3: case 16001: case 16100: case 16200: case 16203: case 17700: case 17703: case 17704: case 21900: case 22e3: case 22103: case 25201: case 25202: case 24700: case 25400: case 25500: case 25501: case 25502: case 25503: case 25600: case 25601: case 25700: case 25701: case 25800: case 25801: case 25900: case 25901: case 28900: case 2890001: case 44400: case 44200: case 41200: case 41201: case 41202: case 31803: case 30800: case 30201: case 30200: case 4021102: case 29103: case 28300: case 28200: case 29003: return 1e3; case 15200: case 15201: case 15800: case 15801: case 15802: case 15803: case 15804: case 15805: case 15806: case 15900: case 20300: case 21400: case 21401: case 21500: case 21501: case 21502: case 21503: case 21504: case 21600: case 26400: case 26500: case 26501: case 26502: case 26503: case 26600: case 26601: case 3010102: case 3010103: case 3010104: case 3010105: case 3010106: case 3010107: case 3010108: case 3010301: case 3010302: case 3010303: case 3010304: case 3020901: case 4021101: return 9999; default: return 0 } }, SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle = function (t, e) { var l = {}; if (100 === t) switch (e) { case 34800: case 34801: case 22200: case 28e3: case 28100: case 28200: case 28201: case 44400: l.color = l.strokeColor = "#0000ff"; break; case 42500: case 42700: l.color = l.strokeColor = "#00ff00"; break; case 42400: l.color = l.strokeColor = "#006600" }return l }, SuperMap.Plot.JBAlgoSymbolFactory.canPolylineConnect = function (t, e) { if (100 === t) switch (e) { case 16500: case 17400: case 17401: case 17500: case 17501: case 23400: case 23500: case 23600: case 23700: case 27300: case 28200: case 28300: case 28400: case 37600: case 37601: case 37700: case 39e3: case 40100: case 40101: case 42200: case 42400: case 2350001: case 3032e3: case 4010800: case 4010801: case 4011100: case 4011101: case 4022100: case 4022101: case 4022102: return !0; default: return !1 } }, SuperMap.Plot.JBAlgoSymbolFactory.canSetSubSymbol = function (t, e) { return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t, e).length > 0 || 100 === this.libID && (25200 === e || 3020901 === e || 23400 === e || 30800 === e || 26400 === e) }, SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol = function () { return !1 }, SuperMap.Plot.JBAlgoSymbolFactory.zoomCalSymbol = function (t, e) { if (100 !== t) return !1; switch (e) { case 28e3: case 28100: case 28200: case 28201: case 32300: return !0; default: return !1 } } }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.JBAlgoSymbolFactory = void 0; var o = l(224); e.JBAlgoSymbolFactory = o.JBAlgoSymbolFactory }]);
-/***/ }),
+ /***/
+}),
/* 2 */
-/***/ (function(module, exports) {
+/***/ (function (module, exports) {
/*!
*
@@ -345,11 +355,12 @@
* license: undefined
* version: v9.1.0
*
- */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=190)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.linePnt(i,o,e+.2*e),r=SuperMap.Plot.PlottingUtil.linePnt(o,i,e+.2*e),a=1.5*l,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,n),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o,r),u=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),c=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),P=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),S=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),h=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(S),g.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(y),b.push(u[u.length-1]),b.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],8*e/11),O=[];O.push(s.pntLeft),O.push(c[0]),O.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var w=[];w.push(v),w.push(c[c.length-1]),w.push(p.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var L=new SuperMap.Geometry.Point((s.pntLeft.x+s.pntRight.x)/2,(s.pntLeft.y+s.pntRight.y)/2),_=new SuperMap.Geometry.Point((P.x+M.x)/2,(P.y+M.y)/2),V=[];V.push(L),V.push(_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var A=SuperMap.Plot.PlottingUtil.radian(L,_)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.PlottingUtil.distance(L,_),E=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,L,_),x=SuperMap.Plot.PlottingUtil.circlePoint(E,.025*T,.025*T,A+90),j=SuperMap.Plot.PlottingUtil.circlePoint(E,.025*T,.025*T,A-90),Y=[];Y.push(x),Y.push(j),Y.push(_);var C={fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,Y,C);var I=new SuperMap.Geometry.Point((p.pntLeft.x+p.pntRight.x)/2,(p.pntLeft.y+p.pntRight.y)/2),B=new SuperMap.Geometry.Point((y.x+v.x)/2,(y.y+v.y)/2),R=[];R.push(I),R.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R);var G=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,I,B),N=SuperMap.Plot.PlottingUtil.circlePoint(G,.025*T,.025*T,A+90),D=SuperMap.Plot.PlottingUtil.circlePoint(G,.025*T,.025*T,A-90),k=[];k.push(N),k.push(D),k.push(B),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,k,C),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol6030601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6031001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=60*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l,u=new SuperMap.Geometry.Point(2*a.pts.x-r.pts.x,2*a.pts.y-r.pts.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,s),P=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,s-180);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&(this.computeSubSymbol(this.subSymbols[0],a.pts,p,s-90),this.computeSubSymbol(this.subSymbols[1],c,p,s-90),this.computeSubSymbol(this.subSymbols[2],P,p,s-90)),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol6031001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.05*SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.paraLine(t,e,!0),o=SuperMap.Plot.PlottingUtil.paraLine(t,e,!1),i=l[0],n=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,l[0],l[1]),r=[];r.push(i),r.push(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,l[0],l[1]),s=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,l[0],l[1]),p=[];p.push(a),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,l[0],l[1]),c=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,l[0],l[1]),P=[];P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,l[0],l[1]),h=l[1],y=[];y.push(S),y.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=o[0],g=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,o[0],o[1]),b=[];b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,o[0],o[1]),m=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,o[0],o[1]),d=[];d.push(M),d.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,o[0],o[1]),O=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,o[0],o[1]),U=[];U.push(v),U.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var w=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,o[0],o[1]),L=o[1],_=[];_.push(w),_.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var V=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,t[0],t[1]),A=t[0].clone(),T=[];T.push(V),T.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var E=SuperMap.Plot.PlottingUtil.radian(V,A)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.distance(V,A),j=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,V,A),Y=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E+90),C=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E-90),I=[];I.push(Y),I.push(C),I.push(V);var B={fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,B);var R=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,t[1],t[0]),G=t[1].clone(),N=[];N.push(R),N.push(G),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N);var D=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,R,G),k=SuperMap.Plot.PlottingUtil.circlePoint(D,.025*x,.025*x,E+90),z=SuperMap.Plot.PlottingUtil.circlePoint(D,.025*x,.025*x,E-90),F=[];F.push(k),F.push(z),F.push(R),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,F,B),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol6030501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030107=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="练",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030107=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030106=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="沙",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030106=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030105=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="石",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030105=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030104=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="催",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030104=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030103=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="砌",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="浇",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="挖",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5020802=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,a=0;if(0===t)r=(e.x-i.x)/n,this.scaleValues[2]=r,a=(e.y-i.y)/n,this.scaleValues[3]=a;else if(1===t){r=this.scaleValues[2],a=this.scaleValues[3];var s=new SuperMap.Geometry.Point(i.x+n*r,i.y+n*a),p=SuperMap.Plot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMap.Plot.AlgoSymbol5020802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035205=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue()/3);var o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x-4*n,r.y),s=new SuperMap.Geometry.Point(r.x-4*n,r.y-n/2),p=[];p.push(a),p.push(s);var u={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,u);var c=new SuperMap.Geometry.Point(r.x-4*n,r.y),P=new SuperMap.Geometry.Point(r.x-n,r.y),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,u),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,0);var h=new SuperMap.Geometry.Point(r.x+4*n,r.y),y=new SuperMap.Geometry.Point(r.x+n,r.y),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,u);var g=new SuperMap.Geometry.Point(r.x+4*n,r.y+n/2),b=new SuperMap.Geometry.Point(r.x+4*n,r.y),M=[];M.push(g),M.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,u),this.addScalePoint(r,0);var m=SuperMap.Plot.PlottingUtil.circlePoint(r,2*n,2*n,90);this.addScalePoint(m,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,r=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[0]=n,r=(e.y-i.y)/o,this.scaleValues[1]=r),1===t){n=this.scaleValues[0],r=this.scaleValues[1];var a=new SuperMap.Geometry.Point(i.x+o*n,i.y+o*r),s=SuperMap.Plot.PlottingUtil.distance(a,e);this.scaleValues[2]=s/2/o}}}}]),e}();SuperMap.Plot.AlgoSymbol5035205=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035203=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);t.splice(0,2),t.unshift(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=l*this.scaleValues[4],i=l*this.scaleValues[5],n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o,t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.radian(r.pts,n.pts)*SuperMap.Plot.PlottingUtil.RTOD,s=SuperMap.Plot.PlottingUtil.distance(n.pts,r.pts),p=r.pts.clone(),u=new SuperMap.Geometry.Point(0,.1*s),c=new SuperMap.Geometry.Point(.4*s,.1*s),P=new SuperMap.Geometry.Point(.4*s,-.1*s),S=new SuperMap.Geometry.Point(0,-.1*s),h=SuperMap.Plot.PlottingUtil.coordinateTrans(p,u,a),y=SuperMap.Plot.PlottingUtil.coordinateTrans(p,c,a),f=SuperMap.Plot.PlottingUtil.coordinateTrans(p,P,a),g=SuperMap.Plot.PlottingUtil.coordinateTrans(p,S,a),b=[];b.push(h),b.push(y),b.push(f),b.push(g),b.push(h);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var M=new SuperMap.Geometry.Point(.05*s,0),m=new SuperMap.Geometry.Point(.15*s,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(p,M,a),v=SuperMap.Plot.PlottingUtil.coordinateTrans(p,m,a),O=[];O.push(d),O.push(v);var U={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,U);var w=new SuperMap.Geometry.Point(.1*s,.05*s),L=new SuperMap.Geometry.Point(.1*s,-.05*s),_=SuperMap.Plot.PlottingUtil.coordinateTrans(p,w,a),V=SuperMap.Plot.PlottingUtil.coordinateTrans(p,L,a),A=[];A.push(_),A.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,U);var T=new SuperMap.Geometry.Point(.25*s,.05*s),E=new SuperMap.Geometry.Point(.35*s,.05*s),x=SuperMap.Plot.PlottingUtil.coordinateTrans(p,T,a),j=SuperMap.Plot.PlottingUtil.coordinateTrans(p,E,a),Y=[];Y.push(x),Y.push(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y,U);var C=new SuperMap.Geometry.Point(.3*s,.05*s),I=new SuperMap.Geometry.Point(.3*s,-.05*s),B=SuperMap.Plot.PlottingUtil.coordinateTrans(p,C,a),R=SuperMap.Plot.PlottingUtil.coordinateTrans(p,I,a),G=[];G.push(B),G.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,G,U);var N=new SuperMap.Geometry.Point(.25*s,-.05*s),D=new SuperMap.Geometry.Point(.35*s,-.05*s),k=SuperMap.Plot.PlottingUtil.coordinateTrans(p,N,a),z=SuperMap.Plot.PlottingUtil.coordinateTrans(p,D,a),F=[];F.push(k),F.push(z),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,F,U);var K=new SuperMap.Geometry.Point(.4*s,0),W=new SuperMap.Geometry.Point(.8*s,0),J=SuperMap.Plot.PlottingUtil.coordinateTrans(p,K,a),q=SuperMap.Plot.PlottingUtil.coordinateTrans(p,W,a),Z=[];Z.push(J),Z.push(q),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Z,U);var X=new SuperMap.Geometry.Point(.7*s,.025*s),H=new SuperMap.Geometry.Point(.7*s,-.025*s),Q=SuperMap.Plot.PlottingUtil.coordinateTrans(p,X,a),$=SuperMap.Plot.PlottingUtil.coordinateTrans(p,H,a),tt=[];tt.push(q),tt.push(Q),tt.push($);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,tt,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0,fill:!0}),n.pts.isScalePoint=!0,n.pts.tag=this.scalePoints.length,this.scalePoints.push(n.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol5035203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=60*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l;if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],a.pts,p,s-90),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol5035202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue());var o=l*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,o);if(-1!==i.index){var n=t[0].clone(),r=i.pt,a=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,s=[];s.push(i.pt);for(var p=i.index+1;p<e.length;p++)s.push(e[p]);this.addArrow(s);var u=.3*o,c=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(2/3*.5,t[0],i.pt);if(this.subSymbols.length>0){this.computeSubSymbol(this.subSymbols[0],c,u,a);var P=SuperMap.Plot.PlottingUtil.circlePoint(t[0],2.1*u,2.1*u,a),S=SuperMap.Plot.PlottingUtil.circlePoint(t[0],3*u,3*u,a),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.2*u,.2*u,a),f=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*u,.05*u,a+90),g=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*u,.05*u,a+270),b=[];b.push(y),b.push(f),b.push(g);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0})}var M=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90);this.addScalePoint(M,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=l[0].clone(),n=e.clone(),r=SuperMap.Plot.PlottingUtil.distance(n,i);if(0===t){var a=r/o;a<=.06&&(a=.06),a>=.15&&(a=.15),this.scaleValues[1]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol5035201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0].clone(),o=t[1].clone();e=2==t.length?o:t[2].clone();var i=new SuperMap.Geometry.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMap.Plot.PlottingUtil.distance(i,e),r=.5*n,a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,e),s=a.pntLeft,p=a.pntRight,u=!(i.x>e.x),c=[];u?(c.push(l),c.push(s)):(c.push(l),c.push(p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var P=[];u?(P.push(o),P.push(p)):(P.push(o),P.push(s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S,h,y,f,g,b=.37*n,M=SuperMap.Plot.PlottingUtil.linePnt(i,e,b),m=.09*n,d=[];d.push(M),d.push(new SuperMap.Geometry.Point(M.x,M.y+m)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,d,{lineTypeLimit:!0}),u?(h=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,i,M)).pntLeft,y=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*m,i,M)).pntLeft,f=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,h,y)).pntRight,g=S.pntLeft):(h=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,i,M)).pntRight,y=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*m,i,M)).pntRight,f=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,h,y)).pntRight,g=S.pntLeft);var v=[];v.push(h),v.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0});var O=[];O.push(f),O.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,{lineTypeLimit:!0}),this.addText("催",M,m,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol5034801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034203=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=.5*l,i=l*this.getSubSymbolScaleValue()*1.5,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o,e);if(n.bfind){var r=n.pts.clone(),a=e[n.index].clone(),s=e[n.index+1].clone(),p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,p+90),c=[];c.push(n.pts),c.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0});var P=SuperMap.Plot.PlottingUtil.radian(r,u)*SuperMap.Plot.PlottingUtil.RTOD,S=new SuperMap.Geometry.Point(-.2*i,.05*i),h=new SuperMap.Geometry.Point(-.2*i,-.05*i),y=SuperMap.Plot.PlottingUtil.coordinateTrans(u,S,P),f=SuperMap.Plot.PlottingUtil.coordinateTrans(u,h,P),g=[];g.push(u),g.push(y),g.push(f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{lineTypeLimit:!0,fillLimit:!0,fill:!0});var b=new SuperMap.Geometry.Point(0,-.6*i),M=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,p);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,i,p-90),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol5034203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=o*this.scaleValues[2],a=o*this.scaleValues[3],s=new SuperMap.Geometry.Point(l.x+r,l.y+a),p=o*n,u=new SuperMap.Geometry.Point(s.x-.5*p,s.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var c=new SuperMap.Geometry.Point(s.x+.5*p,s.y),P=SuperMap.Plot.PlottingUtil.circlePoint(c,.3*p,.3*p,-90),S=SuperMap.Plot.PlottingUtil.circlePoint(c,.5*p,.5*p,90),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*p,.2*p,-90),f=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,0),g=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,180),b=[];b.push(y),b.push(f),b.push(g);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var M=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(M,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===n)return;var r=0,a=0,s=0,p=0;if(0===t){r=n*(s=this.scaleValues[2]),a=n*(p=this.scaleValues[3]);var u=new SuperMap.Geometry.Point(i.x+r,i.y+a),c=SuperMap.Plot.PlottingUtil.distance(e,u);this.scaleValues[0]=c/n}else 1===t&&(s=(r=e.x-i.x)/n,p=(a=e.y-i.y)/n,this.scaleValues[2]=s,this.scaleValues[3]=p)}}}]),e}();SuperMap.Plot.AlgoSymbol5034202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=o*this.scaleValues[2],a=o*this.scaleValues[3],s=new SuperMap.Geometry.Point(l.x+r,l.y+a),p=o*n,u=new SuperMap.Geometry.Point(s.x-.5*p,s.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var c=new SuperMap.Geometry.Point(s.x+.5*p,s.y),P=SuperMap.Plot.PlottingUtil.circlePoint(c,.5*p,.5*p,-90),S=SuperMap.Plot.PlottingUtil.circlePoint(c,.3*p,.3*p,90),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.2*p,.2*p,90),f=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*p,.05*p,0),g=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*p,.05*p,180),b=[];b.push(y),b.push(f),b.push(g);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var M=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(M,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===n)return;var r=0,a=0,s=0,p=0;if(0===t){s=n*(r=this.scaleValues[2]),p=n*(a=this.scaleValues[3]);var u=new SuperMap.Geometry.Point(i.x+s,i.y+p),c=SuperMap.Plot.PlottingUtil.distance(e,u);this.scaleValues[0]=c/n}else 1===t&&(r=(s=e.x-i.x)/n,a=(p=e.y-i.y)/n,this.scaleValues[2]=r,this.scaleValues[3]=a)}}}]),e}();SuperMap.Plot.AlgoSymbol5034201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,i),s=[];s.push(t[0]),s.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(a),p.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),P=[];P.push(u.pntRight),P.push(u.pntLeft);var S={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,S);var h=[];h.push(c.pntRight),h.push(c.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,S);var y=[];y.push(t[0]),y.push(r);var f=[];f.push(a),f.push(t[1]);var g=SuperMap.Plot.PlottingUtil.paraLine(y,i,!0),b=SuperMap.Plot.PlottingUtil.paraLine(y,i,!1),M=SuperMap.Plot.PlottingUtil.paraLine(f,i,!0),m=SuperMap.Plot.PlottingUtil.paraLine(f,i,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,2*i,d),this.addScalePoint(u.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.48&&(i=.48),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol5033803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033802=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,i),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),u=[];u.push(s.pntRight),u.push(s.pntLeft);var c={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,c);var P=[];P.push(p.pntRight),P.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,c);var S=[];S.push(t[0]),S.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=[];h.push(a),h.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,2*i,y-90),this.addScalePoint(s.pntLeft,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.48&&(i=.48),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol5033802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=.5*l,i=l*this.getSubSymbolScaleValue()/1.2,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o,e);if(n.bfind){var r=n.pts.clone(),a=e[n.index].clone(),s=e[n.index+1].clone(),p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,p+90),c=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,p+270),P=[];P.push(n.pts),P.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0});var S=SuperMap.Plot.PlottingUtil.radian(r,u)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,i,i,S+30),y=[];y.push(u),y.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,g=new SuperMap.Geometry.Point(-.2*i,.05*i),b=new SuperMap.Geometry.Point(-.2*i,-.05*i),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,f),m=SuperMap.Plot.PlottingUtil.coordinateTrans(h,b,f),d=[];d.push(h),d.push(M),d.push(m);var v={fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,v);var O=SuperMap.Plot.PlottingUtil.circlePoint(u,i,i,S+330),U=[];U.push(u),U.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var w=SuperMap.Plot.PlottingUtil.radian(u,O)*SuperMap.Plot.PlottingUtil.RTOD,L=SuperMap.Plot.PlottingUtil.coordinateTrans(O,g,w),_=SuperMap.Plot.PlottingUtil.coordinateTrans(O,b,w),V=[];V.push(O),V.push(L),V.push(_),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,v),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,i,p+270),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol5033001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5032003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(90),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=2*o}var i=l*this.scaleValues[0],n=this.scaleValues[1],r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(a.bfind){var s=a.pts.clone(),p=e[a.index].clone(),u=e[a.index+1].clone(),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,c+n),S=[];S.push(a.pts),S.push(P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var h=SuperMap.Plot.PlottingUtil.radian(s,P)*SuperMap.Plot.PlottingUtil.RTOD,y=new SuperMap.Geometry.Point(-.2*r,.05*r),f=new SuperMap.Geometry.Point(-.2*r,-.05*r),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,h),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,h),M=[];M.push(P),M.push(g),M.push(b);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var m=.3*r,d=.6*r,v=i-d;v<0&&(v=0);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(v,e);if(O.bfind){var U=[];U.push(O.pts);for(var w=O.index;w>=0;w--)U.push(e[w]);var L=[];L.push(O.pts);for(var _=O.index+1;_<e.length;_++)L.push(e[_]);var V=.6*m,A=[];if(U.length>1){var T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,U);if(T.bfind){(A=[]).push(T.pts);for(var E=T.index+1;E<U.length;E++)A.push(U[E]);U=[],A.length>1&&(U=U.concat(A))}}if(U.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),L.length>1){var x=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,L);if(x.bfind){(A=[]).push(x.pts);for(var j=x.index+1;j<L.length;j++)A.push(L[j]);L=[],A.length>1&&(L=L.concat(A))}}var Y=i+d;Y>l&&(Y=l),Y=l-Y;for(var C=[],I=L.length-1;I>=0;I--)C.push(L[I]);var B=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(Y,C);if(B.bfind){var R=[];R.push(B.pts);for(var G=B.index;G>=0;G--)R.push(C[G]);var N=[];N.push(B.pts);for(var D=B.index+1;D<C.length;D++)N.push(C[D]);if(R.length>1){var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,R);if(k.bfind){(A=[]).push(k.pts);for(var z=k.index+1;z<R.length;z++)A.push(R[z]);R=[],A.length>1&&(R=R.concat(A))}}if(R.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R),N.length>1){var F=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,N);if(F.bfind){(A=[]).push(F.pts);for(var K=F.index+1;K<N.length;K++)A.push(N[K]);N=[],A.length>1&&(N=N.concat(A))}}if(N.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var W=0;W<this.subSymbols[0].symbolData.innerCells.length;W++)34===this.subSymbols[0].symbolData.innerCells[W].type&&this.subSymbols[0].symbolData.innerCells.splice(W,1);this.computeSubSymbol(this.subSymbols[0],O.pts,1.2*m,c-90),this.computeSubSymbol(this.subSymbols[1],B.pts,1.2*m,c-90)}this.addScalePoint(a.pts,0),this.addScalePoint(P,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0>t||1<t)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=[],r=0;r<o.length;r++)n.push(o[r]);for(var a=-1,s=new SuperMap.Geometry.Point(0,0),p=0,u=0;u<n.length-1;u++){var c=[];c.push(n[u]),c.push(n[u+1]);var P=SuperMap.Plot.PlottingUtil.projectPoint(e,n[u],n[u+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,c).isOnPolyLine){var S=SuperMap.Plot.PlottingUtil.distance(e,P);-1===a?(a=u,s=P,p=S):p>S&&(a=u,s=P,p=S)}}if(-1===a||a>n.length-1)return;for(var h=0,y=0;y<a;y++){var f=o[y].clone(),g=o[y+1].clone();h+=SuperMap.Plot.PlottingUtil.distance(f,g)}var b=o[a].clone();if((h+=SuperMap.Plot.PlottingUtil.distance(b,s))<0||h>i)return;this.scaleValues[0]=h/i}if(1===t){var M=i*this.scaleValues[0],m=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(M,o);if(!m.bfind)return;var d=m.pts.clone(),v=new SuperMap.Geometry.Point(o[m.index].x,o[m.index].y),O=new SuperMap.Geometry.Point(o[m.index+1].x,o[m.index+1].y),U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,w=SuperMap.Plot.PlottingUtil.radian(d,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[1]=w-U;var L=SuperMap.Plot.PlottingUtil.distance(d,e);this.scaleValues[2]=L/i}}}}]),e}();SuperMap.Plot.AlgoSymbol5032003=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5031401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=.1*l,i=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],o),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,t[0],i),r=n.pntRight,a=n.pntLeft,s=[];s.push(r),s.push(t[0]),s.push(a);var p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(s);p=SuperMap.Plot.PlottingUtil.clearSamePts(p);var u={lineColorLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0,strokeColor:"#0000ff",color:"#0000ff"};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,u);var c=SuperMap.Plot.PlottingUtil.paraLine(s,e,!1),P=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,u),this.addScalePoint(r,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=2*SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i<.4&&(i=.4),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol5031401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=e[0],S=e[1],h=e[e.length-2],y=e[e.length-1],f=.3*a,g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,S,P),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,h,y),M=g.pntLeft,m=b.pntLeft,d=[];d.push(P),d.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(y),v.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMap.Plot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0],l*this.scaleValues[0],r+90);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol5030301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=1.5*this.getDefaultSubSymbolSize();this.subSymbolScaleValue=i/o,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,o*n,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000FF",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000FF",this.components[u].style.opacity=1;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.addScalePoint(p);var c=SuperMap.Plot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,a=0;if(0===t)r=(e.x-i.x)/n,this.scaleValues[2]=r,a=(e.y-i.y)/n,this.scaleValues[3]=a;else if(1===t){r=this.scaleValues[2],a=this.scaleValues[3];var s=new SuperMap.Geometry.Point(i.x+n*r,i.y+n*a),p=SuperMap.Plot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMap.Plot.AlgoSymbol5022301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(90));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=l*i,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=n*l,P=u,S=new SuperMap.Geometry.Point(c,-.5*c),h=new SuperMap.Geometry.Point(c,.5*c),y=new SuperMap.Geometry.Point(-c,.5*c),f=new SuperMap.Geometry.Point(-c,-.5*c),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,S,r),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,h,r),M=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,r),m=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,b,M,m,g]);var d=new SuperMap.Geometry.Point(.5*c,.5*c),v=new SuperMap.Geometry.Point(.5*c,-.5*c),O=SuperMap.Plot.PlottingUtil.coordinateTrans(P,v,r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(P,d,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,U]);var w=new SuperMap.Geometry.Point(0,.5*c),L=new SuperMap.Geometry.Point(0,-.5*c),_=SuperMap.Plot.PlottingUtil.coordinateTrans(P,w,r),V=SuperMap.Plot.PlottingUtil.coordinateTrans(P,L,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[_,V]);var A=new SuperMap.Geometry.Point(c,0),T=new SuperMap.Geometry.Point(2*c,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(P,A,r),x=SuperMap.Plot.PlottingUtil.coordinateTrans(P,T,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E,x]);var j=new SuperMap.Geometry.Point(2*c,.15*c),Y=new SuperMap.Geometry.Point(2*c,-.15*c),C=new SuperMap.Geometry.Point(2.6*c,0),I=SuperMap.Plot.PlottingUtil.coordinateTrans(P,j,r),B=SuperMap.Plot.PlottingUtil.coordinateTrans(P,Y,r),R=SuperMap.Plot.PlottingUtil.coordinateTrans(P,C,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[I,B,R],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#FF0000",strokeOpacity:1,color:"#FF0000",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0});var G,N=[],D=[];for(G=0;G<=p;G++)N.push(e[G]);for(N.push(u),D.push(u),G=p+1;G<e.length;G++)D.push(e[G]);var k=1.2*c;if(a>k){var z=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a-k,N);if(z.bfind){var F=z.pts,K=z.index,W=[];for(G=0;G<=K;G++)W.push(N[G]);W.push(F),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,W)}}if(l-a>k){var J=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(k,D);if(J.bfind){var q=J.pts,Z=J.index;for((W=[]).push(q),G=Z+1;G<D.length;G++)W.push(D[G]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,W)}}this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(x),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=e.clone(),r=-1,a=0,s=0;s<o.length-1;s++){var p=[];p.push(o[s]),p.push(o[s+1]);var u=SuperMap.Plot.PlottingUtil.projectPoint(n,o[s],o[s+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(u,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(n,u);-1===r?(r=s,a=c):a>c&&(r=s,a=c)}}if(-1===r)return SuperMap.Plot.PlottingUtil.distance(n,o[0])>SuperMap.Plot.PlottingUtil.distance(n,o[o.length-1])?void(r=o.length-1):void(r=0);var P=0;if(0===r)P=SuperMap.Plot.PlottingUtil.distance(o[0],u);else for(var S=0;S<r;S++)P+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if(P<0||P>i)return;this.scaleValues[0]=P/i}else if(1===t){var h=this.scaleValues[0]*i,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,o);if(!y.bfind)return;var f=y.pts,g=SuperMap.Plot.PlottingUtil.distance(f,e)/i;g>.5&&(g=.5),this.scaleValues[1]=g;var b=SuperMap.Plot.PlottingUtil.radian(f,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}]),e}();SuperMap.Plot.AlgoSymbol5022002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(180));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=l*i,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=n*l*.5,P=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(.5*c,0),h=new SuperMap.Geometry.Point(0,c),y=[],f=SuperMap.Plot.PlottingUtil.coordinateTrans(u,P,r);y.push(f);var g=SuperMap.Plot.PlottingUtil.coordinateTrans(u,S,r);y.push(g);var b=SuperMap.Plot.PlottingUtil.coordinateTrans(u,h,r);y.push(b),this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,y);var M=new SuperMap.Geometry.Point(0,-2*c),m=new SuperMap.Geometry.Point(.15*c,-1.6*c),d=new SuperMap.Geometry.Point(-.15*c,-1.6*c),v=SuperMap.Plot.PlottingUtil.coordinateTrans(u,M,r),O=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(u,d,r),w=[];w.push(v),w.push(O),w.push(U);var L={surroundLineFlag:!1,fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,L);var _=new SuperMap.Geometry.Point(0,-c),V=SuperMap.Plot.PlottingUtil.coordinateTrans(u,_,r);(w=[]).push(V),w.push(v.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,L);var A,T=[],E=[];for(A=0;A<=p;A++)T.push(e[A]);for(T.push(u),E.push(u),A=p+1;A<e.length;A++)E.push(e[A]);var x=1.2*c;if(a>x){var j=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a-x,T);if(j.bfind){var Y=j.pts,C=j.index,I=[];for(A=0;A<=C;A++)I.push(T[A]);I.push(Y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}}if(l-a>x){var B=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(x,E);if(B.bfind){var R=B.pts,G=B.index;for((I=[]).push(R),A=G+1;A<E.length;A++)I.push(E[A]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}}R=void 0===R?e[e.length-1]:R,Y=void 0===Y?e[0]:Y;var N=SuperMap.Plot.PlottingUtil.radian(Y,R)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("ZD0",u,x,N+90),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(v),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=e.clone(),r=-1,a=0,s=0;s<o.length-1;s++){var p=[];p.push(o[s]),p.push(o[s+1]);var u=SuperMap.Plot.PlottingUtil.projectPoint(n,o[s],o[s+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(u,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(n,u);-1===r?(r=s,a=c):a>c&&(r=s,a=c)}}if(-1===r)return SuperMap.Plot.PlottingUtil.distance(n,o[0])>SuperMap.Plot.PlottingUtil.distance(n,o[o.length-1])?void(r=o.length-1):void(r=0);var P=0;if(0===r)P=SuperMap.Plot.PlottingUtil.distance(o[0],u);else for(var S=0;S<r;S++)P+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if(P<0||P>i)return;this.scaleValues[0]=P/i}else if(1===t){var h=this.scaleValues[0]*i,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,o);if(!y.bfind)return;var f=y.pts,g=SuperMap.Plot.PlottingUtil.distance(f,e)/i;g>.5&&(g=.5),this.scaleValues[1]=g;var b=SuperMap.Plot.PlottingUtil.radian(f,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}]),e}();SuperMap.Plot.AlgoSymbol5022001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5021803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125),this.scaleValues.push(0));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=this.getDefaultSubSymbolSize()/i;(n>.3||n<=0)&&(n=.3);var r=1.5*n;2===t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+r),l=this.scaleValues[2],o=this.scaleValues[3]):(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+r),l=this.scaleValues[3],o=this.scaleValues[4]);var a=i*l,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.pts,u=i*o;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(u,e)).bfind){var c=s.index,P=s.pts,S=new SuperMap.Geometry.Point(p.x,p.y),h=new SuperMap.Geometry.Point(P.x,P.y),y=SuperMap.Plot.PlottingUtil.radian(S,h)*SuperMap.Plot.PlottingUtil.RTOD,f=[];f.push(P);for(var g=c+1;g<e.length;g++)f.push(e[g]);this.addArrow(f);var b=SuperMap.Plot.PlottingUtil.distance(S,h);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,y),this.scalePoints=[],this.addScalePoint(P);var M=SuperMap.Plot.PlottingUtil.circlePoint(S,b/2,b/2,y+90);this.addScalePoint(M),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=0,r=0;if(2===l.length?(n=this.scaleValues[2],r=this.scaleValues[3]):(n=this.scaleValues[3],r=this.scaleValues[4]),0===t){for(var a=r-n,s=e.clone(),p=[],u=0;u<o.length;u++)p.push(o[u].clone());for(var c,P=-1,S=0,h=0;h<p.length-1;h++){var y=[];y.push(p[h]),y.push(p[h+1]);var f=SuperMap.Plot.PlottingUtil.projectPoint(s,p[h],p[h+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(f,y).isOnPolyLine){var g=SuperMap.Plot.PlottingUtil.distance(s,f);-1===P?(P=h,c=f,S=g):S>g&&(P=h,c=f,S=g)}}if(-1===P||P>p.length-1)return;for(var b=0,M=0;M<P;M++)b+=SuperMap.Plot.PlottingUtil.distance(o[M],o[M+1]);if((b+=SuperMap.Plot.PlottingUtil.distance(o[P],c))<0||b>i)return;var m=b/i;if(m>.7||m-a<0)return;2===l.length?(this.scaleValues[2]=m-a,this.scaleValues[3]=m):(this.scaleValues[3]=m-a,this.scaleValues[4]=m)}else if(1===t){var d=i*n,v=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d,o);if(!v.bfind)return;var O=v.pts,U=(2*SuperMap.Plot.PlottingUtil.distance(O,e)+d)/i;if(.7<U)return;2===l.length?this.scaleValues[3]=U:this.scaleValues[4]=U}}}}]),e}();SuperMap.Plot.AlgoSymbol5021803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5010401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.radian(o,i)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+90),a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,n),p=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,n),u=[];u.push(p),u.push(a),u.push(r),u.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+90),P=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+270),S=SuperMap.Plot.PlottingUtil.circlePoint(c,l,l,n+180),h=SuperMap.Plot.PlottingUtil.circlePoint(P,l,l,n+180);(u=[]).push(S),u.push(c),u.push(P),u.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var y=.4*SuperMap.Plot.PlottingUtil.distance(o,i),f=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),g=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.addText("JZ",f,y,g),this.addScalePoint(r),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol5010401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=SuperMap.Plot.PlottingUtil.circlePoint(l,e,e,i+90),r=SuperMap.Plot.PlottingUtil.circlePoint(l,e,e,i+270),a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,i+90),s=r,p=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,i+270),u=n,c=a,P=SuperMap.Plot.PlottingUtil.distance(u,c),S=SuperMap.Plot.PlottingUtil.distance(s,p),h=SuperMap.Plot.PlottingUtil.distance(u,s),y=SuperMap.Plot.PlottingUtil.distance(c,p),f=SuperMap.Plot.PlottingUtil.linePnt(u,c,.4*P),g=SuperMap.Plot.PlottingUtil.linePnt(u,c,.6*P),b=SuperMap.Plot.PlottingUtil.linePnt(u,s,.4*h),M=SuperMap.Plot.PlottingUtil.linePnt(u,s,.6*h),m=SuperMap.Plot.PlottingUtil.linePnt(c,p,.4*y),d=SuperMap.Plot.PlottingUtil.linePnt(c,p,.6*y),v=SuperMap.Plot.PlottingUtil.linePnt(s,p,.2*S),O=SuperMap.Plot.PlottingUtil.linePnt(s,p,.25*S),U=SuperMap.Plot.PlottingUtil.linePnt(s,p,.75*S),w=SuperMap.Plot.PlottingUtil.linePnt(s,p,.8*S),L=[];L.push(g),L.push(c),L.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L);var _=[];_.push(d),_.push(p),_.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var V=[];V.push(U),V.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var A=[];A.push(v),A.push(s),A.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var T=[];T.push(b),T.push(u),T.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var E=SuperMap.Plot.PlottingUtil.radian(f,g)*SuperMap.Plot.PlottingUtil.RTOD,x=new SuperMap.Geometry.Point((f.x+g.x)/2,(f.y+g.y)/2),j=SuperMap.Plot.PlottingUtil.distance(f,g);this.addText("警",x,j,E),this.addScalePoint(n,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.controlPoints.length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol4030401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4030303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="疏",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol4030301),e}();SuperMap.Plot.AlgoSymbol4030303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4030302=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="劝",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol4030301),e}();SuperMap.Plot.AlgoSymbol4030302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="标",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);var P=SuperMap.Plot.PlottingUtil.polylineDistance(p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var S=this.subText,h=.15*P,y=new SuperMap.Geometry.Point(i.endPt.x+h/2,i.endPt.y-h/2),f=r;this.addText(S,y,h,f);var g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),b=SuperMap.Plot.PlottingUtil.circlePoint(g.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(b,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol4030301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x+1,l.y),i=[];t.push(t[0].clone());for(var n=0;n<t.length-1;n++){var r=SuperMap.Plot.PlottingUtil.intersectLines(l,o,t[n],t[n+1]);r.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[n],t[n+1])&&i.push(r.intersectPoint))}if(!(0>=i.length)){var a=i[0].clone(),s=i[0].clone();for(n=0;n<i.length;n++)a.x>i[n].x&&(a=i[n].clone()),s.x<i[n].x&&(s=i[n].clone());var p=SuperMap.Plot.PlottingUtil.distance(s,a),u=new SuperMap.Geometry.Point(l.x-.25*p,a.y),c=e*this.scaleValues[0],P=e*this.scaleValues[0],S=P+c,h=new SuperMap.Geometry.Point(u.x,u.y+S),y=new SuperMap.Geometry.Point(h.x+c,h.y),f=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,y),g=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,h);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[g,f]);var b=new SuperMap.Geometry.Point(u.x,u.y+.8*P),M=new SuperMap.Geometry.Point(u.x-P,u.y-P),m=new SuperMap.Geometry.Point(u.x+P,u.y-P),d=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,b.clone()),v=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,M.clone()),O=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,m.clone()),U=[];U.push(d),U.push(v),U.push(O),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,U);var w=new SuperMap.Geometry.Point(u.x-.5*P,u.y-P),L=new SuperMap.Geometry.Point(M.x,M.y-2*c),_=new SuperMap.Geometry.Point(u.x+.5*P,u.y-P),V=new SuperMap.Geometry.Point(m.x,m.y-2*c),A=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,w),T=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,L),E=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,_),x=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,V),j=[];j.push(A),j.push(T);var Y=[];Y.push(E),Y.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y),this.addText("踏",l,2*P,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol3002501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=[],h=new SuperMap.Geometry.Point(r.x-n/2,c.y);h.x<=P.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var y=new SuperMap.Geometry.Point(r.x+n/2,P.y);y.x<=P.x&&y.x>=c.x&&((S=[]).push(P),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S)),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,n,0),this.addScalePoint(r,0);var f=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3002005=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=this.scaleValues[0],n=this.scaleValues[1],r=l*this.scaleValues[2],a=new SuperMap.Geometry.Point(o.x+l*i,o.y+l*n),s=new SuperMap.Geometry.Point(a.x+1,a.y),p=[];e.push(e[0].clone());for(var u=0;u<e.length-1;u++){var c=SuperMap.Plot.PlottingUtil.intersectLines(a,s,e[u],e[u+1]);c.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(c.intersectPoint,e[u],e[u+1])&&p.push(c.intersectPoint))}if(0>=p.length)this.finish();else{var P=p[0].clone(),S=p[0].clone();for(u=0;u<p.length;u++)P.x>p[u].x&&(P=p[u].clone()),S.x<p[u].x&&(S=p[u].clone());var h=[],y=new SuperMap.Geometry.Point(a.x-r/2,P.y);y.x<=S.x&&y.x>=P.x&&((h=[]).push(P),h.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h));var f=new SuperMap.Geometry.Point(a.x+r/2,S.y);f.x<=S.x&&f.x>=P.x&&((h=[]).push(S),h.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h));var g=SuperMap.Plot.PlottingUtil.radian(y,f)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("火",a,r,g),this.addScalePoint(a,0);var b=SuperMap.Plot.PlottingUtil.circlePoint(a,r/2,r/2,90);this.addScalePoint(b,1),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3002004=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=new SuperMap.Geometry.Point(r.x-n/2,c.y),h=new SuperMap.Geometry.Point(r.x+n/2,P.y),y=SuperMap.Plot.PlottingUtil.radian(S,h)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("HX",r,n,y),this.addScalePoint(r,0);var f=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3002002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="震",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol3002001=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001302=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),o=SuperMap.Plot.PlottingUtil.clonePoints(t);o.splice(t.length-1,1),o.push(l);var i=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!0),n={lineColorLimit:!0,strokeColor:"#00C000",color:"#00C000"},r=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n);var a=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),s=new SuperMap.Geometry.Point(a.x,a.y),p=new SuperMap.Geometry.Point(a.x,a.y);s=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,s),p=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,p);var u=[];u.push(s),u.push(t[t.length-1]),u.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol3001302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.5),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],i*l),r=SuperMap.Plot.PlottingUtil.linePnt(n,t[0],2*e),a=SuperMap.Plot.PlottingUtil.linePnt(n,t[1],2*e),s=[];s.push(t[0]),s.push(r);var p=[];p.push(a),p.push(o);var u=SuperMap.Plot.PlottingUtil.paraLine(s,.25*e,!0),c=SuperMap.Plot.PlottingUtil.paraLine(s,.25*e,!1),P=SuperMap.Plot.PlottingUtil.paraLine(p,.25*e,!0),S=SuperMap.Plot.PlottingUtil.paraLine(p,.25*e,!1);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.subSymbols.length>0){var h=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,y=.5*SuperMap.Plot.PlottingUtil.distance(r,a);this.computeSubSymbol(this.subSymbols[0],n,y,h+180)}var f=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),g=new SuperMap.Geometry.Point(f.x,f.y),b=new SuperMap.Geometry.Point(f.x,f.y);g=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,g),b=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,b);var M=[];M.push(g),M.push(t[t.length-1]),M.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol3001301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001105=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addText("盗",a,s,0),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3001105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001104=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.addText("私",a,s,0),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3001104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3001103=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="骚",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3001101),e}();SuperMap.Plot.AlgoSymbol3001103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3001102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="暴",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3001101),e}();SuperMap.Plot.AlgoSymbol3001102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(-.04),l.scaleValues.push(-.175),l.scaleValues.push(.1)),l.subText="集",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==e){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.addText(this.subText,l,.3*e,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol3001101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000809=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],n,a,r+180),this.computeSubSymbol(this.subSymbols[1],n,.5*a,r+180));for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000809=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000808=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r+180);var s=[],p=new SuperMap.Geometry.Point(0,0);p.x=-a/6,p.y=a/3;var u=new SuperMap.Geometry.Point(0,0),c=SuperMap.Plot.PlottingUtil.rotateAngle(u,r*SuperMap.Plot.PlottingUtil.DTOR,p),P=new SuperMap.Geometry.Point(c.x+n.x,c.y+n.y);p.x=a/6,p.y=a/3;var S=SuperMap.Plot.PlottingUtil.rotateAngle(u,r*SuperMap.Plot.PlottingUtil.DTOR,p),h=new SuperMap.Geometry.Point(S.x+n.x,S.y+n.y);p.x=0,p.y=-a/3;var y=SuperMap.Plot.PlottingUtil.rotateAngle(u,r*SuperMap.Plot.PlottingUtil.DTOR,p),f=new SuperMap.Geometry.Point(y.x+n.x,y.y+n.y);s.push(P),s.push(h),s.push(f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{fillLimit:!0,fill:!0});for(var g=[],b=[],M=0;M<=i.startIndex;M++)g.push(e[M]);if(g.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),i.endIndex<=e.length){b.push(i.endPt);for(var m=i.endIndex+1;m<=e.length-1;m++)b.push(e[m]);this.addArrow(b)}var d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),v=SuperMap.Plot.PlottingUtil.circlePoint(d.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(v,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000808=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000807=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],n,.05*a,r+90),this.computeSubSymbol(this.subSymbols[1],n,a,r+180));for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000807=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000804),e}();SuperMap.Plot.AlgoSymbol3000806=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000804),e}();SuperMap.Plot.AlgoSymbol3000805=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000801),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r+180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol3000804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000801),e}();SuperMap.Plot.AlgoSymbol3000803=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000801),e}();SuperMap.Plot.AlgoSymbol3000802=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000801=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.5),l.scaleValues.push(.4)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2]*e,n=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],e*o),r=SuperMap.Plot.PlottingUtil.distance(t[1],n),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],n,r+.45*i),s=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],e-r+.45*i),p=2*l,u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[1],a),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],s),P=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),S=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),h=e-r-i/2,y=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h),f=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h+.2*i),g=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h+.8*i),b=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h+i),M={fillLimit:!0},m=[];m.push(P[0]),m.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,M);var d=[];d.push(u.pntRight),d.push(f),d.push(g),d.push(c.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,M);var v=[];v.push(b),v.push(P[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,M);var O=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h),U=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h+.2*i),w=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h+.8*i),L=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h+i),_=[];_.push(S[0]),_.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,M);var V=[];V.push(u.pntLeft),V.push(U),V.push(w),V.push(c.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,M);var A=[];A.push(L),A.push(S[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,M);var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,y,P[0]);this.addScalePoint(T.pntLeft,0),this.addScalePoint(n,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(l[0],e);if(0===t&&(this.scaleValues[0]=i/o),1===t){var n=i/o;n>.8?n=.8:n<.2&&(n=.2),this.scaleValues[1]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol2122301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.subSymbols.length&&(l.subSymbols=SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(l.libID,l.code)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,r=e[0].y,a=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),r<e[s].y&&(r=e[s].y),a.push(e[s]);var p=(i-o)/5;p>10&&(p=10);for(var u=.2*p,c=[],P=0;P<360;P+=18){var S=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),u,u,P);c.push(S)}for(var h=0,y=o;y<i;y+=p)for(var f=n;f<r;f+=p){var g=new SuperMap.Geometry.Point(y,f);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(a,g))if(0===h){h++;for(var b=[],M=0;M<c.length;M++){var m=new SuperMap.Geometry.Point(g.x+c[M].x,g.y+c[M].y);b.push(m)}b.push(b[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b);var d=[];d.push(b[10]),d.push(new SuperMap.Geometry.Point(b[10].x-.5*u,b[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(b[0]),v.push(new SuperMap.Geometry.Point(b[0].x+.5*u,b[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v)}else 1===h?(h++,null!==this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],g,.015*l,0)):(h=0,null!==this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],g,.015*l,0))}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol2122101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121602=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="障",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121601),e}();SuperMap.Plot.AlgoSymbol2121602=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l.subText="遥",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);for(var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=50*this.getSubSymbolScaleValue(),r=i*n*.02,a=i*n*.005,s=.1*i,p=.1*o,u=0;u<=i;u+=s){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,u+p);if(-1!==c.index){var P,S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[c.index],c.pt);P=this.scaleValues[0]>0?new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y):new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y);var h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,P,c.pt),y=[];if(y.push(h.pntRight),y.push(P),y.push(h.pntLeft),0===u){var f=new SuperMap.Geometry.Point(P.x,P.y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}var g=SuperMap.Plot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMap.Plot.PlottingUtil.RTOD,b=.1*i,M=SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),m=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-2],t[t.length-1],.5*b+M);this.addText(this.subText,m,b,g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMap.Plot.AlgoSymbol2121601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121507=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="复",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121505),e}();SuperMap.Plot.AlgoSymbol2121507=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121506=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="墩",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121505),e}();SuperMap.Plot.AlgoSymbol2121506=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121504=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,2*i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,2*i),s=[];s.push(t[0],r);var p=[];p.push(a,t[1]);var u=SuperMap.Plot.PlottingUtil.paraLine(s,i,!0),c=SuperMap.Plot.PlottingUtil.paraLine(s,i,!1),P=SuperMap.Plot.PlottingUtil.paraLine(p,i,!0),S=SuperMap.Plot.PlottingUtil.paraLine(p,i,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,y=.5*SuperMap.Plot.PlottingUtil.distance(r,a);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,y,h),this.addScalePoint(u[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.24&&(i=.24),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol2121504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2092101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var r,a=n.pt,s=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),p=0;p<t.length-1;p++){var u=t[p],c=t[p+1],P=SuperMap.Plot.PlottingUtil.distance(a,u),S=SuperMap.Plot.PlottingUtil.distance(a,c);if(!(P<o&&S<o))if(P>o&&S<o||P<o&&S>o){var h;h=P>o?u:c;var y=this.getLineAddCircleIntersectPts(u,c,s);y.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[y[0],h])}else{var f=SuperMap.Plot.PlottingUtil.projectPoint(a,u,c);if(SuperMap.Plot.PlottingUtil.distance(a,f)>=o)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f,u,c)){var g=this.getLineAddCircleIntersectPts(u,c,s);if(g.length>0){g.unshift(u),g.push(c);for(var b=0;b<g.length-1;b++)this.isLineInCircle(g[b],g[b+1],a,o)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[g[b],g[b+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}}if(this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),r=n.index>=t.length-1?SuperMap.Plot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMap.Plot.PlottingUtil.RTOD:SuperMap.Plot.PlottingUtil.radian(t[n.index],t[n.index+1])*SuperMap.Plot.PlottingUtil.RTOD,this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var M=0;M<this.subSymbols[0].symbolData.innerCells.length;M++)26===this.subSymbols[0].symbolData.innerCells[M].type&&this.subSymbols[0].symbolData.innerCells.splice(M,1);this.computeSubSymbol(this.subSymbols[0],a,o,r)}this.scalePoints=[];var m=a;m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m);var d=new SuperMap.Geometry.Point(a.x+o,a.y);d.isScalePoint=!0,d.tag=1,this.scalePoints.push(d),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i=[],n=0;n<o.length-1;n++){var r=o[n],a=o[n+1],s=SuperMap.Plot.PlottingUtil.intersectLines(t,e,r,a);s.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,r,a)&&i.push(s.intersectPoint)}for(var p=0;p<i.length-1;p++)SuperMap.Plot.PlottingUtil.isSamePt(i[p],i[p+1])&&(i.splice(p,1),p--);if(t.x>e.x){for(var u=0;u<i.length&&u!==i.length-1;u++)if(i[u].x<i[u+1].x){var c=i[u];i[u]=i[u+1],i[u+1]=c}}else if(t.x<e.x){for(var P=0;P<i.length&&P!==i.length-1;P++)if(i[P].x>i[P+1].x){var S=i[P];i[P]=i[P+1],i[P+1]=S}}else if(t.y>e.y){for(var h=0;h<i.length&&h!==i.length-1;h++)if(i[h].y<i[h+1].y){var y=i[h];i[h]=i[h+1],i[h+1]=y}}else if(t.y<e.y)for(var f=0;f<i.length&&f!==i.length-1;f++)if(i[f].y>i[f+1].y){var g=i[f];i[f]=i[f+1],i[f+1]=g}return i}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,r=null,a=0;a<l.length-1;a++){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[a],l[a+1])){var p=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,e);0===i?(i=p,n=a,r=s.projectPoint):p<i&&(i=p,n=a,r=s.projectPoint)}}if(-1===n)return;for(var u=0,c=0;c<n;c++)u+=SuperMap.Plot.PlottingUtil.distance(l[c],l[c+1]);var P=(u+=SuperMap.Plot.PlottingUtil.distance(r,l[n]))/o;P>1&&(P=1),this.scaleValues[0]=P}if(1===t){var S=this.scaleValues[0]*o,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,S);if(-1===h.index)return;var y=SuperMap.Plot.PlottingUtil.distance(h.pt,e)/o;y>.4&&(y=.4),this.scaleValues[1]=y}}}}]),e}();SuperMap.Plot.AlgoSymbol2092101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2091503=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var r=this.GetCurvePts(t,l,o);if(0!==r.pt.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(n)*i,s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,a);if(-1!==s.index){for(var p=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],c=0;c<360;c+=12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt,p,p,c));u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);for(var P=[],S=[],h=0;h<r.pt.length;h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,r.pt[h])?S.length>1&&(P.push(S),S=[]):S.push(r.pt[h]);S.length>1&&P.push(S);for(var y=0;y<P.length;y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P[y]);var f=[],g=new SuperMap.Geometry.Point(s.pt.x-p,s.pt.y),b=new SuperMap.Geometry.Point(s.pt.x+.5*p,s.pt.y);f.push(g,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var M=[],m=SuperMap.Plot.PlottingUtil.circlePoint(b,.3*p,.3*p,157.5),d=SuperMap.Plot.PlottingUtil.circlePoint(b,.3*p,.3*p,202.5);M.push(m),M.push(d),M.push(b);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var v=new SuperMap.Geometry.Point(r.pt[0].x,r.pt[0].y);v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=new SuperMap.Geometry.Point(r.scalePt.x,r.scalePt.y);O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var U=new SuperMap.Geometry.Point(s.pt.x,s.pt.y);U.isScalePoint=!0,U.tag=2,this.scalePoints.push(U);var w=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p,p,0),L=new SuperMap.Geometry.Point(w.x,w.y);L.isScalePoint=!0,L.tag=3,this.scalePoints.push(L),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var a=l[0],s=SuperMap.Plot.PlottingUtil.distance(a,r);this.scaleValues[1]=2*s/o}else if(1===t)a=l[0],s=SuperMap.Plot.PlottingUtil.distance(a,r),this.scaleValues[0]=s/o;else if(2===t){for(var p=-1,u=0,c=new SuperMap.Geometry.Point(0,0),P=0;P<i.length-1;P++){var S=i[P],h=i[P+1],y=SuperMap.Plot.PlottingUtil.projectPoint(r,S,h);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y,S,h)){var f=SuperMap.Plot.PlottingUtil.distance(r,y);-1===p?(p=P,c=y,u=f):u>f&&(p=P,c=y,u=f)}}if(-1===p||p>i.length-1)return;for(var g=[],b=0;b<p;b++)g.push(i[b]);g.push(c);var M=SuperMap.Plot.PlottingUtil.polylineDistance(g);if(M<0||M>n)return;this.scaleValues[2]=M/n}else if(3===t){var m=n*this.scaleValues[2],d=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,m);if(-1===d.index)return;var v=SuperMap.Plot.PlottingUtil.distance(d.pt,e);this.scaleValues[3]=v/o}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=n*e,a=n*l/2,s=[],p=[],u=i[0],c=!1,P=i[0],S=1;S<i.length;S++){var h=i[S],y=SuperMap.Plot.PlottingUtil.distance(u,h);if(!(y<r&&S!==i.length-1)){for(var f,g=parseInt(y/r),b=0;b<g;b++){f=SuperMap.Plot.PlottingUtil.linePnt(u,h,r),c||(o=f,c=!0);var M=this.GetCosPts2D(u,f,r,a);s=p.length>1&&0===b?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M),p=(p=[]).concat(M),P=u,u=f}S===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,r,a),s=p.length>1&&M.length>1?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMap.Plot.PlottingUtil.distance(t,e),r=l/30,a=0;a<n;a+=r){var s=a*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMap.Geometry.Point(a,p),c=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,P=SuperMap.Plot.PlottingUtil.coordinateTrans(t,u,c);i.push(P)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var r=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,a=180*SuperMap.Plot.PlottingUtil.radian(e,t)/Math.PI-r;a<=0;)a+=360;var s=a/2,p=l;p=SuperMap.Plot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMap.Plot.PlottingUtil.linePnt(e,p,1),c=0,P=0;P<o.length;P++)if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,o[P])){c=P;break}if(0!=c)for(var S=0;S<o.length-c;S++)n.slice(S,n.length-1);for(var h=0;h<i.length;h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,i[h])&&n.push(i[h]);return n}}]),e}();SuperMap.Plot.AlgoSymbol2091503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60310=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=100*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l;if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],a.pts,p,s-90);var u=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,p,p,s+90),c=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,2*p,2*p,s+90),P=[];P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=SuperMap.Plot.PlottingUtil.circlePoint(c,.2*p,.2*p,s+90),h=SuperMap.Plot.PlottingUtil.circlePoint(c,.05*p,.05*p,s),y=SuperMap.Plot.PlottingUtil.circlePoint(c,.05*p,.05*p,s+180),f=[];f.push(S),f.push(h),f.push(y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0})}r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol60310=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60306=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.linePnt(i,o,e+.2*e),r=SuperMap.Plot.PlottingUtil.linePnt(o,i,e+.2*e),a=1.5*l,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,n),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o,r),u=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),c=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),P=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),S=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),h=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(S),g.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(y),b.push(u[u.length-1]),b.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],8*e/11),O=[];O.push(s.pntLeft),O.push(c[0]),O.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var w=[];w.push(v),w.push(c[c.length-1]),w.push(p.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol60306=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60305=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.05*SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.paraLine(t,e,!0),o=SuperMap.Plot.PlottingUtil.paraLine(t,e,!1),i=l[0],n=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,l[0],l[1]),r=[];r.push(i),r.push(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,l[0],l[1]),s=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,l[0],l[1]),p=[];p.push(a),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,l[0],l[1]),c=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,l[0],l[1]),P=[];P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,l[0],l[1]),h=l[1],y=[];y.push(S),y.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=o[0],g=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,o[0],o[1]),b=[];b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,o[0],o[1]),m=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,o[0],o[1]),d=[];d.push(M),d.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,o[0],o[1]),O=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,o[0],o[1]),U=[];U.push(v),U.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var w=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,o[0],o[1]),L=o[1],_=[];_.push(w),_.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var V=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(1/3,t[0],t[1]),A=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(1/3*2,t[0],t[1]),T=[];T.push(V),T.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var E=SuperMap.Plot.PlottingUtil.radian(V,A)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.distance(V,A),j=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,V,A),Y=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E+90),C=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E-90),I=[];I.push(Y),I.push(C),I.push(V);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,{fillLimit:!0,fill:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol60305=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol60304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="隧",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121505),e}();SuperMap.Plot.AlgoSymbol60304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121505=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="火",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,2*i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,2*i),s=[];s.push(t[0],r);var p=[];p.push(a,t[1]);var u=SuperMap.Plot.PlottingUtil.paraLine(s,i,!0),c=SuperMap.Plot.PlottingUtil.paraLine(s,i,!1),P=SuperMap.Plot.PlottingUtil.paraLine(p,i,!0),S=SuperMap.Plot.PlottingUtil.paraLine(p,i,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=this.subText,y=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(n.x,n.y),g=SuperMap.Plot.PlottingUtil.distance(r,a);this.addText(h,f,g,y),this.addScalePoint(u[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.24&&(i=.24),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol2121505=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol60301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="爆",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol60301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60205=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(90),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=2*o}var i=l*this.scaleValues[0],n=this.scaleValues[1],r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(a.bfind){var s=a.pts.clone(),p=e[a.index].clone(),u=e[a.index+1].clone(),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,c+n),S=[];S.push(a.pts),S.push(P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var h=SuperMap.Plot.PlottingUtil.radian(s,P)*SuperMap.Plot.PlottingUtil.RTOD,y=new SuperMap.Geometry.Point(-.2*r,.05*r),f=new SuperMap.Geometry.Point(-.2*r,-.05*r),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,h),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,h),M=[];M.push(P),M.push(g),M.push(b);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var m=.3*r,d=.6*r,v=i-d;v<0&&(v=0);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(v,e);if(O.bfind){var U=[];U.push(O.pts);for(var w=O.index;w>=0;w--)U.push(e[w]);var L=[];L.push(O.pts);for(var _=O.index+1;_<e.length;_++)L.push(e[_]);var V=.6*m,A=[];if(U.length>1){var T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,U);if(T.bfind){(A=[]).push(T.pts);for(var E=T.index+1;E<U.length;E++)A.push(U[E]);U=[],A.length>1&&(U=U.concat(A))}}if(U.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),L.length>1){var x=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,L);if(x.bfind){(A=[]).push(x.pts);for(var j=x.index+1;j<L.length;j++)A.push(L[j]);L=[],A.length>1&&(L=L.concat(A))}}var Y=i+d;Y>l&&(Y=l),Y=l-Y;for(var C=[],I=L.length-1;I>=0;I--)C.push(L[I]);var B=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(Y,C);if(B.bfind){var R=[];R.push(B.pts);for(var G=B.index;G>=0;G--)R.push(C[G]);var N=[];N.push(B.pts);for(var D=B.index+1;D<C.length;D++)N.push(C[D]);if(R.length>1){var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,R);if(k.bfind){(A=[]).push(k.pts);for(var z=k.index+1;z<R.length;z++)A.push(R[z]);R=[],A.length>1&&(R=R.concat(A))}}if(R.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R),N.length>1){var F=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,N);if(F.bfind){(A=[]).push(F.pts);for(var K=F.index+1;K<N.length;K++)A.push(N[K]);N=[],A.length>1&&(N=N.concat(A))}}N.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],O.pts,m,c+n+180,.3),this.computeSubSymbol(this.subSymbols[1],B.pts,m,c+n+180,.3)),this.addScalePoint(a.pts,0),this.addScalePoint(P,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0>t||1<t)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=[],r=0;r<o.length;r++)n.push(o[r]);for(var a=-1,s=new SuperMap.Geometry.Point(0,0),p=0,u=0;u<n.length-1;u++){var c=[];c.push(n[u]),c.push(n[u+1]);var P=SuperMap.Plot.PlottingUtil.projectPoint(e,n[u],n[u+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,c).isOnPolyLine){var S=SuperMap.Plot.PlottingUtil.distance(e,P);-1===a?(a=u,s=P,p=S):p>S&&(a=u,s=P,p=S)}}if(-1===a||a>n.length-1)return;for(var h=0,y=0;y<a;y++){var f=o[y].clone(),g=o[y+1].clone();h+=SuperMap.Plot.PlottingUtil.distance(f,g)}var b=o[a].clone();if((h+=SuperMap.Plot.PlottingUtil.distance(b,s))<0||h>i)return;this.scaleValues[0]=h/i}if(1===t){var M=i*this.scaleValues[0],m=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(M,o);if(!m.bfind)return;var d=m.pts.clone(),v=new SuperMap.Geometry.Point(o[m.index].x,o[m.index].y),O=new SuperMap.Geometry.Point(o[m.index+1].x,o[m.index+1].y),U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,w=SuperMap.Plot.PlottingUtil.radian(d,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[1]=w-U;var L=SuperMap.Plot.PlottingUtil.distance(d,e);this.scaleValues[2]=L/i}}}}]),e}();SuperMap.Plot.AlgoSymbol60205=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60203=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length===this.minEditPts){for(var e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t),l=[],o=0;o<e.length;o++)l.push(e[o]);if(!(l.length<4)){var i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=SuperMap.Plot.PlottingUtil.distance(l[1],l[2]),r=0;r=i<n?.2*i:.2*n;var a=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.5*i-.5*r),s=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.5*i+.5*r),p=SuperMap.Plot.PlottingUtil.findPointInLine(l[1],l[2],.5*n-.5*r),u=SuperMap.Plot.PlottingUtil.findPointInLine(l[1],l[2],.5*n+.5*r),c=SuperMap.Plot.PlottingUtil.findPointInLine(l[2],l[3],.5*i-.5*r),P=SuperMap.Plot.PlottingUtil.findPointInLine(l[2],l[3],.5*i+.5*r),S=SuperMap.Plot.PlottingUtil.findPointInLine(l[3],l[0],.5*n-.5*r),h=SuperMap.Plot.PlottingUtil.findPointInLine(l[3],l[0],.5*n+.5*r),y=[];y.push(h),y.push(l[0]),y.push(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=[];f.push(s),f.push(l[1]),f.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(u),g.push(l[2]),g.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(P),b.push(l[3]),b.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=new SuperMap.Geometry.Point((l[0].x+l[2].x)/2,(l[0].y+l[2].y)/2);this.addText("避",M,3*r,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol60203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50352=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=60*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l,u=new SuperMap.Geometry.Point((a.pts.x+r.pts.x)/2,(r.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],u,p,s+90);var c=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,p,p,s+90),P=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,2*p,2*p,s+90),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*p,.2*p,s+90),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,s),f=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,s+180),g=[];g.push(h),g.push(y),g.push(f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fillLimit:!0,fill:!0})}r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol50352=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50342=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=o*this.scaleValues[2],a=o*this.scaleValues[3],s=new SuperMap.Geometry.Point(l.x+r,l.y+a),p=o*n;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(u,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===n)return;var r=0,a=0,s=0,p=0;if(0===t){s=n*(r=this.scaleValues[2]),p=n*(a=this.scaleValues[3]);var u=new SuperMap.Geometry.Point(i.x+s,i.y+p),c=SuperMap.Plot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=c}else 1===t&&(r=(s=e.x-i.x)/n,a=(p=e.y-i.y)/n,this.scaleValues[2]=r,this.scaleValues[3]=a)}}}]),e}();SuperMap.Plot.AlgoSymbol50342=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50308=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit||3===this.scaleValues.length){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.push(0);var l=this.getSubSymbolScaleValue();this.scaleValues.push(.8*l),this.scaleValues.push(l),this.scaleValues.push(-1.5)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=this.scaleValues.length,r=i*this.scaleValues[n-3],a=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),s=new SuperMap.Geometry.Point(a.x+r,a.y),p=[];p.push(a),p.push(s),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#141313",fillOpacity:1});var u=this.scaleValues[0];if(0===u)o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]).pntRight;else if(1===u)o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]).pntLeft;else{if(2!==u)return;o=t[0]}var c=[];c.push(t[0]),c.push(o),this.addScalePoint(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,null,!0);var P,S=[];if(t.length>this.minEditPts){for(var h=1;h<t.length-1;h++){var y,f=this.scaleValues[h],g=null,b=null,M=null,m=0,d=0,v=0;if(0===f){for(g=t[h],b=t[h+1],M=t[h-1],m=SuperMap.Plot.PlottingUtil.radian(g,b)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.radian(g,M)*SuperMap.Plot.PlottingUtil.RTOD-m;d<0;)d+=360;v=d/2;var O=t[h+1].clone();O=SuperMap.Plot.PlottingUtil.rotateAngle(g,v*Math.PI/180,O),y=SuperMap.Plot.PlottingUtil.linePnt(g,O,r)}else if(1===f){for(g=t[h],b=t[h+1],M=t[h-1],m=SuperMap.Plot.PlottingUtil.radian(g,b)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.radian(g,M)*SuperMap.Plot.PlottingUtil.RTOD-m;d<0;)d+=360;v=180-d/2;var U=t[h-1].clone();O=SuperMap.Plot.PlottingUtil.rotateAngle(g,v*Math.PI/180,U),y=SuperMap.Plot.PlottingUtil.linePnt(g,U,r)}else{if(2!==f)continue;y=t[h]}S.push(t[h]),S.push(y),this.addScalePoint(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0)}var w=t.length,L=this.scaleValues[w-1],_=0,V=0,A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[w-2],t[w-1]),T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*r,t[w-2],t[w-1]);if(0===L)_=A.pntLeft,V=T.pntLeft;else if(1===L)_=A.pntRight,V=T.pntRight;else{if(2!==L)return;_=t[w-1].clone(),V=t[w-1].clone()}(S=[]).push(t[w-1]),S.push(_),this.addScalePoint(_),this.addScalePoint(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0)}else{var E=this.scaleValues[1];if(A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[0],t[1]),T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*r,t[0],t[1]),0===E)_=A.pntLeft,V=T.pntLeft;else if(1===E)_=A.pntRight,V=T.pntRight;else{if(2!==E)return;_=t[1].clone(),V=t[1].clone()}(S=[]).push(t[1]),S.push(_),this.addScalePoint(_),this.addScalePoint(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0)}var x=this.scaleValues.length,j=this.scaleValues[x-2],Y=Math.abs(i*j),C=this.scaleValues[x-1],I=Math.abs(r*C),B=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,Y);if(-1!==B.index){var R=B.index,G=B.pt;P=C>=0?(A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,t[R],G)).pntRight:(A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,t[R],G)).pntLeft;var N=SuperMap.Plot.PlottingUtil.linePnt(G,P,I),D=.3*I,k=SuperMap.Plot.PlottingUtil.linePnt(N,G,D),z=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*D,N,k),F=z.pntLeft,K=z.pntRight;(S=[]).push(G),S.push(N),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0),(S=[]).push(F),S.push(N),S.push(K);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(N),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=l.length,n=e;if(t>=0&&t<i){var r=!1,a=null,s=null;r=0===t?SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],n):t===i-1?SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],n):SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1])!==(a=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],n))?a:(s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],n))===a?a:s,this.scaleValues[t]=r?1:0}else if(t===i){var p=SuperMap.Plot.PlottingUtil.distance(l[i-1],n)/2;this.scaleValues[t]=p/o}else if(t===i+1||t===i+2){for(var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0),S=0;S<l.length-1;S++){var h=[];h.push(l[S]),h.push(l[S+1]);var y=SuperMap.Plot.PlottingUtil.projectPoint(n,l[S],l[S+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(y,h).isOnPolyLine){var f=SuperMap.Plot.PlottingUtil.distance(n,y);-1===u?(u=S,P=y,c=f):c>f&&(u=S,P=y,c=f)}}if(-1===u||u>l.length-1)return;for(var g=0,b=0;b<u;b++){var M=l[b],m=l[b+1];g+=SuperMap.Plot.PlottingUtil.distance(M,m)}var d=l[u];if((g+=SuperMap.Plot.PlottingUtil.distance(d,P))<0||g>o)return;this.scaleValues[i+1]=g/o;var v,O=this.scaleValues.length,U=o*this.scaleValues[O-3];v=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[u],l[u+1],n)?c/U:-Math.abs(c/U),this.scaleValues[i+2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol50308=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50226=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.088259),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=this.scaleValues[0],n=this.scaleValues[2],r=this.scaleValues[3];o.x=o.x+n*l,o.y=o.y+r*l;var a=new SuperMap.Geometry.Point(.5*l*i,0),s=new SuperMap.Geometry.Point(-.5*l*i,0),p=SuperMap.Plot.PlottingUtil.coordinateTrans(o,a,0),u=SuperMap.Plot.PlottingUtil.coordinateTrans(o,s,0),c=[];c.push(p),c.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var P=new SuperMap.Geometry.Point(.8*l*i,0),S=new SuperMap.Geometry.Point(-.8*l*i,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(o,P,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(o,S,0);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],h,18*i,90),this.computeSubSymbol(this.subSymbols[0],y,18*i,90));var f=SuperMap.Plot.PlottingUtil.circlePoint(o,i*l,i*l,180);this.addScalePoint(f,0),this.addScalePoint(o,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.controlPoints.length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0===t){n.x=n.x+this.scaleValues[2]*i,n.y=n.y+this.scaleValues[3]*i;var r=SuperMap.Plot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=r}if(1===t){var a=(e.x-n.x)/i;this.scaleValues[2]=a;var s=(e.y-n.y)/i;this.scaleValues[3]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol50226=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50225=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/e,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var o=this.scaleValues[0],i=this.scaleValues[2],n=this.scaleValues[3],r=e*o,a=new SuperMap.Geometry.Point(l.x+e*i,l.y+e*n);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,r,0),this.addScalePoint(a,0);var s=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,r=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[2]=n,r=(e.y-i.y)/o,this.scaleValues[3]=r),1===t){n=this.scaleValues[2],r=this.scaleValues[3];var a=new SuperMap.Geometry.Point(i.x+o*n,i.y+o*r),s=SuperMap.Plot.PlottingUtil.distance(a,e);this.scaleValues[0]=s/2/o}}}}]),e}();SuperMap.Plot.AlgoSymbol50225=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50223=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.088259),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.088259),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3];l.x=l.x+r*o,l.y=l.y+a*o;var s=new SuperMap.Geometry.Point(.25*o*n,.25*o*n),p=new SuperMap.Geometry.Point(0,.5*o*n),u=new SuperMap.Geometry.Point(-.25*o*n,.25*o*n),c=SuperMap.Plot.PlottingUtil.coordinateTrans(l,s,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(l,p,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(l,u,0);this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,[c,P,S],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0});var h=new SuperMap.Geometry.Point(0,-.3*o*n),y=SuperMap.Plot.PlottingUtil.coordinateTrans(l,h,0);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,y,S],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),this.scalePoints=[];var f=SuperMap.Plot.PlottingUtil.circlePoint(l,n*o*.5,n*o*.5,180);this.addScalePoint(f,0),this.addScalePoint(l,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){i.x=i.x+this.scaleValues[2]*n,i.y=i.y+this.scaleValues[3]*n;var r=SuperMap.Plot.PlottingUtil.distance(e,i)/n;this.scaleValues[0]=r}else if(1===t){var a=(e.x-i.x)/n;this.scaleValues[2]=a;var s=(e.y-i.y)/n;this.scaleValues[3]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol50223=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50108=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000ff",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000ff",this.components[u].style.opacity=1;this.addScalePoint(p);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,a=0;if(0===t)r=(e.x-i.x)/n,this.scaleValues[2]=r,a=(e.y-i.y)/n,this.scaleValues[3]=a;else if(1===t){r=this.scaleValues[2],a=this.scaleValues[3];var s=new SuperMap.Geometry.Point(i.x+n*r,i.y+n*a),p=SuperMap.Plot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMap.Plot.AlgoSymbol50108=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40304=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.5*e,o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,t);if(-1!==o.index){for(var i=[],n=0;n<o.index+1;n++)i.push(t[n]);var r=[],a=.1*e,s=.5*a,p=.05*e;if(l-SuperMap.Plot.PlottingUtil.polylineDistance(i)>=p){var u=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[o.index],p);i.push(u),this.ComputeDashLine(a,s,i);var c=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[o.index],p);r.push(c);for(var P=o.index+1;P<t.length;++P)r.push(t[P]);this.ComputeDashLine(a,s,r)}else{for(var S=-1,h=i.length-1;h>=0;h--){var y=new SuperMap.Geometry.Point(i[h].x,i[h].y),f=new SuperMap.Geometry.Point(o.pts.x,o.pts.y),g=SuperMap.Plot.PlottingUtil.distance(y,f);if(g>p){S=h;break}}if(-1==S)return;i.splice(S+1,i.length-1-S),u=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[S],p),i.push(u),this.ComputeDashLine(a,s,i);for(var b=-1,M=i.length-1;M<t.length;M++)if(y=new SuperMap.Geometry.Point(t[M].x,t[M].y),f=new SuperMap.Geometry.Point(o.pts.x,o.pts.y),(g=SuperMap.Plot.PlottingUtil.distance(y,f))>p){b=M;break}if(-1==b)return;c=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[b],p),r.push(c);for(var m=b+1;m<t.length;++m)r.push(t[m]);this.ComputeDashLine(a,s,r)}var d=u.clone(),v=c.clone(),O=SuperMap.Plot.PlottingUtil.radian(d,v)*SuperMap.Plot.PlottingUtil.RTOD,U=SuperMap.Plot.PlottingUtil.distance(d,v),w=new SuperMap.Geometry.Point((u.x+c.x)/2,(u.y+c.y)/2);this.addText("警",w,U,O),this.finish()}}}},{key:"ComputeDashLine",value:function(t,e,l){for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.clonePoints(l),n=o/7,r=0;r<7;r++){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1!==a.index){if(0!=r%2){for(var s=[],p=0;p<a.index+1;p++)s.push(i[p].clone());s.push(a.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}var u=[];u.push(a.pt);for(var c=a.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}i.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}]),e}();SuperMap.Plot.AlgoSymbol40304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40302=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/e,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[2]=this.subSymbolScaleValue/3);var o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x-4*n,r.y),s=new SuperMap.Geometry.Point(r.x-4*n,r.y-n/2),p=[];p.push(a),p.push(s);var u={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,u);var c=new SuperMap.Geometry.Point(r.x-4*n,r.y),P=new SuperMap.Geometry.Point(r.x-n,r.y),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,u),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,0);var h=new SuperMap.Geometry.Point(r.x+4*n,r.y),y=new SuperMap.Geometry.Point(r.x+n,r.y),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,u);var g=new SuperMap.Geometry.Point(r.x+4*n,r.y+n/2),b=new SuperMap.Geometry.Point(r.x+4*n,r.y),M=[];M.push(g),M.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,u),this.addScalePoint(r,0);var m=SuperMap.Plot.PlottingUtil.circlePoint(r,2*n,2*n,90);this.addScalePoint(m,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,r=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[0]=n,r=(e.y-i.y)/o,this.scaleValues[1]=r),1===t){n=this.scaleValues[0],r=this.scaleValues[1];var a=new SuperMap.Geometry.Point(i.x+o*n,i.y+o*r),s=SuperMap.Plot.PlottingUtil.distance(a,e);this.scaleValues[2]=s/2/o}}}}]),e}();SuperMap.Plot.AlgoSymbol40302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40104=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=new SuperMap.Geometry.Point(r.x-n/2,c.y),h=new SuperMap.Geometry.Point(r.x+n/2,P.y),y=SuperMap.Plot.PlottingUtil.radian(S,h)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("缉",r,n,y),this.addScalePoint(r,0);var f=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol40104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30026=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x+1,l.y),i=[];t.push(t[0].clone());for(var n=0;n<t.length-1;n++){var r=SuperMap.Plot.PlottingUtil.intersectLines(l,o,t[n],t[n+1]);r.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[n],t[n+1])&&i.push(r.intersectPoint))}if(!(0>=i.length)){var a=i[0].clone(),s=i[0].clone();for(n=0;n<i.length;n++)a.x>i[n].x&&(a=i[n].clone()),s.x<i[n].x&&(s=i[n].clone());var p=SuperMap.Plot.PlottingUtil.distance(s,a),u=new SuperMap.Geometry.Point(l.x-.25*p,a.y),c=e*this.scaleValues[0],P=e*this.scaleValues[0],S=P+c,h=new SuperMap.Geometry.Point(u.x,u.y+S);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[h,new SuperMap.Geometry.Point(h.x+c,h.y)]);var y=new SuperMap.Geometry.Point(u.x,u.y+.8*P),f=new SuperMap.Geometry.Point(u.x-P,u.y-P),g=new SuperMap.Geometry.Point(u.x+P,u.y-P),b=[];b.push(y),b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b);var M=new SuperMap.Geometry.Point(u.x-.5*P,u.y-P),m=new SuperMap.Geometry.Point(f.x,f.y-2*c),d=new SuperMap.Geometry.Point(u.x+.5*P,u.y-P),v=new SuperMap.Geometry.Point(g.x,g.y-2*c),O=[];O.push(M),O.push(m);var U=[];U.push(d),U.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),this.addText("灾",l,2*P,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30026=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30025=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var o=new SuperMap.Geometry.Point(l.x+1,l.y),i=[];t.push(t[0].clone());for(var n=0;n<t.length-1;n++){var r=SuperMap.Plot.PlottingUtil.intersectLines(l,o,t[n],t[n+1]);r.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[n],t[n+1])&&i.push(r.intersectPoint))}if(!(0>=i.length)){var a=i[0].clone(),s=i[0].clone();for(n=0;n<i.length;n++)a.x>i[n].x&&(a=i[n].clone()),s.x<i[n].x&&(s=i[n].clone());var p=SuperMap.Plot.PlottingUtil.distance(s,a),u=new SuperMap.Geometry.Point(l.x-.25*p,a.y),c=e*this.scaleValues[0],P=e*this.scaleValues[0],S=P+c,h=new SuperMap.Geometry.Point(u.x,u.y+S);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[h,new SuperMap.Geometry.Point(h.x+c,h.y)]);var y=new SuperMap.Geometry.Point(u.x,u.y+.8*P),f=new SuperMap.Geometry.Point(u.x-P,u.y-P),g=new SuperMap.Geometry.Point(u.x+P,u.y-P),b=[];b.push(y),b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b);var M=new SuperMap.Geometry.Point(u.x-.5*P,u.y-P),m=new SuperMap.Geometry.Point(f.x,f.y-2*c),d=new SuperMap.Geometry.Point(u.x+.5*P,u.y-P),v=new SuperMap.Geometry.Point(g.x,g.y-2*c),O=[];O.push(M),O.push(m);var U=[];U.push(d),U.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),this.addText("滞",l,2*P,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30025=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l.subText="水",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=[],h=new SuperMap.Geometry.Point(r.x-n/2,c.y);h.x<=P.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var y=new SuperMap.Geometry.Point(r.x+n/2,P.y);y.x<=P.x&&y.x>=c.x&&((S=[]).push(P),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var f=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD;this.addText(this.subText,r,n,f),this.addScalePoint(r,0);var g=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(g,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=0,r=0,a=e;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,a))return;n=(a.x-i.x)/o,this.scaleValues[0]=n,r=(a.y-i.y)/o,this.scaleValues[1]=r}if(1===t){n=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+n*o,i.y+r*o),p=2*SuperMap.Plot.PlottingUtil.distance(a,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol30020=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30014=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=this.textContent.length*l/2.5,i=.5*(e-o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t);if(-1!==n.index){var r=SuperMap.Plot.PlottingUtil.clonePoints(t);r.splice(n.index+1,t.length-n.index-1),r.push(n.pts);var a={lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff"},s=SuperMap.Plot.PlottingUtil.paraLine(r,.25*l,!0),p=SuperMap.Plot.PlottingUtil.paraLine(r,.25*l,!1),u=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i+o,t);if(-1!==u.index){var c=SuperMap.Plot.PlottingUtil.clonePoints(t);c.splice(0,u.index+1),c.splice(0,0,u.pts);var P=SuperMap.Plot.PlottingUtil.paraLine(c,.25*l,!0),S=SuperMap.Plot.PlottingUtil.paraLine(c,.25*l,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,a);var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*e,t),y=SuperMap.Plot.PlottingUtil.radian(n.pts,u.pts)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("(XX)",h.pts,o,y),this.finish()}}}}}]),e}();SuperMap.Plot.AlgoSymbol30014=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30013=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),o=SuperMap.Plot.PlottingUtil.clonePoints(t);o.splice(t.length-1,1),o.push(l);var i=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!0),n={lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff"},r=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n);var a=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),s=new SuperMap.Geometry.Point(a.x,a.y),p=new SuperMap.Geometry.Point(a.x,a.y);s=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,s),p=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,p);var u=[];u.push(s),u.push(t[t.length-1]),u.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol30013=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol30012=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30011=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts||0!==SuperMap.Plot.PlottingUtil.getOutRectangleDis(t)&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.finish())}}]),e}();SuperMap.Plot.AlgoSymbol30011=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(-.1),l.scaleValues.push(-.1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}t.length===this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addText("?",r,.3*i,0,"#0000ff"),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol30010=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(-.04),l.scaleValues.push(-.175),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,r=e.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[r])){n=r;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var a=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var h=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(.8*p,s,a),y=SuperMap.Plot.PlottingUtil.circlePoint(h,p,p,u+90),f=SuperMap.Plot.PlottingUtil.circlePoint(h,p,p,u-90),g=[];g.push(y),g.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(1.2*p,s,a),M=SuperMap.Plot.PlottingUtil.circlePoint(b,p,p,u+90),m=SuperMap.Plot.PlottingUtil.circlePoint(b,p,p,u-90),d=[];d.push(M),d.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol30009=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,r=e.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[r])){n=r;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var a=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol30008=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21221=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,r=e[0].y,a=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),r<e[s].y&&(r=e[s].y),a.push(e[s]);for(var p=(i-o)/5,u=.2*p,c=[],P=0;P<360;P+=18){var S=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),u,u,P);c.push(S)}for(var h=0,y=o;y<i;y+=p)for(var f=n;f<r;f+=p){var g=new SuperMap.Geometry.Point(y,f);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(a,g))if(0===h){if(h=0,this.subSymbols.length>0){var b=.015*l;this.computeSubSymbol(this.subSymbols[0],g,b,0),!0===this.subSymbols[0].fillLimit&&(this.subSymbols[0].fillColor="#332323")}h++}else if(h=0,this.subSymbols.length>0){var M=.015*l;this.computeSubSymbol(this.subSymbols[1],g,M,0)}}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol21221=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21216=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=.05*e,o=SuperMap.Plot.PlottingUtil.paraLine(t,.5*l,!0);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=[];i=i.concat(o);for(var n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=50*this.getSubSymbolScaleValue(),a=n*r*.02,s=n*r*.005,p=.1*n,u=.1*e,c=0;c<=n;c+=p){var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,c+u);if(-1!==P.index){var S,h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i[P.index],P.pt);S=this.scaleValues[0]>0?new SuperMap.Geometry.Point(h.pntLeft.x,h.pntLeft.y):new SuperMap.Geometry.Point(h.pntRight.x,h.pntRight.y);var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,S,P.pt),f=[];if(f.push(y.pntRight),f.push(S),f.push(y.pntLeft),0===c){var g=new SuperMap.Geometry.Point(S.x,S.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMap.Plot.AlgoSymbol21216=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3020901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(2==t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI,r=SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n+60);e.push(t[0]),e.push(o),e.push(r),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var a=0;a<t.length;a++)e.push(t[a])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),p=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var u=this.scaleValues[0],c=this.scaleValues[1],P=this.scaleValues[2],S=new SuperMap.Geometry.Point(s.x+p*u,s.y+p*c),h=p*P;0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,h,0),this.addScalePoint(S.clone());var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*h,.5*h,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];if(2==l.length){var i=new SuperMap.Geometry.Point(l[0].x,l[0].y),n=new SuperMap.Geometry.Point(l[1].x,l[1].y),r=SuperMap.Plot.PlottingUtil.distance(i,n),a=180*SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(i,r,r,a+60);o.push(l[0]),o.push(n),o.push(s),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var p=0;p<l.length;p++)o.push(l[p])}var u=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),c=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)this.scaleValues[0]=(e.x-u.x)/c,this.scaleValues[1]=(e.y-u.y)/c;else if(1===t){var P=new SuperMap.Geometry.Point(u.x+c*this.scaleValues[0],u.y+c*this.scaleValues[1]),S=2*SuperMap.Plot.PlottingUtil.distance(e,P)/c;S<.5&&(this.scaleValues[2]=S)}}}}]),e}();SuperMap.Plot.AlgoSymbol3020901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="协",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="出",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="调",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=l*this.scaleValues[0],r=l*this.scaleValues[2],a=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+r,o.y+a),p=.6*n,u=new SuperMap.Geometry.Point(s.x+n,s.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,0),P=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,180),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var h=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,90),y=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,270);(S=[]).push(h),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var f=new SuperMap.Geometry.Point(s.x-n,s.y),g=SuperMap.Plot.PlottingUtil.circlePoint(f,.5*n,.5*n,270),b=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,240),M=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,90),m=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,300);(S=[]).push(g),S.push(b),S.push(M),S.push(m),S.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0}),this.scalePoints=[];var d=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(d),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=i*this.scaleValues[2],a=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+r,n.y+a),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol37700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=e*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,o,0),this.scalePoints=[];var i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,90);this.addScalePoint(i),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol35200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.03),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=e[0],n=e[1],r=e[e.length-1],a=e[e.length-2],s=SuperMap.Plot.PlottingUtil.radian(i,n)*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0],c=l*u,P=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+90),S=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+270),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(S);var y=SuperMap.Plot.PlottingUtil.circlePoint(r,c,c,p+90),f=SuperMap.Plot.PlottingUtil.circlePoint(r,c,c,p+270);(h=[]).push(y),h.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var g,b,M=t.length;if(this.scaleValues.length<=M){for(this.scaleValues=[],this.scaleValues.push(u),b=1/M,g=0;g<M-1;g++)this.scaleValues.push(b*(g+1));this.scaleValues.push(u)}for(g=0;g<M-1;g++){var m=(b=this.scaleValues[g+1])*l,d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(m,e);if(!d.bfind)return;var v=d.pts,O=d.index,U=l*this.getSubSymbolScaleValue(),w=.3*U,L=SuperMap.Plot.PlottingUtil.radian(e[O],e[O+1])*SuperMap.Plot.PlottingUtil.RTOD,_=new SuperMap.Geometry.Point(U,-w),V=new SuperMap.Geometry.Point(-U,-w),A=new SuperMap.Geometry.Point(-U,0),T=new SuperMap.Geometry.Point(U,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(v,_,L),x=SuperMap.Plot.PlottingUtil.coordinateTrans(v,V,L),j=SuperMap.Plot.PlottingUtil.coordinateTrans(v,A,L),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(v,T,L);(h=[]).push(E),h.push(x),h.push(j),h.push(Y),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{lineTypeLimit:!0,fillLimit:!0,fill:!0}),this.addScalePoint(v)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==t){var r=(i=SuperMap.Plot.PlottingUtil.distance(e,l[0]))/n;this.scaleValues[0]=r}else{var a,s=e,p=[];for(a=0;a<o.length;a++)p.push(o[a]);var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0);for(a=0;a<p.length-1;a++){var S=[];S.push(p[a]),S.push(p[a+1]);var h=SuperMap.Plot.PlottingUtil.projectPoint(s,p[a],p[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(h,S).isOnPolyLine){var y=SuperMap.Plot.PlottingUtil.distance(s,h);-1==u?(u=a,P=h,c=y):c>y&&(u=a,P=h,c=y)}}if(-1==u||u>p.length-1)return;for(i=0,a=0;a<u;a++)i+=SuperMap.Plot.PlottingUtil.distance(o[a],o[a+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[u],P))<0||i>n)return;var f=i/n;this.scaleValues[t]=f}}}}]),e}();SuperMap.Plot.AlgoSymbol35000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),r=new SuperMap.Geometry.Point(0,o*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*a),u=new SuperMap.Geometry.Point(o*(1-s),o*a),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(r),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(n);for(var b=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],f);b.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var d=[],v=.06*o,O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,l,e),U=O.pntRight,w=O.pntLeft;d.push(U),d.push(w),v=.15*o;var L=new SuperMap.Geometry.Point(v,0),_=SuperMap.Plot.PlottingUtil.coordinateTrans(e,L,f);d.push(_),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),r=l[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var p=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var c=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol44100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);if(this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0){if(this.subSymbols[0].symbolData)for(var u in this.subSymbols[0].symbolData.innerCells)this.subSymbols[0].symbolData.innerCells[u].type===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL&&(this.subSymbols[0].symbolData.innerCells[u].type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.computeSubSymbol(this.subSymbols[0],p,s,0)}this.addScalePoint(p);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-r.x)/a,this.scaleValues[2]=i,n=(e.y-r.y)/a,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(r.x+a*i,r.y+a*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/a;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol42200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!=e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(a.x+i*e,a.y+n*e),p=r*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,270),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,30),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,150),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=e;if(0==t)i=(a.x-r.x)/o,this.scaleValues[0]=i,n=(a.y-r.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+i*o,r.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(a,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!==e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(a.x+i*e,a.y+n*e),p=r*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,210),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,330),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=e;if(0==t)i=(a.x-r.x)/o,this.scaleValues[0]=i,n=(a.y-r.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+i*o,r.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(a,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(a.x+i*e,a.y+n*e),p=r*e,u=new SuperMap.Geometry.Point(s.x,s.y),c=new SuperMap.Geometry.Point(s.x-p,s.y-p),P=new SuperMap.Geometry.Point(s.x+p,s.y-p),S=new SuperMap.Geometry.Point(s.x-p,s.y+p),h=new SuperMap.Geometry.Point(s.x+p,s.y+p),y=[];y.push(u),y.push(c),y.push(P),y.push(u),y.push(S),y.push(h),y.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var f=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=e;if(0==t)i=(a.x-r.x)/o,this.scaleValues[0]=i,n=(a.y-r.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+i*o,r.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(a,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41100=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.1*e,t[0],t[1]),o=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.2*e,t[0],t[1]),i=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),n=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.8*e,t[0],t[1]),r=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.9*e,t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],l]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[o,n]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r,t[1]]);var a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04*e,t[0],t[1]),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04*e,t[1],t[0]),p=a.pntLeft,u=s.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],u]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[1],p]);var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.42*e,t[1],i),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.48*e,t[1],i),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.6*e,t[1],i),h=c.pntRight,y=P.pntRight,f=S.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i,h]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[y,f]);var g=SuperMap.Plot.PlottingUtil.polylineDistance([y,f]),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*g,y,f).pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f,b]),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol41100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.2*i}var n=l*this.scaleValues[0],r=l*this.scaleValues[2],a=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+r,o.y+a),p=[];p.push(s),p.push(new SuperMap.Geometry.Point(s.x+n,s.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var u=18*n,c=new SuperMap.Geometry.Point(s.x+u,s.y),P=[],S=135;S<180;S+=3)P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,S));P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,180)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var h=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(h),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=i*this.scaleValues[2],a=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+r,n.y+a),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40900=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[],l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMap.Plot.PlottingUtil.clearSamePts(e);var n=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(this.getSubSymbolScaleValue())),!(e.length<=0)){var r;r=2==t.length?0:t.length-1;var a=n*this.scaleValues[4*r],s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=l*this.scaleValues[4*r+1],P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var b=[];for(b.push(g),h=p+1;h<e.length;h++)b.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[u,g]);var M=l*this.scaleValues[4*r+1]/1.667;if(!(f.length<2)){var m=f[0],d=f[1],v=SuperMap.Plot.PlottingUtil.radian(m,d)*SuperMap.Plot.PlottingUtil.RTOD,O=SuperMap.Plot.PlottingUtil.circlePoint(m,M,M,v+90),U=SuperMap.Plot.PlottingUtil.circlePoint(m,M,M,v+270),w=[];if(w.push(O),w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w),!(b.length<2)){var L=b[b.length-1],_=b[b.length-2],V=SuperMap.Plot.PlottingUtil.radian(L,_)*SuperMap.Plot.PlottingUtil.RTOD,A=SuperMap.Plot.PlottingUtil.circlePoint(L,M,M,V+90),T=SuperMap.Plot.PlottingUtil.circlePoint(L,M,M,V+270);(w=[]).push(A),w.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w),this.addScalePoint(u),this.addScalePoint(O),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var r,a=e,s=[];for(r=0;r<o.length;r++)s.push(o[r]);var p,u=-1,c=0;for(r=0;r<s.length-1;r++){var P=[];P.push(s[r]),P.push(s[r+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(a,s[r],s[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(a,S);-1==u?(u=r,p=S,c=h):c>h&&(u=r,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(r=0;r<u;r++){var f=o[r],g=o[r+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var b=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(b,p))<0||y>n)return;var M=y/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol40900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0],o=t[1];e=2==t.length?o:t[2];var i=new SuperMap.Geometry.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMap.Plot.PlottingUtil.distance(i,e),r=.5*n,a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,e),s=a.pntLeft,p=a.pntRight,u=!(i.x>e.x),c=[];u?(c.push(l),c.push(s)):(c.push(l),c.push(p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var P=[];u?(P.push(o),P.push(p)):(P.push(o),P.push(s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var S,h,y,f,g=.37*n,b=SuperMap.Plot.PlottingUtil.linePnt(i,e,g),M=.09*n,m=[];m.push(b),m.push(new SuperMap.Geometry.Point(b.x,b.y+M)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,m),u?(S=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,i,b)).pntLeft,h=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*M,i,b)).pntLeft,y=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,S,h)).pntRight,f=a.pntLeft):(S=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,i,b)).pntRight,h=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*M,i,b)).pntRight,y=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,S,h)).pntRight,f=a.pntLeft);var d=[];d.push(S),d.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0});var v=[];v.push(y),v.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol32300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31400),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=0;e=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x-e,l.y-e),i=new SuperMap.Geometry.Point(l.x+e,l.y-3*e),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],n,!0);var r=new SuperMap.Geometry.Point(l.x-e,l.y+e),a=new SuperMap.Geometry.Point(l.x-3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[r,a],n,!0);var s=new SuperMap.Geometry.Point(l.x+e,l.y+e),p=new SuperMap.Geometry.Point(l.x+3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[s,p],n,!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=0;l=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var o=new SuperMap.Geometry.Point(e.x-l,e.y-l),i=new SuperMap.Geometry.Point(e.x+l,e.y+l);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31301=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]);var r=[],a=3*o;r.push(t[0]),r.push(t[1]);for(var s=SuperMap.Plot.PlottingUtil.paraLine(r,a,!0),p=SuperMap.Plot.PlottingUtil.paraLine(r,a,!1),u=[],c=0;c<s.length;c++)u.push(s[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[1],s[0]),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[0],s[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S.pntLeft,S.pntRight]);for(var h=[],y=0;y<p.length;y++)h.push(p[y]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[1],p[0]),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[0],p[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0===t){var n=l[0],r=e,a=SuperMap.Plot.PlottingUtil.distance(r,n)/o;this.scaleValues[0]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol31300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(Math.PI/2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.125),this.scaleValues.push(Math.PI/2)),3===this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),!(t.length<this.minEditPts)){for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[1]=i,this.scaleValues[3]=i}var n=this.scaleValues[1],r=180*this.scaleValues[2]/Math.PI,a=l*this.scaleValues[0],s=l*this.scaleValues[3],p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,a);if(-1!==p.index){var u=p.pt,c=e[p.index],P=e[p.index+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pt,h]);var y,f=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,g=l*n;0<this.subSymbols.length&&(y=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+r+180),this.computeSubSymbol(this.subSymbols[0],y,.8*g,S+r-180),this.addScalePoint(SuperMap.Plot.PlottingUtil.circlePoint(y,.5*g,.5*g,S+r+90),1)),y=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+30);var b=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+33),M=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,y,b]);M=SuperMap.Plot.PlottingUtil.clearSamePts(M);var m=SuperMap.Plot.PlottingUtil.polylineDistance(M),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.9*m,M);if(-1!==d.index){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M.slice(0,d.index));var v=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point(-.2*s,.05*s),U=new SuperMap.Geometry.Point(-.2*s,-.05*s),w=SuperMap.Plot.PlottingUtil.coordinateTrans(y,O,v+17),L=SuperMap.Plot.PlottingUtil.coordinateTrans(y,U,v+17),_={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,w,L],_);var V=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+330),A=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+327),T=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,V,A]);T=SuperMap.Plot.PlottingUtil.clearSamePts(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T.slice(0,d.index));var E=SuperMap.Plot.PlottingUtil.radian(h,V)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,O,E-17),j=SuperMap.Plot.PlottingUtil.coordinateTrans(V,U,E-17);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[V,x,j],_),this.addScalePoint(u,0),this.addScalePoint(h,2),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r,a,s,p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(p=SuperMap.Plot.PlottingUtil.clearSamePts(p),0===t){for(var u=[],c=0;c<p.length;c++)u.push(new SuperMap.Geometry.Point(p[c].x,p[c].y));for(var P=-1,S=0,h=new SuperMap.Geometry.Point(0,0),y=0;y<u.length-1;y++){var f=[];f.push(u[y]),f.push(u[y+1]);var g=SuperMap.Plot.PlottingUtil.projectPoint(e,u[y],u[y+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(g,f).index){var b=SuperMap.Plot.PlottingUtil.distance(e,g);-1==P?(P=y,h=g,S=b):S>b&&(P=y,h=g,S=b)}}if(-1==P||P>u.length-1)return;for(var M=0,m=0;m<P;m++)M+=SuperMap.Plot.PlottingUtil.distance(p[m],p[m+1]);if((M+=SuperMap.Plot.PlottingUtil.distance(p[P],h))<0||M>o)return;var d=M/o;this.scaleValues[0]=d}else if(1===t){var v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,o*this.scaleValues[0]);if(-1===v.index)return;n=v.pt,r=p[v.index],a=p[v.index+1],s=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD;var O=o*this.scaleValues[3],U=SuperMap.Plot.PlottingUtil.circlePoint(n,O,O,s+this.scaleValues[2]*SuperMap.Plot.PlottingUtil.RTOD+180),w=SuperMap.Plot.PlottingUtil.distance(U,e)/o*2;this.scaleValues[1]=w}else if(2===t){var L=o*this.scaleValues[0],_=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,L);if(-1===_.index)return;n=_.pt,r=p[_.index],a=p[_.index+1],s=SuperMap.Plot.PlottingUtil.radian(r,a);var V=SuperMap.Plot.PlottingUtil.radian(n,e)-s;this.scaleValues[2]=V}}}}]),e}();SuperMap.Plot.AlgoSymbol30800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30200),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1)),3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],r=i.pt,a=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,a),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,a),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,a),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,a),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=new SuperMap.Geometry.Point(.3*o,.1*o),b=new SuperMap.Geometry.Point(.3*o,-.1*o),M=SuperMap.Plot.PlottingUtil.coordinateTrans(n,g,a),m=SuperMap.Plot.PlottingUtil.coordinateTrans(n,b,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M,m]);var d=new SuperMap.Geometry.Point(.4*o,0),v=new SuperMap.Geometry.Point(.8*o,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,d,a),U=SuperMap.Plot.PlottingUtil.coordinateTrans(n,v,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,U]);var w=new SuperMap.Geometry.Point(.7*o,.025*o),L=new SuperMap.Geometry.Point(.7*o,-.025*o),_=SuperMap.Plot.PlottingUtil.coordinateTrans(n,w,a),V=SuperMap.Plot.PlottingUtil.coordinateTrans(n,L,a);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,_,V],f);var A=[];A.push(i.pt);for(var T=i.index+1;T<l.length;T++)A.push(l[T]);this.addArrow(A,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var E=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90);this.addScalePoint(E,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],r=i.pt,a=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,a),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,a),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,a),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,a),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=.1*o,b=new SuperMap.Geometry.Point(.3*o,0),M=SuperMap.Plot.PlottingUtil.circlePoint(b,g,g,135),m=SuperMap.Plot.PlottingUtil.circlePoint(b,g,g,225),d=SuperMap.Plot.PlottingUtil.coordinateTrans(n,b,a),v=SuperMap.Plot.PlottingUtil.coordinateTrans(n,M,a),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,m,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v,d,O]);var U=new SuperMap.Geometry.Point(.9*o,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(n,U,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[d,w]);var L=new SuperMap.Geometry.Point(.8*o,.025*o),_=new SuperMap.Geometry.Point(.8*o,-.025*o),V=SuperMap.Plot.PlottingUtil.coordinateTrans(n,L,a),A=SuperMap.Plot.PlottingUtil.coordinateTrans(n,_,a);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[w,V,A],f);var T=[];T.push(i.pt);for(var E=i.index+1;E<l.length;E++)T.push(l[E]);this.addArrow(T,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var x=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90);this.addScalePoint(x,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n=l[0],r=e,a=SuperMap.Plot.PlottingUtil.distance(r,n);if(0===t){var s=a/o;if(.06>s||.3<s)return;this.scaleValues[1]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol30200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,r=e*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==a.index){var s=a.pt,p=a.index,u=s,c=o[p],P=o[p+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,1.5*r,1.5*r,S+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,h]);var y=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(-.2*r,.05*r),g=new SuperMap.Geometry.Point(-.2*r,-.05*r),b=SuperMap.Plot.PlottingUtil.coordinateTrans(h,f,y),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,b,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var m=new SuperMap.Geometry.Point(.6*r,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,y),v=.4*r*this.scaleValues[5],O=.4*r*this.scaleValues[6],U=new SuperMap.Geometry.Point(0,-.9*(v-.25*O)),w=new SuperMap.Geometry.Point(0,.9*(v-.25*O)),L=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,y),_=SuperMap.Plot.PlottingUtil.coordinateTrans(d,w,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[L,_]);var V=new SuperMap.Geometry.Point(0,v),A=SuperMap.Plot.PlottingUtil.coordinateTrans(d,V,y),T=new SuperMap.Geometry.Point(0,.25*O),E=new SuperMap.Geometry.Point(.5*O,0),x=new SuperMap.Geometry.Point(0,-.25*O),j=new SuperMap.Geometry.Point(-.5*O,0),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(A,T,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(A,E,y),I=SuperMap.Plot.PlottingUtil.coordinateTrans(A,x,y),B=SuperMap.Plot.PlottingUtil.coordinateTrans(A,j,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[Y,C,I,B,Y]);var R=new SuperMap.Geometry.Point(0,-v),G=SuperMap.Plot.PlottingUtil.coordinateTrans(d,R,y),N=SuperMap.Plot.PlottingUtil.coordinateTrans(G,T,y),D=SuperMap.Plot.PlottingUtil.coordinateTrans(G,E,y),k=SuperMap.Plot.PlottingUtil.coordinateTrans(G,x,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(G,j,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[N,D,k,z,N]),this.addScalePoint(s,0),this.addScalePoint(h,1);var F=new SuperMap.Geometry.Point(0,-v),K=SuperMap.Plot.PlottingUtil.coordinateTrans(d,F,y);this.addScalePoint(K,2),this.addScalePoint(B,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r,a,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(h=SuperMap.Plot.PlottingUtil.clearSamePts(h),0===t){for(var y=[],f=0;f<h.length;f++)y.push(new SuperMap.Geometry.Point(h[f].x,h[f].y));for(var g=-1,b=0,M=new SuperMap.Geometry.Point(0,0),m=0;m<y.length-1;m++){var d=[];d.push(y[m]),d.push(y[m+1]);var v=SuperMap.Plot.PlottingUtil.projectPoint(e,y[m],y[m+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(v,d).index){var O=SuperMap.Plot.PlottingUtil.distance(e,v);-1==g?(g=m,M=v,b=O):b>O&&(g=m,M=v,b=O)}}if(-1==g||g>y.length-1)return;n=0;for(var U=0;U<g;U++)n+=SuperMap.Plot.PlottingUtil.distance(h[U],h[U+1]);if((n+=SuperMap.Plot.PlottingUtil.distance(h[g],M))<0||n>o)return;var w=n/o;this.scaleValues[0]=w}else if(1===t){r=o*this.scaleValues[0];var L=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,r);if(-1===L.index)return;a=L.pt,s=h[L.index],p=h[L.index+1],u=SuperMap.Plot.PlottingUtil.radian(s,p);var _=(S=SuperMap.Plot.PlottingUtil.radian(a,e))-u;this.scaleValues[1]=_;var V=(n=SuperMap.Plot.PlottingUtil.distance(a,e))/o/1.5;this.scaleValues[2]=V}else if(2===t){if(r=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,r)).index)return;P=a.pt,s=h[a.index],p=h[a.index+1],u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI;var A=SuperMap.Plot.PlottingUtil.circlePoint(P,.4*n,.4*n,u+c),T=SuperMap.Plot.PlottingUtil.distance(e,A)/(.4*n);this.scaleValues[5]=T}else if(3===t){if(r=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,r)).index)return;P=a.pt,s=h[a.index],p=h[a.index+1],S=(u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI)+c;var E=new SuperMap.Geometry.Point(.6*n,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(P,E,S),j=.4*n*this.scaleValues[5],Y=new SuperMap.Geometry.Point(0,j),C=SuperMap.Plot.PlottingUtil.coordinateTrans(x,Y,S),I=2*SuperMap.Plot.PlottingUtil.distance(C,e)/(.4*n);this.scaleValues[6]=I}}}}]),e}();SuperMap.Plot.AlgoSymbol30100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30001),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==a.index){var s=a.pt,p=new SuperMap.Geometry.Point(e[a.index].x,e[a.index].y),u=new SuperMap.Geometry.Point(e[a.index+1].x,e[a.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,c+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*r,.2*r,S-157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*r,.2*r,S+157.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,h,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),g=this.getLeftSubSymbolPts(f),b=e[0].clone(),M=-1,m=null,d=1;d<e.length;d++)if(SuperMap.Plot.PlottingUtil.distance(b,e[d])>.5*f){M=d-1,m=SuperMap.Plot.PlottingUtil.linePnt(b,e[d],.5*f);break}-1===M&&(M=e.length-1,m=e[e.length-1]);var v=null;if(null!==m){for(var O=180*SuperMap.Plot.PlottingUtil.radian(b,m)/Math.PI,U=[],w=0;w<g.length;w++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(b,g[w],O));v=U[3].clone(),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}for(var L=this.getRightSubSymbolPts(f),_=e[e.length-1].clone(),V=-1,A=null,T=e.length-2;T>=0;T--)if(SuperMap.Plot.PlottingUtil.distance(_,e[T])>.5*f){V=T,A=SuperMap.Plot.PlottingUtil.linePnt(_,e[T],.5*f);break}if(-1===V&&(V=0,A=e[0]),null!==A){for(var E=180*SuperMap.Plot.PlottingUtil.radian(_,A)/Math.PI,x=[],j=0;j<L.length;j++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(_,L[j],E));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x)}if(M<=V){var Y=[];Y.push(m);for(var C=M+1;C<=V;C++)Y.push(e[C]);Y.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y)}this.addScalePoint(s),this.addScalePoint(P),null!==v&&this.addScalePoint(v),this.finish()}}}},{key:"getRightSubSymbolPts",value:function(t){var e=.25*t,l=[];return l.push(new SuperMap.Geometry.Point(0,2*e)),l.push(new SuperMap.Geometry.Point(2*e,2*e)),l.push(new SuperMap.Geometry.Point(2*e,-e)),l.push(new SuperMap.Geometry.Point(0,-2*e)),l.push(new SuperMap.Geometry.Point(0,2*e)),l}}]),e}();SuperMap.Plot.AlgoSymbol30002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var r=this.getSubSymbolScaleValue();this.scaleValues[2]=r}var a=e*this.scaleValues[2],s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMap.Geometry.Point(o[s.index].x,o[s.index].y),c=new SuperMap.Geometry.Point(o[s.index+1].x,o[s.index+1].y),P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p,S]);var h=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,y=new SuperMap.Geometry.Point(-.2*a,.05*a),f=new SuperMap.Geometry.Point(-.2*a,-.05*a),g=SuperMap.Plot.PlottingUtil.coordinateTrans(S,y,h),b=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,h);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,g,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addScalePoint(p,0),this.addScalePoint(S,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var r=-1,a=0,s=new SuperMap.Geometry.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var c=SuperMap.Plot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c,u).index){var P=SuperMap.Plot.PlottingUtil.distance(e,c);-1==r?(r=p,s=c,a=P):a>P&&(r=p,s=c,a=P)}}if(-1==r||r>o.length-1)return;i=0;for(var S=0;S<r;S++)i+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[r],s))<0||i>n)return;var h=i/n;this.scaleValues[0]=h}else if(1===t){var y=n*this.scaleValues[0],f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,y);if(-1===f.index)return;var g=f.pt,b=o[f.index],M=o[f.index+1],m=SuperMap.Plot.PlottingUtil.radian(b,M),d=SuperMap.Plot.PlottingUtil.radian(g,e)-m;this.scaleValues[1]=d;var v=(i=SuperMap.Plot.PlottingUtil.distance(g,e))/n;this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol30000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 10!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.4),l.scaleValues.push(.4),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var o,i=e*this.scaleValues[4],n=e*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],r+n);o=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],a));var s,p=e*this.scaleValues[6],u=e*this.scaleValues[7],c=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],r+u);s=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],c));var P=[];P.push(new SuperMap.Geometry.Point(o.pntLeft.x,o.pntLeft.y)),P.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),P.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),P.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var S=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);S=SuperMap.Plot.PlottingUtil.clearSamePts(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addScalePoint(o.pntLeft,3),this.addScalePoint(s.pntRight,4),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[0],l[1]);if(t<=2&&SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments),3===t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o,r=SuperMap.Plot.PlottingUtil.distance(i,l[0])/o;this.scaleValues[4]=n,this.scaleValues[5]=r,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var a=SuperMap.Plot.PlottingUtil.distance(e,i)/o,s=SuperMap.Plot.PlottingUtil.distance(i,l[1])/o;this.scaleValues[6]=a,this.scaleValues[7]=s,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[9]=1:this.scaleValues[9]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol29800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.3),this.scaleValues.push(1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e,l,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.distance(o,i),r=this.scaleValues[0],a=this.scaleValues[1];if(SuperMap.Plot.PlottingUtil.equalFuzzy(1,a))e=SuperMap.Plot.PlottingUtil.radian(o,i)+270*SuperMap.Plot.PlottingUtil.DTOR;else e=SuperMap.Plot.PlottingUtil.radian(o,i)+90*SuperMap.Plot.PlottingUtil.DTOR,l=o,o=i,i=l;var s=n*r*.67,p=SuperMap.Plot.PlottingUtil.circlePoint(o,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,n*r,e*SuperMap.Plot.PlottingUtil.RTOD);var u=SuperMap.Plot.PlottingUtil.circlePoint(i,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],u,n*r,e*SuperMap.Plot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMap.Plot.PlottingUtil.RTOD,P=n*r,S=t[0].clone(),h=SuperMap.Plot.PlottingUtil.circlePoint(S,P,P,c);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l))[0].clone(),i=l[1].clone(),n=e.clone(),r=SuperMap.Plot.PlottingUtil.distance(o,i),a=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i)/r;if(a<0||SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;this.scaleValues[0]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,n)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}]),e}();SuperMap.Plot.AlgoSymbol28301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],o,i,0),this.scalePoints=[];var n=SuperMap.Plot.PlottingUtil.circlePoint(o,i,i,0);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=SuperMap.Plot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol28300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28200=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,i=0,n=0;n<t.length-1;n++)i+=SuperMap.Plot.PlottingUtil.distance(e,l);var r=this.scaleValues[0]*i;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[e,new SuperMap.Geometry.Point(e.x+r,e.y)],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var a=180*this.scaleValues[1]/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o-a),p=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o+a);this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,[s,l,p],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],t[1]],{surroundLineFlag:!1},!0);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,o-90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,s],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var c=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,o+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,p],{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c],{surroundLineFlag:!1},!0);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,o+180);this.addScalePoint(new SuperMap.Geometry.Point(P.x,P.y),0),this.addScalePoint(p,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===t){var a=SuperMap.Plot.PlottingUtil.distance(o,e)/r;this.scaleValues[0]=a}if(1===t){var s=180*SuperMap.Plot.PlottingUtil.radian(o,e)/Math.PI,p=Math.abs(s-n);if(p>270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}]),e}();SuperMap.Plot.AlgoSymbol28100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n,r,a,s=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,p=new SuperMap.Geometry.Point(t[0].x,t[0].y),u=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=new SuperMap.Geometry.Point(0,0);if(2<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var S=0;S<e.length;S++)n.push(new SuperMap.Geometry.Point(e[S].x,e[S].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),r=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),P=new SuperMap.Geometry.Point(r.x,r.y),(a=[]).push(t[0]),a.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var h=new SuperMap.Geometry.Point(0,0);if(3<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[2].x,t[2].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i)));var y=[];if(0==e.length)return void(y.length>0&&(y=[]));(n=[]).push(t[0]);for(var f=0;f<e.length;f++)n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});for(var g=new SuperMap.Geometry.Point(t[1].x,t[1].y),b=SuperMap.Plot.PlottingUtil.distance(p,g)*this.scaleValues[0],M=[],m=90;m<=270;m+=3)M.push(SuperMap.Plot.PlottingUtil.circlePoint(p,b,b,c+m));n=[];for(var d=M.length-1;d>=0;d--)n.push(new SuperMap.Geometry.Point(M[d].x,M[d].y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(M[0].x,M[0].y)),n.push(new SuperMap.Geometry.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(e[0].x,e[0].y)),n.push(new SuperMap.Geometry.Point(M[M.length-1].x,M[M.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),r=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),h=new SuperMap.Geometry.Point(r.x,r.y),(a=[]).push(P),a.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var v=new SuperMap.Geometry.Point(0,0);if(4<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[3].x,t[3].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<=c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var O=0;O<e.length;O++)n.push(new SuperMap.Geometry.Point(e[O].x,e[O].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),r=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),v=new SuperMap.Geometry.Point(r.x,r.y),(a=[]).push(h),a.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var U=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],w=SuperMap.Plot.PlottingUtil.circlePoint(p,U,U,c+180);this.addScalePoint(w,0)}var L=SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),_=SuperMap.Plot.PlottingUtil.circlePoint(p,L,L,c+s);this.addScalePoint(_,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l,o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),0==t){if(3>o.length)return;var i=new SuperMap.Geometry.Point(o[0].x,o[0].y),n=new SuperMap.Geometry.Point(e.x,e.y),r=SuperMap.Plot.PlottingUtil.distance(i,n),a=new SuperMap.Geometry.Point(o[1].x,o[1].y);if((l=r/SuperMap.Plot.PlottingUtil.distance(i,a))>=2.5)return;this.scaleValues[0]=l}else if(1==t){var s=new SuperMap.Geometry.Point(o[0].x,o[0].y),p=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y),u=SuperMap.Plot.PlottingUtil.radian(s,p),c=new SuperMap.Geometry.Point(e.x,e.y);if(l=SuperMap.Plot.PlottingUtil.radian(s,c)-u,(l=Math.abs(l))>Math.PI/2&&l<3*Math.PI/2)return;l>3*Math.PI/2&&l<=2*Math.PI&&(l=2*Math.PI-l),this.scaleValues[1]=Math.abs(l)}}}}]),e}();SuperMap.Plot.AlgoSymbol28000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=.1*i,r=.5*n,a=this.computeDashLine(n,r,e),s=.01*i,p=0;p<a.length;p++)l=SuperMap.Plot.PlottingUtil.paraLine(a[p],s,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),o=SuperMap.Plot.PlottingUtil.paraLine(a[p],s,!1),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=[],r=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=l[0].clone(),s=1,p=0,u=!0,c=!0;p<r;){var P;(i=[]).push(a),p+=t;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=S.index,o=S.pts,!(u=S.bfind))break;if(s<P)for(var h=s;h<P;h++)i.push(l[h]);i.push(o),n.push(i),p+=e;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=y.index,a=y.pts,s=P+1,!(c=y.bfind))break}if(!u){(i=[]).push(a);for(var f=s;f<l.length;f++)i.push(l[f]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||n.push(i)}if(!c){var g=l[l.length-1],b=SuperMap.Plot.PlottingUtil.distance(o,g);if(b*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(b,0)){var M=SuperMap.Plot.PlottingUtil.linePnt(g,o,b);(i=[]).push(M),i.push(g),n.push(i)}}return n}}]),e}();SuperMap.Plot.AlgoSymbol26601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26600=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=.1*SuperMap.Plot.PlottingUtil.polylineDistance(e),o=.5*l;this.computeDashLine(l,o,e),this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=l[0].clone(),a=1,s=0,p=!0,u=!0;s<n;){var c;(i=[]).push(r),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=P.index,o=P.pts,!(p=P.bfind))break;if(a<c)for(var S=a;S<c;S++)i.push(l[S]);i.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),s+=e;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=h.index,r=h.pts,a=c+1,!(u=h.bfind))break}if(!p){(i=[]).push(r);for(var y=a;y<l.length;y++)i.push(l[y]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],g=SuperMap.Plot.PlottingUtil.distance(o,f);if(g*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(g,0)){var b=SuperMap.Plot.PlottingUtil.linePnt(f,o,g);(i=[]).push(b),i.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMap.Plot.AlgoSymbol26600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,l/2);if(-1!==o.index){var i=o.pt,n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n;var r=1.5*this.scaleValues[0]*l,a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[o.index],i),s=[];s.push(a.pntLeft),s.push(i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,null,!0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol26500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));for(var i=this.getLinePts(e,this.scaleValues[0]),n=this.getLinePts(e,1.2*this.scaleValues[0]),r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt),a=[],s=[],p=0;p<=n.startIndex;p++)a.push(e[p]);if(a.push(n.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),n.endIndex<=e.length){s.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}var c=e[0],P=e[1],S=e[e.length-2],h=e[e.length-1],y=.3*r,f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,P,c),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,S,h),b=f.pntLeft,M=g.pntLeft,m=[];m.push(c),m.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=[];d.push(h),d.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),U=new SuperMap.Geometry.Point(.1*r,0),w=new SuperMap.Geometry.Point(.5*r,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(O,U,v),_=SuperMap.Plot.PlottingUtil.coordinateTrans(O,w,v),V=[];V.push(L),V.push(_);var A={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,A);var T=new SuperMap.Geometry.Point(.35*r,0),E=SuperMap.Plot.PlottingUtil.circlePoint(T,.2*r,.2*r,135),x=SuperMap.Plot.PlottingUtil.circlePoint(T,.2*r,.2*r,225),j=SuperMap.Plot.PlottingUtil.coordinateTrans(O,T,v),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(O,E,v),C=SuperMap.Plot.PlottingUtil.coordinateTrans(O,x,v);(V=[]).push(Y),V.push(j),V.push(C),A={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,A);var I=new SuperMap.Geometry.Point(-.1*r,0),B=new SuperMap.Geometry.Point(-.5*r,-.15*r),R=new SuperMap.Geometry.Point(-.5*r,.15*r),G=SuperMap.Plot.PlottingUtil.coordinateTrans(O,I,v),N=SuperMap.Plot.PlottingUtil.coordinateTrans(O,B,v),D=SuperMap.Plot.PlottingUtil.coordinateTrans(O,R,v);(V=[]).push(G),V.push(N),V.push(D),V.push(G),A={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,A);var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),z=SuperMap.Plot.PlottingUtil.circlePoint(k.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,v);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol25400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.222222),l.scaleValues.push(.5),l.scaleValues.push(.5),l.scaleValues.push(.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),r=new SuperMap.Geometry.Point(0,o*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*a),u=new SuperMap.Geometry.Point(o*(1-s),o*a),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(r);for(var b=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],f*SuperMap.Plot.PlottingUtil.RTOD);b.push(m)}for(var d=[],v=b.length-1;v>=0;--v)d.push(b[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.scalePoints=[];var O=b[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=b[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var w=b[2].clone();w.isScalePoint=!0,w.tag=2,this.scalePoints.push(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),r=l[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var p=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var c=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol25000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=100*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l,u=new SuperMap.Geometry.Point((a.pts.x+r.pts.x)/2,(r.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,p,s),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol25200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var i=0;i<4;i++){var n=i*(o.length-1)/4,r=new SuperMap.Geometry.Point(o[n].x,o[n].y),a=new SuperMap.Geometry.Point(o[n+1].x,o[n+1].y),s=new SuperMap.Geometry.Point((r.x+a.x)/2,(r.y+a.y)/2),p=180*SuperMap.Plot.PlottingUtil.radian(s,a)/Math.PI,u=e*this.scaleValues[0]/2,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s,4*u,4*u,p+270),S=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,P,S],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMap.Geometry.Point(l[i].x,l[i].y),r=new SuperMap.Geometry.Point(l[i+1].x,l[i+1].y),a=new SuperMap.Geometry.Point((n.x+r.x)/2,(n.y+r.y)/2),s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMap.Plot.PlottingUtil.circlePoint(a,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(a,4*p,4*p,s+270),P=SuperMap.Plot.PlottingUtil.circlePoint(a,p,p,s+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c,P])}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t.length,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=[];2==l?(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),n.push.apply(n,e)):3==l&&(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),n=n.concat(e));var r,a=new SuperMap.Geometry.Point(.8*o,.1*o),s=new SuperMap.Geometry.Point(1.2*o,.1*o),p=new SuperMap.Geometry.Point(1.2*o,.1*-o),u=new SuperMap.Geometry.Point(.9*o,.1*-o),c=[];c.push(a),c.push(s),c.push(p),c.push(u);var P=[],S=0;for(S=0;S<4;S++)r=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),P.push(r);var h=new SuperMap.Geometry.Point(-.8*o,.1*o),y=new SuperMap.Geometry.Point(-1.2*o,.1*o),f=new SuperMap.Geometry.Point(-1.1*o,.1*-o),g=new SuperMap.Geometry.Point(-.8*o,.1*-o);(c=[]).push(h),c.push(y),c.push(f),c.push(g);var b=[];for(S=0;S<4;S++)r=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),b.push(r);var M,m=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],3*o),d=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],2*o),v=[];for(S=0;S<n.length-1;S++){var O=SuperMap.Plot.PlottingUtil.intersectLines(n[S],n[S+1],m,d);O.isIntersectLines&&(M=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(O.intersectPoint,n)).isOnPolyLine&&v.push(O.intersectPoint)}if(!(0>=v.length)&&(M=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(v[0],n)).isOnPolyLine){var U=[];for(S=M.index+1;S<n.length;S++)U.push(n[S]);for(S=0;S<=M.index;S++)U.push(n[S]);var w=[],L=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(P,v[0])?(w.push.apply(w,P),L.push.apply(L,b)):(w.push.apply(w,b),L.push.apply(L,P));var _=[],V=[];for(M=-1,S=0;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S])){M=S;break}_.push(U[S])}if(-1!==M)for(S=M;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S]))break;V.push(U[S])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),this.addLine(_),this.addLine(V),this.finish()}}}},{key:"addLine",value:function(t){for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=0;l<t.length-2;l++){var o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.02*e,t);if(-1!==o.index){var i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*e,t);if(-1!==i.index){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.92*e,t);if(-1!==n.index&&(l===o.index||l===o.index+1||l===n.index||l===n.index+1||l===i.index||l===i.index+1)){var r=SuperMap.Plot.PlottingUtil.radian(t[l+1],t[l])*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.circlePoint(t[l+1],.02*e,.02*e,r+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[l+1],a])}}}}}}]),e}();SuperMap.Plot.AlgoSymbol29000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var i=e[0],n=e[1],r=e[e.length-2],a=e[e.length-1],s=l*this.scaleValues[0]*.6,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,n,i),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,r,a),c=p.pntLeft,P=u.pntRight,S=[];S.push(i),S.push(c);for(var h=new SuperMap.Geometry.Point((i.x+c.x)/2,(i.y+c.y)/2),y=SuperMap.Plot.PlottingUtil.polylineDistance(S)/2,f=[],g=180*SuperMap.Plot.PlottingUtil.radian(n,i)/Math.PI,b=270+g;b<=360+g;b+=3)f.push(SuperMap.Plot.PlottingUtil.circlePoint(h,y,y,b));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var M=[];M.push(a),M.push(P);var m=[];m.push(a),m.push(P);for(var d=new SuperMap.Geometry.Point((a.x+P.x)/2,(a.y+P.y)/2),v=SuperMap.Plot.PlottingUtil.polylineDistance(m)/2,O=[],U=180*SuperMap.Plot.PlottingUtil.radian(a,P)/Math.PI,w=90+U;w<=180+U;w+=3)O.push(SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,w));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23902=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n=[];if(2==t.length){e=t[0],l=t[1];var r=SuperMap.Plot.PlottingUtil.distance(e,l);i=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,o=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,i+60),n.push(e),n.push(o),n.push(l)}else n=n.concat(t);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),n.push(n[0]);var a=SuperMap.Plot.PlottingUtil.polylineDistance(n),s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],c=this.scaleValues[4],P=a*s;e=n[0],l=n[1],o=n[2];var S,h=a*p,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(e,l,o)/Math.PI*u,f=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,g=f-y,b=f+y,M=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,b);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(n,M)?M:m;var d=a*this.scaleValues[3];i=c,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,d,i-90);var v=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,f+180);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*d,.5*d,i);this.addScalePoint(O),this.createArcPts(n,P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,r,a,s,p,u=[];2==l.length?(o=l[0],i=l[1],a=SuperMap.Plot.PlottingUtil.distance(o,i),r=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,n=SuperMap.Plot.PlottingUtil.circlePoint(o,a,a,r+60),u.push(o),u.push(i),u.push(n)):u=u.concat(l),o=u[0],i=u[1],n=u[2],u.push(u[0]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(u),P=e;if(0===t)a=SuperMap.Plot.PlottingUtil.distance(P,u[0]),this.scaleValues[0]=a/c;else if(1===t){s=SuperMap.Plot.PlottingUtil.distance(P,u[0])/c,this.scaleValues[1]=s,r=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI,0<=(p=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,P)/Math.PI/r)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){s=this.scaleValues[1],p=this.scaleValues[2];var S,h=c*s,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI*p,f=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,g=f-y,b=f+y,M=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,b);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,M)?M:m;var d=2*SuperMap.Plot.PlottingUtil.distance(P,S)/c;this.scaleValues[3]=d;var v=180*SuperMap.Plot.PlottingUtil.radian(S,P)/Math.PI;this.scaleValues[4]=v}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,r=l[0],a=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,r,a)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(a,r,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,a,o)?((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,s,o)?((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}},{key:"createArcPts",value:function(t,e){for(var l=[],o=[],i=0;i<t.length;i++)o.push(e),l.push([{Start:0,End:360}]);for(var n=0;n<t.length;n++)if(0!==l[n].length&&(0!==l[n][0].Start||0!==l[n][0].End))for(var r=n+1;r<t.length;r++)if(0!==l[r].length&&(0!==l[r][0].Start||0!==l[r][0].End)){var a=SuperMap.Plot.PlottingUtil.distance(t[n],t[r]);if(a<o[n]+o[r])if(a>Math.abs(o[n]-o[r]))for(var s=0;s<2;s++){var p,u,c;0==s?(c=n,p=SuperMap.Plot.PlottingUtil.radian(t[n],t[r])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((a*a+o[n]*o[n]-o[r]*o[r])/(2*a*o[n]))*SuperMap.Plot.PlottingUtil.RTOD):(c=r,p=SuperMap.Plot.PlottingUtil.radian(t[r],t[n])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((a*a+o[r]*o[r]-o[n]*o[n])/(2*a*o[r]))*SuperMap.Plot.PlottingUtil.RTOD);var P=p-u,S=p+u,h=P<0&&S>0||P>360||S>360;P=this.adjustAngle(P),S=this.adjustAngle(S);for(var y=l[c].length-1;y>=0;y--)if(h){if(S>l[c][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(S,l[c][y].End)){l[c].splice(y,1);continue}if(S>l[c][y].Start&&(l[c][y].Start=S),P<l[c][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(P,l[c][y].Start)){l[c].splice(y,1);continue}P<l[c][y].End&&(l[c][y].End=P)}else if(P<l[c][y].Start&&S>l[c][y].End)l[c].splice(y,1);else if(P>l[c][y].Start&&S<l[c][y].End)l[c].push({Start:l[c][y].Start,End:P}),l[c].push({Start:S,End:l[c][y].End}),l[c].splice(y,1);else{if(P>l[c][y].End)continue;if(P>l[c][y].Start&&(l[c][y].End=P),S<l[c][y].Start)continue;S<l[c][y].End&&(l[c][y].Start=S)}}else{if(o[n]<o[r]){l[n][0].Start=0,l[n][0].End=0;break}l[r][0].Start=0,l[r][0].End=0}}for(var f=0;f<t.length;f++)if(0!==l[f].length&&(0!==l[f][0].Start||0!==l[f][0].End))for(var g=l[f].length-1;g>=0;g--){for(var b=this.adjustAngle(l[f][g].Start),M=this.adjustAngle(l[f][g].End);M<b;)M+=360;for(var m=[],d=(M-b)/72,v=b;v<M+d/2;v+=d){var O=t[f].x+o[f]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),U=t[f].y+o[f]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);m.push(new SuperMap.Geometry.Point(O,U))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,l,o){var i=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,n=180*SuperMap.Plot.PlottingUtil.radian(t,l)/Math.PI,r=i;n>i&&(r=n);for(var a=[],s=r;s<360+r;s+=4)90==s&&(s=91),a.push(SuperMap.Plot.PlottingUtil.circlePoint(t,o,o,s));return a.push[0],a}},{key:"CreatArc",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var r=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,r)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,r)?(i.length>1&&o.push(i),i=[]):i.push(r)}i.length>1&&o.push(i);for(var a=0;a<o.length;a++){var s=o[a];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}},{key:"GetArcPts3D",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var r=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,r)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,r)?(i.length>1&&o.push(i),i=[]):i.push(r)}i.length>1&&o.push(i);for(var a=[],s=0;s<o.length;s++)a=a.concat(o[s]);return a}},{key:"sortPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);for(var l=0;l<e.length;l++)for(var o=e[l],i=180*SuperMap.Plot.PlottingUtil.radian(t,o)/Math.PI,n=0;n<e.length;n++){var r=e[n],a=180*SuperMap.Plot.PlottingUtil.radian(t,r)/Math.PI;if(i>a){var s=new SuperMap.Geometry.Point(o.x,o.y);o=new SuperMap.Geometry.Point(r.x,r.y),r=new SuperMap.Geometry.Point(s.x,s.y),i=a,e[l]=o,e[n]=r}}return e}}]),e}();SuperMap.Plot.AlgoSymbol23902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=[];if(2==t.length){var o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);e=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;var r=SuperMap.Plot.PlottingUtil.circlePoint(o,n,n,e+60);l.push(t[0]),l.push(i),l.push(r),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var a=0;a<t.length;a++)l.push(t[a])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.scaleValues[2]=2*u*this.getSubSymbolScaleValue()/p}var c=this.scaleValues[0],P=this.scaleValues[1],S=this.scaleValues[2],h=this.scaleValues[3],y=this.ComputeSubSymbolPt(c,P,l,s),f=p*S,g=y;e=h-90,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,f,e),this.addScalePoint(g);var b=SuperMap.Plot.PlottingUtil.circlePoint(y,f,f,h);this.addScalePoint(b),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,r=[];if(2==l.length){o=l[0],i=l[1];var a=SuperMap.Plot.PlottingUtil.distance(o,i),s=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;n=SuperMap.Plot.PlottingUtil.circlePoint(o,a,a,s+60),r.push(o),r.push(i),r.push(n)}else r=r.concat(l);o=r[0],i=r[1],n=r[2];var p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(r);r.push(r[0]);var u=SuperMap.Plot.PlottingUtil.polylineDistance(r),c=e;if(0==t){var P=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i),S=SuperMap.Plot.PlottingUtil.plumbLineLen(i,o,n),h=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,i)/P,y=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,n)/S;h>1&&(h=1),y>1&&(y=1),this.scaleValues[0]=h,this.scaleValues[1]=y}else if(1==t){var f=this.scaleValues[0],g=this.scaleValues[1],b=this.ComputeSubSymbolPt(f,g,r,p),M=SuperMap.Plot.PlottingUtil.distance(b,c)/u;this.scaleValues[2]=M;var m=180*SuperMap.Plot.PlottingUtil.radian(b,c)/Math.PI;this.scaleValues[3]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,r=l[0],a=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,r,a)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(a,r,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,a,o)?((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,s,o)?((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}}]),e}();SuperMap.Plot.AlgoSymbol23901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol23800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);if(this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0){if(this.subSymbols[0].symbolData)for(var u in this.subSymbols[0].symbolData.innerCells)this.subSymbols[0].symbolData.innerCells[u].type===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL&&(this.subSymbols[0].symbolData.innerCells[u].type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.computeSubSymbol(this.subSymbols[0],p,s,0)}this.addScalePoint(p);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-r.x)/a,this.scaleValues[2]=i,n=(e.y-r.y)/a,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(r.x+a*i,r.y+a*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/a;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),r=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=r*i,s=new SuperMap.Geometry.Point(n.x+r*l,n.y+r*o);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,a,0),this.addScalePoint(s);var p=SuperMap.Plot.PlottingUtil.circlePoint(s,a,a,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-r.x)/a,this.scaleValues[0]=i,n=(e.y-r.y)/a,this.scaleValues[1]=n;else if(1===t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+a*i,r.y+a*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/a;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.03):1===this.scaleValues.length&&(this.scaleValues[1]=.02),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=e[0],S=e[1],h=e[e.length-2],y=e[e.length-1],f=l*this.scaleValues[1],g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,S,P),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,h,y),M=g.pntLeft,m=b.pntLeft,d=[];d.push(P),d.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(y),v.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMap.Plot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol22000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,r=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+90),a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,n),p=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,n),u=[];u.push(p),u.push(a),u.push(r),u.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+90),P=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+270),S=SuperMap.Plot.PlottingUtil.circlePoint(c,l,l,n+180),h=SuperMap.Plot.PlottingUtil.circlePoint(P,l,l,n+180);(u=[]).push(S),u.push(c),u.push(P),u.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addScalePoint(r),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l.subText="",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var r=n.pt,a=[],s=0,p=0;p<n.index+1;p++)a.push(e[p]),p>0&&(s+=SuperMap.Plot.PlottingUtil.distance(a[p],a[p-1]));var u,c,P=i-s,S=l*this.scaleValues[1],h=[];if(P>=S){u=SuperMap.Plot.PlottingUtil.linePnt(r,e[n.index],S),a.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),c=SuperMap.Plot.PlottingUtil.linePnt(r,e[n.index+1],S),h.push(c);for(var y=e.length,f=n.index+1;f<y;++f)h.push(e[f]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}else{for(var g,b,M=-1,m=a.length-1;m>=0;m--)if(g=new SuperMap.Geometry.Point(a[m].x,a[m].y),b=new SuperMap.Geometry.Point(r.x,r.y),SuperMap.Plot.PlottingUtil.distance(g,b)>S){M=m;break}if(-1==M)return;a.splice(M+1,a.length-1-M),u=SuperMap.Plot.PlottingUtil.linePnt(r,e[M],S),a.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);for(var d=-1,v=n.index;v<e.length;v++)if(g=new SuperMap.Geometry.Point(e[v].x,e[v].y),b=new SuperMap.Geometry.Point(r.x,r.y),SuperMap.Plot.PlottingUtil.distance(g,b)>S){d=v;break}if(-1==d)return;c=SuperMap.Plot.PlottingUtil.linePnt(r,e[d],S),h.push(c);for(var O=d+1;O<e.length;++O)h.push(e[O]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}if(!(a.length<2)){for(var U=0,w=0;w<t.length-1;w++)U+=SuperMap.Plot.PlottingUtil.distance(t[w],t[w+1]);var L=U*this.scaleValues[0],_=new SuperMap.Geometry.Point(a[0].x,a[0].y),V=new SuperMap.Geometry.Point(a[1].x,a[1].y),A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,V,_),T=[];if(T.push(A.pntLeft),T.push(A.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T),!(h.length<2)){var E=new SuperMap.Geometry.Point(h[h.length-1].x,h[h.length-1].y),x=new SuperMap.Geometry.Point(h[h.length-2].x,h[h.length-2].y),j=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,x,E);(T=[]).push(j.pntLeft),T.push(j.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var Y=u,C=c,I=180*SuperMap.Plot.PlottingUtil.radian(Y,C)/Math.PI,B=SuperMap.Plot.PlottingUtil.distance(Y,C),R=new SuperMap.Geometry.Point((u.x+c.x)/2,(u.y+c.y)/2),G=this.subText;this.addText(G,R,B,I),this.addScalePoint(A.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21504=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21503=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol21502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),e}();SuperMap.Plot.AlgoSymbol21502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=l*this.scaleValues[0]*.5,S=SuperMap.Plot.PlottingUtil.circlePoint(n,P,P,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.01,l.scaleValues[3]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=.01,this.scaleValues[3]=.02):1===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.01),this.scaleValues.push(.25*this.getSubSymbolScaleValue())),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[3]=.5*o}for(var i=this.getLinePts(e,this.scaleValues[0]),n=[],r=[],a=0;a<=i.startIndex;a++)n.push(e[a]);if(n.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),i.endIndex<=e.length){r.push(i.endPt);for(var s=i.endIndex+1;s<=e.length-1;s++)r.push(e[s]);this.addArrow(r,this.scaleValues[this.scaleValues.length-1])}var p,u,c,P,S,h,y,f,g,b,M,m,d,v=i.startPt.clone(),O=i.endPt.clone(),U=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),w=SuperMap.Plot.PlottingUtil.distance(v,O),L=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD;p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0),h=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),b=new SuperMap.Geometry.Point(0,0),M=new SuperMap.Geometry.Point(0,0),m=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0),v.x>=O.x?(p.x=.25*w,p.y=.25*-w,u.x=.5*-w,u.y=.25*-w,c.x=.5*-w,c.y=.25*w,P.x=.5*w,P.y=.25*w,S.x=.5*w,S.y=0,h.x=.25*-w,h.y=.125*-w,y.x=0,y.y=.125*w,f.x=0,f.y=.125*-w,g.x=.25*w,g.y=.2*w,b.x=.25*-w,b.y=.25*-w,M.x=.375*-w,M.y=.5*-w,m.x=.02*-w,m.y=.25*-w,d.x=.1*w,d.y=.5*-w):(p.x=.25*w,p.y=.25*w,u.x=.5*-w,u.y=.25*w,c.x=.5*-w,c.y=.25*-w,P.x=.5*w,P.y=.25*-w,S.x=.5*w,S.y=0,h.x=.25*w,h.y=.125*-w,y.x=0,y.y=.125*w,f.x=0,f.y=.125*-w,g.x=.25*-w,g.y=.125*w,b.x=.25*-w,b.y=.25*w,M.x=.375*-w,M.y=.5*w,m.x=.02*w,m.y=.25*w,d.x=.15*w,d.y=.5*w);var _=[],V=[],A=[],T=[],E=[],x=SuperMap.Plot.PlottingUtil.coordinateTrans(U,p,L),j=SuperMap.Plot.PlottingUtil.coordinateTrans(U,u,L),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(U,c,L),C=SuperMap.Plot.PlottingUtil.coordinateTrans(U,P,L),I=SuperMap.Plot.PlottingUtil.coordinateTrans(U,S,L),B=SuperMap.Plot.PlottingUtil.coordinateTrans(U,h,L),R=SuperMap.Plot.PlottingUtil.coordinateTrans(U,y,L),G=SuperMap.Plot.PlottingUtil.coordinateTrans(U,f,L),N=SuperMap.Plot.PlottingUtil.coordinateTrans(U,g,L),D=SuperMap.Plot.PlottingUtil.coordinateTrans(U,b,L),k=SuperMap.Plot.PlottingUtil.coordinateTrans(U,M,L),z=SuperMap.Plot.PlottingUtil.coordinateTrans(U,m,L),F=SuperMap.Plot.PlottingUtil.coordinateTrans(U,d,L);_.push(x),_.push(j),_.push(Y),_.push(C),_.push(I),V.push(B),V.push(R),V.push(G),V.push(N),A.push(D),A.push(k),T.push(z),T.push(F),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,null,!0);var K=.3*SuperMap.Plot.PlottingUtil.distance(G,N),W=SuperMap.Plot.PlottingUtil.linePnt(N,G,K),J=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*K,N,W);E.push(J.pntLeft),E.push(N),E.push(J.pntRight);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var q=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),Z=SuperMap.Plot.PlottingUtil.circlePoint(q.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,L+90);this.addScalePoint(Z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);if(e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),0!==SuperMap.Plot.PlottingUtil.polylineDistance(e)){if(!this.isEdit){var l=this.getSubSymbolScaleValue();this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var o=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=o*i,r=this.scaleValues[1]*i,a=0,s=.01*i,p=s,u=0;p<=i;p+=r,u++){a=p+s;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,a);if(-1===c.index)return;var P=[],S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index],c.pt);P.push(new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y)),P.push(new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),0===u?this.addScalePoint(P[0],0):1===u&&this.addScalePoint(c.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.01*i;if(0===t){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===r.index)return;var a=SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=a/i}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,o);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(o[c],o[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(o[p.index],p.pt),u-=n,this.scaleValues[1]=u/i,this.scaleValues[1]>.93&&(this.scaleValues[1]=.93)}}}}]),e}();SuperMap.Plot.AlgoSymbol21500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.03),l.scaleValues.push(.4),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.03),this.scaleValues.push(.4),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.02);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[1],i=l*(1-o)*.5,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(n.bfind){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue());var r,a=this.scaleValues[0],s=SuperMap.Plot.PlottingUtil.polylineDistance(t)*a,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[n.index],n.pts),u=this.scaleValues[2];1===u?r=new SuperMap.Geometry.Point(p.pntRight.x,p.pntRight.y):0===u&&(r=new SuperMap.Geometry.Point(p.pntLeft.x,p.pntLeft.y));var c=[];c.push(r),c.push(n.pts);var P;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,{lineTypeLimit:!0});var S=l*(.5+.5*o),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e);if(h.bfind){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);1===u?P=new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y):0===u&&(P=new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),this.addScalePoint(P,0);var f=[];f.push(P),f.push(h.pts);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f,{lineTypeLimit:!0}),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=i*(.5+.5*this.scaleValues[1]),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,o);if(!r.bfind)return;var a,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[r.index],r.pts),p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[r.index],o[r.index+1],e);this.scaleValues[2]=p?0:1,a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y),new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var u=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,new SuperMap.Geometry.Point(r.pts.x,r.pts.y));this.scaleValues[0]=u/i}}}]),e}();SuperMap.Plot.AlgoSymbol21401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,r=e.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[r])){n=r;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var a=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[l.length-1])/o;if(i>.2)return;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),r=new SuperMap.Geometry.Point(0,o*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*a),u=new SuperMap.Geometry.Point(o*(1-s),o*a),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(r),g.push(u),g.push(h),g.push(y),g.push(S),g.push(p),g.push(n);for(var b=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],f);b.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var d,v,O,U=!0;e.x>l.x&&(U=!1);var w,L=(O=.1*o)+(v=.12*o/2);d=1==U?(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntRight:(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,l,e)).pntLeft;var _,V,A,T,E,x,j,Y,C=[];C.push(d),C.push(new SuperMap.Geometry.Point(d.x+v,d.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,C),1==U?(_=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntRight,T=w.pntLeft,V=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,_,T)).pntRight,A=w.pntLeft):(_=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntLeft,T=w.pntRight,V=(w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,_,T)).pntLeft,A=w.pntRight),(C=[]).push(_),C.push(V),C.push(A),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,{fillLimit:!0,fill:!0}),w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,V,A),Y=1==U?w.pntRight:w.pntLeft,w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,A,V),x=1==U?w.pntLeft:w.pntRight;var I=SuperMap.Plot.PlottingUtil.intersectLines(_,x,A,V);I.isIntersectLines&&(E=I.intersectPoint,(I=SuperMap.Plot.PlottingUtil.intersectLines(_,Y,A,V)).isIntersectLines&&(j=I.intersectPoint,(C=[]).push(E),C.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),(C=[]).push(j),C.push(Y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),r=l[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var p=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var c=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol42500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol26501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length!==this.minEditPts&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(0)),this.components=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e,l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,r=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2),a=this.scaleValues[0]*l;e=0==this.scaleValues[1]?SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,n+90):SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,n+270);var s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r,e]);var p=.02*SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),u=new SuperMap.Geometry.Point((o.x+r.x)/2,(o.y+r.y)/2),c=[u,new SuperMap.Geometry.Point(u.x,u.y+p)];this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var P=new SuperMap.Geometry.Point((i.x+r.x)/2,(i.y+r.y)/2);c=[P,new SuperMap.Geometry.Point(P.x,P.y+p)],this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var S=new SuperMap.Geometry.Point(e.x,e.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===n)return;var r=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2);if(0===t){var a=SuperMap.Plot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol20301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){1!==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1)),this.components=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e=this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=l*e,i=.01*l;o<2*i&&(i=.5*o);for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},r=0,a=o;a<l-i;a+=o){var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,t);if(s.bfind){var p=s.pts,u=[];u.push(p);var c=SuperMap.Plot.PlottingUtil.circlePoint(p,i,i,90);if(u.push(c),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,u,n),0===r){var P=new SuperMap.Geometry.Point(p.x,p.y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}r++}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=-1,n=0,r=new SuperMap.Geometry.Point(0,0),a=0;a<l.length-1;a++){var s,p=[];p.push(l[a]),p.push(l[a+1]);var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(u.isOnline&&(s=u.projectPoint),!u.isOnline&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(e,l[a],l[a+1])&&(s=e),void 0===s)return;if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(e,s);-1===i?(i=a,r=s,n=c):n>c&&(i=a,r=s,n=c)}}if(-1===i||i>l.length-1)return;for(var P=0,S=0;S<i;S++){var h=new SuperMap.Geometry.Point(l[S].x,l[S].y),y=new SuperMap.Geometry.Point(l[S+1].x,l[S+1].y);P+=SuperMap.Plot.PlottingUtil.distance(h,y)}var f=new SuperMap.Geometry.Point(l[i].x,l[i].y);if((P+=SuperMap.Plot.PlottingUtil.distance(f,r))<0||P>o)return;var g=P/o;g>.95?g=.95:g<.1&&(g=.1),this.scaleValues[0]=g}}}]),e}();SuperMap.Plot.AlgoSymbol20300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e,l,o,i,n,r=this.scaleValues[0],a=this.scaleValues[1],s=this.scaleValues[2],p=0,u=0;if(t.length==this.minEditPts){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y);var c=SuperMap.Plot.PlottingUtil.distance(l,o);p=2*c,e=new SuperMap.Geometry.Point(l.x+p*r,l.y+p*a);var P=2*c*s/.28/2;u=P,i=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,0),(n=[]).push(e.clone()),n.push(i.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n)}else{this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),p=SuperMap.Plot.PlottingUtil.distance(l,o)+SuperMap.Plot.PlottingUtil.distance(l,i),e=new SuperMap.Geometry.Point(l.x+p*r,l.y+p*a);var S=p*s/.21/2,h=p*s/.38/2;u=S;var y=SuperMap.Plot.PlottingUtil.circlePoint(e,S,S,0),f=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,90);(n=[]).push(e.clone()),n.push(y.clone()),n.push(f.clone()),this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,n)}this.scalePoints=[];var g=new SuperMap.Geometry.Point(e.x+.1*p,e.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var b=SuperMap.Plot.PlottingUtil.circlePoint(e,u,u,90);b.isScalePoint=!0,b.tag=1,this.scalePoints.push(b),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),a=(r=SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(),s=0;if(0==(s=2==r.length?2*SuperMap.Plot.PlottingUtil.distance(r[0],r[1]):SuperMap.Plot.PlottingUtil.distance(r[0],r[1])+SuperMap.Plot.PlottingUtil.distance(r[0],r[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*s-a.x)/s,this.scaleValues[0]=l,o=(e.y-a.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(a.x+s*l,a.y+s*o);n=SuperMap.Plot.PlottingUtil.distance(p,e),i=.1,i=2===r.length?.56*n/s:.42*n/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),a=3*(l*n),s=new SuperMap.Geometry.Point(-.5*a,.3*a),p=new SuperMap.Geometry.Point(-.5*a,-.3*a),u=new SuperMap.Geometry.Point(.5*a,-.3*a),c=new SuperMap.Geometry.Point(.5*a,.3*a),P=SuperMap.Plot.PlottingUtil.coordinateTrans(r,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(r,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(r,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var g=new SuperMap.Geometry.Point(-.3*a,.3*a),b=new SuperMap.Geometry.Point(-.3*a,.5*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(r,g,0),m=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,0);(f=[]).push(M.clone()),f.push(m.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(-.3*a,-.3*a),v=new SuperMap.Geometry.Point(-.3*a,-.5*a),O=SuperMap.Plot.PlottingUtil.coordinateTrans(r,d,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(r,v,0);(f=[]).push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var w=new SuperMap.Geometry.Point(.3*a,.3*a),L=new SuperMap.Geometry.Point(.3*a,.5*a),_=SuperMap.Plot.PlottingUtil.coordinateTrans(r,w,0),V=SuperMap.Plot.PlottingUtil.coordinateTrans(r,L,0);(f=[]).push(_.clone()),f.push(V.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var A=new SuperMap.Geometry.Point(.3*a,-.3*a),T=new SuperMap.Geometry.Point(.3*a,-.5*a),E=SuperMap.Plot.PlottingUtil.coordinateTrans(r,A,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(r,T,0);(f=[]).push(E.clone()),f.push(x.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var j=new SuperMap.Geometry.Point(r.x+.1*a,r.y);j.isScalePoint=!0,j.tag=0,this.scalePoints.push(j);var Y=SuperMap.Plot.PlottingUtil.circlePoint(r,.5*a,.5*a,90);Y.isScalePoint=!0,Y.tag=1,this.scalePoints.push(Y),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),a=l*n,s=3*a,p=new SuperMap.Geometry.Point(-.5*s,.5*a),u=new SuperMap.Geometry.Point(.5*s,.5*a),c=SuperMap.Plot.PlottingUtil.coordinateTrans(r,p,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,0),S=[];S.push(c.clone()),S.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=new SuperMap.Geometry.Point(-.5*s,-.5*a),y=new SuperMap.Geometry.Point(.5*s,-.5*a),f=SuperMap.Plot.PlottingUtil.coordinateTrans(r,h,0),g=SuperMap.Plot.PlottingUtil.coordinateTrans(r,y,0);(S=[]).push(f.clone()),S.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var b=new SuperMap.Geometry.Point(-.1*s,.5*a),M=new SuperMap.Geometry.Point(-.15*s,-.5*a),m=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(r,M,0);(S=[]).push(m.clone()),S.push(d.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var v=new SuperMap.Geometry.Point(.15*s,.5*a),O=new SuperMap.Geometry.Point(.1*s,-.5*a),U=SuperMap.Plot.PlottingUtil.coordinateTrans(r,v,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(r,O,0);(S=[]).push(U.clone()),S.push(w.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.scalePoints=[];var L=new SuperMap.Geometry.Point(r.x+.1*s,r.y);L.isScalePoint=!0,L.tag=0,this.scalePoints.push(L);var _=SuperMap.Plot.PlottingUtil.circlePoint(r,.5*s,.5*s,90);_.isScalePoint=!0,_.tag=1,this.scalePoints.push(_),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),a=(r=SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(),s=0;if(0==(s=2==r.length?2*SuperMap.Plot.PlottingUtil.distance(r[0],r[1]):SuperMap.Plot.PlottingUtil.distance(r[0],r[1])+SuperMap.Plot.PlottingUtil.distance(r[0],r[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-a.x)/s,this.scaleValues[0]=l,o=(e.y-a.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(a.x+s*l,a.y+s*o);i=2*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s/3,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.2)),2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=2==t.length?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),a=l*n,s=new SuperMap.Geometry.Point(-.5*a,.25*a),p=new SuperMap.Geometry.Point(-.4*a,.125*a),u=new SuperMap.Geometry.Point(.4*a,.125*a),c=new SuperMap.Geometry.Point(.5*a,.25*a),P=SuperMap.Plot.PlottingUtil.coordinateTrans(r,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(r,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(r,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=new SuperMap.Geometry.Point(-.5*a,-.25*a),b=new SuperMap.Geometry.Point(-.4*a,-.125*a),M=new SuperMap.Geometry.Point(.4*a,-.125*a),m=new SuperMap.Geometry.Point(.5*a,-.25*a),d=SuperMap.Plot.PlottingUtil.coordinateTrans(r,g,0),v=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(r,M,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(r,m,0);(f=[]).push(d.clone()),f.push(v.clone()),f.push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var w=new SuperMap.Geometry.Point(r.x+.1*a,r.y);w.isScalePoint=!0,w.tag=0,this.scalePoints.push(w);var L=SuperMap.Plot.PlottingUtil.circlePoint(r,.25*a,.25*a,90);L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),a=(r=SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(),s=0;if(0==(s=2==r.length?2*SuperMap.Plot.PlottingUtil.distance(r[0],r[1]):SuperMap.Plot.PlottingUtil.distance(r[0],r[1])+SuperMap.Plot.PlottingUtil.distance(r[0],r[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-a.x)/s,this.scaleValues[0]=l,o=(e.y-a.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(a.x+s*l,a.y+s*o);i=4*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],r=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),a=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+90),s=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+270);n.push(r.clone()),n.push(a.clone()),n.push(s.clone()),n.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),c=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(u.clone()),n.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),S=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(P.clone()),n.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var h=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),y=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(h.clone()),n.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var f=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),g=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(f.clone()),n.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],r=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,0);n.push(t[0].clone()),n.push(r.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n);var a=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),s=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(a.clone()),n.push(s.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var p=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),u=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(p.clone()),n.push(u.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var c=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),P=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(c.clone()),n.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var S=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),h=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(S.clone()),n.push(h.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),r=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180),a=[];a.push(n.clone()),a.push(r.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var s=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(a=[]).push(s.clone()),a.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o),c=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(a=[]).push(u.clone()),a.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),S=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(a=[]).push(P.clone()),a.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol17704=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="急",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17703),e}();SuperMap.Plot.AlgoSymbol17704=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17703=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="加",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues=[]);var o=[];if(this.scalePoints=[],t.length<3)o.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),o.push(new SuperMap.Geometry.Point(t[1].x,t[1].y));else{var i=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=i.scaleValues;for(var n=0;n<i.scalePoints.length;n++)this.addScalePoint(i.scalePoints[n]);o=i.beizerPoints}if(!(o.length<2)){var r=e/2;if(-1!==SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,r).index){var a,s;if(a=2==t.length?0:t.length-1,this.isEdit)s=this.scaleValues[4*a]*e,isNaN(s)&&(s=Math.abs(this.scaleValues[4*a-1]*e));else{var p=.5*this.getSubSymbolScaleValue();s=p*e,this.scaleValues.push(p)}var u=r-s,c=r+s,P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,u);if(-1!==P.index){var S=P.pt;this.addScalePoint(new SuperMap.Geometry.Point(S.x,S.y));var h=[];if(0==P.index)h.push(o[0]);else for(var y=0;y<P.index;y++)h.push(o[y]);h.push(S);var f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,c);if(-1!==f.index){var g=f.pt,b=[];b.push(g);for(var M=f.index+1;M<o.length;M++)b.push(o[M]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=h[h.length-1],d=b[0],v=180*SuperMap.Plot.PlottingUtil.radian(m,d)/Math.PI,O=SuperMap.Plot.PlottingUtil.distance(m,d),U=new SuperMap.Geometry.Point((m.x+d.x)/2,(m.y+d.y)/2),w=this.subText;this.addText(w,U,O,v),this.finish()}}}}}}},{key:"computeBeizer",value:function(t,e){var l,o,i,n=[];if(this.scalePoints=[],this.isEdit){(i=[]).push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),i.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),l=this.scaleValues[0],o=this.scaleValues[1];var r=t[0].x+e*l,a=t[0].y+e*o;i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a));for(var s=1;s<t.length-1;s++)i.push(new SuperMap.Geometry.Point(t[s].x,t[s].y)),l=this.scaleValues[4*s-2],o=this.scaleValues[4*s-1],r=t[s].x+e*l,a=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a)),l=this.scaleValues[4*s],o=this.scaleValues[4*s+1],r=t[s].x+e*l,a=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a));var p=t.length-1;i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),l=this.scaleValues[4*p-2],o=this.scaleValues[4*p-1],r=t[p].x+e*l,a=t[p].y+e*o,i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a)),i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}else{if(this.scaleValues=[],i=[],(i=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(t)).length<3)return n;var u=i[2].x-i[0].x,c=i[2].y-i[0].y;l=u/e,o=c/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[2].x,i[2].y));for(var P=1;P<t.length-1;P++){l=(u=i[3*P+1].x-i[3*P].x)/e,o=(c=i[3*P+1].y-i[3*P].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+1].x,i[3*P+1].y));var S=(i[3*P+2].x-i[3*P].x)/e,h=(i[3*P+2].y-i[3*P].y)/e;this.scaleValues.push(S),this.scaleValues.push(h),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+2].x,i[3*P+2].y))}l=(u=i[3*(t.length-1)+1].x-i[3*(t.length-1)].x)/e,o=(c=i[3*(t.length-1)+1].y-i[3*(t.length-1)].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*(t.length-1)+1].x,i[3*(t.length-1)+1].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),t<0||t>2*l.length-2)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(2*(l.length-1)==t||2==l.length){for(var n=this.computeBeizer(l,o),r=0,a=0;a<n.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(n[a],n[a+1]);var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,r/2);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(e,s.pt)/o;p>.45&&(p=.45),2==l.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var u=-1;u=t%2==0?t/2:(t+1)/2;var c=(e.x-l[u].x)/o,P=(e.y-l[u].y)/o;this.scaleValues[2*t]=c,this.scaleValues[2*t+1]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol17703=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&this.scaleValues.push(.02),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.paraLine(o,l,!0),n=SuperMap.Plot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);for(var r={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},a=this.getDashLinePts(n,5*l),s=0;s<a.length;s++){var p=a[s];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,r)}this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),r=0;r<n;r++){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==a.index){if(0==r%2){for(var s=[],p=0;p<a.index+1;p++)s.push(i[p].clone());s.push(a.pt),l.push(s)}var u=[];u.push(a.pt);for(var c=a.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMap.Plot.AlgoSymbol17700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y);var a=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),s=.33*(o-l),p=.1*(n-i),u=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,0),c=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,180),P=[];P.push(new SuperMap.Geometry.Point(u.x,u.y)),P.push(new SuperMap.Geometry.Point(c.x,c.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=new SuperMap.Geometry.Point(a.x-3*s/7,a.y+p),h=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,60),y=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(h.x,h.y)),P.push(new SuperMap.Geometry.Point(S.x,S.y)),P.push(new SuperMap.Geometry.Point(y.x,y.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var f=new SuperMap.Geometry.Point(a.x+3*s/7,a.y+p),g=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,60),b=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(g.x,g.y)),P.push(new SuperMap.Geometry.Point(f.x,f.y)),P.push(new SuperMap.Geometry.Point(b.x,b.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y);var a={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},s=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),p=o-l,u=n-i,c=.1*p,P=.1*u,S=new SuperMap.Geometry.Point(s.x,s.y+P),h=new SuperMap.Geometry.Point(s.x-c,s.y-P),y=new SuperMap.Geometry.Point(s.x+c,s.y-P);c=.03*p,P=.03*u;var f=new SuperMap.Geometry.Point(S.x,S.y+P),g=new SuperMap.Geometry.Point(S.x-c,S.y-P),b=new SuperMap.Geometry.Point(S.x+c,S.y-P),M=[];M.push(new SuperMap.Geometry.Point(f.x,f.y)),M.push(new SuperMap.Geometry.Point(g.x,g.y)),M.push(new SuperMap.Geometry.Point(b.x,b.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,a);var m=new SuperMap.Geometry.Point(h.x,h.y+P),d=new SuperMap.Geometry.Point(h.x-c,h.y-P),v=new SuperMap.Geometry.Point(h.x+c,h.y-P),O=[];O.push(new SuperMap.Geometry.Point(m.x,m.y)),O.push(new SuperMap.Geometry.Point(d.x,d.y)),O.push(new SuperMap.Geometry.Point(v.x,v.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,O,a);var U=new SuperMap.Geometry.Point(y.x,y.y+P),w=new SuperMap.Geometry.Point(y.x-c,y.y-P),L=new SuperMap.Geometry.Point(y.x+c,y.y-P),_=[];_.push(new SuperMap.Geometry.Point(U.x,U.y)),_.push(new SuperMap.Geometry.Point(w.x,w.y)),_.push(new SuperMap.Geometry.Point(L.x,L.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,a),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=new SuperMap.Geometry.Point(t[0].x,t[0].y),r=new SuperMap.Geometry.Point(t[1].x,t[1].y),a=180*SuperMap.Plot.PlottingUtil.radian(n,r)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90),p=SuperMap.Plot.PlottingUtil.circlePoint(n,i,i,a+90),u=SuperMap.Plot.PlottingUtil.circlePoint(r,o,o,a+90),c=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,a+90),P=[];P.push(p),P.push(s),P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(p),P.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(c),P.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P));var S=new SuperMap.Geometry.Point(s.x,s.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var h=new SuperMap.Geometry.Point(p.x,p.y);h.isScalePoint=!0,h.tag=1,this.scalePoints.push(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(this.isEdit=!0,!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(n<this.scaleValues[1])return;this.scaleValues[0]=n}else if(1==t){var r=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(this.scaleValues[0]<r)return;this.scaleValues[1]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol16700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16203=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());for(var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=.01*e,r=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=0,s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ff0000",fillOpacity:1},p=n,u=0;p<=r;p+=i,u++){a=p+n;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,a);if(-1===c.index)return;for(var P=SuperMap.Plot.PlottingUtil.radian(c.pt,l[c.index+1])*SuperMap.Plot.PlottingUtil.RTOD,S=this.getSubSymbolPts(o),h=[],y=0,f=S.length;y<f;y++)h.push(SuperMap.Plot.PlottingUtil.coordinateTrans(c.pt,S[y],P));if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,s),0===u){var g=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);this.addScalePoint(g,0)}else 1===u&&this.addScalePoint(c.pt,1);this.finish()}}}},{key:"getSubSymbolPts",value:function(t){var e=.5*t,l=[];return l.push(new SuperMap.Geometry.Point(.5*e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,-2*e)),l.push(new SuperMap.Geometry.Point(.5*e,-2*e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var n=.01*o;if(0===t){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===r.index)return;var a=SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=a/o}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(i[c],i[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(i[p.index],p.pt),u-=n,this.scaleValues[1]=u/o,u>o-o*this.scaleValues[0]-n&&(this.scaleValues[1]=(o-o*this.scaleValues[0]-n)/o)}}}}]),e}();SuperMap.Plot.AlgoSymbol16203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e;o=SuperMap.Plot.PlottingUtil.paraLine(t,n,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,n,!1);var r=new SuperMap.Geometry.Point(o[0].x,o[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y),s=new SuperMap.Geometry.Point(t[1].x,t[1].y),p=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,u=new SuperMap.Geometry.Point(.3*e,0),c=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,p),P=new SuperMap.Geometry.Point(0,.4*n),S=new SuperMap.Geometry.Point(0,.2*n),h=SuperMap.Plot.PlottingUtil.coordinateTrans(c,P,p),y=SuperMap.Plot.PlottingUtil.coordinateTrans(c,S,p),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var g=new SuperMap.Geometry.Point(0,.2*n),b=new SuperMap.Geometry.Point(0,-.4*n),M=SuperMap.Plot.PlottingUtil.coordinateTrans(c,g,p),m=SuperMap.Plot.PlottingUtil.coordinateTrans(c,b,p);(f=[]).push(M),f.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(.2*n,-.2*n),v=new SuperMap.Geometry.Point(-.2*n,-.6*n),O=SuperMap.Plot.PlottingUtil.coordinateTrans(c,d,p),U=SuperMap.Plot.PlottingUtil.coordinateTrans(c,v,p);(f=[]).push(O),f.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var w=new SuperMap.Geometry.Point(-.2*n,-.2*n),L=new SuperMap.Geometry.Point(.2*n,-.6*n),_=SuperMap.Plot.PlottingUtil.coordinateTrans(c,w,p),V=SuperMap.Plot.PlottingUtil.coordinateTrans(c,L,p);(f=[]).push(_),f.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var A=new SuperMap.Geometry.Point(.7*e,0),T=SuperMap.Plot.PlottingUtil.coordinateTrans(a,A,p),E=SuperMap.Plot.PlottingUtil.coordinateTrans(T,P,p),x=SuperMap.Plot.PlottingUtil.coordinateTrans(T,S,p);(f=[]).push(E),f.push(x),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var j=SuperMap.Plot.PlottingUtil.coordinateTrans(T,g,p),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(T,b,p);(f=[]).push(j),f.push(Y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var C=SuperMap.Plot.PlottingUtil.coordinateTrans(T,d,p),I=SuperMap.Plot.PlottingUtil.coordinateTrans(T,v,p);(f=[]).push(C),f.push(I),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var B=SuperMap.Plot.PlottingUtil.coordinateTrans(T,w,p),R=SuperMap.Plot.PlottingUtil.coordinateTrans(T,L,p);(f=[]).push(B),f.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol16202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(.01)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!1);i=SuperMap.Plot.PlottingUtil.clearSamePts(i),n=SuperMap.Plot.PlottingUtil.clearSamePts(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);for(var r=e*this.scaleValues[1],a=e*this.scaleValues[3],s=0,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=a,c=0;u<=p-a;u+=r,c++){s=u+a;var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,s);if(-1!==P.index){var S=new SuperMap.Geometry.Point(P.pt.x,P.pt.y+.5*o),h=[];h.push(P.pt),h.push(S),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,h),0===c?this.addScalePoint(S):1===c&&this.addScalePoint(P.pt)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(r=SuperMap.Plot.PlottingUtil.clearSamePts(r),0==t){n=o*this.scaleValues[3];var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===a.index)return;var s=2*SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=s/o}else if(1===t){n=o*this.scaleValues[3];var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,r);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,r[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(r[P],r[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(r[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*o);var i=this.scaleValues[0]*e,n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!0),r=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!1);n=SuperMap.Plot.PlottingUtil.clearSamePts(n),r=SuperMap.Plot.PlottingUtil.clearSamePts(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);for(var a=e*this.scaleValues[1],s=.5*i,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=s,c=0;u<p;u+=a,c++){var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,u);if(-1!==P.index){var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,l[P.index+1],P.pt),h=[];h.push(S.pntLeft),h.push(S.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),0===c?this.addScalePoint(S.pntRight,0):1===c&&this.addScalePoint(P.pt,1)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(r=SuperMap.Plot.PlottingUtil.clearSamePts(r),0==t){n=.5*(o*this.scaleValues[0]);var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===a.index)return;var s=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=s/o}else if(1===t){n=.5*(o*this.scaleValues[0]);var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,r);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,r[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(r[P],r[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(r[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);var i=l*this.scaleValues[0],n=l*this.scaleValues[2],r=!1;r=0===this.scaleValues[0];for(var a=0,s=0;s<e.length-1;s++)a+=SuperMap.Plot.PlottingUtil.distance(e[s],e[s+1]);if(0!==a){for(var p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(-1!==u.index){var c=[],P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);r?c.push(P.pntRight):c.push(P.pntLeft);var S=p+n,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,S);if(-1!==h.index){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[h.index+1],h.pt);r?c.push(y.pntLeft):c.push(y.pntRight),Math.abs(p)<1e-6&&(this.addScalePoint(c[0],0),this.addScalePoint(h.pt,1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}}}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,l[0]);this.scaleValues[0]=a/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return;for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15806=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.06),l.scaleValues.push(1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(t.length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=.6*i,r=this.scaleValues[2]*o,a=0===this.scaleValues[1],s=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===s)return;for(var p=[],u=0;u<=s;u+=r){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),!((c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.65*r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.8*r)).index<0||(p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.5*r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),a?p.push(P.pntLeft):p.push(P.pntRight),c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.2*r),p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.35*r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),!(Math.abs(u)<=1e-6)))))))){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),(S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S)}}}var h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMap.Plot.PlottingUtil.clearSamePts(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,n[1],n[0]),o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),i.pntRight,i.pntLeft);var a=SuperMap.Plot.PlottingUtil.distance(o.projectPoint,l[0])/r;this.scaleValues[0]=a;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0],n[1],new SuperMap.Geometry.Point(e.x,e.y));this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0;c<n.length-1;c++)if((o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),n[c],n[c+1])).isOnline){p=o.projectPoint,u=c;break}if(-1===u)return void(this.scaleValues[2]=.05);for(var P=[],S=0;S<=u;S++)P.push(n[S]);P.push(p);var h=SuperMap.Plot.PlottingUtil.polylineDistance(P);this.scaleValues[2]=h/r}}}}]),e}();SuperMap.Plot.AlgoSymbol15806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=[],p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(r?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var b=[],M=new SuperMap.Geometry.Point(.5*(f.x+g.x),.5*(f.y+g.y)),m=SuperMap.Plot.PlottingUtil.dirAngle(f,g)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.circlePoint(M,h,h,m+90),v=1.5*h,O=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+260),U=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+280);b.push(O),b.push(d),b.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=[],p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(r?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var b=[],M=[];if(y!==S-2){var m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],s[y+1]);b.push(m.pntLeft),b.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}if(0!==y){var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y+1],s[y]);M.push(d.pntLeft),M.push(d.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s,p=[],u=0;u<=a;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),b=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,b);var M=[],m=[],d=[],v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],s);m.push(O.pntLeft,O.pntRight);var U=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],v);M.push(U.pntLeft,U.pntRight),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntLeft.x,2*s.y-U.pntLeft.y)),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntRight.x,2*s.y-U.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=new SuperMap.Geometry.Point(0,0),p=[],u=0;u<=a;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),b=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,b);var M=[],m=[],d=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],d);M.push(v.pntLeft),M.push(v.pntRight),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntLeft.x,2*s.y-v.pntLeft.y)),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntRight.x,2*s.y-v.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=[],p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(r?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var b=[],M=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.5,s[y],s[y+1]),m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],M);b.push(m.pntLeft),b.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,l[0]);this.scaleValues[0]=a/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return void(this.scaleValues[2]=.05);for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(parseFloat(.1732)),l.scaleValues.push(.1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=this.scaleValues[1]*o,r=this.scaleValues[2],a=null;if(1===r){var s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o+i);a=new SuperMap.Geometry.Point(s.x,s.y)}else s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o-i),a=new SuperMap.Geometry.Point(s.x,s.y);var p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*n,t[0],a),u=[];u.push(p.pntRight),u.push(t[0]),u.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=[],P=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(1===r){var S=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y);c.push(S),c.push(t[1]);var h=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y);c.push(h)}else S=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y),c.push(S),c.push(t[1]),h=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y),c.push(h);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,p=this.scaleValues[1],u=this.scaleValues[2]*n,c=.3*u,P=u;P<l;P+=u){var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e);if(-1===S.index)return void this.finish();var h=P+c,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===y.index)return void this.finish();var f=[],g=[];f.push(S.pts);var b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);0===p?f.push(new SuperMap.Geometry.Point(b.pntLeft.x,b.pntLeft.y)):f.push(new SuperMap.Geometry.Point(b.pntRight.x,b.pntRight.y)),g.push(y.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);if(0===p?g.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):g.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),u===P){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,o*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(s.pt,a)/o,u=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var c=0,P=-1,S=[],h=0,y=r.length-1;h<y;h++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[h],r[h+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==c?(c=g,P=h,S=e):g<c&&(c=g,P=h,S=e)}}if(-1==P)return;for(var b=0,M=0,m=P-1;M<m;M++)b+=SuperMap.Plot.PlottingUtil.distance(r[M],r[M+1]);var d=(b+=SuperMap.Plot.PlottingUtil.distance(S,r[P]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol13700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;if(2===t.length)e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);else if(3===t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0>=n)return;this.scaleValues=[];var r=SuperMap.Plot.PlottingUtil.distance(l,o)/n;this.scaleValues.push(r);var a=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI;a>90?a-=90:a=270+a,this.scaleValues.push(a*(Math.PI/180));var s=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*n;var p=this.scaleValues[1]*(180/Math.PI)+90,u=this.scaleValues[2]*(180/Math.PI)+90;p<u&&(p+=360);for(var c,P=[],S=p;S>=u;S-=4)c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,S),P.push(c);S!=u&&(c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),P.push(c)),this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol13700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol12500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var i=this.scaleValues[1]*e,n=o*e,r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==r.index){for(var a,s=r.pt,p=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),u=0;u<t.length-1;u++){var c,P=t[u];a=t[u+1];var S=SuperMap.Plot.PlottingUtil.distance(s,P),h=SuperMap.Plot.PlottingUtil.distance(s,a);if(!(S<i&&h<i))if(S>i&&h<i||S<i&&h>i){var y;y=S>i?P:a,(c=this.getLineAddCircleIntersectPts(P,a,p)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[0],y])}else{var f=SuperMap.Plot.PlottingUtil.projectPoint(s,P,a);if(SuperMap.Plot.PlottingUtil.distance(s,f)>=i)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,a]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f,P,a)){if((c=this.getLineAddCircleIntersectPts(P,a,p)).length>0){c.unshift(P),c.push(a);for(var g=0;g<c.length-1;g++)this.isLineInCircle(c[g],c[g+1],s,i)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[g],c[g+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,a])}}var b=0;c&&(b=SuperMap.Plot.PlottingUtil.radian(s,c[c.length-1])*SuperMap.Plot.PlottingUtil.RTOD);var M=[];a=SuperMap.Plot.PlottingUtil.circlePoint(s,-i,-i,b),M.push(a,s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var m=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,d=[],v=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m+170),O=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m-170);d.push(v),d.push(O),d.push(s);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),this.addScalePoint(s,0),this.addScalePoint(new SuperMap.Geometry.Point(s.x+i,s.y),1),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],r=0;r<o.length-1;r++){var a=o[r],s=o[r+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,a,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,a,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}}]),e}();SuperMap.Plot.AlgoSymbol12502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var r=this.GetCurvePts(t,l,o);if(0!==r.pt.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(n)*i,s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,a);if(-1!==s.index){for(var p=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],c=0;c<360;c+=12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt,p,p,c));u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);for(var P=[],S=[],h=0;h<r.pt.length;h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,r.pt[h])?S.length>1&&(P.push(S),S=[]):S.push(r.pt[h]);S.length>1&&P.push(S);for(var y=0;y<P.length;y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P[y]);var f=new SuperMap.Geometry.Point(r.pt[0].x,r.pt[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var g=new SuperMap.Geometry.Point(r.scalePt.x,r.scalePt.y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var b=new SuperMap.Geometry.Point(s.pt.x,s.pt.y);b.isScalePoint=!0,b.tag=2,this.scalePoints.push(b);var M=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p,p,0),m=new SuperMap.Geometry.Point(M.x,M.y);m.isScalePoint=!0,m.tag=3,this.scalePoints.push(m),this.finish()}else this.finish()}else this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(null!=e&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o,i,n,r,a,s=SuperMap.Plot.PlottingUtil.polylineDistance(l),p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),u=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var c=new SuperMap.Geometry.Point(l[0].x,l[0].y),P=SuperMap.Plot.PlottingUtil.distance(c,u);i=2*P/s,this.scaleValues[1]=i}else if(1===t)c=new SuperMap.Geometry.Point(l[0].x,l[0].y),o=(P=SuperMap.Plot.PlottingUtil.distance(c,u))/s,this.scaleValues[0]=o;else if(2==t){var S=-1,h=0;a=new SuperMap.Geometry.Point(0,0),o=this.scaleValues[0],i=this.scaleValues[1];for(var y=0;y<p.length-1;y++){var f=p[y],g=p[y+1],b=SuperMap.Plot.PlottingUtil.projectPoint(u,f,g);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(b,f,g)){var M=SuperMap.Plot.PlottingUtil.distance(u,b);-1==S?(S=y,a=b,h=M):h>M&&(S=y,a=b,h=M)}}if(-1==S||S>p.length-1)return;r=SuperMap.Plot.PlottingUtil.polylineDistance(p);for(var m=[],d=0;d<S;d++)m.push(p[d]);m.push(a);var v=SuperMap.Plot.PlottingUtil.polylineDistance(m);if(v<0||v>r)return;n=v/r,this.scaleValues[2]=n}else if(3===t){o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];var O=(r=SuperMap.Plot.PlottingUtil.polylineDistance(p))*n;if(-1===(a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,O)).index)return;var U=SuperMap.Plot.PlottingUtil.distance(a.pt,e)/s;U>.4&&(U=.4),this.scaleValues[3]=U}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=n*e,a=n*l/2,s=[],p=[],u=i[0],c=!1,P=i[0],S=1;S<i.length;S++){var h=i[S],y=SuperMap.Plot.PlottingUtil.distance(u,h);if(!(y<r&&S!==i.length-1)){for(var f,g=parseInt(y/r),b=0;b<g;b++){f=SuperMap.Plot.PlottingUtil.linePnt(u,h,r),c||(o=f,c=!0);var M=this.GetCosPts2D(u,f,r,a);s=p.length>1&&0===b?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M),p=(p=[]).concat(M),P=u,u=f}S===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,r,a),s=p.length>1&&M.length>1?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMap.Plot.PlottingUtil.distance(t,e),r=l/30,a=0;a<n;a+=r){var s=a*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMap.Geometry.Point(a,p),c=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,P=SuperMap.Plot.PlottingUtil.coordinateTrans(t,u,c);i.push(P)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var r=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,a=180*SuperMap.Plot.PlottingUtil.radian(e,t)/Math.PI-r;a<=0;)a+=360;var s=a/2,p=l;p=SuperMap.Plot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMap.Plot.PlottingUtil.linePnt(e,p,1),c=0,P=0;P<o.length;P++)if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,o[P])){c=P;break}if(0!=c)for(var S=0;S<o.length-c;S++)n.slice(S,n.length-1);for(var h=0;h<i.length;h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,i[h])&&n.push(i[h]);return n}}]),e}();SuperMap.Plot.AlgoSymbol12501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var r=n.pt,a=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)]),s=0;s<t.length-1;s++){var p,u=t[s],c=t[s+1],P=SuperMap.Plot.PlottingUtil.distance(r,u),S=SuperMap.Plot.PlottingUtil.distance(r,c);if(!(P<o&&S<o))if(P>o&&S<o||P<o&&S>o){var h;h=P>o?u:c,(p=this.getLineAddCircleIntersectPts(u,c,a)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[0],h])}else{var y=SuperMap.Plot.PlottingUtil.projectPoint(r,u,c);if(SuperMap.Plot.PlottingUtil.distance(r,y)>=o)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y,u,c)){if((p=this.getLineAddCircleIntersectPts(u,c,a)).length>0){p.unshift(u),p.push(c);for(var f=0;f<p.length-1;f++)this.isLineInCircle(p[f],p[f+1],r,o)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[f],p[f+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}}this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)]),this.scalePoints=[];var g=r;g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var b=new SuperMap.Geometry.Point(r.x+o,r.y);b.isScalePoint=!0,b.tag=1,this.scalePoints.push(b),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],r=0;r<o.length-1;r++){var a=o[r],s=o[r+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,a,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,a,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,r=null,a=0;a<l.length-1;a++){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[a],l[a+1])){var p=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,e);0==i?(i=p,n=a,r=s.projectPoint):p<i&&(i=p,n=a,r=s.projectPoint)}}if(-1==n)return;for(var u=0,c=0;c<n;c++)u+=SuperMap.Plot.PlottingUtil.distance(l[c],l[c+1]);var P=(u+=SuperMap.Plot.PlottingUtil.distance(r,l[n]))/o;P>1&&(P=1),this.scaleValues[0]=P}if(1===t){var S=this.scaleValues[0]*o,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,S);if(-1===h.index)return;var y=SuperMap.Plot.PlottingUtil.distance(h.pt,e)/o;y>.4&&(y=.4),this.scaleValues[1]=y}}}}]),e}();SuperMap.Plot.AlgoSymbol12500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol6030601=e.AlgoSymbol6031001=e.AlgoSymbol6030501=e.AlgoSymbol6030107=e.AlgoSymbol6030106=e.AlgoSymbol6030105=e.AlgoSymbol6030104=e.AlgoSymbol6030103=e.AlgoSymbol6030102=e.AlgoSymbol6030101=e.AlgoSymbol5020802=e.AlgoSymbol5035205=e.AlgoSymbol5035203=e.AlgoSymbol5035202=e.AlgoSymbol5035201=e.AlgoSymbol5034801=e.AlgoSymbol5034203=e.AlgoSymbol5034202=e.AlgoSymbol5034201=e.AlgoSymbol5033803=e.AlgoSymbol5033802=e.AlgoSymbol5033001=e.AlgoSymbol5032003=e.AlgoSymbol5031401=e.AlgoSymbol5030301=e.AlgoSymbol5022301=e.AlgoSymbol5022002=e.AlgoSymbol5022001=e.AlgoSymbol5021803=e.AlgoSymbol5010401=e.AlgoSymbol4030401=e.AlgoSymbol4030303=e.AlgoSymbol4030302=e.AlgoSymbol4030301=e.AlgoSymbol3002501=e.AlgoSymbol3002005=e.AlgoSymbol3002004=e.AlgoSymbol3002002=e.AlgoSymbol3002001=e.AlgoSymbol3001302=e.AlgoSymbol3001301=e.AlgoSymbol3001105=e.AlgoSymbol3001104=e.AlgoSymbol3001103=e.AlgoSymbol3001102=e.AlgoSymbol3001101=e.AlgoSymbol3000809=e.AlgoSymbol3000808=e.AlgoSymbol3000807=e.AlgoSymbol3000806=e.AlgoSymbol3000805=e.AlgoSymbol3000804=e.AlgoSymbol3000803=e.AlgoSymbol3000802=e.AlgoSymbol3000801=e.AlgoSymbol2122301=e.AlgoSymbol2122101=e.AlgoSymbol2121602=e.AlgoSymbol2121601=e.AlgoSymbol2121507=e.AlgoSymbol2121506=e.AlgoSymbol2121504=e.AlgoSymbol2092101=e.AlgoSymbol2091503=e.AlgoSymbol60310=e.AlgoSymbol60306=e.AlgoSymbol60305=e.AlgoSymbol60304=e.AlgoSymbol2121505=e.AlgoSymbol60301=e.AlgoSymbol60205=e.AlgoSymbol60203=e.AlgoSymbol50352=e.AlgoSymbol50342=e.AlgoSymbol50308=e.AlgoSymbol50226=e.AlgoSymbol50225=e.AlgoSymbol50223=e.AlgoSymbol50108=e.AlgoSymbol40304=e.AlgoSymbol40302=e.AlgoSymbol40104=e.AlgoSymbol30026=e.AlgoSymbol30025=e.AlgoSymbol30020=e.AlgoSymbol30014=e.AlgoSymbol30013=e.AlgoSymbol30012=void 0,e.AlgoSymbol30011=e.AlgoSymbol30010=e.AlgoSymbol30009=e.AlgoSymbol30008=e.AlgoSymbol21221=e.AlgoSymbol21216=e.AlgoSymbol3020901=e.AlgoSymbol3010304=e.AlgoSymbol3010303=e.AlgoSymbol3010301=e.AlgoSymbol40100=e.AlgoSymbol37700=e.AlgoSymbol35200=e.AlgoSymbol35000=e.AlgoSymbol44100=e.AlgoSymbol42200=e.AlgoSymbol41202=e.AlgoSymbol41201=e.AlgoSymbol41200=e.AlgoSymbol41100=e.AlgoSymbol40101=e.AlgoSymbol40900=e.AlgoSymbol32300=e.AlgoSymbol31401=e.AlgoSymbol31400=e.AlgoSymbol31301=e.AlgoSymbol31300=e.AlgoSymbol30800=e.AlgoSymbol30201=e.AlgoSymbol30200=e.AlgoSymbol30100=e.AlgoSymbol30002=e.AlgoSymbol30000=e.AlgoSymbol29800=e.AlgoSymbol28301=e.AlgoSymbol28300=e.AlgoSymbol28200=e.AlgoSymbol28100=e.AlgoSymbol28000=e.AlgoSymbol26601=e.AlgoSymbol26600=e.AlgoSymbol26500=e.AlgoSymbol25400=e.AlgoSymbol25000=e.AlgoSymbol25200=e.AlgoSymbol29103=e.AlgoSymbol29101=e.AlgoSymbol29000=e.AlgoSymbol28900=e.AlgoSymbol23902=e.AlgoSymbol23901=e.AlgoSymbol23800=e.AlgoSymbol23500=e.AlgoSymbol23400=e.AlgoSymbol22000=e.AlgoSymbol21800=e.AlgoSymbol21600=e.AlgoSymbol21504=e.AlgoSymbol21503=e.AlgoSymbol21502=e.AlgoSymbol21501=e.AlgoSymbol21900=e.AlgoSymbol21500=e.AlgoSymbol21401=e.AlgoSymbol25201=e.AlgoSymbol42500=e.AlgoSymbol26501=e.AlgoSymbol20301=e.AlgoSymbol20300=e.AlgoSymbol17806=e.AlgoSymbol17805=e.AlgoSymbol17804=e.AlgoSymbol17803=e.AlgoSymbol17802=e.AlgoSymbol17801=e.AlgoSymbol17800=e.AlgoSymbol17704=e.AlgoSymbol17703=e.AlgoSymbol17700=e.AlgoSymbol17501=e.AlgoSymbol17500=e.AlgoSymbol16700=e.AlgoSymbol16203=e.AlgoSymbol16202=e.AlgoSymbol16201=e.AlgoSymbol16200=e.AlgoSymbol15900=e.AlgoSymbol15806=e.AlgoSymbol15804=e.AlgoSymbol15803=e.AlgoSymbol15802=e.AlgoSymbol15801=e.AlgoSymbol15800=e.AlgoSymbol15202=e.AlgoSymbol15201=e.AlgoSymbol15200=e.AlgoSymbol13700=e.AlgoSymbol12502=e.AlgoSymbol12501=e.AlgoSymbol12500=void 0;var o=l(187),i=l(186),n=l(185),r=l(184),a=l(183),s=l(182),p=l(181),u=l(180),c=l(179),P=l(178),S=l(177),h=l(176),y=l(175),f=l(174),g=l(173),b=l(172),M=l(171),m=l(170),d=l(169),v=l(168),O=l(167),U=l(166),w=l(165),L=l(164),_=l(163),V=l(162),A=l(161),T=l(160),E=l(159),x=l(158),j=l(157),Y=l(156),C=l(155),I=l(154),B=l(153),R=l(152),G=l(151),N=l(150),D=l(149),k=l(148),z=l(147),F=l(146),K=l(145),W=l(144),J=l(143),q=l(142),Z=l(141),X=l(140),H=l(139),Q=l(138),$=l(137),tt=l(136),et=l(135),lt=l(134),ot=l(133),it=l(132),nt=l(131),rt=l(130),at=l(129),st=l(128),pt=l(127),ut=l(126),ct=l(125),Pt=l(124),St=l(123),ht=l(122),yt=l(121),ft=l(120),gt=l(119),bt=l(118),Mt=l(117),mt=l(116),dt=l(115),vt=l(114),Ot=l(113),Ut=l(112),wt=l(111),Lt=l(110),_t=l(109),Vt=l(108),At=l(107),Tt=l(106),Et=l(105),xt=l(104),jt=l(103),Yt=l(102),Ct=l(101),It=l(100),Bt=l(99),Rt=l(98),Gt=l(97),Nt=l(96),Dt=l(95),kt=l(94),zt=l(93),Ft=l(92),Kt=l(91),Wt=l(90),Jt=l(89),qt=l(88),Zt=l(87),Xt=l(86),Ht=l(85),Qt=l(84),$t=l(83),te=l(82),ee=l(81),le=l(80),oe=l(79),ie=l(78),ne=l(77),re=l(76),ae=l(75),se=l(74),pe=l(73),ue=l(72),ce=l(71),Pe=l(70),Se=l(69),he=l(68),ye=l(67),fe=l(66),ge=l(65),be=l(64),Me=l(63),me=l(62),de=l(61),ve=l(60),Oe=l(59),Ue=l(58),we=l(57),Le=l(56),_e=l(55),Ve=l(54),Ae=l(53),Te=l(52),Ee=l(51),xe=l(50),je=l(49),Ye=l(48),Ce=l(47),Ie=l(46),Be=l(45),Re=l(44),Ge=l(43),Ne=l(42),De=l(41),ke=l(40),ze=l(39),Fe=l(38),Ke=l(37),We=l(36),Je=l(35),qe=l(34),Ze=l(33),Xe=l(32),He=l(31),Qe=l(30),$e=l(29),tl=l(28),el=l(27),ll=l(26),ol=l(25),il=l(24),nl=l(23),rl=l(22),al=l(21),sl=l(20),pl=l(19),ul=l(18),cl=l(17),Pl=l(16),Sl=l(15),hl=l(14),yl=l(13),fl=l(12),gl=l(11),bl=l(10),Ml=l(9),ml=l(8),dl=l(7),vl=l(6),Ol=l(5),Ul=l(4),wl=l(3),Ll=l(2),_l=l(1),Vl=l(0);e.AlgoSymbol12500=o.AlgoSymbol12500,e.AlgoSymbol12501=i.AlgoSymbol12501,e.AlgoSymbol12502=n.AlgoSymbol12502,e.AlgoSymbol13700=r.AlgoSymbol13700,e.AlgoSymbol15200=a.AlgoSymbol15200,e.AlgoSymbol15201=s.AlgoSymbol15201,e.AlgoSymbol15202=p.AlgoSymbol15202,e.AlgoSymbol15800=u.AlgoSymbol15800,e.AlgoSymbol15801=c.AlgoSymbol15801,e.AlgoSymbol15802=P.AlgoSymbol15802,e.AlgoSymbol15803=S.AlgoSymbol15803,e.AlgoSymbol15804=h.AlgoSymbol15804,e.AlgoSymbol15806=y.AlgoSymbol15806,e.AlgoSymbol15900=f.AlgoSymbol15900,e.AlgoSymbol16200=g.AlgoSymbol16200,e.AlgoSymbol16201=b.AlgoSymbol16201,e.AlgoSymbol16202=M.AlgoSymbol16202,e.AlgoSymbol16203=m.AlgoSymbol16203,e.AlgoSymbol16700=d.AlgoSymbol16700,e.AlgoSymbol17500=v.AlgoSymbol17500,e.AlgoSymbol17501=O.AlgoSymbol17501,e.AlgoSymbol17700=U.AlgoSymbol17700,e.AlgoSymbol17703=w.AlgoSymbol17703,e.AlgoSymbol17704=L.AlgoSymbol17704,e.AlgoSymbol17800=_.AlgoSymbol17800,e.AlgoSymbol17801=V.AlgoSymbol17801,e.AlgoSymbol17802=A.AlgoSymbol17802,e.AlgoSymbol17803=T.AlgoSymbol17803,e.AlgoSymbol17804=E.AlgoSymbol17804,e.AlgoSymbol17805=x.AlgoSymbol17805,e.AlgoSymbol17806=j.AlgoSymbol17806,e.AlgoSymbol20300=Y.AlgoSymbol20300,e.AlgoSymbol20301=C.AlgoSymbol20301,e.AlgoSymbol26501=I.AlgoSymbol26501,e.AlgoSymbol42500=B.AlgoSymbol42500,e.AlgoSymbol25201=R.AlgoSymbol25201,e.AlgoSymbol21401=G.AlgoSymbol21401,e.AlgoSymbol21500=N.AlgoSymbol21500,e.AlgoSymbol21900=D.AlgoSymbol21900,e.AlgoSymbol21501=k.AlgoSymbol21501,e.AlgoSymbol21502=z.AlgoSymbol21502,e.AlgoSymbol21503=F.AlgoSymbol21503,e.AlgoSymbol21504=K.AlgoSymbol21504,e.AlgoSymbol21600=W.AlgoSymbol21600,e.AlgoSymbol21800=J.AlgoSymbol21800,e.AlgoSymbol22000=q.AlgoSymbol22000,e.AlgoSymbol23400=Z.AlgoSymbol23400,e.AlgoSymbol23500=X.AlgoSymbol23500,e.AlgoSymbol23800=H.AlgoSymbol23800,e.AlgoSymbol23901=Q.AlgoSymbol23901,e.AlgoSymbol23902=$.AlgoSymbol23902,e.AlgoSymbol28900=tt.AlgoSymbol28900,e.AlgoSymbol29000=et.AlgoSymbol29000,e.AlgoSymbol29101=lt.AlgoSymbol29101,e.AlgoSymbol29103=ot.AlgoSymbol29103,e.AlgoSymbol25200=it.AlgoSymbol25200,e.AlgoSymbol25000=nt.AlgoSymbol25000,e.AlgoSymbol25400=rt.AlgoSymbol25400,e.AlgoSymbol26500=at.AlgoSymbol26500,e.AlgoSymbol26600=st.AlgoSymbol26600,e.AlgoSymbol26601=pt.AlgoSymbol26601,e.AlgoSymbol28000=ut.AlgoSymbol28000,e.AlgoSymbol28100=ct.AlgoSymbol28100,e.AlgoSymbol28200=Pt.AlgoSymbol28200,e.AlgoSymbol28300=St.AlgoSymbol28300,e.AlgoSymbol28301=ht.AlgoSymbol28301,e.AlgoSymbol29800=yt.AlgoSymbol29800,e.AlgoSymbol30000=ft.AlgoSymbol30000,e.AlgoSymbol30002=gt.AlgoSymbol30002,e.AlgoSymbol30100=bt.AlgoSymbol30100,e.AlgoSymbol30200=Mt.AlgoSymbol30200,e.AlgoSymbol30201=mt.AlgoSymbol30201,e.AlgoSymbol30800=dt.AlgoSymbol30800,e.AlgoSymbol31300=vt.AlgoSymbol31300,e.AlgoSymbol31301=Ot.AlgoSymbol31301,e.AlgoSymbol31400=Ut.AlgoSymbol31400,e.AlgoSymbol31401=wt.AlgoSymbol31401,e.AlgoSymbol32300=Lt.AlgoSymbol32300,e.AlgoSymbol40900=_t.AlgoSymbol40900,e.AlgoSymbol40101=Vt.AlgoSymbol40101,e.AlgoSymbol41100=At.AlgoSymbol41100,e.AlgoSymbol41200=Tt.AlgoSymbol41200,e.AlgoSymbol41201=Et.AlgoSymbol41201,e.AlgoSymbol41202=xt.AlgoSymbol41202,e.AlgoSymbol42200=jt.AlgoSymbol42200,e.AlgoSymbol44100=Yt.AlgoSymbol44100,e.AlgoSymbol35000=Ct.AlgoSymbol35000,e.AlgoSymbol35200=It.AlgoSymbol35200,e.AlgoSymbol37700=Bt.AlgoSymbol37700,e.AlgoSymbol40100=Rt.AlgoSymbol40100,e.AlgoSymbol3010301=Gt.AlgoSymbol3010301,e.AlgoSymbol3010303=Nt.AlgoSymbol3010303,e.AlgoSymbol3010304=Dt.AlgoSymbol3010304,e.AlgoSymbol3020901=kt.AlgoSymbol3020901,e.AlgoSymbol21216=zt.AlgoSymbol21216,e.AlgoSymbol21221=Ft.AlgoSymbol21221,e.AlgoSymbol30008=Kt.AlgoSymbol30008,e.AlgoSymbol30009=Wt.AlgoSymbol30009,e.AlgoSymbol30010=Jt.AlgoSymbol30010,e.AlgoSymbol30011=qt.AlgoSymbol30011,e.AlgoSymbol30012=Zt.AlgoSymbol30012,e.AlgoSymbol30013=Xt.AlgoSymbol30013,e.AlgoSymbol30014=Ht.AlgoSymbol30014,e.AlgoSymbol30020=Qt.AlgoSymbol30020,e.AlgoSymbol30025=$t.AlgoSymbol30025,e.AlgoSymbol30026=te.AlgoSymbol30026,e.AlgoSymbol40104=ee.AlgoSymbol40104,e.AlgoSymbol40302=le.AlgoSymbol40302,e.AlgoSymbol40304=oe.AlgoSymbol40304,e.AlgoSymbol50108=ie.AlgoSymbol50108,e.AlgoSymbol50223=ne.AlgoSymbol50223,e.AlgoSymbol50225=re.AlgoSymbol50225,e.AlgoSymbol50226=ae.AlgoSymbol50226,e.AlgoSymbol50308=se.AlgoSymbol50308,e.AlgoSymbol50342=pe.AlgoSymbol50342,e.AlgoSymbol50352=ue.AlgoSymbol50352,e.AlgoSymbol60203=ce.AlgoSymbol60203,e.AlgoSymbol60205=Pe.AlgoSymbol60205,e.AlgoSymbol60301=Se.AlgoSymbol60301,e.AlgoSymbol2121505=he.AlgoSymbol2121505,e.AlgoSymbol60304=ye.AlgoSymbol60304,e.AlgoSymbol60305=fe.AlgoSymbol60305,e.AlgoSymbol60306=ge.AlgoSymbol60306,e.AlgoSymbol60310=be.AlgoSymbol60310,e.AlgoSymbol2091503=Me.AlgoSymbol2091503,e.AlgoSymbol2092101=me.AlgoSymbol2092101,e.AlgoSymbol2121504=de.AlgoSymbol2121504,e.AlgoSymbol2121506=ve.AlgoSymbol2121506,e.AlgoSymbol2121507=Oe.AlgoSymbol2121507,e.AlgoSymbol2121601=Ue.AlgoSymbol2121601,e.AlgoSymbol2121602=we.AlgoSymbol2121602,e.AlgoSymbol2122101=Le.AlgoSymbol2122101,e.AlgoSymbol2122301=_e.AlgoSymbol2122301,e.AlgoSymbol3000801=Ve.AlgoSymbol3000801,e.AlgoSymbol3000802=Ae.AlgoSymbol3000802,e.AlgoSymbol3000803=Te.AlgoSymbol3000803,e.AlgoSymbol3000804=Ee.AlgoSymbol3000804,e.AlgoSymbol3000805=xe.AlgoSymbol3000805,e.AlgoSymbol3000806=je.AlgoSymbol3000806,e.AlgoSymbol3000807=Ye.AlgoSymbol3000807,e.AlgoSymbol3000808=Ce.AlgoSymbol3000808,e.AlgoSymbol3000809=Ie.AlgoSymbol3000809,e.AlgoSymbol3001101=Be.AlgoSymbol3001101,e.AlgoSymbol3001102=Re.AlgoSymbol3001102,e.AlgoSymbol3001103=Ge.AlgoSymbol3001103,e.AlgoSymbol3001104=Ne.AlgoSymbol3001104,e.AlgoSymbol3001105=De.AlgoSymbol3001105,e.AlgoSymbol3001301=ke.AlgoSymbol3001301,e.AlgoSymbol3001302=ze.AlgoSymbol3001302,e.AlgoSymbol3002001=Fe.AlgoSymbol3002001,e.AlgoSymbol3002002=Ke.AlgoSymbol3002002,e.AlgoSymbol3002004=We.AlgoSymbol3002004,e.AlgoSymbol3002005=Je.AlgoSymbol3002005,e.AlgoSymbol3002501=qe.AlgoSymbol3002501,e.AlgoSymbol4030301=Ze.AlgoSymbol4030301,e.AlgoSymbol4030302=Xe.AlgoSymbol4030302,e.AlgoSymbol4030303=He.AlgoSymbol4030303,e.AlgoSymbol4030401=Qe.AlgoSymbol4030401,e.AlgoSymbol5010401=$e.AlgoSymbol5010401,e.AlgoSymbol5021803=tl.AlgoSymbol5021803,e.AlgoSymbol5022001=el.AlgoSymbol5022001,e.AlgoSymbol5022002=ll.AlgoSymbol5022002,e.AlgoSymbol5022301=ol.AlgoSymbol5022301,e.AlgoSymbol5030301=il.AlgoSymbol5030301,e.AlgoSymbol5031401=nl.AlgoSymbol5031401,e.AlgoSymbol5032003=rl.AlgoSymbol5032003,e.AlgoSymbol5033001=al.AlgoSymbol5033001,e.AlgoSymbol5033802=sl.AlgoSymbol5033802,e.AlgoSymbol5033803=pl.AlgoSymbol5033803,e.AlgoSymbol5034201=ul.AlgoSymbol5034201,e.AlgoSymbol5034202=cl.AlgoSymbol5034202,e.AlgoSymbol5034203=Pl.AlgoSymbol5034203,e.AlgoSymbol5034801=Sl.AlgoSymbol5034801,e.AlgoSymbol5035201=hl.AlgoSymbol5035201,e.AlgoSymbol5035202=yl.AlgoSymbol5035202,e.AlgoSymbol5035203=fl.AlgoSymbol5035203,e.AlgoSymbol5035205=gl.AlgoSymbol5035205,e.AlgoSymbol5020802=bl.AlgoSymbol5020802,e.AlgoSymbol6030101=Ml.AlgoSymbol6030101,e.AlgoSymbol6030102=ml.AlgoSymbol6030102,e.AlgoSymbol6030103=dl.AlgoSymbol6030103,e.AlgoSymbol6030104=vl.AlgoSymbol6030104,e.AlgoSymbol6030105=Ol.AlgoSymbol6030105,e.AlgoSymbol6030106=Ul.AlgoSymbol6030106,e.AlgoSymbol6030107=wl.AlgoSymbol6030107,e.AlgoSymbol6030501=Ll.AlgoSymbol6030501,e.AlgoSymbol6031001=_l.AlgoSymbol6031001,e.AlgoSymbol6030601=Vl.AlgoSymbol6030601},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WJAlgoSymbolFactory=void 0,l(188);e.WJAlgoSymbolFactory=SuperMap.Plot.WJAlgoSymbolFactory=SuperMap.Plot.WJAlgoSymbolFactory||{};SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(123===t)switch(e){case 20915:return new SuperMap.Plot.AlgoSymbol12500(l);case 2091501:return new SuperMap.Plot.AlgoSymbol12501(l);case 2091502:return new SuperMap.Plot.AlgoSymbol12502(l);case 2091503:return new SuperMap.Plot.AlgoSymbol2091503(l);case 2092101:return new SuperMap.Plot.AlgoSymbol2092101(l);case 21003:return new SuperMap.Plot.AlgoSymbol13700(l);case 21207:return new SuperMap.Plot.AlgoSymbol15200(l);case 2120701:return new SuperMap.Plot.AlgoSymbol15201(l);case 2120702:return new SuperMap.Plot.AlgoSymbol15202(l);case 21213:return new SuperMap.Plot.AlgoSymbol15800(l);case 2121301:return new SuperMap.Plot.AlgoSymbol15801(l);case 2121302:return new SuperMap.Plot.AlgoSymbol15802(l);case 2121303:return new SuperMap.Plot.AlgoSymbol15803(l);case 2121304:return new SuperMap.Plot.AlgoSymbol15804(l);case 2121305:return new SuperMap.Plot.AlgoSymbol15806(l);case 21214:return new SuperMap.Plot.AlgoSymbol15900(l);case 21215:return new SuperMap.Plot.AlgoSymbol16200(l);case 2121501:return new SuperMap.Plot.AlgoSymbol16201(l);case 2121502:return new SuperMap.Plot.AlgoSymbol16202(l);case 2121503:return new SuperMap.Plot.AlgoSymbol16203(l);case 2121504:return new SuperMap.Plot.AlgoSymbol2121504(l);case 2121505:return new SuperMap.Plot.AlgoSymbol2121505(l);case 2121506:return new SuperMap.Plot.AlgoSymbol2121506(l);case 2121507:return new SuperMap.Plot.AlgoSymbol2121507(l);case 21216:return new SuperMap.Plot.AlgoSymbol21216(l);case 2121601:return new SuperMap.Plot.AlgoSymbol2121601(l);case 2121602:return new SuperMap.Plot.AlgoSymbol2121602(l);case 21218:return new SuperMap.Plot.AlgoSymbol16700(l);case 21221:return new SuperMap.Plot.AlgoSymbol21221(l);case 2122101:return new SuperMap.Plot.AlgoSymbol2122101(l);case 21222:return new SuperMap.Plot.AlgoSymbol17500(l);case 2122201:return new SuperMap.Plot.AlgoSymbol17501(l);case 21223:return new SuperMap.Plot.AlgoSymbol17700(l);case 2122301:return new SuperMap.Plot.AlgoSymbol2122301(l);case 2122303:return new SuperMap.Plot.AlgoSymbol17703(l);case 2122304:return new SuperMap.Plot.AlgoSymbol17704(l);case 21224:return new SuperMap.Plot.AlgoSymbol17800(l);case 2122401:return new SuperMap.Plot.AlgoSymbol17801(l);case 2122402:return new SuperMap.Plot.AlgoSymbol17802(l);case 2122403:return new SuperMap.Plot.AlgoSymbol17803(l);case 2122404:return new SuperMap.Plot.AlgoSymbol17804(l);case 2122405:return new SuperMap.Plot.AlgoSymbol17805(l);case 2122406:return new SuperMap.Plot.AlgoSymbol17806(l);case 21605:return new SuperMap.Plot.AlgoSymbol20300(l);case 2160501:return new SuperMap.Plot.AlgoSymbol20301(l);case 30008:return new SuperMap.Plot.AlgoSymbol30008(l);case 3000801:return new SuperMap.Plot.AlgoSymbol3000801(l);case 3000802:return new SuperMap.Plot.AlgoSymbol3000802(l);case 3000803:return new SuperMap.Plot.AlgoSymbol3000803(l);case 3000804:return new SuperMap.Plot.AlgoSymbol3000804(l);case 3000805:return new SuperMap.Plot.AlgoSymbol3000805(l);case 3000806:return new SuperMap.Plot.AlgoSymbol3000806(l);case 3000807:return new SuperMap.Plot.AlgoSymbol3000807(l);case 3000808:return new SuperMap.Plot.AlgoSymbol3000808(l);case 3000809:return new SuperMap.Plot.AlgoSymbol3000809(l);case 30009:return new SuperMap.Plot.AlgoSymbol30009(l);case 30010:return new SuperMap.Plot.AlgoSymbol30010(l);case 30011:return new SuperMap.Plot.AlgoSymbol30011(l);case 3001101:return new SuperMap.Plot.AlgoSymbol3001101(l);case 3001102:return new SuperMap.Plot.AlgoSymbol3001102(l);case 3001103:return new SuperMap.Plot.AlgoSymbol3001103(l);case 3001104:return new SuperMap.Plot.AlgoSymbol3001104(l);case 3001105:return new SuperMap.Plot.AlgoSymbol3001105(l);case 30012:return new SuperMap.Plot.AlgoSymbol30012(l);case 30013:return new SuperMap.Plot.AlgoSymbol30013(l);case 50106:return new SuperMap.Plot.AlgoSymbol21900(l);case 3001301:return new SuperMap.Plot.AlgoSymbol3001301(l);case 3001302:return new SuperMap.Plot.AlgoSymbol3001302(l);case 30014:return new SuperMap.Plot.AlgoSymbol30014(l);case 30018:return new SuperMap.Plot.AlgoSymbol42500(l);case 30020:return new SuperMap.Plot.AlgoSymbol30020(l);case 3002001:return new SuperMap.Plot.AlgoSymbol3002001(l);case 3002002:return new SuperMap.Plot.AlgoSymbol3002002(l);case 3002004:return new SuperMap.Plot.AlgoSymbol3002004(l);case 3002005:return new SuperMap.Plot.AlgoSymbol3002005(l);case 30025:return new SuperMap.Plot.AlgoSymbol30025(l);case 5010301:return new SuperMap.Plot.AlgoSymbol3010301(l);case 50108:return new SuperMap.Plot.AlgoSymbol50108(l);case 5010303:return new SuperMap.Plot.AlgoSymbol3010303(l);case 5010304:return new SuperMap.Plot.AlgoSymbol3010304(l);case 5010401:return new SuperMap.Plot.AlgoSymbol5010401(l);case 5020801:return new SuperMap.Plot.AlgoSymbol3020901(l);case 5020802:return new SuperMap.Plot.AlgoSymbol5020802(l);case 5021803:return new SuperMap.Plot.AlgoSymbol5021803(l);case 5022001:return new SuperMap.Plot.AlgoSymbol5022001(l);case 5022002:return new SuperMap.Plot.AlgoSymbol5022002(l);case 50223:return new SuperMap.Plot.AlgoSymbol50223(l);case 5022301:return new SuperMap.Plot.AlgoSymbol5022301(l);case 3002501:return new SuperMap.Plot.AlgoSymbol3002501(l);case 30026:return new SuperMap.Plot.AlgoSymbol30026(l);case 40104:return new SuperMap.Plot.AlgoSymbol40104(l);case 40301:case 4030101:case 4030102:case 4030103:case 4030104:return new SuperMap.Plot.AlgoSymbol22000(l);case 40302:case 4030201:case 4030202:case 4030203:case 4030204:return new SuperMap.Plot.AlgoSymbol40302(l);case 40303:return new SuperMap.Plot.AlgoSymbol26501(l);case 4030301:return new SuperMap.Plot.AlgoSymbol4030301(l);case 4030302:return new SuperMap.Plot.AlgoSymbol4030302(l);case 4030303:return new SuperMap.Plot.AlgoSymbol4030303(l);case 40304:return new SuperMap.Plot.AlgoSymbol40304(l);case 4030401:return new SuperMap.Plot.AlgoSymbol4030401(l);case 50101:return new SuperMap.Plot.AlgoSymbol25201(l);case 5010101:return new SuperMap.Plot.AlgoSymbol21401(l);case 50102:return new SuperMap.Plot.AlgoSymbol21500(l);case 5010202:return new SuperMap.Plot.AlgoSymbol21502(l);case 5010203:return new SuperMap.Plot.AlgoSymbol21503(l);case 5010204:return new SuperMap.Plot.AlgoSymbol21504(l);case 50103:case 5010302:return new SuperMap.Plot.AlgoSymbol21600(l);case 50104:return new SuperMap.Plot.AlgoSymbol21800(l);case 50107:case 5010701:return new SuperMap.Plot.AlgoSymbol22000(l);case 50208:return new SuperMap.Plot.AlgoSymbol23400(l);case 50209:return new SuperMap.Plot.AlgoSymbol23500(l);case 50210:return new SuperMap.Plot.AlgoSymbol23800(l);case 50212:case 5021101:return new SuperMap.Plot.AlgoSymbol23901(l);case 5021102:return new SuperMap.Plot.AlgoSymbol23902(l);case 50220:return new SuperMap.Plot.AlgoSymbol28900(l);case 50221:return new SuperMap.Plot.AlgoSymbol29000(l);case 50225:return new SuperMap.Plot.AlgoSymbol50225(l);case 50226:return new SuperMap.Plot.AlgoSymbol50226(l);case 50222:return new SuperMap.Plot.AlgoSymbol29101(l);case 5022201:return new SuperMap.Plot.AlgoSymbol29103(l);case 50227:return new SuperMap.Plot.AlgoSymbol35200(l);case 50301:return new SuperMap.Plot.AlgoSymbol1004(l);case 5030101:return new SuperMap.Plot.AlgoSymbol25200(l);case 5030102:return new SuperMap.Plot.AlgoSymbol25201(l);case 50302:return new SuperMap.Plot.AlgoSymbol25000(l);case 50303:return new SuperMap.Plot.AlgoSymbol25400(l);case 5030301:return new SuperMap.Plot.AlgoSymbol5030301(l);case 50308:return new SuperMap.Plot.AlgoSymbol50308(l);case 50309:return new SuperMap.Plot.AlgoSymbol26500(l);case 50310:return new SuperMap.Plot.AlgoSymbol26600(l);case 5031001:return new SuperMap.Plot.AlgoSymbol26601(l);case 50312:return new SuperMap.Plot.AlgoSymbol28000(l);case 50313:return new SuperMap.Plot.AlgoSymbol28100(l);case 50314:return new SuperMap.Plot.AlgoSymbol28200(l);case 5031401:return new SuperMap.Plot.AlgoSymbol5031401(l);case 50315:return new SuperMap.Plot.AlgoSymbol28300(l);case 5031501:return new SuperMap.Plot.AlgoSymbol28301(l);case 50316:return new SuperMap.Plot.AlgoSymbol29800(l);case 50317:return new SuperMap.Plot.AlgoSymbol1006(l);case 50320:return new SuperMap.Plot.AlgoSymbol30000(l);case 5010201:return new SuperMap.Plot.AlgoSymbol21501(l);case 5032001:case 5032002:return new SuperMap.Plot.AlgoSymbol30002(l);case 50321:case 5032101:case 5032102:return new SuperMap.Plot.AlgoSymbol30100(l);case 50322:return new SuperMap.Plot.AlgoSymbol30200(l);case 5032201:return new SuperMap.Plot.AlgoSymbol30201(l);case 50330:case 50331:return new SuperMap.Plot.AlgoSymbol30800(l);case 5032003:return new SuperMap.Plot.AlgoSymbol5032003(l);case 5033001:return new SuperMap.Plot.AlgoSymbol5033001(l);case 50338:return new SuperMap.Plot.AlgoSymbol31300(l);case 5033801:return new SuperMap.Plot.AlgoSymbol31301(l);case 5033802:return new SuperMap.Plot.AlgoSymbol5033802(l);case 5033803:return new SuperMap.Plot.AlgoSymbol5033803(l);case 50339:return new SuperMap.Plot.AlgoSymbol31400(l);case 5033901:return new SuperMap.Plot.AlgoSymbol31401(l);case 50342:return new SuperMap.Plot.AlgoSymbol50342(l);case 5034201:return new SuperMap.Plot.AlgoSymbol5034201(l);case 5034202:return new SuperMap.Plot.AlgoSymbol5034202(l);case 5034203:return new SuperMap.Plot.AlgoSymbol5034203(l);case 50348:return new SuperMap.Plot.AlgoSymbol32300(l);case 5034801:return new SuperMap.Plot.AlgoSymbol5034801(l);case 50352:return new SuperMap.Plot.AlgoSymbol50352(l);case 5035201:return new SuperMap.Plot.AlgoSymbol5035201(l);case 5035202:return new SuperMap.Plot.AlgoSymbol5035202(l);case 5035203:return new SuperMap.Plot.AlgoSymbol5035203(l);case 5035204:return new SuperMap.Plot.AlgoSymbol21501(l);case 5035205:return new SuperMap.Plot.AlgoSymbol5035205(l);case 60203:return new SuperMap.Plot.AlgoSymbol60203(l);case 60205:return new SuperMap.Plot.AlgoSymbol60205(l);case 60301:return new SuperMap.Plot.AlgoSymbol60301(l);case 6030101:return new SuperMap.Plot.AlgoSymbol6030101(l);case 6030102:return new SuperMap.Plot.AlgoSymbol6030102(l);case 6030103:return new SuperMap.Plot.AlgoSymbol6030103(l);case 6030104:return new SuperMap.Plot.AlgoSymbol6030104(l);case 6030105:return new SuperMap.Plot.AlgoSymbol6030105(l);case 6030106:return new SuperMap.Plot.AlgoSymbol6030106(l);case 6030107:return new SuperMap.Plot.AlgoSymbol6030107(l);case 60304:return new SuperMap.Plot.AlgoSymbol60304(l);case 60305:return new SuperMap.Plot.AlgoSymbol60305(l);case 6030501:return new SuperMap.Plot.AlgoSymbol6030501(l);case 60306:return new SuperMap.Plot.AlgoSymbol60306(l);case 6030601:return new SuperMap.Plot.AlgoSymbol6030601(l);case 60310:return new SuperMap.Plot.AlgoSymbol60310(l);case 6031001:return new SuperMap.Plot.AlgoSymbol6031001(l);case 70109:return new SuperMap.Plot.AlgoSymbol40900(l);case 70201:return new SuperMap.Plot.AlgoSymbol41100(l);case 70202:return new SuperMap.Plot.AlgoSymbol41200(l);case 7020201:return new SuperMap.Plot.AlgoSymbol41201(l);case 7020202:return new SuperMap.Plot.AlgoSymbol41202(l);case 80202:return new SuperMap.Plot.AlgoSymbol42200(l);case 90105:return new SuperMap.Plot.AlgoSymbol35000(l);case 90107:return new SuperMap.Plot.AlgoSymbol35200(l);case 90305:return new SuperMap.Plot.AlgoSymbol37700(l);case 90404:return new SuperMap.Plot.AlgoSymbol40100(l);case 9040401:return new SuperMap.Plot.AlgoSymbol40101(l);case 90507:return new SuperMap.Plot.AlgoSymbol44100(l);default:return new SuperMap.Plot.AlgoSymbol(l)}},SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer=function(t,e){if(123!==t)return!0;switch(e){case 20915:case 2091501:case 2091502:case 2091503:case 2092101:case 21003:case 21207:case 2120701:case 2120702:case 21213:case 2121301:case 2121302:case 2121303:case 2121304:case 2121305:case 21214:case 21215:case 2121501:case 2121502:case 2121503:case 2121504:case 2121505:case 2121506:case 2121507:case 21216:case 2121601:case 2121602:case 21218:case 21221:case 2122101:case 21222:case 2122201:case 21223:case 2122301:case 2122303:case 2122304:case 21224:case 2122401:case 2122402:case 2122403:case 2122404:case 2122405:case 2122406:case 21605:case 2160501:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30013:case 3001301:case 3001302:case 30014:case 30018:case 30020:case 3002001:case 3002002:case 3002004:case 3002005:case 30025:case 5010301:case 5010303:case 5010304:case 5010401:case 50108:case 50106:case 5020802:case 5021803:case 5022001:case 5022002:case 50223:case 5022301:case 3002501:case 30026:case 40104:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 40303:case 4030301:case 4030302:case 4030303:case 40304:case 4030401:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010302:case 50104:case 50107:case 5010701:case 50208:case 50209:case 50210:case 5021101:case 5021102:case 50212:case 50220:case 50221:case 50222:case 50225:case 50226:case 5022201:case 50227:case 50301:case 5030101:case 5030102:case 50302:case 50303:case 5030301:case 50308:case 50309:case 50310:case 5031001:case 50312:case 50313:case 50314:case 5031401:case 50315:case 5031501:case 50316:case 50317:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 50338:case 5033801:case 5033802:case 5033803:case 50339:case 5033901:case 50342:case 5034201:case 5034202:case 5034203:case 50348:case 5034801:case 50352:case 5035201:case 5035202:case 5035203:case 5035204:case 5035205:case 60203:case 60205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 60304:case 60305:case 6030501:case 60306:case 6030601:case 60310:case 6031001:case 70109:case 70201:case 70202:case 7020201:case 7020202:case 80202:case 90105:case 90107:case 90305:case 90404:case 9040401:case 9050301:case 90507:return!1;default:return!0}},SuperMap.Plot.WJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(123!==t)return SuperMap.Plot.AddPoint_WayType.UNKNOWN;switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var l=[];if(123!==t)return l;switch(e){case 2092101:return l.push(new SuperMap.Plot.SubSymbol(123,20921)),l;case 80202:return l.push(new SuperMap.Plot.SubSymbol(123,2170201)),l;case 21221:case 2122101:return l.push(new SuperMap.Plot.SubSymbol(123,21220)),l.push(new SuperMap.Plot.SubSymbol(123,2122001)),l;case 3000801:return l.push(new SuperMap.Plot.SubSymbol(123,3000106)),l;case 50209:return l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 3000802:return l.push(new SuperMap.Plot.SubSymbol(123,3000107)),l;case 3000803:return l.push(new SuperMap.Plot.SubSymbol(123,3000108)),l;case 3000804:return l.push(new SuperMap.Plot.SubSymbol(123,20303)),l;case 3000805:case 3000808:case 3001301:case 4030103:case 4030202:case 5020802:case 5010201:case 2121504:case 50108:return l.push(new SuperMap.Plot.SubSymbol(123,21601)),l;case 3000806:return l.push(new SuperMap.Plot.SubSymbol(123,20404)),l;case 3000807:return l.push(new SuperMap.Plot.SubSymbol(123,2010103)),l.push(new SuperMap.Plot.SubSymbol(123,21601)),l;case 3000809:return l.push(new SuperMap.Plot.SubSymbol(123,21601)),l.push(new SuperMap.Plot.SubSymbol(123,30006)),l;case 30010:return l.push(new SuperMap.Plot.SubSymbol(123,10305)),l;case 3001104:case 3001105:return l.push(new SuperMap.Plot.SubSymbol(123,20404)),l;case 30012:return l.push(new SuperMap.Plot.SubSymbol(123,30006)),l;case 3002005:return l.push(new SuperMap.Plot.SubSymbol(123,21305)),l;case 40301:return l.push(new SuperMap.Plot.SubSymbol(123,40201)),l;case 5021803:return l.push(new SuperMap.Plot.SubSymbol(123,50218)),l;case 50225:return l.push(new SuperMap.Plot.SubSymbol(123,10103)),l;case 50226:return l.push(new SuperMap.Plot.SubSymbol(123,10103)),l.push(new SuperMap.Plot.SubSymbol(123,10103)),l;case 5032003:return l.push(new SuperMap.Plot.SubSymbol(123,20304)),l.push(new SuperMap.Plot.SubSymbol(123,20301)),l;case 5030301:case 5022301:case 5033001:case 5034201:case 5034202:case 50342:return l.push(new SuperMap.Plot.SubSymbol(123,10104)),l;case 5033802:return l.push(new SuperMap.Plot.SubSymbol(123,20202)),l;case 5033803:return l.push(new SuperMap.Plot.SubSymbol(123,20203)),l;case 5034203:return l.push(new SuperMap.Plot.SubSymbol(123,2050302)),l;case 50352:return l.push(new SuperMap.Plot.SubSymbol(123,50231)),l;case 5035202:return l.push(new SuperMap.Plot.SubSymbol(123,21227)),l;case 5035205:return l.push(new SuperMap.Plot.SubSymbol(123,2050308)),l;case 4030101:return l.push(new SuperMap.Plot.SubSymbol(123,2030303)),l;case 4030102:case 4030201:return l.push(new SuperMap.Plot.SubSymbol(123,20303)),l;case 4030104:case 4030203:return l.push(new SuperMap.Plot.SubSymbol(123,20401)),l;case 4030204:return l.push(new SuperMap.Plot.SubSymbol(123,10104)),l;case 40302:case 40303:case 4030301:case 4030302:case 4030303:return l.push(new SuperMap.Plot.SubSymbol(123,40201)),l;case 5010202:return l.push(new SuperMap.Plot.SubSymbol(123,2040301)),l;case 5010203:return l.push(new SuperMap.Plot.SubSymbol(123,20501)),l;case 5010204:return l.push(new SuperMap.Plot.SubSymbol(123,20503)),l;case 50107:return l.push(new SuperMap.Plot.SubSymbol(123,10105)),l;case 5010701:return l.push(new SuperMap.Plot.SubSymbol(123,5010503)),l;case 5021101:case 5021102:case 50212:return l.push(new SuperMap.Plot.SubSymbol(123,2020301)),l;case 50227:return l.push(new SuperMap.Plot.SubSymbol(123,10103)),l;case 5030101:return l.push(new SuperMap.Plot.SubSymbol(123,2050302)),l;case 50315:return l.push(new SuperMap.Plot.SubSymbol(123,21302)),l;case 5031501:return l.push(new SuperMap.Plot.SubSymbol(123,21302)),l.push(new SuperMap.Plot.SubSymbol(123,21302)),l;case 5032001:return l.push(new SuperMap.Plot.SubSymbol(123,20301)),l.push(new SuperMap.Plot.SubSymbol(123,20301)),l;case 5032002:return l.push(new SuperMap.Plot.SubSymbol(123,20304)),l.push(new SuperMap.Plot.SubSymbol(123,20304)),l;case 5035201:return l.push(new SuperMap.Plot.SubSymbol(123,50231)),l;case 5035204:return l.push(new SuperMap.Plot.SubSymbol(123,2040106)),l;case 60205:return l.push(new SuperMap.Plot.SubSymbol(123,21503)),l.push(new SuperMap.Plot.SubSymbol(123,21501)),l;case 60310:return l.push(new SuperMap.Plot.SubSymbol(123,5023103)),l;case 6031001:return l.push(new SuperMap.Plot.SubSymbol(123,2122701)),l.push(new SuperMap.Plot.SubSymbol(123,2122702)),l.push(new SuperMap.Plot.SubSymbol(123,2122703)),l;case 90107:return l.push(new SuperMap.Plot.SubSymbol(123,2040301)),l;case 90305:return l.push(new SuperMap.Plot.SubSymbol(123,50304)),l;default:return l}},SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts=function(t,e){if(123!==t)return 0;switch(e){case 20915:case 21003:case 21207:case 21213:case 21214:case 21215:case 21216:case 21218:case 21221:case 21222:case 21223:case 21224:case 21605:case 30008:case 30009:case 30010:case 30013:case 30014:case 30018:case 40301:case 40303:case 40304:case 50101:case 50102:case 50103:case 50104:case 50106:case 50107:case 50108:case 50208:case 50209:case 50210:case 50212:case 50220:case 50221:case 50222:case 50223:case 50226:case 50302:case 50303:case 50308:case 50309:case 50310:case 50312:case 50313:case 50314:case 50315:case 50320:case 50322:case 50330:case 50331:case 50338:case 50339:case 50342:case 50348:case 60203:case 60205:case 60304:case 60305:case 60306:case 70109:case 70201:case 70202:case 80202:case 90105:case 90107:case 90305:case 90404:case 90507:case 2091501:case 2091502:case 2091503:case 2092101:case 2120701:case 2120702:case 2121301:case 2121302:case 2121303:case 2121304:case 2121305:case 2121501:case 2121502:case 2121503:case 2121504:case 2121505:case 2121506:case 2121507:case 2121601:case 2121602:case 2122101:case 2122201:case 2122301:case 2122303:case 2122304:case 2122401:case 2122402:case 2122403:case 2122404:case 2122405:case 2122406:case 2160501:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001301:case 3001302:case 3002004:case 4030101:case 4030102:case 4030103:case 4030104:case 4030301:case 4030302:case 4030303:case 4030401:case 5010101:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5010401:case 5010701:case 5020802:case 5021101:case 5021102:case 5021803:case 5022001:case 5022002:case 5022201:case 5022301:case 5030102:case 5030301:case 5031001:case 5031401:case 5031501:case 5032001:case 5032002:case 5032003:case 5032201:case 5033001:case 5033801:case 5033802:case 5033803:case 5033901:case 5034201:case 5034202:case 5034203:case 5034801:case 5035201:case 5035203:case 5035204:case 6030501:case 6030601:case 7020201:case 7020202:case 9040401:return 2;case 30011:case 30012:case 30020:case 30025:case 30026:case 40104:case 40302:case 50225:case 50227:case 50301:case 50316:case 50317:case 50352:case 60301:case 60310:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 3002001:case 3002002:case 3002005:case 3002501:case 4030201:case 4030202:case 4030203:case 4030204:case 5020801:case 5030101:case 5035202:case 5035205:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 6031001:return 3;default:return 0}},SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(123!==t)return 0;switch(e){case 21218:case 30018:case 50104:case 50302:case 50313:case 50338:case 50339:case 60203:case 60304:case 60305:case 60306:case 70201:case 90507:case 2120702:case 2121502:case 2121504:case 2121505:case 2121506:case 2121507:case 2122301:case 2160501:case 3001301:case 4030401:case 5010401:case 5031401:case 5031501:case 5033801:case 5033802:case 5033803:case 5033901:case 6030501:case 6030601:return 2;case 21003:case 21224:case 50212:case 50221:case 50222:case 50348:case 2122401:case 2122402:case 2122403:case 2122404:case 2122405:case 2122406:case 2021101:case 2021102:case 5022201:case 5034801:return 3;case 50312:case 50317:return 4;case 21221:case 21222:case 50225:case 50226:case 50316:case 50320:case 50322:case 2122101:case 2122201:case 5020801:case 5032001:case 5032002:case 5032003:case 5032201:return 30;case 50227:case 50352:case 60310:case 5022001:case 5022002:case 5030101:case 5035202:case 5035203:case 6031001:return 512;case 20915:case 21213:case 21214:case 21215:case 21216:case 21223:case 21605:case 30008:case 30010:case 30011:case 30012:case 30020:case 30025:case 30026:case 40104:case 40301:case 40302:case 40303:case 50101:case 50102:case 50106:case 50107:case 50108:case 50209:case 50210:case 50220:case 50223:case 50303:case 50309:case 50315:case 50330:case 50331:case 60301:case 70202:case 80202:case 2091501:case 2091502:case 2091503:case 2120701:case 2121301:case 2121302:case 2121303:case 2121304:case 2121305:case 2121501:case 2121503:case 2121601:case 2121602:case 2122303:case 2122304:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 3002001:case 3002002:case 3002004:case 3002005:case 3002501:case 4030101:case 4030102:case 4030103:case 4030104:case 4030201:case 4030202:case 4030203:case 4030204:case 5010101:case 5010701:case 5020802:case 5022301:case 5030102:case 5030301:case 5035205:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 7020201:case 7020202:return 1e3;case 21207:case 30009:case 30013:case 30014:case 40304:case 50103:case 50208:case 50301:case 50308:case 50310:case 50314:case 50342:case 60205:case 70109:case 90105:case 90107:case 90305:case 90404:case 2092101:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001302:case 4030301:case 4030302:case 4030303:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5021803:case 5031001:case 5033001:case 5034201:case 5034202:case 5034203:case 5035201:case 5035204:case 9040401:return 9999;default:return 0}},SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle=function(t,e){var l={};if(123===t)switch(e){case 50108:case 3000808:case 30012:case 3000801:case 3001101:case 30011:case 30013:case 30010:case 3001104:case 30014:case 30009:case 30008:l.color=l.strokeColor="#0000ff";break;case 3001302:case 40104:l.color=l.strokeColor="#048e24";break;case 30025:l.color=l.strokeColor="#00ff00";break;case 3002501:l.color=l.strokeColor="#00c000"}return l},SuperMap.Plot.WJAlgoSymbolFactory.canSetSubSymbol=function(t,e){return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t,e).length>0||123===this.libID&&(5030101===e||5020801===e||50208===e||50331===e)},SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1},SuperMap.Plot.WJAlgoSymbolFactory.zoomCalSymbol=function(t,e){if(123!==t)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WJAlgoSymbolFactory=void 0;var o=l(189);e.WJAlgoSymbolFactory=o.WJAlgoSymbolFactory}]);
+ */!function (t) { var e = {}; function l(o) { if (e[o]) return e[o].exports; var i = e[o] = { i: o, l: !1, exports: {} }; return t[o].call(i.exports, i, i.exports, l), i.l = !0, i.exports } l.m = t, l.c = e, l.d = function (t, e, o) { l.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: o }) }, l.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, l.t = function (t, e) { if (1 & e && (t = l(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var o = Object.create(null); if (l.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var i in t) l.d(o, i, function (e) { return t[e] }.bind(null, i)); return o }, l.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return l.d(e, "a", e), e }, l.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, l.p = "", l(l.s = 190) }([function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6030601 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0] * e, o = t[0].clone(), i = t[1].clone(), n = SuperMap.Plot.PlottingUtil.linePnt(i, o, e + .2 * e), r = SuperMap.Plot.PlottingUtil.linePnt(o, i, e + .2 * e), a = 1.5 * l, s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, i, n), p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, o, r), u = SuperMap.Plot.PlottingUtil.paraLine(t, l, !0), c = SuperMap.Plot.PlottingUtil.paraLine(t, l, !1), P = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 3 * e / 11), S = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 4 * e / 11), h = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 7 * e / 11), y = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 8 * e / 11), f = []; f.push(s.pntRight), f.push(u[0]), f.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = []; g.push(S), g.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g); var b = []; b.push(y), b.push(u[u.length - 1]), b.push(p.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var M = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 3 * e / 11), m = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 4 * e / 11), d = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 7 * e / 11), v = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 8 * e / 11), O = []; O.push(s.pntLeft), O.push(c[0]), O.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O); var U = []; U.push(m), U.push(d), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U); var w = []; w.push(v), w.push(c[c.length - 1]), w.push(p.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w); var L = new SuperMap.Geometry.Point((s.pntLeft.x + s.pntRight.x) / 2, (s.pntLeft.y + s.pntRight.y) / 2), _ = new SuperMap.Geometry.Point((P.x + M.x) / 2, (P.y + M.y) / 2), V = []; V.push(L), V.push(_), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V); var A = SuperMap.Plot.PlottingUtil.radian(L, _) * SuperMap.Plot.PlottingUtil.RTOD, T = SuperMap.Plot.PlottingUtil.distance(L, _), E = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8, L, _), x = SuperMap.Plot.PlottingUtil.circlePoint(E, .025 * T, .025 * T, A + 90), j = SuperMap.Plot.PlottingUtil.circlePoint(E, .025 * T, .025 * T, A - 90), Y = []; Y.push(x), Y.push(j), Y.push(_); var C = { fillLimit: !0, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, Y, C); var I = new SuperMap.Geometry.Point((p.pntLeft.x + p.pntRight.x) / 2, (p.pntLeft.y + p.pntRight.y) / 2), B = new SuperMap.Geometry.Point((y.x + v.x) / 2, (y.y + v.y) / 2), R = []; R.push(I), R.push(B), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, R); var G = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8, I, B), N = SuperMap.Plot.PlottingUtil.circlePoint(G, .025 * T, .025 * T, A + 90), D = SuperMap.Plot.PlottingUtil.circlePoint(G, .025 * T, .025 * T, A - 90), k = []; k.push(N), k.push(D), k.push(B), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, k, C), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol6030601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6031001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 6 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (t.splice(0, 2), t.unshift(e), this.subSymbols.length > 0) { var l; if (null == this.subSymbols[0].symbolData) return; l = this.subSymbols[0].symbolData.symbolSize.x; var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * this.scaleValues[4], n = o * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, t), s = SuperMap.Plot.PlottingUtil.radian(a.pts, r.pts) * SuperMap.Plot.PlottingUtil.RTOD + 270, p = 60 * SuperMap.Plot.PlottingUtil.distance(r.pts, a.pts) / l, u = new SuperMap.Geometry.Point(2 * a.pts.x - r.pts.x, 2 * a.pts.y - r.pts.y), c = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, s), P = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, s - 180); if (null == this.subSymbols.length) return; null != this.subSymbols[0].code && (this.computeSubSymbol(this.subSymbols[0], a.pts, p, s - 90), this.computeSubSymbol(this.subSymbols[1], c, p, s - 90), this.computeSubSymbol(this.subSymbols[2], P, p, s - 90)), r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()), a.pts.isScalePoint = !0, a.pts.tag = this.scalePoints.length, this.scalePoints.push(a.pts.clone()) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), r = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (-1 === n.index && 3 === t && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var a = SuperMap.Plot.PlottingUtil.clonePoints(i); a.splice(0, n.index + 1), a.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(a); r < s && (s = r), this.scaleValues[t + 1] = (r - s) / r, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol6031001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol6030501 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = .05 * SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.paraLine(t, e, !0), o = SuperMap.Plot.PlottingUtil.paraLine(t, e, !1), i = l[0], n = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, l[0], l[1]), r = []; r.push(i), r.push(n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); var a = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2 + .2 / 3, l[0], l[1]), s = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3, l[0], l[1]), p = []; p.push(a), p.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); var u = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3 * 2, l[0], l[1]), c = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3 * .2 + .2 / 3 * 2, l[0], l[1]), P = []; P.push(u), P.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8, l[0], l[1]), h = l[1], y = []; y.push(S), y.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var f = o[0], g = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, o[0], o[1]), b = []; b.push(f), b.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var M = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2 + .2 / 3, o[0], o[1]), m = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3, o[0], o[1]), d = []; d.push(M), d.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3 * 2, o[0], o[1]), O = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3 * .2 + .2 / 3 * 2, o[0], o[1]), U = []; U.push(v), U.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U); var w = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8, o[0], o[1]), L = o[1], _ = []; _.push(w), _.push(L), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _); var V = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, t[0], t[1]), A = t[0].clone(), T = []; T.push(V), T.push(A), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T); var E = SuperMap.Plot.PlottingUtil.radian(V, A) * SuperMap.Plot.PlottingUtil.RTOD, x = SuperMap.Plot.PlottingUtil.distance(V, A), j = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, V, A), Y = SuperMap.Plot.PlottingUtil.circlePoint(j, .025 * x, .025 * x, E + 90), C = SuperMap.Plot.PlottingUtil.circlePoint(j, .025 * x, .025 * x, E - 90), I = []; I.push(Y), I.push(C), I.push(V); var B = { fillLimit: !0, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, I, B); var R = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, t[1], t[0]), G = t[1].clone(), N = []; N.push(R), N.push(G), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, N); var D = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, R, G), k = SuperMap.Plot.PlottingUtil.circlePoint(D, .025 * x, .025 * x, E + 90), z = SuperMap.Plot.PlottingUtil.circlePoint(D, .025 * x, .025 * x, E - 90), F = []; F.push(k), F.push(z), F.push(R), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, F, B), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol6030501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030107 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "练", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030107 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030106 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "沙", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030106 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030105 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "石", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030105 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030104 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "催", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030104 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030103 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "砌", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030103 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030102 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "浇", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030102 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol6030101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "挖", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol6030101 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5020802 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * r, l.y + o * a); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, s, 0), this.addScalePoint(p); var u = s, c = SuperMap.Plot.PlottingUtil.circlePoint(p, u, u, 90); this.addScalePoint(c), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l), r = 0, a = 0; if (0 === t) r = (e.x - i.x) / n, this.scaleValues[2] = r, a = (e.y - i.y) / n, this.scaleValues[3] = a; else if (1 === t) { r = this.scaleValues[2], a = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(i.x + n * r, i.y + n * a), p = SuperMap.Plot.PlottingUtil.distance(s, e); this.scaleValues[0] = p / n } } } }]), e }(); SuperMap.Plot.AlgoSymbol5020802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5035205 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < 3)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t); this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue() / 3); var o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], r = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), a = new SuperMap.Geometry.Point(r.x - 4 * n, r.y), s = new SuperMap.Geometry.Point(r.x - 4 * n, r.y - n / 2), p = []; p.push(a), p.push(s); var u = { lineTypeLimit: !0, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, u); var c = new SuperMap.Geometry.Point(r.x - 4 * n, r.y), P = new SuperMap.Geometry.Point(r.x - n, r.y), S = []; S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, u), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], r, 2 * n, 0); var h = new SuperMap.Geometry.Point(r.x + 4 * n, r.y), y = new SuperMap.Geometry.Point(r.x + n, r.y), f = []; f.push(h), f.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f, u); var g = new SuperMap.Geometry.Point(r.x + 4 * n, r.y + n / 2), b = new SuperMap.Geometry.Point(r.x + 4 * n, r.y), M = []; M.push(g), M.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M, u), this.addScalePoint(r, 0); var m = SuperMap.Plot.PlottingUtil.circlePoint(r, 2 * n, 2 * n, 90); this.addScalePoint(m, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = 0, r = 0; if (0 === t && (n = (e.x - i.x) / o, this.scaleValues[0] = n, r = (e.y - i.y) / o, this.scaleValues[1] = r), 1 === t) { n = this.scaleValues[0], r = this.scaleValues[1]; var a = new SuperMap.Geometry.Point(i.x + o * n, i.y + o * r), s = SuperMap.Plot.PlottingUtil.distance(a, e); this.scaleValues[2] = s / 2 / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol5035205 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5035203 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 6 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); t.splice(0, 2), t.unshift(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = l * this.scaleValues[4], i = l * this.scaleValues[5], n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o, t), r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), a = SuperMap.Plot.PlottingUtil.radian(r.pts, n.pts) * SuperMap.Plot.PlottingUtil.RTOD, s = SuperMap.Plot.PlottingUtil.distance(n.pts, r.pts), p = r.pts.clone(), u = new SuperMap.Geometry.Point(0, .1 * s), c = new SuperMap.Geometry.Point(.4 * s, .1 * s), P = new SuperMap.Geometry.Point(.4 * s, -.1 * s), S = new SuperMap.Geometry.Point(0, -.1 * s), h = SuperMap.Plot.PlottingUtil.coordinateTrans(p, u, a), y = SuperMap.Plot.PlottingUtil.coordinateTrans(p, c, a), f = SuperMap.Plot.PlottingUtil.coordinateTrans(p, P, a), g = SuperMap.Plot.PlottingUtil.coordinateTrans(p, S, a), b = []; b.push(h), b.push(y), b.push(f), b.push(g), b.push(h); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, { fillLimit: !0, lineTypeLimit: !0, surroundLineLimit: !0 }); var M = new SuperMap.Geometry.Point(.05 * s, 0), m = new SuperMap.Geometry.Point(.15 * s, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(p, M, a), v = SuperMap.Plot.PlottingUtil.coordinateTrans(p, m, a), O = []; O.push(d), O.push(v); var U = { lineTypeLimit: !0, surroundLineLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, U); var w = new SuperMap.Geometry.Point(.1 * s, .05 * s), L = new SuperMap.Geometry.Point(.1 * s, -.05 * s), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(p, w, a), V = SuperMap.Plot.PlottingUtil.coordinateTrans(p, L, a), A = []; A.push(_), A.push(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, U); var T = new SuperMap.Geometry.Point(.25 * s, .05 * s), E = new SuperMap.Geometry.Point(.35 * s, .05 * s), x = SuperMap.Plot.PlottingUtil.coordinateTrans(p, T, a), j = SuperMap.Plot.PlottingUtil.coordinateTrans(p, E, a), Y = []; Y.push(x), Y.push(j), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, Y, U); var C = new SuperMap.Geometry.Point(.3 * s, .05 * s), I = new SuperMap.Geometry.Point(.3 * s, -.05 * s), B = SuperMap.Plot.PlottingUtil.coordinateTrans(p, C, a), R = SuperMap.Plot.PlottingUtil.coordinateTrans(p, I, a), G = []; G.push(B), G.push(R), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, G, U); var N = new SuperMap.Geometry.Point(.25 * s, -.05 * s), D = new SuperMap.Geometry.Point(.35 * s, -.05 * s), k = SuperMap.Plot.PlottingUtil.coordinateTrans(p, N, a), z = SuperMap.Plot.PlottingUtil.coordinateTrans(p, D, a), F = []; F.push(k), F.push(z), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, F, U); var K = new SuperMap.Geometry.Point(.4 * s, 0), W = new SuperMap.Geometry.Point(.8 * s, 0), J = SuperMap.Plot.PlottingUtil.coordinateTrans(p, K, a), q = SuperMap.Plot.PlottingUtil.coordinateTrans(p, W, a), Z = []; Z.push(J), Z.push(q), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, Z, U); var X = new SuperMap.Geometry.Point(.7 * s, .025 * s), H = new SuperMap.Geometry.Point(.7 * s, -.025 * s), Q = SuperMap.Plot.PlottingUtil.coordinateTrans(p, X, a), $ = SuperMap.Plot.PlottingUtil.coordinateTrans(p, H, a), tt = []; tt.push(q), tt.push(Q), tt.push($); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, tt, { fillLimit: !0, lineTypeLimit: !0, surroundLineLimit: !0, fill: !0 }), n.pts.isScalePoint = !0, n.pts.tag = this.scalePoints.length, this.scalePoints.push(n.pts.clone()), r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), r = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (-1 === n.index && 3 === t && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var a = SuperMap.Plot.PlottingUtil.clonePoints(i); a.splice(0, n.index + 1), a.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(a); r < s && (s = r), this.scaleValues[t + 1] = (r - s) / r, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol5035203 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5035202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (t.splice(0, 2), t.unshift(e), this.subSymbols.length > 0) { var l; if (null == this.subSymbols[0].symbolData) return; l = this.subSymbols[0].symbolData.symbolSize.x; var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * this.scaleValues[4], n = o * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, t), s = SuperMap.Plot.PlottingUtil.radian(a.pts, r.pts) * SuperMap.Plot.PlottingUtil.RTOD + 270, p = 60 * SuperMap.Plot.PlottingUtil.distance(r.pts, a.pts) / l; if (null == this.subSymbols.length) return; null != this.subSymbols[0].code && this.computeSubSymbol(this.subSymbols[0], a.pts, p, s - 90), r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()), a.pts.isScalePoint = !0, a.pts.tag = this.scalePoints.length, this.scalePoints.push(a.pts.clone()) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), r = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (-1 === n.index && 3 === t && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var a = SuperMap.Plot.PlottingUtil.clonePoints(i); a.splice(0, n.index + 1), a.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(a); r < s && (s = r), this.scaleValues[t + 1] = (r - s) / r, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol5035202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5035201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(1e3), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[1] = 2 * this.getSubSymbolScaleValue()); var o = l * this.scaleValues[1], i = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, o); if (-1 !== i.index) { var n = t[0].clone(), r = i.pt, a = SuperMap.Plot.PlottingUtil.radian(n, r) * SuperMap.Plot.PlottingUtil.RTOD, s = []; s.push(i.pt); for (var p = i.index + 1; p < e.length; p++)s.push(e[p]); this.addArrow(s); var u = .3 * o, c = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(2 / 3 * .5, t[0], i.pt); if (this.subSymbols.length > 0) { this.computeSubSymbol(this.subSymbols[0], c, u, a); var P = SuperMap.Plot.PlottingUtil.circlePoint(t[0], 2.1 * u, 2.1 * u, a), S = SuperMap.Plot.PlottingUtil.circlePoint(t[0], 3 * u, 3 * u, a), h = []; h.push(P), h.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var y = SuperMap.Plot.PlottingUtil.circlePoint(S, .2 * u, .2 * u, a), f = SuperMap.Plot.PlottingUtil.circlePoint(S, .05 * u, .05 * u, a + 90), g = SuperMap.Plot.PlottingUtil.circlePoint(S, .05 * u, .05 * u, a + 270), b = []; b.push(y), b.push(f), b.push(g); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b, { fillLimit: !0, fill: !0 }) } var M = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, a + 90); this.addScalePoint(M, 0), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = l[0].clone(), n = e.clone(), r = SuperMap.Plot.PlottingUtil.distance(n, i); if (0 === t) { var a = r / o; a <= .06 && (a = .06), a >= .15 && (a = .15), this.scaleValues[1] = a } } } }]), e }(); SuperMap.Plot.AlgoSymbol5035201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5034801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = t[0].clone(), o = t[1].clone(); e = 2 == t.length ? o : t[2].clone(); var i = new SuperMap.Geometry.Point((l.x + o.x) / 2, (l.y + o.y) / 2), n = SuperMap.Plot.PlottingUtil.distance(i, e), r = .5 * n, a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, i, e), s = a.pntLeft, p = a.pntRight, u = !(i.x > e.x), c = []; u ? (c.push(l), c.push(s)) : (c.push(l), c.push(p)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var P = []; u ? (P.push(o), P.push(p)) : (P.push(o), P.push(s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S, h, y, f, g, b = .37 * n, M = SuperMap.Plot.PlottingUtil.linePnt(i, e, b), m = .09 * n, d = []; d.push(M), d.push(new SuperMap.Geometry.Point(M.x, M.y + m)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, d, { lineTypeLimit: !0 }), u ? (h = (S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m, i, M)).pntLeft, y = (S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * m, i, M)).pntLeft, f = (S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m, h, y)).pntRight, g = S.pntLeft) : (h = (S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m, i, M)).pntRight, y = (S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * m, i, M)).pntRight, f = (S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m, h, y)).pntRight, g = S.pntLeft); var v = []; v.push(h), v.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v, { lineTypeLimit: !0 }); var O = []; O.push(f), O.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O, { lineTypeLimit: !0 }), this.addText("催", M, m, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol5034801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5034203 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = .5 * l, i = l * this.getSubSymbolScaleValue() * 1.5, n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o, e); if (n.bfind) { var r = n.pts.clone(), a = e[n.index].clone(), s = e[n.index + 1].clone(), p = SuperMap.Plot.PlottingUtil.radian(a, s) * SuperMap.Plot.PlottingUtil.RTOD, u = SuperMap.Plot.PlottingUtil.circlePoint(r, i, i, p + 90), c = []; c.push(n.pts), c.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { lineTypeLimit: !0 }); var P = SuperMap.Plot.PlottingUtil.radian(r, u) * SuperMap.Plot.PlottingUtil.RTOD, S = new SuperMap.Geometry.Point(-.2 * i, .05 * i), h = new SuperMap.Geometry.Point(-.2 * i, -.05 * i), y = SuperMap.Plot.PlottingUtil.coordinateTrans(u, S, P), f = SuperMap.Plot.PlottingUtil.coordinateTrans(u, h, P), g = []; g.push(u), g.push(y), g.push(f); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, g, { lineTypeLimit: !0, fillLimit: !0, fill: !0 }); var b = new SuperMap.Geometry.Point(0, -.6 * i), M = SuperMap.Plot.PlottingUtil.coordinateTrans(r, b, p); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], M, i, p - 90), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol5034203 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5034202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], r = o * this.scaleValues[2], a = o * this.scaleValues[3], s = new SuperMap.Geometry.Point(l.x + r, l.y + a), p = o * n, u = new SuperMap.Geometry.Point(s.x - .5 * p, s.y); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], u, p, 0); var c = new SuperMap.Geometry.Point(s.x + .5 * p, s.y), P = SuperMap.Plot.PlottingUtil.circlePoint(c, .3 * p, .3 * p, -90), S = SuperMap.Plot.PlottingUtil.circlePoint(c, .5 * p, .5 * p, 90), h = []; h.push(P), h.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var y = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * p, .2 * p, -90), f = SuperMap.Plot.PlottingUtil.circlePoint(P, .05 * p, .05 * p, 0), g = SuperMap.Plot.PlottingUtil.circlePoint(P, .05 * p, .05 * p, 180), b = []; b.push(y), b.push(f), b.push(g); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b, { fillLimit: !0, fill: !0 }); var M = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 180); this.addScalePoint(M, 0), this.addScalePoint(s, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === n) return; var r = 0, a = 0, s = 0, p = 0; if (0 === t) { r = n * (s = this.scaleValues[2]), a = n * (p = this.scaleValues[3]); var u = new SuperMap.Geometry.Point(i.x + r, i.y + a), c = SuperMap.Plot.PlottingUtil.distance(e, u); this.scaleValues[0] = c / n } else 1 === t && (s = (r = e.x - i.x) / n, p = (a = e.y - i.y) / n, this.scaleValues[2] = s, this.scaleValues[3] = p) } } }]), e }(); SuperMap.Plot.AlgoSymbol5034202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5034201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], r = o * this.scaleValues[2], a = o * this.scaleValues[3], s = new SuperMap.Geometry.Point(l.x + r, l.y + a), p = o * n, u = new SuperMap.Geometry.Point(s.x - .5 * p, s.y); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], u, p, 0); var c = new SuperMap.Geometry.Point(s.x + .5 * p, s.y), P = SuperMap.Plot.PlottingUtil.circlePoint(c, .5 * p, .5 * p, -90), S = SuperMap.Plot.PlottingUtil.circlePoint(c, .3 * p, .3 * p, 90), h = []; h.push(P), h.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var y = SuperMap.Plot.PlottingUtil.circlePoint(S, .2 * p, .2 * p, 90), f = SuperMap.Plot.PlottingUtil.circlePoint(S, .05 * p, .05 * p, 0), g = SuperMap.Plot.PlottingUtil.circlePoint(S, .05 * p, .05 * p, 180), b = []; b.push(y), b.push(f), b.push(g); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b, { fillLimit: !0, fill: !0 }); var M = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 180); this.addScalePoint(M, 0), this.addScalePoint(s, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === n) return; var r = 0, a = 0, s = 0, p = 0; if (0 === t) { s = n * (r = this.scaleValues[2]), p = n * (a = this.scaleValues[3]); var u = new SuperMap.Geometry.Point(i.x + s, i.y + p), c = SuperMap.Plot.PlottingUtil.distance(e, u); this.scaleValues[0] = c / n } else 1 === t && (r = (s = e.x - i.x) / n, a = (p = e.y - i.y) / n, this.scaleValues[2] = r, this.scaleValues[3] = a) } } }]), e }(); SuperMap.Plot.AlgoSymbol5034201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5033803 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0] * o, n = SuperMap.Plot.PlottingUtil.linePnt(e, l, .5 * o), r = SuperMap.Plot.PlottingUtil.linePnt(n, e, i), a = SuperMap.Plot.PlottingUtil.linePnt(n, l, i), s = []; s.push(t[0]), s.push(r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); var p = []; p.push(a), p.push(t[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); var u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[1], t[0]), c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[0], t[1]), P = []; P.push(u.pntRight), P.push(u.pntLeft); var S = { lineTypeLimit: !0, surroundLineLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, S); var h = []; h.push(c.pntRight), h.push(c.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, S); var y = []; y.push(t[0]), y.push(r); var f = []; f.push(a), f.push(t[1]); var g = SuperMap.Plot.PlottingUtil.paraLine(y, i, !0), b = SuperMap.Plot.PlottingUtil.paraLine(y, i, !1), M = SuperMap.Plot.PlottingUtil.paraLine(f, i, !0), m = SuperMap.Plot.PlottingUtil.paraLine(f, i, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); var d = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, 2 * i, d), this.addScalePoint(u.pntRight, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 === t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; i > .48 && (i = .48), this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol5033803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5033802 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0] * o, n = SuperMap.Plot.PlottingUtil.linePnt(e, l, .5 * o), r = SuperMap.Plot.PlottingUtil.linePnt(n, e, i), a = SuperMap.Plot.PlottingUtil.linePnt(n, l, i), s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[1], t[0]), p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[0], t[1]), u = []; u.push(s.pntRight), u.push(s.pntLeft); var c = { lineTypeLimit: !0, surroundLineLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, c); var P = []; P.push(p.pntRight), P.push(p.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, c); var S = []; S.push(t[0]), S.push(r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = []; h.push(a), h.push(t[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var y = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, 2 * i, y - 90), this.addScalePoint(s.pntLeft, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 === t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; i > .48 && (i = .48), this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol5033802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5033001 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = .5 * l, i = l * this.getSubSymbolScaleValue() / 1.2, n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o, e); if (n.bfind) { var r = n.pts.clone(), a = e[n.index].clone(), s = e[n.index + 1].clone(), p = SuperMap.Plot.PlottingUtil.radian(a, s) * SuperMap.Plot.PlottingUtil.RTOD, u = SuperMap.Plot.PlottingUtil.circlePoint(r, i, i, p + 90), c = SuperMap.Plot.PlottingUtil.circlePoint(r, i, i, p + 270), P = []; P.push(n.pts), P.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { lineTypeLimit: !0 }); var S = SuperMap.Plot.PlottingUtil.radian(r, u) * SuperMap.Plot.PlottingUtil.RTOD, h = SuperMap.Plot.PlottingUtil.circlePoint(u, i, i, S + 30), y = []; y.push(u), y.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var f = SuperMap.Plot.PlottingUtil.radian(u, h) * SuperMap.Plot.PlottingUtil.RTOD, g = new SuperMap.Geometry.Point(-.2 * i, .05 * i), b = new SuperMap.Geometry.Point(-.2 * i, -.05 * i), M = SuperMap.Plot.PlottingUtil.coordinateTrans(h, g, f), m = SuperMap.Plot.PlottingUtil.coordinateTrans(h, b, f), d = []; d.push(h), d.push(M), d.push(m); var v = { fillLimit: !0, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, d, v); var O = SuperMap.Plot.PlottingUtil.circlePoint(u, i, i, S + 330), U = []; U.push(u), U.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U); var w = SuperMap.Plot.PlottingUtil.radian(u, O) * SuperMap.Plot.PlottingUtil.RTOD, L = SuperMap.Plot.PlottingUtil.coordinateTrans(O, g, w), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(O, b, w), V = []; V.push(O), V.push(L), V.push(_), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, V, v), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], c, i, p + 270), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol5033001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5032003 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(90), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[2] = 2 * o } var i = l * this.scaleValues[0], n = this.scaleValues[1], r = l * this.scaleValues[2], a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, e); if (a.bfind) { var s = a.pts.clone(), p = e[a.index].clone(), u = e[a.index + 1].clone(), c = SuperMap.Plot.PlottingUtil.radian(p, u) * SuperMap.Plot.PlottingUtil.RTOD, P = SuperMap.Plot.PlottingUtil.circlePoint(s, r, r, c + n), S = []; S.push(a.pts), S.push(P); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0, surroundLineLimit: !0 }); var h = SuperMap.Plot.PlottingUtil.radian(s, P) * SuperMap.Plot.PlottingUtil.RTOD, y = new SuperMap.Geometry.Point(-.2 * r, .05 * r), f = new SuperMap.Geometry.Point(-.2 * r, -.05 * r), g = SuperMap.Plot.PlottingUtil.coordinateTrans(P, y, h), b = SuperMap.Plot.PlottingUtil.coordinateTrans(P, f, h), M = []; M.push(P), M.push(g), M.push(b); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, M, { lineTypeLimit: !0, surroundLineLimit: !0, fillLimit: !0, fill: !0 }); var m = .3 * r, d = .6 * r, v = i - d; v < 0 && (v = 0); var O = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(v, e); if (O.bfind) { var U = []; U.push(O.pts); for (var w = O.index; w >= 0; w--)U.push(e[w]); var L = []; L.push(O.pts); for (var _ = O.index + 1; _ < e.length; _++)L.push(e[_]); var V = .6 * m, A = []; if (U.length > 1) { var T = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, U); if (T.bfind) { (A = []).push(T.pts); for (var E = T.index + 1; E < U.length; E++)A.push(U[E]); U = [], A.length > 1 && (U = U.concat(A)) } } if (U.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U), L.length > 1) { var x = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, L); if (x.bfind) { (A = []).push(x.pts); for (var j = x.index + 1; j < L.length; j++)A.push(L[j]); L = [], A.length > 1 && (L = L.concat(A)) } } var Y = i + d; Y > l && (Y = l), Y = l - Y; for (var C = [], I = L.length - 1; I >= 0; I--)C.push(L[I]); var B = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(Y, C); if (B.bfind) { var R = []; R.push(B.pts); for (var G = B.index; G >= 0; G--)R.push(C[G]); var N = []; N.push(B.pts); for (var D = B.index + 1; D < C.length; D++)N.push(C[D]); if (R.length > 1) { var k = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, R); if (k.bfind) { (A = []).push(k.pts); for (var z = k.index + 1; z < R.length; z++)A.push(R[z]); R = [], A.length > 1 && (R = R.concat(A)) } } if (R.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, R), N.length > 1) { var F = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, N); if (F.bfind) { (A = []).push(F.pts); for (var K = F.index + 1; K < N.length; K++)A.push(N[K]); N = [], A.length > 1 && (N = N.concat(A)) } } if (N.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, N), this.subSymbols.length > 0) { if (null !== this.subSymbols[0].symbolData) for (var W = 0; W < this.subSymbols[0].symbolData.innerCells.length; W++)34 === this.subSymbols[0].symbolData.innerCells[W].type && this.subSymbols[0].symbolData.innerCells.splice(W, 1); this.computeSubSymbol(this.subSymbols[0], O.pts, 1.2 * m, c - 90), this.computeSubSymbol(this.subSymbols[1], B.pts, 1.2 * m, c - 90) } this.addScalePoint(a.pts, 0), this.addScalePoint(P, 1), this.finish() } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; if (0 > t || 1 < t) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var n = [], r = 0; r < o.length; r++)n.push(o[r]); for (var a = -1, s = new SuperMap.Geometry.Point(0, 0), p = 0, u = 0; u < n.length - 1; u++) { var c = []; c.push(n[u]), c.push(n[u + 1]); var P = SuperMap.Plot.PlottingUtil.projectPoint(e, n[u], n[u + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P, c).isOnPolyLine) { var S = SuperMap.Plot.PlottingUtil.distance(e, P); -1 === a ? (a = u, s = P, p = S) : p > S && (a = u, s = P, p = S) } } if (-1 === a || a > n.length - 1) return; for (var h = 0, y = 0; y < a; y++) { var f = o[y].clone(), g = o[y + 1].clone(); h += SuperMap.Plot.PlottingUtil.distance(f, g) } var b = o[a].clone(); if ((h += SuperMap.Plot.PlottingUtil.distance(b, s)) < 0 || h > i) return; this.scaleValues[0] = h / i } if (1 === t) { var M = i * this.scaleValues[0], m = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(M, o); if (!m.bfind) return; var d = m.pts.clone(), v = new SuperMap.Geometry.Point(o[m.index].x, o[m.index].y), O = new SuperMap.Geometry.Point(o[m.index + 1].x, o[m.index + 1].y), U = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD, w = SuperMap.Plot.PlottingUtil.radian(d, e) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[1] = w - U; var L = SuperMap.Plot.PlottingUtil.distance(d, e); this.scaleValues[2] = L / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol5032003 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5031401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = e * this.scaleValues[0], o = .1 * l, i = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], o), n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l / 2, t[0], i), r = n.pntRight, a = n.pntLeft, s = []; s.push(r), s.push(t[0]), s.push(a); var p = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(s); p = SuperMap.Plot.PlottingUtil.clearSamePts(p); var u = { lineColorLimit: !0, lineTypeLimit: !0, surroundLineLimit: !0, strokeColor: "#0000ff", color: "#0000ff" }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, u); var c = SuperMap.Plot.PlottingUtil.paraLine(s, e, !1), P = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c); P = SuperMap.Plot.PlottingUtil.clearSamePts(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, u), this.addScalePoint(r, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 === t) { var i = 2 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; i < .4 && (i = .4), this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol5031401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5030301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI, a = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .8 * a, r); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p) } var P = e[0], S = e[1], h = e[e.length - 2], y = e[e.length - 1], f = .3 * a, g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, S, P), b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, h, y), M = g.pntLeft, m = b.pntLeft, d = []; d.push(P), d.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = []; v.push(y), v.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v); var O = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), U = SuperMap.Plot.PlottingUtil.circlePoint(O.pts, l * this.scaleValues[0], l * this.scaleValues[0], r + 90); this.addScalePoint(U, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol5030301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5022301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 4 > this.scaleValues.length && (this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = 1.5 * this.getDefaultSubSymbolSize(); this.subSymbolScaleValue = i / o, this.subSymbolScaleValue > .2 && (this.subSymbolScaleValue = .2), this.scaleValues[0] = this.subSymbolScaleValue } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * r, l.y + o * a); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, o * n, 0); for (var u = 0; u < this.components.length; u++)this.components[u].style.strokeColor = "#0000FF", this.components[u].style.lineColorLimit = !0, this.components[u].style.strokeOpacity = 1, this.components[u].style.color = "#0000FF", this.components[u].style.opacity = 1; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e), this.addScalePoint(p); var c = SuperMap.Plot.PlottingUtil.circlePoint(p, s, s, 90); this.addScalePoint(c), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l), r = 0, a = 0; if (0 === t) r = (e.x - i.x) / n, this.scaleValues[2] = r, a = (e.y - i.y) / n, this.scaleValues[3] = a; else if (1 === t) { r = this.scaleValues[2], a = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(i.x + n * r, i.y + n * a), p = SuperMap.Plot.PlottingUtil.distance(s, e); this.scaleValues[0] = p / n } } } }]), e }(); SuperMap.Plot.AlgoSymbol5022301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5022002 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.05), l.scaleValues.push(90)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.5), this.scaleValues.push(.05), this.scaleValues.push(90)); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[1] = o } var i = this.scaleValues[0], n = this.scaleValues[1], r = this.scaleValues[2], a = l * i, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = n * l, P = u, S = new SuperMap.Geometry.Point(c, -.5 * c), h = new SuperMap.Geometry.Point(c, .5 * c), y = new SuperMap.Geometry.Point(-c, .5 * c), f = new SuperMap.Geometry.Point(-c, -.5 * c), g = SuperMap.Plot.PlottingUtil.coordinateTrans(P, S, r), b = SuperMap.Plot.PlottingUtil.coordinateTrans(P, h, r), M = SuperMap.Plot.PlottingUtil.coordinateTrans(P, y, r), m = SuperMap.Plot.PlottingUtil.coordinateTrans(P, f, r); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [g, b, M, m, g]); var d = new SuperMap.Geometry.Point(.5 * c, .5 * c), v = new SuperMap.Geometry.Point(.5 * c, -.5 * c), O = SuperMap.Plot.PlottingUtil.coordinateTrans(P, v, r), U = SuperMap.Plot.PlottingUtil.coordinateTrans(P, d, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [O, U]); var w = new SuperMap.Geometry.Point(0, .5 * c), L = new SuperMap.Geometry.Point(0, -.5 * c), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(P, w, r), V = SuperMap.Plot.PlottingUtil.coordinateTrans(P, L, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [_, V]); var A = new SuperMap.Geometry.Point(c, 0), T = new SuperMap.Geometry.Point(2 * c, 0), E = SuperMap.Plot.PlottingUtil.coordinateTrans(P, A, r), x = SuperMap.Plot.PlottingUtil.coordinateTrans(P, T, r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [E, x]); var j = new SuperMap.Geometry.Point(2 * c, .15 * c), Y = new SuperMap.Geometry.Point(2 * c, -.15 * c), C = new SuperMap.Geometry.Point(2.6 * c, 0), I = SuperMap.Plot.PlottingUtil.coordinateTrans(P, j, r), B = SuperMap.Plot.PlottingUtil.coordinateTrans(P, Y, r), R = SuperMap.Plot.PlottingUtil.coordinateTrans(P, C, r); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [I, B, R], { lineTypeLimit: !0, lineColorLimit: !0, strokeColor: "#FF0000", strokeOpacity: 1, color: "#FF0000", opacity: 1, surroundLineLimit: !0, fillLimit: !0, fill: !0 }); var G, N = [], D = []; for (G = 0; G <= p; G++)N.push(e[G]); for (N.push(u), D.push(u), G = p + 1; G < e.length; G++)D.push(e[G]); var k = 1.2 * c; if (a > k) { var z = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a - k, N); if (z.bfind) { var F = z.pts, K = z.index, W = []; for (G = 0; G <= K; G++)W.push(N[G]); W.push(F), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, W) } } if (l - a > k) { var J = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(k, D); if (J.bfind) { var q = J.pts, Z = J.index; for ((W = []).push(q), G = Z + 1; G < D.length; G++)W.push(D[G]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, W) } } this.scalePoints = [], this.addScalePoint(u), this.addScalePoint(x), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var n = e.clone(), r = -1, a = 0, s = 0; s < o.length - 1; s++) { var p = []; p.push(o[s]), p.push(o[s + 1]); var u = SuperMap.Plot.PlottingUtil.projectPoint(n, o[s], o[s + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(u, p).isOnPolyLine) { var c = SuperMap.Plot.PlottingUtil.distance(n, u); -1 === r ? (r = s, a = c) : a > c && (r = s, a = c) } } if (-1 === r) return SuperMap.Plot.PlottingUtil.distance(n, o[0]) > SuperMap.Plot.PlottingUtil.distance(n, o[o.length - 1]) ? void (r = o.length - 1) : void (r = 0); var P = 0; if (0 === r) P = SuperMap.Plot.PlottingUtil.distance(o[0], u); else for (var S = 0; S < r; S++)P += SuperMap.Plot.PlottingUtil.distance(o[S], o[S + 1]); if (P < 0 || P > i) return; this.scaleValues[0] = P / i } else if (1 === t) { var h = this.scaleValues[0] * i, y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h, o); if (!y.bfind) return; var f = y.pts, g = SuperMap.Plot.PlottingUtil.distance(f, e) / i; g > .5 && (g = .5), this.scaleValues[1] = g; var b = SuperMap.Plot.PlottingUtil.radian(f, e) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[2] = b + 90 } } } }]), e }(); SuperMap.Plot.AlgoSymbol5022002 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5022001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.05), l.scaleValues.push(180)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.5), this.scaleValues.push(.05), this.scaleValues.push(180)); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[1] = o } var i = this.scaleValues[0], n = this.scaleValues[1], r = this.scaleValues[2], a = l * i, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = n * l * .5, P = new SuperMap.Geometry.Point(0, 0), S = new SuperMap.Geometry.Point(.5 * c, 0), h = new SuperMap.Geometry.Point(0, c), y = [], f = SuperMap.Plot.PlottingUtil.coordinateTrans(u, P, r); y.push(f); var g = SuperMap.Plot.PlottingUtil.coordinateTrans(u, S, r); y.push(g); var b = SuperMap.Plot.PlottingUtil.coordinateTrans(u, h, r); y.push(b), this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, y); var M = new SuperMap.Geometry.Point(0, -2 * c), m = new SuperMap.Geometry.Point(.15 * c, -1.6 * c), d = new SuperMap.Geometry.Point(-.15 * c, -1.6 * c), v = SuperMap.Plot.PlottingUtil.coordinateTrans(u, M, r), O = SuperMap.Plot.PlottingUtil.coordinateTrans(u, m, r), U = SuperMap.Plot.PlottingUtil.coordinateTrans(u, d, r), w = []; w.push(v), w.push(O), w.push(U); var L = { surroundLineFlag: !1, fillLimit: !0, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, w, L); var _ = new SuperMap.Geometry.Point(0, -c), V = SuperMap.Plot.PlottingUtil.coordinateTrans(u, _, r); (w = []).push(V), w.push(v.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w, L); var A, T = [], E = []; for (A = 0; A <= p; A++)T.push(e[A]); for (T.push(u), E.push(u), A = p + 1; A < e.length; A++)E.push(e[A]); var x = 1.2 * c; if (a > x) { var j = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a - x, T); if (j.bfind) { var Y = j.pts, C = j.index, I = []; for (A = 0; A <= C; A++)I.push(T[A]); I.push(Y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, I) } } if (l - a > x) { var B = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(x, E); if (B.bfind) { var R = B.pts, G = B.index; for ((I = []).push(R), A = G + 1; A < E.length; A++)I.push(E[A]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, I) } } R = void 0 === R ? e[e.length - 1] : R, Y = void 0 === Y ? e[0] : Y; var N = SuperMap.Plot.PlottingUtil.radian(Y, R) * SuperMap.Plot.PlottingUtil.RTOD; this.addText("ZD0", u, x, N + 90), this.scalePoints = [], this.addScalePoint(u), this.addScalePoint(v), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var n = e.clone(), r = -1, a = 0, s = 0; s < o.length - 1; s++) { var p = []; p.push(o[s]), p.push(o[s + 1]); var u = SuperMap.Plot.PlottingUtil.projectPoint(n, o[s], o[s + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(u, p).isOnPolyLine) { var c = SuperMap.Plot.PlottingUtil.distance(n, u); -1 === r ? (r = s, a = c) : a > c && (r = s, a = c) } } if (-1 === r) return SuperMap.Plot.PlottingUtil.distance(n, o[0]) > SuperMap.Plot.PlottingUtil.distance(n, o[o.length - 1]) ? void (r = o.length - 1) : void (r = 0); var P = 0; if (0 === r) P = SuperMap.Plot.PlottingUtil.distance(o[0], u); else for (var S = 0; S < r; S++)P += SuperMap.Plot.PlottingUtil.distance(o[S], o[S + 1]); if (P < 0 || P > i) return; this.scaleValues[0] = P / i } else if (1 === t) { var h = this.scaleValues[0] * i, y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h, o); if (!y.bfind) return; var f = y.pts, g = SuperMap.Plot.PlottingUtil.distance(f, e) / i; g > .5 && (g = .5), this.scaleValues[1] = g; var b = SuperMap.Plot.PlottingUtil.radian(f, e) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[2] = b + 90 } } } }]), e }(); SuperMap.Plot.AlgoSymbol5022001 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5021803 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.125), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.125), this.scaleValues.push(0)); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l, o, i = SuperMap.Plot.PlottingUtil.polylineDistance(e), n = this.getDefaultSubSymbolSize() / i; (n > .3 || n <= 0) && (n = .3); var r = 1.5 * n; 2 === t.length ? (this.isEdit || (this.scaleValues[3] = this.scaleValues[2] + r), l = this.scaleValues[2], o = this.scaleValues[3]) : (SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4], 0) && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.125)), this.isEdit || (this.scaleValues[4] = this.scaleValues[3] + r), l = this.scaleValues[3], o = this.scaleValues[4]); var a = i * l, s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.pts, u = i * o; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(u, e)).bfind) { var c = s.index, P = s.pts, S = new SuperMap.Geometry.Point(p.x, p.y), h = new SuperMap.Geometry.Point(P.x, P.y), y = SuperMap.Plot.PlottingUtil.radian(S, h) * SuperMap.Plot.PlottingUtil.RTOD, f = []; f.push(P); for (var g = c + 1; g < e.length; g++)f.push(e[g]); this.addArrow(f); var b = SuperMap.Plot.PlottingUtil.distance(S, h); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], S, b, y), this.scalePoints = [], this.addScalePoint(P); var M = SuperMap.Plot.PlottingUtil.circlePoint(S, b / 2, b / 2, y + 90); this.addScalePoint(M), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = 0, r = 0; if (2 === l.length ? (n = this.scaleValues[2], r = this.scaleValues[3]) : (n = this.scaleValues[3], r = this.scaleValues[4]), 0 === t) { for (var a = r - n, s = e.clone(), p = [], u = 0; u < o.length; u++)p.push(o[u].clone()); for (var c, P = -1, S = 0, h = 0; h < p.length - 1; h++) { var y = []; y.push(p[h]), y.push(p[h + 1]); var f = SuperMap.Plot.PlottingUtil.projectPoint(s, p[h], p[h + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(f, y).isOnPolyLine) { var g = SuperMap.Plot.PlottingUtil.distance(s, f); -1 === P ? (P = h, c = f, S = g) : S > g && (P = h, c = f, S = g) } } if (-1 === P || P > p.length - 1) return; for (var b = 0, M = 0; M < P; M++)b += SuperMap.Plot.PlottingUtil.distance(o[M], o[M + 1]); if ((b += SuperMap.Plot.PlottingUtil.distance(o[P], c)) < 0 || b > i) return; var m = b / i; if (m > .7 || m - a < 0) return; 2 === l.length ? (this.scaleValues[2] = m - a, this.scaleValues[3] = m) : (this.scaleValues[3] = m - a, this.scaleValues[4] = m) } else if (1 === t) { var d = i * n, v = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d, o); if (!v.bfind) return; var O = v.pts, U = (2 * SuperMap.Plot.PlottingUtil.distance(O, e) + d) / i; if (.7 < U) return; 2 === l.length ? this.scaleValues[3] = U : this.scaleValues[4] = U } } } }]), e }(); SuperMap.Plot.AlgoSymbol5021803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol5010401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.2)); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], l = .5 * e, o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = SuperMap.Plot.PlottingUtil.radian(o, i) * SuperMap.Plot.PlottingUtil.RTOD, r = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, n + 90), a = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, n + 270), s = SuperMap.Plot.PlottingUtil.circlePoint(r, l, l, n), p = SuperMap.Plot.PlottingUtil.circlePoint(a, l, l, n), u = []; u.push(p), u.push(a), u.push(r), u.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var c = SuperMap.Plot.PlottingUtil.circlePoint(i, e, e, n + 90), P = SuperMap.Plot.PlottingUtil.circlePoint(i, e, e, n + 270), S = SuperMap.Plot.PlottingUtil.circlePoint(c, l, l, n + 180), h = SuperMap.Plot.PlottingUtil.circlePoint(P, l, l, n + 180); (u = []).push(S), u.push(c), u.push(P), u.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var y = .4 * SuperMap.Plot.PlottingUtil.distance(o, i), f = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2), g = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD; this.addText("JZ", f, y, g), this.addScalePoint(r), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol5010401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4030401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), !(this.controlPoints.length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], l = t[0].clone(), o = t[1].clone(), i = SuperMap.Plot.PlottingUtil.radian(l, o) * SuperMap.Plot.PlottingUtil.RTOD, n = SuperMap.Plot.PlottingUtil.circlePoint(l, e, e, i + 90), r = SuperMap.Plot.PlottingUtil.circlePoint(l, e, e, i + 270), a = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, i + 90), s = r, p = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, i + 270), u = n, c = a, P = SuperMap.Plot.PlottingUtil.distance(u, c), S = SuperMap.Plot.PlottingUtil.distance(s, p), h = SuperMap.Plot.PlottingUtil.distance(u, s), y = SuperMap.Plot.PlottingUtil.distance(c, p), f = SuperMap.Plot.PlottingUtil.linePnt(u, c, .4 * P), g = SuperMap.Plot.PlottingUtil.linePnt(u, c, .6 * P), b = SuperMap.Plot.PlottingUtil.linePnt(u, s, .4 * h), M = SuperMap.Plot.PlottingUtil.linePnt(u, s, .6 * h), m = SuperMap.Plot.PlottingUtil.linePnt(c, p, .4 * y), d = SuperMap.Plot.PlottingUtil.linePnt(c, p, .6 * y), v = SuperMap.Plot.PlottingUtil.linePnt(s, p, .2 * S), O = SuperMap.Plot.PlottingUtil.linePnt(s, p, .25 * S), U = SuperMap.Plot.PlottingUtil.linePnt(s, p, .75 * S), w = SuperMap.Plot.PlottingUtil.linePnt(s, p, .8 * S), L = []; L.push(g), L.push(c), L.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, L); var _ = []; _.push(d), _.push(p), _.push(w), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _); var V = []; V.push(U), V.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V); var A = []; A.push(v), A.push(s), A.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A); var T = []; T.push(b), T.push(u), T.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T); var E = SuperMap.Plot.PlottingUtil.radian(f, g) * SuperMap.Plot.PlottingUtil.RTOD, x = new SuperMap.Geometry.Point((f.x + g.x) / 2, (f.y + g.y) / 2), j = SuperMap.Plot.PlottingUtil.distance(f, g); this.addText("警", x, j, E), this.addScalePoint(n, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.controlPoints.length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol4030401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4030303 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "疏", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol4030301), e }(); SuperMap.Plot.AlgoSymbol4030303 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol4030302 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "劝", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol4030301), e }(); SuperMap.Plot.AlgoSymbol4030302 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol4030301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l.subText = "标", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, a, r); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); var P = SuperMap.Plot.PlottingUtil.polylineDistance(p); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p) } var S = this.subText, h = .15 * P, y = new SuperMap.Geometry.Point(i.endPt.x + h / 2, i.endPt.y - h / 2), f = r; this.addText(S, y, h, f); var g = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), b = SuperMap.Plot.PlottingUtil.circlePoint(g.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r + 90); this.addScalePoint(b, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol4030301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3002501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t), this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = new SuperMap.Geometry.Point(l.x + 1, l.y), i = []; t.push(t[0].clone()); for (var n = 0; n < t.length - 1; n++) { var r = SuperMap.Plot.PlottingUtil.intersectLines(l, o, t[n], t[n + 1]); r.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint, t[n], t[n + 1]) && i.push(r.intersectPoint)) } if (!(0 >= i.length)) { var a = i[0].clone(), s = i[0].clone(); for (n = 0; n < i.length; n++)a.x > i[n].x && (a = i[n].clone()), s.x < i[n].x && (s = i[n].clone()); var p = SuperMap.Plot.PlottingUtil.distance(s, a), u = new SuperMap.Geometry.Point(l.x - .25 * p, a.y), c = e * this.scaleValues[0], P = e * this.scaleValues[0], S = P + c, h = new SuperMap.Geometry.Point(u.x, u.y + S), y = new SuperMap.Geometry.Point(h.x + c, h.y), f = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, y), g = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, h); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [g, f]); var b = new SuperMap.Geometry.Point(u.x, u.y + .8 * P), M = new SuperMap.Geometry.Point(u.x - P, u.y - P), m = new SuperMap.Geometry.Point(u.x + P, u.y - P), d = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, b.clone()), v = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, M.clone()), O = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, m.clone()), U = []; U.push(d), U.push(v), U.push(O), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, U); var w = new SuperMap.Geometry.Point(u.x - .5 * P, u.y - P), L = new SuperMap.Geometry.Point(M.x, M.y - 2 * c), _ = new SuperMap.Geometry.Point(u.x + .5 * P, u.y - P), V = new SuperMap.Geometry.Point(m.x, m.y - 2 * c), A = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, w), T = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, L), E = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, _), x = SuperMap.Plot.PlottingUtil.rotateAngle(u, Math.PI / 2, V), j = []; j.push(A), j.push(T); var Y = []; Y.push(E), Y.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, j), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, Y), this.addText("踏", l, 2 * P, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol3002501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3002005 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < 3)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], r = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), a = new SuperMap.Geometry.Point(r.x + 1, r.y), s = []; t.push(t[0].clone()); for (var p = 0; p < t.length - 1; p++) { var u = SuperMap.Plot.PlottingUtil.intersectLines(r, a, t[p], t[p + 1]); u.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint, t[p], t[p + 1]) && s.push(u.intersectPoint)) } if (0 >= s.length) this.finish(); else { var c = s[0].clone(), P = s[0].clone(); for (p = 0; p < s.length; p++)c.x > s[p].x && (c = s[p].clone()), P.x < s[p].x && (P = s[p].clone()); var S = [], h = new SuperMap.Geometry.Point(r.x - n / 2, c.y); h.x <= P.x && h.x >= c.x && ((S = []).push(c), S.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S)); var y = new SuperMap.Geometry.Point(r.x + n / 2, P.y); y.x <= P.x && y.x >= c.x && ((S = []).push(P), S.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S)), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], r, n, 0), this.addScalePoint(r, 0); var f = SuperMap.Plot.PlottingUtil.circlePoint(r, n / 2, n / 2, 90); this.addScalePoint(f, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), n = e, r = 0, a = 0; if (0 === t) { if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, n)) return; r = (n.x - i.x) / o, this.scaleValues[0] = r, a = (n.y - i.y) / o, this.scaleValues[1] = a } if (1 === t) { r = this.scaleValues[0], a = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = 2 * SuperMap.Plot.PlottingUtil.distance(n, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol3002005 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3002004 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(2 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), i = this.scaleValues[0], n = this.scaleValues[1], r = l * this.scaleValues[2], a = new SuperMap.Geometry.Point(o.x + l * i, o.y + l * n), s = new SuperMap.Geometry.Point(a.x + 1, a.y), p = []; e.push(e[0].clone()); for (var u = 0; u < e.length - 1; u++) { var c = SuperMap.Plot.PlottingUtil.intersectLines(a, s, e[u], e[u + 1]); c.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(c.intersectPoint, e[u], e[u + 1]) && p.push(c.intersectPoint)) } if (0 >= p.length) this.finish(); else { var P = p[0].clone(), S = p[0].clone(); for (u = 0; u < p.length; u++)P.x > p[u].x && (P = p[u].clone()), S.x < p[u].x && (S = p[u].clone()); var h = [], y = new SuperMap.Geometry.Point(a.x - r / 2, P.y); y.x <= S.x && y.x >= P.x && ((h = []).push(P), h.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h)); var f = new SuperMap.Geometry.Point(a.x + r / 2, S.y); f.x <= S.x && f.x >= P.x && ((h = []).push(S), h.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h)); var g = SuperMap.Plot.PlottingUtil.radian(y, f) * SuperMap.Plot.PlottingUtil.RTOD; this.addText("火", a, r, g), this.addScalePoint(a, 0); var b = SuperMap.Plot.PlottingUtil.circlePoint(a, r / 2, r / 2, 90); this.addScalePoint(b, 1), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), n = e, r = 0, a = 0; if (0 === t) { if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, n)) return; r = (n.x - i.x) / o, this.scaleValues[0] = r, a = (n.y - i.y) / o, this.scaleValues[1] = a } if (1 === t) { r = this.scaleValues[0], a = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = 2 * SuperMap.Plot.PlottingUtil.distance(n, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol3002004 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3002002 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < 3)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], r = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), a = new SuperMap.Geometry.Point(r.x + 1, r.y), s = []; t.push(t[0].clone()); for (var p = 0; p < t.length - 1; p++) { var u = SuperMap.Plot.PlottingUtil.intersectLines(r, a, t[p], t[p + 1]); u.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint, t[p], t[p + 1]) && s.push(u.intersectPoint)) } if (0 >= s.length) this.finish(); else { var c = s[0].clone(), P = s[0].clone(); for (p = 0; p < s.length; p++)c.x > s[p].x && (c = s[p].clone()), P.x < s[p].x && (P = s[p].clone()); var S = new SuperMap.Geometry.Point(r.x - n / 2, c.y), h = new SuperMap.Geometry.Point(r.x + n / 2, P.y), y = SuperMap.Plot.PlottingUtil.radian(S, h) * SuperMap.Plot.PlottingUtil.RTOD; this.addText("HX", r, n, y), this.addScalePoint(r, 0); var f = SuperMap.Plot.PlottingUtil.circlePoint(r, n / 2, n / 2, 90); this.addScalePoint(f, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), n = e, r = 0, a = 0; if (0 === t) { if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, n)) return; r = (n.x - i.x) / o, this.scaleValues[0] = r, a = (n.y - i.y) / o, this.scaleValues[1] = a } if (1 === t) { r = this.scaleValues[0], a = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = 2 * SuperMap.Plot.PlottingUtil.distance(n, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol3002002 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3002001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "震", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol3002001 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3001302 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = .1 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], t[t.length - 2], Math.sqrt(3) * e / 4), o = SuperMap.Plot.PlottingUtil.clonePoints(t); o.splice(t.length - 1, 1), o.push(l); var i = SuperMap.Plot.PlottingUtil.paraLine(o, .25 * e, !0), n = { lineColorLimit: !0, strokeColor: "#00C000", color: "#00C000" }, r = SuperMap.Plot.PlottingUtil.paraLine(o, .25 * e, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, n); var a = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], t[t.length - 2], e), s = new SuperMap.Geometry.Point(a.x, a.y), p = new SuperMap.Geometry.Point(a.x, a.y); s = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], 1 / 6 * Math.PI, s), p = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], 11 / 6 * Math.PI, p); var u = []; u.push(s), u.push(t[t.length - 1]), u.push(p), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, n), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol3001302 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3001301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.5), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = .1 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], t[t.length - 2], Math.sqrt(3) * e / 4), i = SuperMap.Plot.PlottingUtil.polylineDistance(t), n = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], i * l), r = SuperMap.Plot.PlottingUtil.linePnt(n, t[0], 2 * e), a = SuperMap.Plot.PlottingUtil.linePnt(n, t[1], 2 * e), s = []; s.push(t[0]), s.push(r); var p = []; p.push(a), p.push(o); var u = SuperMap.Plot.PlottingUtil.paraLine(s, .25 * e, !0), c = SuperMap.Plot.PlottingUtil.paraLine(s, .25 * e, !1), P = SuperMap.Plot.PlottingUtil.paraLine(p, .25 * e, !0), S = SuperMap.Plot.PlottingUtil.paraLine(p, .25 * e, !1); if (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), this.subSymbols.length > 0) { var h = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, y = .5 * SuperMap.Plot.PlottingUtil.distance(r, a); this.computeSubSymbol(this.subSymbols[0], n, y, h + 180) } var f = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], t[t.length - 2], e), g = new SuperMap.Geometry.Point(f.x, f.y), b = new SuperMap.Geometry.Point(f.x, f.y); g = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], 1 / 6 * Math.PI, g), b = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], 11 / 6 * Math.PI, b); var M = []; M.push(g), M.push(t[t.length - 1]), M.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol3001301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3001105 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = this.scaleValues[0], l = this.scaleValues[1], o = this.scaleValues[2], i = SuperMap.Plot.PlottingUtil.getOutRectangleDis(t); if (0 !== i) { if (!this.isEdit) { var n = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[2] = n / i } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), a = new SuperMap.Geometry.Point(r.x + e * i, r.y + l * i), s = o * i; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, s, 0), this.addText("盗", a, s, 0), this.addScalePoint(a, 0); var p = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 90); this.addScalePoint(p, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.getOutRectangleDis(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t && (this.scaleValues[0] = (n.x - i.x) / o, this.scaleValues[1] = (n.y - i.y) / o), 1 === t) { var r = this.scaleValues[0], a = this.scaleValues[1], s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = SuperMap.Plot.PlottingUtil.distance(e, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol3001105 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3001104 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = this.scaleValues[0], l = this.scaleValues[1], o = this.scaleValues[2], i = SuperMap.Plot.PlottingUtil.getOutRectangleDis(t); if (0 !== i) { if (!this.isEdit) { var n = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[2] = n / i } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), a = new SuperMap.Geometry.Point(r.x + e * i, r.y + l * i), s = o * i; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], r, s, 0), this.addText("私", a, s, 0), this.addScalePoint(a, 0); var p = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 90); this.addScalePoint(p, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.getOutRectangleDis(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t && (this.scaleValues[0] = (n.x - i.x) / o, this.scaleValues[1] = (n.y - i.y) / o), 1 === t) { var r = this.scaleValues[0], a = this.scaleValues[1], s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = SuperMap.Plot.PlottingUtil.distance(e, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol3001104 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3001103 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "骚", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3001101), e }(); SuperMap.Plot.AlgoSymbol3001103 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3001102 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "暴", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3001101), e }(); SuperMap.Plot.AlgoSymbol3001102 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3001101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(-.04), l.scaleValues.push(-.175), l.scaleValues.push(.1)), l.subText = "集", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.getOutRectangleDis(t); if (0 !== e) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t); this.addText(this.subText, l, .3 * e, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol3001101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3000809 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = .8 * SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.subSymbols.length > 0 && (this.computeSubSymbol(this.subSymbols[0], n, a, r + 180), this.computeSubSymbol(this.subSymbols[1], n, .5 * a, r + 180)); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p) } var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), S = SuperMap.Plot.PlottingUtil.circlePoint(P.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r + 90); this.addScalePoint(S, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol3000809 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3000808 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = .8 * SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, a, r + 180); var s = [], p = new SuperMap.Geometry.Point(0, 0); p.x = -a / 6, p.y = a / 3; var u = new SuperMap.Geometry.Point(0, 0), c = SuperMap.Plot.PlottingUtil.rotateAngle(u, r * SuperMap.Plot.PlottingUtil.DTOR, p), P = new SuperMap.Geometry.Point(c.x + n.x, c.y + n.y); p.x = a / 6, p.y = a / 3; var S = SuperMap.Plot.PlottingUtil.rotateAngle(u, r * SuperMap.Plot.PlottingUtil.DTOR, p), h = new SuperMap.Geometry.Point(S.x + n.x, S.y + n.y); p.x = 0, p.y = -a / 3; var y = SuperMap.Plot.PlottingUtil.rotateAngle(u, r * SuperMap.Plot.PlottingUtil.DTOR, p), f = new SuperMap.Geometry.Point(y.x + n.x, y.y + n.y); s.push(P), s.push(h), s.push(f); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, { fillLimit: !0, fill: !0 }); for (var g = [], b = [], M = 0; M <= i.startIndex; M++)g.push(e[M]); if (g.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g), i.endIndex <= e.length) { b.push(i.endPt); for (var m = i.endIndex + 1; m <= e.length - 1; m++)b.push(e[m]); this.addArrow(b) } var d = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), v = SuperMap.Plot.PlottingUtil.circlePoint(d.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r + 90); this.addScalePoint(v, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol3000808 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3000807 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = .8 * SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.subSymbols.length > 0 && (this.computeSubSymbol(this.subSymbols[0], n, .05 * a, r + 90), this.computeSubSymbol(this.subSymbols[1], n, a, r + 180)); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p) } var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), S = SuperMap.Plot.PlottingUtil.circlePoint(P.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r + 90); this.addScalePoint(S, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol3000807 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3000806 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3000804), e }(); SuperMap.Plot.AlgoSymbol3000806 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3000805 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3000804), e }(); SuperMap.Plot.AlgoSymbol3000805 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3000804 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3000801), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = .8 * SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, a, r + 180); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p) } var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), S = SuperMap.Plot.PlottingUtil.circlePoint(P.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r + 90); this.addScalePoint(S, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol3000804 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3000803 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3000801), e }(); SuperMap.Plot.AlgoSymbol3000803 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3000802 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol3000801), e }(); SuperMap.Plot.AlgoSymbol3000802 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3000801 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = .8 * SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, a, r); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p) } var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), S = SuperMap.Plot.PlottingUtil.circlePoint(P.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r + 90); this.addScalePoint(S, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol3000801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2122301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.5), l.scaleValues.push(.4)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = e * this.scaleValues[0], o = this.scaleValues[1], i = this.scaleValues[2] * e, n = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], e * o), r = SuperMap.Plot.PlottingUtil.distance(t[1], n), a = SuperMap.Plot.PlottingUtil.linePnt(t[1], n, r + .45 * i), s = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], e - r + .45 * i), p = 2 * l, u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, t[1], a), c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, t[0], s), P = SuperMap.Plot.PlottingUtil.paraLine(t, l, !0), S = SuperMap.Plot.PlottingUtil.paraLine(t, l, !1), h = e - r - i / 2, y = SuperMap.Plot.PlottingUtil.linePnt(P[0], P[P.length - 1], h), f = SuperMap.Plot.PlottingUtil.linePnt(P[0], P[P.length - 1], h + .2 * i), g = SuperMap.Plot.PlottingUtil.linePnt(P[0], P[P.length - 1], h + .8 * i), b = SuperMap.Plot.PlottingUtil.linePnt(P[0], P[P.length - 1], h + i), M = { fillLimit: !0 }, m = []; m.push(P[0]), m.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m, M); var d = []; d.push(u.pntRight), d.push(f), d.push(g), d.push(c.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, M); var v = []; v.push(b), v.push(P[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v, M); var O = SuperMap.Plot.PlottingUtil.linePnt(S[0], S[S.length - 1], h), U = SuperMap.Plot.PlottingUtil.linePnt(S[0], S[S.length - 1], h + .2 * i), w = SuperMap.Plot.PlottingUtil.linePnt(S[0], S[S.length - 1], h + .8 * i), L = SuperMap.Plot.PlottingUtil.linePnt(S[0], S[S.length - 1], h + i), _ = []; _.push(S[0]), _.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _, M); var V = []; V.push(u.pntLeft), V.push(U), V.push(w), V.push(c.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, M); var A = []; A.push(L), A.push(S[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, M); var T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l / 2, y, P[0]); this.addScalePoint(T.pntLeft, 0), this.addScalePoint(n, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(l[0], e); if (0 === t && (this.scaleValues[0] = i / o), 1 === t) { var n = i / o; n > .8 ? n = .8 : n < .2 && (n = .2), this.scaleValues[1] = n } } } }]), e }(); SuperMap.Plot.AlgoSymbol2122301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2122101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.subSymbols.length && (l.subSymbols = SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(l.libID, l.code)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(2 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL, e); for (var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = e[0].x, i = e[0].x, n = e[0].y, r = e[0].y, a = [], s = 0; s < e.length; s++)o > e[s].x && (o = e[s].x), i < e[s].x && (i = e[s].x), n > e[s].y && (n = e[s].y), r < e[s].y && (r = e[s].y), a.push(e[s]); var p = (i - o) / 5; p > 10 && (p = 10); for (var u = .2 * p, c = [], P = 0; P < 360; P += 18) { var S = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0, 0), u, u, P); c.push(S) } for (var h = 0, y = o; y < i; y += p)for (var f = n; f < r; f += p) { var g = new SuperMap.Geometry.Point(y, f); if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(a, g)) if (0 === h) { h++; for (var b = [], M = 0; M < c.length; M++) { var m = new SuperMap.Geometry.Point(g.x + c[M].x, g.y + c[M].y); b.push(m) } b.push(b[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b); var d = []; d.push(b[10]), d.push(new SuperMap.Geometry.Point(b[10].x - .5 * u, b[10].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = []; v.push(b[0]), v.push(new SuperMap.Geometry.Point(b[0].x + .5 * u, b[10].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v) } else 1 === h ? (h++, null !== this.subSymbols[0] && this.computeSubSymbol(this.subSymbols[0], g, .015 * l, 0)) : (h = 0, null !== this.subSymbols[1] && this.computeSubSymbol(this.subSymbols[1], g, .015 * l, 0)) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol2122101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol2121602 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "障", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol2121601), e }(); SuperMap.Plot.AlgoSymbol2121602 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2121601 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(1), l.subText = "遥", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], l = t[1], o = SuperMap.Plot.PlottingUtil.distance(e, l); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); for (var i = SuperMap.Plot.PlottingUtil.polylineDistance(t), n = 50 * this.getSubSymbolScaleValue(), r = i * n * .02, a = i * n * .005, s = .1 * i, p = .1 * o, u = 0; u <= i; u += s) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, u + p); if (-1 !== c.index) { var P, S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[c.index], c.pt); P = this.scaleValues[0] > 0 ? new SuperMap.Geometry.Point(S.pntLeft.x, S.pntLeft.y) : new SuperMap.Geometry.Point(S.pntRight.x, S.pntRight.y); var h = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, P, c.pt), y = []; if (y.push(h.pntRight), y.push(P), y.push(h.pntLeft), 0 === u) { var f = new SuperMap.Geometry.Point(P.x, P.y); f.isScalePoint = !0, f.tag = 0, this.scalePoints.push(f) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, y, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } } var g = SuperMap.Plot.PlottingUtil.radian(t[t.length - 2], t[t.length - 1]) * SuperMap.Plot.PlottingUtil.RTOD, b = .1 * i, M = SuperMap.Plot.PlottingUtil.distance(t[t.length - 1], t[t.length - 2]), m = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 2], t[t.length - 1], .5 * b + M); this.addText(this.subText, m, b, g), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e); this.scaleValues[0] = o ? -1 : 1 } } }]), e }(); SuperMap.Plot.AlgoSymbol2121601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol2121507 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "复", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol2121505), e }(); SuperMap.Plot.AlgoSymbol2121507 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol2121506 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "墩", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol2121505), e }(); SuperMap.Plot.AlgoSymbol2121506 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2121504 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], l = t[1], o = SuperMap.Plot.PlottingUtil.distance(e, l), i = o * this.scaleValues[0], n = SuperMap.Plot.PlottingUtil.linePnt(e, l, .5 * o), r = SuperMap.Plot.PlottingUtil.linePnt(n, e, 2 * i), a = SuperMap.Plot.PlottingUtil.linePnt(n, l, 2 * i), s = []; s.push(t[0], r); var p = []; p.push(a, t[1]); var u = SuperMap.Plot.PlottingUtil.paraLine(s, i, !0), c = SuperMap.Plot.PlottingUtil.paraLine(s, i, !1), P = SuperMap.Plot.PlottingUtil.paraLine(p, i, !0), S = SuperMap.Plot.PlottingUtil.paraLine(p, i, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, y = .5 * SuperMap.Plot.PlottingUtil.distance(r, a); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], n, y, h), this.addScalePoint(u[0], 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 === t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; i > .24 && (i = .24), this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol2121504 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2092101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0]; this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); var o = this.scaleValues[1] * e, i = l * e, n = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, i); if (-1 !== n.index) { for (var r, a = n.pt, s = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [a, new SuperMap.Geometry.Point(a.x + o, a.y)]), p = 0; p < t.length - 1; p++) { var u = t[p], c = t[p + 1], P = SuperMap.Plot.PlottingUtil.distance(a, u), S = SuperMap.Plot.PlottingUtil.distance(a, c); if (!(P < o && S < o)) if (P > o && S < o || P < o && S > o) { var h; h = P > o ? u : c; var y = this.getLineAddCircleIntersectPts(u, c, s); y.length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [y[0], h]) } else { var f = SuperMap.Plot.PlottingUtil.projectPoint(a, u, c); if (SuperMap.Plot.PlottingUtil.distance(a, f) >= o) this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]); else if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f, u, c)) { var g = this.getLineAddCircleIntersectPts(u, c, s); if (g.length > 0) { g.unshift(u), g.push(c); for (var b = 0; b < g.length - 1; b++)this.isLineInCircle(g[b], g[b + 1], a, o) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [g[b], g[b + 1]]) } } else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]) } } if (this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [a, new SuperMap.Geometry.Point(a.x + o, a.y)]), r = n.index >= t.length - 1 ? SuperMap.Plot.PlottingUtil.radian(t[t.length - 2], t[t.length - 1]) * SuperMap.Plot.PlottingUtil.RTOD : SuperMap.Plot.PlottingUtil.radian(t[n.index], t[n.index + 1]) * SuperMap.Plot.PlottingUtil.RTOD, this.subSymbols.length > 0) { if (null !== this.subSymbols[0].symbolData) for (var M = 0; M < this.subSymbols[0].symbolData.innerCells.length; M++)26 === this.subSymbols[0].symbolData.innerCells[M].type && this.subSymbols[0].symbolData.innerCells.splice(M, 1); this.computeSubSymbol(this.subSymbols[0], a, o, r) } this.scalePoints = []; var m = a; m.isScalePoint = !0, m.tag = 0, this.scalePoints.push(m); var d = new SuperMap.Geometry.Point(a.x + o, a.y); d.isScalePoint = !0, d.tag = 1, this.scalePoints.push(d), this.finish() } } } }, { key: "isLineInCircle", value: function (t, e, l, o) { var i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2); return o > SuperMap.Plot.PlottingUtil.distance(i, l) } }, { key: "getLineAddCircleIntersectPts", value: function (t, e, l) { var o = l.slice(); o[0].x === o[o.length - 1].x && o[0].y === o[o.length - 1].y || o.push(o[0]); for (var i = [], n = 0; n < o.length - 1; n++) { var r = o[n], a = o[n + 1], s = SuperMap.Plot.PlottingUtil.intersectLines(t, e, r, a); s.isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint, t, e) && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint, r, a) && i.push(s.intersectPoint) } for (var p = 0; p < i.length - 1; p++)SuperMap.Plot.PlottingUtil.isSamePt(i[p], i[p + 1]) && (i.splice(p, 1), p--); if (t.x > e.x) { for (var u = 0; u < i.length && u !== i.length - 1; u++)if (i[u].x < i[u + 1].x) { var c = i[u]; i[u] = i[u + 1], i[u + 1] = c } } else if (t.x < e.x) { for (var P = 0; P < i.length && P !== i.length - 1; P++)if (i[P].x > i[P + 1].x) { var S = i[P]; i[P] = i[P + 1], i[P + 1] = S } } else if (t.y > e.y) { for (var h = 0; h < i.length && h !== i.length - 1; h++)if (i[h].y < i[h + 1].y) { var y = i[h]; i[h] = i[h + 1], i[h + 1] = y } } else if (t.y < e.y) for (var f = 0; f < i.length && f !== i.length - 1; f++)if (i[f].y > i[f + 1].y) { var g = i[f]; i[f] = i[f + 1], i[f + 1] = g } return i } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { for (var i = 0, n = -1, r = null, a = 0; a < l.length - 1; a++) { var s = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, l[a], l[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint, l[a], l[a + 1])) { var p = SuperMap.Plot.PlottingUtil.distance(s.projectPoint, e); 0 === i ? (i = p, n = a, r = s.projectPoint) : p < i && (i = p, n = a, r = s.projectPoint) } } if (-1 === n) return; for (var u = 0, c = 0; c < n; c++)u += SuperMap.Plot.PlottingUtil.distance(l[c], l[c + 1]); var P = (u += SuperMap.Plot.PlottingUtil.distance(r, l[n])) / o; P > 1 && (P = 1), this.scaleValues[0] = P } if (1 === t) { var S = this.scaleValues[0] * o, h = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, S); if (-1 === h.index) return; var y = SuperMap.Plot.PlottingUtil.distance(h.pt, e) / o; y > .4 && (y = .4), this.scaleValues[1] = y } } } }]), e }(); SuperMap.Plot.AlgoSymbol2092101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2091503 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(.03), l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (!this.isEdit) { var e = this.getSubSymbolScaleValue(); this.scaleValues[0] = e, this.scaleValues[1] = .5 * e, this.scaleValues[3] = .5 * e } var l = this.scaleValues[0], o = this.scaleValues[1], i = this.scaleValues[2], n = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); n = SuperMap.Plot.PlottingUtil.clearSamePts(n); var r = this.GetCurvePts(t, l, o); if (0 !== r.pt.length) { var a = SuperMap.Plot.PlottingUtil.polylineDistance(n) * i, s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(n, a); if (-1 !== s.index) { for (var p = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[3], u = [], c = 0; c < 360; c += 12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt, p, p, c)); u.push(u[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); for (var P = [], S = [], h = 0; h < r.pt.length; h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u, r.pt[h]) ? S.length > 1 && (P.push(S), S = []) : S.push(r.pt[h]); S.length > 1 && P.push(S); for (var y = 0; y < P.length; y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P[y]); var f = [], g = new SuperMap.Geometry.Point(s.pt.x - p, s.pt.y), b = new SuperMap.Geometry.Point(s.pt.x + .5 * p, s.pt.y); f.push(g, b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var M = [], m = SuperMap.Plot.PlottingUtil.circlePoint(b, .3 * p, .3 * p, 157.5), d = SuperMap.Plot.PlottingUtil.circlePoint(b, .3 * p, .3 * p, 202.5); M.push(m), M.push(d), M.push(b); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, M, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var v = new SuperMap.Geometry.Point(r.pt[0].x, r.pt[0].y); v.isScalePoint = !0, v.tag = 0, this.scalePoints.push(v); var O = new SuperMap.Geometry.Point(r.scalePt.x, r.scalePt.y); O.isScalePoint = !0, O.tag = 1, this.scalePoints.push(O); var U = new SuperMap.Geometry.Point(s.pt.x, s.pt.y); U.isScalePoint = !0, U.tag = 2, this.scalePoints.push(U); var w = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x, s.pt.y), p, p, 0), L = new SuperMap.Geometry.Point(w.x, w.y); L.isScalePoint = !0, L.tag = 3, this.scalePoints.push(L), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; if (4 > this.scaleValues.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(i), r = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var a = l[0], s = SuperMap.Plot.PlottingUtil.distance(a, r); this.scaleValues[1] = 2 * s / o } else if (1 === t) a = l[0], s = SuperMap.Plot.PlottingUtil.distance(a, r), this.scaleValues[0] = s / o; else if (2 === t) { for (var p = -1, u = 0, c = new SuperMap.Geometry.Point(0, 0), P = 0; P < i.length - 1; P++) { var S = i[P], h = i[P + 1], y = SuperMap.Plot.PlottingUtil.projectPoint(r, S, h); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y, S, h)) { var f = SuperMap.Plot.PlottingUtil.distance(r, y); -1 === p ? (p = P, c = y, u = f) : u > f && (p = P, c = y, u = f) } } if (-1 === p || p > i.length - 1) return; for (var g = [], b = 0; b < p; b++)g.push(i[b]); g.push(c); var M = SuperMap.Plot.PlottingUtil.polylineDistance(g); if (M < 0 || M > n) return; this.scaleValues[2] = M / n } else if (3 === t) { var m = n * this.scaleValues[2], d = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, m); if (-1 === d.index) return; var v = SuperMap.Plot.PlottingUtil.distance(d.pt, e); this.scaleValues[3] = v / o } } } }, { key: "GetCurvePts", value: function (t, e, l) { for (var o, i = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t), n = SuperMap.Plot.PlottingUtil.polylineDistance(i), r = n * e, a = n * l / 2, s = [], p = [], u = i[0], c = !1, P = i[0], S = 1; S < i.length; S++) { var h = i[S], y = SuperMap.Plot.PlottingUtil.distance(u, h); if (!(y < r && S !== i.length - 1)) { for (var f, g = parseInt(y / r), b = 0; b < g; b++) { f = SuperMap.Plot.PlottingUtil.linePnt(u, h, r), c || (o = f, c = !0); var M = this.GetCosPts2D(u, f, r, a); s = p.length > 1 && 0 === b ? this.ClearCurvePts2D(P, u, h, p, M, s) : s.concat(M), p = (p = []).concat(M), P = u, u = f } S === i.length - 1 && (f = i[i.length - 1], M = this.GetCosPts2D(u, f, r, a), s = p.length > 1 && M.length > 1 ? this.ClearCurvePts2D(P, u, h, p, M, s) : s.concat(M)) } } return { pt: s, scalePt: o } } }, { key: "GetCosPts2D", value: function (t, e, l, o) { for (var i = [], n = SuperMap.Plot.PlottingUtil.distance(t, e), r = l / 30, a = 0; a < n; a += r) { var s = a * (2 * Math.PI / l), p = o * Math.cos(s), u = new SuperMap.Geometry.Point(a, p), c = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, P = SuperMap.Plot.PlottingUtil.coordinateTrans(t, u, c); i.push(P) } return i } }, { key: "ClearCurvePts2D", value: function (t, e, l, o, i, n) { for (var r = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, a = 180 * SuperMap.Plot.PlottingUtil.radian(e, t) / Math.PI - r; a <= 0;)a += 360; var s = a / 2, p = l; p = SuperMap.Plot.PlottingUtil.rotateAngle(e, s * Math.PI / 180, p); for (var u = SuperMap.Plot.PlottingUtil.linePnt(e, p, 1), c = 0, P = 0; P < o.length; P++)if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(e, u, o[P])) { c = P; break } if (0 != c) for (var S = 0; S < o.length - c; S++)n.slice(S, n.length - 1); for (var h = 0; h < i.length; h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e, u, i[h]) && n.push(i[h]); return n } }]), e }(); SuperMap.Plot.AlgoSymbol2091503 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol60310 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 6 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (t.splice(0, 2), t.unshift(e), this.subSymbols.length > 0) { var l; if (null == this.subSymbols[0].symbolData) return; l = this.subSymbols[0].symbolData.symbolSize.x; var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * this.scaleValues[4], n = o * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, t), s = SuperMap.Plot.PlottingUtil.radian(a.pts, r.pts) * SuperMap.Plot.PlottingUtil.RTOD + 270, p = 100 * SuperMap.Plot.PlottingUtil.distance(r.pts, a.pts) / l; if (null == this.subSymbols.length) return; if (null != this.subSymbols[0].code) { this.computeSubSymbol(this.subSymbols[0], a.pts, p, s - 90); var u = SuperMap.Plot.PlottingUtil.circlePoint(a.pts, p, p, s + 90), c = SuperMap.Plot.PlottingUtil.circlePoint(a.pts, 2 * p, 2 * p, s + 90), P = []; P.push(u), P.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = SuperMap.Plot.PlottingUtil.circlePoint(c, .2 * p, .2 * p, s + 90), h = SuperMap.Plot.PlottingUtil.circlePoint(c, .05 * p, .05 * p, s), y = SuperMap.Plot.PlottingUtil.circlePoint(c, .05 * p, .05 * p, s + 180), f = []; f.push(S), f.push(h), f.push(y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, f, { fillLimit: !0, fill: !0 }) } r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()), a.pts.isScalePoint = !0, a.pts.tag = this.scalePoints.length, this.scalePoints.push(a.pts.clone()) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), r = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (3 === t && null == n.pt && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var a = SuperMap.Plot.PlottingUtil.clonePoints(i); a.splice(0, n.index + 1), a.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(a); r < s && (s = r), this.scaleValues[t + 1] = (r - s) / r, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol60310 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol60306 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0] * e, o = t[0].clone(), i = t[1].clone(), n = SuperMap.Plot.PlottingUtil.linePnt(i, o, e + .2 * e), r = SuperMap.Plot.PlottingUtil.linePnt(o, i, e + .2 * e), a = 1.5 * l, s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, i, n), p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, o, r), u = SuperMap.Plot.PlottingUtil.paraLine(t, l, !0), c = SuperMap.Plot.PlottingUtil.paraLine(t, l, !1), P = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 3 * e / 11), S = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 4 * e / 11), h = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 7 * e / 11), y = SuperMap.Plot.PlottingUtil.linePnt(u[0], u[u.length - 1], 8 * e / 11), f = []; f.push(s.pntRight), f.push(u[0]), f.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = []; g.push(S), g.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g); var b = []; b.push(y), b.push(u[u.length - 1]), b.push(p.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var M = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 3 * e / 11), m = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 4 * e / 11), d = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 7 * e / 11), v = SuperMap.Plot.PlottingUtil.linePnt(c[0], c[c.length - 1], 8 * e / 11), O = []; O.push(s.pntLeft), O.push(c[0]), O.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O); var U = []; U.push(m), U.push(d), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U); var w = []; w.push(v), w.push(c[c.length - 1]), w.push(p.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol60306 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol60305 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = .05 * SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.paraLine(t, e, !0), o = SuperMap.Plot.PlottingUtil.paraLine(t, e, !1), i = l[0], n = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, l[0], l[1]), r = []; r.push(i), r.push(n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); var a = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2 + .2 / 3, l[0], l[1]), s = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3, l[0], l[1]), p = []; p.push(a), p.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); var u = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3 * 2, l[0], l[1]), c = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3 * .2 + .2 / 3 * 2, l[0], l[1]), P = []; P.push(u), P.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8, l[0], l[1]), h = l[1], y = []; y.push(S), y.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var f = o[0], g = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, o[0], o[1]), b = []; b.push(f), b.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var M = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2 + .2 / 3, o[0], o[1]), m = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3, o[0], o[1]), d = []; d.push(M), d.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4 + .2 / 3 * 2, o[0], o[1]), O = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3 * .2 + .2 / 3 * 2, o[0], o[1]), U = []; U.push(v), U.push(O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U); var w = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8, o[0], o[1]), L = o[1], _ = []; _.push(w), _.push(L), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _); var V = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(1 / 3, t[0], t[1]), A = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(1 / 3 * 2, t[0], t[1]), T = []; T.push(V), T.push(A), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T); var E = SuperMap.Plot.PlottingUtil.radian(V, A) * SuperMap.Plot.PlottingUtil.RTOD, x = SuperMap.Plot.PlottingUtil.distance(V, A), j = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2, V, A), Y = SuperMap.Plot.PlottingUtil.circlePoint(j, .025 * x, .025 * x, E + 90), C = SuperMap.Plot.PlottingUtil.circlePoint(j, .025 * x, .025 * x, E - 90), I = []; I.push(Y), I.push(C), I.push(V); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, I, { fillLimit: !0, fill: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol60305 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol60304 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l.subText = "隧", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol2121505), e }(); SuperMap.Plot.AlgoSymbol60304 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol2121505 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l.subText = "火", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], l = t[1], o = SuperMap.Plot.PlottingUtil.distance(e, l), i = o * this.scaleValues[0], n = SuperMap.Plot.PlottingUtil.linePnt(e, l, .5 * o), r = SuperMap.Plot.PlottingUtil.linePnt(n, e, 2 * i), a = SuperMap.Plot.PlottingUtil.linePnt(n, l, 2 * i), s = []; s.push(t[0], r); var p = []; p.push(a, t[1]); var u = SuperMap.Plot.PlottingUtil.paraLine(s, i, !0), c = SuperMap.Plot.PlottingUtil.paraLine(s, i, !1), P = SuperMap.Plot.PlottingUtil.paraLine(p, i, !0), S = SuperMap.Plot.PlottingUtil.paraLine(p, i, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = this.subText, y = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, f = new SuperMap.Geometry.Point(n.x, n.y), g = SuperMap.Plot.PlottingUtil.distance(r, a); this.addText(h, f, g, y), this.addScalePoint(u[0], 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 === t) { var i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; i > .24 && (i = .24), this.scaleValues[0] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol2121505 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol60301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "爆", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30020), e }(); SuperMap.Plot.AlgoSymbol60301 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol60205 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(90), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[2] = 2 * o } var i = l * this.scaleValues[0], n = this.scaleValues[1], r = l * this.scaleValues[2], a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, e); if (a.bfind) { var s = a.pts.clone(), p = e[a.index].clone(), u = e[a.index + 1].clone(), c = SuperMap.Plot.PlottingUtil.radian(p, u) * SuperMap.Plot.PlottingUtil.RTOD, P = SuperMap.Plot.PlottingUtil.circlePoint(s, r, r, c + n), S = []; S.push(a.pts), S.push(P); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0, surroundLineLimit: !0 }); var h = SuperMap.Plot.PlottingUtil.radian(s, P) * SuperMap.Plot.PlottingUtil.RTOD, y = new SuperMap.Geometry.Point(-.2 * r, .05 * r), f = new SuperMap.Geometry.Point(-.2 * r, -.05 * r), g = SuperMap.Plot.PlottingUtil.coordinateTrans(P, y, h), b = SuperMap.Plot.PlottingUtil.coordinateTrans(P, f, h), M = []; M.push(P), M.push(g), M.push(b); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, M, { lineTypeLimit: !0, surroundLineLimit: !0, fillLimit: !0, fill: !0 }); var m = .3 * r, d = .6 * r, v = i - d; v < 0 && (v = 0); var O = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(v, e); if (O.bfind) { var U = []; U.push(O.pts); for (var w = O.index; w >= 0; w--)U.push(e[w]); var L = []; L.push(O.pts); for (var _ = O.index + 1; _ < e.length; _++)L.push(e[_]); var V = .6 * m, A = []; if (U.length > 1) { var T = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, U); if (T.bfind) { (A = []).push(T.pts); for (var E = T.index + 1; E < U.length; E++)A.push(U[E]); U = [], A.length > 1 && (U = U.concat(A)) } } if (U.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U), L.length > 1) { var x = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, L); if (x.bfind) { (A = []).push(x.pts); for (var j = x.index + 1; j < L.length; j++)A.push(L[j]); L = [], A.length > 1 && (L = L.concat(A)) } } var Y = i + d; Y > l && (Y = l), Y = l - Y; for (var C = [], I = L.length - 1; I >= 0; I--)C.push(L[I]); var B = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(Y, C); if (B.bfind) { var R = []; R.push(B.pts); for (var G = B.index; G >= 0; G--)R.push(C[G]); var N = []; N.push(B.pts); for (var D = B.index + 1; D < C.length; D++)N.push(C[D]); if (R.length > 1) { var k = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, R); if (k.bfind) { (A = []).push(k.pts); for (var z = k.index + 1; z < R.length; z++)A.push(R[z]); R = [], A.length > 1 && (R = R.concat(A)) } } if (R.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, R), N.length > 1) { var F = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V, N); if (F.bfind) { (A = []).push(F.pts); for (var K = F.index + 1; K < N.length; K++)A.push(N[K]); N = [], A.length > 1 && (N = N.concat(A)) } } N.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, N), this.subSymbols.length > 0 && (this.computeSubSymbol(this.subSymbols[0], O.pts, m, c + n + 180, .3), this.computeSubSymbol(this.subSymbols[1], B.pts, m, c + n + 180, .3)), this.addScalePoint(a.pts, 0), this.addScalePoint(P, 1), this.finish() } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; if (0 > t || 1 < t) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var n = [], r = 0; r < o.length; r++)n.push(o[r]); for (var a = -1, s = new SuperMap.Geometry.Point(0, 0), p = 0, u = 0; u < n.length - 1; u++) { var c = []; c.push(n[u]), c.push(n[u + 1]); var P = SuperMap.Plot.PlottingUtil.projectPoint(e, n[u], n[u + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P, c).isOnPolyLine) { var S = SuperMap.Plot.PlottingUtil.distance(e, P); -1 === a ? (a = u, s = P, p = S) : p > S && (a = u, s = P, p = S) } } if (-1 === a || a > n.length - 1) return; for (var h = 0, y = 0; y < a; y++) { var f = o[y].clone(), g = o[y + 1].clone(); h += SuperMap.Plot.PlottingUtil.distance(f, g) } var b = o[a].clone(); if ((h += SuperMap.Plot.PlottingUtil.distance(b, s)) < 0 || h > i) return; this.scaleValues[0] = h / i } if (1 === t) { var M = i * this.scaleValues[0], m = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(M, o); if (!m.bfind) return; var d = m.pts.clone(), v = new SuperMap.Geometry.Point(o[m.index].x, o[m.index].y), O = new SuperMap.Geometry.Point(o[m.index + 1].x, o[m.index + 1].y), U = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD, w = SuperMap.Plot.PlottingUtil.radian(d, e) * SuperMap.Plot.PlottingUtil.RTOD; this.scaleValues[1] = w - U; var L = SuperMap.Plot.PlottingUtil.distance(d, e); this.scaleValues[2] = L / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol60205 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol60203 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length === this.minEditPts) { for (var e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t), l = [], o = 0; o < e.length; o++)l.push(e[o]); if (!(l.length < 4)) { var i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = SuperMap.Plot.PlottingUtil.distance(l[1], l[2]), r = 0; r = i < n ? .2 * i : .2 * n; var a = SuperMap.Plot.PlottingUtil.findPointInLine(l[0], l[1], .5 * i - .5 * r), s = SuperMap.Plot.PlottingUtil.findPointInLine(l[0], l[1], .5 * i + .5 * r), p = SuperMap.Plot.PlottingUtil.findPointInLine(l[1], l[2], .5 * n - .5 * r), u = SuperMap.Plot.PlottingUtil.findPointInLine(l[1], l[2], .5 * n + .5 * r), c = SuperMap.Plot.PlottingUtil.findPointInLine(l[2], l[3], .5 * i - .5 * r), P = SuperMap.Plot.PlottingUtil.findPointInLine(l[2], l[3], .5 * i + .5 * r), S = SuperMap.Plot.PlottingUtil.findPointInLine(l[3], l[0], .5 * n - .5 * r), h = SuperMap.Plot.PlottingUtil.findPointInLine(l[3], l[0], .5 * n + .5 * r), y = []; y.push(h), y.push(l[0]), y.push(a), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var f = []; f.push(s), f.push(l[1]), f.push(p), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = []; g.push(u), g.push(l[2]), g.push(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g); var b = []; b.push(P), b.push(l[3]), b.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var M = new SuperMap.Geometry.Point((l[0].x + l[2].x) / 2, (l[0].y + l[2].y) / 2); this.addText("避", M, 3 * r, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol60203 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50352 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 6 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (t.splice(0, 2), t.unshift(e), this.subSymbols.length > 0) { var l; if (null == this.subSymbols[0].symbolData) return; l = this.subSymbols[0].symbolData.symbolSize.x; var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * this.scaleValues[4], n = o * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, t), s = SuperMap.Plot.PlottingUtil.radian(a.pts, r.pts) * SuperMap.Plot.PlottingUtil.RTOD + 270, p = 60 * SuperMap.Plot.PlottingUtil.distance(r.pts, a.pts) / l, u = new SuperMap.Geometry.Point((a.pts.x + r.pts.x) / 2, (r.pts.y + a.pts.y) / 2); if (null == this.subSymbols.length) return; if (null != this.subSymbols[0].code) { this.computeSubSymbol(this.subSymbols[0], u, p, s + 90); var c = SuperMap.Plot.PlottingUtil.circlePoint(a.pts, p, p, s + 90), P = SuperMap.Plot.PlottingUtil.circlePoint(a.pts, 2 * p, 2 * p, s + 90), S = []; S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * p, .2 * p, s + 90), y = SuperMap.Plot.PlottingUtil.circlePoint(P, .05 * p, .05 * p, s), f = SuperMap.Plot.PlottingUtil.circlePoint(P, .05 * p, .05 * p, s + 180), g = []; g.push(h), g.push(y), g.push(f); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, g, { fillLimit: !0, fill: !0 }) } r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()), a.pts.isScalePoint = !0, a.pts.tag = this.scalePoints.length, this.scalePoints.push(a.pts.clone()) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), r = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (-1 === n.index && 3 === t && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var a = SuperMap.Plot.PlottingUtil.clonePoints(i); a.splice(0, n.index + 1), a.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(a); r < s && (s = r), this.scaleValues[t + 1] = (r - s) / r, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol50352 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50342 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], r = o * this.scaleValues[2], a = o * this.scaleValues[3], s = new SuperMap.Geometry.Point(l.x + r, l.y + a), p = o * n; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], s, p, 0); var u = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 180); this.addScalePoint(u, 0), this.addScalePoint(s, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === n) return; var r = 0, a = 0, s = 0, p = 0; if (0 === t) { s = n * (r = this.scaleValues[2]), p = n * (a = this.scaleValues[3]); var u = new SuperMap.Geometry.Point(i.x + s, i.y + p), c = SuperMap.Plot.PlottingUtil.distance(e, u) / n; this.scaleValues[0] = c } else 1 === t && (r = (s = e.x - i.x) / n, a = (p = e.y - i.y) / n, this.scaleValues[2] = r, this.scaleValues[3] = a) } } }]), e }(); SuperMap.Plot.AlgoSymbol50342 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50308 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.05), l.scaleValues.push(-1.5)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (!this.isEdit || 3 === this.scaleValues.length) { this.scaleValues = []; for (var e = 0; e < t.length; e++)this.scaleValues.push(0); var l = this.getSubSymbolScaleValue(); this.scaleValues.push(.8 * l), this.scaleValues.push(l), this.scaleValues.push(-1.5) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var o, i = SuperMap.Plot.PlottingUtil.polylineDistance(t), n = this.scaleValues.length, r = i * this.scaleValues[n - 3], a = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2), s = new SuperMap.Geometry.Point(a.x + r, a.y), p = []; p.push(a), p.push(s), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, p, { fillLimit: !0, fill: !0, fillColorLimit: !0, fillColor: "#141313", fillOpacity: 1 }); var u = this.scaleValues[0]; if (0 === u) o = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[1], t[0]).pntRight; else if (1 === u) o = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[1], t[0]).pntLeft; else { if (2 !== u) return; o = t[0] } var c = []; c.push(t[0]), c.push(o), this.addScalePoint(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, null, !0); var P, S = []; if (t.length > this.minEditPts) { for (var h = 1; h < t.length - 1; h++) { var y, f = this.scaleValues[h], g = null, b = null, M = null, m = 0, d = 0, v = 0; if (0 === f) { for (g = t[h], b = t[h + 1], M = t[h - 1], m = SuperMap.Plot.PlottingUtil.radian(g, b) * SuperMap.Plot.PlottingUtil.RTOD, d = SuperMap.Plot.PlottingUtil.radian(g, M) * SuperMap.Plot.PlottingUtil.RTOD - m; d < 0;)d += 360; v = d / 2; var O = t[h + 1].clone(); O = SuperMap.Plot.PlottingUtil.rotateAngle(g, v * Math.PI / 180, O), y = SuperMap.Plot.PlottingUtil.linePnt(g, O, r) } else if (1 === f) { for (g = t[h], b = t[h + 1], M = t[h - 1], m = SuperMap.Plot.PlottingUtil.radian(g, b) * SuperMap.Plot.PlottingUtil.RTOD, d = SuperMap.Plot.PlottingUtil.radian(g, M) * SuperMap.Plot.PlottingUtil.RTOD - m; d < 0;)d += 360; v = 180 - d / 2; var U = t[h - 1].clone(); O = SuperMap.Plot.PlottingUtil.rotateAngle(g, v * Math.PI / 180, U), y = SuperMap.Plot.PlottingUtil.linePnt(g, U, r) } else { if (2 !== f) continue; y = t[h] } S.push(t[h]), S.push(y), this.addScalePoint(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, null, !0) } var w = t.length, L = this.scaleValues[w - 1], _ = 0, V = 0, A = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[w - 2], t[w - 1]), T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * r, t[w - 2], t[w - 1]); if (0 === L) _ = A.pntLeft, V = T.pntLeft; else if (1 === L) _ = A.pntRight, V = T.pntRight; else { if (2 !== L) return; _ = t[w - 1].clone(), V = t[w - 1].clone() } (S = []).push(t[w - 1]), S.push(_), this.addScalePoint(_), this.addScalePoint(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, null, !0) } else { var E = this.scaleValues[1]; if (A = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, t[0], t[1]), T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * r, t[0], t[1]), 0 === E) _ = A.pntLeft, V = T.pntLeft; else if (1 === E) _ = A.pntRight, V = T.pntRight; else { if (2 !== E) return; _ = t[1].clone(), V = t[1].clone() } (S = []).push(t[1]), S.push(_), this.addScalePoint(_), this.addScalePoint(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, null, !0) } var x = this.scaleValues.length, j = this.scaleValues[x - 2], Y = Math.abs(i * j), C = this.scaleValues[x - 1], I = Math.abs(r * C), B = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, Y); if (-1 !== B.index) { var R = B.index, G = B.pt; P = C >= 0 ? (A = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, t[R], G)).pntRight : (A = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, t[R], G)).pntLeft; var N = SuperMap.Plot.PlottingUtil.linePnt(G, P, I), D = .3 * I, k = SuperMap.Plot.PlottingUtil.linePnt(N, G, D), z = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3 * D, N, k), F = z.pntLeft, K = z.pntRight; (S = []).push(G), S.push(N), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, null, !0), (S = []).push(F), S.push(N), S.push(K); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.addScalePoint(N), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = l.length, n = e; if (t >= 0 && t < i) { var r = !1, a = null, s = null; r = 0 === t ? SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t], l[t + 1], n) : t === i - 1 ? SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t - 1], l[t], n) : SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t - 1], l[t], l[t + 1]) !== (a = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t - 1], l[t], n)) ? a : (s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t], l[t + 1], n)) === a ? a : s, this.scaleValues[t] = r ? 1 : 0 } else if (t === i) { var p = SuperMap.Plot.PlottingUtil.distance(l[i - 1], n) / 2; this.scaleValues[t] = p / o } else if (t === i + 1 || t === i + 2) { for (var u = -1, c = 0, P = new SuperMap.Geometry.Point(0, 0), S = 0; S < l.length - 1; S++) { var h = []; h.push(l[S]), h.push(l[S + 1]); var y = SuperMap.Plot.PlottingUtil.projectPoint(n, l[S], l[S + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(y, h).isOnPolyLine) { var f = SuperMap.Plot.PlottingUtil.distance(n, y); -1 === u ? (u = S, P = y, c = f) : c > f && (u = S, P = y, c = f) } } if (-1 === u || u > l.length - 1) return; for (var g = 0, b = 0; b < u; b++) { var M = l[b], m = l[b + 1]; g += SuperMap.Plot.PlottingUtil.distance(M, m) } var d = l[u]; if ((g += SuperMap.Plot.PlottingUtil.distance(d, P)) < 0 || g > o) return; this.scaleValues[i + 1] = g / o; var v, O = this.scaleValues.length, U = o * this.scaleValues[O - 3]; v = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[u], l[u + 1], n) ? c / U : -Math.abs(c / U), this.scaleValues[i + 2] = v } } } }]), e }(); SuperMap.Plot.AlgoSymbol50308 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50226 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.088259), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), !(this.controlPoints.length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), i = this.scaleValues[0], n = this.scaleValues[2], r = this.scaleValues[3]; o.x = o.x + n * l, o.y = o.y + r * l; var a = new SuperMap.Geometry.Point(.5 * l * i, 0), s = new SuperMap.Geometry.Point(-.5 * l * i, 0), p = SuperMap.Plot.PlottingUtil.coordinateTrans(o, a, 0), u = SuperMap.Plot.PlottingUtil.coordinateTrans(o, s, 0), c = []; c.push(p), c.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c); var P = new SuperMap.Geometry.Point(.8 * l * i, 0), S = new SuperMap.Geometry.Point(-.8 * l * i, 0), h = SuperMap.Plot.PlottingUtil.coordinateTrans(o, P, 0), y = SuperMap.Plot.PlottingUtil.coordinateTrans(o, S, 0); this.subSymbols.length > 0 && (this.computeSubSymbol(this.subSymbols[0], h, 18 * i, 90), this.computeSubSymbol(this.subSymbols[0], y, 18 * i, 90)); var f = SuperMap.Plot.PlottingUtil.circlePoint(o, i * l, i * l, 180); this.addScalePoint(f, 0), this.addScalePoint(o, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.controlPoints.length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 === t) { n.x = n.x + this.scaleValues[2] * i, n.y = n.y + this.scaleValues[3] * i; var r = SuperMap.Plot.PlottingUtil.distance(e, n) / i; this.scaleValues[0] = r } if (1 === t) { var a = (e.x - n.x) / i; this.scaleValues[2] = a; var s = (e.y - n.y) / i; this.scaleValues[3] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol50226 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50225 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t); this.isEdit || (this.subSymbolScaleValue = this.getDefaultSubSymbolSize() / e, this.subSymbolScaleValue > .2 && (this.subSymbolScaleValue = .2), this.scaleValues[0] = this.subSymbolScaleValue); var o = this.scaleValues[0], i = this.scaleValues[2], n = this.scaleValues[3], r = e * o, a = new SuperMap.Geometry.Point(l.x + e * i, l.y + e * n); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, r, 0), this.addScalePoint(a, 0); var s = SuperMap.Plot.PlottingUtil.circlePoint(a, r, r, 90); this.addScalePoint(s, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = 0, r = 0; if (0 === t && (n = (e.x - i.x) / o, this.scaleValues[2] = n, r = (e.y - i.y) / o, this.scaleValues[3] = r), 1 === t) { n = this.scaleValues[2], r = this.scaleValues[3]; var a = new SuperMap.Geometry.Point(i.x + o * n, i.y + o * r), s = SuperMap.Plot.PlottingUtil.distance(a, e); this.scaleValues[0] = s / 2 / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol50225 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50223 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.088259), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.088259), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3]; l.x = l.x + r * o, l.y = l.y + a * o; var s = new SuperMap.Geometry.Point(.25 * o * n, .25 * o * n), p = new SuperMap.Geometry.Point(0, .5 * o * n), u = new SuperMap.Geometry.Point(-.25 * o * n, .25 * o * n), c = SuperMap.Plot.PlottingUtil.coordinateTrans(l, s, 0), P = SuperMap.Plot.PlottingUtil.coordinateTrans(l, p, 0), S = SuperMap.Plot.PlottingUtil.coordinateTrans(l, u, 0); this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL, [c, P, S], { lineTypeLimit: !0, lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, surroundLineLimit: !0 }); var h = new SuperMap.Geometry.Point(0, -.3 * o * n), y = SuperMap.Plot.PlottingUtil.coordinateTrans(l, h, 0); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c, y, S], { lineTypeLimit: !0, lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, surroundLineLimit: !0 }), this.scalePoints = []; var f = SuperMap.Plot.PlottingUtil.circlePoint(l, n * o * .5, n * o * .5, 180); this.addScalePoint(f, 0), this.addScalePoint(l, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { i.x = i.x + this.scaleValues[2] * n, i.y = i.y + this.scaleValues[3] * n; var r = SuperMap.Plot.PlottingUtil.distance(e, i) / n; this.scaleValues[0] = r } else if (1 === t) { var a = (e.x - i.x) / n; this.scaleValues[2] = a; var s = (e.y - i.y) / n; this.scaleValues[3] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol50223 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol50108 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = 2 * i } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * r, l.y + o * a); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, s, 0); for (var u = 0; u < this.components.length; u++)this.components[u].style.strokeColor = "#0000ff", this.components[u].style.lineColorLimit = !0, this.components[u].style.strokeOpacity = 1, this.components[u].style.color = "#0000ff", this.components[u].style.opacity = 1; this.addScalePoint(p); var c = s, P = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, 90); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), n = SuperMap.Plot.PlottingUtil.polylineDistance(l), r = 0, a = 0; if (0 === t) r = (e.x - i.x) / n, this.scaleValues[2] = r, a = (e.y - i.y) / n, this.scaleValues[3] = a; else if (1 === t) { r = this.scaleValues[2], a = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(i.x + n * r, i.y + n * a), p = SuperMap.Plot.PlottingUtil.distance(s, e); this.scaleValues[0] = p / n } } } }]), e }(); SuperMap.Plot.AlgoSymbol50108 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40304 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), !(this.controlPoints.length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = .5 * e, o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l, t); if (-1 !== o.index) { for (var i = [], n = 0; n < o.index + 1; n++)i.push(t[n]); var r = [], a = .1 * e, s = .5 * a, p = .05 * e; if (l - SuperMap.Plot.PlottingUtil.polylineDistance(i) >= p) { var u = SuperMap.Plot.PlottingUtil.linePnt(o.pts, t[o.index], p); i.push(u), this.ComputeDashLine(a, s, i); var c = SuperMap.Plot.PlottingUtil.linePnt(o.pts, t[o.index], p); r.push(c); for (var P = o.index + 1; P < t.length; ++P)r.push(t[P]); this.ComputeDashLine(a, s, r) } else { for (var S = -1, h = i.length - 1; h >= 0; h--) { var y = new SuperMap.Geometry.Point(i[h].x, i[h].y), f = new SuperMap.Geometry.Point(o.pts.x, o.pts.y), g = SuperMap.Plot.PlottingUtil.distance(y, f); if (g > p) { S = h; break } } if (-1 == S) return; i.splice(S + 1, i.length - 1 - S), u = SuperMap.Plot.PlottingUtil.linePnt(o.pts, t[S], p), i.push(u), this.ComputeDashLine(a, s, i); for (var b = -1, M = i.length - 1; M < t.length; M++)if (y = new SuperMap.Geometry.Point(t[M].x, t[M].y), f = new SuperMap.Geometry.Point(o.pts.x, o.pts.y), (g = SuperMap.Plot.PlottingUtil.distance(y, f)) > p) { b = M; break } if (-1 == b) return; c = SuperMap.Plot.PlottingUtil.linePnt(o.pts, t[b], p), r.push(c); for (var m = b + 1; m < t.length; ++m)r.push(t[m]); this.ComputeDashLine(a, s, r) } var d = u.clone(), v = c.clone(), O = SuperMap.Plot.PlottingUtil.radian(d, v) * SuperMap.Plot.PlottingUtil.RTOD, U = SuperMap.Plot.PlottingUtil.distance(d, v), w = new SuperMap.Geometry.Point((u.x + c.x) / 2, (u.y + c.y) / 2); this.addText("警", w, U, O), this.finish() } } } }, { key: "ComputeDashLine", value: function (t, e, l) { for (var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.clonePoints(l), n = o / 7, r = 0; r < 7; r++) { var a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, n); if (-1 !== a.index) { if (0 != r % 2) { for (var s = [], p = 0; p < a.index + 1; p++)s.push(i[p].clone()); s.push(a.pt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } var u = []; u.push(a.pt); for (var c = a.index + 1; c < i.length; c++)u.push(i[c]); i = (i = []).concat(u) } } i.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } }]), e }(); SuperMap.Plot.AlgoSymbol40304 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40302 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < 3)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t); this.isEdit || (this.subSymbolScaleValue = this.getDefaultSubSymbolSize() / e, this.subSymbolScaleValue > .2 && (this.subSymbolScaleValue = .2), this.scaleValues[2] = this.subSymbolScaleValue / 3); var o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], r = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), a = new SuperMap.Geometry.Point(r.x - 4 * n, r.y), s = new SuperMap.Geometry.Point(r.x - 4 * n, r.y - n / 2), p = []; p.push(a), p.push(s); var u = { lineTypeLimit: !0, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, u); var c = new SuperMap.Geometry.Point(r.x - 4 * n, r.y), P = new SuperMap.Geometry.Point(r.x - n, r.y), S = []; S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, u), this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], r, 2 * n, 0); var h = new SuperMap.Geometry.Point(r.x + 4 * n, r.y), y = new SuperMap.Geometry.Point(r.x + n, r.y), f = []; f.push(h), f.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f, u); var g = new SuperMap.Geometry.Point(r.x + 4 * n, r.y + n / 2), b = new SuperMap.Geometry.Point(r.x + 4 * n, r.y), M = []; M.push(g), M.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M, u), this.addScalePoint(r, 0); var m = SuperMap.Plot.PlottingUtil.circlePoint(r, 2 * n, 2 * n, 90); this.addScalePoint(m, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = 0, r = 0; if (0 === t && (n = (e.x - i.x) / o, this.scaleValues[0] = n, r = (e.y - i.y) / o, this.scaleValues[1] = r), 1 === t) { n = this.scaleValues[0], r = this.scaleValues[1]; var a = new SuperMap.Geometry.Point(i.x + o * n, i.y + o * r), s = SuperMap.Plot.PlottingUtil.distance(a, e); this.scaleValues[2] = s / 2 / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol40302 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40104 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < 3)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], r = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), a = new SuperMap.Geometry.Point(r.x + 1, r.y), s = []; t.push(t[0].clone()); for (var p = 0; p < t.length - 1; p++) { var u = SuperMap.Plot.PlottingUtil.intersectLines(r, a, t[p], t[p + 1]); u.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint, t[p], t[p + 1]) && s.push(u.intersectPoint)) } if (0 >= s.length) this.finish(); else { var c = s[0].clone(), P = s[0].clone(); for (p = 0; p < s.length; p++)c.x > s[p].x && (c = s[p].clone()), P.x < s[p].x && (P = s[p].clone()); var S = new SuperMap.Geometry.Point(r.x - n / 2, c.y), h = new SuperMap.Geometry.Point(r.x + n / 2, P.y), y = SuperMap.Plot.PlottingUtil.radian(S, h) * SuperMap.Plot.PlottingUtil.RTOD; this.addText("缉", r, n, y), this.addScalePoint(r, 0); var f = SuperMap.Plot.PlottingUtil.circlePoint(r, n / 2, n / 2, 90); this.addScalePoint(f, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), n = e, r = 0, a = 0; if (0 === t) { if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, n)) return; r = (n.x - i.x) / o, this.scaleValues[0] = r, a = (n.y - i.y) / o, this.scaleValues[1] = a } if (1 === t) { r = this.scaleValues[0], a = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = 2 * SuperMap.Plot.PlottingUtil.distance(n, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol40104 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30026 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t), this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = new SuperMap.Geometry.Point(l.x + 1, l.y), i = []; t.push(t[0].clone()); for (var n = 0; n < t.length - 1; n++) { var r = SuperMap.Plot.PlottingUtil.intersectLines(l, o, t[n], t[n + 1]); r.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint, t[n], t[n + 1]) && i.push(r.intersectPoint)) } if (!(0 >= i.length)) { var a = i[0].clone(), s = i[0].clone(); for (n = 0; n < i.length; n++)a.x > i[n].x && (a = i[n].clone()), s.x < i[n].x && (s = i[n].clone()); var p = SuperMap.Plot.PlottingUtil.distance(s, a), u = new SuperMap.Geometry.Point(l.x - .25 * p, a.y), c = e * this.scaleValues[0], P = e * this.scaleValues[0], S = P + c, h = new SuperMap.Geometry.Point(u.x, u.y + S); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [h, new SuperMap.Geometry.Point(h.x + c, h.y)]); var y = new SuperMap.Geometry.Point(u.x, u.y + .8 * P), f = new SuperMap.Geometry.Point(u.x - P, u.y - P), g = new SuperMap.Geometry.Point(u.x + P, u.y - P), b = []; b.push(y), b.push(f), b.push(g), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b); var M = new SuperMap.Geometry.Point(u.x - .5 * P, u.y - P), m = new SuperMap.Geometry.Point(f.x, f.y - 2 * c), d = new SuperMap.Geometry.Point(u.x + .5 * P, u.y - P), v = new SuperMap.Geometry.Point(g.x, g.y - 2 * c), O = []; O.push(M), O.push(m); var U = []; U.push(d), U.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U), this.addText("灾", l, 2 * P, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol30026 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30025 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t); this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue()); var o = new SuperMap.Geometry.Point(l.x + 1, l.y), i = []; t.push(t[0].clone()); for (var n = 0; n < t.length - 1; n++) { var r = SuperMap.Plot.PlottingUtil.intersectLines(l, o, t[n], t[n + 1]); r.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint, t[n], t[n + 1]) && i.push(r.intersectPoint)) } if (!(0 >= i.length)) { var a = i[0].clone(), s = i[0].clone(); for (n = 0; n < i.length; n++)a.x > i[n].x && (a = i[n].clone()), s.x < i[n].x && (s = i[n].clone()); var p = SuperMap.Plot.PlottingUtil.distance(s, a), u = new SuperMap.Geometry.Point(l.x - .25 * p, a.y), c = e * this.scaleValues[0], P = e * this.scaleValues[0], S = P + c, h = new SuperMap.Geometry.Point(u.x, u.y + S); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [h, new SuperMap.Geometry.Point(h.x + c, h.y)]); var y = new SuperMap.Geometry.Point(u.x, u.y + .8 * P), f = new SuperMap.Geometry.Point(u.x - P, u.y - P), g = new SuperMap.Geometry.Point(u.x + P, u.y - P), b = []; b.push(y), b.push(f), b.push(g), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, b); var M = new SuperMap.Geometry.Point(u.x - .5 * P, u.y - P), m = new SuperMap.Geometry.Point(f.x, f.y - 2 * c), d = new SuperMap.Geometry.Point(u.x + .5 * P, u.y - P), v = new SuperMap.Geometry.Point(g.x, g.y - 2 * c), O = []; O.push(M), O.push(m); var U = []; U.push(d), U.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U), this.addText("滞", l, 2 * P, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol30025 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30020 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l.subText = "水", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(this.controlPoints.length < 3)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = this.scaleValues[0], i = this.scaleValues[1], n = e * this.scaleValues[2], r = new SuperMap.Geometry.Point(l.x + e * o, l.y + e * i), a = new SuperMap.Geometry.Point(r.x + 1, r.y), s = []; t.push(t[0].clone()); for (var p = 0; p < t.length - 1; p++) { var u = SuperMap.Plot.PlottingUtil.intersectLines(r, a, t[p], t[p + 1]); u.isIntersectLines && (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint, t[p], t[p + 1]) && s.push(u.intersectPoint)) } if (0 >= s.length) this.finish(); else { var c = s[0].clone(), P = s[0].clone(); for (p = 0; p < s.length; p++)c.x > s[p].x && (c = s[p].clone()), P.x < s[p].x && (P = s[p].clone()); var S = [], h = new SuperMap.Geometry.Point(r.x - n / 2, c.y); h.x <= P.x && h.x >= c.x && ((S = []).push(c), S.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S)); var y = new SuperMap.Geometry.Point(r.x + n / 2, P.y); y.x <= P.x && y.x >= c.x && ((S = []).push(P), S.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S)); var f = SuperMap.Plot.PlottingUtil.radian(h, y) * SuperMap.Plot.PlottingUtil.RTOD; this.addText(this.subText, r, n, f), this.addScalePoint(r, 0); var g = SuperMap.Plot.PlottingUtil.circlePoint(r, n / 2, n / 2, 90); this.addScalePoint(g, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), n = 0, r = 0, a = e; if (0 === t) { if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, a)) return; n = (a.x - i.x) / o, this.scaleValues[0] = n, r = (a.y - i.y) / o, this.scaleValues[1] = r } if (1 === t) { n = this.scaleValues[0], r = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(i.x + n * o, i.y + r * o), p = 2 * SuperMap.Plot.PlottingUtil.distance(a, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol30020 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30014 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = .1 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), o = this.textContent.length * l / 2.5, i = .5 * (e - o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t); if (-1 !== n.index) { var r = SuperMap.Plot.PlottingUtil.clonePoints(t); r.splice(n.index + 1, t.length - n.index - 1), r.push(n.pts); var a = { lineColorLimit: !0, strokeColor: "#0000ff", color: "#0000ff" }, s = SuperMap.Plot.PlottingUtil.paraLine(r, .25 * l, !0), p = SuperMap.Plot.PlottingUtil.paraLine(r, .25 * l, !1), u = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i + o, t); if (-1 !== u.index) { var c = SuperMap.Plot.PlottingUtil.clonePoints(t); c.splice(0, u.index + 1), c.splice(0, 0, u.pts); var P = SuperMap.Plot.PlottingUtil.paraLine(c, .25 * l, !0), S = SuperMap.Plot.PlottingUtil.paraLine(c, .25 * l, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s, a), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, a), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, a), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, a); var h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * e, t), y = SuperMap.Plot.PlottingUtil.radian(n.pts, u.pts) * SuperMap.Plot.PlottingUtil.RTOD; this.addText("(XX)", h.pts, o, y), this.finish() } } } } }]), e }(); SuperMap.Plot.AlgoSymbol30014 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30013 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = .1 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], t[t.length - 2], Math.sqrt(3) * e / 4), o = SuperMap.Plot.PlottingUtil.clonePoints(t); o.splice(t.length - 1, 1), o.push(l); var i = SuperMap.Plot.PlottingUtil.paraLine(o, .25 * e, !0), n = { lineColorLimit: !0, strokeColor: "#0000ff", color: "#0000ff" }, r = SuperMap.Plot.PlottingUtil.paraLine(o, .25 * e, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r, n); var a = SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], t[t.length - 2], e), s = new SuperMap.Geometry.Point(a.x, a.y), p = new SuperMap.Geometry.Point(a.x, a.y); s = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], 1 / 6 * Math.PI, s), p = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], 11 / 6 * Math.PI, p); var u = []; u.push(s), u.push(t[t.length - 1]), u.push(p), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, n), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol30013 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30012 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = this.scaleValues[0], l = this.scaleValues[1], o = this.scaleValues[2], i = SuperMap.Plot.PlottingUtil.getOutRectangleDis(t); if (0 !== i) { if (!this.isEdit) { var n = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[2] = n / i } var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), a = new SuperMap.Geometry.Point(r.x + e * i, r.y + l * i), s = o * i; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, s, 0), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t), this.addScalePoint(a, 0); var p = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 90); this.addScalePoint(p, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.getOutRectangleDis(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t && (this.scaleValues[0] = (n.x - i.x) / o, this.scaleValues[1] = (n.y - i.y) / o), 1 === t) { var r = this.scaleValues[0], a = this.scaleValues[1], s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = SuperMap.Plot.PlottingUtil.distance(e, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol30012 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30011 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(), 2 === this.controlPoints.length && this.calAssistantLine(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts || 0 !== SuperMap.Plot.PlottingUtil.getOutRectangleDis(t) && (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t), this.finish()) } }]), e }(); SuperMap.Plot.AlgoSymbol30011 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30010 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(-.1), l.scaleValues.push(-.1), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = this.scaleValues[0], l = this.scaleValues[1], o = this.scaleValues[2], i = SuperMap.Plot.PlottingUtil.getOutRectangleDis(t); if (0 !== i) { if (!this.isEdit) { var n = this.getSubSymbolScaleValue() * SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); this.scaleValues[2] = n / i } t.length === this.minEditPts ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), a = new SuperMap.Geometry.Point(r.x + e * i, r.y + l * i), s = o * i; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], a, s, 0), this.addText("?", r, .3 * i, 0, "#0000ff"), this.addScalePoint(a, 0); var p = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 90); this.addScalePoint(p, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.getOutRectangleDis(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 === o) return; var n = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t && (this.scaleValues[0] = (n.x - i.x) / o, this.scaleValues[1] = (n.y - i.y) / o), 1 === t) { var r = this.scaleValues[0], a = this.scaleValues[1], s = new SuperMap.Geometry.Point(i.x + r * o, i.y + a * o), p = SuperMap.Plot.PlottingUtil.distance(e, s); this.scaleValues[2] = p / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol30010 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30009 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(-.04), l.scaleValues.push(-.175), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = l * this.scaleValues[0], i = e[e.length - 1]; if (e.length > 2) { for (var n = -1, r = e.length - 2; r >= 0; r--)if (o < SuperMap.Plot.PlottingUtil.distance(i, e[r])) { n = r; break } e.splice(n + 1, e.length - n), e.push(i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var a = e[e.length - 2], s = e[e.length - 1], p = o, u = 180 * SuperMap.Plot.PlottingUtil.radian(a, s) / Math.PI, c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 157.5), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 202.5), S = []; S.push(c), S.push(i), S.push(P); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0); var h = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(.8 * p, s, a), y = SuperMap.Plot.PlottingUtil.circlePoint(h, p, p, u + 90), f = SuperMap.Plot.PlottingUtil.circlePoint(h, p, p, u - 90), g = []; g.push(y), g.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g); var b = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(1.2 * p, s, a), M = SuperMap.Plot.PlottingUtil.circlePoint(b, p, p, u + 90), m = SuperMap.Plot.PlottingUtil.circlePoint(b, p, p, u - 90), d = []; d.push(M), d.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol30009 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30008 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = l * this.scaleValues[0], i = e[e.length - 1]; if (e.length > 2) { for (var n = -1, r = e.length - 2; r >= 0; r--)if (o < SuperMap.Plot.PlottingUtil.distance(i, e[r])) { n = r; break } e.splice(n + 1, e.length - n), e.push(i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var a = e[e.length - 2], s = e[e.length - 1], p = o, u = 180 * SuperMap.Plot.PlottingUtil.radian(a, s) / Math.PI, c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 157.5), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 202.5), S = []; S.push(c), S.push(i), S.push(P); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol30008 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21221 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(3 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL, e); for (var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = e[0].x, i = e[0].x, n = e[0].y, r = e[0].y, a = [], s = 0; s < e.length; s++)o > e[s].x && (o = e[s].x), i < e[s].x && (i = e[s].x), n > e[s].y && (n = e[s].y), r < e[s].y && (r = e[s].y), a.push(e[s]); for (var p = (i - o) / 5, u = .2 * p, c = [], P = 0; P < 360; P += 18) { var S = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0, 0), u, u, P); c.push(S) } for (var h = 0, y = o; y < i; y += p)for (var f = n; f < r; f += p) { var g = new SuperMap.Geometry.Point(y, f); if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(a, g)) if (0 === h) { if (h = 0, this.subSymbols.length > 0) { var b = .015 * l; this.computeSubSymbol(this.subSymbols[0], g, b, 0), !0 === this.subSymbols[0].fillLimit && (this.subSymbols[0].fillColor = "#332323") } h++ } else if (h = 0, this.subSymbols.length > 0) { var M = .015 * l; this.computeSubSymbol(this.subSymbols[1], g, M, 0) } } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol21221 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21216 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = .05 * e, o = SuperMap.Plot.PlottingUtil.paraLine(t, .5 * l, !0); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); var i = []; i = i.concat(o); for (var n = SuperMap.Plot.PlottingUtil.polylineDistance(i), r = 50 * this.getSubSymbolScaleValue(), a = n * r * .02, s = n * r * .005, p = .1 * n, u = .1 * e, c = 0; c <= n; c += p) { var P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, c + u); if (-1 !== P.index) { var S, h = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a, i[P.index], P.pt); S = this.scaleValues[0] > 0 ? new SuperMap.Geometry.Point(h.pntLeft.x, h.pntLeft.y) : new SuperMap.Geometry.Point(h.pntRight.x, h.pntRight.y); var y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, S, P.pt), f = []; if (f.push(y.pntRight), f.push(S), f.push(y.pntLeft), 0 === c) { var g = new SuperMap.Geometry.Point(S.x, S.y); g.isScalePoint = !0, g.tag = 0, this.scalePoints.push(g) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, f, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e); this.scaleValues[0] = o ? -1 : 1 } } }]), e }(); SuperMap.Plot.AlgoSymbol21216 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol3020901 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.125)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (2 == t.length) { var l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = SuperMap.Plot.PlottingUtil.distance(l, o), n = 180 * SuperMap.Plot.PlottingUtil.radian(l, o) / Math.PI, r = SuperMap.Plot.PlottingUtil.circlePoint(l, i, i, n + 60); e.push(t[0]), e.push(o), e.push(r), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e) } else { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); for (var a = 0; a < t.length; a++)e.push(t[a]) } var s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), p = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var u = this.scaleValues[0], c = this.scaleValues[1], P = this.scaleValues[2], S = new SuperMap.Geometry.Point(s.x + p * u, s.y + p * c), h = p * P; 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], S, h, 0), this.addScalePoint(S.clone()); var y = SuperMap.Plot.PlottingUtil.circlePoint(S, .5 * h, .5 * h, 90); this.addScalePoint(y), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; if (2 == l.length) { var i = new SuperMap.Geometry.Point(l[0].x, l[0].y), n = new SuperMap.Geometry.Point(l[1].x, l[1].y), r = SuperMap.Plot.PlottingUtil.distance(i, n), a = 180 * SuperMap.Plot.PlottingUtil.radian(i, n) / Math.PI, s = SuperMap.Plot.PlottingUtil.circlePoint(i, r, r, a + 60); o.push(l[0]), o.push(n), o.push(s), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o) } else { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l); for (var p = 0; p < l.length; p++)o.push(l[p]) } var u = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), c = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) this.scaleValues[0] = (e.x - u.x) / c, this.scaleValues[1] = (e.y - u.y) / c; else if (1 === t) { var P = new SuperMap.Geometry.Point(u.x + c * this.scaleValues[0], u.y + c * this.scaleValues[1]), S = 2 * SuperMap.Plot.PlottingUtil.distance(e, P) / c; S < .5 && (this.scaleValues[2] = S) } } } }]), e }(); SuperMap.Plot.AlgoSymbol3020901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010304 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "协", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010304 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010303 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "出", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010303 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol3010301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "调", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21600), e }(); SuperMap.Plot.AlgoSymbol3010301 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = .4 * i } var n = l * this.scaleValues[0], r = l * this.scaleValues[2], a = l * this.scaleValues[3], s = new SuperMap.Geometry.Point(o.x + r, o.y + a), p = .6 * n, u = new SuperMap.Geometry.Point(s.x + n, s.y), c = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 0), P = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 180), S = []; S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0 }); var h = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 90), y = SuperMap.Plot.PlottingUtil.circlePoint(u, p, p, 270); (S = []).push(h), S.push(y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0 }); var f = new SuperMap.Geometry.Point(s.x - n, s.y), g = SuperMap.Plot.PlottingUtil.circlePoint(f, .5 * n, .5 * n, 270), b = SuperMap.Plot.PlottingUtil.circlePoint(f, n, n, 240), M = SuperMap.Plot.PlottingUtil.circlePoint(f, n, n, 90), m = SuperMap.Plot.PlottingUtil.circlePoint(f, n, n, 300); (S = []).push(g), S.push(b), S.push(M), S.push(m), S.push(g), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S, { lineTypeLimit: !0 }), this.scalePoints = []; var d = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, 0); this.addScalePoint(d), this.addScalePoint(s), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = []; if (o = 3 >= (l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var r = i * this.scaleValues[2], a = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + r, n.y + a), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol40100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol37700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol23500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .2 || i <= 0) && (i = .2), this.scaleValues[0] = i } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * r, l.y + o * a); this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, s, 0), this.addScalePoint(p); var u = s, c = SuperMap.Plot.PlottingUtil.circlePoint(p, u, u, 90); this.addScalePoint(c), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol37700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol35200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .05), this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()), 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = e * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], l, o, 0), this.scalePoints = []; var i = SuperMap.Plot.PlottingUtil.circlePoint(l, o, o, 90); this.addScalePoint(i), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); if (0 == t) { var n = SuperMap.Plot.PlottingUtil.distance(e, i) / o; this.scaleValues[0] = n } } } }]), e }(); SuperMap.Plot.AlgoSymbol35200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol35000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .03), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues[0] = .03), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = e[0], n = e[1], r = e[e.length - 1], a = e[e.length - 2], s = SuperMap.Plot.PlottingUtil.radian(i, n) * SuperMap.Plot.PlottingUtil.RTOD, p = SuperMap.Plot.PlottingUtil.radian(a, r) * SuperMap.Plot.PlottingUtil.RTOD, u = this.scaleValues[0], c = l * u, P = SuperMap.Plot.PlottingUtil.circlePoint(i, c, c, s + 90), S = SuperMap.Plot.PlottingUtil.circlePoint(i, c, c, s + 270), h = []; h.push(P), h.push(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { lineTypeLimit: !0 }), this.scalePoints = [], this.addScalePoint(S); var y = SuperMap.Plot.PlottingUtil.circlePoint(r, c, c, p + 90), f = SuperMap.Plot.PlottingUtil.circlePoint(r, c, c, p + 270); (h = []).push(y), h.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { lineTypeLimit: !0 }); var g, b, M = t.length; if (this.scaleValues.length <= M) { for (this.scaleValues = [], this.scaleValues.push(u), b = 1 / M, g = 0; g < M - 1; g++)this.scaleValues.push(b * (g + 1)); this.scaleValues.push(u) } for (g = 0; g < M - 1; g++) { var m = (b = this.scaleValues[g + 1]) * l, d = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(m, e); if (!d.bfind) return; var v = d.pts, O = d.index, U = l * this.getSubSymbolScaleValue(), w = .3 * U, L = SuperMap.Plot.PlottingUtil.radian(e[O], e[O + 1]) * SuperMap.Plot.PlottingUtil.RTOD, _ = new SuperMap.Geometry.Point(U, -w), V = new SuperMap.Geometry.Point(-U, -w), A = new SuperMap.Geometry.Point(-U, 0), T = new SuperMap.Geometry.Point(U, 0), E = SuperMap.Plot.PlottingUtil.coordinateTrans(v, _, L), x = SuperMap.Plot.PlottingUtil.coordinateTrans(v, V, L), j = SuperMap.Plot.PlottingUtil.coordinateTrans(v, A, L), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(v, T, L); (h = []).push(E), h.push(x), h.push(j), h.push(Y), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, { lineTypeLimit: !0, fillLimit: !0, fill: !0 }), this.addScalePoint(v) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t >= this.scalePoints.length) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 == t) { var r = (i = SuperMap.Plot.PlottingUtil.distance(e, l[0])) / n; this.scaleValues[0] = r } else { var a, s = e, p = []; for (a = 0; a < o.length; a++)p.push(o[a]); var u = -1, c = 0, P = new SuperMap.Geometry.Point(0, 0); for (a = 0; a < p.length - 1; a++) { var S = []; S.push(p[a]), S.push(p[a + 1]); var h = SuperMap.Plot.PlottingUtil.projectPoint(s, p[a], p[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(h, S).isOnPolyLine) { var y = SuperMap.Plot.PlottingUtil.distance(s, h); -1 == u ? (u = a, P = h, c = y) : c > y && (u = a, P = h, c = y) } } if (-1 == u || u > p.length - 1) return; for (i = 0, a = 0; a < u; a++)i += SuperMap.Plot.PlottingUtil.distance(o[a], o[a + 1]); if ((i += SuperMap.Plot.PlottingUtil.distance(o[u], P)) < 0 || i > n) return; var f = i / n; this.scaleValues[t] = f } } } }]), e }(); SuperMap.Plot.AlgoSymbol35000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol44100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.285714), l.scaleValues.push(.105263), l.scaleValues.push(.181818), l.scaleValues.push(.285714), l.scaleValues.push(.285714)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 5 && (this.scaleValues = [], this.scaleValues.push(.285714), this.scaleValues.push(.105263), this.scaleValues.push(.181818), this.scaleValues.push(.285714), this.scaleValues.push(.285714)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), r = new SuperMap.Geometry.Point(0, o * i), a = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * a), u = new SuperMap.Geometry.Point(o * (1 - s), o * a), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, g = []; g.push(r), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(n); for (var b = [], M = 0; M < g.length; M++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[M], f); b.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var d = [], v = .06 * o, O = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v, l, e), U = O.pntRight, w = O.pntLeft; d.push(U), d.push(w), v = .15 * o; var L = new SuperMap.Geometry.Point(v, 0), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(e, L, f); d.push(_), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, d, { lineColorLimit: !0, strokeColor: "#0000FF", strokeOpacity: 1, color: "#0000FF", opacity: 1, fillLimit: !0, fill: !0 }), this.scalePoints = [], this.addScalePoint(b[0]), this.addScalePoint(b[1]), this.addScalePoint(b[2]), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), r = l[1].clone(), a = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(a, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(a, n, r); var p = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(a, n, r); var c = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol44100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol42200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e, { fillLimit: !0, fill: !1, surroundLineFlag: !1 }); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .2 || i <= 0) && (i = .2), this.scaleValues[0] = i } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * r, l.y + o * a); if (this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0) { if (this.subSymbols[0].symbolData) for (var u in this.subSymbols[0].symbolData.innerCells) this.subSymbols[0].symbolData.innerCells[u].type === SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL && (this.subSymbols[0].symbolData.innerCells[u].type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL); this.computeSubSymbol(this.subSymbols[0], p, s, 0) } this.addScalePoint(p); var c = s, P = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, 90); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), a = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - r.x) / a, this.scaleValues[2] = i, n = (e.y - r.y) / a, this.scaleValues[3] = n; else if (1 === t) { i = this.scaleValues[2], n = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(r.x + a * i, r.y + a * n), p = SuperMap.Plot.PlottingUtil.distance(s, e) / a; this.scaleValues[0] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol42200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = -.25, l.scaleValues[1] = .1, l.scaleValues[2] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues[0] = -.25, this.scaleValues[1] = .1, this.scaleValues[2] = .05); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (0 != e) { var l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); if (!this.isEdit) { var o = this.getSubSymbolScaleValue() * l; this.scaleValues[2] = .35 * o / e } var i = this.scaleValues[0], n = this.scaleValues[1], r = this.scaleValues[2]; 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), s = new SuperMap.Geometry.Point(a.x + i * e, a.y + n * e), p = r * e, u = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 270), c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 30), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 150), S = []; S.push(u), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { fill: !1, lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(s); var h = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90); this.addScalePoint(h), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == o) return; var i, n, r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), a = e; if (0 == t) i = (a.x - r.x) / o, this.scaleValues[0] = i, n = (a.y - r.y) / o, this.scaleValues[1] = n; else if (1 == t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(r.x + i * o, r.y + n * o), p = SuperMap.Plot.PlottingUtil.distance(a, s) / o; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol41202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = -.25, l.scaleValues[1] = .1, l.scaleValues[2] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues[0] = -.25, this.scaleValues[1] = .1, this.scaleValues[2] = .05); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (0 !== e) { var l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); if (!this.isEdit) { var o = this.getSubSymbolScaleValue() * l; this.scaleValues[2] = .35 * o / e } var i = this.scaleValues[0], n = this.scaleValues[1], r = this.scaleValues[2]; 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), s = new SuperMap.Geometry.Point(a.x + i * e, a.y + n * e), p = r * e, u = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90), c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 210), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 330), S = []; S.push(u), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { fill: !1, lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(s); var h = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90); this.addScalePoint(h), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == o) return; var i, n, r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), a = e; if (0 == t) i = (a.x - r.x) / o, this.scaleValues[0] = i, n = (a.y - r.y) / o, this.scaleValues[1] = n; else if (1 == t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(r.x + i * o, r.y + n * o), p = SuperMap.Plot.PlottingUtil.distance(a, s) / o; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol41201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = -.25, l.scaleValues[1] = .1, l.scaleValues[2] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues[0] = -.25, this.scaleValues[1] = .1, this.scaleValues[2] = .05); var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), l = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); if (!this.isEdit) { var o = this.getSubSymbolScaleValue() * l; this.scaleValues[2] = .35 * o / e } var i = this.scaleValues[0], n = this.scaleValues[1], r = this.scaleValues[2]; 2 === t.length ? this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); var a = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), s = new SuperMap.Geometry.Point(a.x + i * e, a.y + n * e), p = r * e, u = new SuperMap.Geometry.Point(s.x, s.y), c = new SuperMap.Geometry.Point(s.x - p, s.y - p), P = new SuperMap.Geometry.Point(s.x + p, s.y - p), S = new SuperMap.Geometry.Point(s.x - p, s.y + p), h = new SuperMap.Geometry.Point(s.x + p, s.y + p), y = []; y.push(u), y.push(c), y.push(P), y.push(u), y.push(S), y.push(h), y.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y, { lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = [], this.addScalePoint(s); var f = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, 90); this.addScalePoint(f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]); if (0 == o) return; var i, n, r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l), a = e; if (0 == t) i = (a.x - r.x) / o, this.scaleValues[0] = i, n = (a.y - r.y) / o, this.scaleValues[1] = n; else if (1 == t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(r.x + i * o, r.y + n * o), p = SuperMap.Plot.PlottingUtil.distance(a, s) / o; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol41200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol41100 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.1 * e, t[0], t[1]), o = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.2 * e, t[0], t[1]), i = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2), n = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.8 * e, t[0], t[1]), r = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(.9 * e, t[0], t[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], l]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [o, n]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [r, t[1]]); var a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04 * e, t[0], t[1]), s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.04 * e, t[1], t[0]), p = a.pntLeft, u = s.pntRight; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], u]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[1], p]); var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.42 * e, t[1], i), P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.48 * e, t[1], i), S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.6 * e, t[1], i), h = c.pntRight, y = P.pntRight, f = S.pntRight; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i, h]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [y, f]); var g = SuperMap.Plot.PlottingUtil.polylineDistance([y, f]), b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3 * g, y, f).pntRight; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [f, b]), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol41100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40101 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(0 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[0] = .2 * i } var n = l * this.scaleValues[0], r = l * this.scaleValues[2], a = l * this.scaleValues[3], s = new SuperMap.Geometry.Point(o.x + r, o.y + a), p = []; p.push(s), p.push(new SuperMap.Geometry.Point(s.x + n, s.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, p, { fillLimit: !0, fill: !0, lineTypeLimit: !0, surroundLineLimit: !0 }); for (var u = 18 * n, c = new SuperMap.Geometry.Point(s.x + u, s.y), P = [], S = 135; S < 180; S += 3)P.push(SuperMap.Plot.PlottingUtil.circlePoint(c, u, u, S)); P.push(SuperMap.Plot.PlottingUtil.circlePoint(c, u, u, 180)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { lineTypeLimit: !0, surroundLineLimit: !0 }), this.scalePoints = []; var h = SuperMap.Plot.PlottingUtil.circlePoint(s, n, n, 0); this.addScalePoint(h), this.addScalePoint(s), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = []; if (o = 3 >= (l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), 0 > (o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length) return; var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var r = i * this.scaleValues[2], a = i * this.scaleValues[3], s = new SuperMap.Geometry.Point(n.x + r, n.y + a), p = SuperMap.Plot.PlottingUtil.distance(e, s) / i; this.scaleValues[0] = p } else if (1 == t) { var u = (e.x - n.x) / i, c = (e.y - n.y) / i; this.scaleValues[2] = u, this.scaleValues[3] = c } } } }]), e }(); SuperMap.Plot.AlgoSymbol40101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol40900 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues = []), this.scalePoints = []; var e = [], l = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (t.length < 3) e.push(t[0]), e.push(t[1]); else { var o = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = o.scaleValues; for (var i = 0; i < o.scalePoints.length; i++)this.addScalePoint(o.scalePoints[i]); e = o.beizerPoints } SuperMap.Plot.PlottingUtil.clearSamePts(e); var n = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.isEdit || (this.scaleValues.push(.5), this.scaleValues.push(this.getSubSymbolScaleValue())), !(e.length <= 0)) { var r; r = 2 == t.length ? 0 : t.length - 1; var a = n * this.scaleValues[4 * r], s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e); if (s.bfind) { var p = s.index, u = s.pts, c = l * this.scaleValues[4 * r + 1], P = a - c, S = a + c; if ((s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e)).bfind) { var h, y = s.pts, f = []; if (0 == (p = s.index)) f.push(e[0]); else for (h = 0; h < p; h++)f.push(e[h]); if (f.push(y), (s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e)).bfind) { var g = s.pts; p = s.index; var b = []; for (b.push(g), h = p + 1; h < e.length; h++)b.push(e[h]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [u, g]); var M = l * this.scaleValues[4 * r + 1] / 1.667; if (!(f.length < 2)) { var m = f[0], d = f[1], v = SuperMap.Plot.PlottingUtil.radian(m, d) * SuperMap.Plot.PlottingUtil.RTOD, O = SuperMap.Plot.PlottingUtil.circlePoint(m, M, M, v + 90), U = SuperMap.Plot.PlottingUtil.circlePoint(m, M, M, v + 270), w = []; if (w.push(O), w.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w), !(b.length < 2)) { var L = b[b.length - 1], _ = b[b.length - 2], V = SuperMap.Plot.PlottingUtil.radian(L, _) * SuperMap.Plot.PlottingUtil.RTOD, A = SuperMap.Plot.PlottingUtil.circlePoint(L, M, M, V + 90), T = SuperMap.Plot.PlottingUtil.circlePoint(L, M, M, V + 270); (w = []).push(A), w.push(T), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w), this.addScalePoint(u), this.addScalePoint(O), this.finish() } } } } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) return; if (2 * (l.length - 1) == t || 2 == l.length && 0 == t) { var r, a = e, s = []; for (r = 0; r < o.length; r++)s.push(o[r]); var p, u = -1, c = 0; for (r = 0; r < s.length - 1; r++) { var P = []; P.push(s[r]), P.push(s[r + 1]); var S = SuperMap.Plot.PlottingUtil.projectPoint(a, s[r], s[r + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S, P).isOnPolyLine) { var h = SuperMap.Plot.PlottingUtil.distance(a, S); -1 == u ? (u = r, p = S, c = h) : c > h && (u = r, p = S, c = h) } } if (-1 == u || u > s.length - 1) return; var y = 0; for (r = 0; r < u; r++) { var f = o[r], g = o[r + 1]; y += SuperMap.Plot.PlottingUtil.distance(f, g) } var b = o[u]; if ((y += SuperMap.Plot.PlottingUtil.distance(b, p)) < 0 || y > n) return; var M = y / n; if (M > .8 || M < .2) return; 2 == l.length ? this.scaleValues[0] = M : this.scaleValues[2 * t] = M } else if (2 * l.length - 1 == t || 2 == l.length && 1 == t) { var m = 1.667 * SuperMap.Plot.PlottingUtil.distance(e, l[0]) / i; 2 == l.length ? this.scaleValues[1] = m : this.scaleValues[2 * t - 1] = m } else { var d = -1; d = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var v = (e.x - l[d].x) / i, O = (e.y - l[d].y) / i; this.scaleValues[2 * t] = v, this.scaleValues[2 * t + 1] = O } } } }]), e }(); SuperMap.Plot.AlgoSymbol40900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol32300 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = t[0], o = t[1]; e = 2 == t.length ? o : t[2]; var i = new SuperMap.Geometry.Point((l.x + o.x) / 2, (l.y + o.y) / 2), n = SuperMap.Plot.PlottingUtil.distance(i, e), r = .5 * n, a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, i, e), s = a.pntLeft, p = a.pntRight, u = !(i.x > e.x), c = []; u ? (c.push(l), c.push(s)) : (c.push(l), c.push(p)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var P = []; u ? (P.push(o), P.push(p)) : (P.push(o), P.push(s)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var S, h, y, f, g = .37 * n, b = SuperMap.Plot.PlottingUtil.linePnt(i, e, g), M = .09 * n, m = []; m.push(b), m.push(new SuperMap.Geometry.Point(b.x, b.y + M)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, m), u ? (S = (a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, i, b)).pntLeft, h = (a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * M, i, b)).pntLeft, y = (a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, S, h)).pntRight, f = a.pntLeft) : (S = (a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, i, b)).pntRight, h = (a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * M, i, b)).pntRight, y = (a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, S, h)).pntRight, f = a.pntLeft); var d = []; d.push(S), d.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d, { lineTypeLimit: !0 }); var v = []; v.push(y), v.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v, { lineTypeLimit: !0 }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol32300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31401 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31400), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t); var e = 0; e = Math.abs(t[1].x - t[0].x) < Math.abs(t[1].y - t[0].y) ? .1 * Math.abs(t[1].x - t[0].x) : .1 * Math.abs(t[1].y - t[0].y); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), o = new SuperMap.Geometry.Point(l.x - e, l.y - e), i = new SuperMap.Geometry.Point(l.x + e, l.y - 3 * e), n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [o, i], n, !0); var r = new SuperMap.Geometry.Point(l.x - e, l.y + e), a = new SuperMap.Geometry.Point(l.x - 3 * e, l.y + 3 * e); this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [r, a], n, !0); var s = new SuperMap.Geometry.Point(l.x + e, l.y + e), p = new SuperMap.Geometry.Point(l.x + 3 * e, l.y + 3 * e); this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [s, p], n, !0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31400 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, t); var e = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t), l = 0; l = Math.abs(t[1].x - t[0].x) < Math.abs(t[1].y - t[0].y) ? .1 * Math.abs(t[1].x - t[0].x) : .1 * Math.abs(t[1].y - t[0].y); var o = new SuperMap.Geometry.Point(e.x - l, e.y - l), i = new SuperMap.Geometry.Point(e.x + l, e.y + l); this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, [o, i], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31301 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol31300), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[0], t[1]), n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[1], t[0]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i.pntLeft, i.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [n.pntLeft, n.pntRight]); var r = [], a = 3 * o; r.push(t[0]), r.push(t[1]); for (var s = SuperMap.Plot.PlottingUtil.paraLine(r, a, !0), p = SuperMap.Plot.PlottingUtil.paraLine(r, a, !1), u = [], c = 0; c < s.length; c++)u.push(s[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, s[1], s[0]), S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, s[0], s[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P.pntLeft, P.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [S.pntLeft, S.pntRight]); for (var h = [], y = 0; y < p.length; y++)h.push(p[y]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, p[1], p[0]), g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, p[0], p[1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [f.pntLeft, f.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [g.pntLeft, g.pntRight]), this.addScalePoint(n.pntRight, 0), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol31301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol31300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[0], t[1]), n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[1], t[0]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i.pntLeft, i.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [n.pntLeft, n.pntRight]), this.addScalePoint(n.pntRight, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 === t) { var n = l[0], r = e, a = SuperMap.Plot.PlottingUtil.distance(r, n) / o; this.scaleValues[0] = a } } } }]), e }(); SuperMap.Plot.AlgoSymbol31300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.125), l.scaleValues.push(Math.PI / 2)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); t = SuperMap.Plot.PlottingUtil.clearSamePts(t); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); if (this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.125), this.scaleValues.push(Math.PI / 2)), 3 === this.scaleValues.length && this.scaleValues.push(this.getSubSymbolScaleValue()), !(t.length < this.minEditPts)) { for (var l = 0, o = 0; o < t.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(t[o], t[o + 1]); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / l; (i > .3 || i <= 0) && (i = .3), this.scaleValues[1] = i, this.scaleValues[3] = i } var n = this.scaleValues[1], r = 180 * this.scaleValues[2] / Math.PI, a = l * this.scaleValues[0], s = l * this.scaleValues[3], p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, a); if (-1 !== p.index) { var u = p.pt, c = e[p.index], P = e[p.index + 1], S = SuperMap.Plot.PlottingUtil.radian(c, P) * SuperMap.Plot.PlottingUtil.RTOD, h = SuperMap.Plot.PlottingUtil.circlePoint(u, s, s, S + r); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p.pt, h]); var y, f = SuperMap.Plot.PlottingUtil.radian(u, h) * SuperMap.Plot.PlottingUtil.RTOD, g = l * n; 0 < this.subSymbols.length && (y = SuperMap.Plot.PlottingUtil.circlePoint(u, s, s, S + r + 180), this.computeSubSymbol(this.subSymbols[0], y, .8 * g, S + r - 180), this.addScalePoint(SuperMap.Plot.PlottingUtil.circlePoint(y, .5 * g, .5 * g, S + r + 90), 1)), y = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 30); var b = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 33), M = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h, y, b]); M = SuperMap.Plot.PlottingUtil.clearSamePts(M); var m = SuperMap.Plot.PlottingUtil.polylineDistance(M), d = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.9 * m, M); if (-1 !== d.index) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M.slice(0, d.index)); var v = SuperMap.Plot.PlottingUtil.radian(h, y) * SuperMap.Plot.PlottingUtil.RTOD, O = new SuperMap.Geometry.Point(-.2 * s, .05 * s), U = new SuperMap.Geometry.Point(-.2 * s, -.05 * s), w = SuperMap.Plot.PlottingUtil.coordinateTrans(y, O, v + 17), L = SuperMap.Plot.PlottingUtil.coordinateTrans(y, U, v + 17), _ = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [y, w, L], _); var V = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 330), A = SuperMap.Plot.PlottingUtil.circlePoint(h, s, s, f + 327), T = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h, V, A]); T = SuperMap.Plot.PlottingUtil.clearSamePts(T), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T.slice(0, d.index)); var E = SuperMap.Plot.PlottingUtil.radian(h, V) * SuperMap.Plot.PlottingUtil.RTOD, x = SuperMap.Plot.PlottingUtil.coordinateTrans(V, O, E - 17), j = SuperMap.Plot.PlottingUtil.coordinateTrans(V, U, E - 17); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [V, x, j], _), this.addScalePoint(u, 0), this.addScalePoint(h, 2), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, r, a, s, p = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (p = SuperMap.Plot.PlottingUtil.clearSamePts(p), 0 === t) { for (var u = [], c = 0; c < p.length; c++)u.push(new SuperMap.Geometry.Point(p[c].x, p[c].y)); for (var P = -1, S = 0, h = new SuperMap.Geometry.Point(0, 0), y = 0; y < u.length - 1; y++) { var f = []; f.push(u[y]), f.push(u[y + 1]); var g = SuperMap.Plot.PlottingUtil.projectPoint(e, u[y], u[y + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(g, f).index) { var b = SuperMap.Plot.PlottingUtil.distance(e, g); -1 == P ? (P = y, h = g, S = b) : S > b && (P = y, h = g, S = b) } } if (-1 == P || P > u.length - 1) return; for (var M = 0, m = 0; m < P; m++)M += SuperMap.Plot.PlottingUtil.distance(p[m], p[m + 1]); if ((M += SuperMap.Plot.PlottingUtil.distance(p[P], h)) < 0 || M > o) return; var d = M / o; this.scaleValues[0] = d } else if (1 === t) { var v = SuperMap.Plot.PlottingUtil.findPointInPolyLine(p, o * this.scaleValues[0]); if (-1 === v.index) return; n = v.pt, r = p[v.index], a = p[v.index + 1], s = SuperMap.Plot.PlottingUtil.radian(r, a) * SuperMap.Plot.PlottingUtil.RTOD; var O = o * this.scaleValues[3], U = SuperMap.Plot.PlottingUtil.circlePoint(n, O, O, s + this.scaleValues[2] * SuperMap.Plot.PlottingUtil.RTOD + 180), w = SuperMap.Plot.PlottingUtil.distance(U, e) / o * 2; this.scaleValues[1] = w } else if (2 === t) { var L = o * this.scaleValues[0], _ = SuperMap.Plot.PlottingUtil.findPointInPolyLine(p, L); if (-1 === _.index) return; n = _.pt, r = p[_.index], a = p[_.index + 1], s = SuperMap.Plot.PlottingUtil.radian(r, a); var V = SuperMap.Plot.PlottingUtil.radian(n, e) - s; this.scaleValues[2] = V } } } }]), e }(); SuperMap.Plot.AlgoSymbol30800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30201 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30200), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(1e3), this.scaleValues.push(.2), this.scaleValues.push(.1)), 3 === this.scaleValues.length && this.scaleValues.push(.5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l), 0 == this.scaleValues.length ? (this.scaleValues.push(1e3), this.scaleValues.push(.2), this.scaleValues.push(.1), this.scaleValues.push(.05)) : 3 == this.scaleValues.length && (this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[1] = 2 * this.getSubSymbolScaleValue(), this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()); var o = e * this.scaleValues[1], i = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, o); if (-1 !== i.index) { var n = t[0], r = i.pt, a = SuperMap.Plot.PlottingUtil.radian(n, r) * SuperMap.Plot.PlottingUtil.RTOD, s = new SuperMap.Geometry.Point(0, .1 * o), p = new SuperMap.Geometry.Point(.4 * o, .1 * o), u = new SuperMap.Geometry.Point(.4 * o, -.1 * o), c = new SuperMap.Geometry.Point(0, -.1 * o), P = SuperMap.Plot.PlottingUtil.coordinateTrans(n, s, a), S = SuperMap.Plot.PlottingUtil.coordinateTrans(n, p, a), h = SuperMap.Plot.PlottingUtil.coordinateTrans(n, u, a), y = SuperMap.Plot.PlottingUtil.coordinateTrans(n, c, a), f = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, S, h, y, P], f); var g = new SuperMap.Geometry.Point(.3 * o, .1 * o), b = new SuperMap.Geometry.Point(.3 * o, -.1 * o), M = SuperMap.Plot.PlottingUtil.coordinateTrans(n, g, a), m = SuperMap.Plot.PlottingUtil.coordinateTrans(n, b, a); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [M, m]); var d = new SuperMap.Geometry.Point(.4 * o, 0), v = new SuperMap.Geometry.Point(.8 * o, 0), O = SuperMap.Plot.PlottingUtil.coordinateTrans(n, d, a), U = SuperMap.Plot.PlottingUtil.coordinateTrans(n, v, a); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [O, U]); var w = new SuperMap.Geometry.Point(.7 * o, .025 * o), L = new SuperMap.Geometry.Point(.7 * o, -.025 * o), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(n, w, a), V = SuperMap.Plot.PlottingUtil.coordinateTrans(n, L, a); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [U, _, V], f); var A = []; A.push(i.pt); for (var T = i.index + 1; T < l.length; T++)A.push(l[T]); this.addArrow(A, this.scaleValues[3]), this.components[this.components.length - 2].style.strokeDashstyle = "dash", this.components[this.components.length - 2].style.lineSymbolID = 1, this.components[this.components.length - 2].style.lineTypeLimit = !0; var E = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, a + 90); this.addScalePoint(E, 0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol30201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(1e3), l.scaleValues.push(.2), l.scaleValues.push(.1), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length ? (this.scaleValues.push(1e3), this.scaleValues.push(.2), this.scaleValues.push(.1), this.scaleValues.push(.05)) : 3 == this.scaleValues.length && (this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[1] = 2 * this.getSubSymbolScaleValue(), this.scaleValues[3] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = e * this.scaleValues[1], i = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, o); if (-1 !== i.index) { var n = t[0], r = i.pt, a = SuperMap.Plot.PlottingUtil.radian(n, r) * SuperMap.Plot.PlottingUtil.RTOD, s = new SuperMap.Geometry.Point(0, .1 * o), p = new SuperMap.Geometry.Point(.4 * o, .1 * o), u = new SuperMap.Geometry.Point(.4 * o, -.1 * o), c = new SuperMap.Geometry.Point(0, -.1 * o), P = SuperMap.Plot.PlottingUtil.coordinateTrans(n, s, a), S = SuperMap.Plot.PlottingUtil.coordinateTrans(n, p, a), h = SuperMap.Plot.PlottingUtil.coordinateTrans(n, u, a), y = SuperMap.Plot.PlottingUtil.coordinateTrans(n, c, a), f = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, S, h, y, P], f); var g = .1 * o, b = new SuperMap.Geometry.Point(.3 * o, 0), M = SuperMap.Plot.PlottingUtil.circlePoint(b, g, g, 135), m = SuperMap.Plot.PlottingUtil.circlePoint(b, g, g, 225), d = SuperMap.Plot.PlottingUtil.coordinateTrans(n, b, a), v = SuperMap.Plot.PlottingUtil.coordinateTrans(n, M, a), O = SuperMap.Plot.PlottingUtil.coordinateTrans(n, m, a); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [v, d, O]); var U = new SuperMap.Geometry.Point(.9 * o, 0), w = SuperMap.Plot.PlottingUtil.coordinateTrans(n, U, a); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [d, w]); var L = new SuperMap.Geometry.Point(.8 * o, .025 * o), _ = new SuperMap.Geometry.Point(.8 * o, -.025 * o), V = SuperMap.Plot.PlottingUtil.coordinateTrans(n, L, a), A = SuperMap.Plot.PlottingUtil.coordinateTrans(n, _, a); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [w, V, A], f); var T = []; T.push(i.pt); for (var E = i.index + 1; E < l.length; E++)T.push(l[E]); this.addArrow(T, this.scaleValues[3]), this.components[this.components.length - 2].style.strokeDashstyle = "dash", this.components[this.components.length - 2].style.lineSymbolID = 1, this.components[this.components.length - 2].style.lineTypeLimit = !0; var x = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, a + 90); this.addScalePoint(x, 0), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n = l[0], r = e, a = SuperMap.Plot.PlottingUtil.distance(r, n); if (0 === t) { var s = a / o; if (.06 > s || .3 < s) return; this.scaleValues[1] = s } } } }]), e }(); SuperMap.Plot.AlgoSymbol30200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.069485), l.scaleValues.push(.15), l.scaleValues.push(.1), l.scaleValues.push(1.731025), l.scaleValues.push(2.076877)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.isEdit || (this.scaleValues[2] = this.getSubSymbolScaleValue()); var i = e * this.scaleValues[0], n = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD, r = e * this.scaleValues[2], a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== a.index) { var s = a.pt, p = a.index, u = s, c = o[p], P = o[p + 1], S = SuperMap.Plot.PlottingUtil.radian(c, P) * SuperMap.Plot.PlottingUtil.RTOD, h = SuperMap.Plot.PlottingUtil.circlePoint(u, 1.5 * r, 1.5 * r, S + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, h]); var y = SuperMap.Plot.PlottingUtil.radian(u, h) * SuperMap.Plot.PlottingUtil.RTOD, f = new SuperMap.Geometry.Point(-.2 * r, .05 * r), g = new SuperMap.Geometry.Point(-.2 * r, -.05 * r), b = SuperMap.Plot.PlottingUtil.coordinateTrans(h, f, y), M = SuperMap.Plot.PlottingUtil.coordinateTrans(h, g, y); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [h, b, M], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var m = new SuperMap.Geometry.Point(.6 * r, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(u, m, y), v = .4 * r * this.scaleValues[5], O = .4 * r * this.scaleValues[6], U = new SuperMap.Geometry.Point(0, -.9 * (v - .25 * O)), w = new SuperMap.Geometry.Point(0, .9 * (v - .25 * O)), L = SuperMap.Plot.PlottingUtil.coordinateTrans(d, U, y), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(d, w, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [L, _]); var V = new SuperMap.Geometry.Point(0, v), A = SuperMap.Plot.PlottingUtil.coordinateTrans(d, V, y), T = new SuperMap.Geometry.Point(0, .25 * O), E = new SuperMap.Geometry.Point(.5 * O, 0), x = new SuperMap.Geometry.Point(0, -.25 * O), j = new SuperMap.Geometry.Point(-.5 * O, 0), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(A, T, y), C = SuperMap.Plot.PlottingUtil.coordinateTrans(A, E, y), I = SuperMap.Plot.PlottingUtil.coordinateTrans(A, x, y), B = SuperMap.Plot.PlottingUtil.coordinateTrans(A, j, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [Y, C, I, B, Y]); var R = new SuperMap.Geometry.Point(0, -v), G = SuperMap.Plot.PlottingUtil.coordinateTrans(d, R, y), N = SuperMap.Plot.PlottingUtil.coordinateTrans(G, T, y), D = SuperMap.Plot.PlottingUtil.coordinateTrans(G, E, y), k = SuperMap.Plot.PlottingUtil.coordinateTrans(G, x, y), z = SuperMap.Plot.PlottingUtil.coordinateTrans(G, j, y); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [N, D, k, z, N]), this.addScalePoint(s, 0), this.addScalePoint(h, 1); var F = new SuperMap.Geometry.Point(0, -v), K = SuperMap.Plot.PlottingUtil.coordinateTrans(d, F, y); this.addScalePoint(K, 2), this.addScalePoint(B, 3), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, r, a, s, p, u, c, P, S, h = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (h = SuperMap.Plot.PlottingUtil.clearSamePts(h), 0 === t) { for (var y = [], f = 0; f < h.length; f++)y.push(new SuperMap.Geometry.Point(h[f].x, h[f].y)); for (var g = -1, b = 0, M = new SuperMap.Geometry.Point(0, 0), m = 0; m < y.length - 1; m++) { var d = []; d.push(y[m]), d.push(y[m + 1]); var v = SuperMap.Plot.PlottingUtil.projectPoint(e, y[m], y[m + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(v, d).index) { var O = SuperMap.Plot.PlottingUtil.distance(e, v); -1 == g ? (g = m, M = v, b = O) : b > O && (g = m, M = v, b = O) } } if (-1 == g || g > y.length - 1) return; n = 0; for (var U = 0; U < g; U++)n += SuperMap.Plot.PlottingUtil.distance(h[U], h[U + 1]); if ((n += SuperMap.Plot.PlottingUtil.distance(h[g], M)) < 0 || n > o) return; var w = n / o; this.scaleValues[0] = w } else if (1 === t) { r = o * this.scaleValues[0]; var L = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, r); if (-1 === L.index) return; a = L.pt, s = h[L.index], p = h[L.index + 1], u = SuperMap.Plot.PlottingUtil.radian(s, p); var _ = (S = SuperMap.Plot.PlottingUtil.radian(a, e)) - u; this.scaleValues[1] = _; var V = (n = SuperMap.Plot.PlottingUtil.distance(a, e)) / o / 1.5; this.scaleValues[2] = V } else if (2 === t) { if (r = o * this.scaleValues[0], c = 180 * this.scaleValues[1] / Math.PI, n = o * this.scaleValues[2], -1 === (a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, r)).index) return; P = a.pt, s = h[a.index], p = h[a.index + 1], u = 180 * SuperMap.Plot.PlottingUtil.radian(s, p) / Math.PI; var A = SuperMap.Plot.PlottingUtil.circlePoint(P, .4 * n, .4 * n, u + c), T = SuperMap.Plot.PlottingUtil.distance(e, A) / (.4 * n); this.scaleValues[5] = T } else if (3 === t) { if (r = o * this.scaleValues[0], c = 180 * this.scaleValues[1] / Math.PI, n = o * this.scaleValues[2], -1 === (a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(h, r)).index) return; P = a.pt, s = h[a.index], p = h[a.index + 1], S = (u = 180 * SuperMap.Plot.PlottingUtil.radian(s, p) / Math.PI) + c; var E = new SuperMap.Geometry.Point(.6 * n, 0), x = SuperMap.Plot.PlottingUtil.coordinateTrans(P, E, S), j = .4 * n * this.scaleValues[5], Y = new SuperMap.Geometry.Point(0, j), C = SuperMap.Plot.PlottingUtil.coordinateTrans(x, Y, S), I = 2 * SuperMap.Plot.PlottingUtil.distance(C, e) / (.4 * n); this.scaleValues[6] = I } } } }]), e }(); SuperMap.Plot.AlgoSymbol30100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30002 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol30001), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getSubSymbolScaleValue(); this.scaleValues[2] = o, this.scaleValues[4] = o } var i = l * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI, r = l * this.scaleValues[2], a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, i); if (-1 !== a.index) { var s = a.pt, p = new SuperMap.Geometry.Point(e[a.index].x, e[a.index].y), u = new SuperMap.Geometry.Point(e[a.index + 1].x, e[a.index + 1].y), c = 180 * SuperMap.Plot.PlottingUtil.radian(p, u) / Math.PI, P = SuperMap.Plot.PlottingUtil.circlePoint(s, r, r, c + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, P]); var S = 180 * SuperMap.Plot.PlottingUtil.radian(s, P) / Math.PI, h = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * r, .2 * r, S - 157.5), y = SuperMap.Plot.PlottingUtil.circlePoint(P, .2 * r, .2 * r, S + 157.5); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [P, h, y], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); for (var f = 4.5 * (l * this.scaleValues[4]) * Math.sin(Math.PI / 8), g = this.getLeftSubSymbolPts(f), b = e[0].clone(), M = -1, m = null, d = 1; d < e.length; d++)if (SuperMap.Plot.PlottingUtil.distance(b, e[d]) > .5 * f) { M = d - 1, m = SuperMap.Plot.PlottingUtil.linePnt(b, e[d], .5 * f); break } -1 === M && (M = e.length - 1, m = e[e.length - 1]); var v = null; if (null !== m) { for (var O = 180 * SuperMap.Plot.PlottingUtil.radian(b, m) / Math.PI, U = [], w = 0; w < g.length; w++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(b, g[w], O)); v = U[3].clone(), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U) } for (var L = this.getRightSubSymbolPts(f), _ = e[e.length - 1].clone(), V = -1, A = null, T = e.length - 2; T >= 0; T--)if (SuperMap.Plot.PlottingUtil.distance(_, e[T]) > .5 * f) { V = T, A = SuperMap.Plot.PlottingUtil.linePnt(_, e[T], .5 * f); break } if (-1 === V && (V = 0, A = e[0]), null !== A) { for (var E = 180 * SuperMap.Plot.PlottingUtil.radian(_, A) / Math.PI, x = [], j = 0; j < L.length; j++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(_, L[j], E)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, x) } if (M <= V) { var Y = []; Y.push(m); for (var C = M + 1; C <= V; C++)Y.push(e[C]); Y.push(A), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, Y) } this.addScalePoint(s), this.addScalePoint(P), null !== v && this.addScalePoint(v), this.finish() } } } }, { key: "getRightSubSymbolPts", value: function (t) { var e = .25 * t, l = []; return l.push(new SuperMap.Geometry.Point(0, 2 * e)), l.push(new SuperMap.Geometry.Point(2 * e, 2 * e)), l.push(new SuperMap.Geometry.Point(2 * e, -e)), l.push(new SuperMap.Geometry.Point(0, -2 * e)), l.push(new SuperMap.Geometry.Point(0, 2 * e)), l } }]), e }(); SuperMap.Plot.AlgoSymbol30002 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol30000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(Math.PI / 2), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); var i = e * this.scaleValues[0], n = 180 * this.scaleValues[1] / Math.PI; if (!this.isEdit) { var r = this.getSubSymbolScaleValue(); this.scaleValues[2] = r } var a = e * this.scaleValues[2], s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, i); if (-1 !== s.index) { var p = s.pt, u = new SuperMap.Geometry.Point(o[s.index].x, o[s.index].y), c = new SuperMap.Geometry.Point(o[s.index + 1].x, o[s.index + 1].y), P = 180 * SuperMap.Plot.PlottingUtil.radian(u, c) / Math.PI, S = SuperMap.Plot.PlottingUtil.circlePoint(p, a, a, P + n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p, S]); var h = 180 * SuperMap.Plot.PlottingUtil.radian(p, S) / Math.PI, y = new SuperMap.Geometry.Point(-.2 * a, .05 * a), f = new SuperMap.Geometry.Point(-.2 * a, -.05 * a), g = SuperMap.Plot.PlottingUtil.coordinateTrans(S, y, h), b = SuperMap.Plot.PlottingUtil.coordinateTrans(S, f, h); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [S, g, b], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }), this.addScalePoint(p, 0), this.addScalePoint(S, 1), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var r = -1, a = 0, s = new SuperMap.Geometry.Point(0, 0), p = 0; p < o.length - 1; p++) { var u = []; u.push(o[p]), u.push(o[p + 1]); var c = SuperMap.Plot.PlottingUtil.projectPoint(e, o[p], o[p + 1]); if (-1 !== SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c, u).index) { var P = SuperMap.Plot.PlottingUtil.distance(e, c); -1 == r ? (r = p, s = c, a = P) : a > P && (r = p, s = c, a = P) } } if (-1 == r || r > o.length - 1) return; i = 0; for (var S = 0; S < r; S++)i += SuperMap.Plot.PlottingUtil.distance(o[S], o[S + 1]); if ((i += SuperMap.Plot.PlottingUtil.distance(o[r], s)) < 0 || i > n) return; var h = i / n; this.scaleValues[0] = h } else if (1 === t) { var y = n * this.scaleValues[0], f = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, y); if (-1 === f.index) return; var g = f.pt, b = o[f.index], M = o[f.index + 1], m = SuperMap.Plot.PlottingUtil.radian(b, M), d = SuperMap.Plot.PlottingUtil.radian(g, e) - m; this.scaleValues[1] = d; var v = (i = SuperMap.Plot.PlottingUtil.distance(g, e)) / n; this.scaleValues[2] = v } } } }]), e }(); SuperMap.Plot.AlgoSymbol30000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 10 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.2), l.scaleValues.push(.2), l.scaleValues.push(.4), l.scaleValues.push(.4), l.scaleValues.push(.1), l.scaleValues.push(.2), l.scaleValues.push(.1), l.scaleValues.push(.2), l.scaleValues.push(1), l.scaleValues.push(1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var o, i = e * this.scaleValues[4], n = e * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.distance(t[1], t[0]), a = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], r + n); o = (this.scaleValues[8], SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[1], a)); var s, p = e * this.scaleValues[6], u = e * this.scaleValues[7], c = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], r + u); s = (this.scaleValues[9], SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, t[0], c)); var P = []; P.push(new SuperMap.Geometry.Point(o.pntLeft.x, o.pntLeft.y)), P.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), P.push(new SuperMap.Geometry.Point(t[1].x, t[1].y)), P.push(new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)); var S = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(P); S = SuperMap.Plot.PlottingUtil.clearSamePts(S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), this.addScalePoint(o.pntLeft, 3), this.addScalePoint(s.pntRight, 4), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.projectPoint(e, l[0], l[1]); if (t <= 2 && SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments), 3 === t) { var n = SuperMap.Plot.PlottingUtil.distance(e, i) / o, r = SuperMap.Plot.PlottingUtil.distance(i, l[0]) / o; this.scaleValues[4] = n, this.scaleValues[5] = r, SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e) ? this.scaleValues[8] = 1 : this.scaleValues[8] = 0 } if (4 === t) { var a = SuperMap.Plot.PlottingUtil.distance(e, i) / o, s = SuperMap.Plot.PlottingUtil.distance(i, l[1]) / o; this.scaleValues[6] = a, this.scaleValues[7] = s, SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0], l[1], e) ? this.scaleValues[9] = 1 : this.scaleValues[9] = 0 } } } }]), e }(); SuperMap.Plot.AlgoSymbol29800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.3), l.scaleValues.push(1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.3), this.scaleValues.push(1)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var e, l, o = t[0].clone(), i = t[1].clone(), n = SuperMap.Plot.PlottingUtil.distance(o, i), r = this.scaleValues[0], a = this.scaleValues[1]; if (SuperMap.Plot.PlottingUtil.equalFuzzy(1, a)) e = SuperMap.Plot.PlottingUtil.radian(o, i) + 270 * SuperMap.Plot.PlottingUtil.DTOR; else e = SuperMap.Plot.PlottingUtil.radian(o, i) + 90 * SuperMap.Plot.PlottingUtil.DTOR, l = o, o = i, i = l; var s = n * r * .67, p = SuperMap.Plot.PlottingUtil.circlePoint(o, s, s, e * SuperMap.Plot.PlottingUtil.RTOD); this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], p, n * r, e * SuperMap.Plot.PlottingUtil.RTOD); var u = SuperMap.Plot.PlottingUtil.circlePoint(i, s, s, e * SuperMap.Plot.PlottingUtil.RTOD); this.subSymbols.length > 1 && this.computeSubSymbol(this.subSymbols[1], u, n * r, e * SuperMap.Plot.PlottingUtil.RTOD), this.scalePoints = []; var c = e * SuperMap.Plot.PlottingUtil.RTOD, P = n * r, S = t[0].clone(), h = SuperMap.Plot.PlottingUtil.circlePoint(S, P, P, c); this.addScalePoint(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = (l = SuperMap.Plot.PlottingUtil.clearSamePts(l))[0].clone(), i = l[1].clone(), n = e.clone(), r = SuperMap.Plot.PlottingUtil.distance(o, i), a = SuperMap.Plot.PlottingUtil.plumbLineLen(n, o, i) / r; if (a < 0 || SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) return; this.scaleValues[0] = a, SuperMap.Plot.PlottingUtil.pointIsRightToLine(o, i, n) ? this.scaleValues[1] = 1 : this.scaleValues[1] = 0 } } }]), e }(); SuperMap.Plot.AlgoSymbol28301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue()); var i = l * this.scaleValues[0]; this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], o, i, 0), this.scalePoints = []; var n = SuperMap.Plot.PlottingUtil.circlePoint(o, i, i, 0); this.addScalePoint(n), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = []; o = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o); if (0 == t) { var r = SuperMap.Plot.PlottingUtil.distance(e, n) / i; this.scaleValues[0] = r } } } }]), e }(); SuperMap.Plot.AlgoSymbol28300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28200 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol28200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(.349066)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[1].x, t[1].y), o = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, i = 0, n = 0; n < t.length - 1; n++)i += SuperMap.Plot.PlottingUtil.distance(e, l); var r = this.scaleValues[0] * i; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [e, new SuperMap.Geometry.Point(e.x + r, e.y)], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var a = 180 * this.scaleValues[1] / Math.PI, s = SuperMap.Plot.PlottingUtil.circlePoint(e, i, i, o - a), p = SuperMap.Plot.PlottingUtil.circlePoint(e, i, i, o + a); this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL, [s, l, p], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[0], t[1]], { surroundLineFlag: !1 }, !0); var u = SuperMap.Plot.PlottingUtil.circlePoint(e, r, r, o - 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, s], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); var c = SuperMap.Plot.PlottingUtil.circlePoint(e, r, r, o + 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c, p], { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c], { surroundLineFlag: !1 }, !0); var P = SuperMap.Plot.PlottingUtil.circlePoint(e, r, r, o + 180); this.addScalePoint(new SuperMap.Geometry.Point(P.x, P.y), 0), this.addScalePoint(p, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = new SuperMap.Geometry.Point(l[0].x, l[0].y), i = new SuperMap.Geometry.Point(l[1].x, l[1].y), n = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, r = SuperMap.Plot.PlottingUtil.distance(o, i); if (0 === t) { var a = SuperMap.Plot.PlottingUtil.distance(o, e) / r; this.scaleValues[0] = a } if (1 === t) { var s = 180 * SuperMap.Plot.PlottingUtil.radian(o, e) / Math.PI, p = Math.abs(s - n); if (p > 270 && p < 360 && (p = 360 - p), p > 90) return; this.scaleValues[1] = p * Math.PI / 180 } } } }]), e }(); SuperMap.Plot.AlgoSymbol28100 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.349066)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l, o, i, n, r, a, s = this.scaleValues[1] * SuperMap.Plot.PlottingUtil.RTOD, p = new SuperMap.Geometry.Point(t[0].x, t[0].y), u = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), c = SuperMap.Plot.PlottingUtil.radian(p, u) * SuperMap.Plot.PlottingUtil.RTOD, P = new SuperMap.Geometry.Point(0, 0); if (2 <= t.length) { for (e = [], l = new SuperMap.Geometry.Point(t[1].x, t[1].y), o = SuperMap.Plot.PlottingUtil.distance(p, l), i = 0, i = c - s; i < c + s; i += 3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i)); SuperMap.Plot.PlottingUtil.equalFuzzy(i, c + s) && (i = c + s, e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i))), (n = []).push(t[0]); for (var S = 0; S < e.length; S++)n.push(new SuperMap.Geometry.Point(e[S].x, e[S].y)); n.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), r = SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, c), P = new SuperMap.Geometry.Point(r.x, r.y), (a = []).push(t[0]), a.push(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }) } var h = new SuperMap.Geometry.Point(0, 0); if (3 <= t.length) { for (e = [], l = new SuperMap.Geometry.Point(t[2].x, t[2].y), o = SuperMap.Plot.PlottingUtil.distance(p, l), i = 0, i = c - s; i < c + s; i += 3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i)); SuperMap.Plot.PlottingUtil.equalFuzzy(i, c + s) && (i = c + s, e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i))); var y = []; if (0 == e.length) return void (y.length > 0 && (y = [])); (n = []).push(t[0]); for (var f = 0; f < e.length; f++)n.push(new SuperMap.Geometry.Point(e[f].x, e[f].y)); n.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }); for (var g = new SuperMap.Geometry.Point(t[1].x, t[1].y), b = SuperMap.Plot.PlottingUtil.distance(p, g) * this.scaleValues[0], M = [], m = 90; m <= 270; m += 3)M.push(SuperMap.Plot.PlottingUtil.circlePoint(p, b, b, c + m)); n = []; for (var d = M.length - 1; d >= 0; d--)n.push(new SuperMap.Geometry.Point(M[d].x, M[d].y)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), (n = []).push(new SuperMap.Geometry.Point(M[0].x, M[0].y)), n.push(new SuperMap.Geometry.Point(e[e.length - 1].x, e[e.length - 1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), (n = []).push(new SuperMap.Geometry.Point(e[0].x, e[0].y)), n.push(new SuperMap.Geometry.Point(M[M.length - 1].x, M[M.length - 1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), r = SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, c), h = new SuperMap.Geometry.Point(r.x, r.y), (a = []).push(P), a.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }) } var v = new SuperMap.Geometry.Point(0, 0); if (4 <= t.length) { for (e = [], l = new SuperMap.Geometry.Point(t[3].x, t[3].y), o = SuperMap.Plot.PlottingUtil.distance(p, l), i = 0, i = c - s; i <= c + s; i += 3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i)); SuperMap.Plot.PlottingUtil.equalFuzzy(i, c + s) && (i = c + s, e.push(SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, i))), (n = []).push(t[0]); for (var O = 0; O < e.length; O++)n.push(new SuperMap.Geometry.Point(e[O].x, e[O].y)); n.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }), r = SuperMap.Plot.PlottingUtil.circlePoint(p, o, o, c), v = new SuperMap.Geometry.Point(r.x, r.y), (a = []).push(h), a.push(v), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a, { surroundLineFlag: !1, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.INNER }) } if (3 > t.length) this.addScalePoint(t[0]); else { var U = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) * this.scaleValues[0], w = SuperMap.Plot.PlottingUtil.circlePoint(p, U, U, c + 180); this.addScalePoint(w, 0) } var L = SuperMap.Plot.PlottingUtil.distance(t[0], t[t.length - 1]), _ = SuperMap.Plot.PlottingUtil.circlePoint(p, L, L, c + s); this.addScalePoint(_, 1), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l, o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (o = SuperMap.Plot.PlottingUtil.clearSamePts(o), 0 == t) { if (3 > o.length) return; var i = new SuperMap.Geometry.Point(o[0].x, o[0].y), n = new SuperMap.Geometry.Point(e.x, e.y), r = SuperMap.Plot.PlottingUtil.distance(i, n), a = new SuperMap.Geometry.Point(o[1].x, o[1].y); if ((l = r / SuperMap.Plot.PlottingUtil.distance(i, a)) >= 2.5) return; this.scaleValues[0] = l } else if (1 == t) { var s = new SuperMap.Geometry.Point(o[0].x, o[0].y), p = new SuperMap.Geometry.Point(o[o.length - 1].x, o[o.length - 1].y), u = SuperMap.Plot.PlottingUtil.radian(s, p), c = new SuperMap.Geometry.Point(e.x, e.y); if (l = SuperMap.Plot.PlottingUtil.radian(s, c) - u, (l = Math.abs(l)) > Math.PI / 2 && l < 3 * Math.PI / 2) return; l > 3 * Math.PI / 2 && l <= 2 * Math.PI && (l = 2 * Math.PI - l), this.scaleValues[1] = Math.abs(l) } } } }]), e }(); SuperMap.Plot.AlgoSymbol28000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26601 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); for (var l, o, i = SuperMap.Plot.PlottingUtil.polylineDistance(e), n = .1 * i, r = .5 * n, a = this.computeDashLine(n, r, e), s = .01 * i, p = 0; p < a.length; p++)l = SuperMap.Plot.PlottingUtil.paraLine(a[p], s, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l), o = SuperMap.Plot.PlottingUtil.paraLine(a[p], s, !1), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); this.finish() } } }, { key: "computeDashLine", value: function (t, e, l) { for (var o, i, n = [], r = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = l[0].clone(), s = 1, p = 0, u = !0, c = !0; p < r;) { var P; (i = []).push(a), p += t; var S = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, l); if (P = S.index, o = S.pts, !(u = S.bfind)) break; if (s < P) for (var h = s; h < P; h++)i.push(l[h]); i.push(o), n.push(i), p += e; var y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p, l); if (P = y.index, a = y.pts, s = P + 1, !(c = y.bfind)) break } if (!u) { (i = []).push(a); for (var f = s; f < l.length; f++)i.push(l[f]); 2 === i.length && 0 === SuperMap.Plot.PlottingUtil.distance(i[0], i[1]) || n.push(i) } if (!c) { var g = l[l.length - 1], b = SuperMap.Plot.PlottingUtil.distance(o, g); if (b *= .01, !SuperMap.Plot.PlottingUtil.equalFuzzy(b, 0)) { var M = SuperMap.Plot.PlottingUtil.linePnt(g, o, b); (i = []).push(M), i.push(g), n.push(i) } } return n } }]), e }(); SuperMap.Plot.AlgoSymbol26601 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26600 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = .1 * SuperMap.Plot.PlottingUtil.polylineDistance(e), o = .5 * l; this.computeDashLine(l, o, e), this.finish() } } }, { key: "computeDashLine", value: function (t, e, l) { for (var o, i, n = SuperMap.Plot.PlottingUtil.polylineDistance(l), r = l[0].clone(), a = 1, s = 0, p = !0, u = !0; s < n;) { var c; (i = []).push(r), s += t; var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, l); if (c = P.index, o = P.pts, !(p = P.bfind)) break; if (a < c) for (var S = a; S < c; S++)i.push(l[S]); i.push(o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), s += e; var h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, l); if (c = h.index, r = h.pts, a = c + 1, !(u = h.bfind)) break } if (!p) { (i = []).push(r); for (var y = a; y < l.length; y++)i.push(l[y]); 2 === i.length && 0 === SuperMap.Plot.PlottingUtil.distance(i[0], i[1]) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } if (!u) { var f = l[l.length - 1], g = SuperMap.Plot.PlottingUtil.distance(o, f); if (g *= .01, !SuperMap.Plot.PlottingUtil.equalFuzzy(g, 0)) { var b = SuperMap.Plot.PlottingUtil.linePnt(f, o, g); (i = []).push(b), i.push(f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } } } }]), e }(); SuperMap.Plot.AlgoSymbol26600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, l / 2); if (-1 !== o.index) { var i = o.pt, n = this.getDefaultSubSymbolSize() / l; (n > .3 || n <= 0) && (n = .3), this.scaleValues[0] = n; var r = 1.5 * this.scaleValues[0] * l, a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, e[o.index], i), s = []; s.push(a.pntLeft), s.push(i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s, null, !0), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol26500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (!this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)); for (var i = this.getLinePts(e, this.scaleValues[0]), n = this.getLinePts(e, 1.2 * this.scaleValues[0]), r = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt), a = [], s = [], p = 0; p <= n.startIndex; p++)a.push(e[p]); if (a.push(n.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a), n.endIndex <= e.length) { s.push(n.endPt); for (var u = n.endIndex + 1; u <= e.length - 1; u++)s.push(e[u]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } var c = e[0], P = e[1], S = e[e.length - 2], h = e[e.length - 1], y = .3 * r, f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y, P, c), g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y, S, h), b = f.pntLeft, M = g.pntLeft, m = []; m.push(c), m.push(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); var d = []; d.push(h), d.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, O = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), U = new SuperMap.Geometry.Point(.1 * r, 0), w = new SuperMap.Geometry.Point(.5 * r, 0), L = SuperMap.Plot.PlottingUtil.coordinateTrans(O, U, v), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(O, w, v), V = []; V.push(L), V.push(_); var A = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, A); var T = new SuperMap.Geometry.Point(.35 * r, 0), E = SuperMap.Plot.PlottingUtil.circlePoint(T, .2 * r, .2 * r, 135), x = SuperMap.Plot.PlottingUtil.circlePoint(T, .2 * r, .2 * r, 225), j = SuperMap.Plot.PlottingUtil.coordinateTrans(O, T, v), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(O, E, v), C = SuperMap.Plot.PlottingUtil.coordinateTrans(O, x, v); (V = []).push(Y), V.push(j), V.push(C), A = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }, this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, A); var I = new SuperMap.Geometry.Point(-.1 * r, 0), B = new SuperMap.Geometry.Point(-.5 * r, -.15 * r), R = new SuperMap.Geometry.Point(-.5 * r, .15 * r), G = SuperMap.Plot.PlottingUtil.coordinateTrans(O, I, v), N = SuperMap.Plot.PlottingUtil.coordinateTrans(O, B, v), D = SuperMap.Plot.PlottingUtil.coordinateTrans(O, R, v); (V = []).push(G), V.push(N), V.push(D), V.push(G), A = { surroundLineFlag: !1, lineTypeLimit: !0, fillLimit: !0 }, this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, A); var k = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), z = SuperMap.Plot.PlottingUtil.circlePoint(k.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, v); this.addScalePoint(z, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol25400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.222222), l.scaleValues.push(.5), l.scaleValues.push(.5), l.scaleValues.push(.5)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.222222), this.scaleValues.push(.5), this.scaleValues.push(.5), this.scaleValues.push(.5)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), r = new SuperMap.Geometry.Point(0, o * i), a = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * a), u = new SuperMap.Geometry.Point(o * (1 - s), o * a), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l), g = []; g.push(n), g.push(p), g.push(S), g.push(y), g.push(h), g.push(u), g.push(r); for (var b = [], M = 0; M < g.length; M++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[M], f * SuperMap.Plot.PlottingUtil.RTOD); b.push(m) } for (var d = [], v = b.length - 1; v >= 0; --v)d.push(b[v]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d), this.scalePoints = []; var O = b[0].clone(); O.isScalePoint = !0, O.tag = 0, this.scalePoints.push(O); var U = b[1].clone(); U.isScalePoint = !0, U.tag = 1, this.scalePoints.push(U); var w = b[2].clone(); w.isScalePoint = !0, w.tag = 2, this.scalePoints.push(w), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), r = l[1].clone(), a = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(a, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(a, n, r); var p = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(a, n, r); var c = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol25000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 6 !== l.scaleValues.length && (l.scaleValues = [], l.scaleValues.push(.05), l.scaleValues.push(.148), l.scaleValues.push(.4), l.scaleValues.push(.312), l.scaleValues.push(.2), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments); var e = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (t.splice(0, 2), t.unshift(e), this.subSymbols.length > 0) { var l; if (null == this.subSymbols[0].symbolData) return; l = Math.max(this.subSymbols[0].symbolData.symbolSize.x, this.subSymbols[0].symbolData.symbolSize.y); var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * this.scaleValues[4], n = o * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, t), a = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, t), s = SuperMap.Plot.PlottingUtil.radian(a.pts, r.pts) * SuperMap.Plot.PlottingUtil.RTOD + 270, p = 100 * SuperMap.Plot.PlottingUtil.distance(r.pts, a.pts) / l, u = new SuperMap.Geometry.Point((a.pts.x + r.pts.x) / 2, (r.pts.y + a.pts.y) / 2); if (null == this.subSymbols.length) return; null != this.subSymbols[0].code && this.computeSubSymbol(this.subSymbols[0], u, p, s), r.pts.isScalePoint = !0, r.pts.tag = this.scalePoints.length, this.scalePoints.push(r.pts.clone()), a.pts.isScalePoint = !0, a.pts.tag = this.scalePoints.length, this.scalePoints.push(a.pts.clone()) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < 2) return; if (this.scaleValues.length < 6 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2), this.scaleValues.push(.01)), t <= 2) SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this, arguments); else if (3 == t || 4 == t) { var o = new SuperMap.Geometry.Point((l[0].x + l[1].x) / 2, (l[0].y + l[1].y) / 2), i = SuperMap.Plot.PlottingUtil.clonePoints(l); i.splice(0, 2), i.unshift(o); var n = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i), r = SuperMap.Plot.PlottingUtil.polylineDistance(i); if (3 === t && null == n.pt && (n.pt = o.clone()), -1 == n.index && 4 == t) this.scaleValues[t + 1] = .01; else { var a = SuperMap.Plot.PlottingUtil.clonePoints(i); a.splice(0, n.index + 1), a.unshift(n.pt); var s = SuperMap.Plot.PlottingUtil.polylineDistance(a); r < s && (s = r), this.scaleValues[t + 1] = (r - s) / r, this.scaleValues[4] > .5 && (this.scaleValues[4] = .5) } } } } }]), e }(); SuperMap.Plot.AlgoSymbol25200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29103 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol29100), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = []; o = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o); for (var i = 0; i < 4; i++) { var n = i * (o.length - 1) / 4, r = new SuperMap.Geometry.Point(o[n].x, o[n].y), a = new SuperMap.Geometry.Point(o[n + 1].x, o[n + 1].y), s = new SuperMap.Geometry.Point((r.x + a.x) / 2, (r.y + a.y) / 2), p = 180 * SuperMap.Plot.PlottingUtil.radian(s, a) / Math.PI, u = e * this.scaleValues[0] / 2, c = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p), P = SuperMap.Plot.PlottingUtil.circlePoint(s, 4 * u, 4 * u, p + 270), S = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 180); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [c, P, S], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29103 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29101 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol29100), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .25 * this.getSubSymbolScaleValue()); var l = []; l = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l); for (var o = 0; o < 4; o++) { var i = o * (l.length - 1) / 4, n = new SuperMap.Geometry.Point(l[i].x, l[i].y), r = new SuperMap.Geometry.Point(l[i + 1].x, l[i + 1].y), a = new SuperMap.Geometry.Point((n.x + r.x) / 2, (n.y + r.y) / 2), s = SuperMap.Plot.PlottingUtil.radian(a, r) * SuperMap.Plot.PlottingUtil.RTOD, p = this.scaleValues[0] * e / 2, u = SuperMap.Plot.PlottingUtil.circlePoint(a, p, p, s), c = SuperMap.Plot.PlottingUtil.circlePoint(a, 4 * p, 4 * p, s + 270), P = SuperMap.Plot.PlottingUtil.circlePoint(a, p, p, s + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c, P]) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29101 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol29000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = t.length, o = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), i = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) * SuperMap.Plot.PlottingUtil.RTOD, n = []; 2 == l ? (e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t), n.push.apply(n, e)) : 3 == l && (e = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), n = n.concat(e)); var r, a = new SuperMap.Geometry.Point(.8 * o, .1 * o), s = new SuperMap.Geometry.Point(1.2 * o, .1 * o), p = new SuperMap.Geometry.Point(1.2 * o, .1 * -o), u = new SuperMap.Geometry.Point(.9 * o, .1 * -o), c = []; c.push(a), c.push(s), c.push(p), c.push(u); var P = [], S = 0; for (S = 0; S < 4; S++)r = SuperMap.Plot.PlottingUtil.coordinateTrans(t[0], c[S], i), P.push(r); var h = new SuperMap.Geometry.Point(-.8 * o, .1 * o), y = new SuperMap.Geometry.Point(-1.2 * o, .1 * o), f = new SuperMap.Geometry.Point(-1.1 * o, .1 * -o), g = new SuperMap.Geometry.Point(-.8 * o, .1 * -o); (c = []).push(h), c.push(y), c.push(f), c.push(g); var b = []; for (S = 0; S < 4; S++)r = SuperMap.Plot.PlottingUtil.coordinateTrans(t[0], c[S], i), b.push(r); var M, m = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], 3 * o), d = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], 2 * o), v = []; for (S = 0; S < n.length - 1; S++) { var O = SuperMap.Plot.PlottingUtil.intersectLines(n[S], n[S + 1], m, d); O.isIntersectLines && (M = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(O.intersectPoint, n)).isOnPolyLine && v.push(O.intersectPoint) } if (!(0 >= v.length) && (M = SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(v[0], n)).isOnPolyLine) { var U = []; for (S = M.index + 1; S < n.length; S++)U.push(n[S]); for (S = 0; S <= M.index; S++)U.push(n[S]); var w = [], L = []; SuperMap.Plot.PlottingUtil.ptIsInPolygon(P, v[0]) ? (w.push.apply(w, P), L.push.apply(L, b)) : (w.push.apply(w, b), L.push.apply(L, P)); var _ = [], V = []; for (M = -1, S = 0; S < U.length; S++)if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(w, U[S])) { if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(L, U[S])) { M = S; break } _.push(U[S]) } if (-1 !== M) for (S = M; S < U.length; S++)if (!SuperMap.Plot.PlottingUtil.ptIsInPolygon(L, U[S])) { if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(w, U[S])) break; V.push(U[S]) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, _), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V), this.addLine(_), this.addLine(V), this.finish() } } } }, { key: "addLine", value: function (t) { for (var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = 0; l < t.length - 2; l++) { var o = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.02 * e, t); if (-1 !== o.index) { var i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * e, t); if (-1 !== i.index) { var n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.92 * e, t); if (-1 !== n.index && (l === o.index || l === o.index + 1 || l === n.index || l === n.index + 1 || l === i.index || l === i.index + 1)) { var r = SuperMap.Plot.PlottingUtil.radian(t[l + 1], t[l]) * SuperMap.Plot.PlottingUtil.RTOD, a = SuperMap.Plot.PlottingUtil.circlePoint(t[l + 1], .02 * e, .02 * e, r + 90); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [t[l + 1], a]) } } } } } }]), e }(); SuperMap.Plot.AlgoSymbol29000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol28900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var i = e[0], n = e[1], r = e[e.length - 2], a = e[e.length - 1], s = l * this.scaleValues[0] * .6, p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, n, i), u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, r, a), c = p.pntLeft, P = u.pntRight, S = []; S.push(i), S.push(c); for (var h = new SuperMap.Geometry.Point((i.x + c.x) / 2, (i.y + c.y) / 2), y = SuperMap.Plot.PlottingUtil.polylineDistance(S) / 2, f = [], g = 180 * SuperMap.Plot.PlottingUtil.radian(n, i) / Math.PI, b = 270 + g; b <= 360 + g; b += 3)f.push(SuperMap.Plot.PlottingUtil.circlePoint(h, y, y, b)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var M = []; M.push(a), M.push(P); var m = []; m.push(a), m.push(P); for (var d = new SuperMap.Geometry.Point((a.x + P.x) / 2, (a.y + P.y) / 2), v = SuperMap.Plot.PlottingUtil.polylineDistance(m) / 2, O = [], U = 180 * SuperMap.Plot.PlottingUtil.radian(a, P) / Math.PI, w = 90 + U; w <= 180 + U; w += 3)O.push(SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, w)); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, O), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol28900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23902 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(.2), l.scaleValues.push(.5), l.scaleValues.push(.125), l.scaleValues.push(90)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l, o, i, n = []; if (2 == t.length) { e = t[0], l = t[1]; var r = SuperMap.Plot.PlottingUtil.distance(e, l); i = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, o = SuperMap.Plot.PlottingUtil.circlePoint(e, r, r, i + 60), n.push(e), n.push(o), n.push(l) } else n = n.concat(t); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n), n.push(n[0]); var a = SuperMap.Plot.PlottingUtil.polylineDistance(n), s = this.scaleValues[0], p = this.scaleValues[1], u = this.scaleValues[2], c = this.scaleValues[4], P = a * s; e = n[0], l = n[1], o = n[2]; var S, h = a * p, y = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(e, l, o) / Math.PI * u, f = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, g = f - y, b = f + y, M = SuperMap.Plot.PlottingUtil.circlePoint(e, h, h, g), m = SuperMap.Plot.PlottingUtil.circlePoint(e, h, h, b); S = SuperMap.Plot.PlottingUtil.ptIsInPolygon(n, M) ? M : m; var d = a * this.scaleValues[3]; i = c, 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], S, d, i - 90); var v = SuperMap.Plot.PlottingUtil.circlePoint(e, P, P, f + 180); this.addScalePoint(v), this.addScalePoint(S); var O = SuperMap.Plot.PlottingUtil.circlePoint(S, .5 * d, .5 * d, i); this.addScalePoint(O), this.createArcPts(n, P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i, n, r, a, s, p, u = []; 2 == l.length ? (o = l[0], i = l[1], a = SuperMap.Plot.PlottingUtil.distance(o, i), r = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, n = SuperMap.Plot.PlottingUtil.circlePoint(o, a, a, r + 60), u.push(o), u.push(i), u.push(n)) : u = u.concat(l), o = u[0], i = u[1], n = u[2], u.push(u[0]); var c = SuperMap.Plot.PlottingUtil.polylineDistance(u), P = e; if (0 === t) a = SuperMap.Plot.PlottingUtil.distance(P, u[0]), this.scaleValues[0] = a / c; else if (1 === t) { s = SuperMap.Plot.PlottingUtil.distance(P, u[0]) / c, this.scaleValues[1] = s, r = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(o, i, n) / Math.PI, 0 <= (p = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(o, i, P) / Math.PI / r) && 1 >= p && (this.scaleValues[2] = p) } else if (2 === t) { s = this.scaleValues[1], p = this.scaleValues[2]; var S, h = c * s, y = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(o, i, n) / Math.PI * p, f = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, g = f - y, b = f + y, M = SuperMap.Plot.PlottingUtil.circlePoint(o, h, h, g), m = SuperMap.Plot.PlottingUtil.circlePoint(o, h, h, b); S = SuperMap.Plot.PlottingUtil.ptIsInPolygon(u, M) ? M : m; var d = 2 * SuperMap.Plot.PlottingUtil.distance(P, S) / c; this.scaleValues[3] = d; var v = 180 * SuperMap.Plot.PlottingUtil.radian(S, P) / Math.PI; this.scaleValues[4] = v } } } }, { key: "ComputeSubSymbolPt", value: function (t, e, l, o) { var i, n, r = l[0], a = l[1], s = l[2], p = SuperMap.Plot.PlottingUtil.plumbLineLen(s, r, a) * t, u = SuperMap.Plot.PlottingUtil.plumbLineLen(a, r, s) * e, c = []; if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(r, a, o) ? ((i = []).push(r), i.push(a), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !1)) : ((i = []).push(r), i.push(a), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !0)), SuperMap.Plot.PlottingUtil.pointIsRightToLine(r, s, o) ? ((i = []).push(r), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !1)) : ((i = []).push(r), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !0)), 2 > c.length || 2 > n.length) return o; var P = SuperMap.Plot.PlottingUtil.intersectLines(c[0], c[1], n[0], n[1]); return P.isIntersectLines ? P.intersectPoint : o } }, { key: "createArcPts", value: function (t, e) { for (var l = [], o = [], i = 0; i < t.length; i++)o.push(e), l.push([{ Start: 0, End: 360 }]); for (var n = 0; n < t.length; n++)if (0 !== l[n].length && (0 !== l[n][0].Start || 0 !== l[n][0].End)) for (var r = n + 1; r < t.length; r++)if (0 !== l[r].length && (0 !== l[r][0].Start || 0 !== l[r][0].End)) { var a = SuperMap.Plot.PlottingUtil.distance(t[n], t[r]); if (a < o[n] + o[r]) if (a > Math.abs(o[n] - o[r])) for (var s = 0; s < 2; s++) { var p, u, c; 0 == s ? (c = n, p = SuperMap.Plot.PlottingUtil.radian(t[n], t[r]) * SuperMap.Plot.PlottingUtil.RTOD, u = Math.acos((a * a + o[n] * o[n] - o[r] * o[r]) / (2 * a * o[n])) * SuperMap.Plot.PlottingUtil.RTOD) : (c = r, p = SuperMap.Plot.PlottingUtil.radian(t[r], t[n]) * SuperMap.Plot.PlottingUtil.RTOD, u = Math.acos((a * a + o[r] * o[r] - o[n] * o[n]) / (2 * a * o[r])) * SuperMap.Plot.PlottingUtil.RTOD); var P = p - u, S = p + u, h = P < 0 && S > 0 || P > 360 || S > 360; P = this.adjustAngle(P), S = this.adjustAngle(S); for (var y = l[c].length - 1; y >= 0; y--)if (h) { if (S > l[c][y].End || SuperMap.Plot.PlottingUtil.equalFuzzy(S, l[c][y].End)) { l[c].splice(y, 1); continue } if (S > l[c][y].Start && (l[c][y].Start = S), P < l[c][y].Start || SuperMap.Plot.PlottingUtil.equalFuzzy(P, l[c][y].Start)) { l[c].splice(y, 1); continue } P < l[c][y].End && (l[c][y].End = P) } else if (P < l[c][y].Start && S > l[c][y].End) l[c].splice(y, 1); else if (P > l[c][y].Start && S < l[c][y].End) l[c].push({ Start: l[c][y].Start, End: P }), l[c].push({ Start: S, End: l[c][y].End }), l[c].splice(y, 1); else { if (P > l[c][y].End) continue; if (P > l[c][y].Start && (l[c][y].End = P), S < l[c][y].Start) continue; S < l[c][y].End && (l[c][y].Start = S) } } else { if (o[n] < o[r]) { l[n][0].Start = 0, l[n][0].End = 0; break } l[r][0].Start = 0, l[r][0].End = 0 } } for (var f = 0; f < t.length; f++)if (0 !== l[f].length && (0 !== l[f][0].Start || 0 !== l[f][0].End)) for (var g = l[f].length - 1; g >= 0; g--) { for (var b = this.adjustAngle(l[f][g].Start), M = this.adjustAngle(l[f][g].End); M < b;)M += 360; for (var m = [], d = (M - b) / 72, v = b; v < M + d / 2; v += d) { var O = t[f].x + o[f] * Math.cos(v * SuperMap.Plot.PlottingUtil.DTOR), U = t[f].y + o[f] * Math.sin(v * SuperMap.Plot.PlottingUtil.DTOR); m.push(new SuperMap.Geometry.Point(O, U)) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m) } } }, { key: "adjustAngle", value: function (t) { for (; t > 360;)t -= 360; for (; t < 0;)t += 360; return t } }, { key: "GetCirclePts", value: function (t, e, l, o) { var i = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, n = 180 * SuperMap.Plot.PlottingUtil.radian(t, l) / Math.PI, r = i; n > i && (r = n); for (var a = [], s = r; s < 360 + r; s += 4)90 == s && (s = 91), a.push(SuperMap.Plot.PlottingUtil.circlePoint(t, o, o, s)); return a.push[0], a } }, { key: "CreatArc", value: function (t, e, l) { for (var o = [], i = [], n = 0; n < t.length; n++) { var r = t[n]; SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, r) || SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, r) ? (i.length > 1 && o.push(i), i = []) : i.push(r) } i.length > 1 && o.push(i); for (var a = 0; a < o.length; a++) { var s = o[a]; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } } }, { key: "GetArcPts3D", value: function (t, e, l) { for (var o = [], i = [], n = 0; n < t.length; n++) { var r = t[n]; SuperMap.Plot.PlottingUtil.ptIsInPolygon(e, r) || SuperMap.Plot.PlottingUtil.ptIsInPolygon(l, r) ? (i.length > 1 && o.push(i), i = []) : i.push(r) } i.length > 1 && o.push(i); for (var a = [], s = 0; s < o.length; s++)a = a.concat(o[s]); return a } }, { key: "sortPts", value: function (t, e) { t = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e); for (var l = 0; l < e.length; l++)for (var o = e[l], i = 180 * SuperMap.Plot.PlottingUtil.radian(t, o) / Math.PI, n = 0; n < e.length; n++) { var r = e[n], a = 180 * SuperMap.Plot.PlottingUtil.radian(t, r) / Math.PI; if (i > a) { var s = new SuperMap.Geometry.Point(o.x, o.y); o = new SuperMap.Geometry.Point(r.x, r.y), r = new SuperMap.Geometry.Point(s.x, s.y), i = a, e[l] = o, e[n] = r } } return e } }]), e }(); SuperMap.Plot.AlgoSymbol23902 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23901 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.333333), l.scaleValues.push(.333333), l.scaleValues.push(.125), l.scaleValues.push(90)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e, l = []; if (2 == t.length) { var o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = SuperMap.Plot.PlottingUtil.distance(o, i); e = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI; var r = SuperMap.Plot.PlottingUtil.circlePoint(o, n, n, e + 60); l.push(t[0]), l.push(i), l.push(r), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l) } else { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, t); for (var a = 0; a < t.length; a++)l.push(t[a]) } var s = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l); l.push(l[0]); var p = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (!this.isEdit) { var u = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.scaleValues[2] = 2 * u * this.getSubSymbolScaleValue() / p } var c = this.scaleValues[0], P = this.scaleValues[1], S = this.scaleValues[2], h = this.scaleValues[3], y = this.ComputeSubSymbolPt(c, P, l, s), f = p * S, g = y; e = h - 90, 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], g, f, e), this.addScalePoint(g); var b = SuperMap.Plot.PlottingUtil.circlePoint(y, f, f, h); this.addScalePoint(b), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o, i, n, r = []; if (2 == l.length) { o = l[0], i = l[1]; var a = SuperMap.Plot.PlottingUtil.distance(o, i), s = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI; n = SuperMap.Plot.PlottingUtil.circlePoint(o, a, a, s + 60), r.push(o), r.push(i), r.push(n) } else r = r.concat(l); o = r[0], i = r[1], n = r[2]; var p = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(r); r.push(r[0]); var u = SuperMap.Plot.PlottingUtil.polylineDistance(r), c = e; if (0 == t) { var P = SuperMap.Plot.PlottingUtil.plumbLineLen(n, o, i), S = SuperMap.Plot.PlottingUtil.plumbLineLen(i, o, n), h = SuperMap.Plot.PlottingUtil.plumbLineLen(c, o, i) / P, y = SuperMap.Plot.PlottingUtil.plumbLineLen(c, o, n) / S; h > 1 && (h = 1), y > 1 && (y = 1), this.scaleValues[0] = h, this.scaleValues[1] = y } else if (1 == t) { var f = this.scaleValues[0], g = this.scaleValues[1], b = this.ComputeSubSymbolPt(f, g, r, p), M = SuperMap.Plot.PlottingUtil.distance(b, c) / u; this.scaleValues[2] = M; var m = 180 * SuperMap.Plot.PlottingUtil.radian(b, c) / Math.PI; this.scaleValues[3] = m } } } }, { key: "ComputeSubSymbolPt", value: function (t, e, l, o) { var i, n, r = l[0], a = l[1], s = l[2], p = SuperMap.Plot.PlottingUtil.plumbLineLen(s, r, a) * t, u = SuperMap.Plot.PlottingUtil.plumbLineLen(a, r, s) * e, c = []; if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(r, a, o) ? ((i = []).push(r), i.push(a), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !1)) : ((i = []).push(r), i.push(a), c = SuperMap.Plot.PlottingUtil.paraLine(i, p, !0)), SuperMap.Plot.PlottingUtil.pointIsRightToLine(r, s, o) ? ((i = []).push(r), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !1)) : ((i = []).push(r), i.push(s), n = SuperMap.Plot.PlottingUtil.paraLine(i, u, !0)), 2 > c.length || 2 > n.length) return o; var P = SuperMap.Plot.PlottingUtil.intersectLines(c[0], c[1], n[0], n[1]); return P.isIntersectLines ? P.intersectPoint : o } }]), e }(); SuperMap.Plot.AlgoSymbol23901 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol23800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 3 && (this.scaleValues = [], this.scaleValues.push(.05), this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(0)); var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e, { fillLimit: !0, fill: !1, surroundLineFlag: !1 }); var l = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!this.isEdit) { var i = this.getDefaultSubSymbolSize() / o; (i > .2 || i <= 0) && (i = .2), this.scaleValues[0] = i } var n = this.scaleValues[0], r = this.scaleValues[2], a = this.scaleValues[3], s = o * n, p = new SuperMap.Geometry.Point(l.x + o * r, l.y + o * a); if (this.subSymbols && null !== this.subSymbols && this.subSymbols.length > 0) { if (this.subSymbols[0].symbolData) for (var u in this.subSymbols[0].symbolData.innerCells) this.subSymbols[0].symbolData.innerCells[u].type === SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL && (this.subSymbols[0].symbolData.innerCells[u].type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL); this.computeSubSymbol(this.subSymbols[0], p, s, 0) } this.addScalePoint(p); var c = s, P = SuperMap.Plot.PlottingUtil.circlePoint(p, c, c, 90); this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), a = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - r.x) / a, this.scaleValues[2] = i, n = (e.y - r.y) / a, this.scaleValues[3] = n; else if (1 === t) { i = this.scaleValues[2], n = this.scaleValues[3]; var s = new SuperMap.Geometry.Point(r.x + a * i, r.y + a * n), p = SuperMap.Plot.PlottingUtil.distance(s, e) / a; this.scaleValues[0] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol23500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol23400 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e), this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var l = this.scaleValues[0], o = this.scaleValues[1], i = this.scaleValues[2], n = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e), r = SuperMap.Plot.PlottingUtil.polylineDistance(t), a = r * i, s = new SuperMap.Geometry.Point(n.x + r * l, n.y + r * o); if (this.subSymbols.length > 0) { if (null == this.subSymbols.length) return; null != this.subSymbols[0].code && this.computeSubSymbol(this.subSymbols[0], s, a, 0), this.addScalePoint(s); var p = SuperMap.Plot.PlottingUtil.circlePoint(s, a, a, 0); this.addScalePoint(p) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var o = []; o = 3 >= l.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, l) : l.length > 3 && !0 === this.polylineConnectLocationPoint ? l : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i, n, r = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o), a = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) i = (e.x - r.x) / a, this.scaleValues[0] = i, n = (e.y - r.y) / a, this.scaleValues[1] = n; else if (1 === t) { i = this.scaleValues[0], n = this.scaleValues[1]; var s = new SuperMap.Geometry.Point(r.x + a * i, r.y + a * n), p = SuperMap.Plot.PlottingUtil.distance(s, e) / a; this.scaleValues[2] = p } } } }]), e }(); SuperMap.Plot.AlgoSymbol23400 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol22000 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .03) : 1 === this.scaleValues.length && (this.scaleValues[1] = .02), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = .6 * this.getSubSymbolScaleValue() } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .8 * a, r); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p) } var P = e[0], S = e[1], h = e[e.length - 2], y = e[e.length - 1], f = l * this.scaleValues[1], g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, S, P), b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, h, y), M = g.pntLeft, m = b.pntLeft, d = []; d.push(P), d.push(M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d); var v = []; v.push(y), v.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v); var O = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), U = SuperMap.Plot.PlottingUtil.circlePoint(O.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r); this.addScalePoint(U, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol22000 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.2), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.2)); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], l = .5 * e, o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, r = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, n + 90), a = SuperMap.Plot.PlottingUtil.circlePoint(o, e, e, n + 270), s = SuperMap.Plot.PlottingUtil.circlePoint(r, l, l, n), p = SuperMap.Plot.PlottingUtil.circlePoint(a, l, l, n), u = []; u.push(p), u.push(a), u.push(r), u.push(s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var c = SuperMap.Plot.PlottingUtil.circlePoint(i, e, e, n + 90), P = SuperMap.Plot.PlottingUtil.circlePoint(i, e, e, n + 270), S = SuperMap.Plot.PlottingUtil.circlePoint(c, l, l, n + 180), h = SuperMap.Plot.PlottingUtil.circlePoint(P, l, l, n + 180); (u = []).push(S), u.push(c), u.push(P), u.push(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), this.addScalePoint(r), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol21800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21600 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.05)), l.subText = "", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (SuperMap.Plot.PlottingUtil.clearSamePts(t), !(t.length < this.minEditPts)) { 1 == this.scaleValues.length && this.scaleValues.push(this.getSubSymbolScaleValue()), this.isEdit || (this.scaleValues[0] = .6 * this.getSubSymbolScaleValue(), this.scaleValues[1] = this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); for (var l = 0, o = 0; o < e.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(e[o], e[o + 1]); var i = .5 * l, n = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, i); if (-1 !== n.index) { for (var r = n.pt, a = [], s = 0, p = 0; p < n.index + 1; p++)a.push(e[p]), p > 0 && (s += SuperMap.Plot.PlottingUtil.distance(a[p], a[p - 1])); var u, c, P = i - s, S = l * this.scaleValues[1], h = []; if (P >= S) { u = SuperMap.Plot.PlottingUtil.linePnt(r, e[n.index], S), a.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a), c = SuperMap.Plot.PlottingUtil.linePnt(r, e[n.index + 1], S), h.push(c); for (var y = e.length, f = n.index + 1; f < y; ++f)h.push(e[f]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } else { for (var g, b, M = -1, m = a.length - 1; m >= 0; m--)if (g = new SuperMap.Geometry.Point(a[m].x, a[m].y), b = new SuperMap.Geometry.Point(r.x, r.y), SuperMap.Plot.PlottingUtil.distance(g, b) > S) { M = m; break } if (-1 == M) return; a.splice(M + 1, a.length - 1 - M), u = SuperMap.Plot.PlottingUtil.linePnt(r, e[M], S), a.push(u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); for (var d = -1, v = n.index; v < e.length; v++)if (g = new SuperMap.Geometry.Point(e[v].x, e[v].y), b = new SuperMap.Geometry.Point(r.x, r.y), SuperMap.Plot.PlottingUtil.distance(g, b) > S) { d = v; break } if (-1 == d) return; c = SuperMap.Plot.PlottingUtil.linePnt(r, e[d], S), h.push(c); for (var O = d + 1; O < e.length; ++O)h.push(e[O]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } if (!(a.length < 2)) { for (var U = 0, w = 0; w < t.length - 1; w++)U += SuperMap.Plot.PlottingUtil.distance(t[w], t[w + 1]); var L = U * this.scaleValues[0], _ = new SuperMap.Geometry.Point(a[0].x, a[0].y), V = new SuperMap.Geometry.Point(a[1].x, a[1].y), A = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, V, _), T = []; if (T.push(A.pntLeft), T.push(A.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T), !(h.length < 2)) { var E = new SuperMap.Geometry.Point(h[h.length - 1].x, h[h.length - 1].y), x = new SuperMap.Geometry.Point(h[h.length - 2].x, h[h.length - 2].y), j = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, x, E); (T = []).push(j.pntLeft), T.push(j.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T); var Y = u, C = c, I = 180 * SuperMap.Plot.PlottingUtil.radian(Y, C) / Math.PI, B = SuperMap.Plot.PlottingUtil.distance(Y, C), R = new SuperMap.Geometry.Point((u.x + c.x) / 2, (u.y + c.y) / 2), G = this.subText; this.addText(G, R, B, I), this.addScalePoint(A.pntLeft), this.finish() } } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[0]) / o; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol21600 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21504 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21501), o(e, [{ key: "addSubSymbols", value: function (t, e, l) { this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], t, .8 * e, l - 90) } }]), e }(); SuperMap.Plot.AlgoSymbol21504 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21503 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21501), o(e, [{ key: "addSubSymbols", value: function (t, e, l) { this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], t, .8 * e, l - 90) } }]), e }(); SuperMap.Plot.AlgoSymbol21503 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol21502 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol21501), e }(); SuperMap.Plot.AlgoSymbol21502 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .02) : 1 === this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[1] = .5 * this.getSubSymbolScaleValue() } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) * SuperMap.Plot.PlottingUtil.RTOD, a = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); this.addSubSymbols(n, a, r); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addArrow(p, this.scaleValues[1]) } var P = l * this.scaleValues[0] * .5, S = SuperMap.Plot.PlottingUtil.circlePoint(n, P, P, r + 90); this.addScalePoint(S, 0), this.finish() } } }, { key: "addSubSymbols", value: function (t, e, l) { this.subSymbols.length > 0 && this.computeSubSymbol(this.subSymbols[0], t, .8 * e, l - 180) } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol21501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05, l.scaleValues[1] = .05, l.scaleValues[2] = .01, l.scaleValues[3] = .02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === this.scaleValues.length ? (this.scaleValues = [], this.scaleValues[0] = .05, this.scaleValues[1] = .02, this.scaleValues[2] = .01, this.scaleValues[3] = .02) : 1 === this.scaleValues.length && (this.scaleValues.push(.02), this.scaleValues.push(.01), this.scaleValues.push(.25 * this.getSubSymbolScaleValue())), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o, this.scaleValues[3] = .5 * o } for (var i = this.getLinePts(e, this.scaleValues[0]), n = [], r = [], a = 0; a <= i.startIndex; a++)n.push(e[a]); if (n.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), i.endIndex <= e.length) { r.push(i.endPt); for (var s = i.endIndex + 1; s <= e.length - 1; s++)r.push(e[s]); this.addArrow(r, this.scaleValues[this.scaleValues.length - 1]) } var p, u, c, P, S, h, y, f, g, b, M, m, d, v = i.startPt.clone(), O = i.endPt.clone(), U = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), w = SuperMap.Plot.PlottingUtil.distance(v, O), L = SuperMap.Plot.PlottingUtil.radian(v, O) * SuperMap.Plot.PlottingUtil.RTOD; p = new SuperMap.Geometry.Point(0, 0), u = new SuperMap.Geometry.Point(0, 0), c = new SuperMap.Geometry.Point(0, 0), P = new SuperMap.Geometry.Point(0, 0), S = new SuperMap.Geometry.Point(0, 0), h = new SuperMap.Geometry.Point(0, 0), y = new SuperMap.Geometry.Point(0, 0), f = new SuperMap.Geometry.Point(0, 0), g = new SuperMap.Geometry.Point(0, 0), b = new SuperMap.Geometry.Point(0, 0), M = new SuperMap.Geometry.Point(0, 0), m = new SuperMap.Geometry.Point(0, 0), d = new SuperMap.Geometry.Point(0, 0), v.x >= O.x ? (p.x = .25 * w, p.y = .25 * -w, u.x = .5 * -w, u.y = .25 * -w, c.x = .5 * -w, c.y = .25 * w, P.x = .5 * w, P.y = .25 * w, S.x = .5 * w, S.y = 0, h.x = .25 * -w, h.y = .125 * -w, y.x = 0, y.y = .125 * w, f.x = 0, f.y = .125 * -w, g.x = .25 * w, g.y = .2 * w, b.x = .25 * -w, b.y = .25 * -w, M.x = .375 * -w, M.y = .5 * -w, m.x = .02 * -w, m.y = .25 * -w, d.x = .1 * w, d.y = .5 * -w) : (p.x = .25 * w, p.y = .25 * w, u.x = .5 * -w, u.y = .25 * w, c.x = .5 * -w, c.y = .25 * -w, P.x = .5 * w, P.y = .25 * -w, S.x = .5 * w, S.y = 0, h.x = .25 * w, h.y = .125 * -w, y.x = 0, y.y = .125 * w, f.x = 0, f.y = .125 * -w, g.x = .25 * -w, g.y = .125 * w, b.x = .25 * -w, b.y = .25 * w, M.x = .375 * -w, M.y = .5 * w, m.x = .02 * w, m.y = .25 * w, d.x = .15 * w, d.y = .5 * w); var _ = [], V = [], A = [], T = [], E = [], x = SuperMap.Plot.PlottingUtil.coordinateTrans(U, p, L), j = SuperMap.Plot.PlottingUtil.coordinateTrans(U, u, L), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(U, c, L), C = SuperMap.Plot.PlottingUtil.coordinateTrans(U, P, L), I = SuperMap.Plot.PlottingUtil.coordinateTrans(U, S, L), B = SuperMap.Plot.PlottingUtil.coordinateTrans(U, h, L), R = SuperMap.Plot.PlottingUtil.coordinateTrans(U, y, L), G = SuperMap.Plot.PlottingUtil.coordinateTrans(U, f, L), N = SuperMap.Plot.PlottingUtil.coordinateTrans(U, g, L), D = SuperMap.Plot.PlottingUtil.coordinateTrans(U, b, L), k = SuperMap.Plot.PlottingUtil.coordinateTrans(U, M, L), z = SuperMap.Plot.PlottingUtil.coordinateTrans(U, m, L), F = SuperMap.Plot.PlottingUtil.coordinateTrans(U, d, L); _.push(x), _.push(j), _.push(Y), _.push(C), _.push(I), V.push(B), V.push(R), V.push(G), V.push(N), A.push(D), A.push(k), T.push(z), T.push(F), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, _, null, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, null, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, A, null, !0), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, T, null, !0); var K = .3 * SuperMap.Plot.PlottingUtil.distance(G, N), W = SuperMap.Plot.PlottingUtil.linePnt(N, G, K), J = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3 * K, N, W); E.push(J.pntLeft), E.push(N), E.push(J.pntRight); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, E, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, !0); var q = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), Z = SuperMap.Plot.PlottingUtil.circlePoint(q.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, L + 90); this.addScalePoint(Z, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol21900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues = [], this.scaleValues.push(.02), this.scaleValues.push(.1), this.scaleValues.push(0)) : 3 === this.scaleValues.length && this.scaleValues.push(.5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); if (e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addArrow(e, this.scaleValues[this.scaleValues.length - 1]), 0 !== SuperMap.Plot.PlottingUtil.polylineDistance(e)) { if (!this.isEdit) { var l = this.getSubSymbolScaleValue(); this.scaleValues[0] = .5 * l, this.scaleValues[this.scaleValues.length - 1] = .5 * this.getSubSymbolScaleValue() } for (var o = this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.polylineDistance(t), n = o * i, r = this.scaleValues[1] * i, a = 0, s = .01 * i, p = s, u = 0; p <= i; p += r, u++) { a = p + s; var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, a); if (-1 === c.index) return; var P = [], S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, e[c.index], c.pt); P.push(new SuperMap.Geometry.Point(S.pntLeft.x, S.pntLeft.y)), P.push(new SuperMap.Geometry.Point(S.pntRight.x, S.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), 0 === u ? this.addScalePoint(P[0], 0) : 1 === u && this.addScalePoint(c.pt, 1) } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = .01 * i; if (0 === t) { var r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, n); if (-1 === r.index) return; var a = SuperMap.Plot.PlottingUtil.distance(e, r.pt); this.scaleValues[0] = a / i } else if (1 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, n); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, o); if (-1 === p.index) return; for (var u = 0, c = s.index + 1; c < p.index; c++)u += SuperMap.Plot.PlottingUtil.distance(o[c], o[c + 1]); u += SuperMap.Plot.PlottingUtil.distance(o[p.index], p.pt), u -= n, this.scaleValues[1] = u / i, this.scaleValues[1] > .93 && (this.scaleValues[1] = .93) } } } }]), e }(); SuperMap.Plot.AlgoSymbol21500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol21401 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.03), l.scaleValues.push(.4), l.scaleValues.push(0), l.scaleValues.push(.02)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues = [], this.scaleValues.push(.03), this.scaleValues.push(.4), this.scaleValues.push(0)) : 3 === this.scaleValues.length && this.scaleValues.push(.02); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e), o = this.scaleValues[1], i = l * (1 - o) * .5, n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i, e); if (n.bfind) { this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue(), this.scaleValues[this.scaleValues.length - 1] = .5 * this.getSubSymbolScaleValue()); var r, a = this.scaleValues[0], s = SuperMap.Plot.PlottingUtil.polylineDistance(t) * a, p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[n.index], n.pts), u = this.scaleValues[2]; 1 === u ? r = new SuperMap.Geometry.Point(p.pntRight.x, p.pntRight.y) : 0 === u && (r = new SuperMap.Geometry.Point(p.pntLeft.x, p.pntLeft.y)); var c = []; c.push(r), c.push(n.pts); var P; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c, { lineTypeLimit: !0 }); var S = l * (.5 + .5 * o), h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S, e); if (h.bfind) { var y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[h.index], h.pts); 1 === u ? P = new SuperMap.Geometry.Point(y.pntRight.x, y.pntRight.y) : 0 === u && (P = new SuperMap.Geometry.Point(y.pntLeft.x, y.pntLeft.y)), this.addArrow(e, this.scaleValues[this.scaleValues.length - 1]), this.addScalePoint(P, 0); var f = []; f.push(P), f.push(h.pts); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, f, { lineTypeLimit: !0 }), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l, !1); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = i * (.5 + .5 * this.scaleValues[1]), r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n, o); if (!r.bfind) return; var a, s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, o[r.index], r.pts), p = SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[r.index], o[r.index + 1], e); this.scaleValues[2] = p ? 0 : 1, a = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, new SuperMap.Geometry.Point(s.pntLeft.x, s.pntLeft.y), new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)); var u = SuperMap.Plot.PlottingUtil.distance(a.projectPoint, new SuperMap.Geometry.Point(r.pts.x, r.pts.y)); this.scaleValues[0] = u / i } } }]), e }(); SuperMap.Plot.AlgoSymbol21401 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol25201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = l * this.scaleValues[0], i = e[e.length - 1]; if (e.length > 2) { for (var n = -1, r = e.length - 2; r >= 0; r--)if (o < SuperMap.Plot.PlottingUtil.distance(i, e[r])) { n = r; break } e.splice(n + 1, e.length - n), e.push(i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); var a = e[e.length - 2], s = e[e.length - 1], p = o, u = 180 * SuperMap.Plot.PlottingUtil.radian(a, s) / Math.PI, c = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 157.5), P = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u + 202.5), S = []; S.push(c), S.push(i), S.push(P); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0, lineTypeLimit: !0 }, !0); var h = SuperMap.Plot.PlottingUtil.circlePoint(s, p, p, u); this.addScalePoint(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 != t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.distance(e, l[l.length - 1]) / o; if (i > .2) return; this.scaleValues[0] = i } } }]), e }(); SuperMap.Plot.AlgoSymbol25201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol42500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.285714), l.scaleValues.push(.285714), l.scaleValues.push(.5), l.scaleValues.push(.333333), l.scaleValues.push(.333333)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.285714), this.scaleValues.push(.285714), this.scaleValues.push(.5), this.scaleValues.push(.333333)); var e = t[0].clone(), l = t[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0], n = new SuperMap.Geometry.Point(0, -o * i), r = new SuperMap.Geometry.Point(0, o * i), a = this.scaleValues[1], s = this.scaleValues[3], p = new SuperMap.Geometry.Point(o * (1 - s), -o * a), u = new SuperMap.Geometry.Point(o * (1 - s), o * a), c = this.scaleValues[2], P = this.scaleValues[4], S = new SuperMap.Geometry.Point(o * (1 - P), -o * c), h = new SuperMap.Geometry.Point(o * (1 - P), o * c), y = new SuperMap.Geometry.Point(o, 0), f = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD, g = []; g.push(r), g.push(u), g.push(h), g.push(y), g.push(S), g.push(p), g.push(n); for (var b = [], M = 0; M < g.length; M++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, g[M], f); b.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var d, v, O, U = !0; e.x > l.x && (U = !1); var w, L = (O = .1 * o) + (v = .12 * o / 2); d = 1 == U ? (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, l, e)).pntRight : (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L, l, e)).pntLeft; var _, V, A, T, E, x, j, Y, C = []; C.push(d), C.push(new SuperMap.Geometry.Point(d.x + v, d.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, C), 1 == U ? (_ = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85 * O, l, e)).pntRight, T = w.pntLeft, V = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, _, T)).pntRight, A = w.pntLeft) : (_ = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85 * O, l, e)).pntLeft, T = w.pntRight, V = (w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, _, T)).pntLeft, A = w.pntRight), (C = []).push(_), C.push(V), C.push(A), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, C, { fillLimit: !0, fill: !0 }), w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * v, V, A), Y = 1 == U ? w.pntRight : w.pntLeft, w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2 * v, A, V), x = 1 == U ? w.pntLeft : w.pntRight; var I = SuperMap.Plot.PlottingUtil.intersectLines(_, x, A, V); I.isIntersectLines && (E = I.intersectPoint, (I = SuperMap.Plot.PlottingUtil.intersectLines(_, Y, A, V)).isIntersectLines && (j = I.intersectPoint, (C = []).push(E), C.push(x), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C), (C = []).push(j), C.push(Y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C), this.scalePoints = [], this.addScalePoint(b[0]), this.addScalePoint(b[1]), this.addScalePoint(b[2]), this.finish())) } } }, { key: "computeScaleValues", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o, i = SuperMap.Plot.PlottingUtil.distance(l[0], l[1]), n = l[0].clone(), r = l[1].clone(), a = e.clone(); if (0 == t) { var s = SuperMap.Plot.PlottingUtil.distance(a, n) / i; this.scaleValues[0] = s } else if (1 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(a, n, r); var p = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[1] = p; var u = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[3] = u } else if (2 == t) { o = SuperMap.Plot.PlottingUtil.projectPoint(a, n, r); var c = SuperMap.Plot.PlottingUtil.distance(o, a) / i; this.scaleValues[2] = c; var P = SuperMap.Plot.PlottingUtil.distance(o, r) / i; this.scaleValues[4] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol42500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol26501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues[0] = .05), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (this.scaleValues.length < 1 && (this.scaleValues = [], this.scaleValues.push(.5)), !this.isEdit) { var o = this.getDefaultSubSymbolSize() / l; (o > .3 || o <= 0) && (o = .3), this.scaleValues[0] = o } var i = this.getLinePts(e, this.scaleValues[0]), n = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), r = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI, a = SuperMap.Plot.PlottingUtil.distance(i.startPt, i.endPt); 0 < this.subSymbols.length && this.computeSubSymbol(this.subSymbols[0], n, .8 * a, r); for (var s = [], p = [], u = 0; u <= i.startIndex; u++)s.push(e[u]); if (s.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s), i.endIndex <= e.length) { p.push(i.endPt); for (var c = i.endIndex + 1; c <= e.length - 1; c++)p.push(e[c]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p) } var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * l, e), S = SuperMap.Plot.PlottingUtil.circlePoint(P.pts, l * this.scaleValues[0] * .5, l * this.scaleValues[0] * .5, r); this.addScalePoint(S, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint && 0 === t) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.polylineDistance(o), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, o), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol26501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol20301 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues.length !== this.minEditPts && (this.scaleValues = [], this.scaleValues.push(.2), this.scaleValues.push(0)), this.components = [], this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, this.controlPoints); var e, l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = new SuperMap.Geometry.Point(t[0].x, t[0].y), i = new SuperMap.Geometry.Point(t[1].x, t[1].y), n = 180 * SuperMap.Plot.PlottingUtil.radian(o, i) / Math.PI, r = new SuperMap.Geometry.Point((o.x + i.x) / 2, (o.y + i.y) / 2), a = this.scaleValues[0] * l; e = 0 == this.scaleValues[1] ? SuperMap.Plot.PlottingUtil.circlePoint(r, a, a, n + 90) : SuperMap.Plot.PlottingUtil.circlePoint(r, a, a, n + 270); var s = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [r, e]); var p = .02 * SuperMap.Plot.PlottingUtil.distance(t[0], t[t.length - 1]), u = new SuperMap.Geometry.Point((o.x + r.x) / 2, (o.y + r.y) / 2), c = [u, new SuperMap.Geometry.Point(u.x, u.y + p)]; this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c, s, !0); var P = new SuperMap.Geometry.Point((i.x + r.x) / 2, (i.y + r.y) / 2); c = [P, new SuperMap.Geometry.Point(P.x, P.y + p)], this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, c, s, !0); var S = new SuperMap.Geometry.Point(e.x, e.y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; if (0 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; var o = new SuperMap.Geometry.Point(l[0].x, l[0].y), i = new SuperMap.Geometry.Point(l[1].x, l[1].y), n = SuperMap.Plot.PlottingUtil.distance(o, i); if (0 === n) return; var r = new SuperMap.Geometry.Point((o.x + i.x) / 2, (o.y + i.y) / 2); if (0 === t) { var a = SuperMap.Plot.PlottingUtil.distance(e, r) / n; this.scaleValues[0] = a, SuperMap.Plot.PlottingUtil.pointIsRightToLine(o, i, e) ? this.scaleValues[1] = 1 : this.scaleValues[1] = 0 } } } }]), e }(); SuperMap.Plot.AlgoSymbol20301 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol20300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.1), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 1 !== this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.1)), this.components = [], this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, this.controlPoints); var e = this.scaleValues[0], l = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = l * e, i = .01 * l; o < 2 * i && (i = .5 * o); for (var n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, r = 0, a = o; a < l - i; a += o) { var s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, t); if (s.bfind) { var p = s.pts, u = []; u.push(p); var c = SuperMap.Plot.PlottingUtil.circlePoint(p, i, i, 90); if (u.push(c), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, u, n), 0 === r) { var P = new SuperMap.Geometry.Point(p.x, p.y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } r++ } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.minEditPts > l.length) return; for (var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = -1, n = 0, r = new SuperMap.Geometry.Point(0, 0), a = 0; a < l.length - 1; a++) { var s, p = []; p.push(l[a]), p.push(l[a + 1]); var u = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, l[a], l[a + 1]); if (u.isOnline && (s = u.projectPoint), !u.isOnline && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(e, l[a], l[a + 1]) && (s = e), void 0 === s) return; if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s, p).isOnPolyLine) { var c = SuperMap.Plot.PlottingUtil.distance(e, s); -1 === i ? (i = a, r = s, n = c) : n > c && (i = a, r = s, n = c) } } if (-1 === i || i > l.length - 1) return; for (var P = 0, S = 0; S < i; S++) { var h = new SuperMap.Geometry.Point(l[S].x, l[S].y), y = new SuperMap.Geometry.Point(l[S + 1].x, l[S + 1].y); P += SuperMap.Plot.PlottingUtil.distance(h, y) } var f = new SuperMap.Geometry.Point(l[i].x, l[i].y); if ((P += SuperMap.Plot.PlottingUtil.distance(f, r)) < 0 || P > o) return; var g = P / o; g > .95 ? g = .95 : g < .1 && (g = .1), this.scaleValues[0] = g } } }]), e }(); SuperMap.Plot.AlgoSymbol20300 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17806 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17804), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)); var e, l, o, i, n, r = this.scaleValues[0], a = this.scaleValues[1], s = this.scaleValues[2], p = 0, u = 0; if (t.length == this.minEditPts) { this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y); var c = SuperMap.Plot.PlottingUtil.distance(l, o); p = 2 * c, e = new SuperMap.Geometry.Point(l.x + p * r, l.y + p * a); var P = 2 * c * s / .28 / 2; u = P, i = SuperMap.Plot.PlottingUtil.circlePoint(e, P, P, 0), (n = []).push(e.clone()), n.push(i.clone()), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, n) } else { this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = new SuperMap.Geometry.Point(t[2].x, t[2].y), p = SuperMap.Plot.PlottingUtil.distance(l, o) + SuperMap.Plot.PlottingUtil.distance(l, i), e = new SuperMap.Geometry.Point(l.x + p * r, l.y + p * a); var S = p * s / .21 / 2, h = p * s / .38 / 2; u = S; var y = SuperMap.Plot.PlottingUtil.circlePoint(e, S, S, 0), f = SuperMap.Plot.PlottingUtil.circlePoint(e, h, h, 90); (n = []).push(e.clone()), n.push(y.clone()), n.push(f.clone()), this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, n) } this.scalePoints = []; var g = new SuperMap.Geometry.Point(e.x + .1 * p, e.y); g.isScalePoint = !0, g.tag = 0, this.scalePoints.push(g); var b = SuperMap.Plot.PlottingUtil.circlePoint(e, u, u, 90); b.isScalePoint = !0, b.tag = 1, this.scalePoints.push(b), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l, o, i, n, r = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), a = (r = SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(), s = 0; if (0 == (s = 2 == r.length ? 2 * SuperMap.Plot.PlottingUtil.distance(r[0], r[1]) : SuperMap.Plot.PlottingUtil.distance(r[0], r[1]) + SuperMap.Plot.PlottingUtil.distance(r[0], r[2]))) return; if (0 == t) n = (i = this.scaleValues[2]) * s, l = (e.x - .1 * s - a.x) / s, this.scaleValues[0] = l, o = (e.y - a.y) / s, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var p = new SuperMap.Geometry.Point(a.x + s * l, a.y + s * o); n = SuperMap.Plot.PlottingUtil.distance(p, e), i = .1, i = 2 === r.length ? .56 * n / s : .42 * n / s, this.scaleValues[2] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol17806 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17805 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17804), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)), t.length == this.minEditPts ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = 0; if (0 != (l = t.length == this.minEditPts ? 2 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) : SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) + SuperMap.Plot.PlottingUtil.distance(t[0], t[2]))) { var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], r = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), a = 3 * (l * n), s = new SuperMap.Geometry.Point(-.5 * a, .3 * a), p = new SuperMap.Geometry.Point(-.5 * a, -.3 * a), u = new SuperMap.Geometry.Point(.5 * a, -.3 * a), c = new SuperMap.Geometry.Point(.5 * a, .3 * a), P = SuperMap.Plot.PlottingUtil.coordinateTrans(r, s, 0), S = SuperMap.Plot.PlottingUtil.coordinateTrans(r, p, 0), h = SuperMap.Plot.PlottingUtil.coordinateTrans(r, u, 0), y = SuperMap.Plot.PlottingUtil.coordinateTrans(r, c, 0), f = []; f.push(P.clone()), f.push(S.clone()), f.push(h.clone()), f.push(y.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, f); var g = new SuperMap.Geometry.Point(-.3 * a, .3 * a), b = new SuperMap.Geometry.Point(-.3 * a, .5 * a), M = SuperMap.Plot.PlottingUtil.coordinateTrans(r, g, 0), m = SuperMap.Plot.PlottingUtil.coordinateTrans(r, b, 0); (f = []).push(M.clone()), f.push(m.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var d = new SuperMap.Geometry.Point(-.3 * a, -.3 * a), v = new SuperMap.Geometry.Point(-.3 * a, -.5 * a), O = SuperMap.Plot.PlottingUtil.coordinateTrans(r, d, 0), U = SuperMap.Plot.PlottingUtil.coordinateTrans(r, v, 0); (f = []).push(O.clone()), f.push(U.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var w = new SuperMap.Geometry.Point(.3 * a, .3 * a), L = new SuperMap.Geometry.Point(.3 * a, .5 * a), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(r, w, 0), V = SuperMap.Plot.PlottingUtil.coordinateTrans(r, L, 0); (f = []).push(_.clone()), f.push(V.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var A = new SuperMap.Geometry.Point(.3 * a, -.3 * a), T = new SuperMap.Geometry.Point(.3 * a, -.5 * a), E = SuperMap.Plot.PlottingUtil.coordinateTrans(r, A, 0), x = SuperMap.Plot.PlottingUtil.coordinateTrans(r, T, 0); (f = []).push(E.clone()), f.push(x.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.scalePoints = []; var j = new SuperMap.Geometry.Point(r.x + .1 * a, r.y); j.isScalePoint = !0, j.tag = 0, this.scalePoints.push(j); var Y = SuperMap.Plot.PlottingUtil.circlePoint(r, .5 * a, .5 * a, 90); Y.isScalePoint = !0, Y.tag = 1, this.scalePoints.push(Y), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17805 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17804 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.1)), t.length == this.minEditPts ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = 0; if (0 != (l = t.length == this.minEditPts ? 2 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) : SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) + SuperMap.Plot.PlottingUtil.distance(t[0], t[2]))) { var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], r = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), a = l * n, s = 3 * a, p = new SuperMap.Geometry.Point(-.5 * s, .5 * a), u = new SuperMap.Geometry.Point(.5 * s, .5 * a), c = SuperMap.Plot.PlottingUtil.coordinateTrans(r, p, 0), P = SuperMap.Plot.PlottingUtil.coordinateTrans(r, u, 0), S = []; S.push(c.clone()), S.push(P.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var h = new SuperMap.Geometry.Point(-.5 * s, -.5 * a), y = new SuperMap.Geometry.Point(.5 * s, -.5 * a), f = SuperMap.Plot.PlottingUtil.coordinateTrans(r, h, 0), g = SuperMap.Plot.PlottingUtil.coordinateTrans(r, y, 0); (S = []).push(f.clone()), S.push(g.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var b = new SuperMap.Geometry.Point(-.1 * s, .5 * a), M = new SuperMap.Geometry.Point(-.15 * s, -.5 * a), m = SuperMap.Plot.PlottingUtil.coordinateTrans(r, b, 0), d = SuperMap.Plot.PlottingUtil.coordinateTrans(r, M, 0); (S = []).push(m.clone()), S.push(d.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S); var v = new SuperMap.Geometry.Point(.15 * s, .5 * a), O = new SuperMap.Geometry.Point(.1 * s, -.5 * a), U = SuperMap.Plot.PlottingUtil.coordinateTrans(r, v, 0), w = SuperMap.Plot.PlottingUtil.coordinateTrans(r, O, 0); (S = []).push(U.clone()), S.push(w.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), this.scalePoints = []; var L = new SuperMap.Geometry.Point(r.x + .1 * s, r.y); L.isScalePoint = !0, L.tag = 0, this.scalePoints.push(L); var _ = SuperMap.Plot.PlottingUtil.circlePoint(r, .5 * s, .5 * s, 90); _.isScalePoint = !0, _.tag = 1, this.scalePoints.push(_), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l, o, i, n, r = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), a = (r = SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(), s = 0; if (0 == (s = 2 == r.length ? 2 * SuperMap.Plot.PlottingUtil.distance(r[0], r[1]) : SuperMap.Plot.PlottingUtil.distance(r[0], r[1]) + SuperMap.Plot.PlottingUtil.distance(r[0], r[2]))) return; if (0 == t) n = (i = this.scaleValues[2]) * s, l = (e.x - .1 * n - a.x) / s, this.scaleValues[0] = l, o = (e.y - a.y) / s, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var p = new SuperMap.Geometry.Point(a.x + s * l, a.y + s * o); i = 2 * (n = SuperMap.Plot.PlottingUtil.distance(p, e)) / s / 3, this.scaleValues[2] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol17804 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17803 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(0), l.scaleValues.push(0), l.scaleValues.push(.2)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues.push(0), this.scaleValues.push(0), this.scaleValues.push(.2)), 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = 0; if (0 != (l = 2 == t.length ? 2 * SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) : SuperMap.Plot.PlottingUtil.distance(t[0], t[1]) + SuperMap.Plot.PlottingUtil.distance(t[0], t[2]))) { var o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2], r = new SuperMap.Geometry.Point(e.x + l * o, e.y + l * i), a = l * n, s = new SuperMap.Geometry.Point(-.5 * a, .25 * a), p = new SuperMap.Geometry.Point(-.4 * a, .125 * a), u = new SuperMap.Geometry.Point(.4 * a, .125 * a), c = new SuperMap.Geometry.Point(.5 * a, .25 * a), P = SuperMap.Plot.PlottingUtil.coordinateTrans(r, s, 0), S = SuperMap.Plot.PlottingUtil.coordinateTrans(r, p, 0), h = SuperMap.Plot.PlottingUtil.coordinateTrans(r, u, 0), y = SuperMap.Plot.PlottingUtil.coordinateTrans(r, c, 0), f = []; f.push(P.clone()), f.push(S.clone()), f.push(h.clone()), f.push(y.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var g = new SuperMap.Geometry.Point(-.5 * a, -.25 * a), b = new SuperMap.Geometry.Point(-.4 * a, -.125 * a), M = new SuperMap.Geometry.Point(.4 * a, -.125 * a), m = new SuperMap.Geometry.Point(.5 * a, -.25 * a), d = SuperMap.Plot.PlottingUtil.coordinateTrans(r, g, 0), v = SuperMap.Plot.PlottingUtil.coordinateTrans(r, b, 0), O = SuperMap.Plot.PlottingUtil.coordinateTrans(r, M, 0), U = SuperMap.Plot.PlottingUtil.coordinateTrans(r, m, 0); (f = []).push(d.clone()), f.push(v.clone()), f.push(O.clone()), f.push(U.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.scalePoints = []; var w = new SuperMap.Geometry.Point(r.x + .1 * a, r.y); w.isScalePoint = !0, w.tag = 0, this.scalePoints.push(w); var L = SuperMap.Plot.PlottingUtil.circlePoint(r, .25 * a, .25 * a, 90); L.isScalePoint = !0, L.tag = 1, this.scalePoints.push(L), this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l, o, i, n, r = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), a = (r = SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(), s = 0; if (0 == (s = 2 == r.length ? 2 * SuperMap.Plot.PlottingUtil.distance(r[0], r[1]) : SuperMap.Plot.PlottingUtil.distance(r[0], r[1]) + SuperMap.Plot.PlottingUtil.distance(r[0], r[2]))) return; if (0 == t) n = (i = this.scaleValues[2]) * s, l = (e.x - .1 * n - a.x) / s, this.scaleValues[0] = l, o = (e.y - a.y) / s, this.scaleValues[1] = o; else if (1 == t) { l = this.scaleValues[0], o = this.scaleValues[1]; var p = new SuperMap.Geometry.Point(a.x + s * l, a.y + s * o); i = 4 * (n = SuperMap.Plot.PlottingUtil.distance(p, e)) / s, this.scaleValues[2] = i } } } }]), e }(); SuperMap.Plot.AlgoSymbol17803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17802 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), o = 0; 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : (this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), o = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD); var i = SuperMap.Plot.PlottingUtil.distance(e, l), n = [], r = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o), a = SuperMap.Plot.PlottingUtil.circlePoint(e, .08 * i, .08 * i, o + 90), s = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o + 180), p = SuperMap.Plot.PlottingUtil.circlePoint(e, .08 * i, .08 * i, o + 270); n.push(r.clone()), n.push(a.clone()), n.push(s.clone()), n.push(p.clone()), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n); var u = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o + 180), c = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o + 180); (n = []).push(u.clone()), n.push(c.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var P = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o + 180), S = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o + 180); (n = []).push(P.clone()), n.push(S.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var h = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o), y = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o); (n = []).push(h.clone()), n.push(y.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var f = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o), g = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o); (n = []).push(f.clone()), n.push(g.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), o = 0; 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : (this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), o = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD); var i = SuperMap.Plot.PlottingUtil.distance(e, l), n = [], r = SuperMap.Plot.PlottingUtil.circlePoint(e, .1 * i, .1 * i, 0); n.push(t[0].clone()), n.push(r.clone()), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, n); var a = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o + 180), s = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o + 180); (n = []).push(a.clone()), n.push(s.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var p = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o + 180), u = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o + 180); (n = []).push(p.clone()), n.push(u.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var c = SuperMap.Plot.PlottingUtil.circlePoint(e, .15 * i, .15 * i, o), P = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o); (n = []).push(c.clone()), n.push(P.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); var S = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o), h = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o); (n = []).push(S.clone()), n.push(h.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17800 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[t.length - 1].x, t[t.length - 1].y), o = 0; 2 == t.length ? this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t) : (this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL, t), o = SuperMap.Plot.PlottingUtil.radian(e, l) * SuperMap.Plot.PlottingUtil.RTOD); var i = SuperMap.Plot.PlottingUtil.distance(e, l), n = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o + 180), r = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o + 180), a = []; a.push(n.clone()), a.push(r.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); var s = SuperMap.Plot.PlottingUtil.circlePoint(e, .1 * i, .1 * i, o + 180), p = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o + 180); (a = []).push(s.clone()), a.push(p.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); var u = SuperMap.Plot.PlottingUtil.circlePoint(e, .1 * i, .1 * i, o), c = SuperMap.Plot.PlottingUtil.circlePoint(e, .58 * i, .58 * i, o); (a = []).push(u.clone()), a.push(c.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); var P = SuperMap.Plot.PlottingUtil.circlePoint(e, .78 * i, .78 * i, o), S = SuperMap.Plot.PlottingUtil.circlePoint(e, 1.26 * i, 1.26 * i, o); (a = []).push(P.clone()), a.push(S.clone()), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol17800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = e.AlgoSymbol17704 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "急", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol17703), e }(); SuperMap.Plot.AlgoSymbol17704 = o }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17703 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return l.subText = "加", l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); this.isEdit || (this.scaleValues = []); var o = []; if (this.scalePoints = [], t.length < 3) o.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), o.push(new SuperMap.Geometry.Point(t[1].x, t[1].y)); else { var i = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, t, this.scaleValues); this.scaleValues = i.scaleValues; for (var n = 0; n < i.scalePoints.length; n++)this.addScalePoint(i.scalePoints[n]); o = i.beizerPoints } if (!(o.length < 2)) { var r = e / 2; if (-1 !== SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, r).index) { var a, s; if (a = 2 == t.length ? 0 : t.length - 1, this.isEdit) s = this.scaleValues[4 * a] * e, isNaN(s) && (s = Math.abs(this.scaleValues[4 * a - 1] * e)); else { var p = .5 * this.getSubSymbolScaleValue(); s = p * e, this.scaleValues.push(p) } var u = r - s, c = r + s, P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, u); if (-1 !== P.index) { var S = P.pt; this.addScalePoint(new SuperMap.Geometry.Point(S.x, S.y)); var h = []; if (0 == P.index) h.push(o[0]); else for (var y = 0; y < P.index; y++)h.push(o[y]); h.push(S); var f = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, c); if (-1 !== f.index) { var g = f.pt, b = []; b.push(g); for (var M = f.index + 1; M < o.length; M++)b.push(o[M]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var m = h[h.length - 1], d = b[0], v = 180 * SuperMap.Plot.PlottingUtil.radian(m, d) / Math.PI, O = SuperMap.Plot.PlottingUtil.distance(m, d), U = new SuperMap.Geometry.Point((m.x + d.x) / 2, (m.y + d.y) / 2), w = this.subText; this.addText(w, U, O, v), this.finish() } } } } } } }, { key: "computeBeizer", value: function (t, e) { var l, o, i, n = []; if (this.scalePoints = [], this.isEdit) { (i = []).push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), i.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), l = this.scaleValues[0], o = this.scaleValues[1]; var r = t[0].x + e * l, a = t[0].y + e * o; i.push(new SuperMap.Geometry.Point(r, a)), this.addScalePoint(new SuperMap.Geometry.Point(r, a)); for (var s = 1; s < t.length - 1; s++)i.push(new SuperMap.Geometry.Point(t[s].x, t[s].y)), l = this.scaleValues[4 * s - 2], o = this.scaleValues[4 * s - 1], r = t[s].x + e * l, a = t[s].y + e * o, i.push(new SuperMap.Geometry.Point(r, a)), this.addScalePoint(new SuperMap.Geometry.Point(r, a)), l = this.scaleValues[4 * s], o = this.scaleValues[4 * s + 1], r = t[s].x + e * l, a = t[s].y + e * o, i.push(new SuperMap.Geometry.Point(r, a)), this.addScalePoint(new SuperMap.Geometry.Point(r, a)); var p = t.length - 1; i.push(new SuperMap.Geometry.Point(t[p].x, t[p].y)), l = this.scaleValues[4 * p - 2], o = this.scaleValues[4 * p - 1], r = t[p].x + e * l, a = t[p].y + e * o, i.push(new SuperMap.Geometry.Point(r, a)), this.addScalePoint(new SuperMap.Geometry.Point(r, a)), i.push(new SuperMap.Geometry.Point(t[p].x, t[p].y)), n = SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i) } else { if (this.scaleValues = [], i = [], (i = SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(t)).length < 3) return n; var u = i[2].x - i[0].x, c = i[2].y - i[0].y; l = u / e, o = c / e, this.scaleValues.push(l), this.scaleValues.push(o), this.addScalePoint(new SuperMap.Geometry.Point(i[2].x, i[2].y)); for (var P = 1; P < t.length - 1; P++) { l = (u = i[3 * P + 1].x - i[3 * P].x) / e, o = (c = i[3 * P + 1].y - i[3 * P].y) / e, this.scaleValues.push(l), this.scaleValues.push(o), this.addScalePoint(new SuperMap.Geometry.Point(i[3 * P + 1].x, i[3 * P + 1].y)); var S = (i[3 * P + 2].x - i[3 * P].x) / e, h = (i[3 * P + 2].y - i[3 * P].y) / e; this.scaleValues.push(S), this.scaleValues.push(h), this.addScalePoint(new SuperMap.Geometry.Point(i[3 * P + 2].x, i[3 * P + 2].y)) } l = (u = i[3 * (t.length - 1) + 1].x - i[3 * (t.length - 1)].x) / e, o = (c = i[3 * (t.length - 1) + 1].y - i[3 * (t.length - 1)].y) / e, this.scaleValues.push(l), this.scaleValues.push(o), this.addScalePoint(new SuperMap.Geometry.Point(i[3 * (t.length - 1) + 1].x, i[3 * (t.length - 1) + 1].y)), n = SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i) } return n } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (l = SuperMap.Plot.PlottingUtil.clearSamePts(l), t < 0 || t > 2 * l.length - 2) return; for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (2 * (l.length - 1) == t || 2 == l.length) { for (var n = this.computeBeizer(l, o), r = 0, a = 0; a < n.length - 1; a++)r += SuperMap.Plot.PlottingUtil.distance(n[a], n[a + 1]); var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(n, r / 2); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.distance(e, s.pt) / o; p > .45 && (p = .45), 2 == l.length ? this.scaleValues[0] = p : this.scaleValues[2 * t] = p } else { var u = -1; u = t % 2 == 0 ? t / 2 : (t + 1) / 2; var c = (e.x - l[u].x) / o, P = (e.y - l[u].y) / o; this.scaleValues[2 * t] = c, this.scaleValues[2 * t + 1] = P } } } }]), e }(); SuperMap.Plot.AlgoSymbol17703 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && l.scaleValues.push(.02), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); 0 === this.scaleValues.length && this.scaleValues.push(.02), this.isEdit || (this.scaleValues[0] = .2 * this.getSubSymbolScaleValue()); var l = e * this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var i = SuperMap.Plot.PlottingUtil.paraLine(o, l, !0), n = SuperMap.Plot.PlottingUtil.paraLine(o, l, !1); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); for (var r = { surroundLineFlag: !1, fillLimit: !0, lineTypeLimit: !0 }, a = this.getDashLinePts(n, 5 * l), s = 0; s < a.length; s++) { var p = a[s]; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, r) } this.finish() } } }, { key: "getDashLinePts", value: function (t, e) { var l = [], o = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (e > o) return l; for (var i = SuperMap.Plot.PlottingUtil.clonePoints(t), n = 2 * parseInt(o / (1.5 * e)), r = 0; r < n; r++) { var a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, e); if (-1 !== a.index) { if (0 == r % 2) { for (var s = [], p = 0; p < a.index + 1; p++)s.push(i[p].clone()); s.push(a.pt), l.push(s) } var u = []; u.push(a.pt); for (var c = a.index + 1; c < i.length; c++)u.push(i[c]); i = (i = []).concat(u) } } return i.length > 0 && l.push(i), l } }]), e }(); SuperMap.Plot.AlgoSymbol17700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17501 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= this.controlPoints.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(3 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); for (var l = e[0].x, o = e[0].x, i = e[0].y, n = e[0].y, r = 0; r < e.length; r++)l > e[r].x && (l = e[r].x), o < e[r].x && (o = e[r].x), i > e[r].y && (i = e[r].y), n < e[r].y && (n = e[r].y); var a = new SuperMap.Geometry.Point((o + l) / 2, (n + i) / 2), s = .33 * (o - l), p = .1 * (n - i), u = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 0), c = SuperMap.Plot.PlottingUtil.circlePoint(a, s, s, 180), P = []; P.push(new SuperMap.Geometry.Point(u.x, u.y)), P.push(new SuperMap.Geometry.Point(c.x, c.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var S = new SuperMap.Geometry.Point(a.x - 3 * s / 7, a.y + p), h = SuperMap.Plot.PlottingUtil.circlePoint(S, p, p, 60), y = SuperMap.Plot.PlottingUtil.circlePoint(S, p, p, 120); (P = []).push(new SuperMap.Geometry.Point(h.x, h.y)), P.push(new SuperMap.Geometry.Point(S.x, S.y)), P.push(new SuperMap.Geometry.Point(y.x, y.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var f = new SuperMap.Geometry.Point(a.x + 3 * s / 7, a.y + p), g = SuperMap.Plot.PlottingUtil.circlePoint(f, p, p, 60), b = SuperMap.Plot.PlottingUtil.circlePoint(f, p, p, 120); (P = []).push(new SuperMap.Geometry.Point(g.x, g.y)), P.push(new SuperMap.Geometry.Point(f.x, f.y)), P.push(new SuperMap.Geometry.Point(b.x, b.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol17500 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; if (e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : t.length > 3 && !0 === this.polylineConnectLocationPoint ? t : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), !(3 > (e = SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e); for (var l = e[0].x, o = e[0].x, i = e[0].y, n = e[0].y, r = 0; r < e.length; r++)l > e[r].x && (l = e[r].x), o < e[r].x && (o = e[r].x), i > e[r].y && (i = e[r].y), n < e[r].y && (n = e[r].y); var a = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, s = new SuperMap.Geometry.Point((o + l) / 2, (n + i) / 2), p = o - l, u = n - i, c = .1 * p, P = .1 * u, S = new SuperMap.Geometry.Point(s.x, s.y + P), h = new SuperMap.Geometry.Point(s.x - c, s.y - P), y = new SuperMap.Geometry.Point(s.x + c, s.y - P); c = .03 * p, P = .03 * u; var f = new SuperMap.Geometry.Point(S.x, S.y + P), g = new SuperMap.Geometry.Point(S.x - c, S.y - P), b = new SuperMap.Geometry.Point(S.x + c, S.y - P), M = []; M.push(new SuperMap.Geometry.Point(f.x, f.y)), M.push(new SuperMap.Geometry.Point(g.x, g.y)), M.push(new SuperMap.Geometry.Point(b.x, b.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, M, a); var m = new SuperMap.Geometry.Point(h.x, h.y + P), d = new SuperMap.Geometry.Point(h.x - c, h.y - P), v = new SuperMap.Geometry.Point(h.x + c, h.y - P), O = []; O.push(new SuperMap.Geometry.Point(m.x, m.y)), O.push(new SuperMap.Geometry.Point(d.x, d.y)), O.push(new SuperMap.Geometry.Point(v.x, v.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, O, a); var U = new SuperMap.Geometry.Point(y.x, y.y + P), w = new SuperMap.Geometry.Point(y.x - c, y.y - P), L = new SuperMap.Geometry.Point(y.x + c, y.y - P), _ = []; _.push(new SuperMap.Geometry.Point(U.x, U.y)), _.push(new SuperMap.Geometry.Point(w.x, w.y)), _.push(new SuperMap.Geometry.Point(L.x, L.y)), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, _, a), this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol17500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16700 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.2), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0] * e, i = this.scaleValues[1] * e, n = new SuperMap.Geometry.Point(t[0].x, t[0].y), r = new SuperMap.Geometry.Point(t[1].x, t[1].y), a = 180 * SuperMap.Plot.PlottingUtil.radian(n, r) / Math.PI, s = SuperMap.Plot.PlottingUtil.circlePoint(n, o, o, a + 90), p = SuperMap.Plot.PlottingUtil.circlePoint(n, i, i, a + 90), u = SuperMap.Plot.PlottingUtil.circlePoint(r, o, o, a + 90), c = SuperMap.Plot.PlottingUtil.circlePoint(r, i, i, a + 90), P = []; P.push(p), P.push(s), P.push(u), P.push(c), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, SuperMap.Plot.PlottingUtil.clonePoints(P)), (P = []).push(p), P.push(t[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, SuperMap.Plot.PlottingUtil.clonePoints(P)), (P = []).push(c), P.push(t[1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, SuperMap.Plot.PlottingUtil.clonePoints(P)); var S = new SuperMap.Geometry.Point(s.x, s.y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S); var h = new SuperMap.Geometry.Point(p.x, p.y); h.isScalePoint = !0, h.tag = 1, this.scalePoints.push(h), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (this.isEdit = !0, !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 == t) { var n = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; if (n < this.scaleValues[1]) return; this.scaleValues[0] = n } else if (1 == t) { var r = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; if (this.scaleValues[0] < r) return; this.scaleValues[1] = r } } } }]), e }(); SuperMap.Plot.AlgoSymbol16700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16203 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l), this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue()); for (var o = this.scaleValues[0] * e, i = this.scaleValues[1] * e, n = .01 * e, r = SuperMap.Plot.PlottingUtil.polylineDistance(l), a = 0, s = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !0, fill: !0, fillColor: "#ff0000", fillOpacity: 1 }, p = n, u = 0; p <= r; p += i, u++) { a = p + n; var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, a); if (-1 === c.index) return; for (var P = SuperMap.Plot.PlottingUtil.radian(c.pt, l[c.index + 1]) * SuperMap.Plot.PlottingUtil.RTOD, S = this.getSubSymbolPts(o), h = [], y = 0, f = S.length; y < f; y++)h.push(SuperMap.Plot.PlottingUtil.coordinateTrans(c.pt, S[y], P)); if (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, s), 0 === u) { var g = new SuperMap.Geometry.Point((h[0].x + h[1].x) / 2, (h[0].y + h[1].y) / 2); this.addScalePoint(g, 0) } else 1 === u && this.addScalePoint(c.pt, 1); this.finish() } } } }, { key: "getSubSymbolPts", value: function (t) { var e = .5 * t, l = []; return l.push(new SuperMap.Geometry.Point(.5 * e, 2 * e)), l.push(new SuperMap.Geometry.Point(.5 * -e, 2 * e)), l.push(new SuperMap.Geometry.Point(.5 * -e, -2 * e)), l.push(new SuperMap.Geometry.Point(.5 * e, -2 * e)), l } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = SuperMap.Plot.PlottingUtil.polylineDistance(l), i = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); i = SuperMap.Plot.PlottingUtil.clearSamePts(i); var n = .01 * o; if (0 === t) { var r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, n); if (-1 === r.index) return; var a = SuperMap.Plot.PlottingUtil.distance(e, r.pt); this.scaleValues[0] = a / o } else if (1 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, n); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, i); if (-1 === p.index) return; for (var u = 0, c = s.index + 1; c < p.index; c++)u += SuperMap.Plot.PlottingUtil.distance(i[c], i[c + 1]); u += SuperMap.Plot.PlottingUtil.distance(i[p.index], p.pt), u -= n, this.scaleValues[1] = u / o, u > o - o * this.scaleValues[0] - n && (this.scaleValues[1] = (o - o * this.scaleValues[0] - n) / o) } } } }]), e }(); SuperMap.Plot.AlgoSymbol16203 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o, i, n = this.scaleValues[0] * e; o = SuperMap.Plot.PlottingUtil.paraLine(t, n, !0), i = SuperMap.Plot.PlottingUtil.paraLine(t, n, !1); var r = new SuperMap.Geometry.Point(o[0].x, o[0].y); r.isScalePoint = !0, r.tag = 0, this.scalePoints.push(r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); var a = new SuperMap.Geometry.Point(t[0].x, t[0].y), s = new SuperMap.Geometry.Point(t[1].x, t[1].y), p = 180 * SuperMap.Plot.PlottingUtil.radian(a, s) / Math.PI, u = new SuperMap.Geometry.Point(.3 * e, 0), c = SuperMap.Plot.PlottingUtil.coordinateTrans(a, u, p), P = new SuperMap.Geometry.Point(0, .4 * n), S = new SuperMap.Geometry.Point(0, .2 * n), h = SuperMap.Plot.PlottingUtil.coordinateTrans(c, P, p), y = SuperMap.Plot.PlottingUtil.coordinateTrans(c, S, p), f = []; f.push(h), f.push(y), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, f); var g = new SuperMap.Geometry.Point(0, .2 * n), b = new SuperMap.Geometry.Point(0, -.4 * n), M = SuperMap.Plot.PlottingUtil.coordinateTrans(c, g, p), m = SuperMap.Plot.PlottingUtil.coordinateTrans(c, b, p); (f = []).push(M), f.push(m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var d = new SuperMap.Geometry.Point(.2 * n, -.2 * n), v = new SuperMap.Geometry.Point(-.2 * n, -.6 * n), O = SuperMap.Plot.PlottingUtil.coordinateTrans(c, d, p), U = SuperMap.Plot.PlottingUtil.coordinateTrans(c, v, p); (f = []).push(O), f.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var w = new SuperMap.Geometry.Point(-.2 * n, -.2 * n), L = new SuperMap.Geometry.Point(.2 * n, -.6 * n), _ = SuperMap.Plot.PlottingUtil.coordinateTrans(c, w, p), V = SuperMap.Plot.PlottingUtil.coordinateTrans(c, L, p); (f = []).push(_), f.push(V), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var A = new SuperMap.Geometry.Point(.7 * e, 0), T = SuperMap.Plot.PlottingUtil.coordinateTrans(a, A, p), E = SuperMap.Plot.PlottingUtil.coordinateTrans(T, P, p), x = SuperMap.Plot.PlottingUtil.coordinateTrans(T, S, p); (f = []).push(E), f.push(x), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, f); var j = SuperMap.Plot.PlottingUtil.coordinateTrans(T, g, p), Y = SuperMap.Plot.PlottingUtil.coordinateTrans(T, b, p); (f = []).push(j), f.push(Y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var C = SuperMap.Plot.PlottingUtil.coordinateTrans(T, d, p), I = SuperMap.Plot.PlottingUtil.coordinateTrans(T, v, p); (f = []).push(C), f.push(I), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f); var B = SuperMap.Plot.PlottingUtil.coordinateTrans(T, w, p), R = SuperMap.Plot.PlottingUtil.coordinateTrans(T, L, p); (f = []).push(B), f.push(R), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); if (0 == t) { var n = SuperMap.Plot.PlottingUtil.distance(l[0], e) / o; this.scaleValues[0] = n } } } }]), e }(); SuperMap.Plot.AlgoSymbol16202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16201 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0), l.scaleValues.push(.01)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length ? (this.scaleValues.push(.02), this.scaleValues.push(.1), this.scaleValues.push(0), this.scaleValues.push(.01)) : 3 === this.scaleValues.length && this.scaleValues.push(.5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l), this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); var o = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * o, !0), n = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * o, !1); i = SuperMap.Plot.PlottingUtil.clearSamePts(i), n = SuperMap.Plot.PlottingUtil.clearSamePts(n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); for (var r = e * this.scaleValues[1], a = e * this.scaleValues[3], s = 0, p = SuperMap.Plot.PlottingUtil.polylineDistance(l), u = a, c = 0; u <= p - a; u += r, c++) { s = u + a; var P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, s); if (-1 !== P.index) { var S = new SuperMap.Geometry.Point(P.pt.x, P.pt.y + .5 * o), h = []; h.push(P.pt), h.push(S), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, h), 0 === c ? this.addScalePoint(S) : 1 === c && this.addScalePoint(P.pt) } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, r = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (r = SuperMap.Plot.PlottingUtil.clearSamePts(r), 0 == t) { n = o * this.scaleValues[3]; var a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, n); if (-1 === a.index) return; var s = 2 * SuperMap.Plot.PlottingUtil.distance(e, a.pt); this.scaleValues[0] = s / o } else if (1 === t) { n = o * this.scaleValues[3]; var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, n); if (-1 === p.index) return; var u = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, r); if (-1 == u.index) return; for (var c = SuperMap.Plot.PlottingUtil.distance(p.pt, r[p.index + 1]), P = p.index + 1; P < u.index; P++)c += SuperMap.Plot.PlottingUtil.distance(r[P], r[P + 1]); c += SuperMap.Plot.PlottingUtil.distance(r[u.index], u.pt), this.scaleValues[1] = c / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol16201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol16200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(.1), l.scaleValues.push(0)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var o = this.getSubSymbolScaleValue(); this.isEdit || (this.scaleValues[0] = .5 * o); var i = this.scaleValues[0] * e, n = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * i, !0), r = SuperMap.Plot.PlottingUtil.paraLine(l, .5 * i, !1); n = SuperMap.Plot.PlottingUtil.clearSamePts(n), r = SuperMap.Plot.PlottingUtil.clearSamePts(r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r); for (var a = e * this.scaleValues[1], s = .5 * i, p = SuperMap.Plot.PlottingUtil.polylineDistance(l), u = s, c = 0; u < p; u += a, c++) { var P = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, u); if (-1 !== P.index) { var S = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, l[P.index + 1], P.pt), h = []; h.push(S.pntLeft), h.push(S.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h), 0 === c ? this.addScalePoint(S.pntRight, 0) : 1 === c && this.addScalePoint(P.pt, 1) } } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); for (var o = 0, i = 0; i < l.length - 1; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var n, r = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l); if (r = SuperMap.Plot.PlottingUtil.clearSamePts(r), 0 == t) { n = .5 * (o * this.scaleValues[0]); var a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, n); if (-1 === a.index) return; var s = SuperMap.Plot.PlottingUtil.distance(e, a.pt); this.scaleValues[0] = s / o } else if (1 === t) { n = .5 * (o * this.scaleValues[0]); var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, n); if (-1 === p.index) return; var u = SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e, r); if (-1 == u.index) return; for (var c = SuperMap.Plot.PlottingUtil.distance(p.pt, r[p.index + 1]), P = p.index + 1; P < u.index; P++)c += SuperMap.Plot.PlottingUtil.distance(r[P], r[P + 1]); c += SuperMap.Plot.PlottingUtil.distance(r[u.index], u.pt), this.scaleValues[1] = c / o } } } }]), e }(); SuperMap.Plot.AlgoSymbol16200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15900 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.02), l.scaleValues.push(1), l.scaleValues.push(.05)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); for (var l = 0, o = 0; o < t.length - 1; o++)l += SuperMap.Plot.PlottingUtil.distance(t[o], t[o + 1]); var i = l * this.scaleValues[0], n = l * this.scaleValues[2], r = !1; r = 0 === this.scaleValues[0]; for (var a = 0, s = 0; s < e.length - 1; s++)a += SuperMap.Plot.PlottingUtil.distance(e[s], e[s + 1]); if (0 !== a) { for (var p = 0; p <= a; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (-1 !== u.index) { var c = [], P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); r ? c.push(P.pntRight) : c.push(P.pntLeft); var S = p + n, h = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, S); if (-1 !== h.index) { var y = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[h.index + 1], h.pt); r ? c.push(y.pntLeft) : c.push(y.pntRight), Math.abs(p) < 1e-6 && (this.addScalePoint(c[0], 0), this.addScalePoint(h.pt, 1)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c) } } } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), i = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { var n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, o[1], o[0]), r = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n.pntRight, n.pntLeft), a = SuperMap.Plot.PlottingUtil.distance(r.projectPoint, l[0]); this.scaleValues[0] = a / i; var s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0], o[1], e); this.scaleValues[1] = s ? 1 : 0 } else { for (var p, u = -1, c = 0, P = o.length - 1; c < P; c++) { var S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, o[c], o[c + 1]); if (S.isOnline) { p = S.projectPoint, u = c; break } } if (-1 === u) return; for (var h = [], y = 0, f = u; y <= f; y++)h.push(o[y]); h.push(p); var g = SuperMap.Plot.PlottingUtil.polylineDistance(h); this.scaleValues[2] = g / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol15900 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15806 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.06), l.scaleValues.push(1), l.scaleValues.push(.1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (t.length >= this.minEditPts) { this.scalePoints = []; var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = .6 * i, r = this.scaleValues[2] * o, a = 0 === this.scaleValues[1], s = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 === s) return; for (var p = [], u = 0; u <= s; u += r) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(c.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt); if (a ? p.push(P.pntRight) : p.push(P.pntLeft), !((c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .65 * r)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, e[c.index + 1], c.pt), a ? p.push(P.pntRight) : p.push(P.pntLeft), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .8 * r)).index < 0 || (p.push(c.pt), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .5 * r)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt), a ? p.push(P.pntLeft) : p.push(P.pntRight), c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .2 * r), p.push(c.pt), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + .35 * r)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n, e[c.index + 1], c.pt), a ? p.push(P.pntRight) : p.push(P.pntLeft), (c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u + r)).index < 0 || (P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt), a ? p.push(P.pntRight) : p.push(P.pntLeft), !(Math.abs(u) <= 1e-6)))))))) { this.scalePoints = []; var S = new SuperMap.Geometry.Point(p[0].x, p[0].y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S), (S = new SuperMap.Geometry.Point(c.pt.x, c.pt.y)).isScalePoint = !0, S.tag = 1, this.scalePoints.push(S) } } } var h = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p); SuperMap.Plot.PlottingUtil.clearSamePts(h), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o, i, n = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), r = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { i = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, n[1], n[0]), o = SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x, e.y), i.pntRight, i.pntLeft); var a = SuperMap.Plot.PlottingUtil.distance(o.projectPoint, l[0]) / r; this.scaleValues[0] = a; var s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0], n[1], new SuperMap.Geometry.Point(e.x, e.y)); this.scaleValues[1] = s ? 1 : 0 } else { for (var p, u = -1, c = 0; c < n.length - 1; c++)if ((o = SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x, e.y), n[c], n[c + 1])).isOnline) { p = o.projectPoint, u = c; break } if (-1 === u) return void (this.scaleValues[2] = .05); for (var P = [], S = 0; S <= u; S++)P.push(n[S]); P.push(p); var h = SuperMap.Plot.PlottingUtil.polylineDistance(P); this.scaleValues[2] = h / r } } } }]), e }(); SuperMap.Plot.AlgoSymbol15806 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15804 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.029615), l.scaleValues.push(1), l.scaleValues.push(.12)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, r = !1; r = 0 === this.scaleValues[1]; var a = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== a) { for (var s = [], p = 0; p <= a; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (r ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); r = !r } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 0; y < S - 1; ++y) { var f = new SuperMap.Geometry.Point(s[y].x, s[y].y), g = new SuperMap.Geometry.Point(s[y + 1].x, s[y + 1].y); h = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var b = [], M = new SuperMap.Geometry.Point(.5 * (f.x + g.x), .5 * (f.y + g.y)), m = SuperMap.Plot.PlottingUtil.dirAngle(f, g) * SuperMap.Plot.PlottingUtil.RTOD, d = SuperMap.Plot.PlottingUtil.circlePoint(M, h, h, m + 90), v = 1.5 * h, O = SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, m + 260), U = SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, m + 280); b.push(O), b.push(d), b.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15804 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15803 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, r = !1; r = 0 === this.scaleValues[1]; var a = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== a) { for (var s = [], p = 0; p <= a; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (r ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); r = !r } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 0; y < S - 1; ++y) { var f = new SuperMap.Geometry.Point(s[y].x, s[y].y), g = new SuperMap.Geometry.Point(s[y + 1].x, s[y + 1].y); h = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var b = [], M = []; if (y !== S - 2) { var m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * h, s[y], s[y + 1]); b.push(m.pntLeft), b.push(m.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b) } if (0 !== y) { var d = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * h, s[y + 1], s[y]); M.push(d.pntLeft), M.push(d.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M) } } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15803 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15802 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, r = !1; r = 0 === this.scaleValues[1]; var a = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== a) { for (var s, p = [], u = 0; u <= a; u += n) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(c.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt); if (r ? p.push(P.pntRight) : p.push(P.pntLeft), Math.abs(u) <= 1e-6) { this.scalePoints = []; var S = new SuperMap.Geometry.Point(p[0].x, p[0].y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S) } else Math.abs(2 * n - u) <= 1e-6 && ((S = new SuperMap.Geometry.Point(c.pt.x, c.pt.y)).isScalePoint = !0, S.tag = 1, this.scalePoints.push(S)); r = !r } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); for (var h = p.length, y = 0, f = 0; f < h - 1; ++f) { var g = new SuperMap.Geometry.Point(p[f].x, p[f].y), b = new SuperMap.Geometry.Point(p[f + 1].x, p[f + 1].y); y = .3 * SuperMap.Plot.PlottingUtil.distance(g, b); var M = [], m = [], d = [], v = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35, p[f], p[f + 1]); s = new SuperMap.Geometry.Point((p[f].x + p[f + 1].x) / 2, (p[f].y + p[f + 1].y) / 2); var O = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * y, p[f], s); m.push(O.pntLeft, O.pntRight); var U = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * y, p[f], v); M.push(U.pntLeft, U.pntRight), d.push(new SuperMap.Geometry.Point(2 * s.x - U.pntLeft.x, 2 * s.y - U.pntLeft.y)), d.push(new SuperMap.Geometry.Point(2 * s.x - U.pntRight.x, 2 * s.y - U.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15802 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15801 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, r = !1; r = 0 === this.scaleValues[1]; var a = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== a) { for (var s = new SuperMap.Geometry.Point(0, 0), p = [], u = 0; u <= a; u += n) { var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(c.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[c.index + 1], c.pt); if (r ? p.push(P.pntRight) : p.push(P.pntLeft), Math.abs(u) <= 1e-6) { this.scalePoints = []; var S = new SuperMap.Geometry.Point(p[0].x, p[0].y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S) } else Math.abs(2 * n - u) <= 1e-6 && ((S = new SuperMap.Geometry.Point(c.pt.x, c.pt.y)).isScalePoint = !0, S.tag = 1, this.scalePoints.push(S)); r = !r } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); for (var h = p.length, y = 0, f = 0; f < h - 1; ++f) { var g = new SuperMap.Geometry.Point(p[f].x, p[f].y), b = new SuperMap.Geometry.Point(p[f + 1].x, p[f + 1].y); y = .3 * SuperMap.Plot.PlottingUtil.distance(g, b); var M = [], m = [], d = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35, p[f], p[f + 1]); s = new SuperMap.Geometry.Point((p[f].x + p[f + 1].x) / 2, (p[f].y + p[f + 1].y) / 2); var v = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * y, p[f], d); M.push(v.pntLeft), M.push(v.pntRight), m.push(new SuperMap.Geometry.Point(2 * s.x - v.pntLeft.x, 2 * s.y - v.pntLeft.y)), m.push(new SuperMap.Geometry.Point(2 * s.x - v.pntRight.x, 2 * s.y - v.pntRight.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15801 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15800 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.04), l.scaleValues.push(1), l.scaleValues.push(.12)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var l = this.scaleValues[0], o = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = l * o, n = this.scaleValues[2] * o * .5, r = !1; r = 0 === this.scaleValues[1]; var a = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== a) { for (var s = [], p = 0; p <= a; p += n) { var u = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, p); if (!(u.index < 0)) { var c = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[u.index + 1], u.pt); if (r ? s.push(c.pntRight) : s.push(c.pntLeft), Math.abs(p) <= 1e-6) { this.scalePoints = []; var P = new SuperMap.Geometry.Point(s[0].x, s[0].y); P.isScalePoint = !0, P.tag = 0, this.scalePoints.push(P) } else Math.abs(2 * n - p) <= 1e-6 && ((P = new SuperMap.Geometry.Point(u.pt.x, u.pt.y)).isScalePoint = !0, P.tag = 1, this.scalePoints.push(P)); r = !r } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); for (var S = s.length, h = 0, y = 0; y < S - 1; ++y) { var f = new SuperMap.Geometry.Point(s[y].x, s[y].y), g = new SuperMap.Geometry.Point(s[y + 1].x, s[y + 1].y); h = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var b = [], M = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.5, s[y], s[y + 1]), m = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * h, s[y], M); b.push(m.pntLeft), b.push(m.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b) } this.finish() } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; var o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), i = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { var n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1, o[1], o[0]), r = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n.pntRight, n.pntLeft), a = SuperMap.Plot.PlottingUtil.distance(r.projectPoint, l[0]); this.scaleValues[0] = a / i; var s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0], o[1], e); this.scaleValues[1] = s ? 1 : 0 } else { for (var p, u = -1, c = 0, P = o.length - 1; c < P; c++) { var S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, o[c], o[c + 1]); if (S.isOnline) { p = S.projectPoint, u = c; break } } if (-1 === u) return void (this.scaleValues[2] = .05); for (var h = [], y = 0, f = u; y <= f; y++)h.push(o[y]); h.push(p); var g = SuperMap.Plot.PlottingUtil.polylineDistance(h); this.scaleValues[2] = g / i } } } }]), e }(); SuperMap.Plot.AlgoSymbol15800 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15202 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(parseFloat(.1732)), l.scaleValues.push(.1), l.scaleValues.push(1)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var e = new SuperMap.Geometry.Point(t[0].x, t[0].y), l = new SuperMap.Geometry.Point(t[1].x, t[1].y), o = SuperMap.Plot.PlottingUtil.distance(e, l), i = this.scaleValues[0] * o, n = this.scaleValues[1] * o, r = this.scaleValues[2], a = null; if (1 === r) { var s = SuperMap.Plot.PlottingUtil.linePnt(l, e, o + i); a = new SuperMap.Geometry.Point(s.x, s.y) } else s = SuperMap.Plot.PlottingUtil.linePnt(l, e, o - i), a = new SuperMap.Geometry.Point(s.x, s.y); var p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5 * n, t[0], a), u = []; u.push(p.pntRight), u.push(t[0]), u.push(p.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); var c = [], P = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); if (1 === r) { var S = new SuperMap.Geometry.Point(2 * P.x - p.pntLeft.x, 2 * P.y - p.pntLeft.y); c.push(S), c.push(t[1]); var h = new SuperMap.Geometry.Point(2 * P.x - p.pntRight.x, 2 * P.y - p.pntRight.y); c.push(h) } else S = new SuperMap.Geometry.Point(2 * P.x - p.pntRight.x, 2 * P.y - p.pntRight.y), c.push(S), c.push(t[1]), h = new SuperMap.Geometry.Point(2 * P.x - p.pntLeft.x, 2 * P.y - p.pntLeft.y), c.push(h); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol15202 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15201 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol15201 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol15200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.05), l.scaleValues.push(0), l.scaleValues.push(.185)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); for (var l = 0, o = 0, i = e.length - 1; o < i; o++)l += SuperMap.Plot.PlottingUtil.distance(e[o], e[o + 1]); for (var n = 0, r = 0, a = t.length - 1; r < a; r++)n += SuperMap.Plot.PlottingUtil.distance(t[r], t[r + 1]); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); for (var s = this.scaleValues[0] * n, p = this.scaleValues[1], u = this.scaleValues[2] * n, c = .3 * u, P = u; P < l; P += u) { var S = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e); if (-1 === S.index) return void this.finish(); var h = P + c, y = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h, e); if (-1 === y.index) return void this.finish(); var f = [], g = []; f.push(S.pts); var b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[S.index], S.pts); 0 === p ? f.push(new SuperMap.Geometry.Point(b.pntLeft.x, b.pntLeft.y)) : f.push(new SuperMap.Geometry.Point(b.pntRight.x, b.pntRight.y)), g.push(y.pts); var M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[y.index], y.pts); if (0 === p ? g.push(new SuperMap.Geometry.Point(M.pntLeft.x, M.pntLeft.y)) : g.push(new SuperMap.Geometry.Point(M.pntRight.x, M.pntRight.y)), u === P) { this.scalePoints = []; var m = new SuperMap.Geometry.Point(f[1].x, f[1].y); m.isScalePoint = !0, m.tag = 0, this.scalePoints.push(m), (m = new SuperMap.Geometry.Point(f[0].x, f[0].y)).isScalePoint = !0, m.tag = 1, this.scalePoints.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; for (var o = 0, i = 0, n = l.length - 1; i < n; i++)o += SuperMap.Plot.PlottingUtil.distance(l[i], l[i + 1]); var r = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), a = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, o * this.scaleValues[2]); if (-1 === s.index) return; var p = SuperMap.Plot.PlottingUtil.distance(s.pt, a) / o, u = SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0], r[1], e); this.scaleValues[1] = u ? 1 : 0, this.scaleValues[0] = p } else if (1 === t) { for (var c = 0, P = -1, S = [], h = 0, y = r.length - 1; h < y; h++) { var f = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, r[h], r[h + 1]); if (f.isOnline) { var g = SuperMap.Plot.PlottingUtil.distance(f.projectPoint, this.controlPoints[1]); 0 == c ? (c = g, P = h, S = e) : g < c && (c = g, P = h, S = e) } } if (-1 == P) return; for (var b = 0, M = 0, m = P - 1; M < m; M++)b += SuperMap.Plot.PlottingUtil.distance(r[M], r[M + 1]); var d = (b += SuperMap.Plot.PlottingUtil.distance(S, r[P])) / o; d > .7 && (d = .7), this.scaleValues[2] = d } } } }]), e }(); SuperMap.Plot.AlgoSymbol15200 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol13700 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e; if (2 === t.length) e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, t); else if (3 === t.length) { var l = new SuperMap.Geometry.Point(t[0].x, t[0].y), o = new SuperMap.Geometry.Point(t[1].x, t[1].y), i = new SuperMap.Geometry.Point(t[2].x, t[2].y), n = SuperMap.Plot.PlottingUtil.distance(o, i); if (0 >= n) return; this.scaleValues = []; var r = SuperMap.Plot.PlottingUtil.distance(l, o) / n; this.scaleValues.push(r); var a = 180 * SuperMap.Plot.PlottingUtil.radian(l, o) / Math.PI; a > 90 ? a -= 90 : a = 270 + a, this.scaleValues.push(a * (Math.PI / 180)); var s = 180 * SuperMap.Plot.PlottingUtil.radian(l, i) / Math.PI; s > 90 ? s -= 90 : s = 270 + s, this.scaleValues.push(s * (Math.PI / 180)), e = this.scaleValues[0] * n; var p = this.scaleValues[1] * (180 / Math.PI) + 90, u = this.scaleValues[2] * (180 / Math.PI) + 90; p < u && (p += 360); for (var c, P = [], S = p; S >= u; S -= 4)c = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], e, e, S), P.push(c); S != u && (c = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], e, e, u), P.push(c)), this.controlPoints[2] = SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0], e, e, u), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol13700 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol12502 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol12500), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.5), this.scaleValues.push(.03)); for (var e = 0, l = 0; l < t.length - 1; l++)e += SuperMap.Plot.PlottingUtil.distance(t[l], t[l + 1]); var o = this.scaleValues[0]; this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); var i = this.scaleValues[1] * e, n = o * e, r = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, n); if (-1 !== r.index) { for (var a, s = r.pt, p = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [s, new SuperMap.Geometry.Point(s.x + i, s.y)]), u = 0; u < t.length - 1; u++) { var c, P = t[u]; a = t[u + 1]; var S = SuperMap.Plot.PlottingUtil.distance(s, P), h = SuperMap.Plot.PlottingUtil.distance(s, a); if (!(S < i && h < i)) if (S > i && h < i || S < i && h > i) { var y; y = S > i ? P : a, (c = this.getLineAddCircleIntersectPts(P, a, p)).length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c[0], y]) } else { var f = SuperMap.Plot.PlottingUtil.projectPoint(s, P, a); if (SuperMap.Plot.PlottingUtil.distance(s, f) >= i) this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, a]); else if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f, P, a)) { if ((c = this.getLineAddCircleIntersectPts(P, a, p)).length > 0) { c.unshift(P), c.push(a); for (var g = 0; g < c.length - 1; g++)this.isLineInCircle(c[g], c[g + 1], s, i) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [c[g], c[g + 1]]) } } else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P, a]) } } var b = 0; c && (b = SuperMap.Plot.PlottingUtil.radian(s, c[c.length - 1]) * SuperMap.Plot.PlottingUtil.RTOD); var M = []; a = SuperMap.Plot.PlottingUtil.circlePoint(s, -i, -i, b), M.push(a, s), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M); var m = SuperMap.Plot.PlottingUtil.radian(a, s) * SuperMap.Plot.PlottingUtil.RTOD, d = [], v = SuperMap.Plot.PlottingUtil.circlePoint(s, .8 * i, .8 * i, m + 170), O = SuperMap.Plot.PlottingUtil.circlePoint(s, .8 * i, .8 * i, m - 170); d.push(v), d.push(O), d.push(s); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, d, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [s, new SuperMap.Geometry.Point(s.x + i, s.y)]), this.addScalePoint(s, 0), this.addScalePoint(new SuperMap.Geometry.Point(s.x + i, s.y), 1), this.finish() } } } }, { key: "isLineInCircle", value: function (t, e, l, o) { var i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2); return o > SuperMap.Plot.PlottingUtil.distance(i, l) } }, { key: "getLineAddCircleIntersectPts", value: function (t, e, l) { var o = l.slice(); o[0].x === o[o.length - 1].x && o[0].y === o[o.length - 1].y || o.push(o[0]); for (var i, n = [], r = 0; r < o.length - 1; r++) { var a = o[r], s = o[r + 1], p = SuperMap.Plot.PlottingUtil.intersectLines(t, e, a, s); p.isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, t, e) && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, a, s) && n.push(p.intersectPoint) } for (var u = 0; u < n.length - 1; u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u], n[u + 1]) && (n.splice(u, 1), u--); if (t.x > e.x) for (var c = 0; c < n.length && c != n.length - 1; c++)n[c].x < n[c + 1].x && (i = n[c], n[c] = n[c + 1], n[c + 1] = i); else if (t.x < e.x) for (var P = 0; P < n.length && P != n.length - 1; P++)n[P].x > n[P + 1].x && (i = n[P], n[P] = n[P + 1], n[P + 1] = i); else if (t.y > e.y) for (var S = 0; S < n.length && S != n.length - 1; S++)n[S].y < n[S + 1].y && (i = n[S], n[S] = n[S + 1], n[S + 1] = i); else if (t.y < e.y) for (var h = 0; h < n.length && h != n.length - 1; h++)n[h].y > n[h + 1].y && (i = n[h], n[h] = n[h + 1], n[h + 1] = i); return n } }]), e }(); SuperMap.Plot.AlgoSymbol12502 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol12501 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.1), l.scaleValues.push(.03), l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { if (!this.isEdit) { var e = this.getSubSymbolScaleValue(); this.scaleValues[0] = e, this.scaleValues[1] = .5 * e, this.scaleValues[3] = .5 * e } var l = this.scaleValues[0], o = this.scaleValues[1], i = this.scaleValues[2], n = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); n = SuperMap.Plot.PlottingUtil.clearSamePts(n); var r = this.GetCurvePts(t, l, o); if (0 !== r.pt.length) { var a = SuperMap.Plot.PlottingUtil.polylineDistance(n) * i, s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(n, a); if (-1 !== s.index) { for (var p = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[3], u = [], c = 0; c < 360; c += 12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt, p, p, c)); u.push(u[0]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u); for (var P = [], S = [], h = 0; h < r.pt.length; h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u, r.pt[h]) ? S.length > 1 && (P.push(S), S = []) : S.push(r.pt[h]); S.length > 1 && P.push(S); for (var y = 0; y < P.length; y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P[y]); var f = new SuperMap.Geometry.Point(r.pt[0].x, r.pt[0].y); f.isScalePoint = !0, f.tag = 0, this.scalePoints.push(f); var g = new SuperMap.Geometry.Point(r.scalePt.x, r.scalePt.y); g.isScalePoint = !0, g.tag = 1, this.scalePoints.push(g); var b = new SuperMap.Geometry.Point(s.pt.x, s.pt.y); b.isScalePoint = !0, b.tag = 2, this.scalePoints.push(b); var M = SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x, s.pt.y), p, p, 0), m = new SuperMap.Geometry.Point(M.x, M.y); m.isScalePoint = !0, m.tag = 3, this.scalePoints.push(m), this.finish() } else this.finish() } else this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (null != e && !0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((l = SuperMap.Plot.PlottingUtil.clearSamePts(l)).length < this.minEditPts) return; if (4 > this.scaleValues.length) return; var o, i, n, r, a, s = SuperMap.Plot.PlottingUtil.polylineDistance(l), p = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l), u = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var c = new SuperMap.Geometry.Point(l[0].x, l[0].y), P = SuperMap.Plot.PlottingUtil.distance(c, u); i = 2 * P / s, this.scaleValues[1] = i } else if (1 === t) c = new SuperMap.Geometry.Point(l[0].x, l[0].y), o = (P = SuperMap.Plot.PlottingUtil.distance(c, u)) / s, this.scaleValues[0] = o; else if (2 == t) { var S = -1, h = 0; a = new SuperMap.Geometry.Point(0, 0), o = this.scaleValues[0], i = this.scaleValues[1]; for (var y = 0; y < p.length - 1; y++) { var f = p[y], g = p[y + 1], b = SuperMap.Plot.PlottingUtil.projectPoint(u, f, g); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(b, f, g)) { var M = SuperMap.Plot.PlottingUtil.distance(u, b); -1 == S ? (S = y, a = b, h = M) : h > M && (S = y, a = b, h = M) } } if (-1 == S || S > p.length - 1) return; r = SuperMap.Plot.PlottingUtil.polylineDistance(p); for (var m = [], d = 0; d < S; d++)m.push(p[d]); m.push(a); var v = SuperMap.Plot.PlottingUtil.polylineDistance(m); if (v < 0 || v > r) return; n = v / r, this.scaleValues[2] = n } else if (3 === t) { o = this.scaleValues[0], i = this.scaleValues[1], n = this.scaleValues[2]; var O = (r = SuperMap.Plot.PlottingUtil.polylineDistance(p)) * n; if (-1 === (a = SuperMap.Plot.PlottingUtil.findPointInPolyLine(p, O)).index) return; var U = SuperMap.Plot.PlottingUtil.distance(a.pt, e) / s; U > .4 && (U = .4), this.scaleValues[3] = U } } } }, { key: "GetCurvePts", value: function (t, e, l) { for (var o, i = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t), n = SuperMap.Plot.PlottingUtil.polylineDistance(i), r = n * e, a = n * l / 2, s = [], p = [], u = i[0], c = !1, P = i[0], S = 1; S < i.length; S++) { var h = i[S], y = SuperMap.Plot.PlottingUtil.distance(u, h); if (!(y < r && S !== i.length - 1)) { for (var f, g = parseInt(y / r), b = 0; b < g; b++) { f = SuperMap.Plot.PlottingUtil.linePnt(u, h, r), c || (o = f, c = !0); var M = this.GetCosPts2D(u, f, r, a); s = p.length > 1 && 0 === b ? this.ClearCurvePts2D(P, u, h, p, M, s) : s.concat(M), p = (p = []).concat(M), P = u, u = f } S === i.length - 1 && (f = i[i.length - 1], M = this.GetCosPts2D(u, f, r, a), s = p.length > 1 && M.length > 1 ? this.ClearCurvePts2D(P, u, h, p, M, s) : s.concat(M)) } } return { pt: s, scalePt: o } } }, { key: "GetCosPts2D", value: function (t, e, l, o) { for (var i = [], n = SuperMap.Plot.PlottingUtil.distance(t, e), r = l / 30, a = 0; a < n; a += r) { var s = a * (2 * Math.PI / l), p = o * Math.cos(s), u = new SuperMap.Geometry.Point(a, p), c = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, P = SuperMap.Plot.PlottingUtil.coordinateTrans(t, u, c); i.push(P) } return i } }, { key: "ClearCurvePts2D", value: function (t, e, l, o, i, n) { for (var r = 180 * SuperMap.Plot.PlottingUtil.radian(e, l) / Math.PI, a = 180 * SuperMap.Plot.PlottingUtil.radian(e, t) / Math.PI - r; a <= 0;)a += 360; var s = a / 2, p = l; p = SuperMap.Plot.PlottingUtil.rotateAngle(e, s * Math.PI / 180, p); for (var u = SuperMap.Plot.PlottingUtil.linePnt(e, p, 1), c = 0, P = 0; P < o.length; P++)if (SuperMap.Plot.PlottingUtil.pointIsRightToLine(e, u, o[P])) { c = P; break } if (0 != c) for (var S = 0; S < o.length - c; S++)n.slice(S, n.length - 1); for (var h = 0; h < i.length; h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e, u, i[h]) && n.push(i[h]); return n } }]), e }(); SuperMap.Plot.AlgoSymbol12501 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function () { function t(t, e) { for (var l = 0; l < e.length; l++) { var o = e[l]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } return function (e, l, o) { return l && t(e.prototype, l), o && t(e, o), e } }(); var i = e.AlgoSymbol12500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var l = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === l.scaleValues.length && (l.scaleValues.push(.5), l.scaleValues.push(.03)), l } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), o(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 === this.scaleValues.length && (this.scaleValues.push(.5), this.scaleValues.push(.03)); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = this.scaleValues[0]; this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); var o = this.scaleValues[1] * e, i = l * e, n = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, i); if (-1 !== n.index) { for (var r = n.pt, a = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [r, new SuperMap.Geometry.Point(r.x + o, r.y)]), s = 0; s < t.length - 1; s++) { var p, u = t[s], c = t[s + 1], P = SuperMap.Plot.PlottingUtil.distance(r, u), S = SuperMap.Plot.PlottingUtil.distance(r, c); if (!(P < o && S < o)) if (P > o && S < o || P < o && S > o) { var h; h = P > o ? u : c, (p = this.getLineAddCircleIntersectPts(u, c, a)).length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p[0], h]) } else { var y = SuperMap.Plot.PlottingUtil.projectPoint(r, u, c); if (SuperMap.Plot.PlottingUtil.distance(r, y) >= o) this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]); else if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y, u, c)) { if ((p = this.getLineAddCircleIntersectPts(u, c, a)).length > 0) { p.unshift(u), p.push(c); for (var f = 0; f < p.length - 1; f++)this.isLineInCircle(p[f], p[f + 1], r, o) || this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p[f], p[f + 1]]) } } else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, c]) } } this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [r, new SuperMap.Geometry.Point(r.x + o, r.y)]), this.scalePoints = []; var g = r; g.isScalePoint = !0, g.tag = 0, this.scalePoints.push(g); var b = new SuperMap.Geometry.Point(r.x + o, r.y); b.isScalePoint = !0, b.tag = 1, this.scalePoints.push(b), this.finish() } } } }, { key: "isLineInCircle", value: function (t, e, l, o) { var i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2); return o > SuperMap.Plot.PlottingUtil.distance(i, l) } }, { key: "getLineAddCircleIntersectPts", value: function (t, e, l) { var o = l.slice(); o[0].x === o[o.length - 1].x && o[0].y === o[o.length - 1].y || o.push(o[0]); for (var i, n = [], r = 0; r < o.length - 1; r++) { var a = o[r], s = o[r + 1], p = SuperMap.Plot.PlottingUtil.intersectLines(t, e, a, s); p.isIntersectLines && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, t, e) && SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint, a, s) && n.push(p.intersectPoint) } for (var u = 0; u < n.length - 1; u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u], n[u + 1]) && (n.splice(u, 1), u--); if (t.x > e.x) for (var c = 0; c < n.length && c != n.length - 1; c++)n[c].x < n[c + 1].x && (i = n[c], n[c] = n[c + 1], n[c + 1] = i); else if (t.x < e.x) for (var P = 0; P < n.length && P != n.length - 1; P++)n[P].x > n[P + 1].x && (i = n[P], n[P] = n[P + 1], n[P + 1] = i); else if (t.y > e.y) for (var S = 0; S < n.length && S != n.length - 1; S++)n[S].y < n[S + 1].y && (i = n[S], n[S] = n[S + 1], n[S + 1] = i); else if (t.y < e.y) for (var h = 0; h < n.length && h != n.length - 1; h++)n[h].y > n[h + 1].y && (i = n[h], n[h] = n[h + 1], n[h + 1] = i); return n } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var l = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), o = SuperMap.Plot.PlottingUtil.polylineDistance(l); if (0 === t) { for (var i = 0, n = -1, r = null, a = 0; a < l.length - 1; a++) { var s = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, l[a], l[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint, l[a], l[a + 1])) { var p = SuperMap.Plot.PlottingUtil.distance(s.projectPoint, e); 0 == i ? (i = p, n = a, r = s.projectPoint) : p < i && (i = p, n = a, r = s.projectPoint) } } if (-1 == n) return; for (var u = 0, c = 0; c < n; c++)u += SuperMap.Plot.PlottingUtil.distance(l[c], l[c + 1]); var P = (u += SuperMap.Plot.PlottingUtil.distance(r, l[n])) / o; P > 1 && (P = 1), this.scaleValues[0] = P } if (1 === t) { var S = this.scaleValues[0] * o, h = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, S); if (-1 === h.index) return; var y = SuperMap.Plot.PlottingUtil.distance(h.pt, e) / o; y > .4 && (y = .4), this.scaleValues[1] = y } } } }]), e }(); SuperMap.Plot.AlgoSymbol12500 = i }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbol6030601 = e.AlgoSymbol6031001 = e.AlgoSymbol6030501 = e.AlgoSymbol6030107 = e.AlgoSymbol6030106 = e.AlgoSymbol6030105 = e.AlgoSymbol6030104 = e.AlgoSymbol6030103 = e.AlgoSymbol6030102 = e.AlgoSymbol6030101 = e.AlgoSymbol5020802 = e.AlgoSymbol5035205 = e.AlgoSymbol5035203 = e.AlgoSymbol5035202 = e.AlgoSymbol5035201 = e.AlgoSymbol5034801 = e.AlgoSymbol5034203 = e.AlgoSymbol5034202 = e.AlgoSymbol5034201 = e.AlgoSymbol5033803 = e.AlgoSymbol5033802 = e.AlgoSymbol5033001 = e.AlgoSymbol5032003 = e.AlgoSymbol5031401 = e.AlgoSymbol5030301 = e.AlgoSymbol5022301 = e.AlgoSymbol5022002 = e.AlgoSymbol5022001 = e.AlgoSymbol5021803 = e.AlgoSymbol5010401 = e.AlgoSymbol4030401 = e.AlgoSymbol4030303 = e.AlgoSymbol4030302 = e.AlgoSymbol4030301 = e.AlgoSymbol3002501 = e.AlgoSymbol3002005 = e.AlgoSymbol3002004 = e.AlgoSymbol3002002 = e.AlgoSymbol3002001 = e.AlgoSymbol3001302 = e.AlgoSymbol3001301 = e.AlgoSymbol3001105 = e.AlgoSymbol3001104 = e.AlgoSymbol3001103 = e.AlgoSymbol3001102 = e.AlgoSymbol3001101 = e.AlgoSymbol3000809 = e.AlgoSymbol3000808 = e.AlgoSymbol3000807 = e.AlgoSymbol3000806 = e.AlgoSymbol3000805 = e.AlgoSymbol3000804 = e.AlgoSymbol3000803 = e.AlgoSymbol3000802 = e.AlgoSymbol3000801 = e.AlgoSymbol2122301 = e.AlgoSymbol2122101 = e.AlgoSymbol2121602 = e.AlgoSymbol2121601 = e.AlgoSymbol2121507 = e.AlgoSymbol2121506 = e.AlgoSymbol2121504 = e.AlgoSymbol2092101 = e.AlgoSymbol2091503 = e.AlgoSymbol60310 = e.AlgoSymbol60306 = e.AlgoSymbol60305 = e.AlgoSymbol60304 = e.AlgoSymbol2121505 = e.AlgoSymbol60301 = e.AlgoSymbol60205 = e.AlgoSymbol60203 = e.AlgoSymbol50352 = e.AlgoSymbol50342 = e.AlgoSymbol50308 = e.AlgoSymbol50226 = e.AlgoSymbol50225 = e.AlgoSymbol50223 = e.AlgoSymbol50108 = e.AlgoSymbol40304 = e.AlgoSymbol40302 = e.AlgoSymbol40104 = e.AlgoSymbol30026 = e.AlgoSymbol30025 = e.AlgoSymbol30020 = e.AlgoSymbol30014 = e.AlgoSymbol30013 = e.AlgoSymbol30012 = void 0, e.AlgoSymbol30011 = e.AlgoSymbol30010 = e.AlgoSymbol30009 = e.AlgoSymbol30008 = e.AlgoSymbol21221 = e.AlgoSymbol21216 = e.AlgoSymbol3020901 = e.AlgoSymbol3010304 = e.AlgoSymbol3010303 = e.AlgoSymbol3010301 = e.AlgoSymbol40100 = e.AlgoSymbol37700 = e.AlgoSymbol35200 = e.AlgoSymbol35000 = e.AlgoSymbol44100 = e.AlgoSymbol42200 = e.AlgoSymbol41202 = e.AlgoSymbol41201 = e.AlgoSymbol41200 = e.AlgoSymbol41100 = e.AlgoSymbol40101 = e.AlgoSymbol40900 = e.AlgoSymbol32300 = e.AlgoSymbol31401 = e.AlgoSymbol31400 = e.AlgoSymbol31301 = e.AlgoSymbol31300 = e.AlgoSymbol30800 = e.AlgoSymbol30201 = e.AlgoSymbol30200 = e.AlgoSymbol30100 = e.AlgoSymbol30002 = e.AlgoSymbol30000 = e.AlgoSymbol29800 = e.AlgoSymbol28301 = e.AlgoSymbol28300 = e.AlgoSymbol28200 = e.AlgoSymbol28100 = e.AlgoSymbol28000 = e.AlgoSymbol26601 = e.AlgoSymbol26600 = e.AlgoSymbol26500 = e.AlgoSymbol25400 = e.AlgoSymbol25000 = e.AlgoSymbol25200 = e.AlgoSymbol29103 = e.AlgoSymbol29101 = e.AlgoSymbol29000 = e.AlgoSymbol28900 = e.AlgoSymbol23902 = e.AlgoSymbol23901 = e.AlgoSymbol23800 = e.AlgoSymbol23500 = e.AlgoSymbol23400 = e.AlgoSymbol22000 = e.AlgoSymbol21800 = e.AlgoSymbol21600 = e.AlgoSymbol21504 = e.AlgoSymbol21503 = e.AlgoSymbol21502 = e.AlgoSymbol21501 = e.AlgoSymbol21900 = e.AlgoSymbol21500 = e.AlgoSymbol21401 = e.AlgoSymbol25201 = e.AlgoSymbol42500 = e.AlgoSymbol26501 = e.AlgoSymbol20301 = e.AlgoSymbol20300 = e.AlgoSymbol17806 = e.AlgoSymbol17805 = e.AlgoSymbol17804 = e.AlgoSymbol17803 = e.AlgoSymbol17802 = e.AlgoSymbol17801 = e.AlgoSymbol17800 = e.AlgoSymbol17704 = e.AlgoSymbol17703 = e.AlgoSymbol17700 = e.AlgoSymbol17501 = e.AlgoSymbol17500 = e.AlgoSymbol16700 = e.AlgoSymbol16203 = e.AlgoSymbol16202 = e.AlgoSymbol16201 = e.AlgoSymbol16200 = e.AlgoSymbol15900 = e.AlgoSymbol15806 = e.AlgoSymbol15804 = e.AlgoSymbol15803 = e.AlgoSymbol15802 = e.AlgoSymbol15801 = e.AlgoSymbol15800 = e.AlgoSymbol15202 = e.AlgoSymbol15201 = e.AlgoSymbol15200 = e.AlgoSymbol13700 = e.AlgoSymbol12502 = e.AlgoSymbol12501 = e.AlgoSymbol12500 = void 0; var o = l(187), i = l(186), n = l(185), r = l(184), a = l(183), s = l(182), p = l(181), u = l(180), c = l(179), P = l(178), S = l(177), h = l(176), y = l(175), f = l(174), g = l(173), b = l(172), M = l(171), m = l(170), d = l(169), v = l(168), O = l(167), U = l(166), w = l(165), L = l(164), _ = l(163), V = l(162), A = l(161), T = l(160), E = l(159), x = l(158), j = l(157), Y = l(156), C = l(155), I = l(154), B = l(153), R = l(152), G = l(151), N = l(150), D = l(149), k = l(148), z = l(147), F = l(146), K = l(145), W = l(144), J = l(143), q = l(142), Z = l(141), X = l(140), H = l(139), Q = l(138), $ = l(137), tt = l(136), et = l(135), lt = l(134), ot = l(133), it = l(132), nt = l(131), rt = l(130), at = l(129), st = l(128), pt = l(127), ut = l(126), ct = l(125), Pt = l(124), St = l(123), ht = l(122), yt = l(121), ft = l(120), gt = l(119), bt = l(118), Mt = l(117), mt = l(116), dt = l(115), vt = l(114), Ot = l(113), Ut = l(112), wt = l(111), Lt = l(110), _t = l(109), Vt = l(108), At = l(107), Tt = l(106), Et = l(105), xt = l(104), jt = l(103), Yt = l(102), Ct = l(101), It = l(100), Bt = l(99), Rt = l(98), Gt = l(97), Nt = l(96), Dt = l(95), kt = l(94), zt = l(93), Ft = l(92), Kt = l(91), Wt = l(90), Jt = l(89), qt = l(88), Zt = l(87), Xt = l(86), Ht = l(85), Qt = l(84), $t = l(83), te = l(82), ee = l(81), le = l(80), oe = l(79), ie = l(78), ne = l(77), re = l(76), ae = l(75), se = l(74), pe = l(73), ue = l(72), ce = l(71), Pe = l(70), Se = l(69), he = l(68), ye = l(67), fe = l(66), ge = l(65), be = l(64), Me = l(63), me = l(62), de = l(61), ve = l(60), Oe = l(59), Ue = l(58), we = l(57), Le = l(56), _e = l(55), Ve = l(54), Ae = l(53), Te = l(52), Ee = l(51), xe = l(50), je = l(49), Ye = l(48), Ce = l(47), Ie = l(46), Be = l(45), Re = l(44), Ge = l(43), Ne = l(42), De = l(41), ke = l(40), ze = l(39), Fe = l(38), Ke = l(37), We = l(36), Je = l(35), qe = l(34), Ze = l(33), Xe = l(32), He = l(31), Qe = l(30), $e = l(29), tl = l(28), el = l(27), ll = l(26), ol = l(25), il = l(24), nl = l(23), rl = l(22), al = l(21), sl = l(20), pl = l(19), ul = l(18), cl = l(17), Pl = l(16), Sl = l(15), hl = l(14), yl = l(13), fl = l(12), gl = l(11), bl = l(10), Ml = l(9), ml = l(8), dl = l(7), vl = l(6), Ol = l(5), Ul = l(4), wl = l(3), Ll = l(2), _l = l(1), Vl = l(0); e.AlgoSymbol12500 = o.AlgoSymbol12500, e.AlgoSymbol12501 = i.AlgoSymbol12501, e.AlgoSymbol12502 = n.AlgoSymbol12502, e.AlgoSymbol13700 = r.AlgoSymbol13700, e.AlgoSymbol15200 = a.AlgoSymbol15200, e.AlgoSymbol15201 = s.AlgoSymbol15201, e.AlgoSymbol15202 = p.AlgoSymbol15202, e.AlgoSymbol15800 = u.AlgoSymbol15800, e.AlgoSymbol15801 = c.AlgoSymbol15801, e.AlgoSymbol15802 = P.AlgoSymbol15802, e.AlgoSymbol15803 = S.AlgoSymbol15803, e.AlgoSymbol15804 = h.AlgoSymbol15804, e.AlgoSymbol15806 = y.AlgoSymbol15806, e.AlgoSymbol15900 = f.AlgoSymbol15900, e.AlgoSymbol16200 = g.AlgoSymbol16200, e.AlgoSymbol16201 = b.AlgoSymbol16201, e.AlgoSymbol16202 = M.AlgoSymbol16202, e.AlgoSymbol16203 = m.AlgoSymbol16203, e.AlgoSymbol16700 = d.AlgoSymbol16700, e.AlgoSymbol17500 = v.AlgoSymbol17500, e.AlgoSymbol17501 = O.AlgoSymbol17501, e.AlgoSymbol17700 = U.AlgoSymbol17700, e.AlgoSymbol17703 = w.AlgoSymbol17703, e.AlgoSymbol17704 = L.AlgoSymbol17704, e.AlgoSymbol17800 = _.AlgoSymbol17800, e.AlgoSymbol17801 = V.AlgoSymbol17801, e.AlgoSymbol17802 = A.AlgoSymbol17802, e.AlgoSymbol17803 = T.AlgoSymbol17803, e.AlgoSymbol17804 = E.AlgoSymbol17804, e.AlgoSymbol17805 = x.AlgoSymbol17805, e.AlgoSymbol17806 = j.AlgoSymbol17806, e.AlgoSymbol20300 = Y.AlgoSymbol20300, e.AlgoSymbol20301 = C.AlgoSymbol20301, e.AlgoSymbol26501 = I.AlgoSymbol26501, e.AlgoSymbol42500 = B.AlgoSymbol42500, e.AlgoSymbol25201 = R.AlgoSymbol25201, e.AlgoSymbol21401 = G.AlgoSymbol21401, e.AlgoSymbol21500 = N.AlgoSymbol21500, e.AlgoSymbol21900 = D.AlgoSymbol21900, e.AlgoSymbol21501 = k.AlgoSymbol21501, e.AlgoSymbol21502 = z.AlgoSymbol21502, e.AlgoSymbol21503 = F.AlgoSymbol21503, e.AlgoSymbol21504 = K.AlgoSymbol21504, e.AlgoSymbol21600 = W.AlgoSymbol21600, e.AlgoSymbol21800 = J.AlgoSymbol21800, e.AlgoSymbol22000 = q.AlgoSymbol22000, e.AlgoSymbol23400 = Z.AlgoSymbol23400, e.AlgoSymbol23500 = X.AlgoSymbol23500, e.AlgoSymbol23800 = H.AlgoSymbol23800, e.AlgoSymbol23901 = Q.AlgoSymbol23901, e.AlgoSymbol23902 = $.AlgoSymbol23902, e.AlgoSymbol28900 = tt.AlgoSymbol28900, e.AlgoSymbol29000 = et.AlgoSymbol29000, e.AlgoSymbol29101 = lt.AlgoSymbol29101, e.AlgoSymbol29103 = ot.AlgoSymbol29103, e.AlgoSymbol25200 = it.AlgoSymbol25200, e.AlgoSymbol25000 = nt.AlgoSymbol25000, e.AlgoSymbol25400 = rt.AlgoSymbol25400, e.AlgoSymbol26500 = at.AlgoSymbol26500, e.AlgoSymbol26600 = st.AlgoSymbol26600, e.AlgoSymbol26601 = pt.AlgoSymbol26601, e.AlgoSymbol28000 = ut.AlgoSymbol28000, e.AlgoSymbol28100 = ct.AlgoSymbol28100, e.AlgoSymbol28200 = Pt.AlgoSymbol28200, e.AlgoSymbol28300 = St.AlgoSymbol28300, e.AlgoSymbol28301 = ht.AlgoSymbol28301, e.AlgoSymbol29800 = yt.AlgoSymbol29800, e.AlgoSymbol30000 = ft.AlgoSymbol30000, e.AlgoSymbol30002 = gt.AlgoSymbol30002, e.AlgoSymbol30100 = bt.AlgoSymbol30100, e.AlgoSymbol30200 = Mt.AlgoSymbol30200, e.AlgoSymbol30201 = mt.AlgoSymbol30201, e.AlgoSymbol30800 = dt.AlgoSymbol30800, e.AlgoSymbol31300 = vt.AlgoSymbol31300, e.AlgoSymbol31301 = Ot.AlgoSymbol31301, e.AlgoSymbol31400 = Ut.AlgoSymbol31400, e.AlgoSymbol31401 = wt.AlgoSymbol31401, e.AlgoSymbol32300 = Lt.AlgoSymbol32300, e.AlgoSymbol40900 = _t.AlgoSymbol40900, e.AlgoSymbol40101 = Vt.AlgoSymbol40101, e.AlgoSymbol41100 = At.AlgoSymbol41100, e.AlgoSymbol41200 = Tt.AlgoSymbol41200, e.AlgoSymbol41201 = Et.AlgoSymbol41201, e.AlgoSymbol41202 = xt.AlgoSymbol41202, e.AlgoSymbol42200 = jt.AlgoSymbol42200, e.AlgoSymbol44100 = Yt.AlgoSymbol44100, e.AlgoSymbol35000 = Ct.AlgoSymbol35000, e.AlgoSymbol35200 = It.AlgoSymbol35200, e.AlgoSymbol37700 = Bt.AlgoSymbol37700, e.AlgoSymbol40100 = Rt.AlgoSymbol40100, e.AlgoSymbol3010301 = Gt.AlgoSymbol3010301, e.AlgoSymbol3010303 = Nt.AlgoSymbol3010303, e.AlgoSymbol3010304 = Dt.AlgoSymbol3010304, e.AlgoSymbol3020901 = kt.AlgoSymbol3020901, e.AlgoSymbol21216 = zt.AlgoSymbol21216, e.AlgoSymbol21221 = Ft.AlgoSymbol21221, e.AlgoSymbol30008 = Kt.AlgoSymbol30008, e.AlgoSymbol30009 = Wt.AlgoSymbol30009, e.AlgoSymbol30010 = Jt.AlgoSymbol30010, e.AlgoSymbol30011 = qt.AlgoSymbol30011, e.AlgoSymbol30012 = Zt.AlgoSymbol30012, e.AlgoSymbol30013 = Xt.AlgoSymbol30013, e.AlgoSymbol30014 = Ht.AlgoSymbol30014, e.AlgoSymbol30020 = Qt.AlgoSymbol30020, e.AlgoSymbol30025 = $t.AlgoSymbol30025, e.AlgoSymbol30026 = te.AlgoSymbol30026, e.AlgoSymbol40104 = ee.AlgoSymbol40104, e.AlgoSymbol40302 = le.AlgoSymbol40302, e.AlgoSymbol40304 = oe.AlgoSymbol40304, e.AlgoSymbol50108 = ie.AlgoSymbol50108, e.AlgoSymbol50223 = ne.AlgoSymbol50223, e.AlgoSymbol50225 = re.AlgoSymbol50225, e.AlgoSymbol50226 = ae.AlgoSymbol50226, e.AlgoSymbol50308 = se.AlgoSymbol50308, e.AlgoSymbol50342 = pe.AlgoSymbol50342, e.AlgoSymbol50352 = ue.AlgoSymbol50352, e.AlgoSymbol60203 = ce.AlgoSymbol60203, e.AlgoSymbol60205 = Pe.AlgoSymbol60205, e.AlgoSymbol60301 = Se.AlgoSymbol60301, e.AlgoSymbol2121505 = he.AlgoSymbol2121505, e.AlgoSymbol60304 = ye.AlgoSymbol60304, e.AlgoSymbol60305 = fe.AlgoSymbol60305, e.AlgoSymbol60306 = ge.AlgoSymbol60306, e.AlgoSymbol60310 = be.AlgoSymbol60310, e.AlgoSymbol2091503 = Me.AlgoSymbol2091503, e.AlgoSymbol2092101 = me.AlgoSymbol2092101, e.AlgoSymbol2121504 = de.AlgoSymbol2121504, e.AlgoSymbol2121506 = ve.AlgoSymbol2121506, e.AlgoSymbol2121507 = Oe.AlgoSymbol2121507, e.AlgoSymbol2121601 = Ue.AlgoSymbol2121601, e.AlgoSymbol2121602 = we.AlgoSymbol2121602, e.AlgoSymbol2122101 = Le.AlgoSymbol2122101, e.AlgoSymbol2122301 = _e.AlgoSymbol2122301, e.AlgoSymbol3000801 = Ve.AlgoSymbol3000801, e.AlgoSymbol3000802 = Ae.AlgoSymbol3000802, e.AlgoSymbol3000803 = Te.AlgoSymbol3000803, e.AlgoSymbol3000804 = Ee.AlgoSymbol3000804, e.AlgoSymbol3000805 = xe.AlgoSymbol3000805, e.AlgoSymbol3000806 = je.AlgoSymbol3000806, e.AlgoSymbol3000807 = Ye.AlgoSymbol3000807, e.AlgoSymbol3000808 = Ce.AlgoSymbol3000808, e.AlgoSymbol3000809 = Ie.AlgoSymbol3000809, e.AlgoSymbol3001101 = Be.AlgoSymbol3001101, e.AlgoSymbol3001102 = Re.AlgoSymbol3001102, e.AlgoSymbol3001103 = Ge.AlgoSymbol3001103, e.AlgoSymbol3001104 = Ne.AlgoSymbol3001104, e.AlgoSymbol3001105 = De.AlgoSymbol3001105, e.AlgoSymbol3001301 = ke.AlgoSymbol3001301, e.AlgoSymbol3001302 = ze.AlgoSymbol3001302, e.AlgoSymbol3002001 = Fe.AlgoSymbol3002001, e.AlgoSymbol3002002 = Ke.AlgoSymbol3002002, e.AlgoSymbol3002004 = We.AlgoSymbol3002004, e.AlgoSymbol3002005 = Je.AlgoSymbol3002005, e.AlgoSymbol3002501 = qe.AlgoSymbol3002501, e.AlgoSymbol4030301 = Ze.AlgoSymbol4030301, e.AlgoSymbol4030302 = Xe.AlgoSymbol4030302, e.AlgoSymbol4030303 = He.AlgoSymbol4030303, e.AlgoSymbol4030401 = Qe.AlgoSymbol4030401, e.AlgoSymbol5010401 = $e.AlgoSymbol5010401, e.AlgoSymbol5021803 = tl.AlgoSymbol5021803, e.AlgoSymbol5022001 = el.AlgoSymbol5022001, e.AlgoSymbol5022002 = ll.AlgoSymbol5022002, e.AlgoSymbol5022301 = ol.AlgoSymbol5022301, e.AlgoSymbol5030301 = il.AlgoSymbol5030301, e.AlgoSymbol5031401 = nl.AlgoSymbol5031401, e.AlgoSymbol5032003 = rl.AlgoSymbol5032003, e.AlgoSymbol5033001 = al.AlgoSymbol5033001, e.AlgoSymbol5033802 = sl.AlgoSymbol5033802, e.AlgoSymbol5033803 = pl.AlgoSymbol5033803, e.AlgoSymbol5034201 = ul.AlgoSymbol5034201, e.AlgoSymbol5034202 = cl.AlgoSymbol5034202, e.AlgoSymbol5034203 = Pl.AlgoSymbol5034203, e.AlgoSymbol5034801 = Sl.AlgoSymbol5034801, e.AlgoSymbol5035201 = hl.AlgoSymbol5035201, e.AlgoSymbol5035202 = yl.AlgoSymbol5035202, e.AlgoSymbol5035203 = fl.AlgoSymbol5035203, e.AlgoSymbol5035205 = gl.AlgoSymbol5035205, e.AlgoSymbol5020802 = bl.AlgoSymbol5020802, e.AlgoSymbol6030101 = Ml.AlgoSymbol6030101, e.AlgoSymbol6030102 = ml.AlgoSymbol6030102, e.AlgoSymbol6030103 = dl.AlgoSymbol6030103, e.AlgoSymbol6030104 = vl.AlgoSymbol6030104, e.AlgoSymbol6030105 = Ol.AlgoSymbol6030105, e.AlgoSymbol6030106 = Ul.AlgoSymbol6030106, e.AlgoSymbol6030107 = wl.AlgoSymbol6030107, e.AlgoSymbol6030501 = Ll.AlgoSymbol6030501, e.AlgoSymbol6031001 = _l.AlgoSymbol6031001, e.AlgoSymbol6030601 = Vl.AlgoSymbol6030601 }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.WJAlgoSymbolFactory = void 0, l(188); e.WJAlgoSymbolFactory = SuperMap.Plot.WJAlgoSymbolFactory = SuperMap.Plot.WJAlgoSymbolFactory || {}; SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol = function (t, e, l) { if (123 === t) switch (e) { case 20915: return new SuperMap.Plot.AlgoSymbol12500(l); case 2091501: return new SuperMap.Plot.AlgoSymbol12501(l); case 2091502: return new SuperMap.Plot.AlgoSymbol12502(l); case 2091503: return new SuperMap.Plot.AlgoSymbol2091503(l); case 2092101: return new SuperMap.Plot.AlgoSymbol2092101(l); case 21003: return new SuperMap.Plot.AlgoSymbol13700(l); case 21207: return new SuperMap.Plot.AlgoSymbol15200(l); case 2120701: return new SuperMap.Plot.AlgoSymbol15201(l); case 2120702: return new SuperMap.Plot.AlgoSymbol15202(l); case 21213: return new SuperMap.Plot.AlgoSymbol15800(l); case 2121301: return new SuperMap.Plot.AlgoSymbol15801(l); case 2121302: return new SuperMap.Plot.AlgoSymbol15802(l); case 2121303: return new SuperMap.Plot.AlgoSymbol15803(l); case 2121304: return new SuperMap.Plot.AlgoSymbol15804(l); case 2121305: return new SuperMap.Plot.AlgoSymbol15806(l); case 21214: return new SuperMap.Plot.AlgoSymbol15900(l); case 21215: return new SuperMap.Plot.AlgoSymbol16200(l); case 2121501: return new SuperMap.Plot.AlgoSymbol16201(l); case 2121502: return new SuperMap.Plot.AlgoSymbol16202(l); case 2121503: return new SuperMap.Plot.AlgoSymbol16203(l); case 2121504: return new SuperMap.Plot.AlgoSymbol2121504(l); case 2121505: return new SuperMap.Plot.AlgoSymbol2121505(l); case 2121506: return new SuperMap.Plot.AlgoSymbol2121506(l); case 2121507: return new SuperMap.Plot.AlgoSymbol2121507(l); case 21216: return new SuperMap.Plot.AlgoSymbol21216(l); case 2121601: return new SuperMap.Plot.AlgoSymbol2121601(l); case 2121602: return new SuperMap.Plot.AlgoSymbol2121602(l); case 21218: return new SuperMap.Plot.AlgoSymbol16700(l); case 21221: return new SuperMap.Plot.AlgoSymbol21221(l); case 2122101: return new SuperMap.Plot.AlgoSymbol2122101(l); case 21222: return new SuperMap.Plot.AlgoSymbol17500(l); case 2122201: return new SuperMap.Plot.AlgoSymbol17501(l); case 21223: return new SuperMap.Plot.AlgoSymbol17700(l); case 2122301: return new SuperMap.Plot.AlgoSymbol2122301(l); case 2122303: return new SuperMap.Plot.AlgoSymbol17703(l); case 2122304: return new SuperMap.Plot.AlgoSymbol17704(l); case 21224: return new SuperMap.Plot.AlgoSymbol17800(l); case 2122401: return new SuperMap.Plot.AlgoSymbol17801(l); case 2122402: return new SuperMap.Plot.AlgoSymbol17802(l); case 2122403: return new SuperMap.Plot.AlgoSymbol17803(l); case 2122404: return new SuperMap.Plot.AlgoSymbol17804(l); case 2122405: return new SuperMap.Plot.AlgoSymbol17805(l); case 2122406: return new SuperMap.Plot.AlgoSymbol17806(l); case 21605: return new SuperMap.Plot.AlgoSymbol20300(l); case 2160501: return new SuperMap.Plot.AlgoSymbol20301(l); case 30008: return new SuperMap.Plot.AlgoSymbol30008(l); case 3000801: return new SuperMap.Plot.AlgoSymbol3000801(l); case 3000802: return new SuperMap.Plot.AlgoSymbol3000802(l); case 3000803: return new SuperMap.Plot.AlgoSymbol3000803(l); case 3000804: return new SuperMap.Plot.AlgoSymbol3000804(l); case 3000805: return new SuperMap.Plot.AlgoSymbol3000805(l); case 3000806: return new SuperMap.Plot.AlgoSymbol3000806(l); case 3000807: return new SuperMap.Plot.AlgoSymbol3000807(l); case 3000808: return new SuperMap.Plot.AlgoSymbol3000808(l); case 3000809: return new SuperMap.Plot.AlgoSymbol3000809(l); case 30009: return new SuperMap.Plot.AlgoSymbol30009(l); case 30010: return new SuperMap.Plot.AlgoSymbol30010(l); case 30011: return new SuperMap.Plot.AlgoSymbol30011(l); case 3001101: return new SuperMap.Plot.AlgoSymbol3001101(l); case 3001102: return new SuperMap.Plot.AlgoSymbol3001102(l); case 3001103: return new SuperMap.Plot.AlgoSymbol3001103(l); case 3001104: return new SuperMap.Plot.AlgoSymbol3001104(l); case 3001105: return new SuperMap.Plot.AlgoSymbol3001105(l); case 30012: return new SuperMap.Plot.AlgoSymbol30012(l); case 30013: return new SuperMap.Plot.AlgoSymbol30013(l); case 50106: return new SuperMap.Plot.AlgoSymbol21900(l); case 3001301: return new SuperMap.Plot.AlgoSymbol3001301(l); case 3001302: return new SuperMap.Plot.AlgoSymbol3001302(l); case 30014: return new SuperMap.Plot.AlgoSymbol30014(l); case 30018: return new SuperMap.Plot.AlgoSymbol42500(l); case 30020: return new SuperMap.Plot.AlgoSymbol30020(l); case 3002001: return new SuperMap.Plot.AlgoSymbol3002001(l); case 3002002: return new SuperMap.Plot.AlgoSymbol3002002(l); case 3002004: return new SuperMap.Plot.AlgoSymbol3002004(l); case 3002005: return new SuperMap.Plot.AlgoSymbol3002005(l); case 30025: return new SuperMap.Plot.AlgoSymbol30025(l); case 5010301: return new SuperMap.Plot.AlgoSymbol3010301(l); case 50108: return new SuperMap.Plot.AlgoSymbol50108(l); case 5010303: return new SuperMap.Plot.AlgoSymbol3010303(l); case 5010304: return new SuperMap.Plot.AlgoSymbol3010304(l); case 5010401: return new SuperMap.Plot.AlgoSymbol5010401(l); case 5020801: return new SuperMap.Plot.AlgoSymbol3020901(l); case 5020802: return new SuperMap.Plot.AlgoSymbol5020802(l); case 5021803: return new SuperMap.Plot.AlgoSymbol5021803(l); case 5022001: return new SuperMap.Plot.AlgoSymbol5022001(l); case 5022002: return new SuperMap.Plot.AlgoSymbol5022002(l); case 50223: return new SuperMap.Plot.AlgoSymbol50223(l); case 5022301: return new SuperMap.Plot.AlgoSymbol5022301(l); case 3002501: return new SuperMap.Plot.AlgoSymbol3002501(l); case 30026: return new SuperMap.Plot.AlgoSymbol30026(l); case 40104: return new SuperMap.Plot.AlgoSymbol40104(l); case 40301: case 4030101: case 4030102: case 4030103: case 4030104: return new SuperMap.Plot.AlgoSymbol22000(l); case 40302: case 4030201: case 4030202: case 4030203: case 4030204: return new SuperMap.Plot.AlgoSymbol40302(l); case 40303: return new SuperMap.Plot.AlgoSymbol26501(l); case 4030301: return new SuperMap.Plot.AlgoSymbol4030301(l); case 4030302: return new SuperMap.Plot.AlgoSymbol4030302(l); case 4030303: return new SuperMap.Plot.AlgoSymbol4030303(l); case 40304: return new SuperMap.Plot.AlgoSymbol40304(l); case 4030401: return new SuperMap.Plot.AlgoSymbol4030401(l); case 50101: return new SuperMap.Plot.AlgoSymbol25201(l); case 5010101: return new SuperMap.Plot.AlgoSymbol21401(l); case 50102: return new SuperMap.Plot.AlgoSymbol21500(l); case 5010202: return new SuperMap.Plot.AlgoSymbol21502(l); case 5010203: return new SuperMap.Plot.AlgoSymbol21503(l); case 5010204: return new SuperMap.Plot.AlgoSymbol21504(l); case 50103: case 5010302: return new SuperMap.Plot.AlgoSymbol21600(l); case 50104: return new SuperMap.Plot.AlgoSymbol21800(l); case 50107: case 5010701: return new SuperMap.Plot.AlgoSymbol22000(l); case 50208: return new SuperMap.Plot.AlgoSymbol23400(l); case 50209: return new SuperMap.Plot.AlgoSymbol23500(l); case 50210: return new SuperMap.Plot.AlgoSymbol23800(l); case 50212: case 5021101: return new SuperMap.Plot.AlgoSymbol23901(l); case 5021102: return new SuperMap.Plot.AlgoSymbol23902(l); case 50220: return new SuperMap.Plot.AlgoSymbol28900(l); case 50221: return new SuperMap.Plot.AlgoSymbol29000(l); case 50225: return new SuperMap.Plot.AlgoSymbol50225(l); case 50226: return new SuperMap.Plot.AlgoSymbol50226(l); case 50222: return new SuperMap.Plot.AlgoSymbol29101(l); case 5022201: return new SuperMap.Plot.AlgoSymbol29103(l); case 50227: return new SuperMap.Plot.AlgoSymbol35200(l); case 50301: return new SuperMap.Plot.AlgoSymbol1004(l); case 5030101: return new SuperMap.Plot.AlgoSymbol25200(l); case 5030102: return new SuperMap.Plot.AlgoSymbol25201(l); case 50302: return new SuperMap.Plot.AlgoSymbol25000(l); case 50303: return new SuperMap.Plot.AlgoSymbol25400(l); case 5030301: return new SuperMap.Plot.AlgoSymbol5030301(l); case 50308: return new SuperMap.Plot.AlgoSymbol50308(l); case 50309: return new SuperMap.Plot.AlgoSymbol26500(l); case 50310: return new SuperMap.Plot.AlgoSymbol26600(l); case 5031001: return new SuperMap.Plot.AlgoSymbol26601(l); case 50312: return new SuperMap.Plot.AlgoSymbol28000(l); case 50313: return new SuperMap.Plot.AlgoSymbol28100(l); case 50314: return new SuperMap.Plot.AlgoSymbol28200(l); case 5031401: return new SuperMap.Plot.AlgoSymbol5031401(l); case 50315: return new SuperMap.Plot.AlgoSymbol28300(l); case 5031501: return new SuperMap.Plot.AlgoSymbol28301(l); case 50316: return new SuperMap.Plot.AlgoSymbol29800(l); case 50317: return new SuperMap.Plot.AlgoSymbol1006(l); case 50320: return new SuperMap.Plot.AlgoSymbol30000(l); case 5010201: return new SuperMap.Plot.AlgoSymbol21501(l); case 5032001: case 5032002: return new SuperMap.Plot.AlgoSymbol30002(l); case 50321: case 5032101: case 5032102: return new SuperMap.Plot.AlgoSymbol30100(l); case 50322: return new SuperMap.Plot.AlgoSymbol30200(l); case 5032201: return new SuperMap.Plot.AlgoSymbol30201(l); case 50330: case 50331: return new SuperMap.Plot.AlgoSymbol30800(l); case 5032003: return new SuperMap.Plot.AlgoSymbol5032003(l); case 5033001: return new SuperMap.Plot.AlgoSymbol5033001(l); case 50338: return new SuperMap.Plot.AlgoSymbol31300(l); case 5033801: return new SuperMap.Plot.AlgoSymbol31301(l); case 5033802: return new SuperMap.Plot.AlgoSymbol5033802(l); case 5033803: return new SuperMap.Plot.AlgoSymbol5033803(l); case 50339: return new SuperMap.Plot.AlgoSymbol31400(l); case 5033901: return new SuperMap.Plot.AlgoSymbol31401(l); case 50342: return new SuperMap.Plot.AlgoSymbol50342(l); case 5034201: return new SuperMap.Plot.AlgoSymbol5034201(l); case 5034202: return new SuperMap.Plot.AlgoSymbol5034202(l); case 5034203: return new SuperMap.Plot.AlgoSymbol5034203(l); case 50348: return new SuperMap.Plot.AlgoSymbol32300(l); case 5034801: return new SuperMap.Plot.AlgoSymbol5034801(l); case 50352: return new SuperMap.Plot.AlgoSymbol50352(l); case 5035201: return new SuperMap.Plot.AlgoSymbol5035201(l); case 5035202: return new SuperMap.Plot.AlgoSymbol5035202(l); case 5035203: return new SuperMap.Plot.AlgoSymbol5035203(l); case 5035204: return new SuperMap.Plot.AlgoSymbol21501(l); case 5035205: return new SuperMap.Plot.AlgoSymbol5035205(l); case 60203: return new SuperMap.Plot.AlgoSymbol60203(l); case 60205: return new SuperMap.Plot.AlgoSymbol60205(l); case 60301: return new SuperMap.Plot.AlgoSymbol60301(l); case 6030101: return new SuperMap.Plot.AlgoSymbol6030101(l); case 6030102: return new SuperMap.Plot.AlgoSymbol6030102(l); case 6030103: return new SuperMap.Plot.AlgoSymbol6030103(l); case 6030104: return new SuperMap.Plot.AlgoSymbol6030104(l); case 6030105: return new SuperMap.Plot.AlgoSymbol6030105(l); case 6030106: return new SuperMap.Plot.AlgoSymbol6030106(l); case 6030107: return new SuperMap.Plot.AlgoSymbol6030107(l); case 60304: return new SuperMap.Plot.AlgoSymbol60304(l); case 60305: return new SuperMap.Plot.AlgoSymbol60305(l); case 6030501: return new SuperMap.Plot.AlgoSymbol6030501(l); case 60306: return new SuperMap.Plot.AlgoSymbol60306(l); case 6030601: return new SuperMap.Plot.AlgoSymbol6030601(l); case 60310: return new SuperMap.Plot.AlgoSymbol60310(l); case 6031001: return new SuperMap.Plot.AlgoSymbol6031001(l); case 70109: return new SuperMap.Plot.AlgoSymbol40900(l); case 70201: return new SuperMap.Plot.AlgoSymbol41100(l); case 70202: return new SuperMap.Plot.AlgoSymbol41200(l); case 7020201: return new SuperMap.Plot.AlgoSymbol41201(l); case 7020202: return new SuperMap.Plot.AlgoSymbol41202(l); case 80202: return new SuperMap.Plot.AlgoSymbol42200(l); case 90105: return new SuperMap.Plot.AlgoSymbol35000(l); case 90107: return new SuperMap.Plot.AlgoSymbol35200(l); case 90305: return new SuperMap.Plot.AlgoSymbol37700(l); case 90404: return new SuperMap.Plot.AlgoSymbol40100(l); case 9040401: return new SuperMap.Plot.AlgoSymbol40101(l); case 90507: return new SuperMap.Plot.AlgoSymbol44100(l); default: return new SuperMap.Plot.AlgoSymbol(l) } }, SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer = function (t, e) { if (123 !== t) return !0; switch (e) { case 20915: case 2091501: case 2091502: case 2091503: case 2092101: case 21003: case 21207: case 2120701: case 2120702: case 21213: case 2121301: case 2121302: case 2121303: case 2121304: case 2121305: case 21214: case 21215: case 2121501: case 2121502: case 2121503: case 2121504: case 2121505: case 2121506: case 2121507: case 21216: case 2121601: case 2121602: case 21218: case 21221: case 2122101: case 21222: case 2122201: case 21223: case 2122301: case 2122303: case 2122304: case 21224: case 2122401: case 2122402: case 2122403: case 2122404: case 2122405: case 2122406: case 21605: case 2160501: case 30008: case 3000801: case 3000802: case 3000803: case 3000804: case 3000805: case 3000806: case 3000807: case 3000808: case 3000809: case 30009: case 30010: case 30011: case 3001101: case 3001102: case 3001103: case 3001104: case 3001105: case 30012: case 30013: case 3001301: case 3001302: case 30014: case 30018: case 30020: case 3002001: case 3002002: case 3002004: case 3002005: case 30025: case 5010301: case 5010303: case 5010304: case 5010401: case 50108: case 50106: case 5020802: case 5021803: case 5022001: case 5022002: case 50223: case 5022301: case 3002501: case 30026: case 40104: case 40301: case 4030101: case 4030102: case 4030103: case 4030104: case 40302: case 4030201: case 4030202: case 4030203: case 4030204: case 40303: case 4030301: case 4030302: case 4030303: case 40304: case 4030401: case 50101: case 5010101: case 50102: case 5010201: case 5010202: case 5010203: case 5010204: case 50103: case 5010302: case 50104: case 50107: case 5010701: case 50208: case 50209: case 50210: case 5021101: case 5021102: case 50212: case 50220: case 50221: case 50222: case 50225: case 50226: case 5022201: case 50227: case 50301: case 5030101: case 5030102: case 50302: case 50303: case 5030301: case 50308: case 50309: case 50310: case 5031001: case 50312: case 50313: case 50314: case 5031401: case 50315: case 5031501: case 50316: case 50317: case 50320: case 5032001: case 5032002: case 5032003: case 50321: case 5032101: case 5032102: case 50322: case 5032201: case 50330: case 5033001: case 50338: case 5033801: case 5033802: case 5033803: case 50339: case 5033901: case 50342: case 5034201: case 5034202: case 5034203: case 50348: case 5034801: case 50352: case 5035201: case 5035202: case 5035203: case 5035204: case 5035205: case 60203: case 60205: case 60301: case 6030101: case 6030102: case 6030103: case 6030104: case 6030105: case 6030106: case 6030107: case 60304: case 60305: case 6030501: case 60306: case 6030601: case 60310: case 6031001: case 70109: case 70201: case 70202: case 7020201: case 7020202: case 80202: case 90105: case 90107: case 90305: case 90404: case 9040401: case 9050301: case 90507: return !1; default: return !0 } }, SuperMap.Plot.WJAlgoSymbolFactory.getSymbolWayType = function (t, e) { if (123 !== t) return SuperMap.Plot.AddPoint_WayType.UNKNOWN; switch (e) { case 21003: case 21207: case 2120701: case 2121503: case 21218: case 30008: case 3000801: case 3000802: case 3000803: case 3000804: case 3000805: case 3000806: case 3000807: case 3000808: case 3000809: case 30009: case 5021803: case 5022001: case 5022002: case 40301: case 4030101: case 4030102: case 4030103: case 4030104: case 40303: case 4030301: case 4030302: case 4030303: case 50101: case 5010101: case 50102: case 5010201: case 5010202: case 5010203: case 5010204: case 50103: case 5010301: case 5010302: case 5010303: case 5010304: case 50107: case 5010701: case 50210: case 50220: case 50221: case 50225: case 5030102: case 50303: case 5030301: case 50309: case 50320: case 5032001: case 5032002: case 5032003: case 50321: case 5032101: case 5032102: case 50322: case 5032201: case 50330: case 5033001: case 5034203: case 5035201: case 5035204: case 60205: case 90105: return SuperMap.Plot.AddPoint_WayType.CURVE; case 20915: case 2091502: case 2092101: case 2120702: case 21216: case 2121601: case 2121602: case 21605: case 30010: case 30011: case 3001101: case 3001102: case 3001103: case 3001104: case 3001105: case 30012: case 30020: case 3002001: case 3002002: case 3002005: case 30025: case 3002501: case 30026: case 40104: case 40302: case 4030201: case 4030202: case 4030203: case 4030204: case 50227: case 5035205: case 60301: case 6030101: case 6030102: case 6030103: case 6030104: case 6030105: case 6030106: case 6030107: case 70202: case 7020201: case 7020202: case 90107: return SuperMap.Plot.AddPoint_WayType.POLYLINE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } }, SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols = function (t, e) { var l = []; if (123 !== t) return l; switch (e) { case 2092101: return l.push(new SuperMap.Plot.SubSymbol(123, 20921)), l; case 80202: return l.push(new SuperMap.Plot.SubSymbol(123, 2170201)), l; case 21221: case 2122101: return l.push(new SuperMap.Plot.SubSymbol(123, 21220)), l.push(new SuperMap.Plot.SubSymbol(123, 2122001)), l; case 3000801: return l.push(new SuperMap.Plot.SubSymbol(123, 3000106)), l; case 50209: return l.push(new SuperMap.Plot.SubSymbol(100, 1300)), l; case 3000802: return l.push(new SuperMap.Plot.SubSymbol(123, 3000107)), l; case 3000803: return l.push(new SuperMap.Plot.SubSymbol(123, 3000108)), l; case 3000804: return l.push(new SuperMap.Plot.SubSymbol(123, 20303)), l; case 3000805: case 3000808: case 3001301: case 4030103: case 4030202: case 5020802: case 5010201: case 2121504: case 50108: return l.push(new SuperMap.Plot.SubSymbol(123, 21601)), l; case 3000806: return l.push(new SuperMap.Plot.SubSymbol(123, 20404)), l; case 3000807: return l.push(new SuperMap.Plot.SubSymbol(123, 2010103)), l.push(new SuperMap.Plot.SubSymbol(123, 21601)), l; case 3000809: return l.push(new SuperMap.Plot.SubSymbol(123, 21601)), l.push(new SuperMap.Plot.SubSymbol(123, 30006)), l; case 30010: return l.push(new SuperMap.Plot.SubSymbol(123, 10305)), l; case 3001104: case 3001105: return l.push(new SuperMap.Plot.SubSymbol(123, 20404)), l; case 30012: return l.push(new SuperMap.Plot.SubSymbol(123, 30006)), l; case 3002005: return l.push(new SuperMap.Plot.SubSymbol(123, 21305)), l; case 40301: return l.push(new SuperMap.Plot.SubSymbol(123, 40201)), l; case 5021803: return l.push(new SuperMap.Plot.SubSymbol(123, 50218)), l; case 50225: return l.push(new SuperMap.Plot.SubSymbol(123, 10103)), l; case 50226: return l.push(new SuperMap.Plot.SubSymbol(123, 10103)), l.push(new SuperMap.Plot.SubSymbol(123, 10103)), l; case 5032003: return l.push(new SuperMap.Plot.SubSymbol(123, 20304)), l.push(new SuperMap.Plot.SubSymbol(123, 20301)), l; case 5030301: case 5022301: case 5033001: case 5034201: case 5034202: case 50342: return l.push(new SuperMap.Plot.SubSymbol(123, 10104)), l; case 5033802: return l.push(new SuperMap.Plot.SubSymbol(123, 20202)), l; case 5033803: return l.push(new SuperMap.Plot.SubSymbol(123, 20203)), l; case 5034203: return l.push(new SuperMap.Plot.SubSymbol(123, 2050302)), l; case 50352: return l.push(new SuperMap.Plot.SubSymbol(123, 50231)), l; case 5035202: return l.push(new SuperMap.Plot.SubSymbol(123, 21227)), l; case 5035205: return l.push(new SuperMap.Plot.SubSymbol(123, 2050308)), l; case 4030101: return l.push(new SuperMap.Plot.SubSymbol(123, 2030303)), l; case 4030102: case 4030201: return l.push(new SuperMap.Plot.SubSymbol(123, 20303)), l; case 4030104: case 4030203: return l.push(new SuperMap.Plot.SubSymbol(123, 20401)), l; case 4030204: return l.push(new SuperMap.Plot.SubSymbol(123, 10104)), l; case 40302: case 40303: case 4030301: case 4030302: case 4030303: return l.push(new SuperMap.Plot.SubSymbol(123, 40201)), l; case 5010202: return l.push(new SuperMap.Plot.SubSymbol(123, 2040301)), l; case 5010203: return l.push(new SuperMap.Plot.SubSymbol(123, 20501)), l; case 5010204: return l.push(new SuperMap.Plot.SubSymbol(123, 20503)), l; case 50107: return l.push(new SuperMap.Plot.SubSymbol(123, 10105)), l; case 5010701: return l.push(new SuperMap.Plot.SubSymbol(123, 5010503)), l; case 5021101: case 5021102: case 50212: return l.push(new SuperMap.Plot.SubSymbol(123, 2020301)), l; case 50227: return l.push(new SuperMap.Plot.SubSymbol(123, 10103)), l; case 5030101: return l.push(new SuperMap.Plot.SubSymbol(123, 2050302)), l; case 50315: return l.push(new SuperMap.Plot.SubSymbol(123, 21302)), l; case 5031501: return l.push(new SuperMap.Plot.SubSymbol(123, 21302)), l.push(new SuperMap.Plot.SubSymbol(123, 21302)), l; case 5032001: return l.push(new SuperMap.Plot.SubSymbol(123, 20301)), l.push(new SuperMap.Plot.SubSymbol(123, 20301)), l; case 5032002: return l.push(new SuperMap.Plot.SubSymbol(123, 20304)), l.push(new SuperMap.Plot.SubSymbol(123, 20304)), l; case 5035201: return l.push(new SuperMap.Plot.SubSymbol(123, 50231)), l; case 5035204: return l.push(new SuperMap.Plot.SubSymbol(123, 2040106)), l; case 60205: return l.push(new SuperMap.Plot.SubSymbol(123, 21503)), l.push(new SuperMap.Plot.SubSymbol(123, 21501)), l; case 60310: return l.push(new SuperMap.Plot.SubSymbol(123, 5023103)), l; case 6031001: return l.push(new SuperMap.Plot.SubSymbol(123, 2122701)), l.push(new SuperMap.Plot.SubSymbol(123, 2122702)), l.push(new SuperMap.Plot.SubSymbol(123, 2122703)), l; case 90107: return l.push(new SuperMap.Plot.SubSymbol(123, 2040301)), l; case 90305: return l.push(new SuperMap.Plot.SubSymbol(123, 50304)), l; default: return l } }, SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts = function (t, e) { if (123 !== t) return 0; switch (e) { case 20915: case 21003: case 21207: case 21213: case 21214: case 21215: case 21216: case 21218: case 21221: case 21222: case 21223: case 21224: case 21605: case 30008: case 30009: case 30010: case 30013: case 30014: case 30018: case 40301: case 40303: case 40304: case 50101: case 50102: case 50103: case 50104: case 50106: case 50107: case 50108: case 50208: case 50209: case 50210: case 50212: case 50220: case 50221: case 50222: case 50223: case 50226: case 50302: case 50303: case 50308: case 50309: case 50310: case 50312: case 50313: case 50314: case 50315: case 50320: case 50322: case 50330: case 50331: case 50338: case 50339: case 50342: case 50348: case 60203: case 60205: case 60304: case 60305: case 60306: case 70109: case 70201: case 70202: case 80202: case 90105: case 90107: case 90305: case 90404: case 90507: case 2091501: case 2091502: case 2091503: case 2092101: case 2120701: case 2120702: case 2121301: case 2121302: case 2121303: case 2121304: case 2121305: case 2121501: case 2121502: case 2121503: case 2121504: case 2121505: case 2121506: case 2121507: case 2121601: case 2121602: case 2122101: case 2122201: case 2122301: case 2122303: case 2122304: case 2122401: case 2122402: case 2122403: case 2122404: case 2122405: case 2122406: case 2160501: case 3000801: case 3000802: case 3000803: case 3000804: case 3000805: case 3000806: case 3000807: case 3000808: case 3000809: case 3001301: case 3001302: case 3002004: case 4030101: case 4030102: case 4030103: case 4030104: case 4030301: case 4030302: case 4030303: case 4030401: case 5010101: case 5010201: case 5010202: case 5010203: case 5010204: case 5010301: case 5010302: case 5010303: case 5010304: case 5010401: case 5010701: case 5020802: case 5021101: case 5021102: case 5021803: case 5022001: case 5022002: case 5022201: case 5022301: case 5030102: case 5030301: case 5031001: case 5031401: case 5031501: case 5032001: case 5032002: case 5032003: case 5032201: case 5033001: case 5033801: case 5033802: case 5033803: case 5033901: case 5034201: case 5034202: case 5034203: case 5034801: case 5035201: case 5035203: case 5035204: case 6030501: case 6030601: case 7020201: case 7020202: case 9040401: return 2; case 30011: case 30012: case 30020: case 30025: case 30026: case 40104: case 40302: case 50225: case 50227: case 50301: case 50316: case 50317: case 50352: case 60301: case 60310: case 3001101: case 3001102: case 3001103: case 3001104: case 3001105: case 3002001: case 3002002: case 3002005: case 3002501: case 4030201: case 4030202: case 4030203: case 4030204: case 5020801: case 5030101: case 5035202: case 5035205: case 6030101: case 6030102: case 6030103: case 6030104: case 6030105: case 6030106: case 6030107: case 6031001: return 3; default: return 0 } }, SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts = function (t, e) { if (123 !== t) return 0; switch (e) { case 21218: case 30018: case 50104: case 50302: case 50313: case 50338: case 50339: case 60203: case 60304: case 60305: case 60306: case 70201: case 90507: case 2120702: case 2121502: case 2121504: case 2121505: case 2121506: case 2121507: case 2122301: case 2160501: case 3001301: case 4030401: case 5010401: case 5031401: case 5031501: case 5033801: case 5033802: case 5033803: case 5033901: case 6030501: case 6030601: return 2; case 21003: case 21224: case 50212: case 50221: case 50222: case 50348: case 2122401: case 2122402: case 2122403: case 2122404: case 2122405: case 2122406: case 2021101: case 2021102: case 5022201: case 5034801: return 3; case 50312: case 50317: return 4; case 21221: case 21222: case 50225: case 50226: case 50316: case 50320: case 50322: case 2122101: case 2122201: case 5020801: case 5032001: case 5032002: case 5032003: case 5032201: return 30; case 50227: case 50352: case 60310: case 5022001: case 5022002: case 5030101: case 5035202: case 5035203: case 6031001: return 512; case 20915: case 21213: case 21214: case 21215: case 21216: case 21223: case 21605: case 30008: case 30010: case 30011: case 30012: case 30020: case 30025: case 30026: case 40104: case 40301: case 40302: case 40303: case 50101: case 50102: case 50106: case 50107: case 50108: case 50209: case 50210: case 50220: case 50223: case 50303: case 50309: case 50315: case 50330: case 50331: case 60301: case 70202: case 80202: case 2091501: case 2091502: case 2091503: case 2120701: case 2121301: case 2121302: case 2121303: case 2121304: case 2121305: case 2121501: case 2121503: case 2121601: case 2121602: case 2122303: case 2122304: case 3001101: case 3001102: case 3001103: case 3001104: case 3001105: case 3002001: case 3002002: case 3002004: case 3002005: case 3002501: case 4030101: case 4030102: case 4030103: case 4030104: case 4030201: case 4030202: case 4030203: case 4030204: case 5010101: case 5010701: case 5020802: case 5022301: case 5030102: case 5030301: case 5035205: case 6030101: case 6030102: case 6030103: case 6030104: case 6030105: case 6030106: case 6030107: case 7020201: case 7020202: return 1e3; case 21207: case 30009: case 30013: case 30014: case 40304: case 50103: case 50208: case 50301: case 50308: case 50310: case 50314: case 50342: case 60205: case 70109: case 90105: case 90107: case 90305: case 90404: case 2092101: case 3000801: case 3000802: case 3000803: case 3000804: case 3000805: case 3000806: case 3000807: case 3000808: case 3000809: case 3001302: case 4030301: case 4030302: case 4030303: case 5010201: case 5010202: case 5010203: case 5010204: case 5010301: case 5010302: case 5010303: case 5010304: case 5021803: case 5031001: case 5033001: case 5034201: case 5034202: case 5034203: case 5035201: case 5035204: case 9040401: return 9999; default: return 0 } }, SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle = function (t, e) { var l = {}; if (123 === t) switch (e) { case 50108: case 3000808: case 30012: case 3000801: case 3001101: case 30011: case 30013: case 30010: case 3001104: case 30014: case 30009: case 30008: l.color = l.strokeColor = "#0000ff"; break; case 3001302: case 40104: l.color = l.strokeColor = "#048e24"; break; case 30025: l.color = l.strokeColor = "#00ff00"; break; case 3002501: l.color = l.strokeColor = "#00c000" }return l }, SuperMap.Plot.WJAlgoSymbolFactory.canSetSubSymbol = function (t, e) { return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t, e).length > 0 || 123 === this.libID && (5030101 === e || 5020801 === e || 50208 === e || 50331 === e) }, SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol = function () { return !1 }, SuperMap.Plot.WJAlgoSymbolFactory.zoomCalSymbol = function (t, e) { if (123 !== t) return !1; switch (e) { case 50312: case 50313: case 50314: case 50348: return !0; default: return !1 } } }, function (t, e, l) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.WJAlgoSymbolFactory = void 0; var o = l(189); e.WJAlgoSymbolFactory = o.WJAlgoSymbolFactory }]);
-/***/ }),
+ /***/
+}),
/* 3 */
-/***/ (function(module, exports) {
+/***/ (function (module, exports) {
/*!
*
@@ -358,11 +369,12 @@
* license: undefined
* version: v9.1.0
*
- */!function(t){var e={};function o(l){if(e[l])return e[l].exports;var i=e[l]={i:l,l:!1,exports:{}};return t[l].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,l){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:l})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(l,i,function(e){return t[e]}.bind(null,i));return l},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=14)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol610100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(.01)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[1]=.0625*this.getSubSymbolScaleValue());for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=o*this.scaleValues[0],i=o*this.scaleValues[1],n=e[0],r=0,a=1;a<e.length;a++){var p=e[a],u=SuperMap.Plot.PlottingUtil.distance(n,p);switch(r%4){case 0:if(u>=l){var s=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,l);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n,s]),n=s,r++,a--}break;case 1:case 3:var P=3*i;if(u>P)n=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,P),r++,a--;break;case 2:if(u>2*i){var c=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,2*i);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[new SuperMap.Geometry.Point(.5*(n.x+c.x),.5*(n.y+c.y)),c],{fillLimit:!0,fill:!0}),n=c,r++,a--}}}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol610100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol530200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues[0]=.05,o.scaleValues[1]=.05),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=e*this.scaleValues[0],i=this.getLinePts(o,this.scaleValues[0],5/14),n=this.getLinePts(o,this.scaleValues[0],9/14),r=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol(r,l,a);var p=new SuperMap.Geometry.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),u=180*SuperMap.Plot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol(p,l,u);var s=SuperMap.Plot.PlottingUtil.circlePoint(p,.5*l,.5*l,u+90);this.addScalePoint(s);for(var P=[],c=[],S=[],y=0;y<=i.startIndex;y++)P.push(o[y]);if(P.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),i.endIndex<=n.startIndex){c.push(i.endPt);for(var h=i.endIndex+1;h<=n.startIndex;h++)c.push(o[h]);c.push(n.startPt),2===o.length&&SuperMap.Plot.PlottingUtil.distance(o[0],i.endPt)<=SuperMap.Plot.PlottingUtil.distance(o[0],n.startPt)&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),o.length>2&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}S.push(n.endPt);for(var f=n.endIndex+1;f<o.length;f++)S.push(o[f]);this.addArrow(S,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol",value:function(t,e,o){var l=this.getSubSymbolPts1(e);this.createSubSymbol1(t,e,o,l);var i=this.getSubSymbolPts2(e);this.createSubSymbol2(t,e,o,i)}},{key:"createSubSymbol2",value:function(t,e,o,l){for(var i=[],n=0;n<l.length;n++){var r=SuperMap.Plot.PlottingUtil.coordinateTrans(t,l[n],o);i.push(r)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}},{key:"createSubSymbol1",value:function(t,e,o,l){for(var i=[],n=0;n<l.length;n++){var r=SuperMap.Plot.PlottingUtil.coordinateTrans(t,l[n],o);i.push(r)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts1",value:function(t){var e=t/2,o=[];return o.push(new SuperMap.Geometry.Point(2*e,0)),o.push(new SuperMap.Geometry.Point(0,e)),o.push(new SuperMap.Geometry.Point(-2*e,0)),o.push(new SuperMap.Geometry.Point(0,-e)),o}},{key:"getSubSymbolPts2",value:function(t){var e=t/2,o=[];return o.push(new SuperMap.Geometry.Point(-e,e)),o.push(new SuperMap.Geometry.Point(e,e)),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(9*i/14,l),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;r<=.3&&(this.scaleValues[0]=r)}}}]),e}();SuperMap.Plot.AlgoSymbol530200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol530100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues[0]=.05,o.scaleValues[1]=.05),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var l=this.getLinePts(e,this.scaleValues[0]),i=new SuperMap.Geometry.Point((l.startPt.x+l.endPt.x)/2,(l.startPt.y+l.endPt.y)/2),n=180*SuperMap.Plot.PlottingUtil.radian(l.startPt,l.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(l.startPt,l.endPt);if(0<this.subSymbols.length)this.computeSubSymbol(this.subSymbols[0],i,r,n-90);else{var a=new SuperMap.Geometry.Point(-.5*r,.25*r),p=new SuperMap.Geometry.Point(-.5*r,-.25*r),u=SuperMap.Plot.PlottingUtil.coordinateTrans(i,a,n),s=SuperMap.Plot.PlottingUtil.coordinateTrans(i,p,n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,s]);var P=new SuperMap.Geometry.Point(-.5*r,.125*r),c=new SuperMap.Geometry.Point(.25*r,.125*r),S=new SuperMap.Geometry.Point(.5*r,0),y=new SuperMap.Geometry.Point(.25*r,-.125*r),h=new SuperMap.Geometry.Point(-.5*r,-.125*r),f=SuperMap.Plot.PlottingUtil.coordinateTrans(i,P,n),g=SuperMap.Plot.PlottingUtil.coordinateTrans(i,c,n),M=SuperMap.Plot.PlottingUtil.coordinateTrans(i,S,n),b=SuperMap.Plot.PlottingUtil.coordinateTrans(i,y,n),m=SuperMap.Plot.PlottingUtil.coordinateTrans(i,h,n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f,g,M,b,m])}for(var d=[],v=[],O=0;O<=l.startIndex;O++)d.push(e[O]);if(d.push(l.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),l.endIndex<=e.length){v.push(l.endPt);for(var U=l.endIndex+1;U<=e.length-1;U++)v.push(e[U]);this.addDovetailArrow(v,this.scaleValues[1])}var w=SuperMap.Plot.PlottingUtil.circlePoint(i,.5*r,.5*r,n+90);this.addScalePoint(w,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,l),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol530100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.02),o.scaleValues.push(.01)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.15*this.getSubSymbolScaleValue(o));var l=.5*o,i=180*SuperMap.Plot.PlottingUtil.radian(t[0],t[1])/Math.PI,n=o*this.scaleValues[0],r=Math.sqrt(n*n+n*n)+n/2,a=l-r,p=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e).pts,u=this.computeXPts(p,n,e,i),s=[];s.push(new SuperMap.Geometry.Point(u[0].x,u[0].y)),s.push(new SuperMap.Geometry.Point(u[1].x,u[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var P=[];P.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),P.push(new SuperMap.Geometry.Point(u[3].x,u[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,e).pts,S=this.computeXPts(c,n,e,i),y=[];y.push(new SuperMap.Geometry.Point(S[0].x,S[0].y)),y.push(new SuperMap.Geometry.Point(S[1].x,S[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var h=[];h.push(new SuperMap.Geometry.Point(S[2].x,S[2].y)),h.push(new SuperMap.Geometry.Point(S[3].x,S[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=l+r,g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f,e).pts,M=this.computeXPts(g,n,e,i),b=[];b.push(new SuperMap.Geometry.Point(M[0].x,M[0].y)),b.push(new SuperMap.Geometry.Point(M[1].x,M[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=[];m.push(new SuperMap.Geometry.Point(M[2].x,M[2].y)),m.push(new SuperMap.Geometry.Point(M[3].x,M[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=l-2*r,v=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d,e);if(v.bfind){for(var O=v.index,U=v.pts,w=[],L=0;L<=O;L++)w.push(e[L]);w.push(U);var _=o*this.scaleValues[1];this.computeDashLines(w,_)}var x=l+2*r,A=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(x,e);if(A.bfind){var Y=A.index,V=A.pts,E=[];if(Y<=e.length){E.push(V);for(var T=Y+1;T<=e.length-1;T++)E.push(e[T])}this.computeDashLines(E,_)}var j=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,90);this.addScalePoint(j,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.5*SuperMap.Plot.PlottingUtil.distance(o[0],e)/i;n>=.12&&(n=.12),this.scaleValues[0]=n}}},{key:"computeXPts",value:function(t,e,o,l){var i=[],n=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+45),r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+225);i.push(n),i.push(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+135),p=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+315);return i.push(a),i.push(p),i}},{key:"computeDashLines",value:function(t,e){for(var o=this.computeDashLine(2*e,2*e,t),l=.5*e,i=0;i<o.length;i++){var n=o[i];if(!((n=SuperMap.Plot.PlottingUtil.clearSamePts(n)).length<=1)){var r=new SuperMap.Geometry.Point(n[0].x,n[0].y),a=new SuperMap.Geometry.Point(n[n.length-1].x,n[n.length-1].y),p=180*SuperMap.Plot.PlottingUtil.radian(r,a)/Math.PI,u=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,p+90),s=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,p+270),P=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,p+90),c=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,p+270),S=[];S.push(u),S.push(s),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fillLimit:!0,fill:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol520500=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(.05)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.8*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.3*o);if(-1!==l.index){var i=l.pt,n=l.index,r=o*this.scaleValues[0]*.5,a=SuperMap.Plot.PlottingUtil.radian(i,e[n+1])*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.circlePoint(i,r,r,a+90),u=SuperMap.Plot.PlottingUtil.circlePoint(i,r,r,a-90),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,p),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,u);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]);var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.6*o);if(-1!==c.index){var S=c.pt,y=c.index,h=SuperMap.Plot.PlottingUtil.radian(S,e[y+1])*SuperMap.Plot.PlottingUtil.RTOD,f=SuperMap.Plot.PlottingUtil.circlePoint(S,r,r,h+90),g=SuperMap.Plot.PlottingUtil.circlePoint(S,r,r,h-90),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,S,f),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,S,g);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b.pntLeft,b.pntRight]),this.addDovetailArrow(e,this.scaleValues[1]),this.addScalePoint(g,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*i,l);if(!n.bfind)return;var r=2*SuperMap.Plot.PlottingUtil.distance(e,n.pts);this.scaleValues[0]=r/i}}}]),e}();SuperMap.Plot.AlgoSymbol520300=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520200=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol520100),l(e,[{key:"computeSubSymbol",value:function(t,e){var o=.5*e,l=[];l.push(t),l.push(new SuperMap.Geometry.Point(t.x+o,t.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,l);var i=.6*o,n=SuperMap.Plot.PlottingUtil.circlePoint(t,i,i,60),r=new SuperMap.Geometry.Point(t.x-.3*o,t.y),a=SuperMap.Plot.PlottingUtil.circlePoint(t,i,i,240),p=new SuperMap.Geometry.Point(t.x+.3*o,t.y),u=[];u.push(n),u.push(r),u.push(t),u.push(p),u.push(a),u.push(t),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0})}}]),e}();SuperMap.Plot.AlgoSymbol520200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.03)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=this.scaleValues[1]*e,l=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,l).pt,n=[],r=0;r<t.length;r++){if(r===t.length-1){n.push(t[r]);break}n.push(t[r]);var a=[];if(this.intersectLineAndCircle(t[r],t[r+1],i,o,a))for(var p=0;p<a.length;p++)n.push(a[p])}for(var u=[],s=0;s<n.length;s++){if(s===n.length-1){0!==u.length&&(u.push(n[s]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),u=[]);break}this.isLineInCircle(n[s],n[s+1],i,o)?0!==u.length&&(u.push(n[s]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),u=[]):u.push(n[s])}this.computeSubSymbol(i,2*o),this.addScalePoint(i);var P=new SuperMap.Geometry.Point(i.x+o,i.y);SuperMap.Plot.PlottingUtil.rotateAngle(i,30,P),this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var i=0,n=-1,r=null,a=0;a<o.length-1;a++){var p=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[a],o[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.projectPoint,o[a],o[a+1])){var u=SuperMap.Plot.PlottingUtil.distance(p.projectPoint,e);0===i?(i=u,n=a,r=p.projectPoint):u<i&&(i=u,n=a,r=p.projectPoint)}}if(-1===n)return;for(var s=0,P=0;P<n;P++)s+=SuperMap.Plot.PlottingUtil.distance(o[P],o[P+1]);var c=(s+=SuperMap.Plot.PlottingUtil.distance(r,o[n]))/l;c>1&&(c=1),this.scaleValues[0]=c}if(1===t){var S=this.scaleValues[0]*l,y=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,S);if(-1===y.index)return;var h=SuperMap.Plot.PlottingUtil.distance(y.pt,e)/l;h>.4&&(h=.4),this.scaleValues[1]=h}}}},{key:"intersectLineAndCircle",value:function(t,e,o,l,i){for(var n=!1,r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[o,new SuperMap.Geometry.Point(o.x+l,o.y)]),a=0;a<r.length-1;a++){var p=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,r[a],r[a+1],p)&&(n=!0,i.push(p))}if(t.x>e.x){for(var u=0;u<i.length&&u!==i.length-1;u++)if(i[u].x<i[u+1].x){var s=i[u];i[u]=i[u+1],i[u+1]=s}}else if(t.x<e.x){for(var P=0;P<i.length&&P!==i.length-1;P++)if(i[P].x>i[P+1].x){var c=i[P];i[P]=i[P+1],i[P+1]=c}}else if(t.y>e.y){for(var S=0;S<i.length&&S!==i.length-1;S++)if(i[S].y<i[S+1].y){var y=i[S];i[S]=i[S+1],i[S+1]=y}}else if(t.y<e.y)for(var h=0;h<i.length&&h!==i.length-1;h++)if(i[h].y>i[h+1].y){var f=i[h];i[h]=i[h+1],i[h+1]=f}return n}},{key:"isLineInCircle",value:function(t,e,o,l){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return SuperMap.Plot.PlottingUtil.distance(i,o)<l}},{key:"computeSubSymbol",value:function(t,e){var o=.5*e,l=[];l.push(t),l.push(new SuperMap.Geometry.Point(t.x+o,t.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,l);var i=[];i.push(new SuperMap.Geometry.Point(t.x-o,t.y)),i.push(new SuperMap.Geometry.Point(t.x+o,t.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var n=new SuperMap.Geometry.Point(t.x+.75*o,t.y),r=.8*o,a=SuperMap.Plot.PlottingUtil.circlePoint(n,r,r,155),p=SuperMap.Plot.PlottingUtil.circlePoint(n,r,r,205),u=[];u.push(a);var s=r*(Math.cos(25*SuperMap.Plot.PlottingUtil.DTOR)-Math.cos(75*SuperMap.Plot.PlottingUtil.DTOR));u.push(new SuperMap.Geometry.Point(n.x-s,n.y)),u.push(p),u.push(n),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0})}}]),e}();SuperMap.Plot.AlgoSymbol520100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol510100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.0375),o.scaleValues.push(.025)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.35*this.getSubSymbolScaleValue());var l=.5*o,i=180*SuperMap.Plot.PlottingUtil.radian(t[0],t[1])/Math.PI,n=o*this.scaleValues[0],r=Math.sqrt(n*n+n*n)+n/2,a=l-r,p=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e).pts,u=this.computeXPts(p,n,e,i),s=[];s.push(new SuperMap.Geometry.Point(u[0].x,u[0].y)),s.push(new SuperMap.Geometry.Point(u[1].x,u[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var P=[];P.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),P.push(new SuperMap.Geometry.Point(u[3].x,u[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,e).pts,S=this.computeXPts(c,n,e,i),y=[];y.push(new SuperMap.Geometry.Point(S[0].x,S[0].y)),y.push(new SuperMap.Geometry.Point(S[1].x,S[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var h=[];h.push(new SuperMap.Geometry.Point(S[2].x,S[2].y)),h.push(new SuperMap.Geometry.Point(S[3].x,S[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=l+r,g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f,e).pts,M=this.computeXPts(g,n,e,i),b=[];b.push(new SuperMap.Geometry.Point(M[0].x,M[0].y)),b.push(new SuperMap.Geometry.Point(M[1].x,M[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=[];m.push(new SuperMap.Geometry.Point(M[2].x,M[2].y)),m.push(new SuperMap.Geometry.Point(M[3].x,M[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);for(var d=l-2*r,v=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d,e),O=v.index,U=v.pts,w=[],L=0;L<=O;L++)w.push(e[L]);w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var _=l+2*r,x=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(_,e),A=x.index,Y=x.pts,V=[];if(A<=e.length){V.push(Y);for(var E=A+1;E<=e.length-1;E++)V.push(e[E])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var T=e[0],j=e[1],I=e[e.length-2],C=e[e.length-1],B=o*this.scaleValues[1],G=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,j,T),N=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,I,C),D=[];D.push(T),D.push(G.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,D);var R=[];R.push(C),R.push(N.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R);var k=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,90);this.addScalePoint(k,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.5*SuperMap.Plot.PlottingUtil.distance(o[0],e)/i;n>=.12&&(n=.12),this.scaleValues[0]=n}}},{key:"computeXPts",value:function(t,e,o,l){var i=[],n=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+45),r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+225);i.push(n),i.push(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+135),p=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+315);return i.push(a),i.push(p),i}}]),e}();SuperMap.Plot.AlgoSymbol510100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var i=l*(o.length-1)/4,n=new SuperMap.Geometry.Point(o[i].x,o[i].y),r=new SuperMap.Geometry.Point(o[i+1].x,o[i+1].y),a=new SuperMap.Geometry.Point((n.x+r.x)/2,(n.y+r.y)/2),p=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,s=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(a,4*u,4*u,p+270),c=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P,c])}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29101=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol29100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var i=Math.floor(l*o.length/4),n=new SuperMap.Geometry.Point(o[i].x,o[i].y),r=new SuperMap.Geometry.Point(o[i+1].x,o[i+1].y),a=new SuperMap.Geometry.Point((n.x+r.x)/2,(n.y+r.y)/2),p=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,s=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(a,4*u,4*u,p+270),c=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P,c],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(0),o.scaleValues.push(.185)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=0,l=0,i=e.length-1;l<i;l++)o+=SuperMap.Plot.PlottingUtil.distance(e[l],e[l+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var p=this.scaleValues[0]*n,u=this.scaleValues[1],s=this.scaleValues[2]*n,P=.3*s,c=s;c<o;c+=s){var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===S.index)return void this.finish();var y=c+P,h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e);if(-1===h.index)return void this.finish();var f=[],g=[];f.push(S.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,e[S.index],S.pts);0===u?f.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):f.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),g.push(h.pts);var b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,e[h.index],h.pts);if(0===u?g.push(new SuperMap.Geometry.Point(b.pntLeft.x,b.pntLeft.y)):g.push(new SuperMap.Geometry.Point(b.pntRight.x,b.pntRight.y)),s===c){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var l=0,i=0,n=o.length-1;i<n;i++)l+=SuperMap.Plot.PlottingUtil.distance(o[i],o[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,l*this.scaleValues[2]);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.distance(p.pt,a)/l,s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=s?1:0,this.scaleValues[0]=u}else if(1===t){for(var P=0,c=-1,S=[],y=0,h=r.length-1;y<h;y++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[y],r[y+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=g,c=y,S=e):g<P&&(P=g,c=y,S=e)}}if(-1==c)return;for(var M=0,b=0,m=c-1;b<m;b++)M+=SuperMap.Plot.PlottingUtil.distance(r[b],r[b+1]);var d=(M+=SuperMap.Plot.PlottingUtil.distance(S,r[c]))/l;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol15804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.029615),o.scaleValues.push(1),o.scaleValues.push(.12)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*l,n=this.scaleValues[2]*l*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var p=[],u=0;u<=a;u+=n){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(s.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[s.index+1],s.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var c=new SuperMap.Geometry.Point(p[0].x,p[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-u)<=1e-6&&((c=new SuperMap.Geometry.Point(s.pt.x,s.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var S=p.length,y=0,h=0;h<S-1;++h){var f=new SuperMap.Geometry.Point(p[h].x,p[h].y),g=new SuperMap.Geometry.Point(p[h+1].x,p[h+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=new SuperMap.Geometry.Point(.5*(f.x+g.x),.5*(f.y+g.y)),m=SuperMap.Plot.PlottingUtil.dirAngle(f,g)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.circlePoint(b,y,y,m+90),v=1.5*y,O=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+260),U=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+280);M.push(O),M.push(d),M.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15804=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol610100=e.AlgoSymbol530200=e.AlgoSymbol530100=e.AlgoSymbol520500=e.AlgoSymbol520300=e.AlgoSymbol520200=e.AlgoSymbol520100=e.AlgoSymbol510100=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol15200=e.AlgoSymbol15804=void 0;var l=o(11),i=o(10),n=o(9),r=o(8),a=o(7),p=o(6),u=o(5),s=o(4),P=o(3),c=o(2),S=o(1),y=o(0);e.AlgoSymbol15804=l.AlgoSymbol15804,e.AlgoSymbol15200=i.AlgoSymbol15200,e.AlgoSymbol29100=n.AlgoSymbol29100,e.AlgoSymbol29101=r.AlgoSymbol29101,e.AlgoSymbol510100=a.AlgoSymbol510100,e.AlgoSymbol520100=p.AlgoSymbol520100,e.AlgoSymbol520200=u.AlgoSymbol520200,e.AlgoSymbol520300=s.AlgoSymbol520300,e.AlgoSymbol520500=P.AlgoSymbol520500,e.AlgoSymbol530100=c.AlgoSymbol530100,e.AlgoSymbol530200=S.AlgoSymbol530200,e.AlgoSymbol610100=y.AlgoSymbol610100},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YJAlgoSymbolFactory=void 0,o(12);e.YJAlgoSymbolFactory=SuperMap.Plot.YJAlgoSymbolFactory=SuperMap.Plot.YJAlgoSymbolFactory||{};SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(999!==t)return new SuperMap.Plot.AlgoSymbol(o);switch(e){case 510100:return new SuperMap.Plot.AlgoSymbol510100(o);case 510200:return new SuperMap.Plot.AlgoSymbol15804(o);case 520100:return new SuperMap.Plot.AlgoSymbol520100(o);case 520200:return new SuperMap.Plot.AlgoSymbol520200(o);case 520300:return new SuperMap.Plot.AlgoSymbol520300(o);case 520400:return new SuperMap.Plot.AlgoSymbol15200(o);case 520500:return new SuperMap.Plot.AlgoSymbol520500(o);case 530100:return new SuperMap.Plot.AlgoSymbol530100(o);case 530200:return new SuperMap.Plot.AlgoSymbol530200(o);case 610100:return new SuperMap.Plot.AlgoSymbol610100(o);case 610200:return new SuperMap.Plot.AlgoSymbol29100(o);case 610300:return new SuperMap.Plot.AlgoSymbol29101(o);default:return new SuperMap.Plot.AlgoSymbol(o)}},SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer=function(t,e){if(999!==t)return!0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:return!1;default:return!0}},SuperMap.Plot.YJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(999===t)switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return 2;default:return 0}},SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:return 9999;case 610200:case 610300:return 3;default:return 0}},SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMap.Plot.YJAlgoSymbolFactory.canSetSubSymbol=function(t,e){return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t,e).length>0},SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1},SuperMap.Plot.YJAlgoSymbolFactory.zoomCalSymbol=function(){return!1}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YJAlgoSymbolFactory=void 0;var l=o(13);e.YJAlgoSymbolFactory=l.YJAlgoSymbolFactory}]);
+ */!function (t) { var e = {}; function o(l) { if (e[l]) return e[l].exports; var i = e[l] = { i: l, l: !1, exports: {} }; return t[l].call(i.exports, i, i.exports, o), i.l = !0, i.exports } o.m = t, o.c = e, o.d = function (t, e, l) { o.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: l }) }, o.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, o.t = function (t, e) { if (1 & e && (t = o(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var l = Object.create(null); if (o.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var i in t) o.d(l, i, function (e) { return t[e] }.bind(null, i)); return l }, o.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return o.d(e, "a", e), e }, o.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, o.p = "", o(o.s = 14) }([function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol610100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.05), o.scaleValues.push(.01)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = []; e = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue(), this.scaleValues[1] = .0625 * this.getSubSymbolScaleValue()); for (var o = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = o * this.scaleValues[0], i = o * this.scaleValues[1], n = e[0], r = 0, a = 1; a < e.length; a++) { var p = e[a], u = SuperMap.Plot.PlottingUtil.distance(n, p); switch (r % 4) { case 0: if (u >= l) { var s = SuperMap.Plot.PlottingUtil.findPointInLine(n, p, l); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [n, s]), n = s, r++, a-- } break; case 1: case 3: var P = 3 * i; if (u > P) n = SuperMap.Plot.PlottingUtil.findPointInLine(n, p, P), r++, a--; break; case 2: if (u > 2 * i) { var c = SuperMap.Plot.PlottingUtil.findPointInLine(n, p, 2 * i); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [new SuperMap.Geometry.Point(.5 * (n.x + c.x), .5 * (n.y + c.y)), c], { fillLimit: !0, fill: !0 }), n = c, r++, a-- } } } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol610100 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol530200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues[0] = .05, o.scaleValues[1] = .05), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues[0] = this.getSubSymbolScaleValue(), this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var l = e * this.scaleValues[0], i = this.getLinePts(o, this.scaleValues[0], 5 / 14), n = this.getLinePts(o, this.scaleValues[0], 9 / 14), r = new SuperMap.Geometry.Point((i.startPt.x + i.endPt.x) / 2, (i.startPt.y + i.endPt.y) / 2), a = 180 * SuperMap.Plot.PlottingUtil.radian(i.startPt, i.endPt) / Math.PI; this.createSubSymbol(r, l, a); var p = new SuperMap.Geometry.Point((n.startPt.x + n.endPt.x) / 2, (n.startPt.y + n.endPt.y) / 2), u = 180 * SuperMap.Plot.PlottingUtil.radian(n.startPt, n.endPt) / Math.PI; this.createSubSymbol(p, l, u); var s = SuperMap.Plot.PlottingUtil.circlePoint(p, .5 * l, .5 * l, u + 90); this.addScalePoint(s); for (var P = [], c = [], S = [], y = 0; y <= i.startIndex; y++)P.push(o[y]); if (P.push(i.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), i.endIndex <= n.startIndex) { c.push(i.endPt); for (var h = i.endIndex + 1; h <= n.startIndex; h++)c.push(o[h]); c.push(n.startPt), 2 === o.length && SuperMap.Plot.PlottingUtil.distance(o[0], i.endPt) <= SuperMap.Plot.PlottingUtil.distance(o[0], n.startPt) && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c), o.length > 2 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c) } S.push(n.endPt); for (var f = n.endIndex + 1; f < o.length; f++)S.push(o[f]); this.addArrow(S, this.scaleValues[1]), this.finish() } } }, { key: "createSubSymbol", value: function (t, e, o) { var l = this.getSubSymbolPts1(e); this.createSubSymbol1(t, e, o, l); var i = this.getSubSymbolPts2(e); this.createSubSymbol2(t, e, o, i) } }, { key: "createSubSymbol2", value: function (t, e, o, l) { for (var i = [], n = 0; n < l.length; n++) { var r = SuperMap.Plot.PlottingUtil.coordinateTrans(t, l[n], o); i.push(r) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } }, { key: "createSubSymbol1", value: function (t, e, o, l) { for (var i = [], n = 0; n < l.length; n++) { var r = SuperMap.Plot.PlottingUtil.coordinateTrans(t, l[n], o); i.push(r) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, i) } }, { key: "getSubSymbolPts1", value: function (t) { var e = t / 2, o = []; return o.push(new SuperMap.Geometry.Point(2 * e, 0)), o.push(new SuperMap.Geometry.Point(0, e)), o.push(new SuperMap.Geometry.Point(-2 * e, 0)), o.push(new SuperMap.Geometry.Point(0, -e)), o } }, { key: "getSubSymbolPts2", value: function (t) { var e = t / 2, o = []; return o.push(new SuperMap.Geometry.Point(-e, e)), o.push(new SuperMap.Geometry.Point(e, e)), o } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 !== t && 1 !== t) return; var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; var l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(9 * i / 14, l), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; r <= .3 && (this.scaleValues[0] = r) } } }]), e }(); SuperMap.Plot.AlgoSymbol530200 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol530100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues[0] = .05, o.scaleValues[1] = .05), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue(o), this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var l = this.getLinePts(e, this.scaleValues[0]), i = new SuperMap.Geometry.Point((l.startPt.x + l.endPt.x) / 2, (l.startPt.y + l.endPt.y) / 2), n = 180 * SuperMap.Plot.PlottingUtil.radian(l.startPt, l.endPt) / Math.PI, r = SuperMap.Plot.PlottingUtil.distance(l.startPt, l.endPt); if (0 < this.subSymbols.length) this.computeSubSymbol(this.subSymbols[0], i, r, n - 90); else { var a = new SuperMap.Geometry.Point(-.5 * r, .25 * r), p = new SuperMap.Geometry.Point(-.5 * r, -.25 * r), u = SuperMap.Plot.PlottingUtil.coordinateTrans(i, a, n), s = SuperMap.Plot.PlottingUtil.coordinateTrans(i, p, n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [u, s]); var P = new SuperMap.Geometry.Point(-.5 * r, .125 * r), c = new SuperMap.Geometry.Point(.25 * r, .125 * r), S = new SuperMap.Geometry.Point(.5 * r, 0), y = new SuperMap.Geometry.Point(.25 * r, -.125 * r), h = new SuperMap.Geometry.Point(-.5 * r, -.125 * r), f = SuperMap.Plot.PlottingUtil.coordinateTrans(i, P, n), g = SuperMap.Plot.PlottingUtil.coordinateTrans(i, c, n), M = SuperMap.Plot.PlottingUtil.coordinateTrans(i, S, n), b = SuperMap.Plot.PlottingUtil.coordinateTrans(i, y, n), m = SuperMap.Plot.PlottingUtil.coordinateTrans(i, h, n); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [f, g, M, b, m]) } for (var d = [], v = [], O = 0; O <= l.startIndex; O++)d.push(e[O]); if (d.push(l.startPt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d), l.endIndex <= e.length) { v.push(l.endPt); for (var U = l.endIndex + 1; U <= e.length - 1; U++)v.push(e[U]); this.addDovetailArrow(v, this.scaleValues[1]) } var w = SuperMap.Plot.PlottingUtil.circlePoint(i, .5 * r, .5 * r, n + 90); this.addScalePoint(w, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; var l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * i, l), r = 2 * SuperMap.Plot.PlottingUtil.distance(n.pts, e) / i; this.scaleValues[0] = r <= .5 ? r : .5 } } }]), e }(); SuperMap.Plot.AlgoSymbol530100 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol520500 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.02), o.scaleValues.push(.01)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue(o), this.scaleValues[1] = .15 * this.getSubSymbolScaleValue(o)); var l = .5 * o, i = 180 * SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) / Math.PI, n = o * this.scaleValues[0], r = Math.sqrt(n * n + n * n) + n / 2, a = l - r, p = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e).pts, u = this.computeXPts(p, n, e, i), s = []; s.push(new SuperMap.Geometry.Point(u[0].x, u[0].y)), s.push(new SuperMap.Geometry.Point(u[1].x, u[1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); var P = []; P.push(new SuperMap.Geometry.Point(u[2].x, u[2].y)), P.push(new SuperMap.Geometry.Point(u[3].x, u[3].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var c = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l, e).pts, S = this.computeXPts(c, n, e, i), y = []; y.push(new SuperMap.Geometry.Point(S[0].x, S[0].y)), y.push(new SuperMap.Geometry.Point(S[1].x, S[1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var h = []; h.push(new SuperMap.Geometry.Point(S[2].x, S[2].y)), h.push(new SuperMap.Geometry.Point(S[3].x, S[3].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var f = l + r, g = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f, e).pts, M = this.computeXPts(g, n, e, i), b = []; b.push(new SuperMap.Geometry.Point(M[0].x, M[0].y)), b.push(new SuperMap.Geometry.Point(M[1].x, M[1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var m = []; m.push(new SuperMap.Geometry.Point(M[2].x, M[2].y)), m.push(new SuperMap.Geometry.Point(M[3].x, M[3].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); var d = l - 2 * r, v = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d, e); if (v.bfind) { for (var O = v.index, U = v.pts, w = [], L = 0; L <= O; L++)w.push(e[L]); w.push(U); var _ = o * this.scaleValues[1]; this.computeDashLines(w, _) } var x = l + 2 * r, A = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(x, e); if (A.bfind) { var Y = A.index, V = A.pts, E = []; if (Y <= e.length) { E.push(V); for (var T = Y + 1; T <= e.length - 1; T++)E.push(e[T]) } this.computeDashLines(E, _) } var j = SuperMap.Plot.PlottingUtil.circlePoint(t[0], r, r, 90); this.addScalePoint(j, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; var l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = .5 * SuperMap.Plot.PlottingUtil.distance(o[0], e) / i; n >= .12 && (n = .12), this.scaleValues[0] = n } } }, { key: "computeXPts", value: function (t, e, o, l) { var i = [], n = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 45), r = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 225); i.push(n), i.push(r); var a = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 135), p = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 315); return i.push(a), i.push(p), i } }, { key: "computeDashLines", value: function (t, e) { for (var o = this.computeDashLine(2 * e, 2 * e, t), l = .5 * e, i = 0; i < o.length; i++) { var n = o[i]; if (!((n = SuperMap.Plot.PlottingUtil.clearSamePts(n)).length <= 1)) { var r = new SuperMap.Geometry.Point(n[0].x, n[0].y), a = new SuperMap.Geometry.Point(n[n.length - 1].x, n[n.length - 1].y), p = 180 * SuperMap.Plot.PlottingUtil.radian(r, a) / Math.PI, u = SuperMap.Plot.PlottingUtil.circlePoint(r, l, l, p + 90), s = SuperMap.Plot.PlottingUtil.circlePoint(r, l, l, p + 270), P = SuperMap.Plot.PlottingUtil.circlePoint(a, l, l, p + 90), c = SuperMap.Plot.PlottingUtil.circlePoint(a, l, l, p + 270), S = []; S.push(u), S.push(s), S.push(c), S.push(P), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, S, { fillLimit: !0, fill: !0 }) } } } }]), e }(); SuperMap.Plot.AlgoSymbol520500 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol520300 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.05), o.scaleValues.push(.05)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length ? (this.scaleValues[0] = .05, this.scaleValues[1] = .05) : 1 == this.scaleValues.length && (this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !1); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[0] = .8 * this.getSubSymbolScaleValue(o), this.scaleValues[1] = .5 * this.getSubSymbolScaleValue()); var l = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, .3 * o); if (-1 !== l.index) { var i = l.pt, n = l.index, r = o * this.scaleValues[0] * .5, a = SuperMap.Plot.PlottingUtil.radian(i, e[n + 1]) * SuperMap.Plot.PlottingUtil.RTOD, p = SuperMap.Plot.PlottingUtil.circlePoint(i, r, r, a + 90), u = SuperMap.Plot.PlottingUtil.circlePoint(i, r, r, a - 90), s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, i, p), P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, i, u); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s.pntLeft, s.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [P.pntLeft, P.pntRight]); var c = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, .6 * o); if (-1 !== c.index) { var S = c.pt, y = c.index, h = SuperMap.Plot.PlottingUtil.radian(S, e[y + 1]) * SuperMap.Plot.PlottingUtil.RTOD, f = SuperMap.Plot.PlottingUtil.circlePoint(S, r, r, h + 90), g = SuperMap.Plot.PlottingUtil.circlePoint(S, r, r, h - 90), M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, S, f), b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, S, g); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [M.pntLeft, M.pntRight]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [b.pntLeft, b.pntRight]), this.addDovetailArrow(e, this.scaleValues[1]), this.addScalePoint(g, 0), this.finish() } } } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (0 != t) return; var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.minEditPts > o.length) return; var l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o, !1); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6 * i, l); if (!n.bfind) return; var r = 2 * SuperMap.Plot.PlottingUtil.distance(e, n.pts); this.scaleValues[0] = r / i } } }]), e }(); SuperMap.Plot.AlgoSymbol520300 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol520200 = function (t) { function e() { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol520100), l(e, [{ key: "computeSubSymbol", value: function (t, e) { var o = .5 * e, l = []; l.push(t), l.push(new SuperMap.Geometry.Point(t.x + o, t.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, l); var i = .6 * o, n = SuperMap.Plot.PlottingUtil.circlePoint(t, i, i, 60), r = new SuperMap.Geometry.Point(t.x - .3 * o, t.y), a = SuperMap.Plot.PlottingUtil.circlePoint(t, i, i, 240), p = new SuperMap.Geometry.Point(t.x + .3 * o, t.y), u = []; u.push(n), u.push(r), u.push(t), u.push(p), u.push(a), u.push(t), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, u, { fillLimit: !0, fill: !0 }) } }]), e }(); SuperMap.Plot.AlgoSymbol520200 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol520100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.5), o.scaleValues.push(.03)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues[1] = this.getSubSymbolScaleValue()); for (var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = this.scaleValues[1] * e, l = this.scaleValues[0] * e, i = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, l).pt, n = [], r = 0; r < t.length; r++) { if (r === t.length - 1) { n.push(t[r]); break } n.push(t[r]); var a = []; if (this.intersectLineAndCircle(t[r], t[r + 1], i, o, a)) for (var p = 0; p < a.length; p++)n.push(a[p]) } for (var u = [], s = 0; s < n.length; s++) { if (s === n.length - 1) { 0 !== u.length && (u.push(n[s]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), u = []); break } this.isLineInCircle(n[s], n[s + 1], i, o) ? 0 !== u.length && (u.push(n[s]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u), u = []) : u.push(n[s]) } this.computeSubSymbol(i, 2 * o), this.addScalePoint(i); var P = new SuperMap.Geometry.Point(i.x + o, i.y); SuperMap.Plot.PlottingUtil.rotateAngle(i, 30, P), this.addScalePoint(P), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { if (this.scalePoints.length <= t) return; var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; var l = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { for (var i = 0, n = -1, r = null, a = 0; a < o.length - 1; a++) { var p = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, o[a], o[a + 1]); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.projectPoint, o[a], o[a + 1])) { var u = SuperMap.Plot.PlottingUtil.distance(p.projectPoint, e); 0 === i ? (i = u, n = a, r = p.projectPoint) : u < i && (i = u, n = a, r = p.projectPoint) } } if (-1 === n) return; for (var s = 0, P = 0; P < n; P++)s += SuperMap.Plot.PlottingUtil.distance(o[P], o[P + 1]); var c = (s += SuperMap.Plot.PlottingUtil.distance(r, o[n])) / l; c > 1 && (c = 1), this.scaleValues[0] = c } if (1 === t) { var S = this.scaleValues[0] * l, y = SuperMap.Plot.PlottingUtil.findPointInPolyLine(o, S); if (-1 === y.index) return; var h = SuperMap.Plot.PlottingUtil.distance(y.pt, e) / l; h > .4 && (h = .4), this.scaleValues[1] = h } } } }, { key: "intersectLineAndCircle", value: function (t, e, o, l, i) { for (var n = !1, r = SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [o, new SuperMap.Geometry.Point(o.x + l, o.y)]), a = 0; a < r.length - 1; a++) { var p = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.intersectLineSegs(t, e, r[a], r[a + 1], p) && (n = !0, i.push(p)) } if (t.x > e.x) { for (var u = 0; u < i.length && u !== i.length - 1; u++)if (i[u].x < i[u + 1].x) { var s = i[u]; i[u] = i[u + 1], i[u + 1] = s } } else if (t.x < e.x) { for (var P = 0; P < i.length && P !== i.length - 1; P++)if (i[P].x > i[P + 1].x) { var c = i[P]; i[P] = i[P + 1], i[P + 1] = c } } else if (t.y > e.y) { for (var S = 0; S < i.length && S !== i.length - 1; S++)if (i[S].y < i[S + 1].y) { var y = i[S]; i[S] = i[S + 1], i[S + 1] = y } } else if (t.y < e.y) for (var h = 0; h < i.length && h !== i.length - 1; h++)if (i[h].y > i[h + 1].y) { var f = i[h]; i[h] = i[h + 1], i[h + 1] = f } return n } }, { key: "isLineInCircle", value: function (t, e, o, l) { var i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2); return SuperMap.Plot.PlottingUtil.distance(i, o) < l } }, { key: "computeSubSymbol", value: function (t, e) { var o = .5 * e, l = []; l.push(t), l.push(new SuperMap.Geometry.Point(t.x + o, t.y)), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, l); var i = []; i.push(new SuperMap.Geometry.Point(t.x - o, t.y)), i.push(new SuperMap.Geometry.Point(t.x + o, t.y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); var n = new SuperMap.Geometry.Point(t.x + .75 * o, t.y), r = .8 * o, a = SuperMap.Plot.PlottingUtil.circlePoint(n, r, r, 155), p = SuperMap.Plot.PlottingUtil.circlePoint(n, r, r, 205), u = []; u.push(a); var s = r * (Math.cos(25 * SuperMap.Plot.PlottingUtil.DTOR) - Math.cos(75 * SuperMap.Plot.PlottingUtil.DTOR)); u.push(new SuperMap.Geometry.Point(n.x - s, n.y)), u.push(p), u.push(n), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, u, { fillLimit: !0, fill: !0 }) } }]), e }(); SuperMap.Plot.AlgoSymbol520100 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol510100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.0375), o.scaleValues.push(.025)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[0] = .3 * this.getSubSymbolScaleValue(o), this.scaleValues[1] = .35 * this.getSubSymbolScaleValue()); var l = .5 * o, i = 180 * SuperMap.Plot.PlottingUtil.radian(t[0], t[1]) / Math.PI, n = o * this.scaleValues[0], r = Math.sqrt(n * n + n * n) + n / 2, a = l - r, p = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a, e).pts, u = this.computeXPts(p, n, e, i), s = []; s.push(new SuperMap.Geometry.Point(u[0].x, u[0].y)), s.push(new SuperMap.Geometry.Point(u[1].x, u[1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s); var P = []; P.push(new SuperMap.Geometry.Point(u[2].x, u[2].y)), P.push(new SuperMap.Geometry.Point(u[3].x, u[3].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P); var c = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l, e).pts, S = this.computeXPts(c, n, e, i), y = []; y.push(new SuperMap.Geometry.Point(S[0].x, S[0].y)), y.push(new SuperMap.Geometry.Point(S[1].x, S[1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var h = []; h.push(new SuperMap.Geometry.Point(S[2].x, S[2].y)), h.push(new SuperMap.Geometry.Point(S[3].x, S[3].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h); var f = l + r, g = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f, e).pts, M = this.computeXPts(g, n, e, i), b = []; b.push(new SuperMap.Geometry.Point(M[0].x, M[0].y)), b.push(new SuperMap.Geometry.Point(M[1].x, M[1].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b); var m = []; m.push(new SuperMap.Geometry.Point(M[2].x, M[2].y)), m.push(new SuperMap.Geometry.Point(M[3].x, M[3].y)), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m); for (var d = l - 2 * r, v = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d, e), O = v.index, U = v.pts, w = [], L = 0; L <= O; L++)w.push(e[L]); w.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w); var _ = l + 2 * r, x = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(_, e), A = x.index, Y = x.pts, V = []; if (A <= e.length) { V.push(Y); for (var E = A + 1; E <= e.length - 1; E++)V.push(e[E]) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V); var T = e[0], j = e[1], I = e[e.length - 2], C = e[e.length - 1], B = o * this.scaleValues[1], G = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B, j, T), N = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B, I, C), D = []; D.push(T), D.push(G.pntRight), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, D); var R = []; R.push(C), R.push(N.pntLeft), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, R); var k = SuperMap.Plot.PlottingUtil.circlePoint(t[0], r, r, 90); this.addScalePoint(k, 0), this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; var l = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o); l = SuperMap.Plot.PlottingUtil.clearSamePts(l); var i = SuperMap.Plot.PlottingUtil.polylineDistance(l), n = .5 * SuperMap.Plot.PlottingUtil.distance(o[0], e) / i; n >= .12 && (n = .12), this.scaleValues[0] = n } } }, { key: "computeXPts", value: function (t, e, o, l) { var i = [], n = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 45), r = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 225); i.push(n), i.push(r); var a = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 135), p = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, l + 315); return i.push(a), i.push(p), i } }]), e }(); SuperMap.Plot.AlgoSymbol510100 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol29101 = function (t) { function e(t) { return function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)) } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol29100), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .25 * this.getSubSymbolScaleValue()); var o = []; o = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o); for (var l = 0; l < 4; l++) { var i = l * (o.length - 1) / 4, n = new SuperMap.Geometry.Point(o[i].x, o[i].y), r = new SuperMap.Geometry.Point(o[i + 1].x, o[i + 1].y), a = new SuperMap.Geometry.Point((n.x + r.x) / 2, (n.y + r.y) / 2), p = SuperMap.Plot.PlottingUtil.radian(a, r) * SuperMap.Plot.PlottingUtil.RTOD, u = this.scaleValues[0] * e / 2, s = SuperMap.Plot.PlottingUtil.circlePoint(a, u, u, p), P = SuperMap.Plot.PlottingUtil.circlePoint(a, 4 * u, 4 * u, p + 270), c = SuperMap.Plot.PlottingUtil.circlePoint(a, u, u, p + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, P, c]) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29101 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol29100 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.05), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); this.isEdit || (this.scaleValues[0] = .25 * this.getSubSymbolScaleValue()); var o = []; o = 3 >= t.length ? SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY, t) : SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t, !0), o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o); for (var l = 0; l < 4; l++) { var i = Math.floor(l * o.length / 4), n = new SuperMap.Geometry.Point(o[i].x, o[i].y), r = new SuperMap.Geometry.Point(o[i + 1].x, o[i + 1].y), a = new SuperMap.Geometry.Point((n.x + r.x) / 2, (n.y + r.y) / 2), p = SuperMap.Plot.PlottingUtil.radian(r, a) * SuperMap.Plot.PlottingUtil.RTOD, u = this.scaleValues[0] * e / 2, s = SuperMap.Plot.PlottingUtil.circlePoint(a, u, u, p), P = SuperMap.Plot.PlottingUtil.circlePoint(a, 4 * u, 4 * u, p + 270), c = SuperMap.Plot.PlottingUtil.circlePoint(a, u, u, p + 180); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [s, P, c], { lineTypeLimit: !0, surroundLineLimit: !0 }) } this.finish() } } }]), e }(); SuperMap.Plot.AlgoSymbol29100 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol15200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.05), o.scaleValues.push(0), o.scaleValues.push(.185)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); for (var o = 0, l = 0, i = e.length - 1; l < i; l++)o += SuperMap.Plot.PlottingUtil.distance(e[l], e[l + 1]); for (var n = 0, r = 0, a = t.length - 1; r < a; r++)n += SuperMap.Plot.PlottingUtil.distance(t[r], t[r + 1]); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); for (var p = this.scaleValues[0] * n, u = this.scaleValues[1], s = this.scaleValues[2] * n, P = .3 * s, c = s; c < o; c += s) { var S = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c, e); if (-1 === S.index) return void this.finish(); var y = c + P, h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y, e); if (-1 === h.index) return void this.finish(); var f = [], g = []; f.push(S.pts); var M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, e[S.index], S.pts); 0 === u ? f.push(new SuperMap.Geometry.Point(M.pntLeft.x, M.pntLeft.y)) : f.push(new SuperMap.Geometry.Point(M.pntRight.x, M.pntRight.y)), g.push(h.pts); var b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p, e[h.index], h.pts); if (0 === u ? g.push(new SuperMap.Geometry.Point(b.pntLeft.x, b.pntLeft.y)) : g.push(new SuperMap.Geometry.Point(b.pntRight.x, b.pntRight.y)), s === c) { this.scalePoints = []; var m = new SuperMap.Geometry.Point(f[1].x, f[1].y); m.isScalePoint = !0, m.tag = 0, this.scalePoints.push(m), (m = new SuperMap.Geometry.Point(f[0].x, f[0].y)).isScalePoint = !0, m.tag = 1, this.scalePoints.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, g) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; for (var l = 0, i = 0, n = o.length - 1; i < n; i++)l += SuperMap.Plot.PlottingUtil.distance(o[i], o[i + 1]); var r = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o), a = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, l * this.scaleValues[2]); if (-1 === p.index) return; var u = SuperMap.Plot.PlottingUtil.distance(p.pt, a) / l, s = SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0], r[1], e); this.scaleValues[1] = s ? 1 : 0, this.scaleValues[0] = u } else if (1 === t) { for (var P = 0, c = -1, S = [], y = 0, h = r.length - 1; y < h; y++) { var f = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, r[y], r[y + 1]); if (f.isOnline) { var g = SuperMap.Plot.PlottingUtil.distance(f.projectPoint, this.controlPoints[1]); 0 == P ? (P = g, c = y, S = e) : g < P && (P = g, c = y, S = e) } } if (-1 == c) return; for (var M = 0, b = 0, m = c - 1; b < m; b++)M += SuperMap.Plot.PlottingUtil.distance(r[b], r[b + 1]); var d = (M += SuperMap.Plot.PlottingUtil.distance(S, r[c])) / l; d > .7 && (d = .7), this.scaleValues[2] = d } } } }]), e }(); SuperMap.Plot.AlgoSymbol15200 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var l = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var l = e[o]; l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, l.key, l) } } return function (e, o, l) { return o && t(e.prototype, o), l && t(e, l), e } }(); var i = e.AlgoSymbol15804 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.029615), o.scaleValues.push(1), o.scaleValues.push(.12)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol15800), l(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = this.scaleValues[0], l = SuperMap.Plot.PlottingUtil.polylineDistance(t), i = o * l, n = this.scaleValues[2] * l * .5, r = !1; r = 0 === this.scaleValues[1]; var a = SuperMap.Plot.PlottingUtil.polylineDistance(e); if (0 !== a) { for (var p = [], u = 0; u <= a; u += n) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, u); if (!(s.index < 0)) { var P = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, e[s.index + 1], s.pt); if (r ? p.push(P.pntRight) : p.push(P.pntLeft), Math.abs(u) <= 1e-6) { this.scalePoints = []; var c = new SuperMap.Geometry.Point(p[0].x, p[0].y); c.isScalePoint = !0, c.tag = 0, this.scalePoints.push(c) } else Math.abs(2 * n - u) <= 1e-6 && ((c = new SuperMap.Geometry.Point(s.pt.x, s.pt.y)).isScalePoint = !0, c.tag = 1, this.scalePoints.push(c)); r = !r } } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p); for (var S = p.length, y = 0, h = 0; h < S - 1; ++h) { var f = new SuperMap.Geometry.Point(p[h].x, p[h].y), g = new SuperMap.Geometry.Point(p[h + 1].x, p[h + 1].y); y = .3 * SuperMap.Plot.PlottingUtil.distance(f, g); var M = [], b = new SuperMap.Geometry.Point(.5 * (f.x + g.x), .5 * (f.y + g.y)), m = SuperMap.Plot.PlottingUtil.dirAngle(f, g) * SuperMap.Plot.PlottingUtil.RTOD, d = SuperMap.Plot.PlottingUtil.circlePoint(b, y, y, m + 90), v = 1.5 * y, O = SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, m + 260), U = SuperMap.Plot.PlottingUtil.circlePoint(d, v, v, m + 280); M.push(O), M.push(d), M.push(U), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M) } this.finish() } } } }]), e }(); SuperMap.Plot.AlgoSymbol15804 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbol610100 = e.AlgoSymbol530200 = e.AlgoSymbol530100 = e.AlgoSymbol520500 = e.AlgoSymbol520300 = e.AlgoSymbol520200 = e.AlgoSymbol520100 = e.AlgoSymbol510100 = e.AlgoSymbol29101 = e.AlgoSymbol29100 = e.AlgoSymbol15200 = e.AlgoSymbol15804 = void 0; var l = o(11), i = o(10), n = o(9), r = o(8), a = o(7), p = o(6), u = o(5), s = o(4), P = o(3), c = o(2), S = o(1), y = o(0); e.AlgoSymbol15804 = l.AlgoSymbol15804, e.AlgoSymbol15200 = i.AlgoSymbol15200, e.AlgoSymbol29100 = n.AlgoSymbol29100, e.AlgoSymbol29101 = r.AlgoSymbol29101, e.AlgoSymbol510100 = a.AlgoSymbol510100, e.AlgoSymbol520100 = p.AlgoSymbol520100, e.AlgoSymbol520200 = u.AlgoSymbol520200, e.AlgoSymbol520300 = s.AlgoSymbol520300, e.AlgoSymbol520500 = P.AlgoSymbol520500, e.AlgoSymbol530100 = c.AlgoSymbol530100, e.AlgoSymbol530200 = S.AlgoSymbol530200, e.AlgoSymbol610100 = y.AlgoSymbol610100 }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.YJAlgoSymbolFactory = void 0, o(12); e.YJAlgoSymbolFactory = SuperMap.Plot.YJAlgoSymbolFactory = SuperMap.Plot.YJAlgoSymbolFactory || {}; SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol = function (t, e, o) { if (999 !== t) return new SuperMap.Plot.AlgoSymbol(o); switch (e) { case 510100: return new SuperMap.Plot.AlgoSymbol510100(o); case 510200: return new SuperMap.Plot.AlgoSymbol15804(o); case 520100: return new SuperMap.Plot.AlgoSymbol520100(o); case 520200: return new SuperMap.Plot.AlgoSymbol520200(o); case 520300: return new SuperMap.Plot.AlgoSymbol520300(o); case 520400: return new SuperMap.Plot.AlgoSymbol15200(o); case 520500: return new SuperMap.Plot.AlgoSymbol520500(o); case 530100: return new SuperMap.Plot.AlgoSymbol530100(o); case 530200: return new SuperMap.Plot.AlgoSymbol530200(o); case 610100: return new SuperMap.Plot.AlgoSymbol610100(o); case 610200: return new SuperMap.Plot.AlgoSymbol29100(o); case 610300: return new SuperMap.Plot.AlgoSymbol29101(o); default: return new SuperMap.Plot.AlgoSymbol(o) } }, SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer = function (t, e) { if (999 !== t) return !0; switch (e) { case 510100: case 510200: case 520100: case 520200: case 520300: case 520400: case 520500: case 530100: case 530200: case 610100: return !1; default: return !0 } }, SuperMap.Plot.YJAlgoSymbolFactory.getSymbolWayType = function (t, e) { if (999 === t) switch (e) { case 510100: case 510200: case 520100: case 520200: case 520300: case 520400: case 520500: case 530100: case 530200: case 610100: case 610200: case 610300: return SuperMap.Plot.AddPoint_WayType.CURVE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } }, SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols = function () { return [] }, SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts = function (t, e) { if (999 !== t) return 0; switch (e) { case 510100: case 510200: case 520100: case 520200: case 520300: case 520400: case 520500: case 530100: case 530200: case 610100: case 610200: case 610300: return 2; default: return 0 } }, SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts = function (t, e) { if (999 !== t) return 0; switch (e) { case 510100: case 510200: case 520100: case 520200: case 520300: case 520400: case 520500: case 530100: case 530200: case 610100: return 9999; case 610200: case 610300: return 3; default: return 0 } }, SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle = function () { return {} }, SuperMap.Plot.YJAlgoSymbolFactory.canSetSubSymbol = function (t, e) { return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t, e).length > 0 }, SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol = function () { return !1 }, SuperMap.Plot.YJAlgoSymbolFactory.zoomCalSymbol = function () { return !1 } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.YJAlgoSymbolFactory = void 0; var l = o(13); e.YJAlgoSymbolFactory = l.YJAlgoSymbolFactory }]);
-/***/ }),
+ /***/
+}),
/* 4 */
-/***/ (function(module, exports) {
+/***/ (function (module, exports) {
/*!
*
@@ -371,52 +383,74 @@
* license: undefined
* version: v9.1.0
*
- */!function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=115)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e.SuperMap=window.SuperMap=window.SuperMap||{}).Widgets=window.SuperMap.Widgets||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=o(0);
+ */!function (t) { var e = {}; function o(n) { if (e[n]) return e[n].exports; var i = e[n] = { i: n, l: !1, exports: {} }; return t[n].call(i.exports, i, i.exports, o), i.l = !0, i.exports } o.m = t, o.c = e, o.d = function (t, e, n) { o.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }) }, o.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, o.t = function (t, e) { if (1 & e && (t = o(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var n = Object.create(null); if (o.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var i in t) o.d(n, i, function (e) { return t[e] }.bind(null, i)); return n }, o.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return o.d(e, "a", e), e }, o.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, o.p = "", o(o.s = 115) }([function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), (e.SuperMap = window.SuperMap = window.SuperMap || {}).Widgets = window.SuperMap.Widgets || {} }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Util = void 0; var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, i = o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(2);var l,r,a;e.Util=i.SuperMap.Util=i.SuperMap.Util||{};i.SuperMap.Util.extend=function(t,e){if(t=t||{},e){for(var o in e){var n=e[o];void 0!==n&&(t[o]=n)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},i.SuperMap.Util.copy=function(t,e){var o;if(t=t||{},e)for(var n in t)void 0!==(o=e[n])&&(t[n]=o)},i.SuperMap.Util.reset=function(t){for(var e in t=t||{})if(t.hasOwnProperty(e)){if("object"===n(t[e])&&t[e]instanceof Array){for(var o in t[e])t[e][o].destroy&&t[e][o].destroy();t[e].length=0}else"object"===n(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},i.SuperMap.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var n=arguments[e];if("string"==typeof n&&(n=document.getElementById(n)),1===arguments.length)return n;t.push(n)}return t},i.SuperMap.Util.isElement=function(t){return!(!t||1!==t.nodeType)},i.SuperMap.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.SuperMap.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},i.SuperMap.Util.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,n=t.length;o<n;o++)if(t[o]===e)return o;return-1},i.SuperMap.Util.modifyDOMElement=function(t,e,o,n,i,l,r,a){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),n&&(t.style.width=n.w+"px",t.style.height=n.h+"px"),i&&(t.style.position=i),l&&(t.style.border=l),r&&(t.style.overflow=r),parseFloat(a)>=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")},i.SuperMap.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var n in e)(void 0===t[n]||!o&&e.hasOwnProperty&&e.hasOwnProperty(n)&&!t.hasOwnProperty(n))&&(t[n]=e[n]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},i.SuperMap.Util.getParameterString=function(t){var e=[];for(var o in t){var i=t[o];if(null!=i&&"function"!=typeof i){var l;if("object"===(void 0===i?"undefined":n(i))&&i.constructor===Array){for(var r,a=[],s=0,u=i.length;s<u;s++)r=i[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));l=a.join(",")}else l=encodeURIComponent(i);e.push(encodeURIComponent(o)+"="+l)}}return e.join("&")},i.SuperMap.Util.urlAppend=function(t,e){var o=t;if(e){var n=(t+" ").split(/[?&]/);o+=" "===n.pop()?e:n.length?"&"+e:"?"+e}return o},i.SuperMap.Util.DEFAULT_PRECISION=14,i.SuperMap.Util.toFloat=function(t,e){return null==e&&(e=i.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof t&&(t=parseFloat(t)),0===e?t:parseFloat(t.toPrecision(e))},i.SuperMap.Util.rad=function(t){return t*Math.PI/180},i.SuperMap.Util.getParameters=function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(i.SuperMap.String.contains(t,"?")){var o=t.indexOf("?")+1,n=i.SuperMap.String.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,n)}for(var l={},r=e.split(/[&;]/),a=0,s=r.length;a<s;++a){var u=r[a].split("=");if(u[0]){var p=u[0];try{p=decodeURIComponent(p)}catch(t){p=unescape(p)}var c=(u[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}1==(c=c.split(",")).length&&(c=c[0]),l[p]=c}}return l},i.SuperMap.Util.lastSeqID=0,i.SuperMap.Util.createUniqueID=function(t){return null==t&&(t="id_"),i.SuperMap.Util.lastSeqID+=1,t+i.SuperMap.Util.lastSeqID},i.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},i.SuperMap.INCHES_PER_UNIT.in=i.SuperMap.INCHES_PER_UNIT.inches,i.SuperMap.INCHES_PER_UNIT.degrees=i.SuperMap.INCHES_PER_UNIT.dd,i.SuperMap.INCHES_PER_UNIT.nmi=1852*i.SuperMap.INCHES_PER_UNIT.m,i.SuperMap.METERS_PER_INCH=.0254000508001016,i.SuperMap.Util.extend(i.SuperMap.INCHES_PER_UNIT,{Inch:i.SuperMap.INCHES_PER_UNIT.inches,Meter:1/i.SuperMap.METERS_PER_INCH,Foot:.3048006096012192/i.SuperMap.METERS_PER_INCH,IFoot:.3048/i.SuperMap.METERS_PER_INCH,ClarkeFoot:.3047972651151/i.SuperMap.METERS_PER_INCH,SearsFoot:.30479947153867626/i.SuperMap.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/i.SuperMap.METERS_PER_INCH,IInch:.0254/i.SuperMap.METERS_PER_INCH,MicroInch:254e-7/i.SuperMap.METERS_PER_INCH,Mil:2.54e-8/i.SuperMap.METERS_PER_INCH,Centimeter:.01/i.SuperMap.METERS_PER_INCH,Kilometer:1e3/i.SuperMap.METERS_PER_INCH,Yard:.9144018288036576/i.SuperMap.METERS_PER_INCH,SearsYard:.914398414616029/i.SuperMap.METERS_PER_INCH,IndianYard:.9143985307444408/i.SuperMap.METERS_PER_INCH,IndianYd37:.91439523/i.SuperMap.METERS_PER_INCH,IndianYd62:.9143988/i.SuperMap.METERS_PER_INCH,IndianYd75:.9143985/i.SuperMap.METERS_PER_INCH,IndianFoot:.30479951/i.SuperMap.METERS_PER_INCH,IndianFt37:.30479841/i.SuperMap.METERS_PER_INCH,IndianFt62:.3047996/i.SuperMap.METERS_PER_INCH,IndianFt75:.3047995/i.SuperMap.METERS_PER_INCH,Mile:1609.3472186944373/i.SuperMap.METERS_PER_INCH,IYard:.9144/i.SuperMap.METERS_PER_INCH,IMile:1609.344/i.SuperMap.METERS_PER_INCH,NautM:1852/i.SuperMap.METERS_PER_INCH,"Lat-66":110943.31648893273/i.SuperMap.METERS_PER_INCH,"Lat-83":110946.25736872235/i.SuperMap.METERS_PER_INCH,Decimeter:.1/i.SuperMap.METERS_PER_INCH,Millimeter:.001/i.SuperMap.METERS_PER_INCH,Dekameter:10/i.SuperMap.METERS_PER_INCH,Decameter:10/i.SuperMap.METERS_PER_INCH,Hectometer:100/i.SuperMap.METERS_PER_INCH,GermanMeter:1.0000135965/i.SuperMap.METERS_PER_INCH,CaGrid:.999738/i.SuperMap.METERS_PER_INCH,ClarkeChain:20.1166194976/i.SuperMap.METERS_PER_INCH,GunterChain:20.11684023368047/i.SuperMap.METERS_PER_INCH,BenoitChain:20.116782494375872/i.SuperMap.METERS_PER_INCH,SearsChain:20.11676512155/i.SuperMap.METERS_PER_INCH,ClarkeLink:.201166194976/i.SuperMap.METERS_PER_INCH,GunterLink:.2011684023368047/i.SuperMap.METERS_PER_INCH,BenoitLink:.20116782494375873/i.SuperMap.METERS_PER_INCH,SearsLink:.2011676512155/i.SuperMap.METERS_PER_INCH,Rod:5.02921005842012/i.SuperMap.METERS_PER_INCH,IntnlChain:20.1168/i.SuperMap.METERS_PER_INCH,IntnlLink:.201168/i.SuperMap.METERS_PER_INCH,Perch:5.02921005842012/i.SuperMap.METERS_PER_INCH,Pole:5.02921005842012/i.SuperMap.METERS_PER_INCH,Furlong:201.1684023368046/i.SuperMap.METERS_PER_INCH,Rood:3.778266898/i.SuperMap.METERS_PER_INCH,CapeFoot:.3047972615/i.SuperMap.METERS_PER_INCH,Brealey:375/i.SuperMap.METERS_PER_INCH,ModAmFt:.304812252984506/i.SuperMap.METERS_PER_INCH,Fathom:1.8288/i.SuperMap.METERS_PER_INCH,"NautM-UK":1853.184/i.SuperMap.METERS_PER_INCH,"50kilometers":5e4/i.SuperMap.METERS_PER_INCH,"150kilometers":15e4/i.SuperMap.METERS_PER_INCH}),i.SuperMap.Util.extend(i.SuperMap.INCHES_PER_UNIT,{mm:i.SuperMap.INCHES_PER_UNIT.Meter/1e3,cm:i.SuperMap.INCHES_PER_UNIT.Meter/100,dm:100*i.SuperMap.INCHES_PER_UNIT.Meter,km:1e3*i.SuperMap.INCHES_PER_UNIT.Meter,kmi:i.SuperMap.INCHES_PER_UNIT.nmi,fath:i.SuperMap.INCHES_PER_UNIT.Fathom,ch:i.SuperMap.INCHES_PER_UNIT.IntnlChain,link:i.SuperMap.INCHES_PER_UNIT.IntnlLink,"us-in":i.SuperMap.INCHES_PER_UNIT.inches,"us-ft":i.SuperMap.INCHES_PER_UNIT.Foot,"us-yd":i.SuperMap.INCHES_PER_UNIT.Yard,"us-ch":i.SuperMap.INCHES_PER_UNIT.GunterChain,"us-mi":i.SuperMap.INCHES_PER_UNIT.Mile,"ind-yd":i.SuperMap.INCHES_PER_UNIT.IndianYd37,"ind-ft":i.SuperMap.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/i.SuperMap.METERS_PER_INCH}),i.SuperMap.DOTS_PER_INCH=96,i.SuperMap.Util.normalizeScale=function(t){return t>1?1/t:t},i.SuperMap.Util.getResolutionFromScale=function(t,e){var o;t&&(null==e&&(e="degrees"),o=1/(i.SuperMap.Util.normalizeScale(t)*i.SuperMap.INCHES_PER_UNIT[e]*i.SuperMap.DOTS_PER_INCH));return o},i.SuperMap.Util.getScaleFromResolution=function(t,e){return null==e&&(e="degrees"),t*i.SuperMap.INCHES_PER_UNIT[e]*i.SuperMap.DOTS_PER_INCH},i.SuperMap.IS_GECKO=-1===(l=navigator.userAgent.toLowerCase()).indexOf("webkit")&&-1!==l.indexOf("gecko"),i.SuperMap.Browser=function(){var t,e="",o="",n="pc",i=navigator.userAgent.toLowerCase();return i.indexOf("msie")>-1||i.indexOf("trident")>-1&&i.indexOf("rv")>-1?(e="msie",t=i.match(/msie ([\d.]+)/)||i.match(/rv:([\d.]+)/)):i.indexOf("chrome")>-1?(e="chrome",t=i.match(/chrome\/([\d.]+)/)):i.indexOf("firefox")>-1?(e="firefox",t=i.match(/firefox\/([\d.]+)/)):i.indexOf("opera")>-1?(e="opera",t=i.match(/version\/([\d.]+)/)):i.indexOf("safari")>-1&&(e="safari",t=i.match(/version\/([\d.]+)/)),o=t?t[1]:"",i.indexOf("ipad")>-1||i.indexOf("ipod")>-1||i.indexOf("iphone")>-1?n="apple":i.indexOf("android")>-1&&(o=(t=i.match(/version\/([\d.]+)/))?t[1]:"",n="android"),{name:e,version:o,device:n}}(),i.SuperMap.Util.getBrowser=function(){return i.SuperMap.Browser},i.SuperMap.Util.isSupportCanvas=(r=!0,a=i.SuperMap.Util.getBrowser(),document.createElement("canvas").getContext?("firefox"===a.name&&parseFloat(a.version)<5&&(r=!1),"safari"===a.name&&parseFloat(a.version)<4&&(r=!1),"opera"===a.name&&parseFloat(a.version)<10&&(r=!1),"msie"===a.name&&parseFloat(a.version)<9&&(r=!1)):r=!1,r),i.SuperMap.Util.supportCanvas=function(){return i.SuperMap.Util.isSupportCanvas},i.SuperMap.INCHES_PER_UNIT.degree=i.SuperMap.INCHES_PER_UNIT.dd,i.SuperMap.INCHES_PER_UNIT.meter=i.SuperMap.INCHES_PER_UNIT.m,i.SuperMap.INCHES_PER_UNIT.foot=i.SuperMap.INCHES_PER_UNIT.ft,i.SuperMap.INCHES_PER_UNIT.inch=i.SuperMap.INCHES_PER_UNIT.inches,i.SuperMap.INCHES_PER_UNIT.mile=i.SuperMap.INCHES_PER_UNIT.mi,i.SuperMap.INCHES_PER_UNIT.kilometer=i.SuperMap.INCHES_PER_UNIT.km,i.SuperMap.INCHES_PER_UNIT.yard=i.SuperMap.INCHES_PER_UNIT.yd,i.SuperMap.Util.isInTheSameDomain=function(t){if(!t)return!0;var e=t.indexOf("//"),o=document.location.toString(),n=o.indexOf("//");if(-1===e)return!0;var i,l=i=t.substring(0,e),r=o.substring(n+2);n=r.indexOf("/");var a=r.indexOf(":"),s=r.substring(0,n),u=document.location.protocol;if(-1!==a||(s+=":"+("http:"===u.toLowerCase()?80:443)),u.toLowerCase()!==l.toLowerCase())return!1;var p=(l=t.substring(e+2)).indexOf(":");e=l.indexOf("/");var c,y=l.substring(0,e);return-1!==p?c=l.substring(0,p):(c=l.substring(0,e),y+=":"+("http:"===i.toLowerCase()?80:443)),c===document.domain&&y===s},i.SuperMap.Util.calculateDpi=function(t,e,o,n,i){if(t&&e&&o){var l,r=t.getWidth(),a=t.getHeight(),s=e.w,u=e.h;if(i=i||6378137,"degree"===(n=n||"degrees").toLowerCase()||"degrees"===n.toLowerCase()||"dd"===n.toLowerCase()){var p=r/s,c=a/u;l=254/(p>c?p:c)/o/(2*Math.PI*i/360)/1e4}else{l=254/(r/s)/o/1e4}return l}},i.SuperMap.Util.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var o=[],l=0,r=e.length;l<r;l++)o.push(i.SuperMap.Util.toJSON(e[l]));return"["+o.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":n(e))){if(e.length){for(var a=[],s=0,u=e.length;s<u;s++)a.push(i.SuperMap.Util.toJSON(e[s]));return"["+a.join(",")+"]"}var p=[];for(var c in e)"function"!=typeof e[c]&&"CLASS_NAME"!==c&&"parent"!==c&&p.push("'"+c+"':"+i.SuperMap.Util.toJSON(e[c]));return p.length>0?"{"+p.join(",")+"}":"{}"}return e.toString()}},i.SuperMap.Util.getResolutionFromScaleDpi=function(t,e,o,n){return n=n||6378137,o=o||"",t>0&&e>0?(t=i.SuperMap.Util.normalizeScale(t),"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*n/360)/1e4:254/e/t/1e4):-1},i.SuperMap.Util.getScaleFromResolutionDpi=function(t,e,o,n){return n=n||6378137,o=o||"",t>0&&e>0?"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*n/360)/1e4:254/e/t/1e4:-1},i.SuperMap.Util.transformResult=function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t},i.SuperMap.Util.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var n=e[o];void 0!==n&&"CLASS_NAME"!==o&&"function"!=typeof n&&(t[o]=n)}return t},i.SuperMap.Util.copyAttributesWithClip=function(t,e,o){if(t=t||{},e)for(var n in e){var i=!1;if(o&&o.length)for(var l=0,r=o.length;l<r;l++)if(n===o[l]){i=!0;break}if(!0!==i){var a=e[n];void 0!==a&&"CLASS_NAME"!==n&&"function"!=typeof a&&(t[n]=a)}}return t},i.SuperMap.Util.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":n(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var o={};for(var l in t)t.hasOwnProperty(l)&&(o[l]=i.SuperMap.Util.cloneObject(t[l]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},i.SuperMap.Util.lineIntersection=function(t,e,o,n){var l,r,a=null,s=(n.x-o.x)*(t.y-o.y)-(n.y-o.y)*(t.x-o.x),u=(e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x),p=(n.y-o.y)*(e.x-t.x)-(n.x-o.x)*(e.y-t.y);if(0!=p)r=u/p,a=(l=s/p)>=0&&r<=1&&l<=1&&r>=0?new i.SuperMap.Geometry.Point(t.x+l*(e.x-t.x),t.y+l*(e.y-t.y)):"No Intersection";else if(0==s&&0==u){var c=Math.max(t.y,e.y),y=Math.min(t.y,e.y),P=Math.max(t.x,e.x),h=Math.min(t.x,e.x);a=(o.y>=y&&o.y<=c||n.y>=y&&n.y<=c)&&o.x>=h&&o.x<=P||n.x>=h&&n.x<=P?"Coincident":"Parallel"}else a="Parallel";return a},i.SuperMap.Util.getTextBounds=function(t,e,o){document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=t.fontSize),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="relative",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var n=o.clientWidth,i=o.clientHeight;return document.body.removeChild(o),{textWidth:n,textHeight:i}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExt=e.FunctionExt=e.NumberExt=e.StringExt=void 0;var n=o(0);
-/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
- * This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
-n.SuperMap.inherit=function(t,e){var o,i,l,r=function(){};for(r.prototype=e.prototype,t.prototype=new r,o=2,i=arguments.length;o<i;o++)"function"==typeof(l=arguments[o])&&(l=l.prototype),n.SuperMap.Util.extend(t.prototype,l)},n.SuperMap.mixin=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var n=function t(o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=0;n<e.length;n++)r(this,new e[n](o))},i=0;i<e.length;i++){var l=e[i];r(n,l),r(n.prototype,l.prototype),r(n.prototype,new l)}return n;function r(t,e){var o=Object.getOwnPropertyNames(e);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var n=0;n<o.length;n++){var i=o[n];if("constructor"!==i&&"prototype"!==i&&"name"!==i&&"length"!==i){var l=Object.getOwnPropertyDescriptor(e,i);window.ActiveXObject?Object.defineProperty(t,i,l||{}):Object.defineProperty(t,i,l)}}}};e.StringExt=n.SuperMap.String={startsWith:function(t,e){return 0==t.indexOf(e)},contains:function(t,e){return-1!=t.indexOf(e)},trim:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(t){for(var e=t.split("-"),o=e[0],n=1,i=e.length;n<i;n++){var l=e[n];o+=l.charAt(0).toUpperCase()+l.substring(1)}return o},format:function(t,e,o){e||(e=window);return t.replace(n.SuperMap.String.tokenRegEx,function(t,n){for(var i,l=n.split(/\.+/),r=0;r<l.length;r++)0==r&&(i=e),i=i[l[r]];return"function"==typeof i&&(i=o?i.apply(null,o):i()),void 0===i?"undefined":i})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(t){return n.SuperMap.String.numberRegEx.test(t)},numericIf:function(t){return n.SuperMap.String.isNumeric(t)?parseFloat(t):t}};var i=e.NumberExt=n.SuperMap.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(t,e){var o=0;return e>0&&(o=parseFloat(t.toPrecision(e))),o},format:function(t,e,o,i){e=void 0!==e?e:0,o=void 0!==o?o:n.SuperMap.Number.thousandsSeparator,i=void 0!==i?i:n.SuperMap.Number.decimalSeparator,null!=e&&(t=parseFloat(t.toFixed(e)));var l=t.toString().split(".");1===l.length&&null==e&&(e=0);var r,a=l[0];if(o)for(var s=/(-?[0-9]+)([0-9]{3})/;s.test(a);)a=a.replace(s,"$1"+o+"$2");if(0==e)r=a;else{var u=l.length>1?l[1]:"0";null!=e&&(u+=new Array(e-u.length+1).join("0")),r=a+i+u}return r}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(t){return i.limitSigDigs(this,t)});e.FunctionExt=n.SuperMap.Function={bind:function(t,e){var o=Array.prototype.slice.apply(arguments,[2]);return function(){var n=o.concat(Array.prototype.slice.apply(arguments,[0]));return t.apply(e,n)}},bindAsEventListener:function(t,e){return function(o){return t.call(e,o||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},e.ArrayExt=n.SuperMap.Array={filter:function(t,e,o){var n=[];if(Array.prototype.filter)n=t.filter(e,o);else{var i=t.length;if("function"!=typeof e)throw new TypeError;for(var l=0;l<i;l++)if(l in t){var r=t[l];e.call(o,r,l,t)&&n.push(r)}}return n}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,o(54);e.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory||{};SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return new SuperMap.Plot.GeoTooltipBox(o);case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMap.Plot.GeoTooltipBoxM(o);case SuperMap.Plot.SymbolType.PATHTEXT:return new SuperMap.Plot.PathText(o);case SuperMap.Plot.SymbolType.ARROWLINE:return new SuperMap.Plot.ArrowLine(o);case SuperMap.Plot.SymbolType.CURVEEIGHT:return new SuperMap.Plot.CurveEight(o);case SuperMap.Plot.SymbolType.RUNWAY:return new SuperMap.Plot.Runway(o);case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:return new SuperMap.Plot.ConcentricCircle(o);case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return new SuperMap.Plot.CombinationalCircle(o);case SuperMap.Plot.SymbolType.FREECURVE:return new SuperMap.Plot.FreeCurve(o);case SuperMap.Plot.SymbolType.REGULARPOLYGON:return new SuperMap.Plot.RegularPolygon(o);case SuperMap.Plot.SymbolType.BRACESYMBOL:return new SuperMap.Plot.Brace(o);case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMap.Plot.Trapezoid(o);case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:return new SuperMap.Plot.SymbolTextBox(o);case SuperMap.Plot.SymbolType.NODECHAIN:return new SuperMap.Plot.NodeChain(o);case SuperMap.Plot.SymbolType.LINERELATION:return new SuperMap.Plot.LineRelation(o);case SuperMap.Plot.SymbolType.LINEMARKING:return new SuperMap.Plot.LineMarking(o);case SuperMap.Plot.SymbolType.POLYGONREGION:return new SuperMap.Plot.PolygonRegion(o);case SuperMap.Plot.SymbolType.WIRE:return new SuperMap.Plot.Wire(o);default:return new SuperMap.Plot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMap.Plot.AlgoSymbol1001(o);case 1002:return new SuperMap.Plot.AlgoSymbol1002(o);case 1003:return new SuperMap.Plot.AlgoSymbol1003(o);case 1004:return new SuperMap.Plot.AlgoSymbol1004(o);case 1005:return new SuperMap.Plot.AlgoSymbol1005(o);case 1006:return new SuperMap.Plot.AlgoSymbol1006(o);case 1007:return new SuperMap.Plot.AlgoSymbol1007(o);case 1008:return new SuperMap.Plot.AlgoSymbol1008(o);case 1009:return new SuperMap.Plot.AlgoSymbol1009(o);case 1010:return new SuperMap.Plot.AlgoSymbol1010(o);case 1011:return new SuperMap.Plot.AlgoSymbol1011(o);case 1012:return new SuperMap.Plot.AlgoSymbol1012(o);case 1013:return new SuperMap.Plot.AlgoSymbol1013(o);case 1014:return new SuperMap.Plot.AlgoSymbol1014(o);case 1015:return new SuperMap.Plot.AlgoSymbol1015(o);case 1016:return new SuperMap.Plot.AlgoSymbol1016(o);case 1017:return new SuperMap.Plot.AlgoSymbol1017(o);case 1018:return new SuperMap.Plot.AlgoSymbol1018(o);case 1019:return new SuperMap.Plot.AlgoSymbol1019(o);case 1020:return new SuperMap.Plot.AlgoSymbol1020(o);case 1021:return new SuperMap.Plot.AlgoSymbol1021(o);case 1022:return new SuperMap.Plot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMap.Plot.AlgoSymbol1004(o);case 315:return new SuperMap.Plot.AlgoSymbol315(o);case 317:return new SuperMap.Plot.AlgoSymbol1006(o);case 318:return new SuperMap.Plot.AlgoSymbol1002(o);case 319:return new SuperMap.Plot.AlgoSymbol15200(o);default:return null}}},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer=function(t,e){if(0===t||22===t)return!1;if(421!==t)return!0;switch(e){case 311:case 317:case 318:case 315:case 319:return!1;default:return!0}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.WIRE:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return 3}else if(22===t)switch(e){case 1001:case 1003:case 1005:case 1007:case 1008:case 1009:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1019:case 1020:case 1022:return 2;case 1002:case 1004:case 1006:case 1010:case 1018:case 1021:return 3}else if(421===t)switch(e){case 319:return 2;case 311:case 315:case 317:case 318:return 3}},SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return 3;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.WIRE:return 9999}else if(22===t)switch(e){case 1003:case 1019:case 1020:case 1022:return 2;case 1006:case 1021:return 4;case 1001:case 1002:case 1004:case 1005:case 1007:case 1008:case 1009:case 1010:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1018:return 99999}else if(421===t)switch(e){case 317:return 4;case 311:case 315:case 318:case 319:return 99999}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMap.Plot.BasicAlgoSymbolFactory.canSetSubSymbol=function(t,e){return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t,e).length>0||0===this.libID&&this.code===SuperMap.Plot.SymbolType.NODECHAIN},SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMap.Plot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMap.Plot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMap.Plot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMap.Plot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMap.Plot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMap.Plot.SymbolType.KIDNEY:o="集结地";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMap.Plot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMap.Plot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMap.Plot.SymbolType.FREECURVE:o="自由线";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMap.Plot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMap.Plot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMap.Plot.SymbolType.NODECHAIN:o="节点链";break;case SuperMap.Plot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMap.Plot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMap.Plot.SymbolType.RUNWAY:o="跑道线";break;case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMap.Plot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMap.Plot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMap.Plot.SymbolType.WIRE:o="铁丝网"}return o}},function(t,e,o){"use strict";var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchRequest=e.getRequestTimeout=e.setRequestTimeout=e.isCORS=e.setCORS=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(2); var l, r, a; e.Util = i.SuperMap.Util = i.SuperMap.Util || {}; i.SuperMap.Util.extend = function (t, e) { if (t = t || {}, e) { for (var o in e) { var n = e[o]; void 0 !== n && (t[o] = n) } !("function" == typeof window.Event && e instanceof window.Event) && e.hasOwnProperty && e.hasOwnProperty("toString") && (t.toString = e.toString) } return t }, i.SuperMap.Util.copy = function (t, e) { var o; if (t = t || {}, e) for (var n in t) void 0 !== (o = e[n]) && (t[n] = o) }, i.SuperMap.Util.reset = function (t) { for (var e in t = t || {}) if (t.hasOwnProperty(e)) { if ("object" === n(t[e]) && t[e] instanceof Array) { for (var o in t[e]) t[e][o].destroy && t[e][o].destroy(); t[e].length = 0 } else "object" === n(t[e]) && t[e] instanceof Object && t[e].destroy && t[e].destroy(); t[e] = null } }, i.SuperMap.Util.getElement = function () { for (var t = [], e = 0, o = arguments.length; e < o; e++) { var n = arguments[e]; if ("string" == typeof n && (n = document.getElementById(n)), 1 === arguments.length) return n; t.push(n) } return t }, i.SuperMap.Util.isElement = function (t) { return !(!t || 1 !== t.nodeType) }, i.SuperMap.Util.isArray = function (t) { return "[object Array]" === Object.prototype.toString.call(t) }, i.SuperMap.Util.removeItem = function (t, e) { for (var o = t.length - 1; o >= 0; o--)t[o] === e && t.splice(o, 1); return t }, i.SuperMap.Util.indexOf = function (t, e) { if (null == t) return -1; if ("function" == typeof t.indexOf) return t.indexOf(e); for (var o = 0, n = t.length; o < n; o++)if (t[o] === e) return o; return -1 }, i.SuperMap.Util.modifyDOMElement = function (t, e, o, n, i, l, r, a) { e && (t.id = e), o && (t.style.left = o.x + "px", t.style.top = o.y + "px"), n && (t.style.width = n.w + "px", t.style.height = n.h + "px"), i && (t.style.position = i), l && (t.style.border = l), r && (t.style.overflow = r), parseFloat(a) >= 0 && parseFloat(a) < 1 ? (t.style.filter = "alpha(opacity=" + 100 * a + ")", t.style.opacity = a) : 1 === parseFloat(a) && (t.style.filter = "", t.style.opacity = "") }, i.SuperMap.Util.applyDefaults = function (t, e) { t = t || {}; var o = "function" == typeof window.Event && e instanceof window.Event; for (var n in e) (void 0 === t[n] || !o && e.hasOwnProperty && e.hasOwnProperty(n) && !t.hasOwnProperty(n)) && (t[n] = e[n]); return !o && e && e.hasOwnProperty && e.hasOwnProperty("toString") && !t.hasOwnProperty("toString") && (t.toString = e.toString), t }, i.SuperMap.Util.getParameterString = function (t) { var e = []; for (var o in t) { var i = t[o]; if (null != i && "function" != typeof i) { var l; if ("object" === (void 0 === i ? "undefined" : n(i)) && i.constructor === Array) { for (var r, a = [], s = 0, u = i.length; s < u; s++)r = i[s], a.push(encodeURIComponent(null === r || void 0 === r ? "" : r)); l = a.join(",") } else l = encodeURIComponent(i); e.push(encodeURIComponent(o) + "=" + l) } } return e.join("&") }, i.SuperMap.Util.urlAppend = function (t, e) { var o = t; if (e) { var n = (t + " ").split(/[?&]/); o += " " === n.pop() ? e : n.length ? "&" + e : "?" + e } return o }, i.SuperMap.Util.DEFAULT_PRECISION = 14, i.SuperMap.Util.toFloat = function (t, e) { return null == e && (e = i.SuperMap.Util.DEFAULT_PRECISION), "number" != typeof t && (t = parseFloat(t)), 0 === e ? t : parseFloat(t.toPrecision(e)) }, i.SuperMap.Util.rad = function (t) { return t * Math.PI / 180 }, i.SuperMap.Util.getParameters = function (t) { t = null === t || void 0 === t ? window.location.href : t; var e = ""; if (i.SuperMap.String.contains(t, "?")) { var o = t.indexOf("?") + 1, n = i.SuperMap.String.contains(t, "#") ? t.indexOf("#") : t.length; e = t.substring(o, n) } for (var l = {}, r = e.split(/[&;]/), a = 0, s = r.length; a < s; ++a) { var u = r[a].split("="); if (u[0]) { var p = u[0]; try { p = decodeURIComponent(p) } catch (t) { p = unescape(p) } var c = (u[1] || "").replace(/\+/g, " "); try { c = decodeURIComponent(c) } catch (t) { c = unescape(c) } 1 == (c = c.split(",")).length && (c = c[0]), l[p] = c } } return l }, i.SuperMap.Util.lastSeqID = 0, i.SuperMap.Util.createUniqueID = function (t) { return null == t && (t = "id_"), i.SuperMap.Util.lastSeqID += 1, t + i.SuperMap.Util.lastSeqID }, i.SuperMap.INCHES_PER_UNIT = { inches: 1, ft: 12, mi: 63360, m: 39.3701, km: 39370.1, dd: 4374754, yd: 36 }, i.SuperMap.INCHES_PER_UNIT.in = i.SuperMap.INCHES_PER_UNIT.inches, i.SuperMap.INCHES_PER_UNIT.degrees = i.SuperMap.INCHES_PER_UNIT.dd, i.SuperMap.INCHES_PER_UNIT.nmi = 1852 * i.SuperMap.INCHES_PER_UNIT.m, i.SuperMap.METERS_PER_INCH = .0254000508001016, i.SuperMap.Util.extend(i.SuperMap.INCHES_PER_UNIT, { Inch: i.SuperMap.INCHES_PER_UNIT.inches, Meter: 1 / i.SuperMap.METERS_PER_INCH, Foot: .3048006096012192 / i.SuperMap.METERS_PER_INCH, IFoot: .3048 / i.SuperMap.METERS_PER_INCH, ClarkeFoot: .3047972651151 / i.SuperMap.METERS_PER_INCH, SearsFoot: .30479947153867626 / i.SuperMap.METERS_PER_INCH, GoldCoastFoot: .3047997101815088 / i.SuperMap.METERS_PER_INCH, IInch: .0254 / i.SuperMap.METERS_PER_INCH, MicroInch: 254e-7 / i.SuperMap.METERS_PER_INCH, Mil: 2.54e-8 / i.SuperMap.METERS_PER_INCH, Centimeter: .01 / i.SuperMap.METERS_PER_INCH, Kilometer: 1e3 / i.SuperMap.METERS_PER_INCH, Yard: .9144018288036576 / i.SuperMap.METERS_PER_INCH, SearsYard: .914398414616029 / i.SuperMap.METERS_PER_INCH, IndianYard: .9143985307444408 / i.SuperMap.METERS_PER_INCH, IndianYd37: .91439523 / i.SuperMap.METERS_PER_INCH, IndianYd62: .9143988 / i.SuperMap.METERS_PER_INCH, IndianYd75: .9143985 / i.SuperMap.METERS_PER_INCH, IndianFoot: .30479951 / i.SuperMap.METERS_PER_INCH, IndianFt37: .30479841 / i.SuperMap.METERS_PER_INCH, IndianFt62: .3047996 / i.SuperMap.METERS_PER_INCH, IndianFt75: .3047995 / i.SuperMap.METERS_PER_INCH, Mile: 1609.3472186944373 / i.SuperMap.METERS_PER_INCH, IYard: .9144 / i.SuperMap.METERS_PER_INCH, IMile: 1609.344 / i.SuperMap.METERS_PER_INCH, NautM: 1852 / i.SuperMap.METERS_PER_INCH, "Lat-66": 110943.31648893273 / i.SuperMap.METERS_PER_INCH, "Lat-83": 110946.25736872235 / i.SuperMap.METERS_PER_INCH, Decimeter: .1 / i.SuperMap.METERS_PER_INCH, Millimeter: .001 / i.SuperMap.METERS_PER_INCH, Dekameter: 10 / i.SuperMap.METERS_PER_INCH, Decameter: 10 / i.SuperMap.METERS_PER_INCH, Hectometer: 100 / i.SuperMap.METERS_PER_INCH, GermanMeter: 1.0000135965 / i.SuperMap.METERS_PER_INCH, CaGrid: .999738 / i.SuperMap.METERS_PER_INCH, ClarkeChain: 20.1166194976 / i.SuperMap.METERS_PER_INCH, GunterChain: 20.11684023368047 / i.SuperMap.METERS_PER_INCH, BenoitChain: 20.116782494375872 / i.SuperMap.METERS_PER_INCH, SearsChain: 20.11676512155 / i.SuperMap.METERS_PER_INCH, ClarkeLink: .201166194976 / i.SuperMap.METERS_PER_INCH, GunterLink: .2011684023368047 / i.SuperMap.METERS_PER_INCH, BenoitLink: .20116782494375873 / i.SuperMap.METERS_PER_INCH, SearsLink: .2011676512155 / i.SuperMap.METERS_PER_INCH, Rod: 5.02921005842012 / i.SuperMap.METERS_PER_INCH, IntnlChain: 20.1168 / i.SuperMap.METERS_PER_INCH, IntnlLink: .201168 / i.SuperMap.METERS_PER_INCH, Perch: 5.02921005842012 / i.SuperMap.METERS_PER_INCH, Pole: 5.02921005842012 / i.SuperMap.METERS_PER_INCH, Furlong: 201.1684023368046 / i.SuperMap.METERS_PER_INCH, Rood: 3.778266898 / i.SuperMap.METERS_PER_INCH, CapeFoot: .3047972615 / i.SuperMap.METERS_PER_INCH, Brealey: 375 / i.SuperMap.METERS_PER_INCH, ModAmFt: .304812252984506 / i.SuperMap.METERS_PER_INCH, Fathom: 1.8288 / i.SuperMap.METERS_PER_INCH, "NautM-UK": 1853.184 / i.SuperMap.METERS_PER_INCH, "50kilometers": 5e4 / i.SuperMap.METERS_PER_INCH, "150kilometers": 15e4 / i.SuperMap.METERS_PER_INCH }), i.SuperMap.Util.extend(i.SuperMap.INCHES_PER_UNIT, { mm: i.SuperMap.INCHES_PER_UNIT.Meter / 1e3, cm: i.SuperMap.INCHES_PER_UNIT.Meter / 100, dm: 100 * i.SuperMap.INCHES_PER_UNIT.Meter, km: 1e3 * i.SuperMap.INCHES_PER_UNIT.Meter, kmi: i.SuperMap.INCHES_PER_UNIT.nmi, fath: i.SuperMap.INCHES_PER_UNIT.Fathom, ch: i.SuperMap.INCHES_PER_UNIT.IntnlChain, link: i.SuperMap.INCHES_PER_UNIT.IntnlLink, "us-in": i.SuperMap.INCHES_PER_UNIT.inches, "us-ft": i.SuperMap.INCHES_PER_UNIT.Foot, "us-yd": i.SuperMap.INCHES_PER_UNIT.Yard, "us-ch": i.SuperMap.INCHES_PER_UNIT.GunterChain, "us-mi": i.SuperMap.INCHES_PER_UNIT.Mile, "ind-yd": i.SuperMap.INCHES_PER_UNIT.IndianYd37, "ind-ft": i.SuperMap.INCHES_PER_UNIT.IndianFt37, "ind-ch": 20.11669506 / i.SuperMap.METERS_PER_INCH }), i.SuperMap.DOTS_PER_INCH = 96, i.SuperMap.Util.normalizeScale = function (t) { return t > 1 ? 1 / t : t }, i.SuperMap.Util.getResolutionFromScale = function (t, e) { var o; t && (null == e && (e = "degrees"), o = 1 / (i.SuperMap.Util.normalizeScale(t) * i.SuperMap.INCHES_PER_UNIT[e] * i.SuperMap.DOTS_PER_INCH)); return o }, i.SuperMap.Util.getScaleFromResolution = function (t, e) { return null == e && (e = "degrees"), t * i.SuperMap.INCHES_PER_UNIT[e] * i.SuperMap.DOTS_PER_INCH }, i.SuperMap.IS_GECKO = -1 === (l = navigator.userAgent.toLowerCase()).indexOf("webkit") && -1 !== l.indexOf("gecko"), i.SuperMap.Browser = function () { var t, e = "", o = "", n = "pc", i = navigator.userAgent.toLowerCase(); return i.indexOf("msie") > -1 || i.indexOf("trident") > -1 && i.indexOf("rv") > -1 ? (e = "msie", t = i.match(/msie ([\d.]+)/) || i.match(/rv:([\d.]+)/)) : i.indexOf("chrome") > -1 ? (e = "chrome", t = i.match(/chrome\/([\d.]+)/)) : i.indexOf("firefox") > -1 ? (e = "firefox", t = i.match(/firefox\/([\d.]+)/)) : i.indexOf("opera") > -1 ? (e = "opera", t = i.match(/version\/([\d.]+)/)) : i.indexOf("safari") > -1 && (e = "safari", t = i.match(/version\/([\d.]+)/)), o = t ? t[1] : "", i.indexOf("ipad") > -1 || i.indexOf("ipod") > -1 || i.indexOf("iphone") > -1 ? n = "apple" : i.indexOf("android") > -1 && (o = (t = i.match(/version\/([\d.]+)/)) ? t[1] : "", n = "android"), { name: e, version: o, device: n } }(), i.SuperMap.Util.getBrowser = function () { return i.SuperMap.Browser }, i.SuperMap.Util.isSupportCanvas = (r = !0, a = i.SuperMap.Util.getBrowser(), document.createElement("canvas").getContext ? ("firefox" === a.name && parseFloat(a.version) < 5 && (r = !1), "safari" === a.name && parseFloat(a.version) < 4 && (r = !1), "opera" === a.name && parseFloat(a.version) < 10 && (r = !1), "msie" === a.name && parseFloat(a.version) < 9 && (r = !1)) : r = !1, r), i.SuperMap.Util.supportCanvas = function () { return i.SuperMap.Util.isSupportCanvas }, i.SuperMap.INCHES_PER_UNIT.degree = i.SuperMap.INCHES_PER_UNIT.dd, i.SuperMap.INCHES_PER_UNIT.meter = i.SuperMap.INCHES_PER_UNIT.m, i.SuperMap.INCHES_PER_UNIT.foot = i.SuperMap.INCHES_PER_UNIT.ft, i.SuperMap.INCHES_PER_UNIT.inch = i.SuperMap.INCHES_PER_UNIT.inches, i.SuperMap.INCHES_PER_UNIT.mile = i.SuperMap.INCHES_PER_UNIT.mi, i.SuperMap.INCHES_PER_UNIT.kilometer = i.SuperMap.INCHES_PER_UNIT.km, i.SuperMap.INCHES_PER_UNIT.yard = i.SuperMap.INCHES_PER_UNIT.yd, i.SuperMap.Util.isInTheSameDomain = function (t) { if (!t) return !0; var e = t.indexOf("//"), o = document.location.toString(), n = o.indexOf("//"); if (-1 === e) return !0; var i, l = i = t.substring(0, e), r = o.substring(n + 2); n = r.indexOf("/"); var a = r.indexOf(":"), s = r.substring(0, n), u = document.location.protocol; if (-1 !== a || (s += ":" + ("http:" === u.toLowerCase() ? 80 : 443)), u.toLowerCase() !== l.toLowerCase()) return !1; var p = (l = t.substring(e + 2)).indexOf(":"); e = l.indexOf("/"); var c, y = l.substring(0, e); return -1 !== p ? c = l.substring(0, p) : (c = l.substring(0, e), y += ":" + ("http:" === i.toLowerCase() ? 80 : 443)), c === document.domain && y === s }, i.SuperMap.Util.calculateDpi = function (t, e, o, n, i) { if (t && e && o) { var l, r = t.getWidth(), a = t.getHeight(), s = e.w, u = e.h; if (i = i || 6378137, "degree" === (n = n || "degrees").toLowerCase() || "degrees" === n.toLowerCase() || "dd" === n.toLowerCase()) { var p = r / s, c = a / u; l = 254 / (p > c ? p : c) / o / (2 * Math.PI * i / 360) / 1e4 } else { l = 254 / (r / s) / o / 1e4 } return l } }, i.SuperMap.Util.toJSON = function (t) { var e = t; if (null == e) return null; switch (e.constructor) { case String: return e = (e = (e = (e = (e = (e = (e = '"' + e.replace(/(["\\])/g, "\\$1") + '"').replace(/\n/g, "\\n")).replace(/\r/g, "\\r")).replace("<", "<")).replace(">", ">")).replace(/%/g, "%25")).replace(/&/g, "%26"); case Array: for (var o = [], l = 0, r = e.length; l < r; l++)o.push(i.SuperMap.Util.toJSON(e[l])); return "[" + o.join(",") + "]"; case Number: return isFinite(e) ? String(e) : null; case Boolean: return String(e); case Date: return "{'__type':\"System.DateTime\",'Year':" + e.getFullYear() + ",'Month':" + (e.getMonth() + 1) + ",'Day':" + e.getDate() + ",'Hour':" + e.getHours() + ",'Minute':" + e.getMinutes() + ",'Second':" + e.getSeconds() + ",'Millisecond':" + e.getMilliseconds() + ",'TimezoneOffset':" + e.getTimezoneOffset() + "}"; default: if (null != e.toJSON && "function" == typeof e.toJSON) return e.toJSON(); if ("object" === (void 0 === e ? "undefined" : n(e))) { if (e.length) { for (var a = [], s = 0, u = e.length; s < u; s++)a.push(i.SuperMap.Util.toJSON(e[s])); return "[" + a.join(",") + "]" } var p = []; for (var c in e) "function" != typeof e[c] && "CLASS_NAME" !== c && "parent" !== c && p.push("'" + c + "':" + i.SuperMap.Util.toJSON(e[c])); return p.length > 0 ? "{" + p.join(",") + "}" : "{}" } return e.toString() } }, i.SuperMap.Util.getResolutionFromScaleDpi = function (t, e, o, n) { return n = n || 6378137, o = o || "", t > 0 && e > 0 ? (t = i.SuperMap.Util.normalizeScale(t), "degree" === o.toLowerCase() || "degrees" === o.toLowerCase() || "dd" === o.toLowerCase() ? 254 / e / t / (2 * Math.PI * n / 360) / 1e4 : 254 / e / t / 1e4) : -1 }, i.SuperMap.Util.getScaleFromResolutionDpi = function (t, e, o, n) { return n = n || 6378137, o = o || "", t > 0 && e > 0 ? "degree" === o.toLowerCase() || "degrees" === o.toLowerCase() || "dd" === o.toLowerCase() ? 254 / e / t / (2 * Math.PI * n / 360) / 1e4 : 254 / e / t / 1e4 : -1 }, i.SuperMap.Util.transformResult = function (t) { return t.responseText && "string" == typeof t.responseText && (t = JSON.parse(t.responseText)), t }, i.SuperMap.Util.copyAttributes = function (t, e) { if (t = t || {}, e) for (var o in e) { var n = e[o]; void 0 !== n && "CLASS_NAME" !== o && "function" != typeof n && (t[o] = n) } return t }, i.SuperMap.Util.copyAttributesWithClip = function (t, e, o) { if (t = t || {}, e) for (var n in e) { var i = !1; if (o && o.length) for (var l = 0, r = o.length; l < r; l++)if (n === o[l]) { i = !0; break } if (!0 !== i) { var a = e[n]; void 0 !== a && "CLASS_NAME" !== n && "function" != typeof a && (t[n] = a) } } return t }, i.SuperMap.Util.cloneObject = function (t) { if (null === t || "object" !== (void 0 === t ? "undefined" : n(t))) return t; if (t instanceof Date) { var e = new Date; return e.setTime(t.getTime()), e } if (t instanceof Array) return t.slice(0); if (t instanceof Object) { var o = {}; for (var l in t) t.hasOwnProperty(l) && (o[l] = i.SuperMap.Util.cloneObject(t[l])); return o } throw new Error("Unable to copy obj! Its type isn't supported.") }, i.SuperMap.Util.lineIntersection = function (t, e, o, n) { var l, r, a = null, s = (n.x - o.x) * (t.y - o.y) - (n.y - o.y) * (t.x - o.x), u = (e.x - t.x) * (t.y - o.y) - (e.y - t.y) * (t.x - o.x), p = (n.y - o.y) * (e.x - t.x) - (n.x - o.x) * (e.y - t.y); if (0 != p) r = u / p, a = (l = s / p) >= 0 && r <= 1 && l <= 1 && r >= 0 ? new i.SuperMap.Geometry.Point(t.x + l * (e.x - t.x), t.y + l * (e.y - t.y)) : "No Intersection"; else if (0 == s && 0 == u) { var c = Math.max(t.y, e.y), y = Math.min(t.y, e.y), P = Math.max(t.x, e.x), h = Math.min(t.x, e.x); a = (o.y >= y && o.y <= c || n.y >= y && n.y <= c) && o.x >= h && o.x <= P || n.x >= h && n.x <= P ? "Coincident" : "Parallel" } else a = "Parallel"; return a }, i.SuperMap.Util.getTextBounds = function (t, e, o) { document.body.appendChild(o), o.style.width = "auto", o.style.height = "auto", t.fontSize && (o.style.fontSize = t.fontSize), t.fontFamily && (o.style.fontFamily = t.fontFamily), t.fontWeight && (o.style.fontWeight = t.fontWeight), o.style.position = "relative", o.style.visibility = "hidden", o.style.display = "inline-block", o.innerHTML = e; var n = o.clientWidth, i = o.clientHeight; return document.body.removeChild(o), { textWidth: n, textHeight: i } }
+ }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.ArrayExt = e.FunctionExt = e.NumberExt = e.StringExt = void 0; var n = o(0);
+ /* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
+ * This program are made available under the terms of the Apache License, Version 2.0
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
+ n.SuperMap.inherit = function (t, e) { var o, i, l, r = function () { }; for (r.prototype = e.prototype, t.prototype = new r, o = 2, i = arguments.length; o < i; o++)"function" == typeof (l = arguments[o]) && (l = l.prototype), n.SuperMap.Util.extend(t.prototype, l) }, n.SuperMap.mixin = function () { for (var t = arguments.length, e = Array(t), o = 0; o < t; o++)e[o] = arguments[o]; for (var n = function t(o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t); for (var n = 0; n < e.length; n++)r(this, new e[n](o)) }, i = 0; i < e.length; i++) { var l = e[i]; r(n, l), r(n.prototype, l.prototype), r(n.prototype, new l) } return n; function r(t, e) { var o = Object.getOwnPropertyNames(e); Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(e))); for (var n = 0; n < o.length; n++) { var i = o[n]; if ("constructor" !== i && "prototype" !== i && "name" !== i && "length" !== i) { var l = Object.getOwnPropertyDescriptor(e, i); window.ActiveXObject ? Object.defineProperty(t, i, l || {}) : Object.defineProperty(t, i, l) } } } }; e.StringExt = n.SuperMap.String = { startsWith: function (t, e) { return 0 == t.indexOf(e) }, contains: function (t, e) { return -1 != t.indexOf(e) }, trim: function (t) { return t.replace(/^\s\s*/, "").replace(/\s\s*$/, "") }, camelize: function (t) { for (var e = t.split("-"), o = e[0], n = 1, i = e.length; n < i; n++) { var l = e[n]; o += l.charAt(0).toUpperCase() + l.substring(1) } return o }, format: function (t, e, o) { e || (e = window); return t.replace(n.SuperMap.String.tokenRegEx, function (t, n) { for (var i, l = n.split(/\.+/), r = 0; r < l.length; r++)0 == r && (i = e), i = i[l[r]]; return "function" == typeof i && (i = o ? i.apply(null, o) : i()), void 0 === i ? "undefined" : i }) }, tokenRegEx: /\$\{([\w.]+?)\}/g, numberRegEx: /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/, isNumeric: function (t) { return n.SuperMap.String.numberRegEx.test(t) }, numericIf: function (t) { return n.SuperMap.String.isNumeric(t) ? parseFloat(t) : t } }; var i = e.NumberExt = n.SuperMap.Number = { decimalSeparator: ".", thousandsSeparator: ",", limitSigDigs: function (t, e) { var o = 0; return e > 0 && (o = parseFloat(t.toPrecision(e))), o }, format: function (t, e, o, i) { e = void 0 !== e ? e : 0, o = void 0 !== o ? o : n.SuperMap.Number.thousandsSeparator, i = void 0 !== i ? i : n.SuperMap.Number.decimalSeparator, null != e && (t = parseFloat(t.toFixed(e))); var l = t.toString().split("."); 1 === l.length && null == e && (e = 0); var r, a = l[0]; if (o) for (var s = /(-?[0-9]+)([0-9]{3})/; s.test(a);)a = a.replace(s, "$1" + o + "$2"); if (0 == e) r = a; else { var u = l.length > 1 ? l[1] : "0"; null != e && (u += new Array(e - u.length + 1).join("0")), r = a + i + u } return r } }; Number.prototype.limitSigDigs || (Number.prototype.limitSigDigs = function (t) { return i.limitSigDigs(this, t) }); e.FunctionExt = n.SuperMap.Function = { bind: function (t, e) { var o = Array.prototype.slice.apply(arguments, [2]); return function () { var n = o.concat(Array.prototype.slice.apply(arguments, [0])); return t.apply(e, n) } }, bindAsEventListener: function (t, e) { return function (o) { return t.call(e, o || window.event) } }, False: function () { return !1 }, True: function () { return !0 }, Void: function () { } }, e.ArrayExt = n.SuperMap.Array = { filter: function (t, e, o) { var n = []; if (Array.prototype.filter) n = t.filter(e, o); else { var i = t.length; if ("function" != typeof e) throw new TypeError; for (var l = 0; l < i; l++)if (l in t) { var r = t[l]; e.call(o, r, l, t) && n.push(r) } } return n } }
+ }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.BasicAlgoSymbolFactory = void 0, o(54); e.BasicAlgoSymbolFactory = SuperMap.Plot.BasicAlgoSymbolFactory = SuperMap.Plot.BasicAlgoSymbolFactory || {}; SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol = function (t, e, o) { if (0 === t) switch (e) { case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL: return new SuperMap.Plot.GeoTooltipBox(o); case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM: return new SuperMap.Plot.GeoTooltipBoxM(o); case SuperMap.Plot.SymbolType.PATHTEXT: return new SuperMap.Plot.PathText(o); case SuperMap.Plot.SymbolType.ARROWLINE: return new SuperMap.Plot.ArrowLine(o); case SuperMap.Plot.SymbolType.CURVEEIGHT: return new SuperMap.Plot.CurveEight(o); case SuperMap.Plot.SymbolType.RUNWAY: return new SuperMap.Plot.Runway(o); case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE: return new SuperMap.Plot.ConcentricCircle(o); case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE: return new SuperMap.Plot.CombinationalCircle(o); case SuperMap.Plot.SymbolType.FREECURVE: return new SuperMap.Plot.FreeCurve(o); case SuperMap.Plot.SymbolType.REGULARPOLYGON: return new SuperMap.Plot.RegularPolygon(o); case SuperMap.Plot.SymbolType.BRACESYMBOL: return new SuperMap.Plot.Brace(o); case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL: return new SuperMap.Plot.Trapezoid(o); case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX: return new SuperMap.Plot.SymbolTextBox(o); case SuperMap.Plot.SymbolType.NODECHAIN: return new SuperMap.Plot.NodeChain(o); case SuperMap.Plot.SymbolType.LINERELATION: return new SuperMap.Plot.LineRelation(o); case SuperMap.Plot.SymbolType.LINEMARKING: return new SuperMap.Plot.LineMarking(o); case SuperMap.Plot.SymbolType.POLYGONREGION: return new SuperMap.Plot.PolygonRegion(o); case SuperMap.Plot.SymbolType.WIRE: return new SuperMap.Plot.Wire(o); default: return new SuperMap.Plot.AlgoSymbol(o) } else if (22 === t) switch (e) { case 1001: return new SuperMap.Plot.AlgoSymbol1001(o); case 1002: return new SuperMap.Plot.AlgoSymbol1002(o); case 1003: return new SuperMap.Plot.AlgoSymbol1003(o); case 1004: return new SuperMap.Plot.AlgoSymbol1004(o); case 1005: return new SuperMap.Plot.AlgoSymbol1005(o); case 1006: return new SuperMap.Plot.AlgoSymbol1006(o); case 1007: return new SuperMap.Plot.AlgoSymbol1007(o); case 1008: return new SuperMap.Plot.AlgoSymbol1008(o); case 1009: return new SuperMap.Plot.AlgoSymbol1009(o); case 1010: return new SuperMap.Plot.AlgoSymbol1010(o); case 1011: return new SuperMap.Plot.AlgoSymbol1011(o); case 1012: return new SuperMap.Plot.AlgoSymbol1012(o); case 1013: return new SuperMap.Plot.AlgoSymbol1013(o); case 1014: return new SuperMap.Plot.AlgoSymbol1014(o); case 1015: return new SuperMap.Plot.AlgoSymbol1015(o); case 1016: return new SuperMap.Plot.AlgoSymbol1016(o); case 1017: return new SuperMap.Plot.AlgoSymbol1017(o); case 1018: return new SuperMap.Plot.AlgoSymbol1018(o); case 1019: return new SuperMap.Plot.AlgoSymbol1019(o); case 1020: return new SuperMap.Plot.AlgoSymbol1020(o); case 1021: return new SuperMap.Plot.AlgoSymbol1021(o); case 1022: return new SuperMap.Plot.AlgoSymbol1022(o); default: return null } else { if (421 !== t) return null; switch (e) { case 311: return new SuperMap.Plot.AlgoSymbol1004(o); case 315: return new SuperMap.Plot.AlgoSymbol315(o); case 317: return new SuperMap.Plot.AlgoSymbol1006(o); case 318: return new SuperMap.Plot.AlgoSymbol1002(o); case 319: return new SuperMap.Plot.AlgoSymbol15200(o); default: return null } } }, SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolWayType = function (t, e) { if (0 === t) switch (e) { case SuperMap.Plot.SymbolType.POLYLINESYMBOL: case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL: return SuperMap.Plot.AddPoint_WayType.POLYLINE; case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL: case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL: return SuperMap.Plot.AddPoint_WayType.CURVE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } else if (22 === t) switch (e) { case 1005: case 1008: case 1012: case 1014: return SuperMap.Plot.AddPoint_WayType.CURVE; case 1007: case 1009: case 1013: case 1015: case 1017: return SuperMap.Plot.AddPoint_WayType.POLYLINE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } }, SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer = function (t, e) { if (0 === t || 22 === t) return !1; if (421 !== t) return !0; switch (e) { case 311: case 317: case 318: case 315: case 319: return !1; default: return !0 } }, SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultSubSymbols = function () { return [] }, SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts = function (t, e) { if (0 === t) switch (e) { case SuperMap.Plot.SymbolType.TEXTSYMBOL: case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE: return 1; case SuperMap.Plot.SymbolType.CIRCLESYMBOL: case SuperMap.Plot.SymbolType.RECTANGLESYMBOL: case SuperMap.Plot.SymbolType.POLYLINESYMBOL: case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL: case SuperMap.Plot.SymbolType.KIDNEY: case SuperMap.Plot.SymbolType.ARROWLINE: case SuperMap.Plot.SymbolType.BRACESYMBOL: case SuperMap.Plot.SymbolType.CURVEEIGHT: case SuperMap.Plot.SymbolType.FREECURVE: case SuperMap.Plot.SymbolType.LINEMARKING: case SuperMap.Plot.SymbolType.LINERELATION: case SuperMap.Plot.SymbolType.NODECHAIN: case SuperMap.Plot.SymbolType.PATHTEXT: case SuperMap.Plot.SymbolType.REGULARPOLYGON: case SuperMap.Plot.SymbolType.RUNWAY: case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX: case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM: case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE: case SuperMap.Plot.SymbolType.WIRE: return 2; case SuperMap.Plot.SymbolType.ARCSYMBOL: case SuperMap.Plot.SymbolType.CHORDSYMBOL: case SuperMap.Plot.SymbolType.PIESYMBOL: case SuperMap.Plot.SymbolType.ELLIPSESYMBOL: case SuperMap.Plot.SymbolType.PARALLELOGRAM: case SuperMap.Plot.SymbolType.PARALLELLINE: case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL: case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL: case SuperMap.Plot.SymbolType.POLYGONREGION: case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL: case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL: return 3 } else if (22 === t) switch (e) { case 1001: case 1003: case 1005: case 1007: case 1008: case 1009: case 1011: case 1012: case 1013: case 1014: case 1015: case 1016: case 1017: case 1019: case 1020: case 1022: return 2; case 1002: case 1004: case 1006: case 1010: case 1018: case 1021: return 3 } else if (421 === t) switch (e) { case 319: return 2; case 311: case 315: case 317: case 318: return 3 } }, SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts = function (t, e) { if (0 === t) switch (e) { case SuperMap.Plot.SymbolType.TEXTSYMBOL: return 1; case SuperMap.Plot.SymbolType.CIRCLESYMBOL: case SuperMap.Plot.SymbolType.RECTANGLESYMBOL: case SuperMap.Plot.SymbolType.BRACESYMBOL: case SuperMap.Plot.SymbolType.LINEMARKING: case SuperMap.Plot.SymbolType.LINERELATION: case SuperMap.Plot.SymbolType.RUNWAY: case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX: case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM: return 2; case SuperMap.Plot.SymbolType.ARCSYMBOL: case SuperMap.Plot.SymbolType.CHORDSYMBOL: case SuperMap.Plot.SymbolType.PIESYMBOL: case SuperMap.Plot.SymbolType.ELLIPSESYMBOL: case SuperMap.Plot.SymbolType.PARALLELOGRAM: case SuperMap.Plot.SymbolType.KIDNEY: case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE: case SuperMap.Plot.SymbolType.CURVEEIGHT: case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL: case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL: return 3; case SuperMap.Plot.SymbolType.POLYLINESYMBOL: case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL: case SuperMap.Plot.SymbolType.PARALLELLINE: case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL: case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL: case SuperMap.Plot.SymbolType.ARROWLINE: case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE: case SuperMap.Plot.SymbolType.FREECURVE: case SuperMap.Plot.SymbolType.NODECHAIN: case SuperMap.Plot.SymbolType.PATHTEXT: case SuperMap.Plot.SymbolType.POLYGONREGION: case SuperMap.Plot.SymbolType.REGULARPOLYGON: case SuperMap.Plot.SymbolType.WIRE: return 9999 } else if (22 === t) switch (e) { case 1003: case 1019: case 1020: case 1022: return 2; case 1006: case 1021: return 4; case 1001: case 1002: case 1004: case 1005: case 1007: case 1008: case 1009: case 1010: case 1011: case 1012: case 1013: case 1014: case 1015: case 1016: case 1017: case 1018: return 99999 } else if (421 === t) switch (e) { case 317: return 4; case 311: case 315: case 318: case 319: return 99999 } }, SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle = function () { return {} }, SuperMap.Plot.BasicAlgoSymbolFactory.canSetSubSymbol = function (t, e) { return SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(t, e).length > 0 || 0 === this.libID && this.code === SuperMap.Plot.SymbolType.NODECHAIN }, SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol = function () { if (22 !== libID) return !1; switch (code) { case 1012: case 1013: case 1014: case 1015: return !0; default: return !1 } }, SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol = function () { return !1 }, SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName = function (t, e) { var o = ""; if (0 === t) switch (e) { case SuperMap.Plot.SymbolType.TEXTSYMBOL: o = "文本"; break; case SuperMap.Plot.SymbolType.CIRCLESYMBOL: o = "圆"; break; case SuperMap.Plot.SymbolType.RECTANGLESYMBOL: o = "矩形"; break; case SuperMap.Plot.SymbolType.ARCSYMBOL: o = "弧线"; break; case SuperMap.Plot.SymbolType.CHORDSYMBOL: o = "弓形"; break; case SuperMap.Plot.SymbolType.PIESYMBOL: o = "扇形"; break; case SuperMap.Plot.SymbolType.ELLIPSESYMBOL: o = "椭圆"; break; case SuperMap.Plot.SymbolType.PARALLELOGRAM: o = "平行四边形"; break; case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL: o = "多边形"; break; case SuperMap.Plot.SymbolType.POLYLINESYMBOL: o = "折线"; break; case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL: o = "贝赛尔曲线"; break; case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL: o = "闭合贝塞尔曲线"; break; case SuperMap.Plot.SymbolType.PARALLELLINE: o = "平行线"; break; case SuperMap.Plot.SymbolType.KIDNEY: o = "集结地"; break; case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL: o = "注记指示框"; break; case SuperMap.Plot.SymbolType.ARROWLINE: o = "箭头线"; break; case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE: o = "组合圆"; break; case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE: o = "同心圆"; break; case SuperMap.Plot.SymbolType.CURVEEIGHT: o = "八字形"; break; case SuperMap.Plot.SymbolType.FREECURVE: o = "自由线"; break; case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM: o = "多角标注框"; break; case SuperMap.Plot.SymbolType.LINEMARKING: o = "线型标注"; break; case SuperMap.Plot.SymbolType.LINERELATION: o = "对象间连线"; break; case SuperMap.Plot.SymbolType.NODECHAIN: o = "节点链"; break; case SuperMap.Plot.SymbolType.PATHTEXT: o = "沿线注记"; break; case SuperMap.Plot.SymbolType.POLYGONREGION: o = "多边形区域管理"; break; case SuperMap.Plot.SymbolType.RUNWAY: o = "跑道线"; break; case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX: o = "标注框"; break; case SuperMap.Plot.SymbolType.REGULARPOLYGON: o = "正多边形"; break; case SuperMap.Plot.SymbolType.BRACESYMBOL: o = "大括号"; break; case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL: o = "梯形"; break; case SuperMap.Plot.SymbolType.WIRE: o = "铁丝网" }return o } }, function (t, e, o) { "use strict"; var n, i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }; n = function () { return this }(); try { n = n || Function("return this")() || (0, eval)("this") } catch (t) { "object" === ("undefined" == typeof window ? "undefined" : i(window)) && (n = window) } t.exports = n }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.FetchRequest = e.getRequestTimeout = e.setRequestTimeout = e.isCORS = e.setCORS = void 0; var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t };
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(113),o(108);var i,l=o(107),r=(i=l)&&i.__esModule?i:{default:i},a=o(0),s=o(1);var u=window.fetch,p=(e.setCORS=a.SuperMap.setCORS=function(t){a.SuperMap.CORS=t},e.isCORS=a.SuperMap.isCORS=function(){return void 0!=a.SuperMap.CORS?a.SuperMap.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest}),c=(e.setRequestTimeout=a.SuperMap.setRequestTimeout=function(t){return a.SuperMap.RequestTimeout=t},e.getRequestTimeout=a.SuperMap.getRequestTimeout=function(){return a.SuperMap.RequestTimeout||45e3});e.FetchRequest=a.SuperMap.FetchRequest={commit:function(t,e,o,n){switch(t=t?t.toUpperCase():t){case"GET":return this.get(e,o,n);case"POST":return this.post(e,o,n);case"PUT":return this.put(e,o,n);case"DELETE":return this.delete(e,o,n);default:return this.get(e,o,n)}},supportDirectRequest:function(t,e){return s.Util.isInTheSameDomain(t)||p()||e.proxy},get:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){var n={url:t=t.replace(".json",".jsonp"),data:e};return a.SuperMap.Util.RequestJSONPPromise.GET(n)}return this.urlIsLong(t)?this._postSimulatie("GET",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"GET")},delete:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var n={url:t+="&_method=DELETE",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(n)}return this.urlIsLong(t)?this._postSimulatie("DELETE",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"DELETE")},post:function(t,e,o){if(o=o||{},!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var n={url:t+="&_method=POST",data:e};return a.SuperMap.Util.RequestJSONPPromise.POST(n)}return this._fetch(this._processUrl(t,o),e,o,"POST")},put:function(t,e,o){if(o=o||{},t=this._processUrl(t,o),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var n={url:t+="&_method=PUT",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(n)}return this._fetch(t,e,o,"PUT")},urlIsLong:function(t){for(var e=0,o=null,n=0,i=t.length;n<i;n++)(o=t.charCodeAt(n))<127?e++:128<=o&&o<=2047?e+=2:2048<=o&&o<=65535&&(e+=3);return!(e<2e3)},_postSimulatie:function(t,e,o,n){return e+=(e.indexOf("?")>-1?"&":"?")+"_method="+t,"string"!=typeof o&&(o=JSON.stringify(o)),this.post(e,o,n)},_processUrl:function(t,e){if(this._isMVTRequest(t))return t;if(-1===t.indexOf(".json")&&!e.withoutFormatSuffix)if(t.indexOf("?")<0)t+=".json";else{var o=t.split("?");2===o.length&&(t=o[0]+".json?"+o[1])}return e&&e.proxy&&("function"==typeof e.proxy?t=e.proxy(t):(t=decodeURIComponent(t),t=e.proxy+encodeURIComponent(t))),t},_fetch:function(t,e,o,n){return(o=o||{}).headers=o.headers||{},o.headers["Content-Type"]||(o.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),o.timeout?this._timeout(o.timeout,u(t,{method:n,headers:o.headers,body:"PUT"===n||"POST"===n?e:void 0,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})):u(t,{method:n,body:"PUT"===n||"POST"===n?e:void 0,headers:o.headers,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})},_fetchJsonp:function(t,e){return e=e||{},(0,r.default)(t,{method:"GET",timeout:e.timeout}).then(function(t){return t})},_timeout:function(t,e){return new Promise(function(o,n){setTimeout(function(){n(new Error("timeout"))},t),e.then(o,n)})},_getParameterString:function(t){var e=[];for(var o in t){var i=t[o];if(null!=i&&"function"!=typeof i){var l;if("object"===(void 0===i?"undefined":n(i))&&i.constructor===Array){for(var r,a=[],s=0,u=i.length;s<u;s++)r=i[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));l="["+a.join(",")+"]"}else l=encodeURIComponent(i);e.push(encodeURIComponent(o)+"="+l)}}return e.join("&")},_isMVTRequest:function(t){return t.indexOf(".mvt")>-1||t.indexOf(".pbf")>-1}};a.SuperMap.Util.RequestJSONPPromise={limitLength:1500,queryKeys:[],queryValues:[],supermap_callbacks:{},addQueryStrings:function(t){for(var e in t){this.queryKeys.push(e),"string"!=typeof t[e]&&(t[e]=a.SuperMap.Util.toJSON(t[e]));var o=encodeURIComponent(t[e]);this.queryValues.push(o)}},issue:function(t){for(var e=this,o=e.getUid(),n=t.url,i=[],l=new Promise(function(t){e.supermap_callbacks[o]=function(n){delete e.supermap_callbacks[o],t(n)}}),r=n,a=0,s=e.queryKeys?e.queryKeys.length:0,u=0;u<s;u++)if(r.length+e.queryKeys[u].length+2>=e.limitLength){if(0==a)return!1;i.push(r),r=n,a=0,u--}else if(r.length+e.queryKeys[u].length+2+e.queryValues[u].length>e.limitLength)for(var p=e.queryValues[u];p.length>0;){var c=e.limitLength-r.length-e.queryKeys[u].length-2;r.indexOf("?")>-1?r+="&":r+="?";var y=p.substring(0,c);"%"===y.substring(c-1,c)?(c-=1,y=p.substring(0,c)):"%"===y.substring(c-2,c-1)&&(c-=2,y=p.substring(0,c)),r+=e.queryKeys[u]+"="+y,p=p.substring(c),y.length>0&&(i.push(r),r=n,a=0)}else a++,r.indexOf("?")>-1?r+="&":r+="?",r+=e.queryKeys[u]+"="+e.queryValues[u];return i.push(r),e.send(i,"SuperMap.Util.RequestJSONPPromise.supermap_callbacks["+o+"]",t&&t.proxy),l},getUid:function(){return 1e3*(new Date).getTime()+Math.floor(1e17*Math.random())},send:function(t,e,o){var n=t.length;if(n>0)for(var i=(new Date).getTime(),l=0;l<n;l++){var a=t[l];a.indexOf("?")>-1?a+="&":a+="?",a+="sectionCount="+n,a+="§ionIndex="+l,a+="&jsonpUserID="+i,o&&(a=decodeURIComponent(a),a=o+encodeURIComponent(a)),(0,r.default)(a,{jsonpCallbackFunction:e,timeout:3e4})}},GET:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings(t.params),this.issue(t)},POST:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)},PUT:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)},DELETE:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=void 0,o(3);e.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory||{};SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(100===t){if(void 0!==SuperMap.Plot.JBAlgoSymbolFactory)return SuperMap.Plot.JBAlgoSymbolFactory.getSymbolWayType(t,e);switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 25601:case 25801:case 25901:case 26500:case 26501:case 26502:case 26503:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 25503:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}}if(123===t){if(void 0!==SuperMap.Plot.WJAlgoSymbolFactory)return SuperMap.Plot.WJAlgoSymbolFactory.getSymbolWayType(t,e);switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}}},SuperMap.Plot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMap.Plot.YJAlgoSymbolFactory||SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMap.Plot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}},SuperMap.Plot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?"":SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory&&SuperMap.Plot.JBAlgoSymbolFactory.canPolylineConnect(t,e)},SuperMap.Plot.AlgoSymbolFactory.canSetSubSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.canSetSubSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.canSetSubSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory&&SuperMap.Plot.YJAlgoSymbolFactory.canSetSubSymbol(t,e):SuperMap.Plot.BasicAlgoSymbolFactory.canSetSubSymbol(t,e)},SuperMap.Plot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.zoomCalSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.zoomCalSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.zoomCalSymbol(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol(t,e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(0),o.scaleValues.push(.185)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=0,n=0,i=e.length-1;n<i;n++)o+=SuperMap.Plot.PlottingUtil.distance(e[n],e[n+1]);for(var l=0,r=0,a=t.length-1;r<a;r++)l+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*l,u=this.scaleValues[1],p=this.scaleValues[2]*l,c=.3*p,y=p;y<o;y+=p){var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e);if(-1===P.index)return void this.finish();var h=y+c,f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===f.index)return void this.finish();var S=[],d=[];S.push(P.pts);var g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[P.index],P.pts);0===u?S.push(new SuperMap.Geometry.Point(g.pntLeft.x,g.pntLeft.y)):S.push(new SuperMap.Geometry.Point(g.pntRight.x,g.pntRight.y)),d.push(f.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[f.index],f.pts);if(0===u?d.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):d.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),p===y){this.scalePoints=[];var m=new SuperMap.Geometry.Point(S[1].x,S[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(S[0].x,S[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var n=0,i=0,l=o.length-1;i<l;i++)n+=SuperMap.Plot.PlottingUtil.distance(o[i],o[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n*this.scaleValues[2]);if(-1===s.index)return;var u=SuperMap.Plot.PlottingUtil.distance(s.pt,a)/n,p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=p?1:0,this.scaleValues[0]=u}else if(1===t){for(var c=0,y=-1,P=[],h=0,f=r.length-1;h<f;h++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[h],r[h+1]);if(S.isOnline){var d=SuperMap.Plot.PlottingUtil.distance(S.projectPoint,this.controlPoints[1]);0==c?(c=d,y=h,P=e):d<c&&(c=d,y=h,P=e)}}if(-1==y)return;for(var g=0,M=0,m=y-1;M<m;M++)g+=SuperMap.Plot.PlottingUtil.distance(r[M],r[M+1]);var v=(g+=SuperMap.Plot.PlottingUtil.distance(P,r[y]))/n;v>.7&&(v=.7),this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol315=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(.2),o.scaleValues.push(.2),o.scaleValues.push(.4),o.scaleValues.push(.4),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(1),o.scaleValues.push(1)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol315",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments),this.scaleValues.length<9&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(.2),this.scaleValues.push(.4),this.scaleValues.push(.4),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(1),this.scaleValues.push(1));var n,i=e*this.scaleValues[4],l=e*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],r+l);n=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],a));var s,u=e*this.scaleValues[6],p=e*this.scaleValues[7],c=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],r+p);s=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,t[0],c));var y=[];y.push(new SuperMap.Geometry.Point(n.pntLeft.x,n.pntLeft.y)),y.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),y.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),y.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var P=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(y);P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addScalePoint(n.pntLeft,3),this.addScalePoint(s.pntRight,4)}}},{key:"modifyPoint",value:function(t,o){if(!0===o.isScalePoint){var n=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var i=SuperMap.Plot.PlottingUtil.polylineDistance(n),l=SuperMap.Plot.PlottingUtil.projectPoint(o,n[0],n[1]);if(t<=2&&(SuperMap.Plot.AlgoSymbol1004.prototype.modifyPoint.apply(this,arguments),function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"modifyPoint",this).call(this,t,o)),3===t){var r=SuperMap.Plot.PlottingUtil.distance(o,l)/i,a=SuperMap.Plot.PlottingUtil.distance(l,n[0])/i;this.scaleValues[4]=r,this.scaleValues[5]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0],n[1],o)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var s=SuperMap.Plot.PlottingUtil.distance(o,l)/i,u=SuperMap.Plot.PlottingUtil.distance(l,n[1])/i;this.scaleValues[6]=s,this.scaleValues[7]=u,SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0],n[1],o)?this.scaleValues[9]=1:this.scaleValues[9]=0}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol315=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1022=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1022",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),l=SuperMap.Plot.PlottingUtil.findPointInLine(n[0],n[1],.6*e),r=SuperMap.Plot.PlottingUtil.findPointInLine(n[0],n[1],.5*e),a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,n[0],r).pntLeft;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[a,l,n[1]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var s=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.4*e),u=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.5*e),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,i[0],u).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[p,s,i[0]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i[1],i[0]]),this.addScalePoint(n[0],0),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(o[0],e)/n;this.scaleValues[0]=i}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1022=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1021=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.25),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1021",o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,o.m_dMaxDis=0,o.m_bIsAnimation=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.components=[],this.m_scalePoints=[],t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e);o.LeftArowHead.unshift(o.LeftArowLeftBody[0][o.LeftArowLeftBody[0].length-1]),o.RightArowHead.unshift(o.RightArowLeftBody[o.RightArowLeftBody.length-1]),o.LeftArowLeftBody[0].push(o.LeftArowHead[0]),o.RightArowLeftBody.push(o.RightArowHead[0]),o.shapePts.push(o.shapePts[0]);var n=SuperMap.Plot.PlottingUtil.polylineDistance(o.LeftArowLeftBody[0]),i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*n,o.LeftArowLeftBody[0]),l=[],r=[];if(i.bfind)for(var a=0;a<=i.index;a++)l.push(o.LeftArowLeftBody[0][a]);var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*n,o.LeftArowLeftBody[0]);if(s.bfind)for(var u=s.index;u<o.LeftArowLeftBody[0].length-1;u++)r.push(o.LeftArowLeftBody[0][u]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowLeftBody),c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*p,o.RightArowLeftBody),y=[],P=[];if(c.bfind)for(var h=0;h<=c.index;h++)y.push(o.RightArowLeftBody[h]);var f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*p,o.RightArowLeftBody);if(f.bfind)for(var S=f.index;S<o.RightArowLeftBody.length-1;S++)P.push(o.RightArowLeftBody[S]);var d=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowRightBody),g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*d,o.RightArowRightBody),M=[],m=[];if(g.bfind)for(var v=0;v<=g.index;v++)M.push(o.RightArowRightBody[v]);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*d,o.RightArowRightBody);if(b.bfind)for(var T=b.index;T<o.RightArowRightBody.length-1;T++)m.push(o.RightArowRightBody[T]);o.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)),this.scalePoints=[];for(var A=0;A<this.m_scalePoints.length;A++)this.m_scalePoints[A].isScalePoint=!0,this.m_scalePoints[A].tag=A,this.scalePoints.push(this.m_scalePoints[A]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var n,i=SuperMap.Plot.PlottingUtil.operateControlPoints(o),l=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),r=new SuperMap.Geometry.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,r);if(a.isOnline){var s=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l),u=SuperMap.Plot.PlottingUtil.distance(l,r);(n=SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/u)>this.SV1_MaxValue&&(n=this.SV1_MaxValue)}else n=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l)<SuperMap.Plot.PlottingUtil.distance(a.projectPoint,r)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(n)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];o=this.m_bIsAnimation&&4===t.length?SuperMap.Plot.PlottingUtil.clonePoints(t):SuperMap.Plot.PlottingUtil.operateControlPoints(t);var n=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),l=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),u=new SuperMap.Geometry.Point(a,s),p=.5*(o[1].x+o[2].x),c=.5*(o[1].y+o[2].y),y=new SuperMap.Geometry.Point(p,c),P=SuperMap.Plot.PlottingUtil.distance(u,y);P<this.MIN_LEN_LeftToRightCenter&&(P=this.MIN_LEN_LeftToRightCenter),u.x=a+i*(a-p)/(P*this.QIANJI_RATE1),u.y=s+i*(s-c)/(P*this.QIANJI_RATE1),y.x=p+l*(p-a)/(P*this.QIANJI_RATE1),y.y=c+l*(c-s)/(P*this.QIANJI_RATE1);var h=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0);h.x=a+i*(a-p)/(P*this.QIANJI_RATE2),h.y=s+i*(s-c)/(P*this.QIANJI_RATE2),f.x=p+l*(p-a)/(P*this.QIANJI_RATE2),f.y=c+l*(c-s)/(P*this.QIANJI_RATE2);var S=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),d=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),g=o[3].x-(o[3].x-u.x)*this.SCALE_AT,M=o[3].y-(o[3].y-u.y)*this.SCALE_AT,m=o[2].x-(o[2].x-y.x)*this.SCALE_AT,v=o[2].y-(o[2].y-y.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0);T.x=g-(M-o[3].y)*this.SCALE_ATAJ,T.y=M+(g-o[3].x)*this.SCALE_ATAJ,b.x=g+(M-o[3].y)*this.SCALE_ATAJ,b.y=M-(g-o[3].x)*this.SCALE_ATAJ,L.x=m-(v-o[2].y)*this.SCALE_ATAJ,L.y=v+(m-o[2].x)*this.SCALE_ATAJ,A.x=m+(v-o[2].y)*this.SCALE_ATAJ,A.y=v-(m-o[2].x)*this.SCALE_ATAJ;var O=new SuperMap.Geometry.Point(0,0),E=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);O.x=3*b.x-2*g-(o[3].x-g)*this.SCALE_ATAE,O.y=3*b.y-2*M-(o[3].y-M)*this.SCALE_ATAE,E.x=3*T.x-2*g-(o[3].x-g)*this.SCALE_ATAE,E.y=3*T.y-2*M-(o[3].y-M)*this.SCALE_ATAE,x.x=3*A.x-2*m-(o[2].x-m)*this.SCALE_ATAE,x.y=3*A.y-2*v-(o[2].y-v)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,u.x=a+i*(a-p)/(P*this.QIANJI_RATE4),u.y=s+i*(s-c)/(P*this.QIANJI_RATE4),y.x=p+l*(p-a)/(P*this.QIANJI_RATE4),y.y=c+l*(c-s)/(P*this.QIANJI_RATE4);var I=new SuperMap.Geometry.Point(0,0);I.x=o[0].x+(u.x-o[0].x)*this.SCALE_AW,I.y=o[0].y+(u.y-o[0].y)*this.SCALE_AW;var R=new SuperMap.Geometry.Point(0,0);R.x=o[1].x+(y.x-o[1].x)*this.SCALE_AW,R.y=o[1].y+(y.y-o[1].y)*this.SCALE_AW;var C=new SuperMap.Geometry.Point(0,0);C.x=b.x+(u.x-b.x)*this.SCALE_ATAJctrlSameSide,C.y=b.y+(u.y-b.y)*this.SCALE_ATAJctrlSameSide;var _=new SuperMap.Geometry.Point(0,0);_.x=L.x+(y.x-L.x)*this.SCALE_ATAJctrlSameSide,_.y=L.y+(y.y-L.y)*this.SCALE_ATAJctrlSameSide;var U=new SuperMap.Geometry.Point(0,0);U.x=T.x+(h.x-T.x)*this.SCALE_ATAJctrlDefSide,U.y=T.y+(h.y-T.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMap.Geometry.Point(0,0);N.x=A.x+(f.x-A.x)*this.SCALE_ATAJctrlDefSide,N.y=A.y+(f.y-A.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=S.x+(d.x-S.x)*n,D.y=S.y+(d.y-S.y)*n,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var B=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);B.x=o[0].x+(o[3].x-o[0].x)*n,B.y=o[0].y+(o[3].y-o[0].y)*n,G.x=o[1].x+(o[2].x-o[1].x)*n,G.y=o[1].y+(o[2].y-o[1].y)*n,B.x=B.x+(D.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(D.y-B.y)*this.QIANJI_RATE3,G.x=G.x+(D.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(D.y-G.y)*this.QIANJI_RATE3;var k=[];k.push(o[0].clone()),k.push(I.clone()),k.push(C.clone()),k.push(b.clone()),e.MoveTo(k[0]),e.CurveTo(k[1],k[2],k[3]);var V,Y=[],F=[],j=[],z=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),Y.push(q[0]),V=q[0].length,e.LineTo(O),e.LineTo(o[3]),e.LineTo(E),(k=[]).push(T),k.push(U),k.push(B),k.push(D),e.LineTo(k[0]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)F.push(q[0][V]);for(V=q[0].length,e.CurveTo(k[1],k[2],k[3]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)j.push(q[0][V]);for(V=q[0].length,(k=[]).push(G),k.push(N),k.push(A),e.CurveTo(k[0],k[1],k[2]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)z.push(q[0][V]);for(V=q[0].length,e.LineTo(x),e.LineTo(o[2]),e.LineTo(w),(k=[]).push(L),k.push(_),k.push(R),k.push(r),e.LineTo(k[0]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)W.push(q[0][V]);for(V=q[0].length,e.CurveTo(k[1],k[2],k[3]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)H.push(q[0][V]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:Y,LeftArowHead:F,LeftArowRightBody:j,ArowMidBody:[],RightArowLeftBody:z,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1021=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1020",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),n=SuperMap.Plot.PlottingUtil.distance(e,o),i=this.scaleValues[0],l=new SuperMap.Geometry.Point(0,-n*i),r=new SuperMap.Geometry.Point(0,n*i),a=this.scaleValues[1],s=this.scaleValues[3],u=new SuperMap.Geometry.Point(n*(1-s),-n*a),p=new SuperMap.Geometry.Point(n*(1-s),n*a),c=this.scaleValues[2],y=this.scaleValues[4],P=new SuperMap.Geometry.Point(n*(1-y),-n*c),h=new SuperMap.Geometry.Point(n*(1-y),n*c),f=new SuperMap.Geometry.Point(n,0),S=SuperMap.Plot.PlottingUtil.radian(e,o),d=SuperMap.Plot.PlottingUtil.distance(l,u),g=SuperMap.Plot.PlottingUtil.findPointInLine(l,u,.3*d),M=SuperMap.Plot.PlottingUtil.findPointInLine(l,u,.4*d),m=SuperMap.Plot.PlottingUtil.distance(p,r),v=SuperMap.Plot.PlottingUtil.findPointInLine(p,r,.6*m),b=SuperMap.Plot.PlottingUtil.findPointInLine(p,r,.7*m),T=[];T.push(l),T.push(g),T.push(M),T.push(u),T.push(P),T.push(f),T.push(h),T.push(p),T.push(v),T.push(b),T.push(r);for(var A=[],L=0;L<T.length;L++){var O=SuperMap.Plot.PlottingUtil.coordinateTrans(e,T[L],S*SuperMap.Plot.PlottingUtil.RTOD);A.push(O)}for(var E=[],x=A.length-1;x>=0;--x)E.push(A[x]);var w=SuperMap.Plot.PlottingUtil.clonePoints(E);w.push(w[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[0],E[1]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[2],E[3]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[3],E[4],E[5],E[6],E[7]],{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[7],E[8]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[9],E[10]]),this.scalePoints=[];var I=A[0].clone();I.isScalePoint=!0,I.tag=0,this.scalePoints.push(I);var R=A[3].clone();R.isScalePoint=!0,R.tag=1,this.scalePoints.push(R);var C=A[4].clone();C.isScalePoint=!0,C.tag=2,this.scalePoints.push(C),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var n=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,i)/n;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,i,l),u=SuperMap.Plot.PlottingUtil.distance(s,r)/n;this.scaleValues[1]=u;var p=SuperMap.Plot.PlottingUtil.distance(s,l)/n;this.scaleValues[3]=p}else if(2==t){var c=SuperMap.Plot.PlottingUtil.projectPoint(r,i,l),y=SuperMap.Plot.PlottingUtil.distance(c,r)/n;this.scaleValues[2]=y;var P=SuperMap.Plot.PlottingUtil.distance(c,l)/n;this.scaleValues[4]=P}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1020=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1019=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1019",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),n=SuperMap.Plot.PlottingUtil.distance(e,o),i=this.scaleValues[0],l=new SuperMap.Geometry.Point(0,-n*i),r=new SuperMap.Geometry.Point(0,n*i),a=this.scaleValues[1],s=this.scaleValues[3],u=new SuperMap.Geometry.Point(n*(1-s),-n*a),p=new SuperMap.Geometry.Point(n*(1-s),n*a),c=this.scaleValues[2],y=this.scaleValues[4],P=new SuperMap.Geometry.Point(n*(1-y),-n*c),h=new SuperMap.Geometry.Point(n*(1-y),n*c),f=new SuperMap.Geometry.Point(n,0),S=SuperMap.Plot.PlottingUtil.radian(e,o),d=[];d.push(l),d.push(u),d.push(P),d.push(f),d.push(h),d.push(p),d.push(r),d.push(l);for(var g=[],M=0;M<d.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,d[M],S*SuperMap.Plot.PlottingUtil.RTOD);g.push(m)}for(var v=[],b=g.length-1;b>=0;--b)v.push(g[b]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[2],v[1],v[7],v[6]],{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[6],v[5],v[4],v[3],v[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var T=g[0].clone();T.isScalePoint=!0,T.tag=0,this.scalePoints.push(T);var A=g[1].clone();A.isScalePoint=!0,A.tag=1,this.scalePoints.push(A);var L=g[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var n=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,i)/n;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,i,l),u=SuperMap.Plot.PlottingUtil.distance(s,r)/n;this.scaleValues[1]=u;var p=SuperMap.Plot.PlottingUtil.distance(s,l)/n;this.scaleValues[3]=p}else if(2==t){var c=SuperMap.Plot.PlottingUtil.projectPoint(r,i,l),y=SuperMap.Plot.PlottingUtil.distance(c,r)/n;this.scaleValues[2]=y;var P=SuperMap.Plot.PlottingUtil.distance(c,l)/n;this.scaleValues[4]=P}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1019=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1018=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1018",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e),n=SuperMap.Plot.PlottingUtil.clonePoints(o.shapePts);(n=SuperMap.Plot.PlottingUtil.clearSamePts(n)).push(n[0]);var i=SuperMap.Plot.PlottingUtil.clearSamePts(o.leftBodyPts),l=SuperMap.Plot.PlottingUtil.clearSamePts(o.rightBodyPts),r=SuperMap.Plot.PlottingUtil.clearSamePts(o.arrowHeadPts);if(0!=o.shapePts.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(i),s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*a,i),u=[],p=[],c=[];if(s.bfind)for(var y=0;y<=s.index;y++)u.push(i[y]);var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.45*a,i),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.8*a,i);if(P.bfind&&h.bfind)for(var f=P.index;f<=h.index;f++)p.push(i[f]);var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.85*a,i);if(S.bfind)for(var d=S.index;d<i.length;d++)c.push(i[d]);var g=SuperMap.Plot.PlottingUtil.polylineDistance(l),M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.15*g,l),m=[],v=[],b=[];if(M.bfind)for(var T=0;T<=M.index;T++)m.push(l[T]);var A=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*g,l),L=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.55*g,l);if(A.bfind&&L.bfind)for(var O=A.index;O<=L.index;O++)v.push(l[O]);var E=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*g,l);if(E.bfind)for(var x=E.index;x<l.length;x++)b.push(l[x]);var w=SuperMap.Plot.PlottingUtil.clonePoints(r);w.splice(0,0,i[i.length-1]),w.push(l[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,{surroundLineFlag:!1,lineTypeLimit:!0});var I=this.updateScalePoints(e);if(this.scalePoints=[],3!=I.length)I=[];else for(var R=0;R<I.length;R++)I[R].isScalePoint=!0,I[R].tag=R,this.scalePoints.push(I[R]);this.finish()}else this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var n=o.length;if(n<=2)return;var i,l,r,a,s=this.operateCtrlPts(o);n=s.length,n--;var u=this.calcScaleValueCount(o.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(n);i=p[0],l=p[1],r=p[2],a=p[3]}else i=this.scaleValues[0],l=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var c=SuperMap.Plot.PlottingUtil.polylineDistance(o),y=[],P=0;P<this.scalePoints.length;P++)y.push(this.scalePoints[P].clone());if(0==y.length)return;y[t]=e.clone();var h,f,S=n-1;h=n<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[S-1].clone();var d,g,M,m,v,b,T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h,s[S],s[S+1],A,L),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[n],s[n-1],L,T),f=T.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[2]);d=O.dLen1,O.dLen2,0==d&&(d=.1),g=d,i=(d/=a+1)/c,1==t?(m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[1])).dLen1,r=(v=O.dLen2)/d,a=(m-d)/d):0==t?(d=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[0])).dLen1,l=(M=O.dLen2)/d,(b=SuperMap.Plot.PlottingUtil.distance(s[n],s[n-1]))<2*d&&(d=.5*b),m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[1])).dLen1,r=(v=O.dLen2)/d,(a=(g-d)/d)<.1&&(r=v/(d=g/(1+(a=.1))),l=M/d),i=d/c):2==t&&(i=d/c),M=d*l,(b=SuperMap.Plot.PlottingUtil.distance(s[n],s[n-1]))<2*d&&(M=(d=.5*b)*l,i=d/c),this.scaleValues[0]=i,this.scaleValues[1]=l,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],n=[],i=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var y=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,c,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),P=0;P<s.length;P++)e.push(s[P]),o.push(s[P]);for(var h=0;h<y.length;h++)e.push(y[h]),i.push(y[h]);for(var f=u.length-1;f>=0;f--)e.push(u[f]),n.push(u[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:n,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var n=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);var a=this.genArrowBodyPts(n,i,l),s=a.ArrowBodyCenterPts,u=this.genAtPts(e,s,l,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,l,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),o.push(new SuperMap.Geometry.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,n=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,n),l=e[2];e[2]=i,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var n,i,l,r=[],a=[],s=[],u=[],p=[],c=[],y=e.length;if(y--,o.length<this.calcScaleValueCount(y)){var P=this.calcDefaultScaleValues(y);i=P[0],l=P[1]}else i=o[0],l=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),f=(h[0].x+h[1].x)/2,S=(h[0].y+h[1].y)/2,d=Math.abs(f-h[2].x),g=Math.abs(S-h[2].y),M=0;if(d>0&&g>0){var m=1/(f-h[2].x),v=-1/(S-h[2].y),b=1*h[2].y/(S-h[2].y)-1*h[2].x/(f-h[2].x);M=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else g<=1e-4?M=Math.abs(S-h[1].y):d<=1e-4&&(M=Math.abs(f-h[1].x));var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,h[2],new SuperMap.Geometry.Point(f,S)),A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);A?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var L=Math.sqrt((T.pntLeft.x-T.pntRight.x)*(T.pntLeft.x-T.pntRight.x)+(T.pntLeft.y-T.pntRight.y)*(T.pntLeft.y-T.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(n=L*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(O=(n=t*i)*l);var E,x,w=SuperMap.Plot.PlottingUtil.distance(h[y],h[y-1]),I=2*n;w<I&&(O=(n=w/2)*l),h.push(h[y].clone()),E=0,x=0;var R=0,C=[];for(R=2;R<=y;R++)E+=SuperMap.Plot.PlottingUtil.distance(h[R],h[R-1]);for(E-=n,R=2;R<=y-1;R++)x+=SuperMap.Plot.PlottingUtil.distance(h[R],h[R-1]),C[R]=O+(L-O)*Math.pow((E-x)/E,this.sv_AtScaleParameter);C[y]=O;var _,U,N=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(R=2;R<=y-1;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[R-1],h[R],h[R+1],D,B),R==y-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[y],h[y-1],B,N),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[R],D,h[R]),(A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),a[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(r[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),a[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(h[y].x-N.x)*(h[y].x-N.x)+1*(h[y].y-N.y)*(h[y].y-N.y))>0&&(h[y]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n,h[y],N)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,h[y+1],h[y]),(A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[y],h[y+1],_.pntLeft))?(a[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(a[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),R=2;R<y;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[R-1],r[R],r[R+1],D,B),s[R]=new SuperMap.Geometry.Point(D.x,D.y),u[R]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[R-1],a[R],a[R+1],D,B),p[R]=new SuperMap.Geometry.Point(D.x,D.y),c[R]=new SuperMap.Geometry.Point(B.x,B.y),2==R&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[R]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[R]=new SuperMap.Geometry.Point(N.x,N.y)),R==y-1&&(I=(w=SuperMap.Plot.PlottingUtil.distance(r[y],r[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,h[y],h[y+1])).x+=r[y].x-h[y].x,U.y+=r[y].y-h[y].y,I=(w=L-O)*Math.pow(I/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,r[y],U),s[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),I=(w=SuperMap.Plot.PlottingUtil.distance(a[y],a[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,h[y],h[y+1])).x+=a[y].x-h[y].x,U.y+=a[y].y-h[y].y,I=(w=L-O)*Math.pow(I/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,a[y],U),p[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,ArrowTouLen:n}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,n){var i=o[2],l=[],r=n*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=n*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return l.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,o,n){var i=n*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1018=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1017=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.3)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1017",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),n=o.arrowTouLen,i=o.leftBodyPts,l=o.rightBodyPts,r=[];r.push(i[i.length-1]),r.push(l[l.length-1]);var a=[];a.push(this.scaleValues[3]),a.push(this.scaleValues[4]),a.push(this.scaleValues[0]),a.push(this.scaleValues[1]);var s=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(e,r,a,n,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),u=[];u=(u=u.concat(i)).concat(s);for(var p=l.length-1;p>=0;p--)u.push(l[p]);u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var c=SuperMap.Plot.PlottingUtil.clonePoints(i),y=[],P=l.length-1;P>=0;P--)y.push(l[P]);y=y.concat(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var h=SuperMap.Plot.PlottingUtil.clonePoints(s);h.push(l[l.length-1]),h.splice(0,0,i[i.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var f=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),S=new SuperMap.Geometry.Point(f.x,f.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var d=new SuperMap.Geometry.Point(i[i.length-1].x,i[i.length-1].y);d.isScalePoint=!0,d.tag=1,this.scalePoints.push(d);var g=new SuperMap.Geometry.Point(s[0].x,s[0].y);g.isScalePoint=!0,g.tag=2,this.scalePoints.push(g),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),n=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);r=SuperMap.Plot.PlottingUtil.clearSamePts(r);var a=SuperMap.Plot.PlottingUtil.polylineDistance(r),s=a*l;if(0==t){var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[r.length-2],r[r.length-1]),p=u.projectPoint;if(u.isOnline){var c=SuperMap.Plot.PlottingUtil.distance(p,r[r.length-1]);this.scaleValues[0]=c/a}}else if(1==t){var y=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,i).projectPoint,P=SuperMap.Plot.PlottingUtil.distance(y,o);this.scaleValues[1]=P/s}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[1],i).projectPoint,f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,r[1]),S=f.projectPoint,d=SuperMap.Plot.PlottingUtil.distance(S,o);!1===f.isOnline&&(this.scaleValues[4]=d/s)}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1017=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1016=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.arrowHeadType=t.arrowHeadType?t.arrowHeadType:0,o.arrowBodyType=t.arrowBodyType?t.arrowBodyType:0,o.arrowTailType=t.arrowTailType?t.arrowTailType:0,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1016",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fillStyle:0,lineTypeLimit:!0};this.scaleValues[0]=this.getSubSymbolScaleValue();var o,n=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=2*Math.sqrt(n*n/3)/1.4,l=Math.sqrt(n*n/3),r=!1;this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r)):o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,r);var a=[];this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?(a.push(t[t.length-1]),a.push(t[t.length-2])):r?(a.push(t[t.length-1]),a.push(o[o.length-1])):(a.push(o[o.length-1]),a.push(o[o.length-2]));var s,u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(a,n,this.arrowHeadType);if(o.length>1)if(this.arrowBodyType!==SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);else for(var p=0,c=o.length-1;p<c;p+=2){var y=SuperMap.Plot.PlottingUtil.distance(o[p+1],o[p]),P=180*SuperMap.Plot.PlottingUtil.radian(o[p+1],o[p])/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(o[p+1],.3*y,.3*y,P+30),f=SuperMap.Plot.PlottingUtil.circlePoint(o[p+1],.3*y,.3*y,P+330),S=SuperMap.Plot.PlottingUtil.circlePoint(o[p],.3*y,.3*y,P+30),d=SuperMap.Plot.PlottingUtil.circlePoint(o[p],.3*y,.3*y,P+330),g=[];g.push(h,o[p+1],f,d,o[p],S),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,e)}s=this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER?SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([o[0],o[1]],n,this.arrowTailType):SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0],t[1]],n,this.arrowTailType);var M=SuperMap.Plot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(M=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL),u.length>1&&this.addCell(M,u,e),s.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}}]),e}();SuperMap.Plot.AlgoSymbol1016=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.AlgoSymbol1015=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1015",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1009),e}();SuperMap.Plot.AlgoSymbol1015=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.AlgoSymbol1014=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1014",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1008),e}();SuperMap.Plot.AlgoSymbol1014=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.AlgoSymbol1013=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1013",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1007),e}();SuperMap.Plot.AlgoSymbol1013=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.AlgoSymbol1012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1012",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1005),e}();SuperMap.Plot.AlgoSymbol1012=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1011=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_arrowTailWidth=.05,5!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen),o.scaleValues.push(o.sv_arrowTailWidth)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1011",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<2)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!==e){var o=e*this.scaleValues[4],n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);void 0!==t[0].z&&(n.pntLeft.z=t[0].z,n.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(n.pntLeft),this.controlPoints.push(n.pntRight);for(var i=1;i<t.length;i++)this.controlPoints.push(t[i].clone());for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);this.scaleValues=[];for(var a=0;a<l.length-1;a++)this.scaleValues.push(l[a]);SuperMap.Plot.AlgoSymbol1004.prototype.calculateParts.apply(this,arguments);var s=n.pntRight.clone();s.isScalePoint=!0,s.tag=3,this.addScalePoint(s),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var u=0;u<l.length;u++)this.scaleValues.push(l[u])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o.length<2)return;this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var n,i=o[0].clone(),l=SuperMap.Plot.PlottingUtil.polylineDistance(o),r=l*this.scaleValues[4],a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,o[1],o[0]);(o=[]).push(a.pntLeft),o.push(a.pntRight);for(var s=1;s<this.controlPoints.length;s++)o.push(this.controlPoints[s].clone());var u,p,c,y,P,h=o.length,f=this.operateCtrlPts(o);h=f.length,h--;var S=this.calcScaleValueCount(o.length);if(S++,this.scaleValues.length<S){var d=this.calcDefaultScaleValues(h);u=d[0],p=d[1],c=d[2],y=d[3],P=this.sv_arrowTailWidth}else u=this.scaleValues[0],p=this.scaleValues[1],c=this.scaleValues[2],y=this.scaleValues[3],P=this.scaleValues[4];n=SuperMap.Plot.PlottingUtil.polylineDistance(o);for(var g=[],M=0;M<this.scalePoints.length;M++)g.push(this.scalePoints[M].clone());if(0===g.length)return;g[t]=e.clone();var m,v,b=h-1;m=h<=3?new SuperMap.Geometry.Point((f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2):f[b-1].clone();var T,A,L,O,E,x,w=new SuperMap.Geometry.Point(0,0),I=new SuperMap.Geometry.Point(0,0),R=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,m,f[b],f[b+1],I,R),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,f[h],f[h-1],R,w),v=w.clone();var C=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h],v,g[2]);if(T=C.dLen1,C.dLen2,0===T&&(T=.1),A=T,u=(T/=y+1)/n,1===t)O=(C=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h],v,g[1])).dLen1,c=(E=C.dLen2)/T,y=(O-T)/T;else if(0===t)T=(C=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h],v,g[0])).dLen1,p=(L=C.dLen2)/T,(x=SuperMap.Plot.PlottingUtil.distance(f[h],f[h-1]))<2*T&&(T=.5*x),O=(C=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h],v,g[1])).dLen1,c=(E=C.dLen2)/T,(y=(A-T)/T)<.1&&(c=E/(T=A/(1+(y=.1))),p=L/T),u=T/n;else if(2===t)u=T/n;else{P=SuperMap.Plot.PlottingUtil.distance(e,i)/l}L=T*p,(x=SuperMap.Plot.PlottingUtil.distance(f[h],f[h-1]))<2*T&&(L=(T=.5*x)*p,u=T/n),this.scaleValues[0]=u,this.scaleValues[1]=p,this.scaleValues[2]=c,this.scaleValues[3]=y,this.scaleValues[4]=P}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],n=[],i=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var y=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,c,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),P=0;P<s.length;P++)e.push(s[P]),o.push(s[P]);for(var h=0;h<y.length;h++)e.push(y[h]),i.push(y[h]);for(var f=u.length-1;f>=0;f--)e.push(u[f]),n.push(u[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:n,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var n=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);var a=this.genArrowBodyPts(n,i,l),s=a.ArrowBodyCenterPts,u=this.genAtPts(e,s,l,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,l,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),o.push(new SuperMap.Geometry.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,n=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,n),l=e[2];e[2]=i,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var n,i,l,r=[],a=[],s=[],u=[],p=[],c=[],y=e.length;if(y--,o.length<this.calcScaleValueCount(y)){var P=this.calcDefaultScaleValues(y);i=P[0],l=P[1]}else i=o[0],l=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),f=(h[0].x+h[1].x)/2,S=(h[0].y+h[1].y)/2,d=Math.abs(f-h[2].x),g=Math.abs(S-h[2].y),M=0;if(d>0&&g>0){var m=1/(f-h[2].x),v=-1/(S-h[2].y),b=1*h[2].y/(S-h[2].y)-1*h[2].x/(f-h[2].x);M=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else g<=1e-4?M=Math.abs(S-h[1].y):d<=1e-4&&(M=Math.abs(f-h[1].x));var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,h[2],new SuperMap.Geometry.Point(f,S)),A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);A?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var L=Math.sqrt((T.pntLeft.x-T.pntRight.x)*(T.pntLeft.x-T.pntRight.x)+(T.pntLeft.y-T.pntRight.y)*(T.pntLeft.y-T.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(n=L*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(O=(n=t*i)*l);var E,x,w=SuperMap.Plot.PlottingUtil.distance(h[y],h[y-1]),I=2*n;w<I&&(O=(n=w/2)*l),h.push(h[y].clone()),E=0,x=0;var R=0,C=[];for(R=2;R<=y;R++)E+=SuperMap.Plot.PlottingUtil.distance(h[R],h[R-1]);for(E-=n,R=2;R<=y-1;R++)x+=SuperMap.Plot.PlottingUtil.distance(h[R],h[R-1]),C[R]=O+(L-O)*Math.pow((E-x)/E,this.sv_AtScaleParameter);C[y]=O;var _,U,N=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(R=2;R<=y-1;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[R-1],h[R],h[R+1],D,B),R===y-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[y],h[y-1],B,N),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[R],D,h[R]),(A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),a[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(r[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),a[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(h[y].x-N.x)*(h[y].x-N.x)+1*(h[y].y-N.y)*(h[y].y-N.y))>0&&(h[y]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n,h[y],N)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,h[y+1],h[y]),(A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[y],h[y+1],_.pntLeft))?(a[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(a[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),R=2;R<y;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[R-1],r[R],r[R+1],D,B),s[R]=new SuperMap.Geometry.Point(D.x,D.y),u[R]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[R-1],a[R],a[R+1],D,B),p[R]=new SuperMap.Geometry.Point(D.x,D.y),c[R]=new SuperMap.Geometry.Point(B.x,B.y),2===R&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[R]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[R]=new SuperMap.Geometry.Point(N.x,N.y)),R===y-1&&(I=(w=SuperMap.Plot.PlottingUtil.distance(r[y],r[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,h[y],h[y+1])).x+=r[y].x-h[y].x,U.y+=r[y].y-h[y].y,I=(w=L-O)*Math.pow(I/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,r[y],U),s[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),I=(w=SuperMap.Plot.PlottingUtil.distance(a[y],a[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,h[y],h[y+1])).x+=a[y].x-h[y].x,U.y+=a[y].y-h[y].y,I=(w=L-O)*Math.pow(I/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,a[y],U),p[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,ArrowTouLen:n}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,n){var i=o[2],l=[],r=n*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=n*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return l.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,o,n){var i=n*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1011=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(.148),o.scaleValues.push(.4),o.scaleValues.push(.312),o.scaleValues.push(.2)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1010",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);if(SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts),0!==e.shapePts.length){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1}),this.scalePoints=[];for(var o=0;o<e.m_scalePoints.length;o++)this.addScalePoint(e.m_scalePoints[o])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.scaleValues.length<4&&(this.scaleValues.push(0),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2));var n,i,l,r,a=o.length;if(a<=2)return;this.scaleValues.length<4?(n=0,i=.148,l=.4,r=.312):(n=this.scaleValues[0],i=this.scaleValues[1],l=this.scaleValues[2],r=this.scaleValues[3]);var s=SuperMap.Plot.PlottingUtil.polylineDistance(o),u=this.operateCtrlPts(o);a=u.length,a--;for(var p=[],c=0;c<this.scalePoints.length;c++)p.push(this.scalePoints[c].clone());if(0===p.length)return;if(p[t]=e.clone(),3===t){var y=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(o,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),P=new SuperMap.Geometry.Point(.5*(y.leftBodyPts[0].x+y.rightBodyPts[0].x),.5*(y.leftBodyPts[0].y+y.rightBodyPts[0].y)),h=SuperMap.Plot.PlottingUtil.distance(y.leftBodyPts[0],y.rightBodyPts[0]);this.scaleValues[4]=SuperMap.Plot.PlottingUtil.distance(P,e)/h}else{var f,S,d=a-1;f=a<=3?new SuperMap.Geometry.Point((u[0].x+u[1].x)/2,(u[0].y+u[1].y)/2):u[d-1].clone();var g,M,m,v,b,T,A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f,u[d],u[d+1],L,O),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,u[a],u[a-1],O,A),S=A.clone();var E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[2]);g=E.dLen1,E.dLen2,0===g&&(g=.1),M=g,n=(g/=r+1)/s,1===t?(v=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[1])).dLen1,l=(b=E.dLen2)/g,r=(v-g)/g):0===t?(g=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[0])).dLen1,i=(m=E.dLen2)/g,(T=SuperMap.Plot.PlottingUtil.distance(u[a],u[a-1]))<2*g&&(g=.5*T),v=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[1])).dLen1,l=(b=E.dLen2)/g,(r=(M-g)/g)<.1&&(l=b/(g=M/(1+(r=.1))),i=m/g),n=g/s):2===t&&(n=g/s),m=g*i,(T=SuperMap.Plot.PlottingUtil.distance(u[a],u[a-1]))<2*g&&(m=(g=.5*T)*i,n=g/s),this.scaleValues[0]=n,this.scaleValues[1]=i,this.scaleValues[2]=l,this.scaleValues[3]=r}}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],n=[],i=[],l=[],r=[],a=SuperMap.Plot.PlottingUtil.clonePoints(t),s=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(a,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),u=s.arrowTouLen,p=s.leftBodyPts,c=s.rightBodyPts;if(a=s.OpectrlPoints,!SuperMap.Plot.PlottingUtil.equalFuzzy(u,0)){var y=[];y.push(p[p.length-1]),y.push(c[c.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);var h=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(a,y,P,u,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),f=[];f.push(p[0]),f.push(c[0]);for(var S,d=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts(t,f,this.scaleValues[4],SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY),g=0;g<p.length;g++)e.push(p[g]),o.push(p[g]);for(var M=0;M<h.length;M++)e.push(h[M]),i.push(h[M]);for(var m=c.length-1;m>=0;m--)e.push(c[m]),n.push(c[m]);for(var v=1;v<d.length;v++)e.push(d[v]),l.push(d[v]);var b=a.length;b-=2;var T=u*this.scaleValues[3];S=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(T,a[b],a[b+1]);var A=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y);A.isScalePoint=!0,A.tag=0,r.push(A),(A=new SuperMap.Geometry.Point(i[0].x,i[0].y)).isScalePoint=!0,A.tag=1,r.push(A),(A=new SuperMap.Geometry.Point(S.x,S.y)).isScalePoint=!0,A.tag=2,r.push(A),(A=new SuperMap.Geometry.Point(d[1].x,d[1].y)).isScalePoint=!0,A.tag=3,r.push(A)}return{shapePts:e,leftBodyPts:o,rightBodyPts:n,arrowHeadPts:i,arrowTailPts:l,m_scalePoints:r}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,n=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,n),l=e[2];e[2]=i,e.push(l)}return e}}]),e}();SuperMap.Plot.AlgoSymbol1010=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1009",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!1),i=[];i.push(n[n.length-1]),i.push(n[n.length-2]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE),r=[];r.push(n[0]),r.push(n[1]);var a=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(r,o,SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL);if(e){for(var s=t.length,u=[],p=[],c=[],y=0;y<s;++y)u.push({x:ptsClone[y].x,y:ptsClone[y].y,z:t[y].z});var P,h={x:t[s-1].x,y:t[s-1].y,z:t[s-1].z},f={x:t[s-2].x,y:t[s-2].y,z:t[s-2].z};P=this.ComputeZValue(n[s-1],h,f),u.push({x:n[s-1].x,y:n[s-1].y,z:P});for(var S=0;S<l.length;++S)P=this.ComputeZValue(l[S],h,f),p.push({x:l[S].x,y:l[S].y,z:P});for(var d={x:t[1].x,y:t[1].y,z:t[1].z},g={x:t[0].x,y:t[0].y,z:t[0].z},M=0;M<a.length;++M)P=this.ComputeZValue(a[M],d,g),c.push({x:a[M].x,y:a[M].y,z:P});this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p),0!==c.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),0!==a.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}}}]),e}();SuperMap.Plot.AlgoSymbol1009=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1008",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=Math.sqrt(e*e/3),n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!0),i=[];i.push(t[t.length-1]),i.push(n[n.length-1]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL);n.push(t[t.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);l.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fillLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.AlgoSymbol1008=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1007=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1007",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!0),i=[];i.push(t[t.length-1]),i.push(n[n.length-1]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID);if(e){for(var r=t.length,a=[],s=[],u=0;u<r;++u)a.push({x:n[u].x,y:n[u].y,z:t[u].z});var p={x:t[r-1].x,y:t[r-1].y,z:t[r-1].z},c={x:t[r-2].x,y:t[r-2].y,z:t[r-2].z},y=this.ComputeZValue(n[r-1],p,c);a.push({x:n[r-1].x,y:n[r-1].y,z:y});for(var P=0;P<l.length;++P){var h=this.ComputeZValue(l[P],p,c);s.push({x:l[P].x,y:l[P].y,z:h})}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);s.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);l.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol1007=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1006=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,0===o.scaleValues.length&&o.scaleValues.push(o.SV1_Default),o.m_dMaxDis=0,o.m_bIsAnimation=!1,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1006",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,n=!1;void 0!==e[0].z&&(n=!0);var i=this.arrowMeshs(t);if(n){for(var l=[],r=0;r<o;r++)l.push(e[r]);var a=i.LeftArowLeftBody,s=i.LeftArowHead,u=i.LeftArowRightBody,p=i.RightArowLeftBody,c=i.RightArowHead,y=i.RightArowRightBody;if(0==a.length)return!1;var P=[],h=[],f=[];if(3==l.length)a[0].x==l[0].x&&a[0].y==l[0].y?(h.push(l[0]),h.push(l[2]),f.push(l[1]),f.push(l[2])):(h.push(l[1]),h.push(l[2]),f.push(l[0]),f.push(l[2]));else{if(4!=l.length)return!1;a[0].x==l[0].x&&a[0].y==l[0].y?(h.push(l[0]),f.push(l[1])):(h.push(l[1]),f.push(l[0])),s[1].x==l[2].x&&s[1].y==l[2].y?(h.push(l[2]),f.push(l[3])):(h.push(l[3]),f.push(l[2]))}var S=new SuperMap.Geometry.Point;S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(a[a.length-1],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var d=this.ComputeZValue(S,h[1],h[0]),g=[];this.ComputeHeight(a,g,h[0].z,d),P=P.concat(g);for(var M=0;M<s.length;M++){S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(s[M],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var m=this.ComputeZValue(S,h[1],h[0]);P.push({x:s[M].x,y:s[M].y,z:m})}S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[0],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint,this.ComputeZValue(S,h[1],h[0]),S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[u.length-1],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var v=this.ComputeZValue(S,h[1],h[0]);S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[0],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var b=(this.ComputeZValue(S,f[1],f[0])+v)/2,T=[];this.ComputeHeight(u,T,d,b),P=P.concat(T),S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[p.length-1],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var A=this.ComputeZValue(S,f[1],f[0]),L=[];this.ComputeHeight(p,L,b,A),P=P.concat(L);for(var O=0;O<c.length;O++){S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(c[O],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var E=this.ComputeZValue(S,f[1],f[0]);P.push({x:c[O].x,y:c[O].y,z:E})}S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(y[0],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var x=this.ComputeZValue(S,f[1],f[0]),w=[];this.ComputeHeight(y,w,x,f[0].z),(P=P.concat(w)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:b});for(var I=0;I<this.m_scalePoints.length;I++)this.m_scalePoints[I].isScalePoint=!0,this.m_scalePoints[I].tag=I,this.addScalePoint(this.m_scalePoints[I]);return!0}var R=i.shapePts;R.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R,{surroundLineFlag:!1})),this.scalePoints=[];for(var C=0;C<this.m_scalePoints.length;C++)this.m_scalePoints[C].isScalePoint=!0,this.m_scalePoints[C].tag=C,this.addScalePoint(this.m_scalePoints[C])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o,n=SuperMap.Plot.PlottingUtil.operateControlPoints(this.controlPoints),i=new SuperMap.Geometry.Point((n[0].x+n[1].x)/2,(n[0].y+n[1].y)/2),l=new SuperMap.Geometry.Point((n[2].x+n[3].x)/2,(n[2].y+n[3].y)/2),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,i,l);if(r.isOnline){var a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,i),s=SuperMap.Plot.PlottingUtil.distance(i,l);(o=SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)?this.SV1_MinValue:a/s)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,i)<SuperMap.Plot.PlottingUtil.distance(r.projectPoint,l)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(o)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];this.m_bIsAnimation&&4==t.length?o=SuperMap.Plot.PlottingUtil.clonePoints(t):(o=SuperMap.Plot.PlottingUtil.operateControlPoints(t),void 0!==t[0].z&&(o[o.length-1].z=o[o.length-2].z));var n=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),l=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),u=new SuperMap.Geometry.Point(a,s),p=.5*(o[1].x+o[2].x),c=.5*(o[1].y+o[2].y),y=new SuperMap.Geometry.Point(p,c),P=SuperMap.Plot.PlottingUtil.distance(u,y);P<this.MIN_LEN_LeftToRightCenter&&(P=this.MIN_LEN_LeftToRightCenter),u.x=a+i*(a-p)/(P*this.QIANJI_RATE1),u.y=s+i*(s-c)/(P*this.QIANJI_RATE1),y.x=p+l*(p-a)/(P*this.QIANJI_RATE1),y.y=c+l*(c-s)/(P*this.QIANJI_RATE1);var h=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0);h.x=a+i*(a-p)/(P*this.QIANJI_RATE2),h.y=s+i*(s-c)/(P*this.QIANJI_RATE2),f.x=p+l*(p-a)/(P*this.QIANJI_RATE2),f.y=c+l*(c-s)/(P*this.QIANJI_RATE2);var S=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),d=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),g=o[3].x-(o[3].x-u.x)*this.SCALE_AT,M=o[3].y-(o[3].y-u.y)*this.SCALE_AT,m=o[2].x-(o[2].x-y.x)*this.SCALE_AT,v=o[2].y-(o[2].y-y.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0);T.x=g-(M-o[3].y)*this.SCALE_ATAJ,T.y=M+(g-o[3].x)*this.SCALE_ATAJ,b.x=g+(M-o[3].y)*this.SCALE_ATAJ,b.y=M-(g-o[3].x)*this.SCALE_ATAJ,L.x=m-(v-o[2].y)*this.SCALE_ATAJ,L.y=v+(m-o[2].x)*this.SCALE_ATAJ,A.x=m+(v-o[2].y)*this.SCALE_ATAJ,A.y=v-(m-o[2].x)*this.SCALE_ATAJ;var O=new SuperMap.Geometry.Point(0,0),E=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);O.x=3*b.x-2*g-(o[3].x-g)*this.SCALE_ATAE,O.y=3*b.y-2*M-(o[3].y-M)*this.SCALE_ATAE,E.x=3*T.x-2*g-(o[3].x-g)*this.SCALE_ATAE,E.y=3*T.y-2*M-(o[3].y-M)*this.SCALE_ATAE,x.x=3*A.x-2*m-(o[2].x-m)*this.SCALE_ATAE,x.y=3*A.y-2*v-(o[2].y-v)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,u.x=a+i*(a-p)/(P*this.QIANJI_RATE4),u.y=s+i*(s-c)/(P*this.QIANJI_RATE4),y.x=p+l*(p-a)/(P*this.QIANJI_RATE4),y.y=c+l*(c-s)/(P*this.QIANJI_RATE4);var I=new SuperMap.Geometry.Point(0,0);I.x=o[0].x+(u.x-o[0].x)*this.SCALE_AW,I.y=o[0].y+(u.y-o[0].y)*this.SCALE_AW;var R=new SuperMap.Geometry.Point(0,0);R.x=o[1].x+(y.x-o[1].x)*this.SCALE_AW,R.y=o[1].y+(y.y-o[1].y)*this.SCALE_AW;var C=new SuperMap.Geometry.Point(0,0);C.x=b.x+(u.x-b.x)*this.SCALE_ATAJctrlSameSide,C.y=b.y+(u.y-b.y)*this.SCALE_ATAJctrlSameSide;var _=new SuperMap.Geometry.Point(0,0);_.x=L.x+(y.x-L.x)*this.SCALE_ATAJctrlSameSide,_.y=L.y+(y.y-L.y)*this.SCALE_ATAJctrlSameSide;var U=new SuperMap.Geometry.Point(0,0);U.x=T.x+(h.x-T.x)*this.SCALE_ATAJctrlDefSide,U.y=T.y+(h.y-T.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMap.Geometry.Point(0,0);N.x=A.x+(f.x-A.x)*this.SCALE_ATAJctrlDefSide,N.y=A.y+(f.y-A.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=S.x+(d.x-S.x)*n,D.y=S.y+(d.y-S.y)*n,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var B=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);B.x=o[0].x+(o[3].x-o[0].x)*n,B.y=o[0].y+(o[3].y-o[0].y)*n,G.x=o[1].x+(o[2].x-o[1].x)*n,G.y=o[1].y+(o[2].y-o[1].y)*n,B.x=B.x+(D.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(D.y-B.y)*this.QIANJI_RATE3,G.x=G.x+(D.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(D.y-G.y)*this.QIANJI_RATE3;var k=[];k.push(o[0].clone()),k.push(I.clone()),k.push(C.clone()),k.push(b.clone()),e.MoveTo(k[0]),e.CurveTo(k[1],k[2],k[3]);var V,Y,F=[],j=[],z=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),V=q[0],Y=q[0].length,e.LineTo(O),e.LineTo(o[3]),e.LineTo(E),(k=[]).push(T),k.push(U),k.push(B),k.push(D),e.LineTo(k[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)F.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(k[1],k[2],k[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)j.push(q[0][Y]);for(Y=q[0].length,(k=[]).push(G),k.push(N),k.push(A),e.CurveTo(k[0],k[1],k[2]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)z.push(q[0][Y]);for(Y=q[0].length,e.LineTo(x),e.LineTo(o[2]),e.LineTo(w),(k=[]).push(L),k.push(_),k.push(R),k.push(r),e.LineTo(k[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)W.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(k[1],k[2],k[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)H.push(q[0][Y]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:V,LeftArowHead:F,LeftArowRightBody:j,RightArowLeftBody:z,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1006=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1005",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,e,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!1),n=[];n.push(o[o.length-1]),n.push(o[o.length-2]);var i=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),i.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}]),e}();SuperMap.Plot.AlgoSymbol1005=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1004",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts);var o=SuperMap.Plot.PlottingUtil.clonePoints(t),n=o.length,i=!1;if(void 0!==o[0].z&&(i=!0),i){for(var l=e.leftBodyPts,r=e.rightBodyPts,a=e.arrowHeadPts,s=e.shapePts,u=[],p=0;p<s.length;p++)u.push({x:s[p].x,y:s[p].y,z:0});if(0==s.length)return!1;var c=this.updateScalePoints(t);if(this.scalePoints=[],3!=c.length)c=[];else for(var y=0;y<c.length;y++)c[y].isScalePoint=!0,c[y].tag=y,this.addScalePoint(c[y]);var P=[],h={x:(o[0].x+o[1].x)/2,y:(o[0].y+o[1].y)/2},f={x:(l[l.length-1].x+r[0].x)/2,y:(l[l.length-1].y+r[0].y)/2},S=this.ComputeZValue(f,o[n-1],o[n-2]),d=0,g=0;l[0].x==o[0].x&&l[0].y==o[0].y?(d=o[0].z,g=o[1].z):(d=o[1].z,g=o[0].z),P.push({x:h.x,y:h.y,z:d});for(var M=2;M<n-1;M++)P.push(o[M]);P.push({x:f.x,y:f.y,z:S});var m=[];this.ComputeBeizerZValueByDis(P,l,m),(P=[]).push({x:f.x,y:f.y,z:S});for(var v=n-2;v>=2;v--)P.push(o[v]);P.push({x:h.x,y:h.y,z:g});var b=[];this.ComputeBeizerZValueByDis(P,r,b);for(var T=[],A=0;A<a.length;A++){var L=this.ComputeZValue(a[A],o[n-1],o[n-2]);T.push({x:a[A].x,y:a[A].y,z:L})}if(m.length>0&&b.length>0&&T.length>0){u=(u=(u=(u=[]).concat(m)).concat(T)).concat(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1});for(var O=[],E=0;E<c.length;E++){var x=this.ComputeZValue(c[E],o[n-1],o[n-2]),w=new SuperMap.Geometry.Point(c[E].x,c[E].y);w.z=x,O.push(w)}3!=c.length?this.scalePoints=[]:this.scalePoints=this.scalePoints.concat(O)}}else{if(0==e.shapePts.length)return;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.shapePts,{surroundLineFlag:!1}),c=this.updateScalePoints(t),this.scalePoints=[],3!=c.length)c=[];else for(var I=0;I<c.length;I++)c[I].isScalePoint=!0,c[I].tag=I,this.addScalePoint(c[I])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var n=o.length;if(n<=2)return;var i,l,r,a,s=this.operateCtrlPts(o);n=s.length,n--;var u=this.calcScaleValueCount(o.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(n);i=p[0],l=p[1],r=p[2],a=p[3]}else i=this.scaleValues[0],l=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var c=SuperMap.Plot.PlottingUtil.polylineDistance(o),y=[],P=0;P<this.scalePoints.length;P++)y.push(this.scalePoints[P].clone());if(0==y.length)return;y[t]=e.clone();var h,f,S=n-1;h=n<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[S-1].clone();var d,g,M,m,v,b,T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h,s[S],s[S+1],A,L),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[n],s[n-1],L,T),f=T.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[2]);d=O.dLen1,O.dLen2,0==d&&(d=.1),g=d,i=(d/=a+1)/c,1==t?(m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[1])).dLen1,r=(v=O.dLen2)/d,a=(m-d)/d):0==t?(d=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[0])).dLen1,l=(M=O.dLen2)/d,(b=SuperMap.Plot.PlottingUtil.distance(s[n],s[n-1]))<2*d&&(d=.5*b),m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n],f,y[1])).dLen1,r=(v=O.dLen2)/d,(a=(g-d)/d)<.1&&(r=v/(d=g/(1+(a=.1))),l=M/d),i=d/c):2==t&&(i=d/c),M=d*l,(b=SuperMap.Plot.PlottingUtil.distance(s[n],s[n-1]))<2*d&&(M=(d=.5*b)*l,i=d/c),this.scaleValues[0]=i,this.scaleValues[1]=l,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],n=[],i=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var y=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,c,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),P=0;P<s.length;P++)e.push(s[P]),o.push(s[P]);for(var h=0;h<y.length;h++)e.push(y[h]),i.push(y[h]);for(var f=u.length-1;f>=0;f--)e.push(u[f]),n.push(u[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:n,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var n=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);var a=this.genArrowBodyPts(n,i,l),s=a.ArrowBodyCenterPts,u=this.genAtPts(e,s,l,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,l,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),o.push(new SuperMap.Geometry.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,n=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,n),l=e[2];e[2]=i,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var n,i,l,r=[],a=[],s=[],u=[],p=[],c=[],y=e.length;if(y--,o.length<this.calcScaleValueCount(y)){var P=this.calcDefaultScaleValues(y);i=P[0],l=P[1]}else i=o[0],l=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),f=(h[0].x+h[1].x)/2,S=(h[0].y+h[1].y)/2,d=Math.abs(f-h[2].x),g=Math.abs(S-h[2].y),M=0;if(d>0&&g>0){var m=1/(f-h[2].x),v=-1/(S-h[2].y),b=1*h[2].y/(S-h[2].y)-1*h[2].x/(f-h[2].x);M=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else g<=1e-4?M=Math.abs(S-h[1].y):d<=1e-4&&(M=Math.abs(f-h[1].x));var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,h[2],new SuperMap.Geometry.Point(f,S)),A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);A?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var L=Math.sqrt((T.pntLeft.x-T.pntRight.x)*(T.pntLeft.x-T.pntRight.x)+(T.pntLeft.y-T.pntRight.y)*(T.pntLeft.y-T.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(n=L*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(O=(n=t*i)*l);var E,x,w=SuperMap.Plot.PlottingUtil.distance(h[y],h[y-1]),I=2*n;w<I&&(O=(n=w/2)*l),h.push(h[y].clone()),E=0,x=0;var R=0,C=[];for(R=2;R<=y;R++)E+=SuperMap.Plot.PlottingUtil.distance(h[R],h[R-1]);for(E-=n,R=2;R<=y-1;R++)x+=SuperMap.Plot.PlottingUtil.distance(h[R],h[R-1]),C[R]=O+(L-O)*Math.pow((E-x)/E,this.sv_AtScaleParameter);C[y]=O;var _,U,N=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(R=2;R<=y-1;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[R-1],h[R],h[R+1],D,B),R==y-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[y],h[y-1],B,N),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[R],D,h[R]),(A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),a[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(r[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),a[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(h[y].x-N.x)*(h[y].x-N.x)+1*(h[y].y-N.y)*(h[y].y-N.y))>0&&(h[y]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n,h[y],N)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,h[y+1],h[y]),(A=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[y],h[y+1],_.pntLeft))?(a[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(a[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),R=2;R<y;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[R-1],r[R],r[R+1],D,B),s[R]=new SuperMap.Geometry.Point(D.x,D.y),u[R]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[R-1],a[R],a[R+1],D,B),p[R]=new SuperMap.Geometry.Point(D.x,D.y),c[R]=new SuperMap.Geometry.Point(B.x,B.y),2==R&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[R]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[R]=new SuperMap.Geometry.Point(N.x,N.y)),R==y-1&&(I=(w=SuperMap.Plot.PlottingUtil.distance(r[y],r[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,h[y],h[y+1])).x+=r[y].x-h[y].x,U.y+=r[y].y-h[y].y,I=(w=L-O)*Math.pow(I/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,r[y],U),s[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),I=(w=SuperMap.Plot.PlottingUtil.distance(a[y],a[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,h[y],h[y+1])).x+=a[y].x-h[y].x,U.y+=a[y].y-h[y].y,I=(w=L-O)*Math.pow(I/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,a[y],U),p[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,ArrowTouLen:n}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,n){var i=o[2],l=[],r=n*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=n*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return l.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,o,n){var i=n*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1004=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(.28),o.scaleValues.push(.433333),o.scaleValues.push(.53),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1003",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMap.Plot.PlottingUtil.clonePoints(t),n=!1;void 0!==o[0].z&&(n=!0);var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),l=i.arrowTouLen,r=i.leftBodyPts,a=i.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(0),u.push(0);var p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,u,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];c=(c=c.concat(r)).concat(p);for(var y=a.length-1;y>=0;y--)c.push(a[y]);if(c.push(r[0]),n){for(var P=[],h={x:o[1].x,y:o[1].y,z:o[1].z},f={x:o[0].x,y:o[0].y,z:o[0].z},S=0;S<c.length;S++){var d=this.ComputeZValue(c[S],h,f);P.push({x:c[S].x,y:c[S].y,z:d})}var g=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),M=new SuperMap.Geometry.Point(g.x,g.y);M.isScalePoint=!0,M.tag=0,this.addScalePoint(M);var m=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m);var v=new SuperMap.Geometry.Point(p[0].x,p[0].y);v.isScalePoint=!0,v.tag=2,this.addScalePoint(v);for(var b={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},T={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},A=[],L=0;L<this.scalePoints.length;L++){var O={x:this.scalePoints[L].x,y:this.scalePoints[L].y},E=this.ComputeZValue(O,b,T);A.push({x:O.x,y:O.y,z:E})}this.scalePoints=A,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P)}else{var x=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),w=new SuperMap.Geometry.Point(x.x,x.y);w.isScalePoint=!0,w.tag=0,this.addScalePoint(w);var I=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);I.isScalePoint=!0,I.tag=1,this.addScalePoint(I);var R=new SuperMap.Geometry.Point(p[0].x,p[0].y);R.isScalePoint=!0,R.tag=2,this.addScalePoint(R),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c)}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),n=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*l;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[0],this.controlPoints[1]),u=s.projectPoint;if(s.isOnline){var p=SuperMap.Plot.PlottingUtil.distance(u,this.controlPoints[1]);this.scaleValues[0]=p/r}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,i).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,o),P=a*this.scaleValues[1];this.scaleValues[1]=y/a,this.scaleValues[2]=(a*this.scaleValues[2]+y-P)/a}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,this.controlPoints[1]),S=f.projectPoint,d=SuperMap.Plot.PlottingUtil.distance(S,o);!0===f.inOnline?this.scaleValues[4]=-d/a:this.scaleValues[4]=d/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1003=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MIN_GEOPT_COUNT=2,o.MAX_GEOPT_COUNT=1024,o.SV1_defaultATLenDivABLen=0,o.SV2_defaultAYPosScale=.65,o.SV_AJCtrl=.6,o.SV_ArrowWoCtrl=.6,o.SV2_DefaultAJWidDiviedByATLen=.148,o.SV3_DefaultAEWidDividedByATLen=.4,o.SV4_DefaultAELenDividedByATLen=.3,o.SV_ATScaleParameter=1.25,o.SV_ATLenDividedByATWid=1.35,o.SV_ATWidDividedByArrowWeiWid=.5,o.AB_VERTEX_COUNT=4,o.MIN_PTCOUNT_PERARROW=3,o.ATL_DIV_AWW=.7,o.ATL_DIV_ABL=.12,o.ATL_DIV_ABL_1=.18,o.DEFAULT_ARROW_TAIL_POS=.12,o.DUOJIANTOU_TAIL_RATE_1=8,o.DUOJIANTOU_TAIL_RATE_2=3,o.DUOJIANTOU_TAIL_RATE_3=.6,o.AB_CTRLPT_RATE1=0,o.AB_CTRLPT_RATE2=3,o.AB_CTRLPT_RATE3=.5,o.MIN_SCALEVALUE=.1,o.MAX_SCALEVALUE=1,o.m_scalePoints=null,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1002",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),o=e.length,n=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=this.scaleValues.length;if(i<2*n-1){0==i&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),i++);for(var l=2*n-1-i,r=0;r<l;r+=2)this.scaleValues.splice(i/2+1,0,this.SV1_defaultATLenDivABLen),this.scaleValues.splice(this.scaleValues.length,0,this.SV2_defaultAYPosScale)}else if(i>2*n-1){for(var a=0;a<n;a++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var s=0;s<n-1;s++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var u=this.arrowMeshs(e);SuperMap.Plot.PlottingUtil.clearSamePts(u.shapePts);var p=!1;if(void 0!==t[0].z&&(p=!0),p){var c=this.operateCtrlPts3D(t),y=u.arrLeftPts2D,P=u.arrRightPts2D,h=u.arrHeadPts2D;if(n!=y.length&&n!=P.length&&n!=h.length)return!1;for(var f=[],S=0;S<n;S++){for(var d=[],g=3*S;g<3*(S+1)&&g<c.length;g++)d.push(c[g]);f.push(d)}for(var M=[],m=[],v=[],b=0;b<n;b++)if(!(2>f[b].length)){for(var T=y[b][y[b].length-1],A=P[b][0],L=new SuperMap.Geometry.Point(.5*(T.x+A.x),.5*(T.y+A.y)),O=f[b][f[b].length-1],E=f[b][f[b].length-2],x=this.ComputeZValue(L,O,E),w={x:L.x,y:L.y,z:x},I=[],R=[],C=0;C<f[b].length-1;C++)if(0==b)R.push(f[b][C]);else{var _={x:f[b][C].x,y:f[b][C].y,z:.5*(f[b][C].z+f[b-1][C].z)};R.push(_)}R.push(w),this.ComputeBeizerZValueByDis(R,y[b],I),M.push(I),I=[];var U=[];U.push(w);for(var N=f[b].length-2;N>=0;N--)if(b==n-1)U.push(f[b][N]);else{var D={x:f[b][N].x,y:f[b][N].y,z:.5*(f[b][N].z+f[b+1][N].z)};U.push(D)}this.ComputeBeizerZValueByDis(U,P[b],I),m.push(I),I=[];for(var B=h[b],G=0;G<B.length;G++){var k=this.ComputeZValue(B[G],O,E);I.push({x:B[G].x,y:B[G].y,z:k})}v.push(I)}for(var V=[],Y=0;Y<n;Y++)V=(V=(V=V.concat(M[Y])).concat(v[Y])).concat(m[Y]);return SuperMap.Plot.PlottingUtil.clearSamePts(V),u.shapePts.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}u.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var F=0;F<this.m_scalePoints.length;F++)this.m_scalePoints[F].isScalePoint=!0,this.m_scalePoints[F].tag=F,this.addScalePoint(this.m_scalePoints[F])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=this.operateCtrlPts(this.controlPoints),n=o.length,i=Math.floor(n/this.MIN_PTCOUNT_PERARROW),l=0;if(t<i){var r=[],a=t*this.MIN_PTCOUNT_PERARROW;r[0]=o[a],r[1]=o[a+1],r[2]=o[a+2];var s=SuperMap.Plot.PlottingUtil.polylineDistance(r),u=new SuperMap.Geometry.Point(0,0),p=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,r[0],r[1],r[2],u,p),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[2],r[1],p,c),l=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[2],c,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var y=[],P=[],h=(t-i)*this.MIN_PTCOUNT_PERARROW;y[0]=o[h],y[1]=o[h+1],y[2]=o[h+2];var f=(t-i+1)*this.MIN_PTCOUNT_PERARROW;P[0]=o[f],P[1]=o[f+1],P[2]=o[f+2];var S=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0);S.x=.5*(y[2].x+P[2].x),d.x=.5*(y[1].x+P[1].x),g.x=.5*(y[0].x+P[0].x),S.y=.5*(y[2].y+P[2].y),d.y=.5*(y[1].y+P[1].y),g.y=.5*(y[0].y+P[0].y);var M=SuperMap.Plot.PlottingUtil.distance(S,d),m=SuperMap.Plot.PlottingUtil.distance(g,d),v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S,d,e),b=v.dLen1;l=b<M?b/(M+m):((b=(v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(d,g,e)).dLen1)+M)/(M+m)}l>this.MAX_SCALEVALUE?l=this.MAX_SCALEVALUE:l<this.MIN_SCALEVALUE&&(l=this.MIN_SCALEVALUE),this.scaleValues[t]=l}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],n=[],i=new SuperMap.Plot.Path2D,l=t.length,r=Math.floor(l/this.MIN_PTCOUNT_PERARROW),a=this.generateAWWidth(r,t),s=[],u=[],p=0,c=0,y=0,P=[];for(c=0,y=0;c<r;c++,y+=this.MIN_PTCOUNT_PERARROW){P[0]=t[y],P[1]=t[y+1],P[2]=t[y+2],p=this.scaleValues[c];var h=this.generateArrowBodyPts(P,a[c],p);p=h.dATLenDivABLen,s[c]=h.arrowBodyPts,u.push(p)}var f=[],S=0,d=0,g=0,M=[],m=[];for(c=0;c<r-1;c++,d+=this.MIN_PTCOUNT_PERARROW){g=d+this.MIN_PTCOUNT_PERARROW,M[0]=t[d],M[1]=t[d+1],M[2]=t[d+2],m[0]=t[g],m[1]=t[g+1],m[2]=t[g+2],S=this.scaleValues[r+c];var v=this.generateAYPts(M,s[c],m,s[c+1],S);f.push(v.arrowLeftYaoPts),f.push(v.arrowRightYaoPts)}var b=[],T=s[0],A=[],L=0,O=[];i.MoveTo(T[0]),i.CurveTo(T[1],T[2],T[3]),i.CurveTo(T[4],T[5],T[6]),i.ToSubPathPolygons(A),e.push(A[0]),L=A[0].length;for(var E=7;E<10;E++)i.LineTo(T[E]);for(A=[],i.ToSubPathPolygons(A);L<A[0].length;L++)O.push(A[0][L]);for(n.push(O),b.push(T[0]),b.push(t[0]),c=1,y=this.MIN_PTCOUNT_PERARROW;c<r;c++,y+=this.MIN_PTCOUNT_PERARROW){var x=s[c],w=c+c-2,I=f[w];for(i.LineTo(I[0]),i.CurveTo(I[1],I[2],I[3]),A=[],O=[],i.ToSubPathPolygons(A);L<A[0].length;L++)O.push(A[0][L]);o.push(O);var R=f[w+1];for(i.CurveTo(R[1],R[2],R[3]),A=[],O=[],i.ToSubPathPolygons(A);L<A[0].length;L++)O.push(A[0][L]);e.push(O);for(var C=7;C<10;C++)i.LineTo(x[C]);for(A=[],O=[],i.ToSubPathPolygons(A);L<A[0].length;L++)O.push(A[0][L]);n.push(O),b.push(t[y].clone())}var _=s[r-1];for(i.LineTo(_[10]),i.CurveTo(_[11],_[12],_[13]),i.CurveTo(_[14],_[15],_[16]),A=[],O=[],i.ToSubPathPolygons(A);L<A[0].length;L++)O.push(A[0][L]);o.push(O),b.push(_[16]);var U=[];return i.ToSubPathPolygons(U),{shapePts:U[0],arrLeftPts2D:e,arrRightPts2D:o,arrHeadPts2D:n}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,n=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=o%this.MIN_PTCOUNT_PERARROW,l=new SuperMap.Geometry.Point;if(2==i&&(l.x=.5*(e[o-2].x+e[o-1].x),l.y=.5*(e[o-2].y+e[o-1].y),l.x==e[o-1].x&&l.y==e[o-1].y||(e.push(e[o-1].clone()),e[o-1]=l,o++,n++)),o>3)for(var r=n-1,a=0,s=r;a<r;s--,a++)for(var u=s*this.MIN_PTCOUNT_PERARROW,p=0;p<u;p+=this.MIN_PTCOUNT_PERARROW){if(!SuperMap.Plot.PlottingUtil.isRight(e[p+3],e[p+1],e[p+2])){var c=e[p];e[p]=e[p+3],e[p+3]=c,c=e[p+1],e[p+1]=e[p+4],e[p+4]=c,c=e[p+2],e[p+2]=e[p+5],e[p+5]=c}}return e}},{key:"operateCtrlPts3D",value:function(t){var e=t,o=e.length,n=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i={x:0,y:0,z:0};if(2==o%3&&(i.x=.5*(e[o-2].x+e[o-1].x),i.y=.5*(e[o-2].y+e[o-1].y),i.z=.5*(e[o-2].z+e[o-1].z),i.x==e[o-1].x&&i.y==e[o-1].y&&i.z==e[o-1].z||(e.push(e[o-1]),e[o-1]=i,o++,n++)),o>3)for(var l=n-1,r=0,a=l;r<l;a--,r++)for(var s=3*a,u=0;u<s;u+=3){if(!SuperMap.Plot.PlottingUtil.isRight(e[u+3],e[u+1],e[u+2])){var p=e[u];e[u]=e[u+3],e[u+3]=p,p=e[u+1],e[u+1]=e[u+4],e[u+4]=p,p=e[u+2],e[u+2]=e[u+5],e[u+5]=p}}return e}},{key:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var n=SuperMap.Plot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(n);for(var i=1,l=this.MIN_PTCOUNT_PERARROW;i<t-1;i++,l+=this.MIN_PTCOUNT_PERARROW){n=.5*(SuperMap.Plot.PlottingUtil.distance(e[l-this.MIN_PTCOUNT_PERARROW],e[l])+SuperMap.Plot.PlottingUtil.distance(e[l],e[l+this.MIN_PTCOUNT_PERARROW])),o.push(n)}n=SuperMap.Plot.PlottingUtil.distance(e[l-this.MIN_PTCOUNT_PERARROW],e[l]),o.push(n)}return o}},{key:"generateArrowBodyPts",value:function(t,e,o){var n=[],i=[],l=[],r=[],a=[],s=[],u=[],p=t.length-1;if(p<2)return{dATLenDivABLen:o=0,arrowBodyPts:n};var c=o,y=this.SV2_DefaultAJWidDiviedByATLen,P=this.SV3_DefaultAEWidDividedByATLen,h=this.SV4_DefaultAELenDividedByATLen,f=SuperMap.Plot.PlottingUtil.clonePoints(t),S=SuperMap.Plot.PlottingUtil.polylineDistance(f),d=0==e?S*this.ATL_DIV_ABL_1:(S+e)*this.ATL_DIV_ABL,g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,f[1],f[0]);i[1]=g.pntLeft.clone(),l[1]=g.pntRight.clone();var M=0;M=SuperMap.Plot.PlottingUtil.equalFuzzy(c,0,1e-14)?d*this.ATL_DIV_AWW:S*c;var m=SuperMap.Plot.PlottingUtil.distance(f[1],f[2]);M+M>m&&(M=.5*m);var v=M*y;f.push(f[p].clone());var b,T=0;b=S-M;var A=[],L=0;for(L=2;L<=p;L++)T+=SuperMap.Plot.PlottingUtil.distance(f[L-1],f[L-2]),SuperMap.Plot.PlottingUtil.equalFuzzy(b,0,1e-14)?A[L]=0:SuperMap.Plot.PlottingUtil.equalFuzzy(b-T,0,1e-14)?A[L]=v:A[L]=v+(d-v)*Math.pow((b-T)/b,this.SV_ATScaleParameter);A[p+1]=v;var O=new SuperMap.Geometry.Point(0,0),E=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0);for(L=2;L<=p;L++){SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,f[L-2],f[L-1],f[L],E,x),p==L&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,f[p],f[p-1],x,O);var w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(A[L],E,f[L-1]);l[L]=w.pntLeft,i[L]=w.pntRight}var I,R,C=O.clone();if(SuperMap.Plot.PlottingUtil.distance(f[p],C)>0){var _=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M,f[p],O);f[p]=_.clone()}for(g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,f[p+1],f[p]),i[p+1]=g.pntLeft,l[p+1]=g.pntRight,L=2;L<=p;L++)SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[L-1],i[L],i[L+1],E,x),r[L]=E.clone(),a[L]=x.clone(),SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,l[L-1],l[L],l[L+1],E,x),s[L]=E.clone(),u[L]=x.clone();SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],r[2],O),a[1]=O.clone(),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,l[1],l[2],s[2],O),u[1]=O.clone();R=SuperMap.Plot.PlottingUtil.distance(i[p+1],i[p])*(1/3),(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,f[p],f[p+1])).x+=i[p+1].x-f[p].x,I.y+=i[p+1].y-f[p].y,R=(d-v)*Math.pow(R/b,this.SV_ATScaleParameter+.3),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,i[p+1],I),r[p+1]=g.pntLeft.clone(),R=SuperMap.Plot.PlottingUtil.distance(l[p+1],l[p])*(1/3),(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,f[p],f[p+1])).x+=l[p+1].x-f[p].x,I.y+=l[p+1].y-f[p].y,R=(d-v)*Math.pow(R/b,this.SV_ATScaleParameter+.3),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,l[p+1],I),s[p+1]=g.pntRight.clone();var U=[],N=M*h,D=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(N,f[p],f[p+1]);this.m_scalePoints.push(D.clone()),N=M*P,g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(N,f[p+1],D),U.push(g.pntRight),U.push(f[p+1]),U.push(g.pntLeft);var B=[];for(B.push(i[p+1]),L=p;L>=1;L--)B.push(r[L+1]),B.push(a[L]),B.push(i[L]);var G=[];for(L=1;L<=p;L++)G.push(l[L]),G.push(u[L]),G.push(s[L+1]);G.push(l[p+1]),n.push.apply(n,G),n.push.apply(n,U),n.push.apply(n,B),o=M/S;var k=[];for(L=B.length-1;L>=0;L--)k.push(B[L]);return{dATLenDivABLen:o,arrowBodyPts:n}}},{key:"generateAYPts",value:function(t,e,o,n,i){var l=new SuperMap.Geometry.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),r=new SuperMap.Geometry.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMap.Geometry.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMap.Plot.PlottingUtil.distance(l,r),u=SuperMap.Plot.PlottingUtil.distance(a,r),p=i*(s+u),c=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0);if(p>s){p=s+u-p,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p,a,r);var h=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),f=SuperMap.Plot.PlottingUtil.distance(o[1],o[0]);h=h*p/u,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[0],t[1]),f=f*p/u,P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(f,o[0],o[1])}else{c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p,l,r);var S=SuperMap.Plot.PlottingUtil.distance(t[1],t[2]),d=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]);S=S*p/s,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(S,t[2],t[1]),d=d*p/s,P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,o[2],o[1])}this.m_scalePoints.push(c.clone());var g=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(c,y),M=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(c,P),m=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(g,c,y),v=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M,c,P),b=e[11].clone(),T=e[10].clone(),A=n[5].clone(),L=n[6].clone(),O=SuperMap.Plot.PlottingUtil.intersectLines(T,b,c,y),E=SuperMap.Plot.PlottingUtil.distance(O.intersectPoint,T),x=SuperMap.Plot.PlottingUtil.distance(T,c);E=E>x?this.SV_AJCtrl*x:this.SV_AJCtrl*E;var w=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(E,T,b);b=w.clone(),e[11]=w.clone(),O=SuperMap.Plot.PlottingUtil.intersectLines(L,A,c,P),E=(E=SuperMap.Plot.PlottingUtil.distance(O.intersectPoint,L))>(x=SuperMap.Plot.PlottingUtil.distance(L,c))?this.SV_AJCtrl*x:this.SV_AJCtrl*E,A=(w=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(E,L,A)).clone(),n[5]=w.clone();var I=[];I.push(T),I.push(b),I.push(m),I.push(c);var R=[];return R.push(c),R.push(v),R.push(A),R.push(L),{arrowLeftYaoPts:I,arrowRightYaoPts:R}}}]),e}();SuperMap.Plot.AlgoSymbol1002=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol1001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.08)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1001",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){this.scalePoints=[];var o=SuperMap.Plot.PlottingUtil.clonePoints(t),n=!1;void 0!==o[0].z&&(n=!0);var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=i.arrowTouLen,r=i.leftBodyPts,a=i.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(this.scaleValues[0]),u.push(this.scaleValues[1]);var p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,u,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];if(n){for(var y=[],P=[],h=[],f=0;f<e-1;f++)P.push({x:r[f].x,y:r[f].y,z:o[f].z}),h.push({x:a[f].x,y:a[f].y,z:o[f].z});var S={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},d={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},g=this.ComputeZValue(r[e-1],d,S);P.push({x:r[e-1].x,y:r[e-1].y,z:g});var M=this.ComputeZValue(a[e-1],d,S);h.push({x:a[e-1].x,y:a[e-1].y,z:M});for(var m=0;m<p.length;m++){var v=this.ComputeZValue(p[m],d,S);y.push({x:p[m].x,y:p[m].y,z:v})}c=(c=c.concat(P)).concat(y);for(var b=h.length-1;b>=0;b--)c.push(h[b]);var T=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),A=new SuperMap.Geometry.Point(T.x,T.y);A.isScalePoint=!0,A.tag=0,this.addScalePoint(A);var L=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);L.isScalePoint=!0,L.tag=1,this.addScalePoint(L);var O=new SuperMap.Geometry.Point(p[0].x,p[0].y);O.isScalePoint=!0,O.tag=2,this.addScalePoint(O);for(var E=0;E<this.scalePoints.length;E++){var x=new SuperMap.Geometry.Point(this.scalePoints[E].x,this.scalePoints[E].y);this.scalePoints[E].z=this.ComputeZValue(x,d,S)}}else{c=(c=c.concat(r)).concat(p);for(var w=a.length-1;w>=0;w--)c.push(a[w]);var I=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),R=new SuperMap.Geometry.Point(I.x,I.y);R.isScalePoint=!0,R.tag=0,this.addScalePoint(R);var C=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);C.isScalePoint=!0,C.tag=1,this.addScalePoint(C);var _=new SuperMap.Geometry.Point(p[0].x,p[0].y);_.isScalePoint=!0,_.tag=2,this.addScalePoint(_)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),n=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*l;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),u=s.projectPoint;if(s.isOnline){var p=SuperMap.Plot.PlottingUtil.distance(u,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=p/r}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,i).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,o);this.scaleValues[1]=y/a}else if(2==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(P,o,this.controlPoints[1]),f=h.projectPoint,S=SuperMap.Plot.PlottingUtil.distance(f,o);!0===h.inOnline?this.scaleValues[4]=-S/a:this.scaleValues[4]=S/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1001=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Wire=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Plot.Wire",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var n=o*this.scaleValues[0],i=o*this.scaleValues[0]/2,l=SuperMap.Plot.PlottingUtil.clonePoints(e),r=parseInt((o-i)/n),a=0;a<=r&&!(i+n*a>o);a++){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,i+n*a);if(-1!==s.index){var u=new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n/2,e[s.index],u);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight])}}this.finish()}}}]),e}();SuperMap.Plot.Wire=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0};var l=e.PolygonRegion=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.PolygonRegion",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(null!=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))&&t.length>=this.minEditPts){if(this.addCell(32,t,{surroundLineFlag:!1}),this.textContent&&null!=this.textContent&&this.textContent.length>0){var e=[];this.scaleValues[1]>t.length&&(this.scaleValues[1]=0);var o={labelRotation:0,surroundLineFlag:!1,labelAlign:"lt"};if(0===this.scaleValues[1])e=[SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t)];else{var n=null,i=null;this.scaleValues[1]===t.length?(n=t[t.length-1],i=t[0]):(n=t[this.scaleValues[1]-1],i=t[this.scaleValues[1]]),o.labelRotation=-SuperMap.Plot.PlottingUtil.radian(n,i)/Math.PI*180;var l=this.scaleValues[0]*SuperMap.Plot.PlottingUtil.distance(n,i);e=[SuperMap.Plot.PlottingUtil.findPoint(n,i,l,0)]}this.addCell(34,e,o,this.textContent);var r=new SuperMap.Geometry.Point(e[0].x,e[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints=[],this.addScalePoint(r)}}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine()}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=0,n=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),i=1;i<this.controlPoints.length;i++){var l=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[i]);l<n&&(n=l,o=i)}var r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(r=SuperMap.Plot.PlottingUtil.clearSamePts(r)).push(r[0].clone());var a=SuperMap.Plot.PlottingUtil.computePointToLineMinDis(e,r);if(-1===a.minDis)this.scaleValues[1]=o+1,this.offsetX=0,this.offsetY=0;else{var s=SuperMap.Plot.PlottingUtil.projectPoint(e,r[a.index],r[a.index+1]),u=SuperMap.Plot.PlottingUtil.distance(e,s),p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints),c=SuperMap.Plot.PlottingUtil.distance(e,p);if(c<u&&c<n)this.scaleValues[1]=0,this.scaleValues[0]=0;else if(n<u&&n<c)this.scaleValues[1]=o+1,this.scaleValues[0]=0;else if(u<n&&u<c){this.scaleValues[1]=a.index+1;var y=null,P=null;this.scaleValues[1]===this.controlPoints.length?(y=this.controlPoints[this.controlPoints.length-1],P=this.controlPoints[0]):(y=this.controlPoints[this.scaleValues[1]-1],P=this.controlPoints[this.scaleValues[1]]);var h=SuperMap.Plot.PlottingUtil.distance(s,y),f=SuperMap.Plot.PlottingUtil.distance(y,P);this.scaleValues[0]=h/f}}}this.calculateParts()}},{key:"parseSymbolData",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"parseSymbolData",this).call(this),this.symbolData&&(this.scaleValues[1]=this.symbolData.annotationPosition)}},{key:"setSymbolData",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setSymbolData",this).call(this),this.symbolData&&(this.symbolData.annotationPosition=this.scaleValues[1])}}]),e}();SuperMap.Plot.PolygonRegion=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.LineRelation=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSectionCount=t.subSectionCount?t.subSectionCount:10,o.CLASS_NAME="SuperMap.Plot.LineRelation",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){this.subSectionCount=null,function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();for(var t=0;t<this.controlPoints.length;t++)this.controlPoints[t].tag=t;var e=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);null!==e&&e.length>=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components=[];var e=t[0],o=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var n=SuperMap.Plot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMap.Plot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMap.Plot.LineRelationType.DASH)for(var i=0;i<this.subSectionCount;i++){var l=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*i*n,0),r=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*i+1)*n,0);this.addCell(24,[l,r],{surroundLineFlag:!1})}else if(this.lineRelationType===SuperMap.Plot.LineRelationType.ARROW)for(var a=0;a<this.subSectionCount;a++){var s=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*a*n,0),u=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*a+1)*n,0),p=SuperMap.Plot.PlottingUtil.findPoint(u,s,n,60),c=SuperMap.Plot.PlottingUtil.findPoint(u,s,n,-60);this.addCell(24,[p,u,c],{surroundLineFlag:!1})}}}]),e}();SuperMap.Plot.LineRelation=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.LineMarking=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.islocationCircle=!!t.islocationCircle&&t.islocationCircle,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.RECTBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(4)),o.CLASS_NAME="SuperMap.Plot.LineMarking",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){this.islocationCircle=null,this.textBoxType=null,function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,n,i;this.scalePoints=[];var l=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,n=this.controlPoints[1].x):(e=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y),l.push(new SuperMap.Geometry.Point(e,i)),l.push(new SuperMap.Geometry.Point(e,o)),l.push(new SuperMap.Geometry.Point(n,o)),l.push(new SuperMap.Geometry.Point(n,i)),!1===this.isEdit&&(this.scaleValues[1]=e+.1*(n-e),this.scaleValues[2]=i+-.3*(o-i));var r=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,n,i),a=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]);if(this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX||this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var s=[];switch(r){case 0:this.addScalePoint(a);break;case 1:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(e,o-(o-i)*t)),s.push(a);break;case 2:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(n-(n-e)*t,o)),s.push(a);break;case 3:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(n,o-(o-i)*t)),s.push(a);break;case 4:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(n-(n-e)*t,i)),s.push(a)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}if(0!==l.length&&this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX)this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);else if(0!==l.length&&this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var u=[];switch(r){case 0:break;case 1:u=(u=(u=u.concat(l[0])).concat(l[1])).concat(l[2]);break;case 2:u=(u=(u=u.concat(l[1])).concat(l[2])).concat(l[3]);break;case 3:u=(u=(u=u.concat(l[2])).concat(l[3])).concat(l[4]);break;case 4:u=(u=(u=u.concat(l[3])).concat(l[4])).concat(l[0])}3===u.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u):this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints)}this.islocationCircle&&this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x-.05,a.y-.05)]),this.annotationContent(e,o,n,i)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.finish()}}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(this.scaleValues[1]=e.x,this.scaleValues[2]=e.y),this.calculateParts()}},{key:"getAction",value:function(t,e,o,n,i,l){var r=(n-l)/(i-o);return t<o?e>n?Math.abs((e-n)/(t-o))>r?2:1:e<l&&Math.abs((e-l)/(t-o))>r?4:1:t>i?e>n?Math.abs((e-n)/(t-i))>r?2:3:e<l&&Math.abs((e-l)/(t-i))>r?4:3:e>n?2:e<l?4:0}}]),e}();SuperMap.Plot.LineMarking=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.PathText=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.relLineText=t.relLineText?t.relLineText:0,o.showPathLine=!t.showPathLine||t.showPathLine,o.showPathLineArrow=!!t.showPathLineArrow&&t.showPathLineArrow,o.isCurve=!!t.isCurve&&t.isCurve,o.isAvoid=!!t.isAvoid&&t.isAvoid,o.textToLineDistance=t.textToLineDistance?t.textToLineDistance:0,o.CLASS_NAME="SuperMap.Plot.PathText",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){if(this.init(),null!==this.controlPoints&&0!==this.controlPoints.length&&!(this.controlPoints.length<this.minEditPts)){SuperMap.Util.isArray(this.textContent)||(this.textContent=[this.textContent]);var t=[];if(t=this.isCurve?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints):SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.relLineText===SuperMap.Plot.RelLineText.ONBOTHLINE){this.relLineText=SuperMap.Plot.RelLineText.ONRIGHTLINE;var e=this.getTextPathPts(t,!1);this.computeText(e,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONLEFTLINE;var o=this.showPathLine;this.showPathLine=!1;var n=this.getTextPathPts(t,!0);this.textContent.length>1?this.computeText(n,this.textContent[1],t):this.computeText(n,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONBOTHLINE,this.showPathLine=o}else{var i=[];i=this.relLineText===SuperMap.Plot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(i,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMap.Plot.PlottingUtil.clonePoints(t);var n=SuperMap.Plot.PlottingUtil.paraLine(t,o,e);return SuperMap.Plot.PlottingUtil.clearSamePts(n)}},{key:"computeText",value:function(t,e,o){if(!(t.length<2)){for(var n=e.length,i=t,l=i.length,r=0,a=0;a<i.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(i[a],i[a+1]);var s={index:-1,pt:i[0]},u=0,p=0,c=0,y=180/Math.PI,P=this.getTextBounds(this.style,e),h="lm";h=this.relLineText===SuperMap.Plot.RelLineText.ONLINE?"lm":this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt",(u=(r-P.getWidth())/2)<=0&&(u=0);for(var f=[],S=0;S<n;S++){var d=this.getTextBounds(this.style,e.charAt(S));f.push(new SuperMap.Bounds(0,-P.getHeight(),d.getWidth(),0))}for(var g,M=!1,m=!1,v=0,b=0,T=[];p<=u&&c<l-1;)c++,p+=SuperMap.Plot.PlottingUtil.distance(i[c-1],i[c]);var A=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,u),L=SuperMap.Plot.PlottingUtil.radian(i[c-1],i[c])*y;L>180&&(L-=360),L<-180&&(L+=360),L>90&&L<=180?(v=-180,M=!0,m=!0):L>-180&&L<-90&&(v=180,M=!0,m=!0),!0,0!=v?this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(h=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(h=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt");for(var O=0;O<n&&!(u>r);O++){var E=O;for(m&&(E=n-O-1),b=(g=f[E]).getWidth(),M&&(u+=b);p<=u&&c<l-1;)c++,p+=SuperMap.Plot.PlottingUtil.distance(i[c-1],i[c]);var x=(L=SuperMap.Plot.PlottingUtil.radian(i[c-1],i[c])*y)+v;if((s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,u)).index<0)break;g.add(s.pt.x,s.pt.y);var w=e.charAt(E),I={};I.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,I.textContent=w,I.positionPoints=[s.pt],I.style={surroundLineFlag:!1,labelAlign:h,labelRotation:-x},T.push(I),M||(u+=b)}var R=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,u);if(this.showPathLine){if(this.relLineText===SuperMap.Plot.RelLineText.ONLINE&&this.isAvoid){if(A.index>=0){for(var C=[],_=0;_<=A.index;_++)C.push(o[_]);C.push(A.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C)}if(R.index>=0){var U=[];U.push(R.pt);for(var N=R.index+1;N<o.length;N++)U.push(o[N]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.showPathLineArrow&&this.addArrow(o)}for(var D=0;D<T.length;D++)this.components.push(T[D])}}},{key:"addArrow",value:function(t){if(t.length<2)return t;var e=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*(this.isEdit,null==this.getSubSymbolScaleValue()?.05:.5*this.getSubSymbolScaleValue()),o=t[t.length-1];if(t.length>2){for(var n=-1,i=t.length-2;i>=0;i--)if(e<SuperMap.Plot.PlottingUtil.distance(o,t[i])){n=i;break}t.splice(n+1,t.length-n),t.push(o)}var l=t[t.length-2],r=t[t.length-1],a=e;if(void 0===l)return t;if(!(SuperMap.Plot.PlottingUtil.distance(l,r)<e)){var s=SuperMap.Plot.PlottingUtil.radian(l,r)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+157.5),p=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+202.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[t.length-1],p],{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.PathText=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.CurveEight=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.CurveEight",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints&&!(this.minEditPts>this.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(t,e)/2,n=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2),l=SuperMap.Plot.PlottingUtil.circlePoint(i,o,o,n+90),r=SuperMap.Plot.PlottingUtil.circlePoint(i,3*o,3*o,n+90);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[l,new SuperMap.Geometry.Point(l.x+o,l.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),u=this.controlPoints[2].clone(),p=0;p=SuperMap.Plot.PlottingUtil.isRight(u,a,s)?180*SuperMap.Plot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI+90;var c=SuperMap.Plot.PlottingUtil.distance(a,s)/2,y=new SuperMap.Geometry.Point((a.x+s.x)/2,(a.y+s.y)/2),P=SuperMap.Plot.PlottingUtil.circlePoint(y,c,c,p),h=SuperMap.Plot.PlottingUtil.plumbLineLen(u,a,s);if(h<=4*c){var f=SuperMap.Plot.PlottingUtil.circlePoint(y,3*c,3*c,p);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[P,new SuperMap.Geometry.Point(P.x+c,P.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[f,new SuperMap.Geometry.Point(f.x+c,f.y)])}else{for(var S=SuperMap.Plot.PlottingUtil.circlePoint(y,h-c,h-c,p),d=180*Math.acos(c/(h-2*c))/Math.PI,g=p-d,M=p-180+d,m=p-180-d+360,v=[],b=p+d-360;b<=g;b+=4){var T=SuperMap.Plot.PlottingUtil.circlePoint(P,c,c,b);v.push(T)}var A=SuperMap.Plot.PlottingUtil.circlePoint(P,c,c,g);v.push(A);for(var L=[],O=M;O<m;O+=4){var E=SuperMap.Plot.PlottingUtil.circlePoint(S,c,c,O);L.push(E)}var x=SuperMap.Plot.PlottingUtil.circlePoint(S,c,c,m);L.push(x);var w=[];w=w.concat(v);for(var I=L.length-1;I>=0;I--)w.push(L[I]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w)}}}}]),e}();SuperMap.Plot.CurveEight=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Runway=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.2),o.CLASS_NAME="SuperMap.Plot.Runway",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],o=SuperMap.Plot.PlottingUtil.distance(t,e),n=this.scaleValues[0]*o,i=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,n/2),l=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-n/2),r=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=r+90;s<=r+270;s+=10){var u=SuperMap.Plot.PlottingUtil.circlePoint(t,n/2,n/2,s);a.push(u)}for(var p=[],c=r-90;c<=r+90;c+=10){var y=SuperMap.Plot.PlottingUtil.circlePoint(e,n/2,n/2,c);p.push(y)}var P=[];(P=(P=(P=(P=P.concat(a)).concat(l)).concat(p)).concat(i)).push(P[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P);var h=new SuperMap.Geometry.Point(a[0].x,a[0].y);this.addScalePoint(h)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),n=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/n}this.calculateParts()}}]),e}();SuperMap.Plot.Runway=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.NodeChain=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues[1]=.1),o.CLASS_NAME="SuperMap.Plot.NodeChain",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t),this.isEdit||(this.scaleValues[1]=.25*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],n=e*this.scaleValues[1];if(0<this.subSymbols.length&&null!==this.subSymbols[0]&&void 0!==this.subSymbols[0])if(this.subSymbols[0].code>0)for(var i=0;i<t.length;i++){var l=new SuperMap.Geometry.Point(t[i].x,t[i].y+o);this.computeSubSymbol(this.subSymbols[0],l,2*n,0)}else this.addCircles(t,o,n);else this.addCircles(t,o,n);var r=new SuperMap.Geometry.Point(t[0].x,t[0].y+o);this.addScalePoint(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(r,n,n,90);this.addScalePoint(a)}}}},{key:"addCircles",value:function(t,e,o){for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},i=0;i<t.length;i++){var l=new SuperMap.Geometry.Point(t[i].x,t[i].y+e),r=this.getCirclePts(l,o);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,n)}}},{key:"getCirclePts",value:function(t,e){for(var o=[],n=0;n<=360;n+=12){var i=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,n);o.push(i)}return o}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t)this.scaleValues[0]=(e.y-o[0].y)/n;else if(1===t){var i=SuperMap.Plot.PlottingUtil.distance(e,o[0]);this.scaleValues[1]=i/n}}this.calculateParts()}}]),e}();SuperMap.Plot.NodeChain=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.FreeCurve=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.FreeCurve",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){this.scalePoints=[];var t=[];if(this.controlPoints.length<3)t.push(this.controlPoints[0]),t.push(this.controlPoints[1]);else{if(!this.isEdit){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(100,100),n=Math.abs(e.lon-o.lon),i=this.reSample(this.controlPoints,n/50);i.length<3&&(i=this.controlPoints),this.controlPoints=[],this.controlPoints=this.controlPoints.concat(i)}var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,this.controlPoints,this.scaleValues);l.scalePoints=SuperMap.Plot.PlottingUtil.clearSamePts(l.scalePoints),l.scaleValues=SuperMap.Plot.PlottingUtil.clearSamePts(l.scaleValues),this.scaleValues=l.scaleValues;for(var r=0,a=l.scalePoints.length;r<a;r++){var s=l.scalePoints[r];s.isScalePoint=!0,s.tag=r,this.addScalePoint(s)}t=SuperMap.Plot.PlottingUtil.clonePoints(l.beizerPoints)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var n=SuperMap.Plot.PlottingUtil.polylineDistance(o),i=-1;i=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var l=(e.x-o[i].x)/n,r=(e.y-o[i].y)/n;this.scaleValues[2*t]=l,this.scaleValues[2*t+1]=r}this.calculateParts()}},{key:"reSample",value:function(t,e){var o=[];if(null==t||e<0)return o;var n=t.length;if(n>2){var i=new SuperMap.Geometry.Point(0,0),l=0,r=0,a=0,s=2*Math.PI;i=t[0],o.push(i);for(var u=!1,p=!1,c=!1,y=1;y<n;y++)if(r=Math.sqrt((t[y].y-i.y)*(t[y].y-i.y)+(t[y].x-i.x)*(t[y].x-i.x)),SuperMap.Plot.PlottingUtil.equalFuzzy(0,r))u&&(i=t[y-1],y--,o.push(i),a=0,s=2*Math.PI,u=!1,p=!1,c=!1);else{var P=(t[y].x-i.x)/r,h=(t[y].y-i.y)/r;if(l=h>0||SuperMap.Plot.PlottingUtil.equalFuzzy(0,h)?Math.acos(P):2*Math.PI-Math.acos(P),s>2*Math.PI&&l+2*Math.PI<s?(l+=2*Math.PI,a<0&&(a+=2*Math.PI)):a<0&&l-2*Math.PI>a&&(l-=2*Math.PI,s>2*Math.PI&&(s-=2*Math.PI)),l>a&&l<s||SuperMap.Plot.PlottingUtil.equalFuzzy(0,l-a)||SuperMap.Plot.PlottingUtil.equalFuzzy(0,l-s)){var f=Math.atan(e/r);p?a<l-f&&(a=l-f):(p=!0,a=l-f),c?s>l+f&&(s=l+f):(c=!0,s=l+f),u=!0}else i=t[y-1],y--,o.push(i),a=0,s=2*Math.PI,u=!1,p=!1,c=!1}return o.push(t[n-1]),o}return o}},{key:"reSampleByAngle",value:function(t,e){var o=[],n=t.length;if(null==t||n<=0||e<=0)return o;for(var i=t,l=n,r=!1;SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].x,i[l-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].y,i[l-1].y);){if((l-=1)<=0)return o;r=!0}var a,s,u=[];for(a=0;a<l;a++)u.push(0);for(u[0]=1,u[l-1]=1,s=0,a=1;a<l-1;a++)if(SuperMap.Plot.PlottingUtil.distance(i[s],i[a])>1e-10&&SuperMap.Plot.PlottingUtil.distance(i[s],i[a+1])>1e-10){var p=180*SuperMap.Plot.PlottingUtil.InnerAngle(i[a],i[s],i[a+1])/Math.PI;p>e&&p<180-e&&(u[a]=1,s++)}var c=0;for(a=0;a<l;a++)1==u[a]&&c++;if(c>0){for(r&&c++,o=[],s=0,a=0;a<l;a++)1==u[a]&&(o[s++]=i[a]);return r&&(o[s]=o[0]),o}return o}}]),e}();SuperMap.Plot.FreeCurve=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.CombinationalCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.angleRange=[],o.defaultRadius=t.defaultRadius?t.defaultRadius:60,o.CLASS_NAME="SuperMap.Plot.CombinationalCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints),!(null==this.controlPoints||this.controlPoints.length<1)){var t=this.getCircleLonLat(this.controlPoints[0],this.defaultRadius);this.angleRange=[];for(var e=0;e<this.controlPoints.length;e++)null==this.scaleValues[e]&&(this.scaleValues[e]=t),this.angleRange.push([{Start:0,End:360}]);for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),n=0;n<o.length;n++)if(0!==this.angleRange[n].length&&(0!==this.angleRange[n][0].Start||0!==this.angleRange[n][0].End))for(var i=n+1;i<o.length;i++)if(0!==this.angleRange[i].length&&(0!==this.angleRange[i][0].Start||0!==this.angleRange[i][0].End)){var l=SuperMap.Plot.PlottingUtil.distance(o[n],o[i]);if(l<this.scaleValues[n]+this.scaleValues[i])if(l>Math.abs(this.scaleValues[n]-this.scaleValues[i]))for(var r=0;r<2;r++){var a,s,u;0==r?(u=n,a=SuperMap.Plot.PlottingUtil.radian(o[n],o[i])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((l*l+this.scaleValues[n]*this.scaleValues[n]-this.scaleValues[i]*this.scaleValues[i])/(2*l*this.scaleValues[n]))*SuperMap.Plot.PlottingUtil.RTOD):(u=i,a=SuperMap.Plot.PlottingUtil.radian(o[i],o[n])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((l*l+this.scaleValues[i]*this.scaleValues[i]-this.scaleValues[n]*this.scaleValues[n])/(2*l*this.scaleValues[i]))*SuperMap.Plot.PlottingUtil.RTOD);var p=a-s,c=a+s,y=p<0&&c>0||p>360||c>360;p=this.adjustAngle(p),c=this.adjustAngle(c);for(var P=this.angleRange[u].length-1;P>=0;P--)if(y){if(c>this.angleRange[u][P].End||SuperMap.Plot.PlottingUtil.equalFuzzy(c,this.angleRange[u][P].End)){this.angleRange[u].splice(P,1);continue}if(c>this.angleRange[u][P].Start&&(this.angleRange[u][P].Start=c),p<this.angleRange[u][P].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(p,this.angleRange[u][P].Start)){this.angleRange[u].splice(P,1);continue}p<this.angleRange[u][P].End&&(this.angleRange[u][P].End=p)}else if(p<this.angleRange[u][P].Start&&c>this.angleRange[u][P].End)this.angleRange[u].splice(P,1);else if(p>this.angleRange[u][P].Start&&c<this.angleRange[u][P].End)this.angleRange[u].push({Start:this.angleRange[u][P].Start,End:p}),this.angleRange[u].push({Start:c,End:this.angleRange[u][P].End}),this.angleRange[u].splice(P,1);else{if(p>this.angleRange[u][P].End)continue;if(p>this.angleRange[u][P].Start&&(this.angleRange[u][P].End=p),c<this.angleRange[u][P].Start)continue;c<this.angleRange[u][P].End&&(this.angleRange[u][P].Start=c)}}else{if(this.scaleValues[n]<this.scaleValues[i]){this.angleRange[n][0].Start=0,this.angleRange[n][0].End=0;break}this.angleRange[i][0].Start=0,this.angleRange[i][0].End=0}}for(var h=[],f=0;f<o.length;f++)if(0!==this.angleRange[f].length&&(0!==this.angleRange[f][0].Start||0!==this.angleRange[f][0].End))for(var S=this.angleRange[f].length-1;S>=0;S--){for(var d=this.adjustAngle(this.angleRange[f][S].Start),g=this.adjustAngle(this.angleRange[f][S].End);g<d;)g+=360;if(g-d==360)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[o[f],new SuperMap.Geometry.Point(o[f].x,o[f].y+this.scaleValues[f])]);else{for(var M=[],m=(g-d)/72,v=d;v<g+m/2;v+=m){var b=o[f].x+this.scaleValues[f]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),T=o[f].y+this.scaleValues[f]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);M.push(new SuperMap.Geometry.Point(b,T))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),h.push(M)}}for(var A=[];0!==h.length;){var L=h[0];h.splice(0,1),void 0!==(L=this.generatePolygon(h,L))&&A.push(L)}for(var O=[],E=0;E<A.length;E++)O.push(A[E]);for(var x=O.length-1;x>=0;x--)for(var w=0;w<O[x].length;w++){for(var I in O)if(parseInt(I)!==x){var R=O[I];if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(R,O[x][w])){var C=x,_=parseInt(I);O[_].push(O[_][0]),O[C].push(O[C][0]),O[_]=O[_].concat(O[C]),O.splice(C,1);break}}if(!isNaN(C)&&!isNaN(_))break}for(var U=0;U<O.length;U++){var N={type:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,positionPoints:O[U],style:{surroundLineFlag:!1,lineWidthLimit:!0,weight:0}};this.components.splice(0,0,N)}for(var D=0;D<o.length;D++){var B=new SuperMap.Geometry.Point(o[D].x+this.scaleValues[D],o[D].y);B.isScalePoint=!0,B.tag=D,this.addScalePoint(B)}}}},{key:"generatePolygon",value:function(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,1e-7))return e;for(var o,n=e[e.length-1],i=0;i<t.length;i++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].x,n.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].y,n.y,1e-7)){if(e=e.concat(t[i]),t.splice(i,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].x,n.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].y,n.y,1e-7)){for(var l=t[i].length-1;l>=0;l--)e.push(t[i][l]);if(t.splice(i,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.controlPoints.length)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),n=SuperMap.Plot.PlottingUtil.distance(o[t],e);this.scaleValues[t]=n}this.calculateParts()}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"getCircleLonLat",value:function(t,e){return null===this.map?2*this.getDefaultSubSymbolSize():this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map?((o=this.map.latLngToLayerPoint(L.latLng(t.y,t.x))).x+=e,this.map.layerPointToLatLng(L.point(o.x,o.y)).lng-t.x):this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map?((o=this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x,t.y))).x+=e,this.map.getLonLatFromPixel(new SuperMap.Pixel(o.x,o.y)).lon-t.x):void 0;var o}}]),e}();SuperMap.Plot.CombinationalCircle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.ConcentricCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=360),o.CLASS_NAME="SuperMap.Plot.ConcentricCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!(null==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))||t.length<2)){for(2==t.length&&t.push(t[1].clone());this.scaleValues[0]>360;)this.scaleValues[0]-=360;for(;this.scaleValues[0]<0;)this.scaleValues[0]+=360;for(;this.scaleValues[1]>360;)this.scaleValues[1]-=360;for(;this.scaleValues[1]<0;)this.scaleValues[1]+=360;for(;this.scaleValues[1]<=this.scaleValues[0];)this.scaleValues[1]+=360;for(var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),n=[],i=[],l=Math.PI/180,r=(this.scaleValues[1]-this.scaleValues[0])/72,a=this.scaleValues[0];a<this.scaleValues[1]+r/2;a+=r){var s=t[0].x+e*Math.cos(a*l),u=t[0].y+e*Math.sin(a*l),p=t[0].x+o*Math.cos(a*l),c=t[0].y+o*Math.sin(a*l);n.push(new SuperMap.Geometry.Point(s,u)),i.push(new SuperMap.Geometry.Point(p,c))}for(var y=[],P=0;P<n.length;P++)y.push(n[P]);y.push(n[0]);for(var h=i.length-1;h>=0;h--)y.push(i[h]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var f=t[0].x+e/2*Math.cos(this.scaleValues[0]*l),S=t[0].y+e/2*Math.sin(this.scaleValues[0]*l),d=t[0].x+o/2*Math.cos(this.scaleValues[1]*l),g=t[0].y+o/2*Math.sin(this.scaleValues[1]*l),M=new SuperMap.Geometry.Point(f,S);M.isScalePoint=!0,M.tag=0,this.addScalePoint(M);var m=new SuperMap.Geometry.Point(d,g);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),n=180*SuperMap.Plot.PlottingUtil.radian(o[0],e)/Math.PI;n>360;)n-=360;for(;n<0;)n+=360;0==t?this.scaleValues[0]=n:1==t&&(this.scaleValues[1]=n)}this.calculateParts()}}]),e}();SuperMap.Plot.ConcentricCircle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.SymbolTextBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.roundBox=!!t.roundBox&&t.roundBox,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.WITHTIPBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.SymbolTextBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){this.roundBox=null,this.textBoxType=null,function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,n,i;this.scalePoints=[];var l=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,n=this.controlPoints[1].x):(e=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y);var r=1,a=2,s=3,u=4;if(this.roundBox){var p=Math.max(e,n),c=Math.min(e,n),y=Math.max(o,i),P=Math.min(o,i),h=.1*Math.min(Math.abs(e-n),Math.abs(o-i)),f=new SuperMap.Geometry.Point(c+h,P+h),S=new SuperMap.Geometry.Point(c+h,y-h),d=new SuperMap.Geometry.Point(p-h,y-h),g=new SuperMap.Geometry.Point(p-h,P+h),M=this.calculateArc(f,h,3*Math.PI/2,Math.PI,-1,180),m=this.calculateArc(S,h,Math.PI,Math.PI/2,-1,180),v=this.calculateArc(d,h,Math.PI/2,0,-1,180),b=this.calculateArc(g,h,2*Math.PI,3*Math.PI/2,-1,180);r=M.length,a=M.length+m.length,s=M.length+m.length+v.length,u=M.length+m.length+v.length+b.length,l=M.concat(m,v,b)}else l.push(new SuperMap.Geometry.Point(e,i)),l.push(new SuperMap.Geometry.Point(e,o)),l.push(new SuperMap.Geometry.Point(n,o)),l.push(new SuperMap.Geometry.Point(n,i));this.isEdit||(this.scaleValues[1]=e+.1*(n-e),this.scaleValues[2]=i+-.3*(o-i));var T=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]),A=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,n,i);if(this.textBoxType===SuperMap.Plot.TextBoxType.WITHTIPBOX)switch(this.addScalePoint(T,0),A){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-i)*t)),l.splice(r,0,new SuperMap.Geometry.Point(e,o-(o-i)*t)),l.splice(r,0,T),l.splice(r,0,new SuperMap.Geometry.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(n-(n-e)*t,o)),l.splice(a,0,new SuperMap.Geometry.Point(n-(n-e)*t,o)),l.splice(a,0,T),l.splice(a,0,new SuperMap.Geometry.Point(e+(n-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(n,o-(o-i)*t)),l.splice(s,0,new SuperMap.Geometry.Point(n,i+(o-i)*t)),l.splice(s,0,T),l.splice(s,0,new SuperMap.Geometry.Point(n,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(n-(n-e)*t,i)),l.splice(u,0,new SuperMap.Geometry.Point(e+(n-e)*t,i)),l.splice(u,0,T),l.splice(u,0,new SuperMap.Geometry.Point(n-(n-e)*t,i))}if(0!==l.length)if(this.textBoxType===SuperMap.Plot.TextBoxType.NONEBOX){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,weight:0,lineWidthLimit:!0})}else this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.annotationContent(e,o,n,i),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint)if(0===t)this.scaleValues[1]=e.x,this.scaleValues[2]=e.y;else if(1===t){var o,n,i,l,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,i=this.controlPoints[1].x):(o=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(l=this.controlPoints[0].y,n=this.controlPoints[1].y):(l=this.controlPoints[1].y,n=this.controlPoints[0].y),r=this.scaleValues[1],a=this.scaleValues[2];var u=(n-l)/(i-o),p=.25;switch(r<o?a>n?Math.abs((a-n)/(r-o))>u?2:1:a<l&&Math.abs((a-l)/(r-o))>u?4:1:r>i?a>n?Math.abs((a-n)/(r-i))>u?2:3:a<l&&Math.abs((a-l)/(r-i))>u?4:3:a>n?2:a<l?4:0){case 1:case 3:var c=s.y+(e.y-s.y);c>n&&(c=n),c<(n+l)/2&&(c=(n+l)/2),p=1-2*(n-c)/(n-l);break;case 2:case 4:var y=s.x+(e.x-s.x);y>i&&(y=i),y<(o+i)/2&&(y=(o+i)/2),p=1-2*(i-y)/(i-o)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}},{key:"calculateArc",value:function(t,e,o,n,i,l){(!i||1!=i&&-1!=i)&&(i=-1),l||(l=360);for(var r=Math.PI/l/2,a=r*i,s=Math.abs(n-o),u=[],p=o,c=0;c<s;c+=r){var y=new SuperMap.Geometry.Point(Math.cos(p)*e+t.x,Math.sin(p)*e+t.y);u.push(y),p=(p=(p+=a)<0?p+2*Math.PI:p)>2*Math.PI?p-2*Math.PI:p}return u}},{key:"getAction",value:function(t,e,o,n,i,l){var r=(n-l)/(i-o);return t<o?e>n?Math.abs((e-n)/(t-o))>r?2:1:e<l&&Math.abs((e-l)/(t-o))>r?4:1:t>i?e>n?Math.abs((e-n)/(t-i))>r?2:3:e<l&&Math.abs((e-l)/(t-i))>r?4:3:e>n?2:e<l?4:0}}]),e}();SuperMap.Plot.SymbolTextBox=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GeoTooltipBoxM=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBoxM",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destory",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e,o,n,i;t[0].x<t[1].x?(e=t[0].x,n=t[1].x):(e=t[1].x,n=t[0].x),t[0].y<t[1].y?(i=t[0].y,o=t[1].y):(i=t[1].y,o=t[0].y),this.scalePoints=[];var l=[];l.push(new SuperMap.Geometry.Point(e,i)),l.push(new SuperMap.Geometry.Point(e,o)),l.push(new SuperMap.Geometry.Point(n,o)),l.push(new SuperMap.Geometry.Point(n,i)),this.isEdit||(this.scaleValues[0]=e,this.scaleValues[1]=i-.3*(o-i),this.scaleValues[2]=e+.5*(n-e),this.scaleValues[3]=i-.3*(o-i));for(var r=[],a=[],s=0;s<this.scaleValues.length/2;s++)r.push(this.getAction(this.scaleValues[2*s],this.scaleValues[2*s+1],e,o,n,i)),a.push(new SuperMap.Geometry.Point(this.scaleValues[2*s],this.scaleValues[2*s+1]));for(var u,p,c,y,P=a.length,h=[],f=[],S=[],d=[],g=[],M=0;M<r.length;M++)0===r[M]&&h.push(a[M]),1===r[M]&&f.push(a[M]),2===r[M]&&S.push(a[M]),3===r[M]&&d.push(a[M]),4===r[M]&&g.push(a[M]);var m=r.slice();m.sort();var v=new SuperMap.Geometry.Point(0,0);if(m[0]===m[m.length-1]&&0!==m[0]){var b=[];switch(m[0]){case 0:break;case 1:u=1/(2*f.length+1);for(var T=new SuperMap.Geometry.Point,A=0;A<2*f.length;A++)T=new SuperMap.Geometry.Point(e,i+(o-i)*u*(A+1)),b.unshift(T);break;case 2:p=1/(2*S.length+1);for(var L=new SuperMap.Geometry.Point,O=0;O<2*S.length;O++)L=new SuperMap.Geometry.Point(e+(n-e)*p*(O+1),o),b.unshift(L);break;case 3:c=1/(2*d.length+1);for(var E=new SuperMap.Geometry.Point,x=0;x<2*d.length;x++)E=new SuperMap.Geometry.Point(n,i+(o-i)*c*(x+1)),b.push(E);break;case 4:y=1/(2*g.length+1);for(var w=new SuperMap.Geometry.Point,I=0;I<2*g.length;I++)w=new SuperMap.Geometry.Point(e+(n-e)*y*(I+1),i),b.push(w)}for(var R=0;R<P;R++)for(var C=0;C<P;C++){var _=SuperMap.Plot.PlottingUtil.intersectLineSegs(b[2*R+1],a[R],b[2*C],a[C],v);if(_&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,b[2*R+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,b[2*R+1].y)&&(_=!1),_){var U=a[C].clone();a[C]=a[R],a[R]=U}}for(var N=0;N<P;N++)l.splice(m[0],0,b[2*N]),l.splice(m[0],0,a[N]),l.splice(m[0],0,b[2*N+1])}else{for(var D,B,G=[],k=[],V=[],Y=[],F=0;F<r.length;F++)switch(r[F]){case 0:break;case 1:u=1/(2*f.length+1);for(var j=0;j<2*f.length;j++){var z=new SuperMap.Geometry.Point(e,i+(o-i)*u*(j+1));G.unshift(z)}for(var W=0;W<f.length;W++)for(var H=1;H<f.length;H++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(G[2*W+1],f[W],G[2*H],f[H],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,G[2*W+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,G[2*W+1].y)&&(D=!1),D&&(B=f[H].clone(),f[H]=f[W],f[W]=B);break;case 2:p=1/(2*S.length+1);for(var q=0;q<2*S.length;q++){var J=new SuperMap.Geometry.Point(e+(n-e)*p*(q+1),o);k.unshift(J)}for(var X=0;X<S.length;X++)for(var K=1;K<S.length;K++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(k[2*X+1],S[X],k[2*K],S[K],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,k[2*X+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,k[2*X+1].y)&&(D=!1),D&&(B=S[K].clone(),S[K]=S[X],S[X]=B);break;case 3:c=1/(2*d.length+1);for(var Q=0;Q<2*d.length;Q++){var Z=new SuperMap.Geometry.Point(n,i+(o-i)*c*(Q+1));V.push(Z)}for(var $=0;$<d.length;$++)for(var tt=1;tt<d.length;tt++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(V[2*$+1],d[$],V[2*tt],d[tt],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,V[2*$+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,V[2*$+1].y)&&(D=!1),D&&(B=d[tt].clone(),d[tt]=d[$],d[$]=B);break;case 4:y=1/(2*g.length+1);for(var et=0;et<2*g.length;et++){var ot=new SuperMap.Geometry.Point(e+(n-e)*y*(et+1),i);Y.push(ot)}for(var nt=0;nt<g.length;nt++)for(var it=1;it<g.length;it++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(Y[2*nt+1],g[nt],Y[2*it],g[it],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,Y[2*nt+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,Y[2*nt+1].y)&&(D=!1),D&&(B=g[it].clone(),g[it]=g[nt],g[nt]=B)}for(var lt=0;lt<g.length;lt++)l.splice(4,0,Y[2*lt]),l.splice(4,0,g[lt]),l.splice(4,0,Y[2*lt+1]);for(var rt=0;rt<d.length;rt++)l.splice(3,0,V[2*rt]),l.splice(3,0,d[rt]),l.splice(3,0,V[2*rt+1]);for(var at=0;at<S.length;at++)l.splice(2,0,k[2*at]),l.splice(2,0,S[at]),l.splice(2,0,k[2*at+1]);for(var st=0;st<f.length;st++)l.splice(1,0,G[2*st]),l.splice(1,0,f[st]),l.splice(1,0,G[2*st+1])}for(var ut=0;ut<a.length;ut++)this.addScalePoint(a[ut],ut)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l),this.annotationContent(e,o,n,i),this.finish()}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(null==t&&void 0===t||(this.scaleValues[2*t]=e.x,this.scaleValues[2*t+1]=e.y)),this.calculateParts()}},{key:"getAction",value:function(t,e,o,n,i,l){var r=(n-l)/(i-o);return t<o?e>n?Math.abs((e-n)/(t-o))>r?2:1:e<l&&Math.abs((e-l)/(t-o))>r?4:1:t>i?e>n?Math.abs((e-n)/(t-i))>r?2:3:e<l&&Math.abs((e-l)/(t-i))>r?4:3:e>n?2:e<l?4:0}}]),e}();SuperMap.Plot.GeoTooltipBoxM=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GeoTooltipBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.126),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,n,i,l,r;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,n=this.controlPoints[1].x):(e=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y),l=this.controlPoints[2].x,r=this.controlPoints[2].y;var a=0,s=(o-i)/(n-e);a=l<e?r>o?Math.abs((r-o)/(l-e))>s?2:1:r<i&&Math.abs((r-i)/(l-e))>s?4:1:l>n?r>o?Math.abs((r-o)/(l-n))>s?2:3:r<i&&Math.abs((r-i)/(l-n))>s?4:3:r>o?2:r<i?4:0,this.scalePoints=[];var u=[];switch(u.push(new SuperMap.Geometry.Point(e,i)),u.push(new SuperMap.Geometry.Point(e,o)),u.push(new SuperMap.Geometry.Point(n,o)),u.push(new SuperMap.Geometry.Point(n,i)),a){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-i)*t)),u.splice(a,0,new SuperMap.Geometry.Point(e,o-(o-i)*t)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(n-(n-e)*t,o)),u.splice(a,0,new SuperMap.Geometry.Point(n-(n-e)*t,o)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(e+(n-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(n,o-(o-i)*t)),u.splice(a,0,new SuperMap.Geometry.Point(n,i+(o-i)*t)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(n,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(n-(n-e)*t,i)),u.splice(a,0,new SuperMap.Geometry.Point(e+(n-e)*t,i)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(n-(n-e)*t,i))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u),this.annotationContent(e,o,n,i)}this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o,n,i,l,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,i=this.controlPoints[1].x):(o=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(l=this.controlPoints[0].y,n=this.controlPoints[1].y):(l=this.controlPoints[1].y,n=this.controlPoints[0].y),r=this.controlPoints[2].x,a=this.controlPoints[2].y;var u=(n-l)/(i-o),p=.25;switch(r<o?a>n?Math.abs((a-n)/(r-o))>u?2:1:a<l&&Math.abs((a-l)/(r-o))>u?4:1:r>i?a>n?Math.abs((a-n)/(r-i))>u?2:3:a<l&&Math.abs((a-l)/(r-i))>u?4:3:a>n?2:a<l?4:0){case 1:case 3:var c=s.y+(e.y-s.y);c>n&&(c=n),c<(n+l)/2&&(c=(n+l)/2),p=1-2*(n-c)/(n-l);break;case 2:case 4:var y=s.x+(e.x-s.x);y>i&&(y=i),y<(o+i)/2&&(y=(o+i)/2),p=1-2*(i-y)/(i-o)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}}]),e}();SuperMap.Plot.GeoTooltipBox=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Trapezoid=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.Trapezoid",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=[],o=t[0],n=t[1],i=t[2],l=new SuperMap.Geometry.Point(0,0);this.GetPointsByTrapezoid(1,i,n,o,l),e.push(o),e.push(n),e.push(i),e.push(l);var r=SuperMap.Plot.PlottingUtil.intersectLines(o,n,i,l),a=r.intersectPoint;r.isIntersectLines&&(a.x>o.x&&a.x<n.x||a.y>o.y&&a.y<n.y||a.x<o.x&&a.x>n.x||a.y<o.y&&a.y>n.y)&&(e[0]=l,e[3]=o),4==e.length&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,n,i){var l=e.x,r=e.y,a=o.x,s=o.y,u=n.x,p=n.y,c=0,y=0,P=0,h=0;if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(r-s),0))c=l+a-u,y=p;else if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(l-a),0))c=u,y=r+s-p;else{var f=1*(r-s)/(l-a),S=p-f*u;y=f*(c=((s+r)/2+(l+a)/(2*f)-S)/(f+1/f))+S,c=2*c-u,y=2*y-p}var d=Math.sqrt(1*(l-a)*(l-a)+1*(r-s)*(r-s)),g=Math.sqrt(1*(l-c)*(l-c)+1*(r-y)*(r-y));d>0?(P=l+(a-l)*g/d,h=r+(s-r)*g/d):(P=l,h=r);var M=P+(c-P)*t,m=h+(y-h)*t;i.x=M,i.y=m}}]),e}();SuperMap.Plot.Trapezoid=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Brace=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.1)),o.CLASS_NAME="SuperMap.Plot.Brace",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],o=t[1],n=SuperMap.Plot.PlottingUtil.distance(e,o);this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.1));for(var i=this.scaleValues[0],l=this.scaleValues[1],r=new SuperMap.Geometry.Point(n*i,n*i),a=new SuperMap.Geometry.Point(n*(.5-l/2),0),s=new SuperMap.Geometry.Point(.5*n,-n*l),u=new SuperMap.Geometry.Point(n*(.5+l/2),0),p=new SuperMap.Geometry.Point(n*(1-i),n*i),c=[],y=180*Math.PI/180,P=270*Math.PI/180,h=3*Math.PI/180,f=y;f<=P;f+=h){var S=new SuperMap.Geometry.Point(r.x+n*i,r.y);S=SuperMap.Plot.PlottingUtil.rotateAngle(r,f,S),c.push(S)}c.push(a),c.push(s),c.push(u),y=270*Math.PI/180,P=360*Math.PI/180;for(var d=y;d<=P;d+=h){var g=new SuperMap.Geometry.Point(p.x+n*i,p.y);g=SuperMap.Plot.PlottingUtil.rotateAngle(p,d,g),c.push(g)}for(var M=SuperMap.Plot.PlottingUtil.radian(e,o),m=[],v=0;v<c.length;v++){var b=new SuperMap.Geometry.Point(c[v].x+e.x,c[v].y+e.y);b=SuperMap.Plot.PlottingUtil.rotateAngle(e,M,b),m.push(b)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.scalePoints=[];var T=new SuperMap.Geometry.Point(n*i,0),A=new SuperMap.Geometry.Point(T.x+e.x,T.y+e.y);(A=SuperMap.Plot.PlottingUtil.rotateAngle(e,M,A)).isScalePoint=!0,A.tag=0,this.addScalePoint(A);var L=new SuperMap.Geometry.Point(s.x+e.x,s.y+e.y);SuperMap.Plot.PlottingUtil.rotateAngle(e,M,L),L.isScalePoint=!0,L.tag=1,this.addScalePoint(L)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),n=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(o[0],e)/n;i>0&&i<.4&&(this.scaleValues[0]=i)}else if(1==t){var l=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMap.Plot.PlottingUtil.distance(e,l)/n;0<r&&.2>r&&(this.scaleValues[1]=r)}}this.calculateParts()}}]),e}();SuperMap.Plot.Brace=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.RegularPolygon=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(1),o.CLASS_NAME="SuperMap.Plot.RegularPolygon",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){if(this.init(),!(this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=this.controlPoints.length+1,o=2*Math.PI/e;if(!this.isEdit){var n=this.controlPoints[this.controlPoints.length-1],i=new SuperMap.Geometry.Point(this.controlPoints[this.controlPoints.length-1].x,this.controlPoints[this.controlPoints.length-1].y);SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o,i),this.scaleValues[0]=SuperMap.Plot.PlottingUtil.distance(t[0],this.calculateMidPt(n,i))/SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1])}var l=[],r=this.controlPoints[this.controlPoints.length-1].clone();l.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r);l.push(a);for(var s=1;s<e;s++)r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),l.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r),l.push(a);var u=l[1];this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fill:!1}),this.addScalePoint(u),0!==this.textContent.length&&this.createTextContent(),this.finish()}}},{key:"calculateMidPt",value:function(t,e){return new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2)}},{key:"modifyPoint",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1]),n=this.scalePoints[0],i=SuperMap.Plot.PlottingUtil.projectPoint(e,this.controlPoints[0],n),l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],i);this.scaleValues[0]=l/o}this.calculateParts()}}]),e}();SuperMap.Plot.RegularPolygon=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.ArrowLine=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.arrowAngle=t.arrowAngle?t.arrowAngle:45,0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.ArrowLine",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),n(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(o));var n,i=this.scaleValues[0]*o,l=this.arrowAngle*Math.PI/180/2,r=(n=e.length>2?SuperMap.Plot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMap.Plot.PlottingUtil.radian(e[1],e[0]))-l,a=e[e.length-1].x+i*Math.cos(r),s=e[e.length-1].y+i*Math.sin(r),u=new SuperMap.Geometry.Point(a,s),p=n+l,c=e[e.length-1].x+i*Math.cos(p),y=e[e.length-1].y+i*Math.sin(p),P=new SuperMap.Geometry.Point(c,y),h=[];h.push(u),h.push(e[e.length-1].clone()),h.push(P);var f={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},S=SuperMap.Plot.PlottingUtil.radian(e[0],e[1]);r=S-l,a=e[0].x+i*Math.cos(r),s=e[0].y+i*Math.sin(r),u=new SuperMap.Geometry.Point(a,s),p=S+l,c=e[0].x+i*Math.cos(p),y=e[0].y+i*Math.sin(p),P=new SuperMap.Geometry.Point(c,y);var d=[];d.push(u),d.push(e[0].clone()),d.push(P);var g=this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M=this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(g,d,f):this.scaleValues[1]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(g,d,f),this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(M,h,f):this.scaleValues[2]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(M,h,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.ArrowLine=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.AlgoSymbol=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.style=null,this.libID=e.libID?e.libID:0,this.code=e.code?e.code:0,this.maxEditPts=e.maxEditPts?e.maxEditPts:SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(e.libID,e.code),this.minEditPts=e.minEditPts?e.minEditPts:SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(e.libID,e.code),this.isEdit=!!e.isEdit&&e.isEdit,this.controlPoints=e.controlPoints?e.controlPoints:[],this.scalePoints=e.scalePoints?e.scalePoints:[],this.scaleValues=e.scaleValues?e.scaleValues:[],this.subSymbols=e.subSymbols?e.subSymbols:SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID,e.code),this.polylineConnectLocationPoint=!!e.polylineConnectLocationPoint&&e.polylineConnectLocationPoint,this.style=e.style?e.style:SuperMap.Plot.PlottingUtil.copyAttributes(this.style,SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(e.libID,e.code)),this.textContent=e.textContent?e.textContent:"",this.map=e.map?e.map:null,this.scene=e.scene?e.scene:null,this.subSymbolDefaultPixelSize=e.subSymbolDefaultPixelSize?e.subSymbolDefaultPixelSize:30,this.components=[],this.symbolType=0===this.libID?this.code:2}return n(t,[{key:"addScalePoint",value:function(t,e){if(null!=t){void 0!==e&&null!==e||(e=this.scalePoints.length);var o=new SuperMap.Geometry.Point(t.x,t.y);o.isScalePoint=!0,o.tag=e,this.scalePoints.push(o)}}},{key:"setOptions",value:function(t){if(t)for(var e in this)t[e]&&(this[e]=t[e])}},{key:"getAlgorithmResult",value:function(t){t.components=this.components,t.scalePoints=this.scalePoints,t.scaleValues=this.scaleValues}}]),n(t,[{key:"destroy",value:function(){this.minEditPts=null,this.maxEditPts=null,this.controlPoints.length=0,this.controlPoints=null,this.scalePoints.length=0,this.scalePoints=null,this.scaleValues.length=0,this.scaleValues=null,this.subSymbols.length=0,this.subSymbols=null,this.subSymbolSize=0,this.components=[],this.style=null}},{key:"init",value:function(){if(this.components=[],this.scalePoints=[],this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),this.maxEditPts<this.controlPoints.length&&this.symbolType!==SuperMap.Plot.SymbolType.ELLIPSESYMBOL){var t=this.controlPoints.shift(),e=this.controlPoints.pop();this.controlPoints=[],this.controlPoints.push(t,e)}}},{key:"finish",value:function(){}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints.length>=this.minEditPts){var t={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:this.controlPoints,style:{}};if(t.type===SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL&&t.positionPoints.push(t.positionPoints[0]),this.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var e=!1;void 0!==this.controlPoints[0].z&&(e=!0);var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMap.Plot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(o=-o);for(var n=[],i=1;i<this.controlPoints.length;i++)n.push(this.controlPoints[i].clone());var l=SuperMap.Plot.PlottingUtil.parallel(n,o);if(this.controlPoints[0].x=l[0].x,this.controlPoints[0].y=l[0].y,e)for(var r=0;r<n.length;r++)l[r].z=n[r].z;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l)}}else this.components.push(t)}}},{key:"modifyPoint",value:function(t,e){if(0===this.libID&&31===this.code){if(0===t)return this.controlPoints[0].x=(this.controlPoints[1].x+this.controlPoints[3].x)/2,void(this.controlPoints[0].y=(this.controlPoints[1].y+this.controlPoints[3].y)/2);var o=-1;0===(o=(t+2)%4)&&(o=4);var n=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[t]),i=SuperMap.Plot.PlottingUtil.findPointInLine(this.controlPoints[0],this.controlPoints[o],n),l=new SuperMap.Geometry.Point(2*this.controlPoints[0].x-i.x,2*this.controlPoints[0].y-i.y),r=this.getPixelFromLonLat(i.x,i.y),a=this.getPixelFromLonLat(l.x,l.y),s=!1;(SuperMap.Plot.PlottingUtil.equalFuzzy(r.x-a.x,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(r.y-a.y,0))&&(s=!0),s?(this.controlPoints[o].x=l.x,this.controlPoints[o].y=l.y,this.controlPoints[t].x=i.x,this.controlPoints[t].y=i.y):(this.controlPoints[o].x=i.x,this.controlPoints[o].y=i.y,this.controlPoints[t].x=l.x,this.controlPoints[t].y=l.y)}else this.computeScaleValues(t,e),this.calculateParts()}},{key:"computeScaleValues",value:function(){}},{key:"getLonLatDistanceFromPixel",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var n=this.map.layerPointToLatLng(L.point(0,0)),i=this.map.layerPointToLatLng(L.point(t,0));e=new SuperMap.Geometry.Point(n.lng,n.lat),o=new SuperMap.Geometry.Point(i.lng,i.lat)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){n=this.map.getLonLatFromPixel(new SuperMap.Pixel(0,0)),i=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,0));e=new SuperMap.Geometry.Point(n.lon,n.lat),o=new SuperMap.Geometry.Point(i.lon,i.lat)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelFromLonLat",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.latLngToLayerPoint(L.latLng(e,t));return{x:o.x,y:o.y}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var n=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,e));return{x:n.x,y:n.y}}}},{key:"getLonLatFromPixel",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.layerPointToLatLng(L.point(t,e));return{lon:o.lng,lat:o.lat}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var n=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,e));return{lon:n.lon,lat:n.lat}}}},{key:"pixelBoundsToLonLat",value:function(t){var e=this.getLonLatFromPixel(t.left,t.top),o=this.getLonLatFromPixel(t.right,t.bottom);return new SuperMap.Bounds(e.lon,o.lat,o.lon,e.lat)}},{key:"annotationContent",value:function(t,e,o,n){var i=this.textContent;if(0!==i.length){var l=SuperMap.Plot.PlottingUtil.getTextWidth(this.style,i),r=this.getPixelFromLonLat(t,e),a=this.getPixelFromLonLat(o,n),s=parseFloat(Math.abs(a.x-r.x)),u=parseFloat(Math.abs(r.y-a.y));if(l>=s){var p=i.split("");i="";var c=1,y=0;this.style.weight?y=parseFloat(this.style.fontSize)+2*this.style.weight+.2*parseFloat(this.style.fontSize)+c:this.style.strokeWidth&&(y=parseFloat(this.style.fontSize)+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)+c);for(var P="",h=0,f=p.length;h<f&&y<=u;h++){if(P+=p[h],SuperMap.Plot.PlottingUtil.getTextWidth(this.style,P)>=s){var S=p[h];if(p[h]="\n",c++,this.style.weight?y=parseFloat(this.style.fontSize)*c+c+2*this.style.weight+.2*parseFloat(this.style.fontSize):this.style.strokeWidth&&(y=parseFloat(this.style.fontSize)*c+c+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)),!(y<u))break;p[h]+=S,P=S}i+=p[h]}}if(0!==i.length){var d=this.style.labelAlign,g=0,M=0;"l"===d[0]?g=t:"r"===d[0]?g=o:"c"===d[0]&&(g=(t+o)/2),"t"===d[1]?M=e:"b"===d[1]?M=n:"m"===d[1]&&(M=(e+n)/2);var m=new SuperMap.Geometry.Point(g,M),v={};v.positionPoints=[m],v.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,v.textContent=i,v.style={surroundLineFlag:!1,labelAlign:d},this.components.push(v)}}}},{key:"addCell",value:function(t,e,o,n){if(t&&e){var i={};i.type=t,i.textContent=n,i.positionPoints=e,i.style=null==o?{surroundLineFlag:!1}:o,this.components.push(i)}}},{key:"addText",value:function(t,e,o,n,i){if(t&&e){var l={};l.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,l.textContent=t,l.positionPoints=[e];var r=o/t.length/2;l.style={},l.style.surroundLineFlag=!1,l.style.labelRotation=-n,l.style.fontSize=r,l.style.fontColor=void 0===i?"#000000":i,l.style.fontSizeLimit=!0,l.style.sizeFixed=!1,l.style.labelAlign="cm",l.style.label=t,this.components.push(l)}}},{key:"getLinePts",value:function(t,e,o){var n=new Object;if(e>.5)return n.startIndex=0,n.startPt=t[0],n.endIndex=t.length-1,n.endPt=t[t.length-1],n;null==o&&(o=.5);var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i*(o-e),t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i*(o+e),t);return n.startIndex=l.index,n.startPt=l.pts,n.endIndex=r.index,n.endPt=r.pts,n}},{key:"computeDashLine",value:function(t,e,o){var n=[],i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(i<=0)return[];for(var l,r=o[0],a=1,s=0,u=!0,p=!0;s<i;){var c,y=[];y.push(r),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(c=P.index,l=P.pts,!(u=P.bfind))break;if(a<c)for(var h=a;h<c;h++)y.push(o[h]);y.push(l),n.push(y),s+=e;var f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(c=f.index,r=f.pts,a=c+1,!(p=f.bfind))break}if(!u){var S=[];S.push(r);for(var d=a;d<o.length;d++)S.push(o[d]);2===S.length&&SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(S[0],S[1]),0)||n.push(S)}if(!p){var g=o[o.length-1],M=SuperMap.Plot.PlottingUtil.distance(l,g);if(M*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(M,0)){var m=SuperMap.Plot.PlottingUtil.linePnt(g,l,M),v=[];v.push(m),v.push(g),n.push(v)}}return n}},{key:"addArrow",value:function(t,e){if(t.length<2)return t;var o,n=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=n*e;var i=t[t.length-1];if(t.length>2){for(var l=-1,r=t.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,t[r])){l=r;break}t.splice(l+1,t.length-l),t.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[t.length-2],s=t[t.length-1],u=o;if(void 0===a)return t;if(!(SuperMap.Plot.PlottingUtil.distance(a,s)<o)){var p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+202.5),P={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,t[t.length-1],y],P)}}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,n=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=n*e;var i=t[t.length-1];if(t.length>2){for(var l=-1,r=t.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,t[r])){l=r;break}t.splice(l+1,t.length-l),t.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[t.length-2],s=t[t.length-1],u=o;if(void 0===a)return t;if(!(SuperMap.Plot.PlottingUtil.distance(a,s)<o)){var p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+202.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,.5*u,.5*u,p+180),h=[];h.push(c),h.push(t[t.length-1]),h.push(y),h.push(P);var f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,f)}}},{key:"getDefaultSubSymbolSize",value:function(){var t=0;if(this.map){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(this.subSymbolDefaultPixelSize,0),n=new SuperMap.Geometry.Point(e.lon,e.lat),i=new SuperMap.Geometry.Point(o.lon,o.lat);t=SuperMap.Plot.PlottingUtil.distance(n,i)}if(0===t){if(0!==this.subSymbolSize)return this.subSymbolSize;for(var l=0,r=0;r<this.controlPoints.length-1;r++)l+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[r],this.controlPoints[r+1]);t=.3*l}return t}},{key:"getTextBounds",value:function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.innerHTML=e;var n=new SuperMap.Bounds(o.clientLeft,o.clientTop+o.clientHeight-6,o.clientLeft+o.clientWidth,o.clientTop+4),i=this.pixelBoundsToLonLat(n);return document.body.removeChild(o),i}},{key:"calAssistantLine",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&(t.splice(1,0,new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[0].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[1].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y)));var e={type:24,surroundLineFlag:!1,positionPoints:t,style:{color:"#0000ff",opacity:1,weight:1,dashArray:"5, 5",strokeColor:"#0000ff",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"dash",lineColorLimit:!0,lineTypeLimit:!0,lineWidthLimit:!0,surroundLineFlag:!1}};this.components.push(e)}},{key:"getSubSymbolScaleValue",value:function(t,e){var o=0;o=t&&!SuperMap.Plot.PlottingUtil.equalFuzzy(t,0)?t:SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);var n=this.getDefaultSubSymbolSize()/o;return void 0===e&&(e=.3),(n>e||n<=0)&&(n=e),n}},{key:"computeSubSymbol",value:function(t,e,o,n,i,l){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===i&&(i=0),void 0===l&&(l=0);for(var r=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,u=0,p=0,c=0;c<r.length;c++)for(var y=SuperMap.Plot.Primitives.getSpatialData(r[c].type,r[c].positionPoints,r[c].textContent,0,r[c].isCalculate),P=0,h=y.length;P<h;P++)a<y[P].x&&(a=y[P].x),s<y[P].y&&(s=y[P].y),u>y[P].x&&(u=y[P].x),p>y[P].y&&(p=y[P].y);var f=new SuperMap.Geometry.Point(a,s),S=new SuperMap.Geometry.Point(u,p),d=(f.y-S.y)/o,g=(f.x-S.x)/o,M=g>d?g:d,m=new SuperMap.Geometry.Point(.5*(f.x+S.x),.5*(f.y+S.y));m.x+=i*(f.x-S.x),m.y+=l*(f.y-S.y);for(var v=0,b=r.length;v<b;v++){for(var T=0,A=r[v].positionPoints.length;T<A;T++)r[v].positionPoints[T].x-=m.x,r[v].positionPoints[T].y-=m.y,r[v].positionPoints[T].x/=M,r[v].positionPoints[T].y/=M,SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0,0),n*Math.PI/180,r[v].positionPoints[T]),r[v].positionPoints[T].x+=e.x,r[v].positionPoints[T].y+=e.y;r[v].type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(r[v].style.fontSize/=10*M,r[v].style.labelRotation=-n,r[v].style.sizeFixed=!1),r[v].isCalculate=!1,this.components.push(r[v])}return r}},{key:"ComputeZValue",value:function(t,e,o){var n=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e,o),i=new SuperMap.Geometry.Point(n.projectPoint.x,n.projectPoint.y),l=SuperMap.Plot.PlottingUtil.distance(e,o),r=SuperMap.Plot.PlottingUtil.distance(e,t),a=SuperMap.Plot.PlottingUtil.distance(o,t);if(!n.isOnline){if(r>=l)return o.z;if(a>=l)return e.z}return i.x!=e.x&&e.x!=o.x?e.z+(i.x-e.x)/(e.x-o.x)*(e.z-o.z):i.y!=e.y&&e.y!=o.y?e.z+(i.y-e.y)/(e.y-o.y)*(e.z-o.z):0==(r=SuperMap.Plot.PlottingUtil.distance(e,i))?e.z:e.z-(e.z-o.z)*(r/l)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,o){if(t.length<2)return!1;for(var n=[],i=0;i<t.length;i++)n.push({x:t[i].x,y:t[i].y});var l=SuperMap.Plot.PlottingUtil.polylineDistance(n);if(0==l)return!1;var r=SuperMap.Plot.PlottingUtil.polylineDistance(e),a=[];a.push(n[0]);for(var s=-1,u=0,p=e[0],c=1;c<n.length;c++){a.push(n[c]);var y=SuperMap.Plot.PlottingUtil.polylineDistance(a)/l,P=r*y,h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e),f=h.index,S=h.pts;if(h.bfind){for(var d=t[c-1].z,g=t[c].z,M=r*(y-u),m=0,v=++s;v<=f;v++){var b=d+(g-d)*((m+=v==s?SuperMap.Plot.PlottingUtil.distance(p,e[v]):SuperMap.Plot.PlottingUtil.distance(e[v-1],e[v]))/M);o.push({x:e[v].x,y:e[v].y,z:b})}s=f}u=y,p=S}for(var T=s+1;T<e.length;T++)o.push({x:e[T].x,y:e[T].y,z:t[t.length-1].z});return!0}},{key:"ComputeHeight",value:function(t,e,o,n){if(o!=n){if(0!=t.length)if(1==t.length)e.push({x:t[0].x,y:t[0].y,z:o});else if(2==t.length)e.push({x:t[0].x,y:t[0].y,z:o}),e.push({x:t[1].x,y:t[1].y,z:n});else{var i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!=i){var l=[];l.push(t[0]),e.push({x:t[0].x,y:t[0].y,z:o});for(var r=1;r<t.length-1;r++){l.push(t[r]);var a=o+(n-o)*SuperMap.Plot.PlottingUtil.polylineDistance(l)/i;e.push({x:t[r].x,y:t[r].y,z:a})}e.push({x:t[t.length-1].x,y:t[t.length-1].y,z:n})}else for(var s=0;s<t.length;s++)e.push({x:t[s].x,y:t[s].y,z:o})}}else for(var u=0;u<t.length;u++)e.push({x:t[u].x,y:t[u].y,z:o})}}]),t}();SuperMap.Plot.AlgoSymbol=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowToolkit=SuperMap.Plot.ArrowToolkit=SuperMap.Plot.ArrowToolkit||{};SuperMap.Plot.ArrowToolkit.ConstValue={MAX_ARRAY_SIZE:128,sv_AtScaleParameter:1.5,sv_AtLenDivAtWidth:1.35,sv_AtWidthDivAwWidth:.5,DUOJIANTOU_TAIL_RATE_1:8,DUOJIANTOU_TAIL_RATE_2:3,DUOJIANTOU_TAIL_RATE_3:.6},SuperMap.Plot.ArrowToolkit.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},SuperMap.Plot.ArrowToolkit.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_COATTAIL_HOLLOW:6,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5},SuperMap.Plot.ArrowToolkit.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_COATTAIL:5,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4},SuperMap.Plot.ArrowToolkit.parallel=function(t,e){var o={leftParallelPts:[],rightParallelPts:[]};return 1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y?o:(o.leftParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,e),o.rightParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,-e),o)},SuperMap.Plot.ArrowToolkit.trapezoid=function(t,e,o){var n={leftParallelPts:[],rightParallelPts:[]};if(1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y)return n;for(var i=0;i<t.length-1;i++){t[i].x===t[i+1].x&&t[i].y===t[i+1].y&&(n.leftParallelPts.push(n.leftParallelPts[n.leftParallelPts.length-1]),n.rightParallelPts.push(n.rightParallelPts[n.rightParallelPts.length-1]));var l=t[i+1];l=SuperMap.Plot.PlottingUtil.rotate(t[i],0,1,l),n.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i],l,e)),l=t[i],l=SuperMap.Plot.PlottingUtil.rotate(t[i+1],0,-1,l),n.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i+1],l,o)),l=t[i+1],l=SuperMap.Plot.PlottingUtil.rotate(t[i],0,-1,l),n.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i],l,e)),l=t[i],l=SuperMap.Plot.PlottingUtil.rotate(t[i+1],0,1,l),n.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i+1],l,o))}return n},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts=function(t,e,o){var n={};switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL:case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID:var i=e[0],l=e[1],r=e[2],a=SuperMap.Plot.PlottingUtil.equalFuzzy(r,0);if(!a&&t.length>2){var s=t.length;t.splice(2,s-2)}var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);n.arrowTouLen=u*i;for(var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,u-n.arrowTouLen).pt,c=[],y=n.arrowTouLen*r,P=n.arrowTouLen*l,h=t.length-1,f=0;f<h;f++)c.push(t[f]);c.push(p);var S={leftParallelPts:[],rightParallelPts:[]};S=!0===a?SuperMap.Plot.ArrowToolkit.parallel(c,P):SuperMap.Plot.ArrowToolkit.trapezoid(c,y,P);var d=t[t.length-1];t[t.length-1]=p,t.push(d);n.leftBodyPts=S.leftParallelPts,n.rightBodyPts=S.rightParallelPts,n.OpectrlPoints=null;break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER:var g=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0==g)return;var M=SuperMap.Plot.ArrowToolkit.OperateCtrlPts(t),m=M.length;m--;var v=SuperMap.Plot.ArrowToolkit.generateMultiBezier(M,m,e,g);t=[];for(var b=0;b<M.length;b++)t.push(M[b]);n.arrowTouLen=v.arrowTouLen,n.leftBodyPts=v.leftBodyPts,n.rightBodyPts=v.rightBodyPts,n.OpectrlPoints=M}return n},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,n,i){var l=[];switch(i){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var r=o[0],a=o[1],s=0,u=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],u=o[3]);var p=0;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(u,0)){var c=SuperMap.Plot.PlottingUtil.clonePoints(t);c.splice(c.length-1,1),p=SuperMap.Plot.PlottingUtil.polylineDistance(c)*s*u}var y=new SuperMap.Geometry.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var P=n*r,h=t[t.length-1];return h=SuperMap.Plot.PlottingUtil.rotate(y,0,1,h),l.push(SuperMap.Plot.PlottingUtil.findPointInLine(y,h,P)),l.push(t[t.length-1]),h=t[t.length-1],h=SuperMap.Plot.PlottingUtil.rotate(y,0,-1,h),l.push(SuperMap.Plot.PlottingUtil.findPointInLine(y,h,P)),l}var f=n*a,S=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(f,y,t[t.length-1]);f=n*r,f+=p;var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,t[t.length-1],S),g=d.pntLeft,M=d.pntRight,m=t[t.length-1];return l.push(M),l.push(m),l.push(g),l}},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,n){var i=[];if(2>t.length)return i;var l,r=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:i=i.concat(t),n&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(l.pt));break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)i=i.concat(t),n&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(l.pt));else{var s=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(a)i=i.concat(s);else{var u=s[s.length-1];if(!a&&(e<SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])||SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),e,1e-7))){for(var p=s.length-1;p>1;p--){if(!(e>SuperMap.Plot.PlottingUtil.distance(u,s[p]))){var c=SuperMap.Plot.PlottingUtil.findPoint(u,s[p],e,0);s.push(c),i=s;break}s.splice(p,1)}n||i.push(u)}else i=i.concat(s)}}break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var y=e;if(y>r)return i;for(var P,h,f=Math.ceil(r/(1.4*y)),S=0,d=[],g=0;g<f;g++)P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y*S,t),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y*(S+1),t),P.bfind&&h.bfind&&(d.push(P.pts),d.push(h.pts)),S=1.4*(g+1);i=d}return i},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine=function(t,e,o){var n=[];if(2>t.length)return n;switch(o){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var i=t[0],l=t[1],r=SuperMap.Plot.PlottingUtil.distance(i,l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(r,e,1e-7)||r>e){var a=SuperMap.Plot.PlottingUtil.findPoint(i,l,e,0),s=e*Math.tan(.125*Math.PI),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,t[0],a);n.push(u.pntLeft),n.push(t[0]),n.push(u.pntRight)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var p=t[0],c=t[1],y=SuperMap.Plot.PlottingUtil.distance(p,c);if(SuperMap.Plot.PlottingUtil.equalFuzzy(y,e,1e-7)||y>e){var P=e*Math.tan(.125*Math.PI),h=SuperMap.Plot.PlottingUtil.findPoint(p,c,e,0),f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(P,t[0],h);n.push(f.pntLeft),n.push(p),n.push(f.pntRight),n.push(f.pntLeft)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var S=t[0],d=2*Math.sqrt(e*e/3),g=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(d/2,g,1e-7)||g>d/2){var M=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],d,20),m=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],d,-20),v=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],d/2,0);n.push(S),n.push(M),n.push(v),n.push(m),n.push(S)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var b=[],T=t[0],A=2*Math.sqrt(e*e/3),L=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(A/1.4,L,1e-7)||L>A/1.4){var O=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],A,20),E=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],A,-20),x=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],A/1.4,0);b.push(T),b.push(O),b.push(x),b.push(E),b.push(T);var w=new SuperMap.Geometry.Point((b[0].x+b[1].x)/2,(b[0].y+b[1].y)/2),I=new SuperMap.Geometry.Point((b[3].x+b[4].x)/2,(b[3].y+b[4].y)/2),R=new SuperMap.Geometry.Point((w.x+I.x)/2,(w.y+I.y)/2),C=.75*SuperMap.Plot.PlottingUtil.distance(w,I)/2,_=SuperMap.Plot.PlottingUtil.findPointInLine(R,w,C),U=SuperMap.Plot.PlottingUtil.findPointInLine(R,I,C);n.push(b[0]),n.push(_),n.push(b[1]),n.push(b[2]),n.push(b[3]),n.push(U),n.push(b[4])}}return n},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,n){for(var i=e.length,l=[],r=0,a=0;a<t.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);var s=r*o;switch(n){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var u=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,90),p=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-90);l.push(u),l.push(p);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE:var c=new SuperMap.Geometry.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),y=SuperMap.Plot.PlottingUtil.distance(e[0],e[i-1]),P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(y*o,c,t[t.length-1]),h=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1,SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2,e[0],P,e[i-1],h,f);var S=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[0],P,h,S);var d=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[i-1],P,f,d);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var g=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,157.5),M=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-157.5);l.push(g),l.push(t[0]),l.push(M);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY:var m=new SuperMap.Geometry.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),v=SuperMap.Plot.PlottingUtil.distance(e[0],e[i-1]),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v*o,e[0],m);l.push(e[i-1]),l.push(b.pntLeft),l.push(e[0])}return l},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine=function(t,e,o){var n=[];switch(o){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var i=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),l=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-90);n.push(i),n.push(l);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var r=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,157.5),a=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-157.5);n.push(r),n.push(t[0]),n.push(a)}return n},SuperMap.Plot.ArrowToolkit.OperateCtrlPts=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3==e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,n=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,n),l=e[2].clone();e[2]=i,e.push(l)}return e},SuperMap.Plot.ArrowToolkit.generateMultiBezier=function(t,e,o,n){var i=0,l=[],r=[],a=[],s=[],u=[],p=[],c=o[0],y=o[1],P=(t[0].x+t[1].x)/2,h=(t[0].y+t[1].y)/2,f=Math.abs(P-t[2].x),S=Math.abs(h-t[2].y),d=0;if(f>0&&S>0){var g=1/(P-t[2].x),M=-1/(h-t[2].y),m=1*t[2].y/(h-t[2].y)-1*t[2].x/(P-t[2].x);d=Math.abs(g*t[0].x+M*t[0].y+m)/Math.sqrt(g*g+M*M)}else S<=1e-4?d=Math.abs(h-t[1].y):f<=1e-4&&(d=Math.abs(P-t[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[2],new SuperMap.Geometry.Point(P,h)),b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);b?(l[1]=t[1],r[1]=t[0]):(l[1]=t[0],r[1]=t[1]),t[1]=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var T=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,A=(i=T*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*y;SuperMap.Plot.PlottingUtil.equalFuzzy(c,0)||(A=(i=n*c)*y);var L,O,E=SuperMap.Plot.PlottingUtil.distance(t[e],t[e-1]),x=2*i;E<x&&(A=(i=E/2)*y),t.push(t[e]),L=0,O=0;var w=0,I=[];for(w=2;w<=e;w++)L+=SuperMap.Plot.PlottingUtil.distance(t[w],t[w-1]);for(L-=i,w=2;w<=e-1;w++)O+=SuperMap.Plot.PlottingUtil.distance(t[w],t[w-1]),I[w]=A+(T-A)*Math.pow((L-O)/L,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter);I[e]=A;var R,C,_=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0),N=new SuperMap.Geometry.Point(0,0);for(w=2;w<=e-1;w++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,t[w-1],t[w],t[w+1],U,N),w==e-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,t[e],t[e-1],N,_),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I[w],U,t[w]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(N,U,R.pntRight))?(l[w]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y),r[w]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y)):(l[w]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y),r[w]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y));for(Math.sqrt(1*(t[e].x-_.x)*(t[e].x-_.x)+1*(t[e].y-_.y)*(t[e].y-_.y))>0&&(t[e]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i,t[e],_)),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(A,t[e+1],t[e]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],R.pntLeft))?(r[e]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y),l[e]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y)):(r[e]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y),l[e]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y)),w=2;w<e;w++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,l[w-1],l[w],l[w+1],U,N),a[w]=new SuperMap.Geometry.Point(U.x,U.y),s[w]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[w-1],r[w],r[w+1],U,N),u[w]=new SuperMap.Geometry.Point(U.x,U.y),p[w]=new SuperMap.Geometry.Point(N.x,N.y),2==w&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,l[1],l[2],a[2],_),s[1]=new SuperMap.Geometry.Point(_.x,_.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],u[2],_),p[1]=new SuperMap.Geometry.Point(_.x,_.y)),w==e-1&&(x=(E=SuperMap.Plot.PlottingUtil.distance(l[e],l[e-1]))/3,(C=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(x,t[e],t[e+1])).x+=l[e].x-t[e].x,C.y+=l[e].y-t[e].y,x=(E=T-A)*Math.pow(x/L,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,l[e],C),a[e]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y),x=(E=SuperMap.Plot.PlottingUtil.distance(r[e],r[e-1]))/3,(C=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(x,t[e],t[e+1])).x+=r[e].x-t[e].x,C.y+=r[e].y-t[e].y,x=(E=T-A)*Math.pow(x/L,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,r[e],C),u[e]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y));return{arrowTouLen:i,leftBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,l,a,s),rightBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,r,u,p)}},SuperMap.Plot.ArrowToolkit.genArrowBody=function(t,e,o,n){var i=new SuperMap.Plot.Path2D;if(!(t<2)){i.MoveTo(e[1]);for(var l=1;l<=t-1;l++)i.CubicTo(n[l],o[l+1],e[l+1]);var r=[];return i.ToSubPathPolygons(r),r[0]}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Path2DData=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.cStart=e.cStart,this.fillRule=e.fillRule,this.require_StartNewFigure=e.require_StartNewFigure,this.isBoundsDirty=e.isBoundsDirty,this.bounds=new SuperMap.Bounds(e.bounds.left,e.bounds.bottom,e.bounds.right,e.bounds.top),this.ref=1,this.elements=[];for(var o=0;o<e.elements.length;o++)this.elements.push(e.elements[o].clone())}else this.ref=1,this.bounds=new SuperMap.Bounds(0,0,0,0),this.elements=[];this.CLASS_NAME="SuperMap.Plot.Path2DData"}return n(t,[{key:"IsClosed",value:function(){var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];return t.GetX()==e.GetX()&&t.GetY()==e.GetY()}},{key:"Close",value:function(){this.require_StartNewFigure=!0;var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];t!=e&&(t.Equal(e)?e.SetPosition(t.GetX(),t.GetY()):this.elements.push(new SuperMap.Plot.Element(t.GetX(),t.GetY(),SuperMap.Plot.ElementType.LineToElement)))}},{key:"MaybeStartNewFigure",value:function(){if(this.require_StartNewFigure){var t=this.elements[this.elements.length-1].clone();t.SetType(0),this.elements.push(t),this.require_StartNewFigure=!1}}}]),t}();SuperMap.Plot.Path2DData=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Element=function(){function t(e,o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_x=e,this.m_y=o,this.m_type=n,this.CLASS_NAME="SuperMap.Plot.Element"}return n(t,[{key:"GetX",value:function(){return this.m_x}},{key:"GetY",value:function(){return this.m_y}},{key:"GetType",value:function(){return this.m_type}},{key:"GetPosition",value:function(){return SuperMap.Geometry.Point(this.m_x,this.m_y)}},{key:"SetPosition",value:function(t,e){this.m_x=t,this.m_y=e}},{key:"SetType",value:function(t){this.m_type=t}},{key:"IsCurveTo",value:function(){return 2==this.m_type}},{key:"IsLineTo",value:function(){return 1==this.m_type}},{key:"IsMoveTo",value:function(){return 0==this.m_type}},{key:"Equal",value:function(t){return SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_x,t.m_x,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_y,t.m_y,1e-10)&&this.m_type==t.m_type}},{key:"clone",value:function(){return new SuperMap.Plot.Path2D.Element(this.m_x,this.m_y,this.m_type)}}]),t}();SuperMap.Plot.Element=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Path2D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_pData=null,this.CLASS_NAME="SuperMap.Plot.Path2D"}return n(t,[{key:"MoveTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.require_StartNewFigure=!1,0==e.elements[e.elements.length-1].GetType())e.elements[e.elements.length-1].SetPosition(t.x,t.y);else{var o=new SuperMap.Plot.Element(t.x,t.y,0);e.elements.push(o)}e.cStart=e.elements.length-1}},{key:"LineTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.MaybeStartNewFigure(),e.elements[e.elements.length-1].GetX()!=t.x||e.elements[e.elements.length-1].GetY()!=t.y){var o=new SuperMap.Plot.Element(t.x,t.y,1);e.elements.push(o)}}},{key:"CurveTo",value:function(t,e,o){this.ensureData(),this.detach();var n=this.getDataPtr();if(n.elements[n.elements.length-1].GetX()!=t.x||n.elements[n.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){n.MaybeStartNewFigure();var i=new SuperMap.Plot.Element(t.x,t.y,2),l=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);n.elements.push(i),n.elements.push(l),n.elements.push(r)}}},{key:"CubicTo",value:function(t,e,o){this.ensureData(),this.detach();var n=this.getDataPtr();if(n.elements[n.elements.length-1].GetX()!=t.x||n.elements[n.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){n.MaybeStartNewFigure();var i=new SuperMap.Plot.Element(t.x,t.y,2),l=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);n.elements.push(i),n.elements.push(l),n.elements.push(r)}}},{key:"ToSubPathPolygons",value:function(t){var e,o,n=this.getDataPtr();if(this.IsEmpty())return!1;for(var i=[],l=this.GetElementCount(),r=0;r<l;r++){var a=n.elements[r];switch(a.GetType()){case 0:i.length>1&&t.push(i),i=[],e=a.GetX(),o=a.GetY(),i.push(new SuperMap.Geometry.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),i.push(new SuperMap.Geometry.Point(e,o));break;case 2:if(3!=n.elements[r+1].GetType()||3!=n.elements[r+1].GetType())break;for(var s=n.elements[r-1].GetX(),u=n.elements[r-1].GetY(),p=a.GetX(),c=a.GetY(),y=n.elements[r+1].GetX(),P=n.elements[r+1].GetY(),h=n.elements[r+2].GetX(),f=n.elements[r+2].GetY(),S=0;S<=1;S+=.03125){var d=S*S,g=d*S,M=1-3*S+3*d-g,m=3*(S-2*d+g),v=3*(d-g),b=g;i.push(new SuperMap.Geometry.Point(M*s+m*p+v*y+b*h,M*u+m*c+v*P+b*f))}r+=2}}return i.length>1&&t.push(i),!0}},{key:"ensureData",value:function(){null==this.m_pData&&this.ensureData_helper()}},{key:"ensureData_helper",value:function(){var t=new SuperMap.Plot.Path2DData,e=new SuperMap.Plot.Element(0,0,0);t.elements.push(e),null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"detach",value:function(){1!=this.m_pData.ref&&this.detach_helper(),this.setBoundsDirty(!0)}},{key:"detach_helper",value:function(){var t=new SuperMap.Plot.Path2DData;null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"setBoundsDirty",value:function(t){this.getDataPtr().isBoundsDirty=t}},{key:"getDataPtr",value:function(){return this.m_pData}},{key:"IsEmpty",value:function(){if(null==this.m_pData)return!0;var t=this.m_pData.elements.length;return 0==t||1==t&&0==this.m_pData.elements[0].GetType()}},{key:"GetElementCount",value:function(){return null!=this.m_pData?this.m_pData.elements.length:0}}],[{key:"mtRef",value:function(t){return 0!=++t}},{key:"mtDeRef",value:function(t){return 0!=--t}}]),t}();SuperMap.Plot.Path2D=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol15200=e.AlgoSymbol315=e.AlgoSymbol1022=e.AlgoSymbol1021=e.AlgoSymbol1020=e.AlgoSymbol1019=e.AlgoSymbol1018=e.AlgoSymbol1017=e.AlgoSymbol1016=e.AlgoSymbol1015=e.AlgoSymbol1014=e.AlgoSymbol1013=e.AlgoSymbol1012=e.AlgoSymbol1011=e.AlgoSymbol1010=e.AlgoSymbol1009=e.AlgoSymbol1008=e.AlgoSymbol1007=e.AlgoSymbol1006=e.AlgoSymbol1005=e.AlgoSymbol1004=e.AlgoSymbol1003=e.AlgoSymbol1002=e.AlgoSymbol1001=e.Wire=e.PolygonRegion=e.LineRelation=e.LineMarking=e.PathText=e.CurveEight=e.Runway=e.NodeChain=e.FreeCurve=e.CombinationalCircle=e.ConcentricCircle=e.SymbolTextBox=e.GeoTooltipBoxM=e.GeoTooltipBox=e.Trapezoid=e.Brace=e.RegularPolygon=e.ArrowLine=e.AlgoSymbol=e.ArrowToolkit=e.Path2DData=e.Element=e.Path2D=void 0;var n=o(53),i=o(52),l=o(51),r=o(50),a=o(49),s=o(48),u=o(47),p=o(46),c=o(45),y=o(44),P=o(43),h=o(42),f=o(41),S=o(40),d=o(39),g=o(38),M=o(37),m=o(36),v=o(35),b=o(34),T=o(33),A=o(32),L=o(31),O=o(30),E=o(29),x=o(28),w=o(27),I=o(26),R=o(25),C=o(24),_=o(23),U=o(22),N=o(21),D=o(20),B=o(19),G=o(18),k=o(17),V=o(16),Y=o(15),F=o(14),j=o(13),z=o(12),W=o(11),H=o(10),q=o(9),J=o(8),X=o(7);e.Path2D=n.Path2D,e.Element=i.Element,e.Path2DData=l.Path2DData,e.ArrowToolkit=r.ArrowToolkit,e.AlgoSymbol=a.AlgoSymbol,e.ArrowLine=s.ArrowLine,e.RegularPolygon=u.RegularPolygon,e.Brace=p.Brace,e.Trapezoid=c.Trapezoid,e.GeoTooltipBox=y.GeoTooltipBox,e.GeoTooltipBoxM=P.GeoTooltipBoxM,e.SymbolTextBox=h.SymbolTextBox,e.ConcentricCircle=f.ConcentricCircle,e.CombinationalCircle=S.CombinationalCircle,e.FreeCurve=d.FreeCurve,e.NodeChain=g.NodeChain,e.Runway=M.Runway,e.CurveEight=m.CurveEight,e.PathText=v.PathText,e.LineMarking=b.LineMarking,e.LineRelation=T.LineRelation,e.PolygonRegion=A.PolygonRegion,e.Wire=L.Wire,e.AlgoSymbol1001=O.AlgoSymbol1001,e.AlgoSymbol1002=E.AlgoSymbol1002,e.AlgoSymbol1003=x.AlgoSymbol1003,e.AlgoSymbol1004=w.AlgoSymbol1004,e.AlgoSymbol1005=I.AlgoSymbol1005,e.AlgoSymbol1006=R.AlgoSymbol1006,e.AlgoSymbol1007=C.AlgoSymbol1007,e.AlgoSymbol1008=_.AlgoSymbol1008,e.AlgoSymbol1009=U.AlgoSymbol1009,e.AlgoSymbol1010=N.AlgoSymbol1010,e.AlgoSymbol1011=D.AlgoSymbol1011,e.AlgoSymbol1012=B.AlgoSymbol1012,e.AlgoSymbol1013=G.AlgoSymbol1013,e.AlgoSymbol1014=k.AlgoSymbol1014,e.AlgoSymbol1015=V.AlgoSymbol1015,e.AlgoSymbol1016=Y.AlgoSymbol1016,e.AlgoSymbol1017=F.AlgoSymbol1017,e.AlgoSymbol1018=j.AlgoSymbol1018,e.AlgoSymbol1019=z.AlgoSymbol1019,e.AlgoSymbol1020=W.AlgoSymbol1020,e.AlgoSymbol1021=H.AlgoSymbol1021,e.AlgoSymbol1022=q.AlgoSymbol1022,e.AlgoSymbol315=J.AlgoSymbol315,e.AlgoSymbol15200=X.AlgoSymbol15200},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=void 0;var n=o(3),i=o(6);e.BasicAlgoSymbolFactory=n.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=i.AlgoSymbolFactory},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AddPoint_WayType=SuperMap.Plot.AddPoint_WayType={UNKNOWN:0,POLYLINE:1,CURVE:2}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives||{};SuperMap.Plot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="会",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},expandingPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="展",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},volleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="齐",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},standbyPoint_Outer:function(t,e){var o=[],n=new SuperMap.Geometry.Point(0,0),i=new SuperMap.Geometry.Point(0,30);t||(t=90);var l=new Object;l.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,l.positionPoints=[];for(var r=t+10;r<170+t;r+=10){var a=SuperMap.Plot.PlottingUtil.findPoint(n,i,30,r);l.positionPoints.push(a)}l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(l);var s=l.positionPoints[l.positionPoints.length-1],u=l.positionPoints[l.positionPoints.length-2],p=SuperMap.Plot.PlottingUtil.findPoint(s,u,9,22.5),c=SuperMap.Plot.PlottingUtil.findPoint(s,u,9,-22.5),y=new Object;y.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,y.positionPoints=[],y.positionPoints.push(p),y.positionPoints.push(s.clone()),y.positionPoints.push(c),y.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(y);var P=new Object;P.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,P.positionPoints=[];for(var h=190+t;h<350+t;h+=10){var f=SuperMap.Plot.PlottingUtil.findPoint(n,i,30,h);P.positionPoints.push(f)}P.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(P);var S=P.positionPoints[P.positionPoints.length-1],d=P.positionPoints[P.positionPoints.length-2],g=SuperMap.Plot.PlottingUtil.findPoint(S,d,9,22.5),M=SuperMap.Plot.PlottingUtil.findPoint(S,d,9,-22.5),m=new Object;m.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,m.positionPoints=[],m.positionPoints.push(g),m.positionPoints.push(S.clone()),m.positionPoints.push(M),m.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(m);for(var v=0;v<o.length;v++)for(var b=0;b<o[v].positionPoints.length;b++){var T=e*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle(n,T,o[v].positionPoints[b])}return o},standbyPoint_Inner:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-20,0)),e.positionPoints.push(new SuperMap.Geometry.Point(20,10)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-10)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e);var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),o.positionPoints.push(new SuperMap.Geometry.Point(17,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o);var n=new Object;return n.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,n.positionPoints=[],n.positionPoints.push(new SuperMap.Geometry.Point(-2,1.5)),n.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),n.positionPoints.push(new SuperMap.Geometry.Point(-2,-1.5)),n.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(n),t},supplyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="补",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},takeoffPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-35)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},initialPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},visualInitalPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},lanchPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},turningPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},aimingPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},targetPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},eightSpiralPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t},happyValleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),e.positionPoints.push(new SuperMap.Geometry.Point(30,20)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var n=new Object;n.type=SuperMap.Plot.SymbolType.ARCSYMBOL,n.positionPoints=[],n.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),n.positionPoints.push(new SuperMap.Geometry.Point(-50,0)),n.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),n.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.ARCSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(30,20)),i.positionPoints.push(new SuperMap.Geometry.Point(50,0)),i.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t.push(n),t.push(i),t},attackPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,20)),o.positionPoints.push(new SuperMap.Geometry.Point(20,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-20,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},suppressPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fontSize:14};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,-15)),o.positionPoints.push(new SuperMap.Geometry.Point(-15,-15)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},getRouteNodeCells:function(t,e,o){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return this.rendezvousPoint();case SuperMap.Plot.RouteNodeType.EXPANDING:return this.expandingPoint();case SuperMap.Plot.RouteNodeType.VOLLEY:return this.volleyPoint();case SuperMap.Plot.RouteNodeType.STANDBY:return e?this.standbyPoint_Inner():this.standbyPoint_Outer(null,o);case SuperMap.Plot.RouteNodeType.SUPPLY:return this.supplyPoint();case SuperMap.Plot.RouteNodeType.TAKEOFF:return this.takeoffPoint();case SuperMap.Plot.RouteNodeType.INITIAL:return this.initialPoint();case SuperMap.Plot.RouteNodeType.VISUALINITAL:return this.visualInitalPoint();case SuperMap.Plot.RouteNodeType.LANCH:case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return this.lanchPoint();case SuperMap.Plot.RouteNodeType.TURNING:case SuperMap.Plot.RouteNodeType.COMMONROUTE:return this.turningPoint();case SuperMap.Plot.RouteNodeType.AIMING:return this.aimingPoint();case SuperMap.Plot.RouteNodeType.TARGET:return this.targetPoint();case SuperMap.Plot.RouteNodeType.ATTACK:return this.attackPoint();case SuperMap.Plot.RouteNodeType.SUPPRESS:return this.suppressPoint();case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return this.eightSpiralPoint();case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return this.happyValleyPoint();default:return[]}},getRouteNodeNameByType:function(t){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return"会合点";case SuperMap.Plot.RouteNodeType.EXPANDING:return"展开点";case SuperMap.Plot.RouteNodeType.VOLLEY:return"齐射点";case SuperMap.Plot.RouteNodeType.STANDBY:return"待机点";case SuperMap.Plot.RouteNodeType.SUPPLY:return"补给点";case SuperMap.Plot.RouteNodeType.TAKEOFF:return"起飞点";case SuperMap.Plot.RouteNodeType.INITIAL:return"初始点";case SuperMap.Plot.RouteNodeType.VISUALINITAL:return"可视化初始点";case SuperMap.Plot.RouteNodeType.LANCH:return"发射点";case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return"武器发射点";case SuperMap.Plot.RouteNodeType.TURNING:return"转弯点";case SuperMap.Plot.RouteNodeType.COMMONROUTE:return"普通航路点";case SuperMap.Plot.RouteNodeType.AIMING:return"目标瞄准点";case SuperMap.Plot.RouteNodeType.TARGET:return"目标点";case SuperMap.Plot.RouteNodeType.ATTACK:return"攻击点";case SuperMap.Plot.RouteNodeType.SUPPRESS:return"压制点";case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return"八字盘旋点";case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return"跑马圈点";default:return""}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Primitives=SuperMap.Plot.Primitives=SuperMap.Plot.Primitives||{};SuperMap.Plot.Primitives={nSegmentCount:72,initialize:function(t){t&&t.nSegmentCount&&(this.nSegmentCount=t.nSegmentCount)},polyline:function(t){return t},parallelline:function(t){if(t&&t.length>=3){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);SuperMap.Plot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var o=[],n=1;n<t.length;n++)o.push(t[n].clone());var i=SuperMap.Plot.PlottingUtil.parallel(o,e);return t[0].x=i[0].x,t[0].y=i[0].y,[o,i]}return[]},kidney:function(t,e){if(t){return e?this.getKendyShapePts(t):t}},bezier:function(t,e){if(t){var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},loopbezier:function(t,e){if(t){t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y||t.push(t[0]);var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},parallelogram:function(t){if(t&&t.length>=3){var e=t[0].x+(t[2].x-t[1].x),o=t[0].y+(t[2].y-t[1].y),n=new SuperMap.Geometry.Point(e,o),i=[];return i.push.apply(i,t),i.push(n),i.push(i[0]),i}},polygon:function(t){if(t&&t.length>2)return t},circle:function(t){if(t&&2===t.length){for(var e=t[0],o=t[1],n=[],i=Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)),l=360/this.nSegmentCount,r=0;r<this.nSegmentCount;r++){var a=(r*l+1)*Math.PI/180,s=new SuperMap.Geometry.Point(Math.cos(a)*i+e.x,Math.sin(a)*i+e.y);n[r]=s}return n}},rectangle:function(t){if(t&&2===t.length){var e=t[0],o=t[1],n=e.clone();return[n,new SuperMap.Geometry.Point(o.x,e.y),o.clone(),new SuperMap.Geometry.Point(e.x,o.y),n]}},sector:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,n=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(n.push(e.pntCenter),0!==n.length)return n}},lune:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,n=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==n.length)return n}},arc:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,n=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==n.length)return n}},ellipse:function(t,e,o,n,i){if(!0===o){if((!n||null==n)&&t&&t.length>=3&&(n=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])),(!i||null==i)&&t&&t.length>=3){var l=SuperMap.Plot.PlottingUtil.projectPoint(t[2],t[0],t[1]);i=SuperMap.Plot.PlottingUtil.distance(l,t[2])}}else i=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),n=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var r=2*Math.PI,a=r/this.nSegmentCount,s=this.getArcSpatialData(t[0],n,i,e,0,r,a);if(!0===o){var u=Math.sin(e),p=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-i*u,t[2].y=t[0].y+i*p):(t[2].x=t[0].x+i*u,t[2].y=t[0].y-i*p)}return s}},getArcSpatialData:function(t,e,o,n,i,l,r){var a=[];if(Math.abs(r)<1e-9)return a;for(;l<i;)l+=2*Math.PI;for(;l>i+2*Math.PI;)i+=2*Math.PI;var s=Math.cos(n)*e,u=Math.sin(n)*e,p=Math.cos(n)*o,c=Math.sin(n)*o,y=this.calcEllipseRadian(i,e,o),P=this.calcEllipseRadian(l,e,o);P-y<1e-5&&(P+=2*Math.PI);var h=Math.round(Math.abs((P-y)/r)+1);if(h<2)return a;for(var f=0;f<h-1;y+=r,f++){f===h-2&&(y=l);var S=t.x+s*Math.cos(y)-c*Math.sin(y),d=t.y+u*Math.cos(y)+p*Math.sin(y);a.push(new SuperMap.Geometry.Point(S,d))}return 0>a.length&&(a[a.length-1].x=t.x+s*Math.cos(P)-c*Math.sin(P),a[a.length-1].y=t.y+u*Math.cos(P)+p*Math.sin(P)),a},getArcInfo:function(t,e,o){var n={};n.pntCenter=new SuperMap.Geometry.Point(0,0),n.dRadius=0,n.dStartAngle=0,n.dEndAngle=0;var i=e.x-t.x,l=e.y-t.y;if(Math.abs(i)<1e-9){var r={},a={};r.x=(e.x+t.x)/2,r.y=(e.y+t.y)/2,a.x=(e.x+o.x)/2,a.y=(e.y+o.y)/2;var s=0;Math.abs(o.x-e.x)>=1e-9&&(s=(o.y-e.y)/(o.x-e.x)),n.pntCenter.y=r.y,Math.abs(s)<1e-9?n.pntCenter.x=a.x:n.pntCenter.x=a.x-s*(r.y-a.y)}else{var u={},p={};u.x=(e.x+t.x)/2,u.y=(e.y+t.y)/2,p.x=(e.x+o.x)/2,p.y=(e.y+o.y)/2;var c=l/i,y=1;Math.abs(c)<1e-9?(n.pntCenter.x=u.x,Math.abs(o.x-e.x<1e-9)?n.pntCenter.y=p.y:n.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(n.pntCenter.x-p.x)+p.y):Math.abs(o.x-e.x)<1e-9?(n.pntCenter.y=p.y,n.pntCenter.x=-c*(n.pntCenter.y-u.y)+u.x):(y=(o.y-e.y)/(o.x-e.x),n.pntCenter.x=(c*y*(u.y-p.y)+y*u.x-c*p.x)/(y-c),n.pntCenter.y=(p.x-u.x+y*p.y-c*u.y)/(y-c))}var P=Math.atan2(t.y-n.pntCenter.y,t.x-n.pntCenter.x),h=Math.atan2(o.y-n.pntCenter.y,o.x-n.pntCenter.x);if(SuperMap.Plot.PlottingUtil.isCounterClockwise(t,e,o)){for(;P>=2*Math.PI;)P-=2*Math.PI;for(;P<0;)P+=2*Math.PI;for(;h>2*Math.PI;)h-=2*Math.PI;for(;h<P;)h+=2*Math.PI}else{for(;h>=2*Math.PI;)h-=2*Math.PI;for(;h<0;)h+=2*Math.PI;for(;P>2*Math.PI;)P-=2*Math.PI;for(;h>P;)P+=2*Math.PI;var f=P;P=h,h=f}return n.dRadius=Math.sqrt((n.pntCenter.x-t.x)*(n.pntCenter.x-t.x)+(n.pntCenter.y-t.y)*(n.pntCenter.y-t.y)),n.dEndAngle=180*h/Math.PI,n.dStartAngle=180*P/Math.PI,n},calcEllipseRadian:function(t,e,o){var n=t,i=e*Math.sin(t),l=o*Math.cos(t),r=Math.atan2(i,l);if(t>Math.PI)for(;n>Math.PI;)n-=2*Math.PI,r+=2*Math.PI;else if(t<-Math.PI)for(;n<-Math.PI;)n+=2*Math.PI,r-=2*Math.PI;return r},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length)return e;var o=this.calcShapePoints(t);if(12!=o.length)return e;o.push(o[0]),o.push(o[1]),o.splice(0,1);for(var n=0;n<o.length-3;n+=3){var i;i=this.getBezierPtsWithScalePts(o[n],o[n+1],o[n+2],o[n+3]),e=e.concat(i)}return e},calcShapePoints:function(t){var e=[],o=[],n=t.length;if(0!==n){if(1!==n){if(2==n){var i=this.calcProtudeC3(t[0],t[1]);o.push(t[0]),o.push(t[1]),o.push(i)}else if(o.push(t[0]),o.push(t[1]),o.push(t[2]),(SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[2])||SuperMap.Plot.PlottingUtil.isSamePt(t[1],t[2]))&&(e.push(t[0]),e.push(t[1])),SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[1]))return e.push(t[0]),void e.push(t[2]);o=this.reNormalizeKidneyCtrlPoints(o);var l=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);l.x=.5*(o[0].x+o[1].x),l.y=.5*(o[0].y+o[1].y),r.x=l.x-.1*(o[2].x-l.x),r.y=l.y-.1*(o[2].y-l.y);var a=this.GetPtsByTriangle(3,0,o[1],o[0],r);e.push(a.pr),e.push(r),e.push(a.pl);var s=this.GetPtsByTriangle(4,2,o[2],o[0],o[1]);e.push(s.pr),e.push(o[1]),e.push(s.pl);var u=this.GetPtsByTriangle(2,0,o[0],o[1],o[2]);e.push(u.pr),e.push(o[2]),e.push(u.pl);var p=this.GetPtsByTriangle(4,1,o[1],o[2],o[0]);return e.push(p.pr),e.push(o[0]),e.push(p.pl),e}e.push(t[0])}},calcProtudeC3:function(t,e){var o,n=new SuperMap.Geometry.Point(0,0);return n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y),o=SuperMap.Plot.PlottingUtil.distance(e,t)/2.7,this.GetPointsOfNormal(o,t,n).pt3},GetPointsOfNormal:function(t,e,o){var n,i=new SuperMap.Geometry.Point(0,0),l=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);return 0==(n=SuperMap.Plot.PlottingUtil.distance(e,o))?(r.y=0,r.x=t):(r.x=t*(e.x-o.x)/n,r.y=t*(e.y-o.y)/n),i.x=-r.y+o.x,i.y=r.x+o.y,l.x=r.y+o.x,l.y=-r.x+o.y,{pt3:i,pt4:l}},reNormalizeKidneyCtrlPoints:function(t){var e=[];e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0));var o=t.length;if(o<2)return e;if(2==o)e[0]=t[0],e[1]=t[1],e[2]=this.calcProtudeC3(t[0],t[1]);else{var n,i,l,r=t[0],a=t[1],s=t[2];if(n=SuperMap.Plot.PlottingUtil.distance(a,r),i=SuperMap.Plot.PlottingUtil.distance(s,a),l=SuperMap.Plot.PlottingUtil.distance(r,s),i>=n&&i>=l){var u=r.clone();r=s.clone(),s=u.clone()}else if(l>=n&&l>=i){var p=s.clone();s=a.clone(),a=p.clone()}if(!SuperMap.Plot.PlottingUtil.isRight(s,r,a)){var c=r.clone();r=a.clone(),a=c.clone()}e[0]=r,e[1]=a,e[2]=s}return e},GetPtsByTriangle:function(t,e,o,n,i){var l=new SuperMap.Geometry.Point(0,0),r=0,a=0;return r=SuperMap.Plot.PlottingUtil.distance(i,o),a=SuperMap.Plot.PlottingUtil.distance(n,i),1==e&&(r*=2),2==e&&(a*=2),l.x=(r*n.x+a*o.x)/(r+a),l.y=(r*n.y+a*o.y)/(r+a),{pl:this.GetWhichPtOfNormal(t,o,l,i),pr:this.GetWhichPtOfNormal(t,n,l,i)}},GetWhichPtOfNormal:function(t,e,o,n){var i=0;i=SuperMap.Plot.PlottingUtil.distance(n,e)/t;var l=this.GetPointsOfNormal(i,o,n);return SuperMap.Plot.PlottingUtil.distance(e,l.pt4)>=(i=SuperMap.Plot.PlottingUtil.distance(e,l.pt3))?l.pt3:l.pt4},getBezierPtsWithScalePts:function(t,e,o,n){var i=[],l=t.x,r=t.y,a=e.x,s=e.y,u=o.x,p=o.y,c=n.x,y=n.y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(l,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,y,1e-10))i.push(new SuperMap.Geometry.Point(l,r)),i.push(new SuperMap.Geometry.Point(u,p));else for(var P=0;P<=1;P+=.03125){var h,f,S,d,g=P*P,M=g*P;h=1-3*P+3*g-M,f=3*(P-2*g+M),S=3*(g-M),d=M;var m=new SuperMap.Geometry.Point(h*l+f*a+S*u+d*c,h*r+f*s+S*p+d*y);i.push(m)}return i},getSpatialData:function(t,e,o,n){switch(null==n&&(n=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,n);case 590:return this.bezier(e,n);case 360:return this.loopbezier(e,n);case 28:return this.parallelogram(e);case 32:return this.polygon(e);case 29:return this.circle(e);case 26:return this.rectangle(e);case 380:return this.sector(e);case 370:return this.lune(e);case 44:return this.arc(e);case 31:return this.ellipse(e,o,n);case 48:return this.parallelline(e);default:return e}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.PlottingUtil=SuperMap.Plot.PlottingUtil=SuperMap.Plot.PlottingUtil||{};SuperMap.Plot.PlottingUtil.DEFAULT_PRECISION=14,SuperMap.Plot.PlottingUtil.DPI=96,SuperMap.Plot.PlottingUtil.RTOD=57.29577951308232,SuperMap.Plot.PlottingUtil.DTOR=.017453292519943295,SuperMap.Plot.PlottingUtil.dirAngle=function(t,e){var o,n,i,l;o=e.x,n=e.y,i=o-t.x,l=n-t.y;var r=Math.atan2(l,i);return r<0&&(r+=2*Math.PI),r},SuperMap.Plot.PlottingUtil.generateUuid=function(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")},SuperMap.Plot.PlottingUtil.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},SuperMap.Plot.PlottingUtil.colorRGBA=function(t,e){var o=t.substring(1,3),n=parseInt(o,16),i=t.substring(3,5),l=parseInt(i,16),r=t.substring(5);return"rgba("+n+","+l+","+parseInt(r,16)+","+e+")"},SuperMap.Plot.PlottingUtil.colorRGBToString=function(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var n=t.blue.toString(16);return n.length<2&&(n="0"+n),"#"+e+o+n},SuperMap.Plot.PlottingUtil.colorStringToRGB=function(t){var e={},o=t.substring(1,3);e.red=parseInt(o,16);var n=t.substring(3,5);e.green=parseInt(n,16);var i=t.substring(5);return e.blue=parseInt(i,16),e},SuperMap.Plot.PlottingUtil.decimalToHex=function(t){for(var e=t.toString(16);e.length<8;)e="0"+e;var o=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return{color:"#"+e.substring(6)+i+n,alpha:parseInt(o,16)/255}},SuperMap.Plot.PlottingUtil.hexToDecimal=function(t,e){var o=t.substring(1,3),n=t.substring(3,5),i=t.substring(5),l=parseInt(i+n+o,16),r=Math.round(255*e).toString(16);return parseInt(r+"000000",16)+l},SuperMap.Plot.PlottingUtil.getAlign=function(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":"lt"},SuperMap.Plot.PlottingUtil.trim=function(t){return null==t?"":t.replace(/(^\s*)|(\s*$)/g,"")},SuperMap.Plot.PlottingUtil.getTextWidth=function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var n=o.clientWidth,i=e.length;return void 0===t.fontSpace&&void 0===t.fontPercent||(0!==t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontSpace||void 0!==t.fontPercent?n=t.fontPercent/100*n+t.fontSpace*(t.fontPercent/100)*(i-1):0===t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontPercent?n=t.fontPercent/100*n:0!==t.fontSpace&&100===t.fontPercent&&void 0!==t.fontSpace&&(n+=t.fontSpace*(i-1))),document.body.removeChild(o),n},SuperMap.Plot.PlottingUtil.getTextCount=function(t){for(var e=0,o=0,n=0;n<t.length;n++)t.charCodeAt(n)>255?e++:o++;return e+o/2},SuperMap.Plot.PlottingUtil.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],i=0,l=e.length;i<l;i++)o.push(SuperMap.Plot.PlottingUtil.toJSON(e[i]));return"["+o.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":n(e))){if(e.length){for(var r=[],a=0,s=e.length;a<s;a++)r.push(SuperMap.Plot.PlottingUtil.toJSON(e[a]));return"["+r.join(",")+"]"}var u=[];for(var p in e)"function"!=typeof e[p]&&"CLASS_NAME"!==p&&"parent"!==p&&u.push('"'+p+'":'+SuperMap.Plot.PlottingUtil.toJSON(e[p]));return u.length>0?"{"+u.join(",")+"}":"{}"}return e.toString()}},SuperMap.Plot.PlottingUtil.copyFeature=function(t){var e=null;if(null!=t&&t.geometry){var o=t.geometry.clone();e=new SuperMap.Feature.Vector(o),t.style&&(e.style=SuperMap.Plot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMap.Plot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],n=[],i=0;i<t.length-1;i++){var l,r,a=[];if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].x,t[i+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].y,t[i+1].y)){a.push(t[i]),a.push(t[i+1]);var s=SuperMap.Plot.PlottingUtil.parallel(a,e);if(l=s[0],r=s[1],0!=o.length){var u=SuperMap.Plot.PlottingUtil.intersectLines(l,r,o[0],o[1]);if(u.isIntersectLines){var p=u.intersectPoint,c=SuperMap.Plot.PlottingUtil.distance(l,r);SuperMap.Plot.PlottingUtil.distance(p,r)>2*c?n.push(r):(n[n.length-1]=p,n.push(r))}else n.push(r)}else n.push(l),n.push(r);(o=[]).push(n[n.length-2]),o.push(n[n.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1<n.length){var y=SuperMap.Plot.PlottingUtil.intersectLines(n[0],n[1],n[n.length-2],n[n.length-1]);if(y.isIntersectLines){var P=y.intersectPoint;n[n.length-1]=P,n[0]=P}}return n},SuperMap.Plot.PlottingUtil.copyFontStyle=function(t,e){void 0===t.labelAlign&&void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),!0!==t.fontSizeLimit&&(void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontSpace&&(t.fontSpace=e.fontSpace),void 0!==e.fontPercent&&(t.fontPercent=e.fontPercent)),t.strokeWidth=e.strokeWidth},SuperMap.Plot.PlottingUtil.getDataFromServer=function(t,e,o,i,l,r,a,s){var u=void 0;if(void 0!==r&&(u=r),"undefined"!=typeof SuperMap&&void 0!==SuperMap.GetSymbolInfoService){var p=new SuperMap.GetSymbolInfoService(t);p.events.on({processCompleted:a,processFailed:s,scope:u});var c=new SuperMap.GetSymbolInfoParameters;c.libID=e,c.code=o,l&&SuperMap.Plot.PlottingUtil.extend(c,l),i&&null!=i&&(SuperMap.Plot.PlottingUtil.isArray(i)||(i=[i]),c.inputPoints=i),p.processAsync(c)}else if(void 0!==("undefined"==typeof SuperMap?"undefined":n(SuperMap))&&void 0!==n(SuperMap.REST)&&void 0!==n(SuperMap.REST.GetSymbolInfoService)){var y=new SuperMap.REST.GetSymbolInfoService(t);y.events.on({processCompleted:a,processFailed:s,scope:u});var P=new SuperMap.REST.GetSymbolInfoParameters;if(P.libID=e,P.code=o,l&&SuperMap.Plot.PlottingUtil.extend(P,l),i&&null!=i&&(SuperMap.Plot.PlottingUtil.isArray(i)||(i=[i]),P.inputPoints=i),l&&l.credential){var h=l.credential;y.processAsync(P,h)}else y.processAsync(P)}},SuperMap.Plot.PlottingUtil.innerOutlineDir=function(t){function e(t,e){function o(t){var e=Math.atan2(t.y,t.x);return e<0&&(e+=2*Math.PI),e}var n=o(e)-o(t);return n<-Math.PI&&(n+=2*Math.PI),n>Math.PI&&(n-=2*Math.PI),n}if(t.length<3)return 1;for(var o=0,n={x:0,y:0},i={x:0,y:0},l=2;l<t.length;l++)i.x=t[l].x-t[l-1].x,i.y=t[l].y-t[l-1].y,n.x=t[l-1].x-t[l-2].x,n.y=t[l-1].y-t[l-2].y,o+=e(n,i);return i.x=t[1].x-t[0].x,i.y=t[1].y-t[0].y,n.x=t[0].x-t[t.length-1].x,n.y=t[0].y-t[t.length-1].y,(o+=e(n,i))>=0?-1:1},SuperMap.Plot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMap.Plot.PlottingUtil.TORLERANCE_STATIC),t<e&&t>-e},SuperMap.Plot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMap.Plot.PlottingUtil.intersectLines=function(t,e,o,n){var i={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||o.x===n.x&&o.y===n.y)return i;var l=e.x-t.x,r=e.y-t.y,a=n.x-o.x,s=n.y-o.y,u=l*s-a*r;if(SuperMap.Plot.PlottingUtil.isNear(u))return i;var p=(l*(t.y-o.y)-r*(t.x-o.x))/u,c=new SuperMap.Geometry.Point(0,0);return c.x=p*a+o.x,c.y=p*s+o.y,i.isIntersectLines=!0,i.intersectPoint=c,i},SuperMap.Plot.PlottingUtil.getEnvelopePoints=function(t){function e(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(t[o].x!==e[o].x||t[o].y!==e[o].y)return!1;return!0}function o(t,e,o){for(var n=0;n<t.length;n++)if(t[n].containsPoint(e))return o.index=n,!0;return!1}function n(t,e,o){for(var n=t.components[0].components,i=new SuperMap.Geometry.Point(0,0),l=0;l<n.length-1;l++)if(SuperMap.Plot.PlottingUtil.intersectLineSegs(e,o,n[l],n[l+1],i))return i;return null}function i(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,.5))return e;for(var o=e[e.length-1],n=0;n<t.length;n++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].y,o.y,.5)){e=e.concat(t[n]),t.splice(n,1);var l=i(t,e);if(void 0!==l&&0!==l.length)return l}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length-1].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length-1].y,o.y,.5)){for(var r=t[n].length-1;r>=0;r--)e.push(t[n][r]);t.splice(n,1);var a=i(t,e);if(void 0!==a&&0!==a.length)return a}return e}if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var l=0;l<t.length;l++)for(var r=l+1;r<t.length;)e(t[l],t[r])?t.splice(r,1):r++;for(var a=[],s=0;s<t.length;s++)a.push(new SuperMap.Geometry.Polygon([new SuperMap.Geometry.LinearRing(t[s])]));for(var u=[],p=0;p<t.length;p++){var c=[],y=[],P=-1,h=-1,f=a.slice();f.splice(p,1);for(var S={},d=0;d<t[p].length;d++)if(o(f,t[p][d],S)){if(0!==y.length){var g=n(a[S.index],t[p][d-1],t[p][d]);g&&g!==t[p][d-1]&&g!==t[p][d]&&y.push(g),c.push(y),y=[]}}else{if(0===d&&(P=c.length),d===t[p].length-1&&(h=c.length),0===y.length&&void 0!==S.index){var M=n(a[S.index],t[p][d-1],t[p][d]);M&&M!==t[p][d-1]&&M!==t[p][d]&&y.push(M)}y.push(t[p][d].clone())}if(0!==y.length&&c.push(y),P<c.length&&h<c.length&&P!==h){for(var m=0;m<c[P].length;m++)c[h].push(c[P][m]);c.splice(P,1)}u=u.concat(c)}for(var v=[];0!==u.length;){var b=u[0];u.splice(0,1);var T=i(u,b);void 0!==T&&(b=T),b.length>2&&v.push(b)}return v},SuperMap.Plot.PlottingUtil.isRight=function(t,e,o){var n=e,i=o,l=e,r=t;return(i.x-n.x)*(r.y-l.y)-(r.x-l.x)*(i.y-n.y)<0},SuperMap.Plot.PlottingUtil.radian=function(t,e){var o,n,i=0;return o=e.x-t.x,n=e.y-t.y,(i=Math.atan2(n,o))<0&&(i+=2*Math.PI),i},SuperMap.Plot.PlottingUtil.findBisectorPoint=function(t,e,o,n){var i=SuperMap.Plot.PlottingUtil.radian(e,t),l=(i+SuperMap.Plot.PlottingUtil.radian(e,o))/2,r=Math.cos(l-i+Math.PI/2),a=n;SuperMap.Plot.PlottingUtil.isNear(r,.15)||(a=n/r);var s=e.x+a*Math.cos(l),u=e.y+a*Math.sin(l);return new SuperMap.Geometry.Point(s,u)},SuperMap.Plot.PlottingUtil.findPoint=function(t,e,o,n){if(t===e||Math.abs(o)<1e-18)return t;var i=SuperMap.Plot.PlottingUtil.radian(t,e)+n*Math.PI/180,l=t.x+o*Math.cos(i),r=t.y+o*Math.sin(i);return new SuperMap.Geometry.Point(l,r)},SuperMap.Plot.PlottingUtil.isSameQuadrant=function(t,e,o,n){var i=(e.x-t.x)*(n.x-o.x),l=(e.y-t.y)*(n.y-o.y);return!(Math.abs(i)<1e-18&&Math.abs(l)<1e-18)&&((i>0||Math.abs(i)<1e-18)&&(l>0||Math.abs(l)<1e-18))},SuperMap.Plot.PlottingUtil.isCross=function(t,e,o,n){var i=new SuperMap.Geometry.Point(0,0);return!(!SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,o,n,i)||i==t||i===e||i===o||i==n)},SuperMap.Plot.PlottingUtil.intersectLineSegs=function(t,e,o,n,i){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))return i.x=t.x,i.y=t.y,!1;if(SuperMap.Plot.PlottingUtil.equalFuzzy(o.x,n.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(o.y,n.y))return i.x=o.x,i.y=o.y,!1;var l=0,r=0;if(l=t.x>e.x?t.x:e.x,r=t.x<e.x?t.x:e.x,o.x-l>1e-16&&n.x-l>1e-16||o.x-r<-1e-16&&n.x-r<-1e-16)return!1;if(l=t.y>e.y?t.y:e.y,r=t.y<e.y?t.y:e.y,o.y-l>1e-16&&n.y-l>1e-16||o.y-r<-1e-16&&n.y-r<-1e-16)return!1;var a=e.x-t.x,s=e.y-t.y,u=n.x-o.x,p=n.y-o.y,c=t.x-o.x,y=t.y-o.y,P=a*p-u*s,h=P;if(Math.abs(a)>1e-18&&Math.abs(u)>1e-18&&(h/=a*u),Math.abs(h)<1e-18)return t===o?(i.x=t.x,i.y=t.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,n)):e===n?(i.x=e.x,i.y=e.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,n)):t===n?(i.x=t.x,i.y=t.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,n)):e===o&&(i.x=e.x,i.y=e.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,n));var f=(a*y-s*c)/P,S=(u*y-p*c)/P;return!(f<0&&(Math.abs(f*u)>1e-16||Math.abs(f*p)>1e-16))&&(!(f>1&&(Math.abs((f-1)*u)>1e-16||Math.abs((f-1)*p)>1e-16))&&(!(S<0&&(Math.abs(S*a)>1e-16||Math.abs(S*s)>1e-16))&&(!(S>1&&(Math.abs((S-1)*a)>1e-16||Math.abs((S-1)*s)>1e-16))&&(Math.abs(f)<1e-18?(i.x=o.x,i.y=o.y,!0):Math.abs(f-1)<1e-18?(i.x=n.x,i.y=n.y,!0):Math.abs(S)<1e-18?(i.x=t.x,i.y=t.y,!0):Math.abs(S-1)<1e-18?(i.x=e.x,i.y=e.y,!0):!(f<0&&(Math.abs(f*u)>1e-16||Math.abs(f*p)>1e-16))&&(!(f>1&&(Math.abs((f-1)*u)>1e-16||Math.abs((f-1)*p)>1e-16))&&(!(S<0&&(Math.abs(S*a)>1e-16||Math.abs(S*s)>1e-16))&&(!(S>1&&(Math.abs((S-1)*a)>1e-16||Math.abs((S-1)*s)>1e-16))&&(i.x=f*u+o.x,i.y=f*p+o.y,!0))))))))},SuperMap.Plot.PlottingUtil.parallel=function(t,e){var o=[],n=t.length;if(!t||null==t||t.length<2)return o;var i=!1;t.length>3&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&(i=!0),i?(o[0]=SuperMap.Plot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMap.Plot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var l=t[0],r=t[1],a=t[1],s=1;s<t.length-1;s++)if(r=t[s],t[s]!==t[s-1]&&(l=t[s-1]),t[s]!==t[s+1]){a=t[s+1];var u=SuperMap.Plot.PlottingUtil.findBisectorPoint(l,r,a,e);SuperMap.Plot.PlottingUtil.isCross(l,o[s-1],r,u)&&(u=o[s-1]),o[s]=u}else{for(var p=s;p<n-1;){if(t[p]!==t[p+1]){a=t[p+1];break}p++}if(p<n-1){var c=SuperMap.Plot.PlottingUtil.FindBisectorPoint(l,r,a,e);for(SuperMap.Plot.PlottingUtil.isCross(l,o[s-1],r,c)&&(c=o[s-1]);s<p;)o[s]=c,s++;s=p-1}}return o},SuperMap.Plot.PlottingUtil.distance=function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},SuperMap.Plot.PlottingUtil.projectPoint=function(t,e,o){if(e===o)return e;var n=new SuperMap.Geometry.Point(0,0),i=o.x-e.x,l=e.y-o.y,r=i*i,a=l*l,s=i*l,u=i*i+l*l;return n.x=(s*(e.y-t.y)+e.x*a+t.x*r)/u,n.y=(s*(e.x-t.x)+e.y*r+t.y*a)/u,n},SuperMap.Plot.PlottingUtil.pointToLineDis=function(t,e,o){var n=SuperMap.Plot.PlottingUtil.projectPoint(t,e,o);return SuperMap.Plot.PlottingUtil.distance(t,n)},SuperMap.Plot.PlottingUtil.pointToPloyLineDis=function(t,e,o){if(e===o)return SuperMap.Plot.PlottingUtil.distance(t,e);var n=(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y),i=(o.x-t.x)*(o.x-t.x)+(o.y-t.y)*(o.y-t.y),l=(e.x-o.x)*(e.x-o.x)+(e.y-o.y)*(e.y-o.y),r=(n+l-i)/(2*l);r<0?r=0:r>1&&(r=1);var a=(o.x-e.x)*r+e.x,s=(o.y-e.y)*r+e.y,u=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(u)},SuperMap.Plot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMap.Plot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o<e-1;)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].y,t[o+1].y)?(t.splice(o,1),e--):o++;return t},SuperMap.Plot.PlottingUtil.getBeizerCtrlPt=function(t){var e=[],o=t.length;if(o<3)for(var n=0;n<o;++n)e[n]=t[n].clone();else{for(var i=0,l=0;l<3*o-2;l+=3)e[l]=t[i].clone(),e[l+1]=new SuperMap.Geometry.Point(0,0),e[l+2]=new SuperMap.Geometry.Point(0,0),i++;for(var r=1;r<o-1;r++)SuperMap.Plot.PlottingUtil.getTrianglePoints(8,3,t[r-1],t[r],t[r+1],e[3*r-1],e[3*r+1]);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[0],e[3],e[2],e[1]),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[3*o-3],e[3*o-6],e[3*o-5],e[3*o-4]),e[3*o-1]=e[3*o-2]=t[o-1].clone()}return e},SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);var n=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(o);return SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)},SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,o=[];if(t.length<3)for(var n=0;n<e;n++)o[n]=t[n].clone();else{e/=3;for(var i=0;i<3*e&&!(i+4>=3*e);i+=3){var l=t[i].x,r=t[i].y,a=t[i+1].x,s=t[i+1].y,u=t[i+2].x,p=t[i+2].y,c=t[i+3].x,y=t[i+3].y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(l,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,y,1e-10))o.push(new SuperMap.Geometry.Point(l,r)),o.push(new SuperMap.Geometry.Point(u,p));else for(var P=0;P<=1;P+=.03125){var h,f,S,d,g=P*P,M=g*P;h=1-3*P+3*g-M,f=3*(P-2*g+M),S=3*(g-M),d=M;var m=new SuperMap.Geometry.Point(h*l+f*a+S*u+d*c,h*r+f*s+S*p+d*y);o.push(m)}}}return o},SuperMap.Plot.PlottingUtil.computeBeizerPoints=function(t,e,o){var n=SuperMap.Plot.PlottingUtil.polylineDistance(e),i=[],l=[],r=[];if(t){l.push(e[0]);var a=o[0],s=o[1],u=e[0].x+n*a,p=e[0].y+n*s;l.push(new SuperMap.Geometry.Point(u,p)),i.push(new SuperMap.Geometry.Point(u,p));for(var c=1;c<e.length-1;c++){var y=o[4*c-2],P=o[4*c-1],h=e[c].x+n*y,f=e[c].y+n*P;l.push(new SuperMap.Geometry.Point(h,f)),i.push(new SuperMap.Geometry.Point(h,f)),l.push(new SuperMap.Geometry.Point(e[c].x,e[c].y)),y=o[4*c],P=o[4*c+1],h=e[c].x+n*y,f=e[c].y+n*P,l.push(new SuperMap.Geometry.Point(h,f)),i.push(new SuperMap.Geometry.Point(h,f))}var S=e.length-1;a=o[4*S-2],s=o[4*S-1],u=e[S].x+n*a,p=e[S].y+n*s,l.push(new SuperMap.Geometry.Point(u,p)),i.push(new SuperMap.Geometry.Point(u,p)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}else{o=[];var d=(l=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[1].x-l[0].x,g=l[1].y-l[0].y,M=d/n,m=g/n;o.push(M),o.push(m),i.push(l[1]);for(var v=1;v<e.length-1;v++){var b=(l[3*v-1].x-l[3*v].x)/n,T=(l[3*v-1].y-l[3*v].y)/n;o.push(b),o.push(T),i.push(l[3*v-1]);var A=(l[3*v+1].x-l[3*v].x)/n,L=(l[3*v+1].y-l[3*v].y)/n;o.push(A),o.push(L),i.push(l[3*v+1])}M=(d=l[3*(e.length-1)-1].x-l[3*(e.length-1)].x)/n,m=(g=l[3*(e.length-1)-1].y-l[3*(e.length-1)].y)/n,o.push(M),o.push(m),i.push(l[3*(e.length-1)-1]),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}return{scalePoints:i,scaleValues:o,beizerPoints:r}},SuperMap.Plot.PlottingUtil.getTrianglePoints=function(t,e,o,n,i,l,r){var a=o.x,s=o.y,u=n.x,p=n.y,c=i.x,y=i.y;SuperMap.Plot.PlottingUtil.getPointsByTriangle(t,e,a,s,u,p,c,y,l,r)},SuperMap.Plot.PlottingUtil.getPointsByTriangle=function(t,e,o,n,i,l,r,a,s,u){var p=i+(r-o),c=l+(a-n),y=0,P=0;if(o==r)y=o,P=c;else if(n==a)y=p,P=n;else{var h=1*(a-n)/(r-o),f=n-o*h;P=h*(y=(c+p/h-f)/(h+1/h))+f}var S=Math.sqrt(1*(i-p)*(i-p)+1*(l-c)*(l-c)),d=Math.sqrt(1*(o-i)*(o-i)+1*(n-l)*(n-l)),g=Math.sqrt(1*(i-r)*(i-r)+1*(l-a)*(l-a)),M=0;p=y+(p-y)*(M=d+g?1+(g-d)*t/(g+d):1),c=P+(c-P)*M,0==S&&(S=1),s.x=i+(i-p)*d/(e*S),s.y=l+(l-c)*d/(e*S),u.x=i+(p-i)*g/(e*S),u.y=l+(c-l)*g/(e*S)},SuperMap.Plot.PlottingUtil.getTrapezoidPoints=function(t,e,o,n,i){var l=e.x,r=e.y,a=o.x,s=o.y,u=n.x,p=n.y;return SuperMap.Plot.PlottingUtil.getPointsByTrapezoid(t,l,r,a,s,u,p,i)},SuperMap.Plot.PlottingUtil.getPointsByTrapezoid=function(t,e,o,n,i,l,r,a){var s=0,u=0,p=0,c=0;if(0==Math.abs(o-i))s=e+n-l,u=r;else if(0==Math.abs(e-n))s=l,u=o+i-r;else{var y=1*(o-i)/(e-n),P=r-y*l;u=y*(s=((i+o)/2+(e+n)/(2*y)-P)/(y+1/y))+P,s=2*s-l,u=2*u-r}var h=Math.sqrt(1*(e-n)*(e-n)+1*(o-i)*(o-i)),f=Math.sqrt(1*(e-s)*(e-s)+1*(o-u)*(o-u));return h>0?(p=e+(n-e)*f/h,c=o+(i-o)*f/h):(p=e,c=o),a.x=p+(s-p)*t,a.y=c+(u-c)*t,a},SuperMap.Plot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,o.y))return!0;var n=t.x-e.x,i=t.y-e.y,l=t.x-o.x,r=t.y-o.y,a=(n*l+i*r)/(Math.sqrt(n*n+i*i)*Math.sqrt(l*l+r*r));return!!SuperMap.Plot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMap.Plot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var o=!1,n=-1,i=0;i<e.length-1;i++)if(o=SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(t,e[i],e[i+1])){n=i;break}return{isOnPolyLine:o,index:n}},SuperMap.Plot.PlottingUtil.computePointToLineMinDis=function(t,e){for(var o=-1,n=-1,i=0;i<e.length-1;i++){var l=e[i],r=e[i+1],a=SuperMap.Plot.PlottingUtil.projectPoint(t,l,r);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(a,l,r)){var s=SuperMap.Plot.PlottingUtil.distance(t,a);o<0?(o=s,n&&(n=i)):o>s&&(o=s,n=i)}}return n&&o<0&&(n=-1),{minDis:o,index:n}},SuperMap.Plot.PlottingUtil.findPointInLine=function(t,e,o){if(t===e||Math.abs(o)<1e-18)return t;var n=e.x-t.x,i=e.y-t.y,l=o/Math.sqrt(n*n+i*i),r=t.x+n*l,a=t.y+i*l;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var n=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],n),e.push(n)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var i=e[0];e[0]=e[1],e[1]=i}if(!SuperMap.Plot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var l=e[2];e[2]=e[3],e[3]=l}return e},SuperMap.Plot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMap.Plot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var n=new SuperMap.Geometry.Point(.5*(e.x+t.x),.5*(e.y+t.y)),i=new SuperMap.Geometry.Point(e.x-t.x,e.y-t.y),l=new SuperMap.Geometry.Point(o.x-n.x,o.y-n.y);return i.x*l.x+i.y*l.y>0},SuperMap.Plot.PlottingUtil.linePnt=function(t,e,o){var n=SuperMap.Plot.PlottingUtil.distance(t,e);if(0==n)return t;var i=o/n;return SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(i,t,e)},SuperMap.Plot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var n=new SuperMap.Geometry.Point(0,0);return n.x=e.x+(o.x-e.x)*t,n.y=e.y+(o.y-e.y)*t,n},SuperMap.Plot.PlottingUtil.rotateAngle=function(t,e,o){var n=e,i=Math.cos(n),l=Math.sin(n),r=o.x-t.x,a=o.y-t.y;return o.x=r*i-a*l+t.x,o.y=r*l+a*i+t.y,o},SuperMap.Plot.PlottingUtil.resize=function(t,e,o){return o.x=t.x+e*(o.x-t.x),o.y=t.y+e*(o.y-t.y),o},SuperMap.Plot.PlottingUtil.findPointInPolyLine=function(t,e){if(e<0||t.length<2)return{index:-1,pt:null};if(Math.abs(e)<1e-18)return{index:0,pt:t[0]};for(var o=0,n=0;n<t.length-1;n++)if((o+=SuperMap.Plot.PlottingUtil.distance(t[n],t[n+1]))>e||SuperMap.Plot.PlottingUtil.equalFuzzy(o,e)){var i=o-e,l=t[n+1],r=t[n],a=i/SuperMap.Plot.PlottingUtil.distance(l,r),s=new SuperMap.Geometry.Point(0,0);return s.x=l.x+(r.x-l.x)*a,s.y=l.y+(r.y-l.y)*a,{index:n,pt:s}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);return e},SuperMap.Plot.PlottingUtil.rotate=function(t,e,o,n){var i=n.x-t.x,l=n.y-t.y,r=i*e-l*o+t.x,a=i*o+l*e+t.y;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale=function(t,e,o){var n=e.x,i=e.y,l=o.x,r=o.y,a=Math.sqrt(1*(n-l)*(n-l)+1*(i-r)*(i-r)),s=0,u=0;return 0==a?(s=n,u=i):(s=n+(l-n)*t/a,u=i+(r-i)*t/a),new SuperMap.Geometry.Point(s,u)},SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale=function(t,e,o){var n=e.x,i=e.y,l=o.x,r=o.y,a=0,s=0,u=Math.sqrt(1*(n-l)*(n-l)+1*(i-r)*(i-r));return 0===u?(a=n,s=i):(a=n+(n-l)*t/u,s=i+(i-r)*t/u),new SuperMap.Geometry.Point(a,s)},SuperMap.Plot.PlottingUtil.getSidePointsOfLine=function(t,e,o){var n=e.x,i=e.y,l=o.x,r=o.y,a=Math.sqrt(1*(n-l)*(n-l)+1*(i-r)*(i-r)),s=0,u=0;0==a?(u=0,s=t):(s=t*(n-l)/a,u=t*(i-r)/a);var p=-u+l,c=+s+r,y=+u+l,P=-s+r;return{pntLeft:new SuperMap.Geometry.Point(y,P),pntRight:new SuperMap.Geometry.Point(p,c)}},SuperMap.Plot.PlottingUtil.pointProjectToSegment=function(t,e,o){var n=0,i=0,l=0,r=1,a=void 0,s=void 0;if(i=e.x!==t.x?(e.y-t.y)/(e.x-t.x):1.7976931348623157e308,l=o.x!==t.x?(o.y-t.y)/(o.x-t.x):1.7976931348623157e308,n=o.y!==e.y?(o.x-e.x)/(e.y-o.y):1.7976931348623157e308,(a=e.x>=t.x&&e.y>=t.y?1:e.x<t.x&&e.y>t.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(s=o.x>t.x&&o.y>t.y?1:o.x<t.x&&o.y>t.y?2:o.x<t.x&&o.y<t.y?3:4))(i<n&&l<n||i>n&&l>n)&&(r=0);else switch(a){case 1:(4==s&&i<n||2==s&&i>n)&&(r=0);break;case 2:(1==s&&i<n||3==s&&i>n)&&(r=0);break;case 3:(2==s&&i<n||4==s&&i>n)&&(r=0);break;case 4:(3==s&&i<n||1==s&&i>n)&&(r=0)}var u=new SuperMap.Geometry.Point(0,0);return SuperMap.Plot.PlottingUtil.equalFuzzy(n-1.7976931348623157e308,0)?(u.x=t.x,u.y=e.y):SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)?(u.x=e.x,u.y=t.y):(u.x=(n*(e.y-t.y)+n*n*t.x+e.x)/(n*n+1),u.y=t.y+n*(u.x-t.x)),{isOnline:1===r,projectPoint:u}},SuperMap.Plot.PlottingUtil.coordinateTrans=function(t,e,o){var n=SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(0,0),e),i=SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(0,0),e)+o*Math.PI/180,l=n*Math.cos(i)+t.x,r=n*Math.sin(i)+t.y;return new SuperMap.Geometry.Point(l,r)},SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,o){var n=void 0,i=void 0,l=(o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y),r=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),a=Math.sqrt((t.x-o.x)*(t.x-o.x)+(t.y-o.y)*(t.y-o.y));if(0==a||0==r)n=0,i=0;else if(0==l)n=r,i=0;else{var s=(r*r+a*a-l)/2/r/a,u=0;s>=1?(s=1,u=0):u=Math.sqrt(1-s*s),n=a*s,i=a*u}return{dLen1:n,dLen2:i}},SuperMap.Plot.PlottingUtil.paraLine=function(t,e,o){var n=[];if(2>t.length)return n;if(o){var i=t[1].clone();i=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],Math.PI/2,i),n.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],i,e));for(var l=1;l<t.length-1;l++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].x,t[l+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].y,t[l+1].y)){for(var r=SuperMap.Plot.PlottingUtil.radian(t[l],t[l+1]),a=SuperMap.Plot.PlottingUtil.radian(t[l],t[l-1])-r;a<0;)a+=2*Math.PI;var s=a/2,u=void 0;u=s>Math.PI/2?s-Math.PI/2:Math.PI/2-s;var p=e/Math.cos(u);i=t[l+1].clone(),i=SuperMap.Plot.PlottingUtil.rotateAngle(t[l],s,i),n.push(SuperMap.Plot.PlottingUtil.linePnt(t[l],i,p))}i=t[t.length-2].clone(),i=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,i),n.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],i,e))}else{var c=t[1].clone();c=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,c),n.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],c,e));for(var y=1;y<t.length-1;y++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[y].x,t[y+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[y].y,t[y+1].y)){for(var P=SuperMap.Plot.PlottingUtil.radian(t[y],t[y+1]),h=SuperMap.Plot.PlottingUtil.radian(t[y],t[y-1])-P;h<0;)h+=2*Math.PI;var f=Math.PI-h/2,S=void 0;S=f>Math.PI/2?f-Math.PI/2:Math.PI/2-f;var d=e/Math.cos(S);c=t[y-1].clone(),c=SuperMap.Plot.PlottingUtil.rotateAngle(t[y],f,c),n.push(SuperMap.Plot.PlottingUtil.linePnt(t[y],c,d))}c=t[t.length-2].clone(),c=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,c),n.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],c,e))}return n},SuperMap.Plot.PlottingUtil.circlePoint=function(t,e,o,n){n*=Math.PI/180;var i=t.x+e*Math.cos(n),l=t.y+o*Math.sin(n);return new SuperMap.Geometry.Point(i,l)},SuperMap.Plot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,o=0,n=0;n<t.length;n++)e+=t[n].x,o+=t[n].y;return new SuperMap.Geometry.Point(e/t.length,o/t.length)},SuperMap.Plot.PlottingUtil.ptIsInPolygon=function(t,e){if(!t||0===t.length)return!1;for(var o=0,n=t.length,i=0;i<n;i++){var l=t[i],r=t[(i+1)%n];if(l.y!==r.y){var a=l.y<r.y?l.y:r.y,s=l.y>r.y?l.y:r.y;if(!(e.y<a||e.y>s))(e.y-l.y)*(r.x-l.x)/(r.y-l.y)+l.x>e.x&&o++}}return o%2==1},SuperMap.Plot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var o=0;o<e.length-1;o++){var n=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e[o],e[o+1]);if(n.isOnline)return{index:o,pt:n.projectPoint}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.isPloyClockwise=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length;if(!(o<3)){var n=e[0].y*(e[o-1].x-e[1].x);e.push(e[0].clone());for(var i=1;i<o;++i)n+=e[i].y*(e[i-1].x-e[i+1].x);return n>0?0:1}},SuperMap.Plot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMap.Plot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMap.Plot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.x<e.right&&t.y<e.top&&t.y>e.bottom},SuperMap.Plot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var n=SuperMap.Plot.PlottingUtil.distance(t,e),i=SuperMap.Plot.PlottingUtil.distance(t,o),l=SuperMap.Plot.PlottingUtil.distance(e,o),r=(n*n+i*i-l*l)/(2*n*i);return r>1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,1)?r=1:r<1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,-1)&&(r=-1),Math.acos(r)},SuperMap.Plot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMap.Plot.PlottingUtil.distance(t,e)*Math.sin(SuperMap.Plot.PlottingUtil.InnerAngle(e,t,o))},SuperMap.Plot.PlottingUtil.paraPolygon=function(t,e,o){var n=[],i=SuperMap.Plot.PlottingUtil.clonePoints(t),l=i.length;if(l<2)return n;var r=new SuperMap.Geometry.Point(0,0);if(o){if(l<3)r=i[1].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[0],Math.PI,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,e));else{for(var a=SuperMap.Plot.PlottingUtil.radian(i[0],i[1]),s=SuperMap.Plot.PlottingUtil.radian(i[0],i[i.length-1])-a;s<0;)s+=2*Math.PI;var u=s/2,p=void 0;p=u>Math.PI/2?u-Math.PI/2:Math.PI/2-u;var c=e/Math.cos(p);r=i[1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[0],u,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,c))}for(var y=1;y<l-1;y++){for(var P=SuperMap.Plot.PlottingUtil.radian(i[y],i[y+1]),h=SuperMap.Plot.PlottingUtil.radian(i[y],i[y-1])-P;h<0;)h+=2*Math.PI;var f=h/2,S=void 0;S=f>Math.PI/2?f-Math.PI/2:Math.PI/2-f;var d=e/Math.cos(S);r=i[y+1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[y],f,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[y],r,d))}if(l<3)r=i[l-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[l-1],0,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l-1],r,e));else{for(var g=SuperMap.Plot.PlottingUtil.radian(i[l-1],i[0]),M=SuperMap.Plot.PlottingUtil.radian(i[l-1],i[l-2])-g;M<0;)M+=2*Math.PI;var m=M/2,v=void 0;v=m>Math.PI/2?m-Math.PI/2:Math.PI/2-m;var b=e/Math.cos(v);r=i[0].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[l-1],m,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l-1],r,b))}}else{if(l<3){var T=i[1].clone();SuperMap.Plot.PlottingUtil.rotateAngle(i[0],0,T),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],T,e))}else{for(var A=SuperMap.Plot.PlottingUtil.radian(i[0],i[1]),L=SuperMap.Plot.PlottingUtil.radian(i[0],i[l-1])-A;L<0;)L+=2*Math.PI;var O=Math.PI-L/2,E=void 0;E=O>Math.PI/2?O-Math.PI/2:Math.PI/2-O;var x=e/Math.cos(E);r=i[l-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[0],O,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,x))}for(var w=1;w<l-1;w++){for(var I=SuperMap.Plot.PlottingUtil.radian(i[w],i[w+1]),R=SuperMap.Plot.PlottingUtil.radian(i[w],i[w-1])-I;R<0;)R+=2*Math.PI;var C=Math.PI-R/2,_=void 0;_=C>Math.PI/2?C-Math.PI/2:Math.PI/2-C;var U=e/Math.cos(_);r=i[w-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[w],C,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[w],r,U))}if(l<3)r=i[l-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[l-1],Math.PI,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l-1],r,e));else{for(var N=SuperMap.Plot.PlottingUtil.radian(i[l-1],i[0]),D=SuperMap.Plot.PlottingUtil.radian(i[l-1],i[l-2])-N;D<0;)D+=2*Math.PI;var B=Math.PI-D/2,G=void 0;G=B>Math.PI/2?B-Math.PI/2:Math.PI/2-B;var k=e/Math.cos(G);r=i[l-2].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[l-1],B,r),n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l-1],r,k))}}return n},SuperMap.Plot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,o=t[0].x,n=t[0].y,i=t[0].y,l=1;l<t.length;l++)e<t[l].x&&(e=t[l].x),o>t[l].x&&(o=t[l].x),n<t[l].y&&(n=t[l].y),i>t[l].y&&(i=t[l].y);return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e,n),new SuperMap.Geometry.Point(o,i))},SuperMap.Plot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var o=0;o<t.length;o++)void 0!==t[o]&&null!==t[o]&&e.push(t[o].clone());return e},SuperMap.Plot.PlottingUtil.extend=function(t,e){if("function"==typeof SuperMap.Util.extend)return SuperMap.Util.extend(t,e);if(t=t||{},e){for(var o in e){var n=e[o];void 0!==n&&(t[o]=n)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},SuperMap.Plot.PlottingUtil.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},SuperMap.Plot.PlottingUtil.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,n=t.length;o<n;o++)if(t[o]===e)return o;return-1},SuperMap.Plot.PlottingUtil.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var n=e[o];void 0!==n&&"CLASS_NAME"!==o&&"function"!=typeof n&&(t[o]=n)}return t},SuperMap.Plot.PlottingUtil.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":n(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=SuperMap.Plot.PlottingUtil.cloneObject(t[i]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},SuperMap.Plot.PlottingUtil.rad=function(t){return t*Math.PI/180},SuperMap.Plot.PlottingUtil.deg=function(t){return 180*t/Math.PI},SuperMap.Plot.PlottingUtil.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563},SuperMap.Plot.PlottingUtil.distVincenty=function(t,e){var o,n,i,l=SuperMap.Plot.PlottingUtil.VincentyConstants,r=l.a,a=l.b,s=l.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng&&e instanceof L.LatLng?(o=SuperMap.Plot.PlottingUtil.rad(e.lng-t.lng),n=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))):(o=SuperMap.Plot.PlottingUtil.rad(e.lon-t.lon),n=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat))));for(var u=Math.sin(n),p=Math.cos(n),c=Math.sin(i),y=Math.cos(i),P=o,h=2*Math.PI,f=20;Math.abs(P-h)>1e-12&&--f>0;){var S=Math.sin(P),d=Math.cos(P),g=Math.sqrt(y*S*(y*S)+(p*c-u*y*d)*(p*c-u*y*d));if(0==g)return 0;var M=u*c+p*y*d,m=Math.atan2(g,M),v=Math.asin(p*y*S/g),b=Math.cos(v)*Math.cos(v),T=M-2*u*c/b,A=s/16*b*(4+s*(4-3*b));h=P,P=o+(1-A)*s*Math.sin(v)*(m+A*g*(T+A*M*(2*T*T-1)))}if(0==f)return NaN;var O=b*(r*r-a*a)/(a*a),E=O/1024*(256+O*(O*(74-47*O)-128));return(a*(1+O/16384*(4096+O*(O*(320-175*O)-768)))*(m-E*g*(T+E/4*(M*(2*T*T-1)-E/6*T*(4*g*g-3)*(4*T*T-3))))).toFixed(3)/1e3},SuperMap.Plot.PlottingUtil.destinationVincenty=function(t,e,o){var n,i,l=SuperMap.Plot.PlottingUtil,r=l.VincentyConstants,a=r.a,s=r.b,u=r.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(n=t.lng,i=t.lat):(n=t.lon,i=t.lat);for(var p=o,c=l.rad(e),y=Math.sin(c),P=Math.cos(c),h=(1-u)*Math.tan(l.rad(i)),f=1/Math.sqrt(1+h*h),S=h*f,d=Math.atan2(h,P),g=f*y,M=1-g*g,m=M*(a*a-s*s)/(s*s),v=1+m/16384*(4096+m*(m*(320-175*m)-768)),b=m/1024*(256+m*(m*(74-47*m)-128)),T=p/(s*v),A=2*Math.PI;Math.abs(T-A)>1e-12;){var O=Math.cos(2*d+T),E=Math.sin(T),x=Math.cos(T);A=T,T=p/(s*v)+b*E*(O+b/4*(x*(2*O*O-1)-b/6*O*(4*E*E-3)*(4*O*O-3)))}var w=S*E-f*x*P,I=Math.atan2(S*x+f*E*P,(1-u)*Math.sqrt(g*g+w*w)),R=u/16*M*(4+u*(4-3*M)),C=Math.atan2(E*y,f*x-S*E*P)-(1-R)*u*g*(T+R*E*(O+R*x*(2*O*O-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(l.deg(I),n+l.deg(C)):new SuperMap.LonLat(n+l.deg(C),l.deg(I))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol||{};SuperMap.Plot.AnalysisSymbol.analysisBasicInfo=function(t){var e=new Object;return e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.textContent=t.textContent,e.minEditPts=t.algoMinEditPts,e.maxEditPts=t.algoMaxEditPts,e.surroundLineType=t.surroundLineType,e},SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMap.Plot.PlottingUtil.DPI,o=new Object;o.anchorPoint=new SuperMap.Geometry.Point(t.anchorPoint.x,t.anchorPoint.y);var n=0,i=0;return void 0!==t.symbolSizeInLib?(n=Math.round(t.symbolSizeInLib.x*e/25.4/10),i=Math.round(t.symbolSizeInLib.y*e/25.4/10)):(n=Math.round(t.symbolSize.x*e/25.4/10),i=Math.round(t.symbolSize.y*e/25.4/10)),o.symbolSizeInLib=new SuperMap.Size(n,i),o.symbolSizeInLib.w=n,o.symbolSizeInLib.h=i,o.middleMarkBounds=new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x,t.middleMarkBounds.leftBottom.y,t.middleMarkBounds.rightTop.x,t.middleMarkBounds.rightTop.y),o},SuperMap.Plot.AnalysisSymbol.analysisAlgoBasicInfo=function(t,e){var o=new Object;if(o.subSymbols=[],o.scalePoints=[],o.scaleValues=[],e&&t.subSymbols)for(var n=0;n<t.subSymbols.length;n++)o.subSymbols.push(new SuperMap.Plot.SubSymbol(t.libID,t.subSymbols[n]));if(t.scalePoints){o.scalePoints=[];for(var i=0;i<t.scalePoints.length;i++){var l=new SuperMap.Geometry.Point(t.scalePoints[i].x,t.scalePoints[i].y);l.tag=i,l.isScalePoint=!0,o.scalePoints.push(l)}}if(t.scaleValues)for(var r=0;r<t.scaleValues.length;r++)o.scaleValues.push(t.scaleValues[r]);return o},SuperMap.Plot.AnalysisSymbol.analysisSymbolCells=function(t,e){var o=[];if(t&&(function(t,o){if(t.innerCells&&t.innerCells.length)for(var n=0;n<t.innerCells.length;n++){var i=t.innerCells[n];if(t.symbolIsCanFill&&i.type!==SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL){var l=new Object,r=SuperMap.Plot.AnalysisSymbol.getStyle(t,e);l.type=32,l.style={fillSymbolID:r.fillSymbolID,fillColor:r.fillColor,fillOpacity:r.fillOpacity,strokeOpacity:0,strokeWidth:0,fillLimit:!1,lineColorLimit:!0,lineWidthLimit:!0},l.positionPoints=[];for(var a=0;a<i.positionPoints.length;a++){var s=new SuperMap.Geometry.Point(i.positionPoints[a].x,i.positionPoints[a].y);l.positionPoints.push(s)}o.push(l)}}}(t,o),t.innerCells)){var n=t.innerCells;if(0!==n.length)for(var i=0;i<n.length;i++)o.push(SuperMap.Plot.AnalysisSymbol.analysisInnerCell(n[i],e))}return o},SuperMap.Plot.AnalysisSymbol.analysisInnerCell=function(t,e){var o=new Object;if(o.positionPoints=[],t){if(o.type=t.type,o.surroundLineFlag=t.surroundLineFlag,o.textContent=t.textContent,o.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,e),null!=t.positionPoints)for(var n=t.positionPoints,i=0;i<n.length;i++){var l=new SuperMap.Geometry.Point(n[i].x,n[i].y);o.positionPoints.push(l)}if(o.style.lineColorLimit=t.lineColorLimit,o.style.lineTypeLimit=t.lineTypeLimit,o.style.lineWidthLimit=t.lineWidthLimit,o.style.fillLimit=t.fillLimit,o.style.fillColorLimit=t.fillColorLimit,o.style.fontColorLimit=t.fontColorLimit,o.style.surroundLineLimit=t.surroundLineLimit,o.style.surroundLineFlag=o.surroundLineFlag,34==t.type?o.style.fontColorLimit=!0:o.style.fontColorLimit=t.fontColorLimit,o.type===SuperMap.Plot.SymbolType.RECTANGLESYMBOL){var r=o.positionPoints[0],a=o.positionPoints[1],s=r.clone(),u=new SuperMap.Geometry.Point(a.x,r.y),p=a.clone(),c=new SuperMap.Geometry.Point(r.x,a.y);o.positionPoints=[],o.positionPoints.push(s),o.positionPoints.push(u),o.positionPoints.push(p),o.positionPoints.push(c),o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL}o.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(o.style.fontSizeLimit=!0)}return o},SuperMap.Plot.AnalysisSymbol.getStyle=function(t,e){function o(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var n=t.blue.toString(16);return n.length<2&&(n="0"+n),"#"+e+o+n}function n(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":0===t?"lt":1===t?"ct":2===t?"rt":6===t?"lb":7===t?"cb":8===t?"rb":3===t?"lm":4===t?"cm":5===t?"rm":"lt"}var i=SuperMap.Plot.PlottingUtil.DPI,l={};return t.style?(e?(l.fillSymbolID=t.style.fillSymbolID,l.fillSymbolID||(l.fill=t.style.fill)):(!1===t.style.fill?t.style.fillSymbolID=1:!0===t.style.fill&&(t.style.fillSymbolID=0),l.fillSymbolID=t.style.fillSymbolID),void 0!==t.style.strokeGradientMode&&null!=t.style.strokeGradientMode?1===t.style.strokeGradientMode?l.strokeGradientMode="LINEAR":2===t.style.strokeGradientMode?l.strokeGradientMode="RADIAL":"LINEAR"!==t.style.strokeGradientMode&&"RADIAL"!==t.style.strokeGradientMode&&(l.strokeGradientMode="NONE"):l.strokeGradientMode="NONE",void 0!==t.style.strokeBackColor?(l.strokeBackColor=o(t.style.strokeBackColor),l.strokeBackOpacity=(t.style.strokeBackColor.alpha/255).toFixed(2)):t.style.fillBackColor&&(l.strokeBackColor=o(t.style.fillBackColor),l.strokeBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2)),void 0!==t.style.fillGradientMode&&null!=t.style.fillGradientMode&&(1===t.style.fillGradientMode?l.fillGradientMode="LINEAR":2===t.style.fillGradientMode?l.fillGradientMode="RADIAL":"LINEAR"!==t.style.fillGradientMode&&"RADIAL"!==t.style.fillGradientMode&&(l.fillGradientMode="NONE")),null!=t.style.fillGradientAngle&&void 0!==t.style.fillGradientAngle?l.fillAngle=t.style.fillGradientAngle:void 0!==t.style.fillAngle&&null!=t.style.fillAngle&&(l.fillAngle=t.style.fillAngle),void 0!==t.style.fillGradientOffsetRatioX&&null!=t.style.fillGradientOffsetRatioX?l.fillCenterOffsetX=t.style.fillGradientOffsetRatioX/100:void 0!==t.style.fillCenterOffsetX&&null!=t.style.fillCenterOffsetX&&(l.fillCenterOffsetX=t.style.fillCenterOffsetX/100),void 0!==t.style.fillGradientOffsetRatioY&&null!=t.style.fillGradientOffsetRatioY?l.fillCenterOffsetY=t.style.fillGradientOffsetRatioY/100:void 0!==t.style.fillCenterOffsetY&&null!=t.style.fillCenterOffsetY&&(l.fillCenterOffsetY=t.style.fillCenterOffsetY/100),void 0!==t.style.fillForeColor&&(l.fillColor=o(t.style.fillForeColor)),void 0!==t.style.fillOpaqueRate&&(l.fillOpacity=(t.style.fillOpaqueRate/100).toFixed(2),100!==t.style.fillOpaqueRate||1===t.style.fillGradientMode&&2===t.style.fillGradientMode||(l.fillOpacity=(t.style.fillForeColor.alpha/255).toFixed(2))),void 0!==t.style.fillBackColor&&(l.fillBackColor=o(t.style.fillBackColor)),0===t.style.fillBackOpaque?l.fillBackOpacity=0:t.style.fillBackColor&&t.style.fillBackColor.alpha&&(l.fillBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2)),void 0!==t.style.lineColor&&(!0===e?(l.color=o(t.style.lineColor),l.opacity=(t.style.lineColor.alpha/255).toFixed(2)):(l.strokeColor=o(t.style.lineColor),l.strokeOpacity=(t.style.lineColor.alpha/255).toFixed(2))),void 0!==t.style.lineWidth&&(!0===e?l.weight=Math.ceil(t.style.lineWidth*i/25.4):l.strokeWidth=Math.ceil(t.style.lineWidth*i/25.4)),e?(l.lineSymbolID=t.style.lineSymbolID,l.lineSymbolID||(l.dashArray=t.style.dashArray)):1===t.style.lineSymbolID?l.strokeDashstyle="dash":2===t.style.lineSymbolID?l.strokeDashstyle="dot":3===t.style.lineSymbolID?l.strokeDashstyle="dashdot":l.strokeDashstyle="solid",t.textStyle2D&&null!=t.textStyle2D?(void 0!==t.textStyle2D.sizeFixed&&(l.sizeFixed=t.textStyle2D.sizeFixed),void 0!==t.textStyle2D.fontName&&(l.fontFamily=t.textStyle2D.fontName),void 0!==t.textStyle2D.fontHeight&&(l.sizeFixed?l.fontSize=Math.ceil(t.textStyle2D.fontHeight*i/25.4):l.fontSize=t.textStyle2D.fontHeight),void 0!==t.textStyle2D.foreColor&&(l.fontColor=o(t.textStyle2D.foreColor)),void 0!==t.textStyle2D.align&&(l.labelAlign=n(t.textStyle2D.align)),void 0!==t.textStyle2D.rotation&&(l.labelRotation=-t.textStyle2D.rotation),void 0!==t.textStyle2D.bold&&(l.fontWeight=-t.textStyle2D.bold),l.labelXOffset=0,l.labelYOffset=0):t.textStyle&&null!=t.textStyle&&(void 0!==t.textStyle.sizeFixed&&(l.sizeFixed=t.textStyle.sizeFixed),void 0!==t.textStyle.fontName&&(l.fontFamily=t.textStyle.fontName),void 0!==t.textStyle.fontHeight&&(l.sizeFixed?l.fontSize=Math.ceil(t.textStyle.fontHeight*i/25.4):l.fontSize=t.textStyle.fontHeight),void 0!==t.textStyle.foreColor&&(l.fontColor=o(t.textStyle.foreColor)),void 0!==t.textStyle.align&&(l.labelAlign=n(t.textStyle.align)),void 0!==t.textStyle.rotation&&(l.labelRotation=-t.textStyle.rotation),void 0!==t.textStyle.bold&&(l.fontWeight=-t.textStyle.bold),l.labelXOffset=0,l.labelYOffset=0),void 0!==t.style.fontOpacity&&(l.fontOpacity=t.style.fontOpacity),void 0!==t.style.fontStroke?l.fontStroke=t.style.fontStroke:t.textStyle2D&&void 0!==t.textStyle2D.outline&&(l.fontStroke=t.textStyle2D.outline),void 0!==t.style.fontStrokeColor?l.fontStrokeColor=t.style.fontStrokeColor:t.textStyle2D&&void 0!==t.textStyle2D.backColor&&(l.fontStrokeColor=o(t.textStyle2D.backColor)),void 0!==l.fontStrokeWidth&&(l.fontStrokeWidth=t.style.fontStrokeWidth),void 0!==t.style.fontBackground&&(l.fontBackground=t.style.fontBackground),void 0!==t.style.fontBackgroundColor&&(l.fontBackgroundColor=t.style.fontBackgroundColor),void 0!==t.style.fontShadow&&(l.fontShadow=t.style.fontShadow),void 0!==t.style.fontShadowColor&&(l.fontShadowColor=t.style.fontShadowColor),void 0!==t.style.fontShadowOffsetX&&(l.fontShadowOffsetX=t.style.fontShadowOffsetX),void 0!==t.style.fontShadowOffsetY&&(l.fontShadowOffsetY=t.style.fontShadowOffsetY),void 0!==t.style.fontSpace&&(l.fontSpace=t.style.fontSpace),void 0!==t.style.fontPercent&&(l.fontPercent=t.style.fontPercent),void 0!==t.style.fontWeight&&(l.fontWeight=t.style.fontWeight),void 0!==t.style.fontStyle&&(l.fontStyle=t.style.fontStyle),void 0!==t.surroundLineColor&&null!=t.surroundLineColor&&(l.surroundLineColor=o(t.surroundLineColor),l.surroundLineColorOpacity=(t.surroundLineColor.alpha/255).toFixed(2)),void 0!==t.surroundLineWidth2D&&null!=t.surroundLineWidth2D?l.surroundLineWidth=Math.round(t.surroundLineWidth2D*i/25.4):void 0!==t.surroundLineWidth&&null!=t.surroundLineWidth&&(l.surroundLineWidth=Math.round(t.surroundLineWidth*i/25.4)),!1===t.visibility?l.display="none":l.display="display",l):l},SuperMap.Plot.AnalysisSymbol.setStyle=function(t,e,o){var n=SuperMap.Plot.PlottingUtil.DPI;if(null!=e)return e.style||(e.style={}),e.textStyle2D||(e.textStyle2D={}),o?(e.style.fillSymbolID=t.fillSymbolID,e.style.fillSymbolID||(e.style.fill=t.fill)):(!1===t.fill?t.fillSymbolID=1:!0===t.fill&&(t.fillSymbolID=0),e.style.fillSymbolID=t.fillSymbolID),t.fillGradientMode&&(e.style.fillGradientMode=t.fillGradientMode),t.fillGradientMode&&("LINEAR"===t.fillGradientMode?e.style.fillGradientMode=1:"RADIAL"===t.fillGradientMode?e.style.fillGradientMode=2:e.style.fillGradientMode=0),t.strokeGradientMode&&("LINEAR"===t.strokeGradientMode?e.style.strokeGradientMode=1:"RADIAL"===t.strokeGradientMode?e.style.strokeGradientMode=2:e.style.strokeGradientMode=0),t.strokeBackColor&&(e.style.strokeBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeBackColor)),t.strokeBackOpacity&&e.style.strokeBackColor&&(e.style.strokeBackColor.alpha=255*t.strokeBackOpacity),null!=t.fillAngle&&void 0!==t.fillAngle&&(e.style.fillAngle=t.fillAngle,e.style.fillGradientAngle=t.fillAngle),null!=t.fillCenterOffsetX&&void 0!==t.fillCenterOffsetX&&(e.style.fillCenterOffsetX=100*t.fillCenterOffsetX,e.style.fillGradientOffsetRatioX=100*t.fillCenterOffsetX),null!=t.fillCenterOffsetY&&void 0!==t.fillCenterOffsetY&&(e.style.fillCenterOffsetY=100*t.fillCenterOffsetY,e.style.fillGradientOffsetRatioY=100*t.fillCenterOffsetY),t.fillColor&&(e.style.fillForeColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillColor)),void 0!==t.fillOpacity&&null!=t.fillOpacity&&(e.style.fillOpaqueRate=100*t.fillOpacity,e.style.fillForeColor.alpha=255),t.fillBackColor&&(e.style.fillBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillBackColor)),void 0!==t.fillBackOpacity&&null!=t.fillBackOpacity&&(0===t.fillBackOpacity?(e.style.fillBackOpaque=0,e.style.fillBackColor.alpha=255):(e.style.fillBackOpaque=1,e.style.fillBackColor.alpha=255*t.fillBackOpacity)),!0===o&&t.color?e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.color):t.strokeColor&&(e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeColor)),!0===o&&null!=t.opacity&&void 0!==t.opacity?(e.style.lineColor.alpha=255*t.opacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)):null!=t.strokeOpacity&&void 0!==t.strokeOpacity&&(e.style.lineColor.alpha=255*t.strokeOpacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)),!0===o&&t.weight?e.style.lineWidth=25.4*t.weight/n:t.strokeWidth&&(e.style.lineWidth=25.4*t.strokeWidth/n),o?(e.style.lineSymbolID=t.lineSymbolID,e.style.lineSymbolID||(e.style.dashArray=t.dashArray)):"dot"===t.strokeDashstyle?e.style.lineSymbolID=2:"dash"===t.strokeDashstyle||"longdash"===t.strokeDashstyle?e.style.lineSymbolID=1:"dashdot"===t.strokeDashstyle||"longdashdot"===t.strokeDashstyle?e.style.lineSymbolID=3:e.style.lineSymbolID=0,t.fontFamily&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.fontName=t.fontFamily:e.textStyle&&null!=e.textStyle&&(e.textStyle.fontName=t.fontFamily)),t.sizeFixed&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.sizeFixed=t.sizeFixed:e.textStyle&&null!=e.textStyle&&(e.textStyle.sizeFixed=t.sizeFixed)),t.fontSize&&(e.textStyle2D&&null!=e.textStyle2D?t.sizeFixed?e.textStyle2D.fontHeight=25.4*t.fontSize/n:e.textStyle2D.fontHeight=t.fontSize:e.textStyle&&null!=e.textStyle&&(t.sizeFixed?e.textStyle.fontHeight=25.4*t.fontSize/n:e.textStyle.fontHeight=t.fontSize)),t.fontWeight&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.bold=t.fontWeight:e.textStyle&&null!=e.textStyle&&(e.textStyle.bold=t.fontWeight)),t.fontColor&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor):e.textStyle&&null!=e.textStyle&&(e.textStyle.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor))),t.labelRotation&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.rotation=-t.labelRotation:e.textStyle&&null!=e.textStyle&&(e.textStyle.rotation=-t.labelRotation)),void 0!==t.fontOpacity&&(e.style.fontOpacity=t.fontOpacity),void 0!==t.fontStroke&&(e.textStyle2D.outline=t.fontStroke),void 0!==t.fontStrokeColor&&(e.textStyle2D.backColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontStrokeColor)),void 0!==t.fontStrokeWidth&&(e.style.fontStrokeWidth=t.fontStrokeWidth),void 0!==t.fontBackground&&(e.style.fontBackground=t.fontBackground),void 0!==t.fontBackgroundColor&&(e.style.fontBackgroundColor=t.fontBackgroundColor),void 0!==t.fontShadow&&(e.style.fontShadow=t.fontShadow),void 0!==t.fontShadowColor&&(e.style.fontShadowColor=t.fontShadowColor),void 0!==t.fontShadowOffsetX&&(e.style.fontShadowOffsetX=t.fontShadowOffsetX),void 0!==t.fontShadowOffsetY&&(e.style.fontShadowOffsetY=t.fontShadowOffsetY),void 0!==t.fontSpace&&(e.style.fontSpace=t.fontSpace),void 0!==t.fontPercent&&(e.style.fontPercent=t.fontPercent),void 0!==t.fontWeight&&(e.style.fontWeight=t.fontWeight),void 0!==t.fontStyle&&(e.style.fontStyle=t.fontStyle),t.surroundLineColor&&(e.surroundLineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.surroundLineColor)),null!=t.surroundLineColorOpacity&&void 0!==t.surroundLineColorOpacity&&(e.surroundLineColor.alpha=255*t.surroundLineColorOpacity),t.surroundLineWidth&&(e.surroundLineWidth2D=25.4*t.surroundLineWidth/n),void 0!==t.labelAlign&&("lt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=0:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=0):"ct"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=1:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=1):"rt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=2:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=2):"lb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=6:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=6):"cb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=7:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=7):"rb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=8:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=8):"lm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=3:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=3):"cm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=4:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=4):"rm"===t.labelAlign&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=5:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=5))),t.display&&"none"===t.display?e.visibility=!1:e.visibility=!0,t},SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature=function(t,e,o){var n=void 0,i=void 0;n=t.style,i=!0!==o?t.geometry:t,e&&!0===e.defaultFlag&&!1===i.isEdit&&(i.surroundLineType=e.surroundLineType,n.surroundLineColor=e.surroundLineColor,n.surroundLineWidth=e.surroundLineWidth,n.surroundLineColorOpacity=e.surroundLineColorOpacity,n.fillBackColor=e.fillBackColor,n.fillBackOpacity=e.fillBackOpacity,n.fillGradientMode=e.fillGradientMode,n.fillCenterOffsetX=e.fillCenterOffsetX,n.fillCenterOffsetY=e.fillCenterOffsetY,n.fillAngle=e.fillAngle,!0===o?(n.color=e.lineColor,n.weight=e.lineWidth,n.opacity=e.lineOpacity,n.lineSymbolID=e.lineType,n.linecap=e.lineCap,n.linejoin=e.lineJoin):(n.strokeColor=e.lineColor,n.strokeWidth=e.lineWidth,n.strokeOpacity=e.lineOpacity,n.strokeDashstyle=e.lineType,n.strokeLinecap=e.lineCap,n.strokeLinejoin=e.lineJoin),n.fillSymbolID=e.fillSymbolID,n.fillColor=e.fillColor,n.fillOpacity=e.fillOpacity,n.fontColor=e.fontColor,n.fontOpacity=e.fontOpacity,n.fontSize=e.fontSize,n.fontFamily=e.fontFamily,n.fontWeight=e.fontWeight,n.fontStyle=e.fontStyle,n.fontStroke=e.fontStroke,n.fontStrokeColor=e.fontStrokeColor,n.fontStrokeWidth=e.fontStrokeWidth,n.fontBackground=e.fontBackground,n.fontBackgroundColor=e.fontBackgroundColor,n.fontShadow=e.fontShadow,n.fontShadowColor=e.fontShadowColor,n.fontShadowOffsetX=e.fontShadowOffsetX,n.fontShadowOffsetY=e.fontShadowOffsetY,n.fontSpace=e.fontSpace,n.fontPercent=e.fontPercent,n.strokeGradientMode=e.strokeGradientMode,n.strokeBackColor=e.strokeBackColor,n.strokeBackOpacity=e.strokeBackOpacity)},SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData=function(t,e){t.hasOwnProperty("algoMinEditPts")||(t.algoMinEditPts=e.algoMinEditPts),t.hasOwnProperty("algoMaxEditPts")||(t.algoMaxEditPts=e.algoMaxEditPts),t.hasOwnProperty("innerCells")||(t.innerCells=SuperMap.Util.cloneObject(e.innerCells)),t.hasOwnProperty("symbolRanks")||(t.symbolRanks=SuperMap.Util.cloneObject(e.symbolRanks)),t.hasOwnProperty("symbolSizeInLib")||(t.symbolSizeInLib=SuperMap.Util.cloneObject(e.symbolSize)),t.hasOwnProperty("middleMarkExist")||(t.middleMarkExist=SuperMap.Util.cloneObject(e.middleMarkExist)),t.hasOwnProperty("middleMarkBounds")||(t.middleMarkBounds=SuperMap.Util.cloneObject(e.middleMarkBounds)),t.hasOwnProperty("anchorPoint")||(t.anchorPoint=SuperMap.Util.cloneObject(e.anchorPoint))},SuperMap.Plot.AnalysisSymbol.setSymbolData=function(t,e,o){null==e&&(e={}),e.hasOwnProperty("type")||(e.type="GRAPHICOBJECT"),e.isEdit=!0,e.uuid=t.uuid,e.associatedUuid=t.associatedUuid,e.hasOwnProperty("rotate2D")?e.rotate2D.x=t.dRotate:e.rotate2D={x:t.dRotate,y:0,z:0},e.hasOwnProperty("scale2D")?e.scale2D.x=t.dScale:e.scale2D={x:t.dScale,y:0,z:0},e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.annotationPosition=t.annotationPosition?t.annotationPosition:t.textPosition,e.textContent=t.textContent,e.scaleByMap=t.scaleByMap,e.resolution=t.resolution,e.isLocked=t.isLocked,e.note=t.note,e.custom=t.custom,e.subSymbols=[];for(var n=0;n<t.subSymbols.length;n++){var i=t.subSymbols[n];e.subSymbols.push({libID:i.libID,code:i.code,symbolData:i.symbolData,textContent:i.textContent,totalNum:i.totalNum})}e.extendProperty=[];for(var l=t.getExtendProperty().getPropertyCount(),r=0;r<l;r++){var a=t.getExtendProperty().getPropertyByIndex(r);e.extendProperty.push({key:a.key,value:a.value})}e.avoidRegions=[];for(var s=0;s<t.avoidRegions.length;s++){var u={};SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[s].feature.style,u,o),e.avoidRegions.push([t.avoidRegions[s].getSymbolData(),u])}if(!0===o?SuperMap.Plot.AnalysisSymbol.setStyle(t.style,e,o):null!=t.feature&&SuperMap.Plot.AnalysisSymbol.setStyle(t.feature.style,e),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){if(e.routeNodes=t.routeNodes,o)for(var p=0;p<t.routeNodes.length;p++)e.routeNodes[p].positionPoint={},e.routeNodes[p].positionPoint.x=t.routeNodes[p].x,e.routeNodes[p].positionPoint.y=t.routeNodes[p].y,e.routeNodes[p].positionPoint.z=t.routeNodes[p].z,delete e.routeNodes[p].x,delete e.routeNodes[p].y,delete e.routeNodes[p].z;e.arrRoutePts=t.arrRoutePts,e.lineStyle=t.lineStyle}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(e.subAssociatedUuids=t.subAssociatedUuids,e.subFeatures=[],o)for(var c=0;c<t.subObjects.length;c++)e.subFeatures.push(t.subObjects[c].getSymbolData());else for(var y=0;y<t.components.length;y++)e.subFeatures.push(t.components[y].geometry.getSymbolData());0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?e.ratio=t.ratio:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(e.colNum=t.colNum,e.speceDis=t.speceDis,e.isShowTooltip=t.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(e.colNum=t.colNum,e.speceDis=t.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT)e.symbolTexts=t.symbolTexts,e.addFrame=t.addFrame;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)e.space=t.space,e.offsetX=t.offsetX,e.offsetY=t.offsetY;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.hasOwnProperty("scaleValues"))for(var P=0;P<t.scaleValues.length;P++)e.scaleValues.length>P?e.scaleValues[P]=t.scaleValues[P]:e.scaleValues.push(t.scaleValues[P]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var h=void 0;h=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.hasOwnProperty("localePoints")||(e.localePoints=[]);var f=h.length;t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&(f=3);for(var S=0;S<f;S++)e.localePoints.length>S?(e.localePoints[S].x=h[S].x,e.localePoints[S].y=h[S].y,e.localePoints[S].hasOwnProperty("z")||(e.localePoints[S].z=0)):e.localePoints.push({x:h[S].x,y:h[S].y,z:0});if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)e.endAssociatedUuid=t.endAssociatedUuid,e.lineRelationType=t.lineRelationType,e.startAssociatedUuid=t.startAssociatedUuid,e.subSectionCount=t.subSectionCount;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){e.surroundLineType=t.surroundLineType,e.symbolRank=t.symbolRank,e.negativeImage=t.negativeImage,e.space=t.space,e.flagTextSize=t.flagTextSize,e.maxScale=t.maxScale,e.minScale=t.minScale,e.textDisplay=t.textDisplay,e.actualScale=t.actualScale,void 0!==t.fontSize&&(e.fontSize=t.fontSize),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth);var d=25.4*t.symbolSize.w*10/SuperMap.Plot.PlottingUtil.DPI,g=25.4*t.symbolSize.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSize={x:d,y:g};var M=25.4*t.symbolSizeInLib.w*10/SuperMap.Plot.PlottingUtil.DPI,m=25.4*t.symbolSizeInLib.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSizeInLib={x:M,y:m},e.positionOffset=t.positionOffset,e.positionOffsetType=t.positionOffsetType,e.positionOffsetX=t.positionOffsetX,e.positionOffsetY=t.positionOffsetY,!1===t.widthHeightLimit||!0===t.widthHeightLimit?e.limitWidthHeight=t.widthHeightLimit:e.limitWidthHeight=t.limitWidthHeight}else{if(e.surroundLineType=t.surroundLineType,e.hasOwnProperty("scaleValues"))for(var v=0;v<t.scaleValues.length;v++)e.scaleValues.length>v?e.scaleValues[v]=t.scaleValues[v]:e.scaleValues.push(t.scaleValues[v]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.subSymbolScaleValue=t.subSymbolScaleValue,e.baseScale=t.baseScale,e.strokeWidth=t.strokeWidth,e.polylineConnectLocationPoint=t.polylineConnectLocationPoint,22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT?(e.isAvoid=t.isAvoid,e.isCurve=t.isCurve,e.relLineText=t.relLineText,e.showPathLine=t.showPathLine,e.textToLineDistance=t.textToLineDistance,e.showPathLineArrow=t.showPathLineArrow):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&(o?(e.centerPoint={x:t.centerPoint.lng,y:t.centerPoint.lat},e.circlePts=t.circlePts,e.spatialAnalystUrl=t.spatialAnalystUrl):e.centerPoint=t.centerPoint,e.endAngle=t.endAngle,e.radius=t.radius,e.radiusPosAngle=t.radiusPosAngle,e.startAngle=t.startAngle,e.textPosition=t.textPosition,e.radiusLineType=t.radiusLineType,e.radiusText=t.radiusText))}}t.symbolData=e},SuperMap.Plot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(void 0!==e.isEdit&&(t.isEdit=e.isEdit),t.libID=parseInt(e.libID),t.code=parseInt(e.code),t.symbolType=e.symbolType,t.symbolName=e.symbolName,t.textContent=e.textContent,void 0!==e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),void 0!==e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),void 0!==e.resolution&&(t.resolution=e.resolution),void 0!==e.uuid&&(t.uuid=e.uuid),void 0!==e.associatedUuid&&(t.associatedUuid=e.associatedUuid),void 0!==e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),void 0!==e.scaleByMap&&(t.scaleByMap=e.scaleByMap),void 0!==e.isLocked&&(t.isLocked=e.isLocked),void 0!==e.note&&(t.note=e.note),void 0!==e.custom&&(t.custom=e.custom),e.extendProperty)for(var n=0;n<e.extendProperty.length;n++){var i=e.extendProperty[n];t.extendProperty.addProperty(i.key,i.value)}if(e.hasOwnProperty("subSymbols")&&null!=e.subSymbols){t.subSymbols=[];for(var l=0;l<e.subSymbols.length;l++){var r=e.subSymbols[l].libID;void 0===r&&(r=t.libID);var a=e.subSymbols[l].code;if(void 0!==a){var s={};void 0!==e.subSymbols[l].textContent&&(s.textContent=e.subSymbols[l].textContent),void 0!==e.subSymbols[l].totalNum&&(s.totalNum=e.subSymbols[l].totalNum),void 0!==e.subSymbols[l].symbolData&&(s.symbolData=e.subSymbols[l].symbolData),t.subSymbols.push(new SuperMap.Plot.SubSymbol(r,a,s))}}}if(e.avoidRegions&&0!==e.avoidRegions.length)for(var u=0;u<e.avoidRegions.length;u++){var p={libID:0,code:SuperMap.Plot.SymbolType.AVOIDREGION,map:t.map,symbolData:e.avoidRegions[u][0]},c=null;if(o)(c=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],p)).style=SuperMap.Plot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[u][1],!0);else{c=new SuperMap.Geometry.AvoidRegion(p);var y=new SuperMap.Feature.Vector(c);y.style=SuperMap.Plot.AnalysisSymbol.getStyle(e.avoidRegions[u][1],o),c.feature=y,c.calculateParts()}t.avoidRegions.push(c)}if(!0===o&&(t.style=SuperMap.Plot.AnalysisSymbol.getStyle(e,!0)),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){t.routeNodes=e.routeNodes,t.routeNodes=[];for(var P=0;P<e.routeNodes.length;P++){var h=new SuperMap.Plot.RouteNode;null==e.routeNodes[P].id&&void 0===e.routeNodes[P].id||(h.id=e.routeNodes[P].id),h.type=e.routeNodes[P].type,h.name=e.routeNodes[P].name,h.rotate=e.routeNodes[P].rotate,o?(h.x=e.routeNodes[P].positionPoint.x,h.y=e.routeNodes[P].positionPoint.y,h.z=e.routeNodes[P].positionPoint.z):h.positionPoint=new SuperMap.Geometry.Point(e.routeNodes[P].positionPoint.x,e.routeNodes[P].positionPoint.y),h.towardNodes=[];for(var f=0;f<e.routeNodes[P].towardNodes.length;f++){var S=new SuperMap.Plot.TowardNode;S.routeNodeId=e.routeNodes[P].towardNodes[f].routeNodeId,S.relLineText=e.routeNodes[P].towardNodes[f].relLineText,S.textContent=e.routeNodes[P].towardNodes[f].textContent,S.offsetX=e.routeNodes[P].towardNodes[f].offsetX,S.offsetY=e.routeNodes[P].towardNodes[f].offsetY,S.style=e.routeNodes[P].towardNodes[f].style,h.towardNodes.push(S)}h.style=e.routeNodes[P].style,t.routeNodes.push(h)}t.arrRoutePts=[];for(var d=0;d<e.arrRoutePts.length;d++){for(var g=[],M=0;M<e.arrRoutePts[d].length;M++)e.arrRoutePts[d][M].hasOwnProperty("lat")&&e.arrRoutePts[d][M].hasOwnProperty("lng")?g.push(new SuperMap.Geometry.Point(e.arrRoutePts[d][M].lng,e.arrRoutePts[d][M].lat)):void 0===e.arrRoutePts[d][M].x&&void 0===e.arrRoutePts[d][M].y||g.push(new SuperMap.Geometry.Point(e.arrRoutePts[d][M].x,e.arrRoutePts[d][M].y));o&&(g=L.Util.superMapPointsToLatLngs(g)),t.arrRoutePts.push(g)}t.lineStyle=e.lineStyle}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(t.subAssociatedUuids=e.subAssociatedUuids,o){for(var m=[],v=0;v<e.subFeatures.length;v++){var b=e.subFeatures[v];b.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var T=L.supermap.plotting.PlottingObject.createSymbol(b.libID,b.code,null,{symbolData:b});m.push(T)}t.subObjects=m}else for(var A=0;A<e.subFeatures.length;A++){var O=e.subFeatures[A],E=SuperMap.Geometry.PlottingGeometry.createFeature(O.libID,O.code,null,{symbolData:O,map:t.map});E.geometry.ownGroupObj=t,t.components.push(E)}0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?(t.ratio=e.ratio,t.subFeatures=e.subFeatures):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(t.colNum=e.colNum,t.speceDis=e.speceDis,t.isShowTooltip=e.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){t.addFrame=e.addFrame,t.symbolTexts=[];for(var x=0,w=e.symbolTexts.length;x<w;x++){var I=new SuperMap.Plot.SymbolText;I.textContent=e.symbolTexts[x].textContent,I.textPosition=e.symbolTexts[x].textPosition,I.style=e.symbolTexts[x].style,I.offsetX=e.symbolTexts[x].offsetX,I.offsetY=e.symbolTexts[x].offsetY,t.symbolTexts.push(I)}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)void 0!==e.space&&(t.space=e.space),void 0!==e.offsetX&&(t.offsetX=e.offsetX),void 0!==e.offsetY&&(t.offsetY=e.offsetY);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var R=0;R<e.scaleValues.length;R++)t.scaleValues.push(e.scaleValues[R])}if(e.subSymbol&&(t.subSymbols=[e.subSymbol]),t.visible=e.visible,e.orbitPoints){t.orbitPoints=[];for(var C=0;C<e.orbitPoints.length;C++)t.orbitPoints.push(new SuperMap.Plot.OrbitPoint(e.orbitPoints[C].x,e.orbitPoints[C].y,e.orbitPoints[C].z,e.orbitPoints[C].number,e.orbitPoints[C].time))}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){t.timeWindows=e.timeWindows;for(var _=0;_<t.timeWindows.length;_++)"Time"!==e.type&&"Number"!==e.type||(t.timeWindows[_].type=e.type)}else{if(e.localePoints){t.controlPoints=[];for(var U=0;U<e.localePoints.length;U++)t.controlPoints.push(new SuperMap.Geometry.Point(e.localePoints[U].x,e.localePoints[U].y));!0===o&&(t.latLngs=L.Util.superMapPointsToLatLngs(t.controlPoints),delete t.controlPoints)}if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)t.endAssociatedUuid=e.endAssociatedUuid,t.lineRelationType=e.lineRelationType,t.startAssociatedUuid=e.startAssociatedUuid,t.subSectionCount=e.subSectionCount;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){t.surroundLineType=e.surroundLineType,t.symbolRank=e.symbolRank,t.negativeImage=e.negativeImage;var N=SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo(e);if(t.anchorPoint=N.anchorPoint,t.symbolSizeInLib=N.symbolSizeInLib,t.middleMarkBounds=N.middleMarkBounds,void 0!==e.actualScale&&(t.actualScale=e.actualScale),void 0!==e.limitWidthHeight&&(t.limitWidthHeight=e.limitWidthHeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.space&&(t.space=e.space),void 0!==e.flagTextSize&&(t.flagTextSize=e.flagTextSize),void 0!==e.maxScale&&(t.maxScale=e.maxScale),void 0!==e.minScale&&(t.minScale=e.minScale),void 0!==e.textDisplay&&(t.textDisplay=e.textDisplay),!1!==t.isEdit){var D={x:0,y:0};-1===e.symbolSize.x&&-1===e.symbolSize.x?(D.x=e.symbolSizeInLib.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,D.y=e.symbolSizeInLib.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10):(D.x=e.symbolSize.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,D.y=e.symbolSize.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10),t.setSymbolSize(D.x,D.y)}void 0!==e.positionOffset&&null!==e.positionOffset&&(t.positionOffset=e.positionOffset),void 0!==e.positionOffsetType&&null!==e.positionOffsetType&&(t.positionOffsetType=e.positionOffsetType),void 0!==e.positionOffsetX&&null!==e.positionOffsetX&&(t.positionOffsetX=e.positionOffsetX),void 0!==e.positionOffsetY&&null!==e.positionOffsetY&&(t.positionOffsetY=e.positionOffsetY)}else{if(t.surroundLineType=e.surroundLineType,e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var B=0;B<e.scaleValues.length;B++)t.scaleValues.push(e.scaleValues[B])}if(void 0!==e.strokeWidth&&null!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.baseScale&&null!==e.baseScale&&(t.baseScale=e.baseScale),void 0!==e.polylineConnectLocationPoint&&null!==e.polylineConnectLocationPoint&&(t.polylineConnectLocationPoint=e.polylineConnectLocationPoint),22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL)void 0!==e.arrowHeadType&&null!==e.arrowHeadType&&(t.arrowHeadType=e.arrowHeadType),void 0!==e.arrowBodyType&&null!==e.arrowBodyType&&(t.arrowBodyType=e.arrowBodyType),void 0!==e.arrowTailType&&null!==e.arrowTailType&&(t.arrowTailType=e.arrowTailType);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE)t.arrowAngle=e.arrowAngle,void 0!==e.arrowTypeStart&&(t.scaleValues[1]=e.arrowTypeStart),void 0!==e.arrowTypeEnd&&(t.scaleValues[2]=e.arrowTypeEnd);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE){if(e.radius&&0!==e.radius.length&&0===t.scaleValues.length)for(var G=0;G<e.radius.length;G++)t.scaleValues.push(e.radius[G])}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)t.symbolData.hasOwnProperty("startAngle")&&(t.scaleValues[0]=t.symbolData.startAngle),t.symbolData.hasOwnProperty("endAngle")&&(t.scaleValues[1]=t.symbolData.endAngle);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING)void 0!==e.islocationCircle&&null!==e.islocationCircle&&(t.islocationCircle=e.islocationCircle),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX)void 0!==e.roundBox&&null!==e.roundBox&&(t.roundBox=e.roundBox),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM)e.tipPoint1&&(this.scaleValues[0]=e.tipPoint1.x,this.scaleValues[1]=e.tipPoint1.y),e.tipPoint2&&(this.scaleValues[2]=e.tipPoint2.x,this.scaleValues[3]=e.tipPoint2.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT)t.isAvoid=e.isAvoid,t.isCurve=e.isCurve,t.relLineText=e.relLineText,t.showPathLine=e.showPathLine,t.textToLineDistance=e.textToLineDistance,t.showPathLineArrow=e.showPathLineArrow;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION){if(o){if(t.centerPoint=L.latLng(e.centerPoint.y,e.centerPoint.x),t.symbolData.circlePts){for(var k=[],V=0;V<e.circlePts.length;V++)k.push(new SuperMap.Geometry.Point(e.circlePts[V].x,e.circlePts[V].y));0!==k.length&&(t.circlePts=k)}t.spatialAnalystUrl=e.spatialAnalystUrl}else t.centerPoint=new SuperMap.Geometry.Point(e.centerPoint.x,e.centerPoint.y);t.endAngle=e.endAngle,t.radius=e.radius,t.radiusPosAngle=e.radiusPosAngle,t.startAngle=e.startAngle,t.textPosition=e.textPosition,t.radiusLineType=e.radiusLineType,t.radiusText=e.radiusText}else 0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&(t.symbolData.hasOwnProperty("textPosition")?t.scaleValues[1]=t.symbolData.textPosition:void 0===t.scaleValues[1]&&(t.scaleValues[1]=t.symbolData.annotationPosition))}}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddPoint_WayType=e.RouteNodePrimitives=e.Primitives=e.PlottingUtil=e.AnalysisSymbol=void 0;var n=o(60),i=o(59),l=o(58),r=o(57),a=o(56);e.AnalysisSymbol=n.AnalysisSymbol,e.PlottingUtil=i.PlottingUtil,e.Primitives=l.Primitives,e.RouteNodePrimitives=r.RouteNodePrimitives,e.AddPoint_WayType=a.AddPoint_WayType},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.CalculateSVGGradient=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e}return n(t,[{key:"destroy",value:function(){this.feature=null}},{key:"createGradient",value:function(){var t=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),t=!0);var e=null;"LINEAR"===this.feature.style.fillGradientMode&&(e=document.getElementById("linearGradient_"+this.feature.uuid)),"RADIAL"===this.feature.style.fillGradientMode&&(e=document.getElementById("radialGradient_"+this.feature.uuid));var o=this.createGradientDirection();for("LINEAR"===this.feature.style.fillGradientMode?((e=null===e?L.SVG.create("linearGradient"):e).setAttributeNS(null,"x1",o.x1),e.setAttributeNS(null,"y1",o.y1),e.setAttributeNS(null,"x2",o.x2),e.setAttributeNS(null,"y2",o.y2)):"RADIAL"===this.feature.style.fillGradientMode&&((e=null===e?L.SVG.create("radialGradient"):e).setAttributeNS(null,"cx",o.cx),e.setAttributeNS(null,"cy",o.cy),e.setAttributeNS(null,"fx",o.fx),e.setAttributeNS(null,"fy",o.fy),e.setAttributeNS(null,"r",o.r));e.hasChildNodes();)e.removeChild(e.firstChild);for(var n=0,i=o.colors.length;n<i;n++){var l=L.SVG.create("stop");l.setAttributeNS(null,"offset",o.colors[n].offset),l.setAttributeNS(null,"style","stop-color:"+SuperMap.Plot.PlottingUtil.colorRGBA(o.colors[n].color,o.colors[n].opacity)),e.appendChild(l)}return 0===e.id.length&&e.setAttributeNS(null,"id",e.tagName+"_"+this.feature.uuid),this.feature.layer._renderer._container.defs.appendChild(e),t&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),e.id}},{key:"createTextureFill",value:function(t){var e=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),e=!0);var o=document.getElementById("patternFill_"+this.feature.uuid);function n(t){var e="";return 2===t.fillID?e="rotate(-45)":3===t.fillID||6===t.fillID?e="rotate(0)":4===t.fillID||5===t.fillID?e="rotate(45)":7===t.fillID&&(e="rotate(90)"),e}function i(t,e,o){var n=L.SVG.create("path");n.setAttributeNS(null,"d",t),n.setAttributeNS(null,"stroke",o.color),n.setAttributeNS(null,"stroke-width","2"),n.setAttributeNS(null,"stroke-linecap","square"),n.setAttributeNS(null,"stroke-opacity",o.opacity),e.appendChild(n)}function l(t,e,o){var n=L.SVG.create("polygon");n.setAttributeNS(null,"points",t),n.setAttributeNS(null,"fill",o.color),n.setAttributeNS(null,"fill-opacity",o.opacity),e.appendChild(n)}return o?(o.setAttributeNS(null,"patternTransform",n(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(o.setAttributeNS(null,"width",7.3),o.setAttributeNS(null,"height",7.3),o.childNodes[0].setAttributeNS(null,"points","0 0 0 7.3 7.3 7.3 7.3 0"),o.childNodes[1].setAttributeNS(null,"d","M 7.3 0 L 0 0")):(o.setAttributeNS(null,"width",5.4),o.setAttributeNS(null,"height",5.4),o.childNodes[0].setAttributeNS(null,"points","0 0 0 5.4 5.4 5.4 5.4 0"),o.childNodes[1].setAttributeNS(null,"d","M 5.4 0 L 0 0")),o.childNodes[0].setAttributeNS(null,"fill",t[1].color),o.childNodes[0].setAttributeNS(null,"fill-opacity",t[1].opacity),o.childNodes[1].setAttributeNS(null,"stroke",t[0].color),o.childNodes[1].setAttributeNS(null,"stroke-opacity",t[0].opacity),3===t[0].fillID||4===t[0].fillID?(o.childNodes[2]&&(o.childNodes[2].setAttributeNS(null,"stroke",t[0].color),o.childNodes[2].setAttributeNS(null,"stroke-opacity",t[0].opacity)),3===t[0].fillID?null===o&&i("M 0 7.3 L 0 0",o,t[0]):4===t[0].fillID&&null===o&&i("M 0 5.4 L 0 0",o,t[0])):o.childNodes[2]&&o.removeChild(o.childNodes[2]),0===o.id.length&&o.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),o.id):((o=null===o?L.SVG.create("pattern"):o).setAttributeNS(null,"x",0),o.setAttributeNS(null,"y",0),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(o.setAttributeNS(null,"width",7.3),o.setAttributeNS(null,"height",7.3)):(o.setAttributeNS(null,"width",5.4),o.setAttributeNS(null,"height",5.4)),o.setAttributeNS(null,"patternUnits","userSpaceOnUse"),o.setAttributeNS(null,"patternTransform",n(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(l("0 0 0 7.3 7.3 7.3 7.3 0",o,t[1]),i("M 7.3 0 L 0 0",o,t[0])):(l("0 0 0 5.4 5.4 5.4 5.4 0",o,t[1]),i("M 5.4 0 L 0 0",o,t[0])),4===t[0].fillID?i("M 0 5.4 L 0 0",o,t[0]):3===t[0].fillID&&i("M 0 7.3 L 0 0",o,t[0]),this.feature.layer._renderer._container.defs.appendChild(o),e&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),0===o.id.length&&o.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),o.id)}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature._map.getRenderer(this.feature.layer)instanceof L.SVG)if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),t.fillOpacity=1,t.fillColor="url(#"+this.createTextureFill(e)+")",t.fill=t.fillColor}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"createGradientDirection",value:function(){var t=[];if("LINEAR"===this.feature.style.fillGradientMode){if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&(0===this.feature.style.fillAngle||180===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):90===this.feature.style.fillAngle||270===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetY,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX/2*(Math.sqrt(2)/2)*Math.abs(Math.sin(this.feature.style.fillAngle*Math.PI/180)),color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}))),this.feature.style.fillAngle>=360&&(this.feature.style.fillAngle=0),0===this.feature.style.fillAngle)return{x1:0,y1:0,x2:1,y2:0,colors:t};if(90===this.feature.style.fillAngle)return{x1:0,y1:1,x2:0,y2:0,colors:t};if(180===this.feature.style.fillAngle)return{x1:1,y1:0,x2:0,y2:0,colors:t};if(270===this.feature.style.fillAngle)return{x1:0,y1:0,x2:0,y2:1,colors:t};if(0<this.feature.style.fillAngle&&this.feature.style.fillAngle<=45)return{x1:0,y1:1,x2:1,y2:(1-Math.tan(this.feature.style.fillAngle*Math.PI/180))/2,colors:t};if(45<this.feature.style.fillAngle&&this.feature.style.fillAngle<90)return{x1:0,y1:1,x2:(1-Math.tan((this.feature.style.fillAngle-45)*Math.PI/180))/2,y2:0,colors:t};if(90<this.feature.style.fillAngle&&this.feature.style.fillAngle<=135)return{x1:1,y1:1,x2:Math.tan((this.feature.style.fillAngle-90)*Math.PI/180)/2,y2:0,colors:t};if(135<this.feature.style.fillAngle&&this.feature.style.fillAngle<180)return{x1:1,y1:1,x2:0,y2:Math.tan((this.feature.style.fillAngle-135)*Math.PI/180)/2,colors:t};if(180<this.feature.style.fillAngle&&this.feature.style.fillAngle<=225)return{x1:1,y1:0,x2:0,y2:Math.tan((this.feature.style.fillAngle-180)*Math.PI/180)/2,colors:t};if(225<this.feature.style.fillAngle&&this.feature.style.fillAngle<270)return{x1:1,y1:0,x2:Math.tan((this.feature.style.fillAngle-225)*Math.PI/180)/2,y2:0,colors:t};if(270<this.feature.style.fillAngle&&this.feature.style.fillAngle<=315)return{x1:0,y1:0,x2:1-Math.tan((this.feature.style.fillAngle-270)*Math.PI/180)/2,y2:1,colors:t};if(315<this.feature.style.fillAngle&&this.feature.style.fillAngle<360)return{x1:0,y1:0,x2:1,y2:Math.tan((this.feature.style.fillAngle-315)*Math.PI/180)/2,colors:t}}else if("RADIAL"===this.feature.style.fillGradientMode)if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&null!==this.feature.style.fillCenterOffsetY&&void 0!==this.feature.style.fillCenterOffsetY&&(t.push({offset:0,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity})),this.feature.style.fillCenterOffsetX<=.5&&this.feature.style.fillCenterOffsetX>=0||this.feature.style.fillCenterOffsetX<=0&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.5*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=.8&&this.feature.style.fillCenterOffsetX>.5||this.feature.style.fillCenterOffsetX<=-.5&&this.feature.style.fillCenterOffsetX>=-.8){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=1&&this.feature.style.fillCenterOffsetX>.8||this.feature.style.fillCenterOffsetX<=-.8&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}}}]),t}();SuperMap.Plot.CalculateSVGGradient=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.CalculateCanvasGradient=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e,this._bounds=o}return n(t,[{key:"destroy",value:function(){this.feature=null}},{key:"getContext",value:function(){return this.feature._map.getRenderer(this.feature.layer)._ctx}},{key:"calculateObjectByBounds",value:function(){var t=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getNorth(),this._bounds.getWest())),e=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getSouth(),this._bounds.getEast())),o=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getCenter()));if(t.x!==e.x||t.y!==e.y){var n=Math.max(t.x,e.x),i=Math.max(t.y,e.y),l=Math.min(t.x,e.x),r=Math.min(t.y,e.y);return{ptMinX:l,ptMinY:r,width:Math.abs(n-l),height:Math.abs(i-r),center:o,r:Math.abs(t.x-e.x)>Math.abs(e.y-e.y)?Math.abs(t.x-e.x):Math.abs(t.y-e.y)}}}},{key:"createGradient",value:function(){var t=function(t,e){var o=t.substring(1,3),n=parseInt(o,16),i=t.substring(3,5),l=parseInt(i,16),r=t.substring(5);return"rgba("+n+","+l+","+parseInt(r,16)+","+e+")"},e=null;if(this.getContext()instanceof CanvasRenderingContext2D){var o=this.calculateObjectByBounds();if("LINEAR"===this.feature.style.fillGradientMode){var n=this.getGradientDirection(this.feature.style.fillAngle);if(e=this.getContext().createLinearGradient(o.ptMinX+o.width*n.x1,o.ptMinY+o.height*n.y1,o.ptMinX+o.width*n.x2,o.ptMinY+o.height*n.y2),0===this.feature.style.fillCenterOffsetX&&0===this.feature.style.fillCenterOffsetY)e.addColorStop(0,t(this.feature.style.fillColor,this.feature.style.fillOpacity)),e.addColorStop(1,t(this.feature.style.fillBackColor,this.feature.style.fillOpacity));else{var i=this.feature.style.fillAngle;0===i||180===i||90===i||270===i?(e.addColorStop(0,t(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),0!==i&&180!==i||e.addColorStop(this.feature.style.fillCenterOffsetX,t(this.feature.style.fillColor,this.feature.style.fillOpacity)),90!==i&&270!==i||e.addColorStop(this.feature.style.fillCenterOffsetY,t(this.feature.style.fillColor,this.feature.style.fillOpacity)),e.addColorStop(1,t(this.feature.style.fillBackColor,this.feature.style.fillOpacity))):(e.addColorStop(0,t(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),e.addColorStop(this.feature.style.fillCenterOffsetX>=this.feature.style.fillCenterOffsetY?this.feature.style.fillCenterOffsetX:this.feature.style.fillCenterOffsetY*Math.cos(this.feature.style.fillAngle*Math.PI/180),t(this.feature.style.fillColor,this.feature.style.fillOpacity)),e.addColorStop(1,t(this.feature.style.fillBackColor,this.feature.style.fillOpacity)))}}else if("RADIAL"===this.feature.style.fillGradientMode){var l=this.feature.style.fillCenterOffsetX*o.r,r=this.feature.style.fillCenterOffsetY*o.r,a=o.r/Math.sqrt(2)+Math.abs(l)>o.r/Math.sqrt(2)+Math.abs(r)?o.r/Math.sqrt(2)+Math.abs(l):o.r/Math.sqrt(2)+Math.abs(r);(e=this.getContext().createRadialGradient(o.center.x+l,o.center.y-r,0,o.center.x+l,o.center.y-r,a)).addColorStop(0,t(this.feature.style.fillColor,this.feature.style.fillOpacity)),e.addColorStop(1,t(this.feature.style.fillBackColor,this.feature.style.fillBackOpacity))}return e}}},{key:"getGradientDirection",value:function(t){var e=function(t){return{x:Math.cos(t),y:Math.sin(t)}},o=function(t){return t*Math.PI/180},n=e(o(180-t%360)),i=e(o(360-t%360)),l=Math.pow(2,-52);return(n.x<=0||Math.abs(n.x)<=l)&&(n.x=0),(n.y<=0||Math.abs(n.y)<=l)&&(n.y=0),(i.x<=0||Math.abs(i.x)<=l)&&(i.x=0),(i.y<=0||Math.abs(i.y)<=l)&&(i.y=0),{x1:n.x,y1:n.y,x2:i.x,y2:i.y}}}]),t}();SuperMap.Plot.CalculateCanvasGradient=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=void 0;var n=o(63),i=o(62);e.CalculateCanvasGradient=n.CalculateCanvasGradient,e.CalculateSVGGradient=i.CalculateSVGGradient},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.TransactionInfo=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.layer=e.layer?e.layer:null,this.feature=e.feature?e.feature:null,this.uuid=e.uuid?e.uuid:null,this.functionName=e.functionName?e.functionName:null,this.undoParams=e.undoParams?e.undoParams:null,this.redoParams=e.redoParams?e.redoParams:null,this.propertyName=e.propertyName?e.propertyName:null,this.undoValue=e.undoValue?e.undoValue:null,this.redoValue=e.redoValue?e.redoValue:null,this.CLASS_NAME="SuperMap.Plot.TransactionInfo"};SuperMap.Plot.TransactionInfo=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Transaction=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.transType=e.transType?e.transType:SuperMap.Plot.TransactionType.EDIT,this.transInfos=[],this.CLASS_NAME="SuperMap.Plot.Transaction"}return n(t,[{key:"destroy",value:function(){this.transInfos=null,this.transType=null}}]),t}();SuperMap.Plot.Transaction=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.TowardNode=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.routeNodeId=e.routeNodeId?e.routeNodeId:null,this.relLineText=e.relLineText?e.relLineText:SuperMap.Plot.RelLineText.ONLEFTLINE,this.index=e.index?e.index:0,this.textContent=e.textContent?e.textContent:null,this.offsetX=e.offsetX?e.offsetX:null,this.offsetY=e.offsetY?e.offsetY:null,this.style=e.style?e.style:{fontSize:12,fontFamily:"Microsoft YaHei"},this.CLASS_NAME="SuperMap.Plot.TowardNode"}return n(t,[{key:"destroy",value:function(){this.routeNodeId=null,this.relLineText=null,this.textContent=null,this.style=null}},{key:"clone",value:function(){return new t({routeNodeId:this.routeNodeId,relLineText:this.relLineText,textContent:this.textContent,style:SuperMap.Util.cloneObject(this.style)})}}]),t}();SuperMap.Plot.TowardNode=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.TimeWindowParameter=function(){function t(e,o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.startOrbitPoint=e,this.endOrbitPoint=o,this.type=n,this.CLASS_NAME="SuperMap.Plot.TimeWindowParameter"}return n(t,[{key:"destroy",value:function(){this.startOrbitPoint=null,this.endOrbitPoint=null,this.type=null}}]),t}();SuperMap.Plot.TimeWindowParameter=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.SymbolText=function(){function t(e,o,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=i||{},this.textContent=e,this.textPosition=o,void 0!==this.textPosition&&null!==this.textPosition||(this.textPosition=0),this.offsetX=i.offsetX?i.offsetX:0,this.offsetY=i.offsetY?i.offsetY:0,this.style=n,this.CLASS_NAME="SuperMap.Plot.SymbolText"}return n(t,[{key:"destroy",value:function(){this.textContent=null,this.textPosition=null,this.offsetX=null,this.offsetY=null}}]),t}();SuperMap.Plot.SymbolText=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.SubSymbol=function(){function t(e,o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=n||{},this.libID=e,this.code=o,this.symbolData=n.symbolData?n.symbolData:null,this.textContent=n.textContent?n.textContent:null,this.totalNum=n.totalNum?n.totalNum:null,this.CLASS_NAME="SuperMap.Plot.SubSymbol"}return n(t,[{key:"destroy",value:function(){this.libID=null,this.code=null,this.symbolData=null,this.totalNum=null}},{key:"clone",value:function(){var t=new SuperMap.Plot.SubSymbol(this.libID,this.code);return t.symbolData={},t.symbolData=SuperMap.Util.copyAttributes(t.symbolData,this.symbolData),t.textContent=this.textContent,t.totalNum=this.totalNum,t}}]),t}();SuperMap.Plot.SubSymbol=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.SMLInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.SMLName=e.SMLName,this.SMLDesc=e.SMLDesc,this.SMLSeclevel=e.SMLSeclevel,this.SMLDepat=e.SMLDepat,this.SMLAuthor=e.SMLAuthor,this.SMLTime=e.SMLTime),this.CLASS_NAME="SuperMap.Plot.SMLInfoStruct"}return n(t,[{key:"destroy",value:function(){this.SMLName="",this.SMLDesc="",this.SMLAuthor="",this.SMLSeclevel="",this.SMLDepat="",this.SMLTime=""}},{key:"fromJSON",value:function(t){this.SMLName=t.SMLName,this.SMLDesc=t.SMLDesc,this.SMLSeclevel=t.SMLSeclevel,this.SMLDepat=t.SMLDepat,this.SMLAuthor=t.SMLAuthor,this.SMLTime=t.SMLTime}},{key:"toJSON",value:function(){return'{"SMLName":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLName)+',"SMLDesc":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDesc)+',"SMLSeclevel":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLSeclevel)+',"SMLDepat":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDepat)+',"SMLAuthor":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLAuthor)+',"SMLTime":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLTime)+"}"}}]),t}();SuperMap.Plot.SMLInfoStruct=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.SitDataStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.smlInfo=e.smlInfo?e.smlInfo:null,this.mapInfo=e.mapInfo?e.mapInfo:null,this.layerDatas=e.layerDatas?e.layerDatas:null,this.CLASS_NAME="SuperMap.Plot.SitDataStruct"}return n(t,[{key:"destroy",value:function(){this.smlInfo=null,this.mapInfo=null,this.layerDatas=null}}]),t}();SuperMap.Plot.SitDataStruct=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.RouteNode=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.id=e.id?e.id:SuperMap.Plot.PlottingUtil.generateUuid(),this.x=e.x?e.x:null,this.y=e.y?e.y:null,this.z=e.z?e.z:null,this.type=e.type?e.type:null,this.name=e.name?e.name:null,this.rotate=e.rotate?e.rotate:0,this.towardNodes=e.towardNodes?e.towardNodes:[],this.style=e.style?e.style:{},this.CLASS_NAME="SuperMap.Plot.RouteNode"}return n(t,[{key:"destroy",value:function(){this.type=null,this.position=null,this.name=null,this.id=null,this.rotate=null,this.towardNodes&&null!==this.towardNodes||(this.towardNodes=null);for(var t=0;t<this.towardNodes.length;t++)this.towardNodes[t].destroy();this.towardNodes=null}},{key:"clone",value:function(){var e=new t({id:this.id,type:this.type,name:this.name,rotate:this.rotate,towardNodes:this.towardNodes});return e.positionPoint=this.positionPoint.clone(),e.style={},e.style=SuperMap.Util.copyAttributes(e.style,this.style),e}}]),t}();SuperMap.Plot.RouteNode=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.Property=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.key=e),o&&(this.value=o),this.CLASS_NAME="SuperMap.Plot.Property"}return n(t,[{key:"setKey",value:function(t){this.key=t}},{key:"getKey",value:function(){return this.key}},{key:"setValue",value:function(t){this.value=t}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.key=null,this.value=null}},{key:"clone",value:function(){return new SuperMap.Plot.Property(this.key,this.value)}}]),t}();SuperMap.Plot.Property=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.OrbitPoint=function(){function t(e,o,n,i,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=parseFloat(e),this.y=parseFloat(o),(n||0==n)&&(this.z=parseFloat(n)),i&&(this.number=i),l&&(this.time=l),this.CLASS_NAME="SuperMap.Plot.OrbitPoint"}return n(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.z=null,this.index=null,this.time=null}},{key:"clone",value:function(t){return null==t&&(t=new SuperMap.Plot.OrbitPoint(this.x,this.y,this.z)),SuperMap.Util.applyDefaults(t,this),t}}]),t}();SuperMap.Plot.OrbitPoint=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.MapInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.zoom=e.zoom?e.zoom:null,this.centerX=e.centerX?e.centerX:null,this.centerY=e.centerY?e.centerY:null,this.CLASS_NAME="SuperMap.Plot.MapInfoStruct"}return n(t,[{key:"destroy",value:function(){this.zoom=null,this.centerX=null,this.centerY=null}},{key:"fromJSON",value:function(t){void 0!==t.zoom&&(this.zoom=t.zoom),void 0!==t.centerX&&(this.centerX=t.centerX),void 0!==t.centerY&&(this.centerY=t.centerY)}},{key:"toJSON",value:function(){return'{"zoom":'+SuperMap.Plot.PlottingUtil.toJSON(this.zoom)+',"centerX":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerX)+',"centerY":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerY)+"}"}}]),t}();SuperMap.Plot.MapInfoStruct=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.LayerDataStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.layerName=e.layerName?e.layerName:null,this.spatialAnalystUrl=e.spatialAnalystUrl?e.spatialAnalystUrl:null,this.useCanvas2=!!e.useCanvas2&&e.useCanvas2,this.useCanvas=!!e.useCanvas&&e.useCanvas,this.features=e.features?e.features:null,this.CLASS_NAME="SuperMap.Plot.LayerDataStruct"}return n(t,[{key:"destroy",value:function(){this.layerName=null,this.spatialAnalystUrl=null,this.useCanvas2=null,this.useCanvas=null,this.features=null}},{key:"toJSON",value:function(){for(var t=[],e=0;e<this.features.length;e++)t.push(this.features[e].getSymbolData());return'{"layerName":'+SuperMap.Plot.PlottingUtil.toJSON(this.layerName)+', "spatialAnalystUrl":'+SuperMap.Plot.PlottingUtil.toJSON(this.spatialAnalystUrl)+', "useCanvas2":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas2)+', "useCanvas":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas)+', "isEditable":'+SuperMap.Plot.PlottingUtil.toJSON(this.isEditable)+', "isLocked":'+SuperMap.Plot.PlottingUtil.toJSON(this.isLocked)+', "visibility":'+SuperMap.Plot.PlottingUtil.toJSON(this.visibility)+',"features":'+SuperMap.Plot.PlottingUtil.toJSON(t)+"}"}}]),t}();SuperMap.Plot.LayerDataStruct=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.ExtendProperty=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.properties=e.properties?e.properties:[],this.CLASS_NAME="SuperMap.Plot.ExtendProperty"}return n(t,[{key:"addProperty",value:function(t,e){var o=this.findProperty(t);return null==o?this.properties.push(new SuperMap.Plot.Property(t,e)):o.setValue(e),!0}},{key:"deleteProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties.slice(e,1),!0;return!1}},{key:"findProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e];return null}},{key:"getPropertyValue",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e].value;return null}},{key:"getPropertyByIndex",value:function(t){return t<this.properties.length?this.properties[t]:null}},{key:"getPropertyCount",value:function(){return this.properties.length}},{key:"destroy",value:function(){this.properties=null}}]),t}();SuperMap.Plot.ExtendProperty=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.DefaultStyle=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.lineColor=e.lineColor?e.lineColor:"#ff0000",this.lineWidth=e.lineWidth?e.lineWidth:2,this.lineType=e.lineType?e.lineType:0,this.lineOpacity=e.lineOpacity?e.lineOpacity:1,this.lineCap=e.lineCap?e.lineCap:"round",this.flagTextSize=e.flagTextSize?e.flagTextSize:60,this.maxScale=e.maxScale?e.maxScale:5,this.minScale=e.minScale?e.minScale:1,this.dotSymbolSize=e.dotSymbolSize?e.dotSymbolSize:40,this.dotTextSpace=e.dotTextSpace?e.dotTextSpace:7,this.scaleByMap=!!e.scaleByMap&&e.scaleByMap,this.fillColor=e.fillColor?e.fillColor:"#ff0000",this.fillOpacity=e.fillOpacity?e.fillOpacity:.31,this.fontColor=e.fontColor?e.fontColor:"#000000",this.fontOpacity=e.fontOpacity?e.fontOpacity:1,this.fontStroke=!!e.fontStroke&&e.fontStroke,this.fontStrokeColor=e.fontStrokeColor?e.fontStrokeColor:"#ff0000",this.fontStrokeWidth=e.fontStrokeWidth?e.fontStrokeWidth:"2px",this.fontBackground=!!e.fontBackground&&e.fontBackground,this.fontBackgroundColor=e.fontBackgroundColor?e.fontBackgroundColor:"#ff0000",this.fontShadow=!!e.fontShadow&&e.fontShadow,this.fontShadowColor=e.fontShadowColor?e.fontShadowColor:"#ff0000",this.fontShadowOffsetX=e.fontShadowOffsetX?e.fontShadowOffsetX:0,this.fontShadowOffsetY=e.fontShadowOffsetY?e.fontShadowOffsetY:0,this.fontSize=e.fontSize?e.fontSize:14,this.fontSpace=e.fontSpace?e.fontSpace:0,this.fontPercent=e.fontPercent?e.fontPercent:100,this.fontFamily=e.fontFamily?e.fontFamily:"微软雅黑",this.fontWeight=e.fontWeight?e.fontWeight:"bold",this.fontStyle=e.fontStyle?e.fontStyle:"",this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.surroundLineColor=e.surroundLineColor?e.surroundLineColor:"#ffff00",this.surroundLineWidth=e.surroundLineWidth?e.surroundLineWidth:4,this.surroundLineColorOpacity=e.surroundLineColorOpacity?e.surroundLineColorOpacity:1,this.fontStyle=e.fontStyle?e.fontStyle:"",this.fillBackColor=e.fillBackColor?e.fillBackColor:"#ff0000",this.fillBackOpacity=e.fillBackOpacity?e.fillBackOpacity:1,this.fillGradientMode=e.fillGradientMode?e.fillGradientMode:"NONE",this.fillCenterOffsetX=e.fillCenterOffsetX?e.fillCenterOffsetX:0,this.fillCenterOffsetY=e.fillCenterOffsetY?e.fillCenterOffsetY:0,this.fillAngle=e.fillAngle?e.fillAngle:0,this.fillSymbolID=e.fillSymbolID?e.fillSymbolID:1,this.defaultFlag=!!e.defaultFlag&&e.defaultFlag,this.CLASS_NAME="SuperMap.Plot.DefaultStyle",this.parserConfiguration()}return n(t,[{key:"parserConfiguration",value:function(){"undefined"!=typeof DefaultStyleConfiguration&&("undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.flagTextSize&&(this.flagTextSize=parseFloat(DefaultStyleConfiguration.flagTextSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.maxScale&&(this.maxScale=parseFloat(DefaultStyleConfiguration.maxScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.minScale&&(this.minScale=parseFloat(DefaultStyleConfiguration.minScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotSymbolSize&&(this.dotSymbolSize=parseFloat(DefaultStyleConfiguration.dotSymbolSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotTextSpace&&(this.dotTextSpace=parseFloat(DefaultStyleConfiguration.dotTextSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.scaleByMap&&(this.scaleByMap=DefaultStyleConfiguration.scaleByMap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeWidth&&(this.lineWidth=parseFloat(DefaultStyleConfiguration.strokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeColor&&(this.lineColor=DefaultStyleConfiguration.strokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeOpacity&&(this.lineOpacity=parseFloat(DefaultStyleConfiguration.strokeOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeDashstyle&&(this.lineType=DefaultStyleConfiguration.strokeDashstyle),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeLinecap&&(this.lineCap=DefaultStyleConfiguration.strokeLinecap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillColor&&(this.fillColor=DefaultStyleConfiguration.fillColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillOpacity&&(this.fillOpacity=parseFloat(DefaultStyleConfiguration.fillOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontColor&&(this.fontColor=DefaultStyleConfiguration.fontColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontOpacity&&(this.fontOpacity=parseFloat(DefaultStyleConfiguration.fontOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStroke&&(this.fontStroke=DefaultStyleConfiguration.fontStroke),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeColor&&(this.fontStrokeColor=DefaultStyleConfiguration.fontStrokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeWidth&&(this.fontStrokeWidth=parseFloat(DefaultStyleConfiguration.fontStrokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackground&&(this.fontBackground=DefaultStyleConfiguration.fontBackground),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackgroundColor&&(this.fontBackgroundColor=DefaultStyleConfiguration.fontBackgroundColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadow&&(this.fontShadow=DefaultStyleConfiguration.fontShadow),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowColor&&(this.fontShadowColor=DefaultStyleConfiguration.fontShadowColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetX&&(this.fontShadowOffsetX=DefaultStyleConfiguration.fontShadowOffsetX),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetY&&(this.fontShadowOffsetY=DefaultStyleConfiguration.fontShadowOffsetY),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSpace&&(this.fontSpace=parseInt(DefaultStyleConfiguration.fontSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontPercent&&(this.fontPercent=parseFloat(DefaultStyleConfiguration.fontPercent)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSize&&(this.fontSize=parseFloat(DefaultStyleConfiguration.fontSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontFamily&&(this.fontFamily=DefaultStyleConfiguration.fontFamily),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontWeight&&(this.fontWeight=DefaultStyleConfiguration.fontWeight),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStyle&&(this.fontStyle=DefaultStyleConfiguration.fontStyle),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineType&&(this.surroundLineType=parseFloat(DefaultStyleConfiguration.surroundLineType)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColor&&(this.surroundLineColor=DefaultStyleConfiguration.surroundLineColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineWidth&&(this.surroundLineWidth=parseFloat(DefaultStyleConfiguration.surroundLineWidth)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColorOpacity&&(this.surroundLineColorOpacity=parseFloat(DefaultStyleConfiguration.surroundLineColorOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackColor&&(this.fillBackColor=DefaultStyleConfiguration.fillBackColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackOpacity&&(this.fillBackOpacity=parseFloat(DefaultStyleConfiguration.fillBackOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillGradientMode&&(this.fillGradientMode=DefaultStyleConfiguration.fillGradientMode),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillAngle&&(this.fillAngle=parseFloat(DefaultStyleConfiguration.fillAngle)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetX&&(this.fillCenterOffsetX=parseFloat(DefaultStyleConfiguration.fillCenterOffsetX)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetY&&(this.fillCenterOffsetY=parseFloat(DefaultStyleConfiguration.fillCenterOffsetY)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillSymbolID&&(this.fillSymbolID=parseFloat(DefaultStyleConfiguration.fillSymbolID)))}},{key:"destroy",value:function(){this.lineColor=null,this.lineWidth=null,this.dotSymbolSize=null,this.lineType=null,this.defaultFlag=null,this.flagTextSize=null,this.maxScale=null,this.minScale=null,this.dotTextSpace=null,this.scaleByMap=null,this.lineOpacity=null,this.lineCap=null,this.fillColor=null,this.fillOpacity=null,this.fontColor=null,this.fontOpacity=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null,this.fontStyle=null,this.fontPercent=null,this.fontSpace=null,this.surroundLineType=null,this.surroundLineColor=null,this.surroundLineWidth=null,this.surroundLineColorOpacity=null,this.fillBackColor=null,this.fillBackOpacity=null,this.fillGradientMode=null,this.fillAngle=null,this.fillCenterOffsetX=null,this.fillCenterOffsetY=null,this.fillSymbolID=null}}]),t}();SuperMap.Plot.DefaultStyle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=void 0;var n=o(79),i=o(78),l=o(77),r=o(76),a=o(75),s=o(74),u=o(73),p=o(72),c=o(71),y=o(70),P=o(69),h=o(68),f=o(67),S=o(66),d=o(65);e.DefaultStyle=n.DefaultStyle,e.ExtendProperty=i.ExtendProperty,e.LayerDataStruct=l.LayerDataStruct,e.MapInfoStruct=r.MapInfoStruct,e.OrbitPoint=a.OrbitPoint,e.Property=s.Property,e.RouteNode=u.RouteNode,e.SitDataStruct=p.SitDataStruct,e.SMLInfoStruct=c.SMLInfoStruct,e.SubSymbol=y.SubSymbol,e.SymbolText=P.SymbolText,e.TimeWindowParameter=h.TimeWindowParameter,e.TowardNode=f.TowardNode,e.Transaction=S.Transaction,e.TransactionInfo=d.TransactionInfo},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetSymbolInfoService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o=o||{};var n,i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o)),l=i;return n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"graphicObject.json?":"/graphicObject.json?",i.CLASS_NAME="SuperMap.GetSymbolInfoService",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e,o=Math.floor(1e3*Math.random()),n=this;e=SuperMap.GetSymbolInfoParameters.toUrlParameters(t),n.url+=e,n.url+="&dynamicPermission="+o,"MSIE"===SuperMap.Browser.name.toUpperCase()&&(n.url=encodeURI(n.url)),n.request({method:"GET",params:null,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed,dynamicPermission:o})}}}]),e}();SuperMap.GetSymbolInfoService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetSymbolInfoParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.libID=e.libID?e.libID:null,this.code=e.code?e.code:null,this.inputPoints=e.inputPoints?e.inputPoints:null,this.symbolRank=e.symbolRank?e.symbolRank:null,this.negativeImage=e.negativeImage?e.negativeImage:null,this.surroundLineType=e.surroundLineType?e.surroundLineType:null,this.subSymbols=e.subSymbols?e.subSymbols:null,this.scaleValues=e.scaleValues?e.scaleValues:null,this.scalePoints=e.scalePoints?e.scalePoints:null,this.newScalePoint=e.newScalePoint?e.newScalePoint:null,this.newScalePointIndex=e.newScalePointIndex?e.newScalePointIndex:null,this.CLASS_NAME="SuperMap.GetSymbolInfoParameters"}return n(t,[{key:"destroy",value:function(){var t=this;t.libID=null,t.code=null,t.inputPoints=null,t.symbolRank=null,t.negativeImage=null,t.surroundLineType=null,t.subSymbols=null,t.scaleValues=null,t.scalePoints=null,t.newScalePoint=null,t.newScalePointIndex=null}}],[{key:"toUrlParameters",value:function(t){if(t&&null!==t.libID&&null!==t.code){var e="libID="+t.libID+"&code="+t.code;if(t.inputPoints&&null!==t.inputPoints&&0!==t.inputPoints.length){e+="&inputPoints=[";for(var o=0;o<t.inputPoints.length;o++)o===t.inputPoints.length-1?e+='{"x":'+t.inputPoints[o].x+', "y":'+t.inputPoints[o].y+"}]":e+='{"x":'+t.inputPoints[o].x+', "y":'+t.inputPoints[o].y+"},"}if(t.scalePoints&&null!==t.scalePoints&&0!==t.scalePoints.length){e+="&scalePoints=[";for(var n=0;n<t.scalePoints.length;n++)n===t.scalePoints.length-1?e+='{"x":'+t.scalePoints[n].x+', "y":'+t.scalePoints[n].y+"}]":e+='{"x":'+t.scalePoints[n].x+', "y":'+t.scalePoints[n].y+"},"}if(t.scaleValues&&null!==t.scaleValues&&0!==t.scaleValues.length){e+="&scaleValues=[";for(var i=0;i<t.scaleValues.length;i++)i===t.scaleValues.length-1?e+=t.scaleValues[i]+"]":e+=t.scaleValues[i]+","}if(t.subSymbols&&null!==t.subSymbols&&0!==t.subSymbols.length){e+="&subSymbols=[";for(var l=0;l<t.subSymbols.length;l++)l===t.subSymbols.length-1?e+=t.subSymbols[l].code+"]":e+=t.subSymbols[l].code+","}return t.newScalePoint&&null!==t.newScalePoint&&(e+='&newScalePoint={"x":'+t.newScalePoint.x+', "y":'+t.newScalePoint.y+"}"),t.newScalePointIndex&&null!==t.newScalePointIndex&&(e+="&newScalePointIndex="+t.newScalePointIndex),t.symbolRank&&null!==t.symbolRank&&(e+="&symbolRank="+t.symbolRank),t.negativeImage&&null!==t.negativeImage&&(e+="&negativeImage="+t.negativeImage),t.surroundLineType&&null!==t.surroundLineType&&(e+="&surroundLineType="+t.surroundLineType),e}}}]),t}();SuperMap.GetSymbolInfoParameters=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetSMLInfosService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(n,o);var i,l=n;return l.events=new SuperMap.Events(l,null,l.EVENT_TYPES,!0),l.eventListeners instanceof Object&&l.events.on(l.eventListeners),i=l.url.substr(l.url.length-1,1),l.url+="/"==i?"smlInfos":"/smlInfos",l.url+=".json",n.CLASS_NAME="SuperMap.GetSMLInfosService",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e=this;e.url+=SuperMap.GetSMLInfosParameters.toUrlParameters(t),e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.GetSMLInfosService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetSMLInfosParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.start=e.start?e.start:null,this.count=e.count?e.count:null,this.CLASS_NAME="SuperMap.GetSMLInfosParameters"}return n(t,[{key:"destroy",value:function(){this.start=null,this.count=null}}],[{key:"toUrlParameters",value:function(t){if(t){var e="";return null!==t.start&&(e="?start="+t.start),!t.count||null===t.count&&0===t.count||(e+="&count="+t.count),e}}}]),t}();SuperMap.GetSMLInfosParameters=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetLibInfoService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(n,o);var i,l=n;return i=l.url.substr(l.url.length-1,1),l.url+="/"==i?"symbolLibs/":"/symbolLibs/",n.CLASS_NAME="SuperMap.GetLibInfoService",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){var e=this;t&&null!==t.libID&&(e.libID=t.libID),e.url+=e.libID,e.url+=".json",e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),e}();SuperMap.GetLibInfoService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetLibInfoParameter=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.libID=e.libID?e.libID:null,this.CLASS_NAME="SuperMap.GetLibInfoParameter"}return n(t,[{key:"destroy",value:function(){this.libID=null}}]),t}();SuperMap.GetLibInfoParameter=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.GetLibIDsService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(n,o);var i,l=n;return i=l.url.substr(l.url.length-1,1),l.url+="/"==i?"symbolLibs.json?":"/symbolLibs.json?",n.CLASS_NAME="SuperMap.GetLibIDsService",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(){this.request({method:"GET",data:null,scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}}]),e}();SuperMap.GetLibIDsService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.EditSmlFileService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(n,o);var i=n;return i.events=new SuperMap.Events(i,null,i.EVENT_TYPES,!0),i.eventListeners instanceof Object&&i.events.on(i.eventListeners),n.CLASS_NAME="SuperMap.EditSmlFileService",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e=this,o=t.method,n=e.url.substr(e.url.length-1,1);e.url+="/"==n?"smlInfos/":"/smlInfos/",e.url+=t.smlFileName+".json",e.url+="?isCover="+t.isCover;var i=null;t.method&&"POST"===t.method&&(i=SuperMap.EditSmlFileParameters.toJsonParameters(t)),e.request({method:o,data:i,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.EditSmlFileService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.EditSmlFileParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.method=e.method?e.method:"POST",this.sitData=e.sitData?e.sitData:null,this.smlFileName=e.smlFileName?e.smlFileName:"",this.isCover=!!e.isCover&&e.isCover,this.CLASS_NAME="SuperMap.EditSmlFileParameters"}return n(t,[{key:"destroy",value:function(){this.method="POST",this.sitData=null,this.isCover=!1,this.smlFileName=""}}],[{key:"toJsonParameters",value:function(t){if(t)return SuperMap.Plot.PlottingUtil.toJSON(t.sitData)}}]),t}();SuperMap.EditSmlFileParameters=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}();var i=e.PlotCommonServiceBase=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));return n.CLASS_NAME="SuperMap.PlotCommonServiceBase",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.CommonServiceBase),n(e,[{key:"destroy",value:function(){(function t(e,o,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,n)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(n):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=SuperMap.Util.urlAppend(t.url,SuperMap.Util.getParameterString(t.params||{}))),t.params=t.data),SuperMap.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text()}).then(function(e){var o=(new SuperMap.Format.JSON).read(e);(o||(o={error:e}),o.error)?(t.scope?SuperMap.Function.bind(t.failure,t.scope):t.failure)(o.error):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?SuperMap.Function.bind(t.success,t.scope):t.success)(o))})}}]),e}();SuperMap.PlotCommonServiceBase=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=void 0;var n=o(90),i=o(89),l=o(88),r=o(87),a=o(86),s=o(85),u=o(84),p=o(83),c=o(82),y=o(81);e.PlotCommonServiceBase=n.PlotCommonServiceBase,e.EditSmlFileParameters=i.EditSmlFileParameters,e.EditSmlFileService=l.EditSmlFileService,e.GetLibIDsService=r.GetLibIDsService,e.GetLibInfoParameter=a.GetLibInfoParameter,e.GetLibInfoService=s.GetLibInfoService,e.GetSMLInfosParameters=u.GetSMLInfosParameters,e.GetSMLInfosService=p.GetSMLInfosService,e.GetSymbolInfoParameters=c.GetSymbolInfoParameters,e.GetSymbolInfoService=y.GetSymbolInfoService},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=SuperMap.Plot.GOAnimationType={ANIMATION_UNKNOWN:-1,ANIMATION_WAY:0,ANIMATION_BLINK:1,ANIMATION_ATTRIBUTE:2,ANIMATION_SHOW:3,ANIMATION_ROTATE:4,ANIMATION_SCALE:5,ANIMATION_GROW:6};e.GOAnimationType=n;var i=SuperMap.Plot.BlinkAnimationBlinkStyle={Blink_Frequency:0,Blink_Number:1};e.BlinkAnimationBlinkStyle=i;var l=SuperMap.Plot.BlinkAnimationReplaceStyle={Replace_NoColor:0,Replace_Color:1};e.BlinkAnimationReplaceStyle=l;var r=SuperMap.Plot.RotateDirection={ClockWise:0,AntiClockWise:1};e.RotateDirection=r;var a=SuperMap.Plot.WayPathType={POLYLINE:0,CURVE:1};e.WayPathType=a;var s=SuperMap.Plot.GOAnimationState={UNKNOWN:0,PLAYING:1,PAUSE:2,STOP:3,RESET:4};e.GOAnimationState=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationState=e.WayPathType=e.RotateDirection=e.BlinkAnimationReplaceStyle=e.BlinkAnimationBlinkStyle=e.GOAnimationType=void 0;var n=o(92);e.GOAnimationType=n.GOAnimationType,e.BlinkAnimationBlinkStyle=n.BlinkAnimationBlinkStyle,e.BlinkAnimationReplaceStyle=n.BlinkAnimationReplaceStyle,e.RotateDirection=n.RotateDirection,e.WayPathType=n.WayPathType,e.GOAnimationState=n.GOAnimationState},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Event=SuperMap.Plot.Event=SuperMap.Plot.Event||{};SuperMap.Plot.Event.beforefeatureadded="beforefeatureadded",SuperMap.Plot.Event.featureadded="featureadded",SuperMap.Plot.Event.beforefeaturesselected="beforefeaturesselected",SuperMap.Plot.Event.featuresselected="featuresselected",SuperMap.Plot.Event.beforefeaturesunselected="beforefeaturesunselected",SuperMap.Plot.Event.featuresunselected="featuresunselected",SuperMap.Plot.Event.beforefeaturesmodified="beforefeaturesmodified",SuperMap.Plot.Event.featuresmodified="featuresmodified",SuperMap.Plot.Event.initializecompleted="initializecompleted",SuperMap.Plot.Event.cachecompleted="cachecompleted",SuperMap.Plot.Event.reseteditmarkersvalues="reseteditmarkersvalues",SuperMap.Plot.Event.reseteditmarkers="reseteditmarkers"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=o(94);e.Event=n.Event},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowTailType=SuperMap.Plot.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},e.ArrowHeadType=SuperMap.Plot.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5,ARROWHEAD_COATTAIL_HOLLOW:6},e.ArrowBodyType=SuperMap.Plot.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4,ARROWBODY_COATTAIL:5},e.SymbolType=SuperMap.Plot.SymbolType={DOTSYMBOL:1,ALGOSYMBOL:2,TEXTSYMBOL:34,ELLIPSESYMBOL:31,CIRCLESYMBOL:29,RECTANGLESYMBOL:26,ARBITRARYPOLYGONSYMBOL:32,POLYLINESYMBOL:24,PARALLELOGRAM:28,ARCSYMBOL:44,REGULARPOLYGON:410,CHORDSYMBOL:370,PIESYMBOL:380,KIDNEY:390,POLYBEZIERSYMBOL:590,PARALLELLINE:48,BRACESYMBOL:400,ANNOFRAMESYMBOL:320,ANNOFRAMESYMBOLM:321,TRAPEZOIDSYMBOL:350,POLYBEZIERCLOSESYMBOL:360,GROUPOBJECT:1e3,LINERELATION:1001,INTERFERENCEBEAM:1002,POLYGONREGION:1003,ARCREGION:1004,AIRROUTE:1005,NAVYROUTE:1006,MISSILEROUTE:1007,NAVYDEPLOYMENT:1008,AIRDEPLOYMENT:1009,SATELLITE:1010,SATELLITETIMEWINDOWS:1011,SYMBOLTEXT:1012,RUNWAY:1013,CURVEEIGHT:1014,ROUTENODE:1015,ARROWLINE:1016,PATHTEXT:1017,LITERATESIGN:1018,CONCENTRICCIRCLE:1019,FLAGGROUP:1020,SYMBOLTEXT1:1021,COMBINATIONALCIRCLE:1022,FREECURVE:1023,SYMBOLTEXTBOX:1024,NODECHAIN:1025,LINEMARKING:1026,AVOIDREGION:1027,WIRE:1028},e.LineRelationType=SuperMap.Plot.LineRelationType={SOLID:0,DASH:1,ARROW:2},e.AlgoSurroundLineType=SuperMap.Plot.AlgoSurroundLineType={NONE:0,INNER:1,OUT:2,ALL:3},e.RouteNodeType=SuperMap.Plot.RouteNodeType={RENDEZVOUS:"RENDEZVOUS",EXPANDING:"EXPANDING",VOLLEY:"VOLLEY",STANDBY:"STANDBY",SUPPLY:"SUPPLY",TAKEOFF:"TAKEOFF",INITIAL:"INITIAL",VISUALINITAL:"VISUALINITAL",LANCH:"LANCH",TURNING:"TURNING",AIMING:"AIMING",COMMONROUTE:"COMMONROUTE",WEAPONLAUNCH:"WEAPONLAUNCH",TARGET:"TARGET",ATTACK:"ATTACK",SUPPRESS:"SUPPRESS",EIGHTSPIRAL:"EIGHTSPIRAL",HAPPYVALLEY:"HAPPYVALLEY"},e.RelLineText=SuperMap.Plot.RelLineText={ONLINE:0,ONLEFTLINE:1,ONRIGHTLINE:2,ONBOTHLINE:3},e.RadiusLineType=SuperMap.Plot.RadiusLineType={NONE:0,SOLID:1,ARROW:2},e.AnnoPosition=SuperMap.Plot.AnnoPosition={LEFTTOP:0,LEFTBOTTOM:1,RIGHTTOP:2,RIGHTBOTTOM:3,TOP:4,BOTTOM:5,LEFT:6,RIGHT:7},e.ArrowLineType=SuperMap.Plot.ArrowLineType={DOUBLELINE:0,TRIANGLESOLID:1,NONE:2},e.TextBoxType=SuperMap.Plot.TextBoxType={WITHTIPBOX:0,RECTBOX:1,LINEBOX:2,NONEBOX:3},e.PositionOffsetType=SuperMap.Plot.PositionOffsetType={LINE:0,GRADIENTLINE:1},e.AlignType=SuperMap.Plot.AlignType={LEFT:0,RIGHT:1,UP:2,DOWN:3,VERTICALCENTER:4,HORIZONTALCENTER:5},e.EditMode=SuperMap.Plot.EditMode={ADDCONTROLPOINT:0,EDITCONTROLPOINT:1,EDITCIRCUMRECTANGLE:2,REMOVECONTROLPOINT:3};SuperMap.Plot.EqualBigType={WIDTH:0,HEIGHT:1,SAME:2},SuperMap.Plot.EquiType={LEVEL:0,VERTICAL:1};e.TransactionType=SuperMap.Plot.TransactionType={CREATE:0,EDIT:1,REMOVE:2}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.SuperMap=window.SuperMap=window.SuperMap||{};e.Plot=n.Plot=n.Plot||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=void 0;var n=o(97),i=o(96),l=o(95),r=o(93),a=o(91),s=o(80),u=o(64);e.Plot=n.Plot,e.SymbolType=i.SymbolType,e.LineRelationType=i.LineRelationType,e.AlgoSurroundLineType=i.AlgoSurroundLineType,e.RouteNodeType=i.RouteNodeType,e.RelLineText=i.RelLineText,e.RadiusLineType=i.RadiusLineType,e.AnnoPosition=i.AnnoPosition,e.ArrowLineType=i.ArrowLineType,e.TextBoxType=i.TextBoxType,e.PositionOffsetType=i.PositionOffsetType,e.AlignType=i.AlignType,e.EditMode=i.EditMode,e.Event=l.Event,e.GOAnimationType=r.GOAnimationType,e.PlotCommonServiceBase=a.PlotCommonServiceBase,e.EditSmlFileParameters=a.EditSmlFileParameters,e.EditSmlFileService=a.EditSmlFileService,e.GetLibIDsService=a.GetLibIDsService,e.GetLibInfoParameter=a.GetLibInfoParameter,e.GetLibInfoService=a.GetLibInfoService,e.GetSMLInfosParameters=a.GetSMLInfosParameters,e.GetSMLInfosService=a.GetSMLInfosService,e.GetSymbolInfoParameters=a.GetSymbolInfoParameters,e.GetSymbolInfoService=a.GetSymbolInfoService,e.DefaultStyle=s.DefaultStyle,e.ExtendProperty=s.ExtendProperty,e.LayerDataStruct=s.LayerDataStruct,e.MapInfoStruct=s.MapInfoStruct,e.OrbitPoint=s.OrbitPoint,e.Property=s.Property,e.RouteNode=s.RouteNode,e.SitDataStruct=s.SitDataStruct,e.SMLInfoStruct=s.SMLInfoStruct,e.SubSymbol=s.SubSymbol,e.SymbolText=s.SymbolText,e.TimeWindowParameter=s.TimeWindowParameter,e.TowardNode=s.TowardNode,e.Transaction=s.Transaction,e.TransactionInfo=s.TransactionInfo,e.CalculateCanvasGradient=u.CalculateCanvasGradient,e.CalculateSVGGradient=u.CalculateSVGGradient},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Format=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=o(0),l=o(1);
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(113), o(108); var i, l = o(107), r = (i = l) && i.__esModule ? i : { default: i }, a = o(0), s = o(1); var u = window.fetch, p = (e.setCORS = a.SuperMap.setCORS = function (t) { a.SuperMap.CORS = t }, e.isCORS = a.SuperMap.isCORS = function () { return void 0 != a.SuperMap.CORS ? a.SuperMap.CORS : window.XMLHttpRequest && "withCredentials" in new window.XMLHttpRequest }), c = (e.setRequestTimeout = a.SuperMap.setRequestTimeout = function (t) { return a.SuperMap.RequestTimeout = t }, e.getRequestTimeout = a.SuperMap.getRequestTimeout = function () { return a.SuperMap.RequestTimeout || 45e3 }); e.FetchRequest = a.SuperMap.FetchRequest = { commit: function (t, e, o, n) { switch (t = t ? t.toUpperCase() : t) { case "GET": return this.get(e, o, n); case "POST": return this.post(e, o, n); case "PUT": return this.put(e, o, n); case "DELETE": return this.delete(e, o, n); default: return this.get(e, o, n) } }, supportDirectRequest: function (t, e) { return s.Util.isInTheSameDomain(t) || p() || e.proxy }, get: function (t, e, o) { o = o || {}; if (t = this._processUrl(t, o), t = s.Util.urlAppend(t, this._getParameterString(e || {})), !this.supportDirectRequest(t, o)) { var n = { url: t = t.replace(".json", ".jsonp"), data: e }; return a.SuperMap.Util.RequestJSONPPromise.GET(n) } return this.urlIsLong(t) ? this._postSimulatie("GET", t.substring(0, t.indexOf("?") - 1), e, o) : this._fetch(t, e, o, "GET") }, delete: function (t, e, o) { o = o || {}; if (t = this._processUrl(t, o), t = s.Util.urlAppend(t, this._getParameterString(e || {})), !this.supportDirectRequest(t, o)) { t = t.replace(".json", ".jsonp"); var n = { url: t += "&_method=DELETE", data: e }; return a.SuperMap.Util.RequestJSONPPromise.DELETE(n) } return this.urlIsLong(t) ? this._postSimulatie("DELETE", t.substring(0, t.indexOf("?") - 1), e, o) : this._fetch(t, e, o, "DELETE") }, post: function (t, e, o) { if (o = o || {}, !this.supportDirectRequest(t, o)) { t = t.replace(".json", ".jsonp"); var n = { url: t += "&_method=POST", data: e }; return a.SuperMap.Util.RequestJSONPPromise.POST(n) } return this._fetch(this._processUrl(t, o), e, o, "POST") }, put: function (t, e, o) { if (o = o || {}, t = this._processUrl(t, o), !this.supportDirectRequest(t, o)) { t = t.replace(".json", ".jsonp"); var n = { url: t += "&_method=PUT", data: e }; return a.SuperMap.Util.RequestJSONPPromise.DELETE(n) } return this._fetch(t, e, o, "PUT") }, urlIsLong: function (t) { for (var e = 0, o = null, n = 0, i = t.length; n < i; n++)(o = t.charCodeAt(n)) < 127 ? e++ : 128 <= o && o <= 2047 ? e += 2 : 2048 <= o && o <= 65535 && (e += 3); return !(e < 2e3) }, _postSimulatie: function (t, e, o, n) { return e += (e.indexOf("?") > -1 ? "&" : "?") + "_method=" + t, "string" != typeof o && (o = JSON.stringify(o)), this.post(e, o, n) }, _processUrl: function (t, e) { if (this._isMVTRequest(t)) return t; if (-1 === t.indexOf(".json") && !e.withoutFormatSuffix) if (t.indexOf("?") < 0) t += ".json"; else { var o = t.split("?"); 2 === o.length && (t = o[0] + ".json?" + o[1]) } return e && e.proxy && ("function" == typeof e.proxy ? t = e.proxy(t) : (t = decodeURIComponent(t), t = e.proxy + encodeURIComponent(t))), t }, _fetch: function (t, e, o, n) { return (o = o || {}).headers = o.headers || {}, o.headers["Content-Type"] || (o.headers["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"), o.timeout ? this._timeout(o.timeout, u(t, { method: n, headers: o.headers, body: "PUT" === n || "POST" === n ? e : void 0, credentials: o.withCredentials ? "include" : "omit", mode: "cors", timeout: c() }).then(function (t) { return t })) : u(t, { method: n, body: "PUT" === n || "POST" === n ? e : void 0, headers: o.headers, credentials: o.withCredentials ? "include" : "omit", mode: "cors", timeout: c() }).then(function (t) { return t }) }, _fetchJsonp: function (t, e) { return e = e || {}, (0, r.default)(t, { method: "GET", timeout: e.timeout }).then(function (t) { return t }) }, _timeout: function (t, e) { return new Promise(function (o, n) { setTimeout(function () { n(new Error("timeout")) }, t), e.then(o, n) }) }, _getParameterString: function (t) { var e = []; for (var o in t) { var i = t[o]; if (null != i && "function" != typeof i) { var l; if ("object" === (void 0 === i ? "undefined" : n(i)) && i.constructor === Array) { for (var r, a = [], s = 0, u = i.length; s < u; s++)r = i[s], a.push(encodeURIComponent(null === r || void 0 === r ? "" : r)); l = "[" + a.join(",") + "]" } else l = encodeURIComponent(i); e.push(encodeURIComponent(o) + "=" + l) } } return e.join("&") }, _isMVTRequest: function (t) { return t.indexOf(".mvt") > -1 || t.indexOf(".pbf") > -1 } }; a.SuperMap.Util.RequestJSONPPromise = { limitLength: 1500, queryKeys: [], queryValues: [], supermap_callbacks: {}, addQueryStrings: function (t) { for (var e in t) { this.queryKeys.push(e), "string" != typeof t[e] && (t[e] = a.SuperMap.Util.toJSON(t[e])); var o = encodeURIComponent(t[e]); this.queryValues.push(o) } }, issue: function (t) { for (var e = this, o = e.getUid(), n = t.url, i = [], l = new Promise(function (t) { e.supermap_callbacks[o] = function (n) { delete e.supermap_callbacks[o], t(n) } }), r = n, a = 0, s = e.queryKeys ? e.queryKeys.length : 0, u = 0; u < s; u++)if (r.length + e.queryKeys[u].length + 2 >= e.limitLength) { if (0 == a) return !1; i.push(r), r = n, a = 0, u-- } else if (r.length + e.queryKeys[u].length + 2 + e.queryValues[u].length > e.limitLength) for (var p = e.queryValues[u]; p.length > 0;) { var c = e.limitLength - r.length - e.queryKeys[u].length - 2; r.indexOf("?") > -1 ? r += "&" : r += "?"; var y = p.substring(0, c); "%" === y.substring(c - 1, c) ? (c -= 1, y = p.substring(0, c)) : "%" === y.substring(c - 2, c - 1) && (c -= 2, y = p.substring(0, c)), r += e.queryKeys[u] + "=" + y, p = p.substring(c), y.length > 0 && (i.push(r), r = n, a = 0) } else a++, r.indexOf("?") > -1 ? r += "&" : r += "?", r += e.queryKeys[u] + "=" + e.queryValues[u]; return i.push(r), e.send(i, "SuperMap.Util.RequestJSONPPromise.supermap_callbacks[" + o + "]", t && t.proxy), l }, getUid: function () { return 1e3 * (new Date).getTime() + Math.floor(1e17 * Math.random()) }, send: function (t, e, o) { var n = t.length; if (n > 0) for (var i = (new Date).getTime(), l = 0; l < n; l++) { var a = t[l]; a.indexOf("?") > -1 ? a += "&" : a += "?", a += "sectionCount=" + n, a += "§ionIndex=" + l, a += "&jsonpUserID=" + i, o && (a = decodeURIComponent(a), a = o + encodeURIComponent(a)), (0, r.default)(a, { jsonpCallbackFunction: e, timeout: 3e4 }) } }, GET: function (t) { return this.queryKeys.length = 0, this.queryValues.length = 0, this.addQueryStrings(t.params), this.issue(t) }, POST: function (t) { return this.queryKeys.length = 0, this.queryValues.length = 0, this.addQueryStrings({ requestEntity: t.data }), this.issue(t) }, PUT: function (t) { return this.queryKeys.length = 0, this.queryValues.length = 0, this.addQueryStrings({ requestEntity: t.data }), this.issue(t) }, DELETE: function (t) { return this.queryKeys.length = 0, this.queryValues.length = 0, this.addQueryStrings({ requestEntity: t.data }), this.issue(t) } }
+ }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbolFactory = void 0, o(3); e.AlgoSymbolFactory = SuperMap.Plot.AlgoSymbolFactory = SuperMap.Plot.AlgoSymbolFactory || {}; SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol = function (t) { var e = t.libID, o = t.code; return 0 !== e && 22 !== e && 421 !== e || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === e && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol(e, o, t) : 123 === e && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol(e, o, t) : 999 === e && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol(e, o, t) : null : SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol(e, o, t) }, SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType = function (t, e) { if (0 === t) switch (e) { case SuperMap.Plot.SymbolType.POLYLINESYMBOL: case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL: return SuperMap.Plot.AddPoint_WayType.POLYLINE; case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL: case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL: return SuperMap.Plot.AddPoint_WayType.CURVE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN }if (22 === t) switch (e) { case 1005: case 1008: case 1012: case 1014: return SuperMap.Plot.AddPoint_WayType.CURVE; case 1007: case 1009: case 1013: case 1015: return SuperMap.Plot.AddPoint_WayType.POLYLINE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN }if (100 === t) { if (void 0 !== SuperMap.Plot.JBAlgoSymbolFactory) return SuperMap.Plot.JBAlgoSymbolFactory.getSymbolWayType(t, e); switch (e) { case 15200: case 15201: case 16203: case 17703: case 17704: case 21400: case 21401: case 21500: case 21501: case 21502: case 21503: case 21504: case 21600: case 21900: case 22e3: case 22103: case 23800: case 24700: case 25201: case 25400: case 25601: case 25801: case 25901: case 26500: case 26501: case 26502: case 26503: case 26600: case 28900: case 29e3: case 29003: case 29903: case 3e4: case 30001: case 30002: case 30100: case 30102: case 30200: case 30201: case 30800: case 31803: case 33400: case 34900: case 34901: case 34902: case 35e3: case 36400: case 44200: case 3010102: case 3010103: case 3010104: case 3010105: case 3010106: case 3010107: case 3010108: case 3010301: case 3010302: case 3010303: case 3010304: return SuperMap.Plot.AddPoint_WayType.CURVE; case 12500: case 12502: case 16100: case 20300: case 25501: case 25502: case 25503: case 32900: case 34700: case 35200: case 36401: case 41200: case 41201: case 41202: case 42700: case 44400: return SuperMap.Plot.AddPoint_WayType.POLYLINE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } } if (123 === t) { if (void 0 !== SuperMap.Plot.WJAlgoSymbolFactory) return SuperMap.Plot.WJAlgoSymbolFactory.getSymbolWayType(t, e); switch (e) { case 21003: case 21207: case 2120701: case 2121503: case 21218: case 30008: case 3000801: case 3000802: case 3000803: case 3000804: case 3000805: case 3000806: case 3000807: case 3000808: case 3000809: case 30009: case 5021803: case 5022001: case 5022002: case 40301: case 4030101: case 4030102: case 4030103: case 4030104: case 40303: case 4030301: case 4030302: case 4030303: case 50101: case 5010101: case 50102: case 5010201: case 5010202: case 5010203: case 5010204: case 50103: case 5010301: case 5010302: case 5010303: case 5010304: case 50107: case 5010701: case 50210: case 50220: case 50221: case 50225: case 5030102: case 50303: case 5030301: case 50309: case 50320: case 5032001: case 5032002: case 5032003: case 50321: case 5032101: case 5032102: case 50322: case 5032201: case 50330: case 5033001: case 5034203: case 5035201: case 5035204: case 60205: case 90105: return SuperMap.Plot.AddPoint_WayType.CURVE; case 20915: case 2091502: case 2092101: case 2120702: case 21216: case 2121601: case 2121602: case 21605: case 30010: case 30011: case 3001101: case 3001102: case 3001103: case 3001104: case 3001105: case 30012: case 30020: case 3002001: case 3002002: case 3002005: case 30025: case 3002501: case 30026: case 40104: case 40302: case 4030201: case 4030202: case 4030203: case 4030204: case 50227: case 5035205: case 60301: case 6030101: case 6030102: case 6030103: case 6030104: case 6030105: case 6030106: case 6030107: case 70202: case 7020201: case 7020202: case 90107: return SuperMap.Plot.AddPoint_WayType.POLYLINE; default: return SuperMap.Plot.AddPoint_WayType.UNKNOWN } } }, SuperMap.Plot.AlgoSymbolFactory.isAccessServer = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer(t, e) : 999 !== t || void 0 === SuperMap.Plot.YJAlgoSymbolFactory || SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer(t, e) : SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer(t, e) }, SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols = function (t, e) { return 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols(t, e) : [] }, SuperMap.Plot.AlgoSymbolFactory.getMinEditPts = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts(t, e) : 0 : SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts(t, e) }, SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts(t, e) : 0 : SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts(t, e) }, SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle = function (t, e) { return 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle(t, e) : {} }, SuperMap.Plot.AlgoSymbolFactory.getSymbolName = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? "" : SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName(t, e) }, SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect = function (t, e) { return 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory && SuperMap.Plot.JBAlgoSymbolFactory.canPolylineConnect(t, e) }, SuperMap.Plot.AlgoSymbolFactory.canSetSubSymbol = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.canSetSubSymbol(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.canSetSubSymbol(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory && SuperMap.Plot.YJAlgoSymbolFactory.canSetSubSymbol(t, e) : SuperMap.Plot.BasicAlgoSymbolFactory.canSetSubSymbol(t, e) }, SuperMap.Plot.AlgoSymbolFactory.zoomInCalSymbol = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol(t, e) : 0 : SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol(t, e) }, SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol = function (t, e) { return 0 !== t && 22 !== t && 421 !== t || void 0 === SuperMap.Plot.BasicAlgoSymbolFactory ? 100 === t && void 0 !== SuperMap.Plot.JBAlgoSymbolFactory ? SuperMap.Plot.JBAlgoSymbolFactory.zoomCalSymbol(t, e) : 123 === t && void 0 !== SuperMap.Plot.WJAlgoSymbolFactory ? SuperMap.Plot.WJAlgoSymbolFactory.zoomCalSymbol(t, e) : 999 === t && void 0 !== SuperMap.Plot.YJAlgoSymbolFactory ? SuperMap.Plot.YJAlgoSymbolFactory.zoomCalSymbol(t, e) : 0 : SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol(t, e) } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol15200 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.05), o.scaleValues.push(0), o.scaleValues.push(.185)), o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); for (var o = 0, n = 0, i = e.length - 1; n < i; n++)o += SuperMap.Plot.PlottingUtil.distance(e[n], e[n + 1]); for (var l = 0, r = 0, a = t.length - 1; r < a; r++)l += SuperMap.Plot.PlottingUtil.distance(t[r], t[r + 1]); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue()); for (var s = this.scaleValues[0] * l, u = this.scaleValues[1], p = this.scaleValues[2] * l, c = .3 * p, y = p; y < o; y += p) { var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y, e); if (-1 === P.index) return void this.finish(); var h = y + c, f = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h, e); if (-1 === f.index) return void this.finish(); var S = [], d = []; S.push(P.pts); var g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[P.index], P.pts); 0 === u ? S.push(new SuperMap.Geometry.Point(g.pntLeft.x, g.pntLeft.y)) : S.push(new SuperMap.Geometry.Point(g.pntRight.x, g.pntRight.y)), d.push(f.pts); var M = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, e[f.index], f.pts); if (0 === u ? d.push(new SuperMap.Geometry.Point(M.pntLeft.x, M.pntLeft.y)) : d.push(new SuperMap.Geometry.Point(M.pntRight.x, M.pntRight.y)), p === y) { this.scalePoints = []; var m = new SuperMap.Geometry.Point(S[1].x, S[1].y); m.isScalePoint = !0, m.tag = 0, this.scalePoints.push(m), (m = new SuperMap.Geometry.Point(S[0].x, S[0].y)).isScalePoint = !0, m.tag = 1, this.scalePoints.push(m) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, S), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, d) } this.finish() } } }, { key: "computeScaleValues", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; for (var n = 0, i = 0, l = o.length - 1; i < l; i++)n += SuperMap.Plot.PlottingUtil.distance(o[i], o[i + 1]); var r = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o), a = new SuperMap.Geometry.Point(e.x, e.y); if (0 === t) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(r, n * this.scaleValues[2]); if (-1 === s.index) return; var u = SuperMap.Plot.PlottingUtil.distance(s.pt, a) / n, p = SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0], r[1], e); this.scaleValues[1] = p ? 1 : 0, this.scaleValues[0] = u } else if (1 === t) { for (var c = 0, y = -1, P = [], h = 0, f = r.length - 1; h < f; h++) { var S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, r[h], r[h + 1]); if (S.isOnline) { var d = SuperMap.Plot.PlottingUtil.distance(S.projectPoint, this.controlPoints[1]); 0 == c ? (c = d, y = h, P = e) : d < c && (c = d, y = h, P = e) } } if (-1 == y) return; for (var g = 0, M = 0, m = y - 1; M < m; M++)g += SuperMap.Plot.PlottingUtil.distance(r[M], r[M + 1]); var v = (g += SuperMap.Plot.PlottingUtil.distance(P, r[y])) / n; v > .7 && (v = .7), this.scaleValues[2] = v } } } }]), e }(); SuperMap.Plot.AlgoSymbol15200 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol315 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 !== o.scaleValues.length && (o.scaleValues = [], o.scaleValues.push(.2), o.scaleValues.push(.2), o.scaleValues.push(.4), o.scaleValues.push(.4), o.scaleValues.push(.1), o.scaleValues.push(.2), o.scaleValues.push(.1), o.scaleValues.push(.2), o.scaleValues.push(1), o.scaleValues.push(1)), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol315", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { for (var e = 0, o = 0; o < t.length - 1; o++)e += SuperMap.Plot.PlottingUtil.distance(t[o], t[o + 1]); SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this, arguments), this.scaleValues.length < 9 && (this.scaleValues = [], this.scaleValues.push(.2), this.scaleValues.push(.2), this.scaleValues.push(.4), this.scaleValues.push(.4), this.scaleValues.push(.1), this.scaleValues.push(.2), this.scaleValues.push(.1), this.scaleValues.push(.2), this.scaleValues.push(1), this.scaleValues.push(1)); var n, i = e * this.scaleValues[4], l = e * this.scaleValues[5], r = SuperMap.Plot.PlottingUtil.distance(t[1], t[0]), a = SuperMap.Plot.PlottingUtil.linePnt(t[1], t[0], r + l); n = (this.scaleValues[8], SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i, t[1], a)); var s, u = e * this.scaleValues[6], p = e * this.scaleValues[7], c = SuperMap.Plot.PlottingUtil.linePnt(t[0], t[1], r + p); s = (this.scaleValues[9], SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u, t[0], c)); var y = []; y.push(new SuperMap.Geometry.Point(n.pntLeft.x, n.pntLeft.y)), y.push(new SuperMap.Geometry.Point(t[0].x, t[0].y)), y.push(new SuperMap.Geometry.Point(t[1].x, t[1].y)), y.push(new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)); var P = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(y); P = SuperMap.Plot.PlottingUtil.clearSamePts(P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.addScalePoint(n.pntLeft, 3), this.addScalePoint(s.pntRight, 4) } } }, { key: "modifyPoint", value: function (t, o) { if (!0 === o.isScalePoint) { var n = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); n = SuperMap.Plot.PlottingUtil.clearSamePts(n); var i = SuperMap.Plot.PlottingUtil.polylineDistance(n), l = SuperMap.Plot.PlottingUtil.projectPoint(o, n[0], n[1]); if (t <= 2 && (SuperMap.Plot.AlgoSymbol1004.prototype.modifyPoint.apply(this, arguments), function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 }(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "modifyPoint", this).call(this, t, o)), 3 === t) { var r = SuperMap.Plot.PlottingUtil.distance(o, l) / i, a = SuperMap.Plot.PlottingUtil.distance(l, n[0]) / i; this.scaleValues[4] = r, this.scaleValues[5] = a, SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0], n[1], o) ? this.scaleValues[8] = 1 : this.scaleValues[8] = 0 } if (4 === t) { var s = SuperMap.Plot.PlottingUtil.distance(o, l) / i, u = SuperMap.Plot.PlottingUtil.distance(l, n[1]) / i; this.scaleValues[6] = s, this.scaleValues[7] = u, SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0], n[1], o) ? this.scaleValues[9] = 1 : this.scaleValues[9] = 0 } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol315 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1022 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.05), o.CLASS_NAME = "SuperMap.Geometry.AlgoSymbol1022", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = e * this.scaleValues[0], n = SuperMap.Plot.PlottingUtil.paraLine(t, o, !0), i = SuperMap.Plot.PlottingUtil.paraLine(t, o, !1), l = SuperMap.Plot.PlottingUtil.findPointInLine(n[0], n[1], .6 * e), r = SuperMap.Plot.PlottingUtil.findPointInLine(n[0], n[1], .5 * e), a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1 * e, n[0], r).pntLeft; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [a, l, n[1]], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }); var s = SuperMap.Plot.PlottingUtil.findPointInLine(i[0], i[1], .4 * e), u = SuperMap.Plot.PlottingUtil.findPointInLine(i[0], i[1], .5 * e), p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1 * e, i[0], u).pntRight; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [p, s, i[0]], { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [i[1], i[0]]), this.addScalePoint(n[0], 0), this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) { var i = SuperMap.Plot.PlottingUtil.distance(o[0], e) / n; this.scaleValues[0] = i } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol1022 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1021 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.25), o.CLASS_NAME = "SuperMap.Geometry.AlgoSymbol1021", o.QIANJI_RATE1 = 9, o.QIANJI_RATE2 = 20, o.QIANJI_RATE4 = 5, o.QIANJI_RATE3 = 1 / 3, o.QIANJI_TAIL_RATE1 = 8, o.QIANJI_TAIL_RATE2 = 3, o.QIANJI_TAIL_RATE3 = .6, o.SV1_Default = .25, o.SV1_MinValue = 0, o.SV1_MaxValue = .5, o.DEFAULT_ARROW_TAIL_POS = .4, o.SCALE_VALUE_COUNT = 1, o.MIN_LEN_LeftToRightCenter = 1e-7, o.SCALE_AT = 1 / 3, o.SCALE_ATAJ = 1 / 7, o.SCALE_ATAE = 1 / 3, o.SCALE_AW = 2 / 3, o.SCALE_ATAJctrlDefSide = .8, o.SCALE_ATAJctrlSameSide = 2 / 3, o.SCALE_MM_LEFT = .25, o.SCALE_MM_RIGHT = .75, o.BEZIER_K1 = 1 / 3, o.QIANJI_OPERATE_RATE1 = 1, o.m_dMaxDis = 0, o.m_bIsAnimation = !1, o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (t = SuperMap.Plot.PlottingUtil.clearSamePts(t), this.components = [], this.m_scalePoints = [], t.length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < 3)) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t), o = this.arrowMeshs(e); o.LeftArowHead.unshift(o.LeftArowLeftBody[0][o.LeftArowLeftBody[0].length - 1]), o.RightArowHead.unshift(o.RightArowLeftBody[o.RightArowLeftBody.length - 1]), o.LeftArowLeftBody[0].push(o.LeftArowHead[0]), o.RightArowLeftBody.push(o.RightArowHead[0]), o.shapePts.push(o.shapePts[0]); var n = SuperMap.Plot.PlottingUtil.polylineDistance(o.LeftArowLeftBody[0]), i = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4 * n, o.LeftArowLeftBody[0]), l = [], r = []; if (i.bfind) for (var a = 0; a <= i.index; a++)l.push(o.LeftArowLeftBody[0][a]); var s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * n, o.LeftArowLeftBody[0]); if (s.bfind) for (var u = s.index; u < o.LeftArowLeftBody[0].length - 1; u++)r.push(o.LeftArowLeftBody[0][u]); var p = SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowLeftBody), c = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4 * p, o.RightArowLeftBody), y = [], P = []; if (c.bfind) for (var h = 0; h <= c.index; h++)y.push(o.RightArowLeftBody[h]); var f = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * p, o.RightArowLeftBody); if (f.bfind) for (var S = f.index; S < o.RightArowLeftBody.length - 1; S++)P.push(o.RightArowLeftBody[S]); var d = SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowRightBody), g = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4 * d, o.RightArowRightBody), M = [], m = []; if (g.bfind) for (var v = 0; v <= g.index; v++)M.push(o.RightArowRightBody[v]); var b = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5 * d, o.RightArowRightBody); if (b.bfind) for (var T = b.index; T < o.RightArowRightBody.length - 1; T++)m.push(o.RightArowRightBody[T]); o.shapePts.length > 0 && (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o.shapePts, { strokeWidth: 0, weight: 0, lineWidthLimit: !0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, r), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o.LeftArowHead, { lineTypeLimit: !0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o.LeftArowRightBody), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o.RightArowHead, { lineTypeLimit: !0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m)), this.scalePoints = []; for (var A = 0; A < this.m_scalePoints.length; A++)this.m_scalePoints[A].isScalePoint = !0, this.m_scalePoints[A].tag = A, this.scalePoints.push(this.m_scalePoints[A]); this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var n, i = SuperMap.Plot.PlottingUtil.operateControlPoints(o), l = new SuperMap.Geometry.Point((i[0].x + i[1].x) / 2, (i[0].y + i[1].y) / 2), r = new SuperMap.Geometry.Point((i[2].x + i[3].x) / 2, (i[2].y + i[3].y) / 2), a = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, l, r); if (a.isOnline) { var s = SuperMap.Plot.PlottingUtil.distance(a.projectPoint, l), u = SuperMap.Plot.PlottingUtil.distance(l, r); (n = SuperMap.Plot.PlottingUtil.equalFuzzy(s, 0) ? this.SV1_MinValue : s / u) > this.SV1_MaxValue && (n = this.SV1_MaxValue) } else n = SuperMap.Plot.PlottingUtil.distance(a.projectPoint, l) < SuperMap.Plot.PlottingUtil.distance(a.projectPoint, r) ? this.SV1_MinValue : this.SV1_MaxValue; this.scaleValues = [], this.scaleValues.push(n) } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = new SuperMap.Plot.Path2D, o = []; o = this.m_bIsAnimation && 4 === t.length ? SuperMap.Plot.PlottingUtil.clonePoints(t) : SuperMap.Plot.PlottingUtil.operateControlPoints(t); var n = this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.distance(o[0], o[3]), l = SuperMap.Plot.PlottingUtil.distance(o[1], o[2]), r = o[1].clone(), a = .5 * (o[0].x + o[3].x), s = .5 * (o[0].y + o[3].y), u = new SuperMap.Geometry.Point(a, s), p = .5 * (o[1].x + o[2].x), c = .5 * (o[1].y + o[2].y), y = new SuperMap.Geometry.Point(p, c), P = SuperMap.Plot.PlottingUtil.distance(u, y); P < this.MIN_LEN_LeftToRightCenter && (P = this.MIN_LEN_LeftToRightCenter), u.x = a + i * (a - p) / (P * this.QIANJI_RATE1), u.y = s + i * (s - c) / (P * this.QIANJI_RATE1), y.x = p + l * (p - a) / (P * this.QIANJI_RATE1), y.y = c + l * (c - s) / (P * this.QIANJI_RATE1); var h = new SuperMap.Geometry.Point(0, 0), f = new SuperMap.Geometry.Point(0, 0); h.x = a + i * (a - p) / (P * this.QIANJI_RATE2), h.y = s + i * (s - c) / (P * this.QIANJI_RATE2), f.x = p + l * (p - a) / (P * this.QIANJI_RATE2), f.y = c + l * (c - s) / (P * this.QIANJI_RATE2); var S = new SuperMap.Geometry.Point((o[0].x + o[1].x) / 2, (o[0].y + o[1].y) / 2), d = new SuperMap.Geometry.Point((o[2].x + o[3].x) / 2, (o[2].y + o[3].y) / 2), g = o[3].x - (o[3].x - u.x) * this.SCALE_AT, M = o[3].y - (o[3].y - u.y) * this.SCALE_AT, m = o[2].x - (o[2].x - y.x) * this.SCALE_AT, v = o[2].y - (o[2].y - y.y) * this.SCALE_AT, b = new SuperMap.Geometry.Point(0, 0), T = new SuperMap.Geometry.Point(0, 0), A = new SuperMap.Geometry.Point(0, 0), L = new SuperMap.Geometry.Point(0, 0); T.x = g - (M - o[3].y) * this.SCALE_ATAJ, T.y = M + (g - o[3].x) * this.SCALE_ATAJ, b.x = g + (M - o[3].y) * this.SCALE_ATAJ, b.y = M - (g - o[3].x) * this.SCALE_ATAJ, L.x = m - (v - o[2].y) * this.SCALE_ATAJ, L.y = v + (m - o[2].x) * this.SCALE_ATAJ, A.x = m + (v - o[2].y) * this.SCALE_ATAJ, A.y = v - (m - o[2].x) * this.SCALE_ATAJ; var O = new SuperMap.Geometry.Point(0, 0), E = new SuperMap.Geometry.Point(0, 0), x = new SuperMap.Geometry.Point(0, 0), w = new SuperMap.Geometry.Point(0, 0); O.x = 3 * b.x - 2 * g - (o[3].x - g) * this.SCALE_ATAE, O.y = 3 * b.y - 2 * M - (o[3].y - M) * this.SCALE_ATAE, E.x = 3 * T.x - 2 * g - (o[3].x - g) * this.SCALE_ATAE, E.y = 3 * T.y - 2 * M - (o[3].y - M) * this.SCALE_ATAE, x.x = 3 * A.x - 2 * m - (o[2].x - m) * this.SCALE_ATAE, x.y = 3 * A.y - 2 * v - (o[2].y - v) * this.SCALE_ATAE, w.x = 3 * L.x - 2 * m - (o[2].x - m) * this.SCALE_ATAE, w.y = 3 * L.y - 2 * v - (o[2].y - v) * this.SCALE_ATAE, u.x = a + i * (a - p) / (P * this.QIANJI_RATE4), u.y = s + i * (s - c) / (P * this.QIANJI_RATE4), y.x = p + l * (p - a) / (P * this.QIANJI_RATE4), y.y = c + l * (c - s) / (P * this.QIANJI_RATE4); var I = new SuperMap.Geometry.Point(0, 0); I.x = o[0].x + (u.x - o[0].x) * this.SCALE_AW, I.y = o[0].y + (u.y - o[0].y) * this.SCALE_AW; var R = new SuperMap.Geometry.Point(0, 0); R.x = o[1].x + (y.x - o[1].x) * this.SCALE_AW, R.y = o[1].y + (y.y - o[1].y) * this.SCALE_AW; var C = new SuperMap.Geometry.Point(0, 0); C.x = b.x + (u.x - b.x) * this.SCALE_ATAJctrlSameSide, C.y = b.y + (u.y - b.y) * this.SCALE_ATAJctrlSameSide; var _ = new SuperMap.Geometry.Point(0, 0); _.x = L.x + (y.x - L.x) * this.SCALE_ATAJctrlSameSide, _.y = L.y + (y.y - L.y) * this.SCALE_ATAJctrlSameSide; var U = new SuperMap.Geometry.Point(0, 0); U.x = T.x + (h.x - T.x) * this.SCALE_ATAJctrlDefSide, U.y = T.y + (h.y - T.y) * this.SCALE_ATAJctrlDefSide; var N = new SuperMap.Geometry.Point(0, 0); N.x = A.x + (f.x - A.x) * this.SCALE_ATAJctrlDefSide, N.y = A.y + (f.y - A.y) * this.SCALE_ATAJctrlDefSide; var D = new SuperMap.Geometry.Point(0, 0); D.x = S.x + (d.x - S.x) * n, D.y = S.y + (d.y - S.y) * n, this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x, D.y)); var B = new SuperMap.Geometry.Point(0, 0), G = new SuperMap.Geometry.Point(0, 0); B.x = o[0].x + (o[3].x - o[0].x) * n, B.y = o[0].y + (o[3].y - o[0].y) * n, G.x = o[1].x + (o[2].x - o[1].x) * n, G.y = o[1].y + (o[2].y - o[1].y) * n, B.x = B.x + (D.x - B.x) * this.QIANJI_RATE3, B.y = B.y + (D.y - B.y) * this.QIANJI_RATE3, G.x = G.x + (D.x - G.x) * this.QIANJI_RATE3, G.y = G.y + (D.y - G.y) * this.QIANJI_RATE3; var k = []; k.push(o[0].clone()), k.push(I.clone()), k.push(C.clone()), k.push(b.clone()), e.MoveTo(k[0]), e.CurveTo(k[1], k[2], k[3]); var V, Y = [], F = [], j = [], z = [], W = [], H = [], q = []; for (e.ToSubPathPolygons(q), Y.push(q[0]), V = q[0].length, e.LineTo(O), e.LineTo(o[3]), e.LineTo(E), (k = []).push(T), k.push(U), k.push(B), k.push(D), e.LineTo(k[0]), q = [], e.ToSubPathPolygons(q); V < q[0].length; V++)F.push(q[0][V]); for (V = q[0].length, e.CurveTo(k[1], k[2], k[3]), q = [], e.ToSubPathPolygons(q); V < q[0].length; V++)j.push(q[0][V]); for (V = q[0].length, (k = []).push(G), k.push(N), k.push(A), e.CurveTo(k[0], k[1], k[2]), q = [], e.ToSubPathPolygons(q); V < q[0].length; V++)z.push(q[0][V]); for (V = q[0].length, e.LineTo(x), e.LineTo(o[2]), e.LineTo(w), (k = []).push(L), k.push(_), k.push(R), k.push(r), e.LineTo(k[0]), q = [], e.ToSubPathPolygons(q); V < q[0].length; V++)W.push(q[0][V]); for (V = q[0].length, e.CurveTo(k[1], k[2], k[3]), q = [], e.ToSubPathPolygons(q); V < q[0].length; V++)H.push(q[0][V]); return q = [], e.ToSubPathPolygons(q), { shapePts: q[0], LeftArowLeftBody: Y, LeftArowHead: F, LeftArowRightBody: j, ArowMidBody: [], RightArowLeftBody: z, RightArowHead: W, RightArowRightBody: H } } }]), e }(); SuperMap.Plot.AlgoSymbol1021 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1020 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.5), o.scaleValues.push(.222222), o.scaleValues.push(.5), o.scaleValues.push(.5), o.scaleValues.push(.5)), o.CLASS_NAME = "SuperMap.Geometry.AlgoSymbol1020", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.222222), this.scaleValues.push(.5), this.scaleValues.push(.5), this.scaleValues.push(.5)); var e = t[0].clone(), o = t[1].clone(), n = SuperMap.Plot.PlottingUtil.distance(e, o), i = this.scaleValues[0], l = new SuperMap.Geometry.Point(0, -n * i), r = new SuperMap.Geometry.Point(0, n * i), a = this.scaleValues[1], s = this.scaleValues[3], u = new SuperMap.Geometry.Point(n * (1 - s), -n * a), p = new SuperMap.Geometry.Point(n * (1 - s), n * a), c = this.scaleValues[2], y = this.scaleValues[4], P = new SuperMap.Geometry.Point(n * (1 - y), -n * c), h = new SuperMap.Geometry.Point(n * (1 - y), n * c), f = new SuperMap.Geometry.Point(n, 0), S = SuperMap.Plot.PlottingUtil.radian(e, o), d = SuperMap.Plot.PlottingUtil.distance(l, u), g = SuperMap.Plot.PlottingUtil.findPointInLine(l, u, .3 * d), M = SuperMap.Plot.PlottingUtil.findPointInLine(l, u, .4 * d), m = SuperMap.Plot.PlottingUtil.distance(p, r), v = SuperMap.Plot.PlottingUtil.findPointInLine(p, r, .6 * m), b = SuperMap.Plot.PlottingUtil.findPointInLine(p, r, .7 * m), T = []; T.push(l), T.push(g), T.push(M), T.push(u), T.push(P), T.push(f), T.push(h), T.push(p), T.push(v), T.push(b), T.push(r); for (var A = [], L = 0; L < T.length; L++) { var O = SuperMap.Plot.PlottingUtil.coordinateTrans(e, T[L], S * SuperMap.Plot.PlottingUtil.RTOD); A.push(O) } for (var E = [], x = A.length - 1; x >= 0; --x)E.push(A[x]); var w = SuperMap.Plot.PlottingUtil.clonePoints(E); w.push(w[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, w, { lineWidthLimit: !0, strokeWidth: 0, weight: 0, surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [E[0], E[1]]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [E[2], E[3]]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [E[3], E[4], E[5], E[6], E[7]], { lineTypeLimit: !0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [E[7], E[8]]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [E[9], E[10]]), this.scalePoints = []; var I = A[0].clone(); I.isScalePoint = !0, I.tag = 0, this.scalePoints.push(I); var R = A[3].clone(); R.isScalePoint = !0, R.tag = 1, this.scalePoints.push(R); var C = A[4].clone(); C.isScalePoint = !0, C.tag = 2, this.scalePoints.push(C), this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var n = SuperMap.Plot.PlottingUtil.distance(o[0], o[1]), i = o[0].clone(), l = o[1].clone(), r = e.clone(); if (0 == t) { var a = SuperMap.Plot.PlottingUtil.distance(r, i) / n; this.scaleValues[0] = a } else if (1 == t) { var s = SuperMap.Plot.PlottingUtil.projectPoint(r, i, l), u = SuperMap.Plot.PlottingUtil.distance(s, r) / n; this.scaleValues[1] = u; var p = SuperMap.Plot.PlottingUtil.distance(s, l) / n; this.scaleValues[3] = p } else if (2 == t) { var c = SuperMap.Plot.PlottingUtil.projectPoint(r, i, l), y = SuperMap.Plot.PlottingUtil.distance(c, r) / n; this.scaleValues[2] = y; var P = SuperMap.Plot.PlottingUtil.distance(c, l) / n; this.scaleValues[4] = P } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol1020 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1019 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.5), o.scaleValues.push(.222222), o.scaleValues.push(.5), o.scaleValues.push(.5), o.scaleValues.push(.5)), o.CLASS_NAME = "SuperMap.Geometry.AlgoSymbol1019", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { 0 == this.scaleValues.length && (this.scaleValues = [], this.scaleValues.push(.5), this.scaleValues.push(.222222), this.scaleValues.push(.5), this.scaleValues.push(.5), this.scaleValues.push(.5)); var e = t[0].clone(), o = t[1].clone(), n = SuperMap.Plot.PlottingUtil.distance(e, o), i = this.scaleValues[0], l = new SuperMap.Geometry.Point(0, -n * i), r = new SuperMap.Geometry.Point(0, n * i), a = this.scaleValues[1], s = this.scaleValues[3], u = new SuperMap.Geometry.Point(n * (1 - s), -n * a), p = new SuperMap.Geometry.Point(n * (1 - s), n * a), c = this.scaleValues[2], y = this.scaleValues[4], P = new SuperMap.Geometry.Point(n * (1 - y), -n * c), h = new SuperMap.Geometry.Point(n * (1 - y), n * c), f = new SuperMap.Geometry.Point(n, 0), S = SuperMap.Plot.PlottingUtil.radian(e, o), d = []; d.push(l), d.push(u), d.push(P), d.push(f), d.push(h), d.push(p), d.push(r), d.push(l); for (var g = [], M = 0; M < d.length; M++) { var m = SuperMap.Plot.PlottingUtil.coordinateTrans(e, d[M], S * SuperMap.Plot.PlottingUtil.RTOD); g.push(m) } for (var v = [], b = g.length - 1; b >= 0; --b)v.push(g[b]); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, v, { lineWidthLimit: !0, strokeWidth: 0, weight: 0, surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [v[2], v[1], v[7], v[6]], { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [v[6], v[5], v[4], v[3], v[2]], { lineTypeLimit: !0, surroundLineFlag: !1 }), this.scalePoints = []; var T = g[0].clone(); T.isScalePoint = !0, T.tag = 0, this.scalePoints.push(T); var A = g[1].clone(); A.isScalePoint = !0, A.tag = 1, this.scalePoints.push(A); var L = g[2].clone(); L.isScalePoint = !0, L.tag = 2, this.scalePoints.push(L), this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (e.isScalePoint && (t >= 0 || t < 3)) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); o = SuperMap.Plot.PlottingUtil.clearSamePts(o); var n = SuperMap.Plot.PlottingUtil.distance(o[0], o[1]), i = o[0].clone(), l = o[1].clone(), r = e.clone(); if (0 == t) { var a = SuperMap.Plot.PlottingUtil.distance(r, i) / n; this.scaleValues[0] = a } else if (1 == t) { var s = SuperMap.Plot.PlottingUtil.projectPoint(r, i, l), u = SuperMap.Plot.PlottingUtil.distance(s, r) / n; this.scaleValues[1] = u; var p = SuperMap.Plot.PlottingUtil.distance(s, l) / n; this.scaleValues[3] = p } else if (2 == t) { var c = SuperMap.Plot.PlottingUtil.projectPoint(r, i, l), y = SuperMap.Plot.PlottingUtil.distance(c, r) / n; this.scaleValues[2] = y; var P = SuperMap.Plot.PlottingUtil.distance(c, l) / n; this.scaleValues[4] = P } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol1019 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1018 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.MAX_ARRAY_SIZE = 128, o.sv1_DefaultAtLenDivAbLen = 0, o.sv2_DefaultAjWidthDivAtLen = .148, o.sv3_DefaultAeWidthDivAtLen = .4, o.sv4_DefaultAeLenDivAtLen = .312, o.sv_AtScaleParameter = 1.5, o.sv_AtLenDivAtWidth = 1.35, o.sv_AtWidthDivAwWidth = .5, o.sv_defaultAwLenDivAbLen = .15, 0 === o.scaleValues.length && (o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen), o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen), o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen), o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)), o.CLASS_NAME = "SuperMap.Geometry.AlgoSymbol1018", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(), this.applyUse() } }, { key: "applyUse", value: function () { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < 3)) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t), o = this.arrowMeshs(e), n = SuperMap.Plot.PlottingUtil.clonePoints(o.shapePts); (n = SuperMap.Plot.PlottingUtil.clearSamePts(n)).push(n[0]); var i = SuperMap.Plot.PlottingUtil.clearSamePts(o.leftBodyPts), l = SuperMap.Plot.PlottingUtil.clearSamePts(o.rightBodyPts), r = SuperMap.Plot.PlottingUtil.clearSamePts(o.arrowHeadPts); if (0 != o.shapePts.length) { var a = SuperMap.Plot.PlottingUtil.polylineDistance(i), s = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4 * a, i), u = [], p = [], c = []; if (s.bfind) for (var y = 0; y <= s.index; y++)u.push(i[y]); var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.45 * a, i), h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.8 * a, i); if (P.bfind && h.bfind) for (var f = P.index; f <= h.index; f++)p.push(i[f]); var S = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.85 * a, i); if (S.bfind) for (var d = S.index; d < i.length; d++)c.push(i[d]); var g = SuperMap.Plot.PlottingUtil.polylineDistance(l), M = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.15 * g, l), m = [], v = [], b = []; if (M.bfind) for (var T = 0; T <= M.index; T++)m.push(l[T]); var A = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2 * g, l), L = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.55 * g, l); if (A.bfind && L.bfind) for (var O = A.index; O <= L.index; O++)v.push(l[O]); var E = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6 * g, l); if (E.bfind) for (var x = E.index; x < l.length; x++)b.push(l[x]); var w = SuperMap.Plot.PlottingUtil.clonePoints(r); w.splice(0, 0, i[i.length - 1]), w.push(l[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, n, { lineWidthLimit: !0, strokeWidth: 0, weight: 0, surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, v, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, b, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, w, { surroundLineFlag: !1, lineTypeLimit: !0 }); var I = this.updateScalePoints(e); if (this.scalePoints = [], 3 != I.length) I = []; else for (var R = 0; R < I.length; R++)I[R].isScalePoint = !0, I[R].tag = R, this.scalePoints.push(I[R]); this.finish() } else this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.scaleValues.length < 4 && (this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen), this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen), this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen), this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen)); var n = o.length; if (n <= 2) return; var i, l, r, a, s = this.operateCtrlPts(o); n = s.length, n--; var u = this.calcScaleValueCount(o.length); if (this.scaleValues.length < u) { var p = this.calcDefaultScaleValues(n); i = p[0], l = p[1], r = p[2], a = p[3] } else i = this.scaleValues[0], l = this.scaleValues[1], r = this.scaleValues[2], a = this.scaleValues[3]; for (var c = SuperMap.Plot.PlottingUtil.polylineDistance(o), y = [], P = 0; P < this.scalePoints.length; P++)y.push(this.scalePoints[P].clone()); if (0 == y.length) return; y[t] = e.clone(); var h, f, S = n - 1; h = n <= 3 ? new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2) : s[S - 1].clone(); var d, g, M, m, v, b, T = new SuperMap.Geometry.Point(0, 0), A = new SuperMap.Geometry.Point(0, 0), L = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, h, s[S], s[S + 1], A, L), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, s[n], s[n - 1], L, T), f = T.clone(); var O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[2]); d = O.dLen1, O.dLen2, 0 == d && (d = .1), g = d, i = (d /= a + 1) / c, 1 == t ? (m = (O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[1])).dLen1, r = (v = O.dLen2) / d, a = (m - d) / d) : 0 == t ? (d = (O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[0])).dLen1, l = (M = O.dLen2) / d, (b = SuperMap.Plot.PlottingUtil.distance(s[n], s[n - 1])) < 2 * d && (d = .5 * b), m = (O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[1])).dLen1, r = (v = O.dLen2) / d, (a = (g - d) / d) < .1 && (r = v / (d = g / (1 + (a = .1))), l = M / d), i = d / c) : 2 == t && (i = d / c), M = d * l, (b = SuperMap.Plot.PlottingUtil.distance(s[n], s[n - 1])) < 2 * d && (M = (d = .5 * b) * l, i = d / c), this.scaleValues[0] = i, this.scaleValues[1] = l, this.scaleValues[2] = r, this.scaleValues[3] = a } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = [], o = [], n = [], i = [], l = SuperMap.Plot.PlottingUtil.clonePoints(t), r = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER), a = r.arrowTouLen, s = r.leftBodyPts, u = r.rightBodyPts; if (!SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) { var p = []; p.push(s[s.length - 1]), p.push(u[u.length - 1]); var c = []; c.push(this.scaleValues[2]), c.push(this.scaleValues[3]), c.push(0), c.push(0); for (var y = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l, p, c, a, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR), P = 0; P < s.length; P++)e.push(s[P]), o.push(s[P]); for (var h = 0; h < y.length; h++)e.push(y[h]), i.push(y[h]); for (var f = u.length - 1; f >= 0; f--)e.push(u[f]), n.push(u[f]) } return { shapePts: e, leftBodyPts: o, rightBodyPts: n, arrowHeadPts: i } } }, { key: "updateScalePoints", value: function (t) { var e = t.length, o = []; if (!(e < 3)) { var n = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) { var i = this.operateCtrlPts(t); e = i.length, e--; for (var l = [], r = 0; r < this.scaleValues.length; r++)l.push(this.scaleValues[r]); var a = this.genArrowBodyPts(n, i, l), s = a.ArrowBodyCenterPts, u = this.genAtPts(e, s, l, a.ArrowTouLen), p = this.calc3rdScalePt(e, s, l, a.ArrowTouLen); return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x, a.LeftBodyPtsTemp[e].y)), o.push(new SuperMap.Geometry.Point(u[2].x, u[2].y)), o.push(new SuperMap.Geometry.Point(p.x, p.y)), o } } } }, { key: "operateCtrlPts", value: function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t); if (3 === e.length) { var o = ((e[0].x + e[1].x) / 2 + e[2].x) / 2, n = ((e[0].y + e[1].y) / 2 + e[2].y) / 2, i = new SuperMap.Geometry.Point(o, n), l = e[2]; e[2] = i, e.push(l) } return e } }, { key: "genArrowBodyPts", value: function (t, e, o) { var n, i, l, r = [], a = [], s = [], u = [], p = [], c = [], y = e.length; if (y--, o.length < this.calcScaleValueCount(y)) { var P = this.calcDefaultScaleValues(y); i = P[0], l = P[1] } else i = o[0], l = o[1]; var h = SuperMap.Plot.PlottingUtil.clonePoints(e), f = (h[0].x + h[1].x) / 2, S = (h[0].y + h[1].y) / 2, d = Math.abs(f - h[2].x), g = Math.abs(S - h[2].y), M = 0; if (d > 0 && g > 0) { var m = 1 / (f - h[2].x), v = -1 / (S - h[2].y), b = 1 * h[2].y / (S - h[2].y) - 1 * h[2].x / (f - h[2].x); M = Math.abs(m * h[0].x + v * h[0].y + b) / Math.sqrt(m * m + v * v) } else g <= 1e-4 ? M = Math.abs(S - h[1].y) : d <= 1e-4 && (M = Math.abs(f - h[1].x)); var T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, h[2], new SuperMap.Geometry.Point(f, S)), A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1], h[2], h[0]); A ? (r[1] = h[1], a[1] = h[0]) : (r[1] = h[0], a[1] = h[1]), h[1] = new SuperMap.Geometry.Point((h[0].x + h[1].x) / 2, (h[0].y + h[1].y) / 2); var L = Math.sqrt((T.pntLeft.x - T.pntRight.x) * (T.pntLeft.x - T.pntRight.x) + (T.pntLeft.y - T.pntRight.y) * (T.pntLeft.y - T.pntRight.y)) * this.sv_AtWidthDivAwWidth, O = (n = L * this.sv_AtLenDivAtWidth) * l; SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || (O = (n = t * i) * l); var E, x, w = SuperMap.Plot.PlottingUtil.distance(h[y], h[y - 1]), I = 2 * n; w < I && (O = (n = w / 2) * l), h.push(h[y].clone()), E = 0, x = 0; var R = 0, C = []; for (R = 2; R <= y; R++)E += SuperMap.Plot.PlottingUtil.distance(h[R], h[R - 1]); for (E -= n, R = 2; R <= y - 1; R++)x += SuperMap.Plot.PlottingUtil.distance(h[R], h[R - 1]), C[R] = O + (L - O) * Math.pow((E - x) / E, this.sv_AtScaleParameter); C[y] = O; var _, U, N = new SuperMap.Geometry.Point(0, 0), D = new SuperMap.Geometry.Point(0, 0), B = new SuperMap.Geometry.Point(0, 0); for (R = 2; R <= y - 1; R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, h[R - 1], h[R], h[R + 1], D, B), R == y - 1 && SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, h[y], h[y - 1], B, N), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[R], D, h[R]), (A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(B, D, _.pntRight)) ? (r[R] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y), a[R] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y)) : (r[R] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), a[R] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)); for (Math.sqrt(1 * (h[y].x - N.x) * (h[y].x - N.x) + 1 * (h[y].y - N.y) * (h[y].y - N.y)) > 0 && (h[y] = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n, h[y], N)), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, h[y + 1], h[y]), (A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[y], h[y + 1], _.pntLeft)) ? (a[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), r[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)) : (a[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y), r[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y)), R = 2; R < y; R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, r[R - 1], r[R], r[R + 1], D, B), s[R] = new SuperMap.Geometry.Point(D.x, D.y), u[R] = new SuperMap.Geometry.Point(B.x, B.y), SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, a[R - 1], a[R], a[R + 1], D, B), p[R] = new SuperMap.Geometry.Point(D.x, D.y), c[R] = new SuperMap.Geometry.Point(B.x, B.y), 2 == R && (SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, r[1], r[2], s[2], N), u[R] = new SuperMap.Geometry.Point(N.x, N.y), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, a[1], a[2], p[2], N), c[R] = new SuperMap.Geometry.Point(N.x, N.y)), R == y - 1 && (I = (w = SuperMap.Plot.PlottingUtil.distance(r[y], r[y - 1])) / 3, (U = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I, h[y], h[y + 1])).x += r[y].x - h[y].x, U.y += r[y].y - h[y].y, I = (w = L - O) * Math.pow(I / E, this.sv_AtScaleParameter), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, r[y], U), s[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), I = (w = SuperMap.Plot.PlottingUtil.distance(a[y], a[y - 1])) / 3, (U = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I, h[y], h[y + 1])).x += a[y].x - h[y].x, U.y += a[y].y - h[y].y, I = (w = L - O) * Math.pow(I / E, this.sv_AtScaleParameter), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, a[y], U), p[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)); return { ArrowBodyCenterPts: SuperMap.Plot.PlottingUtil.clonePoints(h), LeftBodyPtsTemp: r, RightBodyPtsTemp: a, LeftBodyPtsLeftCtrlPts: s, LeftBodyPtsRightCtrlPts: u, RightBodyPtsLeftCtrlPts: p, RightBodyPtsRightCtrlPts: c, ArrowTouLen: n } } }, { key: "calcScaleValueCount", value: function () { return 4 } }, { key: "calcDefaultScaleValues", value: function () { var t = []; return t.push(this.sv1_DefaultAtLenDivAbLen), t.push(this.sv2_DefaultAjWidthDivAtLen), t.push(this.sv3_DefaultAeWidthDivAtLen), t.push(this.sv4_DefaultAeLenDivAtLen), t } }, { key: "genAtPts", value: function (t, e, o, n) { var i = o[2], l = [], r = n * o[3], a = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r, e[t], e[t + 1]); r = n * i; var s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, e[t + 1], a); return l.push(new SuperMap.Geometry.Point(s.pntLeft.x, s.pntLeft.y)), l.push(e[t + 1]), l.push(new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)), l } }, { key: "calc3rdScalePt", value: function (t, e, o, n) { var i = n * o[3]; return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i, e[t], e[t + 1]) } }]), e }(); SuperMap.Plot.AlgoSymbol1018 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1017 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.1), o.scaleValues.push(.2), o.scaleValues.push(0), o.scaleValues.push(.3), o.scaleValues.push(.3)), o.CLASS_NAME = "SuperMap.Geometry.AlgoSymbol1017", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= this.minEditPts) { this.scalePoints = []; var e = SuperMap.Plot.PlottingUtil.clonePoints(t); this.isEdit || (this.scaleValues[0] = 1.5 * this.getSubSymbolScaleValue()); var o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(e, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL), n = o.arrowTouLen, i = o.leftBodyPts, l = o.rightBodyPts, r = []; r.push(i[i.length - 1]), r.push(l[l.length - 1]); var a = []; a.push(this.scaleValues[3]), a.push(this.scaleValues[4]), a.push(this.scaleValues[0]), a.push(this.scaleValues[1]); var s = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(e, r, a, n, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR), u = []; u = (u = u.concat(i)).concat(s); for (var p = l.length - 1; p >= 0; p--)u.push(l[p]); u.push(u[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, u, { lineWidthLimit: !0, strokeWidth: 0, weight: 0, surroundLineFlag: !1 }); for (var c = SuperMap.Plot.PlottingUtil.clonePoints(i), y = [], P = l.length - 1; P >= 0; P--)y.push(l[P]); y = y.concat(c), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, y); var h = SuperMap.Plot.PlottingUtil.clonePoints(s); h.push(l[l.length - 1]), h.splice(0, 0, i[i.length - 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, h, { lineTypeLimit: !0 }); var f = new SuperMap.Geometry.Point((r[0].x + r[1].x) / 2, (r[0].y + r[1].y) / 2), S = new SuperMap.Geometry.Point(f.x, f.y); S.isScalePoint = !0, S.tag = 0, this.scalePoints.push(S); var d = new SuperMap.Geometry.Point(i[i.length - 1].x, i[i.length - 1].y); d.isScalePoint = !0, d.tag = 1, this.scalePoints.push(d); var g = new SuperMap.Geometry.Point(s[0].x, s[0].y); g.isScalePoint = !0, g.tag = 2, this.scalePoints.push(g), this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = new SuperMap.Geometry.Point(this.scalePoints[0].x, this.scalePoints[0].y), n = new SuperMap.Geometry.Point(this.scalePoints[1].x, this.scalePoints[1].y), i = new SuperMap.Geometry.Point(this.scalePoints[2].x, this.scalePoints[2].y), l = this.scaleValues[0], r = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); r = SuperMap.Plot.PlottingUtil.clearSamePts(r); var a = SuperMap.Plot.PlottingUtil.polylineDistance(r), s = a * l; if (0 == t) { var u = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, r[r.length - 2], r[r.length - 1]), p = u.projectPoint; if (u.isOnline) { var c = SuperMap.Plot.PlottingUtil.distance(p, r[r.length - 1]); this.scaleValues[0] = c / a } } else if (1 == t) { var y = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n, i).projectPoint, P = SuperMap.Plot.PlottingUtil.distance(y, o); this.scaleValues[1] = P / s } else if (2 == t) { var h = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, r[1], i).projectPoint, f = SuperMap.Plot.PlottingUtil.pointProjectToSegment(h, o, r[1]), S = f.projectPoint, d = SuperMap.Plot.PlottingUtil.distance(S, o); !1 === f.isOnline && (this.scaleValues[4] = d / s) } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol1017 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1016 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.1), o.arrowHeadType = t.arrowHeadType ? t.arrowHeadType : 0, o.arrowBodyType = t.arrowBodyType ? t.arrowBodyType : 0, o.arrowTailType = t.arrowTailType ? t.arrowTailType : 0, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1016", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fillStyle: 0, lineTypeLimit: !0 }; this.scaleValues[0] = this.getSubSymbolScaleValue(); var o, n = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], i = 2 * Math.sqrt(n * n / 3) / 1.4, l = Math.sqrt(n * n / 3), r = !1; this.arrowBodyType === SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL ? o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, n, this.arrowBodyType, r) : this.arrowHeadType === SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE || this.arrowHeadType === SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID ? (r = !0, o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, n, this.arrowBodyType, r)) : this.arrowHeadType === SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE ? o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, n, this.arrowBodyType, r) : this.arrowHeadType === SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW ? (r = !0, o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, i, this.arrowBodyType, r)) : this.arrowHeadType === SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL ? (r = !0, o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, l, this.arrowBodyType, r)) : o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, 0, this.arrowBodyType, r); var a = []; this.arrowBodyType === SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL ? (a.push(t[t.length - 1]), a.push(t[t.length - 2])) : r ? (a.push(t[t.length - 1]), a.push(o[o.length - 1])) : (a.push(o[o.length - 1]), a.push(o[o.length - 2])); var s, u = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(a, n, this.arrowHeadType); if (o.length > 1) if (this.arrowBodyType !== SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL) this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); else for (var p = 0, c = o.length - 1; p < c; p += 2) { var y = SuperMap.Plot.PlottingUtil.distance(o[p + 1], o[p]), P = 180 * SuperMap.Plot.PlottingUtil.radian(o[p + 1], o[p]) / Math.PI, h = SuperMap.Plot.PlottingUtil.circlePoint(o[p + 1], .3 * y, .3 * y, P + 30), f = SuperMap.Plot.PlottingUtil.circlePoint(o[p + 1], .3 * y, .3 * y, P + 330), S = SuperMap.Plot.PlottingUtil.circlePoint(o[p], .3 * y, .3 * y, P + 30), d = SuperMap.Plot.PlottingUtil.circlePoint(o[p], .3 * y, .3 * y, P + 330), g = []; g.push(h, o[p + 1], f, d, o[p], S), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, g, e) } s = this.arrowBodyType === SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER ? SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([o[0], o[1]], n, this.arrowTailType) : SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0], t[1]], n, this.arrowTailType); var M = SuperMap.Plot.SymbolType.POLYLINESYMBOL; this.arrowHeadType !== SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL && this.arrowHeadType !== SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID && this.arrowHeadType !== SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE && this.arrowHeadType !== SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW || (M = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL), u.length > 1 && this.addCell(M, u, e), s.length > 1 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } } }]), e }(); SuperMap.Plot.AlgoSymbol1016 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = e.AlgoSymbol1015 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.subSymbolDefaultPixelSize = 15, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1015", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1009), e }(); SuperMap.Plot.AlgoSymbol1015 = n }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = e.AlgoSymbol1014 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.subSymbolDefaultPixelSize = 15, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1014", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1008), e }(); SuperMap.Plot.AlgoSymbol1014 = n }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = e.AlgoSymbol1013 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.subSymbolDefaultPixelSize = 15, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1013", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1007), e }(); SuperMap.Plot.AlgoSymbol1013 = n }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = e.AlgoSymbol1012 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.subSymbolDefaultPixelSize = 15, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1012", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1005), e }(); SuperMap.Plot.AlgoSymbol1012 = n }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1011 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.sv1_DefaultAtLenDivAbLen = 0, o.sv2_DefaultAjWidthDivAtLen = .148, o.sv3_DefaultAeWidthDivAtLen = .4, o.sv4_DefaultAeLenDivAtLen = .312, o.sv_arrowTailWidth = .05, 5 !== o.scaleValues.length && (o.scaleValues = [], o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen), o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen), o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen), o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen), o.scaleValues.push(o.sv_arrowTailWidth)), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1011", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol1004), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < 2)) { var e = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (0 !== e) { var o = e * this.scaleValues[4], n = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o, t[1], t[0]); void 0 !== t[0].z && (n.pntLeft.z = t[0].z, n.pntRight.z = t[0].z), this.controlPoints = [], this.controlPoints.push(n.pntLeft), this.controlPoints.push(n.pntRight); for (var i = 1; i < t.length; i++)this.controlPoints.push(t[i].clone()); for (var l = [], r = 0; r < this.scaleValues.length; r++)l.push(this.scaleValues[r]); this.scaleValues = []; for (var a = 0; a < l.length - 1; a++)this.scaleValues.push(l[a]); SuperMap.Plot.AlgoSymbol1004.prototype.calculateParts.apply(this, arguments); var s = n.pntRight.clone(); s.isScalePoint = !0, s.tag = 3, this.addScalePoint(s), this.controlPoints = SuperMap.Plot.PlottingUtil.clonePoints(t), this.scaleValues = []; for (var u = 0; u < l.length; u++)this.scaleValues.push(l[u]) } } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (o.length < 2) return; this.scaleValues.length < 5 && (this.scaleValues = [], this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen), this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen), this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen), this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen), this.scaleValues.push(this.sv_arrowTailWidth)); var n, i = o[0].clone(), l = SuperMap.Plot.PlottingUtil.polylineDistance(o), r = l * this.scaleValues[4], a = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, o[1], o[0]); (o = []).push(a.pntLeft), o.push(a.pntRight); for (var s = 1; s < this.controlPoints.length; s++)o.push(this.controlPoints[s].clone()); var u, p, c, y, P, h = o.length, f = this.operateCtrlPts(o); h = f.length, h--; var S = this.calcScaleValueCount(o.length); if (S++, this.scaleValues.length < S) { var d = this.calcDefaultScaleValues(h); u = d[0], p = d[1], c = d[2], y = d[3], P = this.sv_arrowTailWidth } else u = this.scaleValues[0], p = this.scaleValues[1], c = this.scaleValues[2], y = this.scaleValues[3], P = this.scaleValues[4]; n = SuperMap.Plot.PlottingUtil.polylineDistance(o); for (var g = [], M = 0; M < this.scalePoints.length; M++)g.push(this.scalePoints[M].clone()); if (0 === g.length) return; g[t] = e.clone(); var m, v, b = h - 1; m = h <= 3 ? new SuperMap.Geometry.Point((f[0].x + f[1].x) / 2, (f[0].y + f[1].y) / 2) : f[b - 1].clone(); var T, A, L, O, E, x, w = new SuperMap.Geometry.Point(0, 0), I = new SuperMap.Geometry.Point(0, 0), R = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, m, f[b], f[b + 1], I, R), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, f[h], f[h - 1], R, w), v = w.clone(); var C = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h], v, g[2]); if (T = C.dLen1, C.dLen2, 0 === T && (T = .1), A = T, u = (T /= y + 1) / n, 1 === t) O = (C = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h], v, g[1])).dLen1, c = (E = C.dLen2) / T, y = (O - T) / T; else if (0 === t) T = (C = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h], v, g[0])).dLen1, p = (L = C.dLen2) / T, (x = SuperMap.Plot.PlottingUtil.distance(f[h], f[h - 1])) < 2 * T && (T = .5 * x), O = (C = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[h], v, g[1])).dLen1, c = (E = C.dLen2) / T, (y = (A - T) / T) < .1 && (c = E / (T = A / (1 + (y = .1))), p = L / T), u = T / n; else if (2 === t) u = T / n; else { P = SuperMap.Plot.PlottingUtil.distance(e, i) / l } L = T * p, (x = SuperMap.Plot.PlottingUtil.distance(f[h], f[h - 1])) < 2 * T && (L = (T = .5 * x) * p, u = T / n), this.scaleValues[0] = u, this.scaleValues[1] = p, this.scaleValues[2] = c, this.scaleValues[3] = y, this.scaleValues[4] = P } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = [], o = [], n = [], i = [], l = SuperMap.Plot.PlottingUtil.clonePoints(t), r = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER), a = r.arrowTouLen, s = r.leftBodyPts, u = r.rightBodyPts; if (!SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) { var p = []; p.push(s[s.length - 1]), p.push(u[u.length - 1]); var c = []; c.push(this.scaleValues[2]), c.push(this.scaleValues[3]), c.push(0), c.push(0); for (var y = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l, p, c, a, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR), P = 0; P < s.length; P++)e.push(s[P]), o.push(s[P]); for (var h = 0; h < y.length; h++)e.push(y[h]), i.push(y[h]); for (var f = u.length - 1; f >= 0; f--)e.push(u[f]), n.push(u[f]) } return { shapePts: e, leftBodyPts: o, rightBodyPts: n, arrowHeadPts: i } } }, { key: "updateScalePoints", value: function (t) { var e = t.length, o = []; if (!(e < 3)) { var n = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) { var i = this.operateCtrlPts(t); e = i.length, e--; for (var l = [], r = 0; r < this.scaleValues.length; r++)l.push(this.scaleValues[r]); var a = this.genArrowBodyPts(n, i, l), s = a.ArrowBodyCenterPts, u = this.genAtPts(e, s, l, a.ArrowTouLen), p = this.calc3rdScalePt(e, s, l, a.ArrowTouLen); return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x, a.LeftBodyPtsTemp[e].y)), o.push(new SuperMap.Geometry.Point(u[2].x, u[2].y)), o.push(new SuperMap.Geometry.Point(p.x, p.y)), o } } } }, { key: "operateCtrlPts", value: function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t); if (3 === e.length) { var o = ((e[0].x + e[1].x) / 2 + e[2].x) / 2, n = ((e[0].y + e[1].y) / 2 + e[2].y) / 2, i = new SuperMap.Geometry.Point(o, n), l = e[2]; e[2] = i, e.push(l) } return e } }, { key: "genArrowBodyPts", value: function (t, e, o) { var n, i, l, r = [], a = [], s = [], u = [], p = [], c = [], y = e.length; if (y--, o.length < this.calcScaleValueCount(y)) { var P = this.calcDefaultScaleValues(y); i = P[0], l = P[1] } else i = o[0], l = o[1]; var h = SuperMap.Plot.PlottingUtil.clonePoints(e), f = (h[0].x + h[1].x) / 2, S = (h[0].y + h[1].y) / 2, d = Math.abs(f - h[2].x), g = Math.abs(S - h[2].y), M = 0; if (d > 0 && g > 0) { var m = 1 / (f - h[2].x), v = -1 / (S - h[2].y), b = 1 * h[2].y / (S - h[2].y) - 1 * h[2].x / (f - h[2].x); M = Math.abs(m * h[0].x + v * h[0].y + b) / Math.sqrt(m * m + v * v) } else g <= 1e-4 ? M = Math.abs(S - h[1].y) : d <= 1e-4 && (M = Math.abs(f - h[1].x)); var T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, h[2], new SuperMap.Geometry.Point(f, S)), A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1], h[2], h[0]); A ? (r[1] = h[1], a[1] = h[0]) : (r[1] = h[0], a[1] = h[1]), h[1] = new SuperMap.Geometry.Point((h[0].x + h[1].x) / 2, (h[0].y + h[1].y) / 2); var L = Math.sqrt((T.pntLeft.x - T.pntRight.x) * (T.pntLeft.x - T.pntRight.x) + (T.pntLeft.y - T.pntRight.y) * (T.pntLeft.y - T.pntRight.y)) * this.sv_AtWidthDivAwWidth, O = (n = L * this.sv_AtLenDivAtWidth) * l; SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || (O = (n = t * i) * l); var E, x, w = SuperMap.Plot.PlottingUtil.distance(h[y], h[y - 1]), I = 2 * n; w < I && (O = (n = w / 2) * l), h.push(h[y].clone()), E = 0, x = 0; var R = 0, C = []; for (R = 2; R <= y; R++)E += SuperMap.Plot.PlottingUtil.distance(h[R], h[R - 1]); for (E -= n, R = 2; R <= y - 1; R++)x += SuperMap.Plot.PlottingUtil.distance(h[R], h[R - 1]), C[R] = O + (L - O) * Math.pow((E - x) / E, this.sv_AtScaleParameter); C[y] = O; var _, U, N = new SuperMap.Geometry.Point(0, 0), D = new SuperMap.Geometry.Point(0, 0), B = new SuperMap.Geometry.Point(0, 0); for (R = 2; R <= y - 1; R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, h[R - 1], h[R], h[R + 1], D, B), R === y - 1 && SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, h[y], h[y - 1], B, N), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[R], D, h[R]), (A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(B, D, _.pntRight)) ? (r[R] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y), a[R] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y)) : (r[R] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), a[R] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)); for (Math.sqrt(1 * (h[y].x - N.x) * (h[y].x - N.x) + 1 * (h[y].y - N.y) * (h[y].y - N.y)) > 0 && (h[y] = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n, h[y], N)), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, h[y + 1], h[y]), (A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[y], h[y + 1], _.pntLeft)) ? (a[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), r[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)) : (a[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y), r[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y)), R = 2; R < y; R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, r[R - 1], r[R], r[R + 1], D, B), s[R] = new SuperMap.Geometry.Point(D.x, D.y), u[R] = new SuperMap.Geometry.Point(B.x, B.y), SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, a[R - 1], a[R], a[R + 1], D, B), p[R] = new SuperMap.Geometry.Point(D.x, D.y), c[R] = new SuperMap.Geometry.Point(B.x, B.y), 2 === R && (SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, r[1], r[2], s[2], N), u[R] = new SuperMap.Geometry.Point(N.x, N.y), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, a[1], a[2], p[2], N), c[R] = new SuperMap.Geometry.Point(N.x, N.y)), R === y - 1 && (I = (w = SuperMap.Plot.PlottingUtil.distance(r[y], r[y - 1])) / 3, (U = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I, h[y], h[y + 1])).x += r[y].x - h[y].x, U.y += r[y].y - h[y].y, I = (w = L - O) * Math.pow(I / E, this.sv_AtScaleParameter), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, r[y], U), s[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), I = (w = SuperMap.Plot.PlottingUtil.distance(a[y], a[y - 1])) / 3, (U = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I, h[y], h[y + 1])).x += a[y].x - h[y].x, U.y += a[y].y - h[y].y, I = (w = L - O) * Math.pow(I / E, this.sv_AtScaleParameter), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, a[y], U), p[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)); return { ArrowBodyCenterPts: SuperMap.Plot.PlottingUtil.clonePoints(h), LeftBodyPtsTemp: r, RightBodyPtsTemp: a, LeftBodyPtsLeftCtrlPts: s, LeftBodyPtsRightCtrlPts: u, RightBodyPtsLeftCtrlPts: p, RightBodyPtsRightCtrlPts: c, ArrowTouLen: n } } }, { key: "calcScaleValueCount", value: function () { return 4 } }, { key: "calcDefaultScaleValues", value: function () { var t = []; return t.push(this.sv1_DefaultAtLenDivAbLen), t.push(this.sv2_DefaultAjWidthDivAtLen), t.push(this.sv3_DefaultAeWidthDivAtLen), t.push(this.sv4_DefaultAeLenDivAtLen), t } }, { key: "genAtPts", value: function (t, e, o, n) { var i = o[2], l = [], r = n * o[3], a = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r, e[t], e[t + 1]); r = n * i; var s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, e[t + 1], a); return l.push(new SuperMap.Geometry.Point(s.pntLeft.x, s.pntLeft.y)), l.push(e[t + 1]), l.push(new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)), l } }, { key: "calc3rdScalePt", value: function (t, e, o, n) { var i = n * o[3]; return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i, e[t], e[t + 1]) } }]), e }(); SuperMap.Plot.AlgoSymbol1011 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1010 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(0), o.scaleValues.push(.148), o.scaleValues.push(.4), o.scaleValues.push(.312), o.scaleValues.push(.2)), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1010", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { var e = this.arrowMeshs(t); if (SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts), 0 !== e.shapePts.length) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.shapePts, { surroundLineFlag: !1 }), this.scalePoints = []; for (var o = 0; o < e.m_scalePoints.length; o++)this.addScalePoint(e.m_scalePoints[o]) } } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); this.scaleValues.length < 4 && (this.scaleValues.push(0), this.scaleValues.push(.148), this.scaleValues.push(.4), this.scaleValues.push(.312), this.scaleValues.push(.2)); var n, i, l, r, a = o.length; if (a <= 2) return; this.scaleValues.length < 4 ? (n = 0, i = .148, l = .4, r = .312) : (n = this.scaleValues[0], i = this.scaleValues[1], l = this.scaleValues[2], r = this.scaleValues[3]); var s = SuperMap.Plot.PlottingUtil.polylineDistance(o), u = this.operateCtrlPts(o); a = u.length, a--; for (var p = [], c = 0; c < this.scalePoints.length; c++)p.push(this.scalePoints[c].clone()); if (0 === p.length) return; if (p[t] = e.clone(), 3 === t) { var y = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(o, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER), P = new SuperMap.Geometry.Point(.5 * (y.leftBodyPts[0].x + y.rightBodyPts[0].x), .5 * (y.leftBodyPts[0].y + y.rightBodyPts[0].y)), h = SuperMap.Plot.PlottingUtil.distance(y.leftBodyPts[0], y.rightBodyPts[0]); this.scaleValues[4] = SuperMap.Plot.PlottingUtil.distance(P, e) / h } else { var f, S, d = a - 1; f = a <= 3 ? new SuperMap.Geometry.Point((u[0].x + u[1].x) / 2, (u[0].y + u[1].y) / 2) : u[d - 1].clone(); var g, M, m, v, b, T, A = new SuperMap.Geometry.Point(0, 0), L = new SuperMap.Geometry.Point(0, 0), O = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, f, u[d], u[d + 1], L, O), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, u[a], u[a - 1], O, A), S = A.clone(); var E = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a], S, p[2]); g = E.dLen1, E.dLen2, 0 === g && (g = .1), M = g, n = (g /= r + 1) / s, 1 === t ? (v = (E = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a], S, p[1])).dLen1, l = (b = E.dLen2) / g, r = (v - g) / g) : 0 === t ? (g = (E = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a], S, p[0])).dLen1, i = (m = E.dLen2) / g, (T = SuperMap.Plot.PlottingUtil.distance(u[a], u[a - 1])) < 2 * g && (g = .5 * T), v = (E = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a], S, p[1])).dLen1, l = (b = E.dLen2) / g, (r = (M - g) / g) < .1 && (l = b / (g = M / (1 + (r = .1))), i = m / g), n = g / s) : 2 === t && (n = g / s), m = g * i, (T = SuperMap.Plot.PlottingUtil.distance(u[a], u[a - 1])) < 2 * g && (m = (g = .5 * T) * i, n = g / s), this.scaleValues[0] = n, this.scaleValues[1] = i, this.scaleValues[2] = l, this.scaleValues[3] = r } } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = [], o = [], n = [], i = [], l = [], r = [], a = SuperMap.Plot.PlottingUtil.clonePoints(t), s = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(a, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER), u = s.arrowTouLen, p = s.leftBodyPts, c = s.rightBodyPts; if (a = s.OpectrlPoints, !SuperMap.Plot.PlottingUtil.equalFuzzy(u, 0)) { var y = []; y.push(p[p.length - 1]), y.push(c[c.length - 1]); var P = []; P.push(this.scaleValues[2]), P.push(this.scaleValues[3]), P.push(0), P.push(0); var h = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(a, y, P, u, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR), f = []; f.push(p[0]), f.push(c[0]); for (var S, d = SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts(t, f, this.scaleValues[4], SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY), g = 0; g < p.length; g++)e.push(p[g]), o.push(p[g]); for (var M = 0; M < h.length; M++)e.push(h[M]), i.push(h[M]); for (var m = c.length - 1; m >= 0; m--)e.push(c[m]), n.push(c[m]); for (var v = 1; v < d.length; v++)e.push(d[v]), l.push(d[v]); var b = a.length; b -= 2; var T = u * this.scaleValues[3]; S = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(T, a[b], a[b + 1]); var A = new SuperMap.Geometry.Point(o[o.length - 1].x, o[o.length - 1].y); A.isScalePoint = !0, A.tag = 0, r.push(A), (A = new SuperMap.Geometry.Point(i[0].x, i[0].y)).isScalePoint = !0, A.tag = 1, r.push(A), (A = new SuperMap.Geometry.Point(S.x, S.y)).isScalePoint = !0, A.tag = 2, r.push(A), (A = new SuperMap.Geometry.Point(d[1].x, d[1].y)).isScalePoint = !0, A.tag = 3, r.push(A) } return { shapePts: e, leftBodyPts: o, rightBodyPts: n, arrowHeadPts: i, arrowTailPts: l, m_scalePoints: r } } }, { key: "operateCtrlPts", value: function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t); if (3 === e.length) { var o = ((e[0].x + e[1].x) / 2 + e[2].x) / 2, n = ((e[0].y + e[1].y) / 2 + e[2].y) / 2, i = new SuperMap.Geometry.Point(o, n), l = e[2]; e[2] = i, e.push(l) } return e } }]), e }(); SuperMap.Plot.AlgoSymbol1010 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1009 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.1), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1009", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = !1; void 0 !== t[0].z && (e = !0), this.scaleValues[0] = this.getSubSymbolScaleValue(); var o = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], n = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, 0, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE, !1), i = []; i.push(n[n.length - 1]), i.push(n[n.length - 2]); var l = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i, o, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE), r = []; r.push(n[0]), r.push(n[1]); var a = SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(r, o, SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL); if (e) { for (var s = t.length, u = [], p = [], c = [], y = 0; y < s; ++y)u.push({ x: ptsClone[y].x, y: ptsClone[y].y, z: t[y].z }); var P, h = { x: t[s - 1].x, y: t[s - 1].y, z: t[s - 1].z }, f = { x: t[s - 2].x, y: t[s - 2].y, z: t[s - 2].z }; P = this.ComputeZValue(n[s - 1], h, f), u.push({ x: n[s - 1].x, y: n[s - 1].y, z: P }); for (var S = 0; S < l.length; ++S)P = this.ComputeZValue(l[S], h, f), p.push({ x: l[S].x, y: l[S].y, z: P }); for (var d = { x: t[1].x, y: t[1].y, z: t[1].z }, g = { x: t[0].x, y: t[0].y, z: t[0].z }, M = 0; M < a.length; ++M)P = this.ComputeZValue(a[M], d, g), c.push({ x: a[M].x, y: a[M].y, z: P }); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, p), 0 !== c.length && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c) } else { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n, { surroundLineFlag: !1 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l), 0 !== a.length && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a) } } } }]), e }(); SuperMap.Plot.AlgoSymbol1009 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1008 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.1), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1008", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues[0] = this.getSubSymbolScaleValue(); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], o = Math.sqrt(e * e / 3), n = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, o, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER, !0), i = []; i.push(t[t.length - 1]), i.push(n[n.length - 1]); var l = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i, e, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL); n.push(t[t.length - 1]), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); l.length > 0 && this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l, { surroundLineFlag: !1, fillLimit: !0, fill: !0 }) } } }]), e }(); SuperMap.Plot.AlgoSymbol1008 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1007 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.1), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1007", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = !1; void 0 !== t[0].z && (e = !0), this.scaleValues[0] = this.getSubSymbolScaleValue(); var o = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], n = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, o, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE, !0), i = []; i.push(t[t.length - 1]), i.push(n[n.length - 1]); var l = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i, o, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID); if (e) { for (var r = t.length, a = [], s = [], u = 0; u < r; ++u)a.push({ x: n[u].x, y: n[u].y, z: t[u].z }); var p = { x: t[r - 1].x, y: t[r - 1].y, z: t[r - 1].z }, c = { x: t[r - 2].x, y: t[r - 2].y, z: t[r - 2].z }, y = this.ComputeZValue(n[r - 1], p, c); a.push({ x: n[r - 1].x, y: n[r - 1].y, z: y }); for (var P = 0; P < l.length; ++P) { var h = this.ComputeZValue(l[P], p, c); s.push({ x: l[P].x, y: l[P].y, z: h }) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, a); s.length > 0 && this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, s, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } else { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n); l.length > 0 && this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l, { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }) } } } }]), e }(); SuperMap.Plot.AlgoSymbol1007 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1006 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.QIANJI_RATE1 = 9, o.QIANJI_RATE2 = 20, o.QIANJI_RATE4 = 5, o.QIANJI_RATE3 = 1 / 3, o.QIANJI_TAIL_RATE1 = 8, o.QIANJI_TAIL_RATE2 = 3, o.QIANJI_TAIL_RATE3 = .6, o.SV1_Default = .25, o.SV1_MinValue = 0, o.SV1_MaxValue = .5, o.DEFAULT_ARROW_TAIL_POS = .4, o.SCALE_VALUE_COUNT = 1, o.MIN_LEN_LeftToRightCenter = 1e-7, o.SCALE_AT = 1 / 3, o.SCALE_ATAJ = 1 / 7, o.SCALE_ATAE = 1 / 3, o.SCALE_AW = 2 / 3, o.SCALE_ATAJctrlDefSide = .8, o.SCALE_ATAJctrlSameSide = 2 / 3, o.SCALE_MM_LEFT = .25, o.SCALE_MM_RIGHT = .75, o.BEZIER_K1 = 1 / 3, o.QIANJI_OPERATE_RATE1 = 1, 0 === o.scaleValues.length && o.scaleValues.push(o.SV1_Default), o.m_dMaxDis = 0, o.m_bIsAnimation = !1, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1006", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(), this.m_scalePoints = []; var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t), o = e.length, n = !1; void 0 !== e[0].z && (n = !0); var i = this.arrowMeshs(t); if (n) { for (var l = [], r = 0; r < o; r++)l.push(e[r]); var a = i.LeftArowLeftBody, s = i.LeftArowHead, u = i.LeftArowRightBody, p = i.RightArowLeftBody, c = i.RightArowHead, y = i.RightArowRightBody; if (0 == a.length) return !1; var P = [], h = [], f = []; if (3 == l.length) a[0].x == l[0].x && a[0].y == l[0].y ? (h.push(l[0]), h.push(l[2]), f.push(l[1]), f.push(l[2])) : (h.push(l[1]), h.push(l[2]), f.push(l[0]), f.push(l[2])); else { if (4 != l.length) return !1; a[0].x == l[0].x && a[0].y == l[0].y ? (h.push(l[0]), f.push(l[1])) : (h.push(l[1]), f.push(l[0])), s[1].x == l[2].x && s[1].y == l[2].y ? (h.push(l[2]), f.push(l[3])) : (h.push(l[3]), f.push(l[2])) } var S = new SuperMap.Geometry.Point; S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(a[a.length - 1], { x: h[0].x, y: h[0].y }, { x: h[1].x, y: h[1].y }).projectPoint; var d = this.ComputeZValue(S, h[1], h[0]), g = []; this.ComputeHeight(a, g, h[0].z, d), P = P.concat(g); for (var M = 0; M < s.length; M++) { S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(s[M], { x: h[0].x, y: h[0].y }, { x: h[1].x, y: h[1].y }).projectPoint; var m = this.ComputeZValue(S, h[1], h[0]); P.push({ x: s[M].x, y: s[M].y, z: m }) } S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[0], { x: h[0].x, y: h[0].y }, { x: h[1].x, y: h[1].y }).projectPoint, this.ComputeZValue(S, h[1], h[0]), S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[u.length - 1], { x: h[0].x, y: h[0].y }, { x: h[1].x, y: h[1].y }).projectPoint; var v = this.ComputeZValue(S, h[1], h[0]); S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[0], { x: f[0].x, y: f[0].y }, { x: f[1].x, y: f[1].y }).projectPoint; var b = (this.ComputeZValue(S, f[1], f[0]) + v) / 2, T = []; this.ComputeHeight(u, T, d, b), P = P.concat(T), S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[p.length - 1], { x: f[0].x, y: f[0].y }, { x: f[1].x, y: f[1].y }).projectPoint; var A = this.ComputeZValue(S, f[1], f[0]), L = []; this.ComputeHeight(p, L, b, A), P = P.concat(L); for (var O = 0; O < c.length; O++) { S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(c[O], { x: f[0].x, y: f[0].y }, { x: f[1].x, y: f[1].y }).projectPoint; var E = this.ComputeZValue(S, f[1], f[0]); P.push({ x: c[O].x, y: c[O].y, z: E }) } S = SuperMap.Plot.PlottingUtil.pointProjectToSegment(y[0], { x: f[0].x, y: f[0].y }, { x: f[1].x, y: f[1].y }).projectPoint; var x = this.ComputeZValue(S, f[1], f[0]), w = []; this.ComputeHeight(y, w, x, f[0].z), (P = P.concat(w)).length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, P, { surroundLineFlag: !1 }), this.m_scalePoints.length > 0 && (this.m_scalePoints[0] = { x: this.m_scalePoints[0].x, y: this.m_scalePoints[0].y, z: b }); for (var I = 0; I < this.m_scalePoints.length; I++)this.m_scalePoints[I].isScalePoint = !0, this.m_scalePoints[I].tag = I, this.addScalePoint(this.m_scalePoints[I]); return !0 } var R = i.shapePts; R.length > 0 && (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, R, { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 0, weight: 0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, R, { surroundLineFlag: !1 })), this.scalePoints = []; for (var C = 0; C < this.m_scalePoints.length; C++)this.m_scalePoints[C].isScalePoint = !0, this.m_scalePoints[C].tag = C, this.addScalePoint(this.m_scalePoints[C]) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o, n = SuperMap.Plot.PlottingUtil.operateControlPoints(this.controlPoints), i = new SuperMap.Geometry.Point((n[0].x + n[1].x) / 2, (n[0].y + n[1].y) / 2), l = new SuperMap.Geometry.Point((n[2].x + n[3].x) / 2, (n[2].y + n[3].y) / 2), r = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, i, l); if (r.isOnline) { var a = SuperMap.Plot.PlottingUtil.distance(r.projectPoint, i), s = SuperMap.Plot.PlottingUtil.distance(i, l); (o = SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0) ? this.SV1_MinValue : a / s) > this.SV1_MaxValue && (o = this.SV1_MaxValue) } else o = SuperMap.Plot.PlottingUtil.distance(r.projectPoint, i) < SuperMap.Plot.PlottingUtil.distance(r.projectPoint, l) ? this.SV1_MinValue : this.SV1_MaxValue; this.scaleValues = [], this.scaleValues.push(o) } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = new SuperMap.Plot.Path2D, o = []; this.m_bIsAnimation && 4 == t.length ? o = SuperMap.Plot.PlottingUtil.clonePoints(t) : (o = SuperMap.Plot.PlottingUtil.operateControlPoints(t), void 0 !== t[0].z && (o[o.length - 1].z = o[o.length - 2].z)); var n = this.scaleValues[0], i = SuperMap.Plot.PlottingUtil.distance(o[0], o[3]), l = SuperMap.Plot.PlottingUtil.distance(o[1], o[2]), r = o[1].clone(), a = .5 * (o[0].x + o[3].x), s = .5 * (o[0].y + o[3].y), u = new SuperMap.Geometry.Point(a, s), p = .5 * (o[1].x + o[2].x), c = .5 * (o[1].y + o[2].y), y = new SuperMap.Geometry.Point(p, c), P = SuperMap.Plot.PlottingUtil.distance(u, y); P < this.MIN_LEN_LeftToRightCenter && (P = this.MIN_LEN_LeftToRightCenter), u.x = a + i * (a - p) / (P * this.QIANJI_RATE1), u.y = s + i * (s - c) / (P * this.QIANJI_RATE1), y.x = p + l * (p - a) / (P * this.QIANJI_RATE1), y.y = c + l * (c - s) / (P * this.QIANJI_RATE1); var h = new SuperMap.Geometry.Point(0, 0), f = new SuperMap.Geometry.Point(0, 0); h.x = a + i * (a - p) / (P * this.QIANJI_RATE2), h.y = s + i * (s - c) / (P * this.QIANJI_RATE2), f.x = p + l * (p - a) / (P * this.QIANJI_RATE2), f.y = c + l * (c - s) / (P * this.QIANJI_RATE2); var S = new SuperMap.Geometry.Point((o[0].x + o[1].x) / 2, (o[0].y + o[1].y) / 2), d = new SuperMap.Geometry.Point((o[2].x + o[3].x) / 2, (o[2].y + o[3].y) / 2), g = o[3].x - (o[3].x - u.x) * this.SCALE_AT, M = o[3].y - (o[3].y - u.y) * this.SCALE_AT, m = o[2].x - (o[2].x - y.x) * this.SCALE_AT, v = o[2].y - (o[2].y - y.y) * this.SCALE_AT, b = new SuperMap.Geometry.Point(0, 0), T = new SuperMap.Geometry.Point(0, 0), A = new SuperMap.Geometry.Point(0, 0), L = new SuperMap.Geometry.Point(0, 0); T.x = g - (M - o[3].y) * this.SCALE_ATAJ, T.y = M + (g - o[3].x) * this.SCALE_ATAJ, b.x = g + (M - o[3].y) * this.SCALE_ATAJ, b.y = M - (g - o[3].x) * this.SCALE_ATAJ, L.x = m - (v - o[2].y) * this.SCALE_ATAJ, L.y = v + (m - o[2].x) * this.SCALE_ATAJ, A.x = m + (v - o[2].y) * this.SCALE_ATAJ, A.y = v - (m - o[2].x) * this.SCALE_ATAJ; var O = new SuperMap.Geometry.Point(0, 0), E = new SuperMap.Geometry.Point(0, 0), x = new SuperMap.Geometry.Point(0, 0), w = new SuperMap.Geometry.Point(0, 0); O.x = 3 * b.x - 2 * g - (o[3].x - g) * this.SCALE_ATAE, O.y = 3 * b.y - 2 * M - (o[3].y - M) * this.SCALE_ATAE, E.x = 3 * T.x - 2 * g - (o[3].x - g) * this.SCALE_ATAE, E.y = 3 * T.y - 2 * M - (o[3].y - M) * this.SCALE_ATAE, x.x = 3 * A.x - 2 * m - (o[2].x - m) * this.SCALE_ATAE, x.y = 3 * A.y - 2 * v - (o[2].y - v) * this.SCALE_ATAE, w.x = 3 * L.x - 2 * m - (o[2].x - m) * this.SCALE_ATAE, w.y = 3 * L.y - 2 * v - (o[2].y - v) * this.SCALE_ATAE, u.x = a + i * (a - p) / (P * this.QIANJI_RATE4), u.y = s + i * (s - c) / (P * this.QIANJI_RATE4), y.x = p + l * (p - a) / (P * this.QIANJI_RATE4), y.y = c + l * (c - s) / (P * this.QIANJI_RATE4); var I = new SuperMap.Geometry.Point(0, 0); I.x = o[0].x + (u.x - o[0].x) * this.SCALE_AW, I.y = o[0].y + (u.y - o[0].y) * this.SCALE_AW; var R = new SuperMap.Geometry.Point(0, 0); R.x = o[1].x + (y.x - o[1].x) * this.SCALE_AW, R.y = o[1].y + (y.y - o[1].y) * this.SCALE_AW; var C = new SuperMap.Geometry.Point(0, 0); C.x = b.x + (u.x - b.x) * this.SCALE_ATAJctrlSameSide, C.y = b.y + (u.y - b.y) * this.SCALE_ATAJctrlSameSide; var _ = new SuperMap.Geometry.Point(0, 0); _.x = L.x + (y.x - L.x) * this.SCALE_ATAJctrlSameSide, _.y = L.y + (y.y - L.y) * this.SCALE_ATAJctrlSameSide; var U = new SuperMap.Geometry.Point(0, 0); U.x = T.x + (h.x - T.x) * this.SCALE_ATAJctrlDefSide, U.y = T.y + (h.y - T.y) * this.SCALE_ATAJctrlDefSide; var N = new SuperMap.Geometry.Point(0, 0); N.x = A.x + (f.x - A.x) * this.SCALE_ATAJctrlDefSide, N.y = A.y + (f.y - A.y) * this.SCALE_ATAJctrlDefSide; var D = new SuperMap.Geometry.Point(0, 0); D.x = S.x + (d.x - S.x) * n, D.y = S.y + (d.y - S.y) * n, this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x, D.y)); var B = new SuperMap.Geometry.Point(0, 0), G = new SuperMap.Geometry.Point(0, 0); B.x = o[0].x + (o[3].x - o[0].x) * n, B.y = o[0].y + (o[3].y - o[0].y) * n, G.x = o[1].x + (o[2].x - o[1].x) * n, G.y = o[1].y + (o[2].y - o[1].y) * n, B.x = B.x + (D.x - B.x) * this.QIANJI_RATE3, B.y = B.y + (D.y - B.y) * this.QIANJI_RATE3, G.x = G.x + (D.x - G.x) * this.QIANJI_RATE3, G.y = G.y + (D.y - G.y) * this.QIANJI_RATE3; var k = []; k.push(o[0].clone()), k.push(I.clone()), k.push(C.clone()), k.push(b.clone()), e.MoveTo(k[0]), e.CurveTo(k[1], k[2], k[3]); var V, Y, F = [], j = [], z = [], W = [], H = [], q = []; for (e.ToSubPathPolygons(q), V = q[0], Y = q[0].length, e.LineTo(O), e.LineTo(o[3]), e.LineTo(E), (k = []).push(T), k.push(U), k.push(B), k.push(D), e.LineTo(k[0]), q = [], e.ToSubPathPolygons(q); Y < q[0].length; Y++)F.push(q[0][Y]); for (Y = q[0].length, e.CurveTo(k[1], k[2], k[3]), q = [], e.ToSubPathPolygons(q); Y < q[0].length; Y++)j.push(q[0][Y]); for (Y = q[0].length, (k = []).push(G), k.push(N), k.push(A), e.CurveTo(k[0], k[1], k[2]), q = [], e.ToSubPathPolygons(q); Y < q[0].length; Y++)z.push(q[0][Y]); for (Y = q[0].length, e.LineTo(x), e.LineTo(o[2]), e.LineTo(w), (k = []).push(L), k.push(_), k.push(R), k.push(r), e.LineTo(k[0]), q = [], e.ToSubPathPolygons(q); Y < q[0].length; Y++)W.push(q[0][Y]); for (Y = q[0].length, e.CurveTo(k[1], k[2], k[3]), q = [], e.ToSubPathPolygons(q); Y < q[0].length; Y++)H.push(q[0][Y]); return q = [], e.ToSubPathPolygons(q), { shapePts: q[0], LeftArowLeftBody: V, LeftArowHead: F, LeftArowRightBody: j, RightArowLeftBody: z, RightArowHead: W, RightArowRightBody: H } } }]), e }(); SuperMap.Plot.AlgoSymbol1006 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1005 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.1), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1005", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.scaleValues[0] = this.getSubSymbolScaleValue(); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t) * this.scaleValues[0], o = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t, e, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER, !1), n = []; n.push(o[o.length - 1]), n.push(o[o.length - 2]); var i = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n, e, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o), i.length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i) } } }]), e }(); SuperMap.Plot.AlgoSymbol1005 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1004 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.MAX_ARRAY_SIZE = 128, o.sv1_DefaultAtLenDivAbLen = 0, o.sv2_DefaultAjWidthDivAtLen = .148, o.sv3_DefaultAeWidthDivAtLen = .4, o.sv4_DefaultAeLenDivAtLen = .312, o.sv_AtScaleParameter = 1.5, o.sv_AtLenDivAtWidth = 1.35, o.sv_AtWidthDivAwWidth = .5, o.sv_defaultAwLenDivAbLen = .15, 0 === o.scaleValues.length && (o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen), o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen), o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen), o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1004", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(), this.applyUse() } }, { key: "applyUse", value: function () { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { var e = this.arrowMeshs(t); SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts); var o = SuperMap.Plot.PlottingUtil.clonePoints(t), n = o.length, i = !1; if (void 0 !== o[0].z && (i = !0), i) { for (var l = e.leftBodyPts, r = e.rightBodyPts, a = e.arrowHeadPts, s = e.shapePts, u = [], p = 0; p < s.length; p++)u.push({ x: s[p].x, y: s[p].y, z: 0 }); if (0 == s.length) return !1; var c = this.updateScalePoints(t); if (this.scalePoints = [], 3 != c.length) c = []; else for (var y = 0; y < c.length; y++)c[y].isScalePoint = !0, c[y].tag = y, this.addScalePoint(c[y]); var P = [], h = { x: (o[0].x + o[1].x) / 2, y: (o[0].y + o[1].y) / 2 }, f = { x: (l[l.length - 1].x + r[0].x) / 2, y: (l[l.length - 1].y + r[0].y) / 2 }, S = this.ComputeZValue(f, o[n - 1], o[n - 2]), d = 0, g = 0; l[0].x == o[0].x && l[0].y == o[0].y ? (d = o[0].z, g = o[1].z) : (d = o[1].z, g = o[0].z), P.push({ x: h.x, y: h.y, z: d }); for (var M = 2; M < n - 1; M++)P.push(o[M]); P.push({ x: f.x, y: f.y, z: S }); var m = []; this.ComputeBeizerZValueByDis(P, l, m), (P = []).push({ x: f.x, y: f.y, z: S }); for (var v = n - 2; v >= 2; v--)P.push(o[v]); P.push({ x: h.x, y: h.y, z: g }); var b = []; this.ComputeBeizerZValueByDis(P, r, b); for (var T = [], A = 0; A < a.length; A++) { var L = this.ComputeZValue(a[A], o[n - 1], o[n - 2]); T.push({ x: a[A].x, y: a[A].y, z: L }) } if (m.length > 0 && b.length > 0 && T.length > 0) { u = (u = (u = (u = []).concat(m)).concat(T)).concat(b), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u, { surroundLineFlag: !1 }); for (var O = [], E = 0; E < c.length; E++) { var x = this.ComputeZValue(c[E], o[n - 1], o[n - 2]), w = new SuperMap.Geometry.Point(c[E].x, c[E].y); w.z = x, O.push(w) } 3 != c.length ? this.scalePoints = [] : this.scalePoints = this.scalePoints.concat(O) } } else { if (0 == e.shapePts.length) return; if (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.shapePts, { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 0, weight: 0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e.shapePts, { surroundLineFlag: !1 }), c = this.updateScalePoints(t), this.scalePoints = [], 3 != c.length) c = []; else for (var I = 0; I < c.length; I++)c[I].isScalePoint = !0, c[I].tag = I, this.addScalePoint(c[I]) } } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); o = SuperMap.Plot.PlottingUtil.clearSamePts(o), this.scaleValues.length < 4 && (this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen), this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen), this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen), this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen)); var n = o.length; if (n <= 2) return; var i, l, r, a, s = this.operateCtrlPts(o); n = s.length, n--; var u = this.calcScaleValueCount(o.length); if (this.scaleValues.length < u) { var p = this.calcDefaultScaleValues(n); i = p[0], l = p[1], r = p[2], a = p[3] } else i = this.scaleValues[0], l = this.scaleValues[1], r = this.scaleValues[2], a = this.scaleValues[3]; for (var c = SuperMap.Plot.PlottingUtil.polylineDistance(o), y = [], P = 0; P < this.scalePoints.length; P++)y.push(this.scalePoints[P].clone()); if (0 == y.length) return; y[t] = e.clone(); var h, f, S = n - 1; h = n <= 3 ? new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2) : s[S - 1].clone(); var d, g, M, m, v, b, T = new SuperMap.Geometry.Point(0, 0), A = new SuperMap.Geometry.Point(0, 0), L = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, h, s[S], s[S + 1], A, L), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, s[n], s[n - 1], L, T), f = T.clone(); var O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[2]); d = O.dLen1, O.dLen2, 0 == d && (d = .1), g = d, i = (d /= a + 1) / c, 1 == t ? (m = (O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[1])).dLen1, r = (v = O.dLen2) / d, a = (m - d) / d) : 0 == t ? (d = (O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[0])).dLen1, l = (M = O.dLen2) / d, (b = SuperMap.Plot.PlottingUtil.distance(s[n], s[n - 1])) < 2 * d && (d = .5 * b), m = (O = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[n], f, y[1])).dLen1, r = (v = O.dLen2) / d, (a = (g - d) / d) < .1 && (r = v / (d = g / (1 + (a = .1))), l = M / d), i = d / c) : 2 == t && (i = d / c), M = d * l, (b = SuperMap.Plot.PlottingUtil.distance(s[n], s[n - 1])) < 2 * d && (M = (d = .5 * b) * l, i = d / c), this.scaleValues[0] = i, this.scaleValues[1] = l, this.scaleValues[2] = r, this.scaleValues[3] = a } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = [], o = [], n = [], i = [], l = SuperMap.Plot.PlottingUtil.clonePoints(t), r = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER), a = r.arrowTouLen, s = r.leftBodyPts, u = r.rightBodyPts; if (!SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) { var p = []; p.push(s[s.length - 1]), p.push(u[u.length - 1]); var c = []; c.push(this.scaleValues[2]), c.push(this.scaleValues[3]), c.push(0), c.push(0); for (var y = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l, p, c, a, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR), P = 0; P < s.length; P++)e.push(s[P]), o.push(s[P]); for (var h = 0; h < y.length; h++)e.push(y[h]), i.push(y[h]); for (var f = u.length - 1; f >= 0; f--)e.push(u[f]), n.push(u[f]) } return { shapePts: e, leftBodyPts: o, rightBodyPts: n, arrowHeadPts: i } } }, { key: "updateScalePoints", value: function (t) { var e = t.length, o = []; if (!(e < 3)) { var n = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (!SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0)) { var i = this.operateCtrlPts(t); e = i.length, e--; for (var l = [], r = 0; r < this.scaleValues.length; r++)l.push(this.scaleValues[r]); var a = this.genArrowBodyPts(n, i, l), s = a.ArrowBodyCenterPts, u = this.genAtPts(e, s, l, a.ArrowTouLen), p = this.calc3rdScalePt(e, s, l, a.ArrowTouLen); return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x, a.LeftBodyPtsTemp[e].y)), o.push(new SuperMap.Geometry.Point(u[2].x, u[2].y)), o.push(new SuperMap.Geometry.Point(p.x, p.y)), o } } } }, { key: "operateCtrlPts", value: function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t); if (3 === e.length) { var o = ((e[0].x + e[1].x) / 2 + e[2].x) / 2, n = ((e[0].y + e[1].y) / 2 + e[2].y) / 2, i = new SuperMap.Geometry.Point(o, n), l = e[2]; e[2] = i, e.push(l) } return e } }, { key: "genArrowBodyPts", value: function (t, e, o) { var n, i, l, r = [], a = [], s = [], u = [], p = [], c = [], y = e.length; if (y--, o.length < this.calcScaleValueCount(y)) { var P = this.calcDefaultScaleValues(y); i = P[0], l = P[1] } else i = o[0], l = o[1]; var h = SuperMap.Plot.PlottingUtil.clonePoints(e), f = (h[0].x + h[1].x) / 2, S = (h[0].y + h[1].y) / 2, d = Math.abs(f - h[2].x), g = Math.abs(S - h[2].y), M = 0; if (d > 0 && g > 0) { var m = 1 / (f - h[2].x), v = -1 / (S - h[2].y), b = 1 * h[2].y / (S - h[2].y) - 1 * h[2].x / (f - h[2].x); M = Math.abs(m * h[0].x + v * h[0].y + b) / Math.sqrt(m * m + v * v) } else g <= 1e-4 ? M = Math.abs(S - h[1].y) : d <= 1e-4 && (M = Math.abs(f - h[1].x)); var T = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M, h[2], new SuperMap.Geometry.Point(f, S)), A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1], h[2], h[0]); A ? (r[1] = h[1], a[1] = h[0]) : (r[1] = h[0], a[1] = h[1]), h[1] = new SuperMap.Geometry.Point((h[0].x + h[1].x) / 2, (h[0].y + h[1].y) / 2); var L = Math.sqrt((T.pntLeft.x - T.pntRight.x) * (T.pntLeft.x - T.pntRight.x) + (T.pntLeft.y - T.pntRight.y) * (T.pntLeft.y - T.pntRight.y)) * this.sv_AtWidthDivAwWidth, O = (n = L * this.sv_AtLenDivAtWidth) * l; SuperMap.Plot.PlottingUtil.equalFuzzy(i, 0) || (O = (n = t * i) * l); var E, x, w = SuperMap.Plot.PlottingUtil.distance(h[y], h[y - 1]), I = 2 * n; w < I && (O = (n = w / 2) * l), h.push(h[y].clone()), E = 0, x = 0; var R = 0, C = []; for (R = 2; R <= y; R++)E += SuperMap.Plot.PlottingUtil.distance(h[R], h[R - 1]); for (E -= n, R = 2; R <= y - 1; R++)x += SuperMap.Plot.PlottingUtil.distance(h[R], h[R - 1]), C[R] = O + (L - O) * Math.pow((E - x) / E, this.sv_AtScaleParameter); C[y] = O; var _, U, N = new SuperMap.Geometry.Point(0, 0), D = new SuperMap.Geometry.Point(0, 0), B = new SuperMap.Geometry.Point(0, 0); for (R = 2; R <= y - 1; R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, h[R - 1], h[R], h[R + 1], D, B), R == y - 1 && SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, h[y], h[y - 1], B, N), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[R], D, h[R]), (A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(B, D, _.pntRight)) ? (r[R] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y), a[R] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y)) : (r[R] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), a[R] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)); for (Math.sqrt(1 * (h[y].x - N.x) * (h[y].x - N.x) + 1 * (h[y].y - N.y) * (h[y].y - N.y)) > 0 && (h[y] = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n, h[y], N)), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O, h[y + 1], h[y]), (A = SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[y], h[y + 1], _.pntLeft)) ? (a[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), r[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)) : (a[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y), r[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y)), R = 2; R < y; R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, r[R - 1], r[R], r[R + 1], D, B), s[R] = new SuperMap.Geometry.Point(D.x, D.y), u[R] = new SuperMap.Geometry.Point(B.x, B.y), SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, a[R - 1], a[R], a[R + 1], D, B), p[R] = new SuperMap.Geometry.Point(D.x, D.y), c[R] = new SuperMap.Geometry.Point(B.x, B.y), 2 == R && (SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, r[1], r[2], s[2], N), u[R] = new SuperMap.Geometry.Point(N.x, N.y), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, a[1], a[2], p[2], N), c[R] = new SuperMap.Geometry.Point(N.x, N.y)), R == y - 1 && (I = (w = SuperMap.Plot.PlottingUtil.distance(r[y], r[y - 1])) / 3, (U = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I, h[y], h[y + 1])).x += r[y].x - h[y].x, U.y += r[y].y - h[y].y, I = (w = L - O) * Math.pow(I / E, this.sv_AtScaleParameter), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, r[y], U), s[y] = new SuperMap.Geometry.Point(_.pntLeft.x, _.pntLeft.y), I = (w = SuperMap.Plot.PlottingUtil.distance(a[y], a[y - 1])) / 3, (U = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I, h[y], h[y + 1])).x += a[y].x - h[y].x, U.y += a[y].y - h[y].y, I = (w = L - O) * Math.pow(I / E, this.sv_AtScaleParameter), _ = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I, a[y], U), p[y] = new SuperMap.Geometry.Point(_.pntRight.x, _.pntRight.y)); return { ArrowBodyCenterPts: SuperMap.Plot.PlottingUtil.clonePoints(h), LeftBodyPtsTemp: r, RightBodyPtsTemp: a, LeftBodyPtsLeftCtrlPts: s, LeftBodyPtsRightCtrlPts: u, RightBodyPtsLeftCtrlPts: p, RightBodyPtsRightCtrlPts: c, ArrowTouLen: n } } }, { key: "calcScaleValueCount", value: function () { return 4 } }, { key: "calcDefaultScaleValues", value: function () { var t = []; return t.push(this.sv1_DefaultAtLenDivAbLen), t.push(this.sv2_DefaultAjWidthDivAtLen), t.push(this.sv3_DefaultAeWidthDivAtLen), t.push(this.sv4_DefaultAeLenDivAtLen), t } }, { key: "genAtPts", value: function (t, e, o, n) { var i = o[2], l = [], r = n * o[3], a = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r, e[t], e[t + 1]); r = n * i; var s = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r, e[t + 1], a); return l.push(new SuperMap.Geometry.Point(s.pntLeft.x, s.pntLeft.y)), l.push(e[t + 1]), l.push(new SuperMap.Geometry.Point(s.pntRight.x, s.pntRight.y)), l } }, { key: "calc3rdScalePt", value: function (t, e, o, n) { var i = n * o[3]; return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i, e[t], e[t + 1]) } }]), e }(); SuperMap.Plot.AlgoSymbol1004 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1003 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.3), o.scaleValues.push(.28), o.scaleValues.push(.433333), o.scaleValues.push(.53), o.scaleValues.push(0)), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1003", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), e = (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length; if (e >= this.minEditPts) { if (SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].x, this.controlPoints[1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].y, this.controlPoints[1].y)) return; var o = SuperMap.Plot.PlottingUtil.clonePoints(t), n = !1; void 0 !== o[0].z && (n = !0); var i = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID), l = i.arrowTouLen, r = i.leftBodyPts, a = i.rightBodyPts, s = []; s.push(r[r.length - 1]), s.push(a[a.length - 1]); var u = []; u.push(this.scaleValues[3]), u.push(this.scaleValues[4]), u.push(0), u.push(0); var p = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t, s, u, l, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR), c = []; c = (c = c.concat(r)).concat(p); for (var y = a.length - 1; y >= 0; y--)c.push(a[y]); if (c.push(r[0]), n) { for (var P = [], h = { x: o[1].x, y: o[1].y, z: o[1].z }, f = { x: o[0].x, y: o[0].y, z: o[0].z }, S = 0; S < c.length; S++) { var d = this.ComputeZValue(c[S], h, f); P.push({ x: c[S].x, y: c[S].y, z: d }) } var g = new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2), M = new SuperMap.Geometry.Point(g.x, g.y); M.isScalePoint = !0, M.tag = 0, this.addScalePoint(M); var m = new SuperMap.Geometry.Point(r[r.length - 1].x, r[r.length - 1].y); m.isScalePoint = !0, m.tag = 1, this.addScalePoint(m); var v = new SuperMap.Geometry.Point(p[0].x, p[0].y); v.isScalePoint = !0, v.tag = 2, this.addScalePoint(v); for (var b = { x: o[e - 1].x, y: o[e - 1].y, z: o[e - 1].z }, T = { x: o[e - 2].x, y: o[e - 2].y, z: o[e - 2].z }, A = [], L = 0; L < this.scalePoints.length; L++) { var O = { x: this.scalePoints[L].x, y: this.scalePoints[L].y }, E = this.ComputeZValue(O, b, T); A.push({ x: O.x, y: O.y, z: E }) } this.scalePoints = A, this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, P) } else { var x = new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2), w = new SuperMap.Geometry.Point(x.x, x.y); w.isScalePoint = !0, w.tag = 0, this.addScalePoint(w); var I = new SuperMap.Geometry.Point(r[r.length - 1].x, r[r.length - 1].y); I.isScalePoint = !0, I.tag = 1, this.addScalePoint(I); var R = new SuperMap.Geometry.Point(p[0].x, p[0].y); R.isScalePoint = !0, R.tag = 2, this.addScalePoint(R), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, c) } } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = new SuperMap.Geometry.Point(this.scalePoints[0].x, this.scalePoints[0].y), n = new SuperMap.Geometry.Point(this.scalePoints[1].x, this.scalePoints[1].y), i = new SuperMap.Geometry.Point(this.scalePoints[2].x, this.scalePoints[2].y), l = this.scaleValues[0], r = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints), a = r * l; if (0 == t) { var s = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, this.controlPoints[0], this.controlPoints[1]), u = s.projectPoint; if (s.isOnline) { var p = SuperMap.Plot.PlottingUtil.distance(u, this.controlPoints[1]); this.scaleValues[0] = p / r } } else if (1 == t) { var c = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n, i).projectPoint, y = SuperMap.Plot.PlottingUtil.distance(c, o), P = a * this.scaleValues[1]; this.scaleValues[1] = y / a, this.scaleValues[2] = (a * this.scaleValues[2] + y - P) / a } else if (2 == t) { var h = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, this.controlPoints[1], i).projectPoint, f = SuperMap.Plot.PlottingUtil.pointProjectToSegment(h, o, this.controlPoints[1]), S = f.projectPoint, d = SuperMap.Plot.PlottingUtil.distance(S, o); !0 === f.inOnline ? this.scaleValues[4] = -d / a : this.scaleValues[4] = d / a } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol1003 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1002 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.MIN_GEOPT_COUNT = 2, o.MAX_GEOPT_COUNT = 1024, o.SV1_defaultATLenDivABLen = 0, o.SV2_defaultAYPosScale = .65, o.SV_AJCtrl = .6, o.SV_ArrowWoCtrl = .6, o.SV2_DefaultAJWidDiviedByATLen = .148, o.SV3_DefaultAEWidDividedByATLen = .4, o.SV4_DefaultAELenDividedByATLen = .3, o.SV_ATScaleParameter = 1.25, o.SV_ATLenDividedByATWid = 1.35, o.SV_ATWidDividedByArrowWeiWid = .5, o.AB_VERTEX_COUNT = 4, o.MIN_PTCOUNT_PERARROW = 3, o.ATL_DIV_AWW = .7, o.ATL_DIV_ABL = .12, o.ATL_DIV_ABL_1 = .18, o.DEFAULT_ARROW_TAIL_POS = .12, o.DUOJIANTOU_TAIL_RATE_1 = 8, o.DUOJIANTOU_TAIL_RATE_2 = 3, o.DUOJIANTOU_TAIL_RATE_3 = .6, o.AB_CTRLPT_RATE1 = 0, o.AB_CTRLPT_RATE2 = 3, o.AB_CTRLPT_RATE3 = .5, o.MIN_SCALEVALUE = .1, o.MAX_SCALEVALUE = 1, o.m_scalePoints = null, o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1002", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(), this.m_scalePoints = []; var t = SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { var e = this.operateCtrlPts(t), o = e.length, n = Math.floor(o / this.MIN_PTCOUNT_PERARROW), i = this.scaleValues.length; if (i < 2 * n - 1) { 0 == i && (this.scaleValues.push(this.SV1_defaultATLenDivABLen), i++); for (var l = 2 * n - 1 - i, r = 0; r < l; r += 2)this.scaleValues.splice(i / 2 + 1, 0, this.SV1_defaultATLenDivABLen), this.scaleValues.splice(this.scaleValues.length, 0, this.SV2_defaultAYPosScale) } else if (i > 2 * n - 1) { for (var a = 0; a < n; a++)this.scaleValues.push(this.SV1_defaultATLenDivABLen); for (var s = 0; s < n - 1; s++)this.scaleValues.push(this.SV2_defaultAYPosScale) } var u = this.arrowMeshs(e); SuperMap.Plot.PlottingUtil.clearSamePts(u.shapePts); var p = !1; if (void 0 !== t[0].z && (p = !0), p) { var c = this.operateCtrlPts3D(t), y = u.arrLeftPts2D, P = u.arrRightPts2D, h = u.arrHeadPts2D; if (n != y.length && n != P.length && n != h.length) return !1; for (var f = [], S = 0; S < n; S++) { for (var d = [], g = 3 * S; g < 3 * (S + 1) && g < c.length; g++)d.push(c[g]); f.push(d) } for (var M = [], m = [], v = [], b = 0; b < n; b++)if (!(2 > f[b].length)) { for (var T = y[b][y[b].length - 1], A = P[b][0], L = new SuperMap.Geometry.Point(.5 * (T.x + A.x), .5 * (T.y + A.y)), O = f[b][f[b].length - 1], E = f[b][f[b].length - 2], x = this.ComputeZValue(L, O, E), w = { x: L.x, y: L.y, z: x }, I = [], R = [], C = 0; C < f[b].length - 1; C++)if (0 == b) R.push(f[b][C]); else { var _ = { x: f[b][C].x, y: f[b][C].y, z: .5 * (f[b][C].z + f[b - 1][C].z) }; R.push(_) } R.push(w), this.ComputeBeizerZValueByDis(R, y[b], I), M.push(I), I = []; var U = []; U.push(w); for (var N = f[b].length - 2; N >= 0; N--)if (b == n - 1) U.push(f[b][N]); else { var D = { x: f[b][N].x, y: f[b][N].y, z: .5 * (f[b][N].z + f[b + 1][N].z) }; U.push(D) } this.ComputeBeizerZValueByDis(U, P[b], I), m.push(I), I = []; for (var B = h[b], G = 0; G < B.length; G++) { var k = this.ComputeZValue(B[G], O, E); I.push({ x: B[G].x, y: B[G].y, z: k }) } v.push(I) } for (var V = [], Y = 0; Y < n; Y++)V = (V = (V = V.concat(M[Y])).concat(v[Y])).concat(m[Y]); return SuperMap.Plot.PlottingUtil.clearSamePts(V), u.shapePts.length > 0 && this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, V, { surroundLineFlag: !1 }), this.scalePoints = this.scalePoints.concat(this.m_scalePoints), !0 } u.shapePts.length > 0 && (this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, u.shapePts, { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 0, weight: 0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u.shapePts, { surroundLineFlag: !1 })), this.scalePoints = []; for (var F = 0; F < this.m_scalePoints.length; F++)this.m_scalePoints[F].isScalePoint = !0, this.m_scalePoints[F].tag = F, this.addScalePoint(this.m_scalePoints[F]) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = this.operateCtrlPts(this.controlPoints), n = o.length, i = Math.floor(n / this.MIN_PTCOUNT_PERARROW), l = 0; if (t < i) { var r = [], a = t * this.MIN_PTCOUNT_PERARROW; r[0] = o[a], r[1] = o[a + 1], r[2] = o[a + 2]; var s = SuperMap.Plot.PlottingUtil.polylineDistance(r), u = new SuperMap.Geometry.Point(0, 0), p = new SuperMap.Geometry.Point(0, 0), c = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1, this.AB_CTRLPT_RATE2, r[0], r[1], r[2], u, p), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3, r[2], r[1], p, c), l = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[2], c, e).dLen1 / (this.SV4_DefaultAELenDividedByATLen + 1) / s } else { var y = [], P = [], h = (t - i) * this.MIN_PTCOUNT_PERARROW; y[0] = o[h], y[1] = o[h + 1], y[2] = o[h + 2]; var f = (t - i + 1) * this.MIN_PTCOUNT_PERARROW; P[0] = o[f], P[1] = o[f + 1], P[2] = o[f + 2]; var S = new SuperMap.Geometry.Point(0, 0), d = new SuperMap.Geometry.Point(0, 0), g = new SuperMap.Geometry.Point(0, 0); S.x = .5 * (y[2].x + P[2].x), d.x = .5 * (y[1].x + P[1].x), g.x = .5 * (y[0].x + P[0].x), S.y = .5 * (y[2].y + P[2].y), d.y = .5 * (y[1].y + P[1].y), g.y = .5 * (y[0].y + P[0].y); var M = SuperMap.Plot.PlottingUtil.distance(S, d), m = SuperMap.Plot.PlottingUtil.distance(g, d), v = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S, d, e), b = v.dLen1; l = b < M ? b / (M + m) : ((b = (v = SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(d, g, e)).dLen1) + M) / (M + m) } l > this.MAX_SCALEVALUE ? l = this.MAX_SCALEVALUE : l < this.MIN_SCALEVALUE && (l = this.MIN_SCALEVALUE), this.scaleValues[t] = l } this.calculateParts() } }, { key: "arrowMeshs", value: function (t) { var e = [], o = [], n = [], i = new SuperMap.Plot.Path2D, l = t.length, r = Math.floor(l / this.MIN_PTCOUNT_PERARROW), a = this.generateAWWidth(r, t), s = [], u = [], p = 0, c = 0, y = 0, P = []; for (c = 0, y = 0; c < r; c++, y += this.MIN_PTCOUNT_PERARROW) { P[0] = t[y], P[1] = t[y + 1], P[2] = t[y + 2], p = this.scaleValues[c]; var h = this.generateArrowBodyPts(P, a[c], p); p = h.dATLenDivABLen, s[c] = h.arrowBodyPts, u.push(p) } var f = [], S = 0, d = 0, g = 0, M = [], m = []; for (c = 0; c < r - 1; c++, d += this.MIN_PTCOUNT_PERARROW) { g = d + this.MIN_PTCOUNT_PERARROW, M[0] = t[d], M[1] = t[d + 1], M[2] = t[d + 2], m[0] = t[g], m[1] = t[g + 1], m[2] = t[g + 2], S = this.scaleValues[r + c]; var v = this.generateAYPts(M, s[c], m, s[c + 1], S); f.push(v.arrowLeftYaoPts), f.push(v.arrowRightYaoPts) } var b = [], T = s[0], A = [], L = 0, O = []; i.MoveTo(T[0]), i.CurveTo(T[1], T[2], T[3]), i.CurveTo(T[4], T[5], T[6]), i.ToSubPathPolygons(A), e.push(A[0]), L = A[0].length; for (var E = 7; E < 10; E++)i.LineTo(T[E]); for (A = [], i.ToSubPathPolygons(A); L < A[0].length; L++)O.push(A[0][L]); for (n.push(O), b.push(T[0]), b.push(t[0]), c = 1, y = this.MIN_PTCOUNT_PERARROW; c < r; c++, y += this.MIN_PTCOUNT_PERARROW) { var x = s[c], w = c + c - 2, I = f[w]; for (i.LineTo(I[0]), i.CurveTo(I[1], I[2], I[3]), A = [], O = [], i.ToSubPathPolygons(A); L < A[0].length; L++)O.push(A[0][L]); o.push(O); var R = f[w + 1]; for (i.CurveTo(R[1], R[2], R[3]), A = [], O = [], i.ToSubPathPolygons(A); L < A[0].length; L++)O.push(A[0][L]); e.push(O); for (var C = 7; C < 10; C++)i.LineTo(x[C]); for (A = [], O = [], i.ToSubPathPolygons(A); L < A[0].length; L++)O.push(A[0][L]); n.push(O), b.push(t[y].clone()) } var _ = s[r - 1]; for (i.LineTo(_[10]), i.CurveTo(_[11], _[12], _[13]), i.CurveTo(_[14], _[15], _[16]), A = [], O = [], i.ToSubPathPolygons(A); L < A[0].length; L++)O.push(A[0][L]); o.push(O), b.push(_[16]); var U = []; return i.ToSubPathPolygons(U), { shapePts: U[0], arrLeftPts2D: e, arrRightPts2D: o, arrHeadPts2D: n } } }, { key: "operateCtrlPts", value: function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t), o = e.length, n = Math.floor(o / this.MIN_PTCOUNT_PERARROW), i = o % this.MIN_PTCOUNT_PERARROW, l = new SuperMap.Geometry.Point; if (2 == i && (l.x = .5 * (e[o - 2].x + e[o - 1].x), l.y = .5 * (e[o - 2].y + e[o - 1].y), l.x == e[o - 1].x && l.y == e[o - 1].y || (e.push(e[o - 1].clone()), e[o - 1] = l, o++, n++)), o > 3) for (var r = n - 1, a = 0, s = r; a < r; s--, a++)for (var u = s * this.MIN_PTCOUNT_PERARROW, p = 0; p < u; p += this.MIN_PTCOUNT_PERARROW) { if (!SuperMap.Plot.PlottingUtil.isRight(e[p + 3], e[p + 1], e[p + 2])) { var c = e[p]; e[p] = e[p + 3], e[p + 3] = c, c = e[p + 1], e[p + 1] = e[p + 4], e[p + 4] = c, c = e[p + 2], e[p + 2] = e[p + 5], e[p + 5] = c } } return e } }, { key: "operateCtrlPts3D", value: function (t) { var e = t, o = e.length, n = Math.floor(o / this.MIN_PTCOUNT_PERARROW), i = { x: 0, y: 0, z: 0 }; if (2 == o % 3 && (i.x = .5 * (e[o - 2].x + e[o - 1].x), i.y = .5 * (e[o - 2].y + e[o - 1].y), i.z = .5 * (e[o - 2].z + e[o - 1].z), i.x == e[o - 1].x && i.y == e[o - 1].y && i.z == e[o - 1].z || (e.push(e[o - 1]), e[o - 1] = i, o++, n++)), o > 3) for (var l = n - 1, r = 0, a = l; r < l; a--, r++)for (var s = 3 * a, u = 0; u < s; u += 3) { if (!SuperMap.Plot.PlottingUtil.isRight(e[u + 3], e[u + 1], e[u + 2])) { var p = e[u]; e[u] = e[u + 3], e[u + 3] = p, p = e[u + 1], e[u + 1] = e[u + 4], e[u + 4] = p, p = e[u + 2], e[u + 2] = e[u + 5], e[u + 5] = p } } return e } }, { key: "generateAWWidth", value: function (t, e) { var o = []; if (t > 0) if (1 == t) o.push(0); else { var n = SuperMap.Plot.PlottingUtil.distance(e[0], e[this.MIN_PTCOUNT_PERARROW]); o.push(n); for (var i = 1, l = this.MIN_PTCOUNT_PERARROW; i < t - 1; i++, l += this.MIN_PTCOUNT_PERARROW) { n = .5 * (SuperMap.Plot.PlottingUtil.distance(e[l - this.MIN_PTCOUNT_PERARROW], e[l]) + SuperMap.Plot.PlottingUtil.distance(e[l], e[l + this.MIN_PTCOUNT_PERARROW])), o.push(n) } n = SuperMap.Plot.PlottingUtil.distance(e[l - this.MIN_PTCOUNT_PERARROW], e[l]), o.push(n) } return o } }, { key: "generateArrowBodyPts", value: function (t, e, o) { var n = [], i = [], l = [], r = [], a = [], s = [], u = [], p = t.length - 1; if (p < 2) return { dATLenDivABLen: o = 0, arrowBodyPts: n }; var c = o, y = this.SV2_DefaultAJWidDiviedByATLen, P = this.SV3_DefaultAEWidDividedByATLen, h = this.SV4_DefaultAELenDividedByATLen, f = SuperMap.Plot.PlottingUtil.clonePoints(t), S = SuperMap.Plot.PlottingUtil.polylineDistance(f), d = 0 == e ? S * this.ATL_DIV_ABL_1 : (S + e) * this.ATL_DIV_ABL, g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, f[1], f[0]); i[1] = g.pntLeft.clone(), l[1] = g.pntRight.clone(); var M = 0; M = SuperMap.Plot.PlottingUtil.equalFuzzy(c, 0, 1e-14) ? d * this.ATL_DIV_AWW : S * c; var m = SuperMap.Plot.PlottingUtil.distance(f[1], f[2]); M + M > m && (M = .5 * m); var v = M * y; f.push(f[p].clone()); var b, T = 0; b = S - M; var A = [], L = 0; for (L = 2; L <= p; L++)T += SuperMap.Plot.PlottingUtil.distance(f[L - 1], f[L - 2]), SuperMap.Plot.PlottingUtil.equalFuzzy(b, 0, 1e-14) ? A[L] = 0 : SuperMap.Plot.PlottingUtil.equalFuzzy(b - T, 0, 1e-14) ? A[L] = v : A[L] = v + (d - v) * Math.pow((b - T) / b, this.SV_ATScaleParameter); A[p + 1] = v; var O = new SuperMap.Geometry.Point(0, 0), E = new SuperMap.Geometry.Point(0, 0), x = new SuperMap.Geometry.Point(0, 0); for (L = 2; L <= p; L++) { SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1, this.AB_CTRLPT_RATE2, f[L - 2], f[L - 1], f[L], E, x), p == L && SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3, f[p], f[p - 1], x, O); var w = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(A[L], E, f[L - 1]); l[L] = w.pntLeft, i[L] = w.pntRight } var I, R, C = O.clone(); if (SuperMap.Plot.PlottingUtil.distance(f[p], C) > 0) { var _ = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M, f[p], O); f[p] = _.clone() } for (g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v, f[p + 1], f[p]), i[p + 1] = g.pntLeft, l[p + 1] = g.pntRight, L = 2; L <= p; L++)SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2, this.AB_CTRLPT_RATE2, i[L - 1], i[L], i[L + 1], E, x), r[L] = E.clone(), a[L] = x.clone(), SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2, this.AB_CTRLPT_RATE2, l[L - 1], l[L], l[L + 1], E, x), s[L] = E.clone(), u[L] = x.clone(); SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3, i[1], i[2], r[2], O), a[1] = O.clone(), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3, l[1], l[2], s[2], O), u[1] = O.clone(); R = SuperMap.Plot.PlottingUtil.distance(i[p + 1], i[p]) * (1 / 3), (I = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R, f[p], f[p + 1])).x += i[p + 1].x - f[p].x, I.y += i[p + 1].y - f[p].y, R = (d - v) * Math.pow(R / b, this.SV_ATScaleParameter + .3), g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R, i[p + 1], I), r[p + 1] = g.pntLeft.clone(), R = SuperMap.Plot.PlottingUtil.distance(l[p + 1], l[p]) * (1 / 3), (I = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R, f[p], f[p + 1])).x += l[p + 1].x - f[p].x, I.y += l[p + 1].y - f[p].y, R = (d - v) * Math.pow(R / b, this.SV_ATScaleParameter + .3), g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R, l[p + 1], I), s[p + 1] = g.pntRight.clone(); var U = [], N = M * h, D = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(N, f[p], f[p + 1]); this.m_scalePoints.push(D.clone()), N = M * P, g = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(N, f[p + 1], D), U.push(g.pntRight), U.push(f[p + 1]), U.push(g.pntLeft); var B = []; for (B.push(i[p + 1]), L = p; L >= 1; L--)B.push(r[L + 1]), B.push(a[L]), B.push(i[L]); var G = []; for (L = 1; L <= p; L++)G.push(l[L]), G.push(u[L]), G.push(s[L + 1]); G.push(l[p + 1]), n.push.apply(n, G), n.push.apply(n, U), n.push.apply(n, B), o = M / S; var k = []; for (L = B.length - 1; L >= 0; L--)k.push(B[L]); return { dATLenDivABLen: o, arrowBodyPts: n } } }, { key: "generateAYPts", value: function (t, e, o, n, i) { var l = new SuperMap.Geometry.Point(.5 * (t[2].x + o[2].x), .5 * (t[2].y + o[2].y)), r = new SuperMap.Geometry.Point(.5 * (t[1].x + o[1].x), .5 * (t[1].y + o[1].y)), a = new SuperMap.Geometry.Point(.5 * (t[0].x + o[0].x), .5 * (t[0].y + o[0].y)), s = SuperMap.Plot.PlottingUtil.distance(l, r), u = SuperMap.Plot.PlottingUtil.distance(a, r), p = i * (s + u), c = new SuperMap.Geometry.Point(0, 0), y = new SuperMap.Geometry.Point(0, 0), P = new SuperMap.Geometry.Point(0, 0); if (p > s) { p = s + u - p, c = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p, a, r); var h = SuperMap.Plot.PlottingUtil.distance(t[1], t[0]), f = SuperMap.Plot.PlottingUtil.distance(o[1], o[0]); h = h * p / u, y = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(h, t[0], t[1]), f = f * p / u, P = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(f, o[0], o[1]) } else { c = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p, l, r); var S = SuperMap.Plot.PlottingUtil.distance(t[1], t[2]), d = SuperMap.Plot.PlottingUtil.distance(o[1], o[2]); S = S * p / s, y = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(S, t[2], t[1]), d = d * p / s, P = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d, o[2], o[1]) } this.m_scalePoints.push(c.clone()); var g = this.SV_ArrowWoCtrl * SuperMap.Plot.PlottingUtil.distance(c, y), M = this.SV_ArrowWoCtrl * SuperMap.Plot.PlottingUtil.distance(c, P), m = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(g, c, y), v = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M, c, P), b = e[11].clone(), T = e[10].clone(), A = n[5].clone(), L = n[6].clone(), O = SuperMap.Plot.PlottingUtil.intersectLines(T, b, c, y), E = SuperMap.Plot.PlottingUtil.distance(O.intersectPoint, T), x = SuperMap.Plot.PlottingUtil.distance(T, c); E = E > x ? this.SV_AJCtrl * x : this.SV_AJCtrl * E; var w = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(E, T, b); b = w.clone(), e[11] = w.clone(), O = SuperMap.Plot.PlottingUtil.intersectLines(L, A, c, P), E = (E = SuperMap.Plot.PlottingUtil.distance(O.intersectPoint, L)) > (x = SuperMap.Plot.PlottingUtil.distance(L, c)) ? this.SV_AJCtrl * x : this.SV_AJCtrl * E, A = (w = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(E, L, A)).clone(), n[5] = w.clone(); var I = []; I.push(T), I.push(b), I.push(m), I.push(c); var R = []; return R.push(c), R.push(v), R.push(A), R.push(L), { arrowLeftYaoPts: I, arrowRightYaoPts: R } } }]), e }(); SuperMap.Plot.AlgoSymbol1002 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol1001 = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.1), o.scaleValues.push(.2), o.scaleValues.push(0), o.scaleValues.push(.3), o.scaleValues.push(.08)), o.CLASS_NAME = "SuperMap.Plot.AlgoSymbol1001", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), e = (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length; if (e >= this.minEditPts) { this.scalePoints = []; var o = SuperMap.Plot.PlottingUtil.clonePoints(t), n = !1; void 0 !== o[0].z && (n = !0); var i = SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t, this.scaleValues, SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL), l = i.arrowTouLen, r = i.leftBodyPts, a = i.rightBodyPts, s = []; s.push(r[r.length - 1]), s.push(a[a.length - 1]); var u = []; u.push(this.scaleValues[3]), u.push(this.scaleValues[4]), u.push(this.scaleValues[0]), u.push(this.scaleValues[1]); var p = SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t, s, u, l, SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR), c = []; if (n) { for (var y = [], P = [], h = [], f = 0; f < e - 1; f++)P.push({ x: r[f].x, y: r[f].y, z: o[f].z }), h.push({ x: a[f].x, y: a[f].y, z: o[f].z }); var S = { x: o[e - 2].x, y: o[e - 2].y, z: o[e - 2].z }, d = { x: o[e - 1].x, y: o[e - 1].y, z: o[e - 1].z }, g = this.ComputeZValue(r[e - 1], d, S); P.push({ x: r[e - 1].x, y: r[e - 1].y, z: g }); var M = this.ComputeZValue(a[e - 1], d, S); h.push({ x: a[e - 1].x, y: a[e - 1].y, z: M }); for (var m = 0; m < p.length; m++) { var v = this.ComputeZValue(p[m], d, S); y.push({ x: p[m].x, y: p[m].y, z: v }) } c = (c = c.concat(P)).concat(y); for (var b = h.length - 1; b >= 0; b--)c.push(h[b]); var T = new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2), A = new SuperMap.Geometry.Point(T.x, T.y); A.isScalePoint = !0, A.tag = 0, this.addScalePoint(A); var L = new SuperMap.Geometry.Point(r[r.length - 1].x, r[r.length - 1].y); L.isScalePoint = !0, L.tag = 1, this.addScalePoint(L); var O = new SuperMap.Geometry.Point(p[0].x, p[0].y); O.isScalePoint = !0, O.tag = 2, this.addScalePoint(O); for (var E = 0; E < this.scalePoints.length; E++) { var x = new SuperMap.Geometry.Point(this.scalePoints[E].x, this.scalePoints[E].y); this.scalePoints[E].z = this.ComputeZValue(x, d, S) } } else { c = (c = c.concat(r)).concat(p); for (var w = a.length - 1; w >= 0; w--)c.push(a[w]); var I = new SuperMap.Geometry.Point((s[0].x + s[1].x) / 2, (s[0].y + s[1].y) / 2), R = new SuperMap.Geometry.Point(I.x, I.y); R.isScalePoint = !0, R.tag = 0, this.addScalePoint(R); var C = new SuperMap.Geometry.Point(r[r.length - 1].x, r[r.length - 1].y); C.isScalePoint = !0, C.tag = 1, this.addScalePoint(C); var _ = new SuperMap.Geometry.Point(p[0].x, p[0].y); _.isScalePoint = !0, _.tag = 2, this.addScalePoint(_) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, c, { surroundLineFlag: !1, lineWidthLimit: !0, strokeWidth: 0, weight: 0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, c) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = new SuperMap.Geometry.Point(this.scalePoints[0].x, this.scalePoints[0].y), n = new SuperMap.Geometry.Point(this.scalePoints[1].x, this.scalePoints[1].y), i = new SuperMap.Geometry.Point(this.scalePoints[2].x, this.scalePoints[2].y), l = this.scaleValues[0], r = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints), a = r * l; if (0 == t) { var s = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, this.controlPoints[this.controlPoints.length - 2], this.controlPoints[this.controlPoints.length - 1]), u = s.projectPoint; if (s.isOnline) { var p = SuperMap.Plot.PlottingUtil.distance(u, this.controlPoints[this.controlPoints.length - 1]); this.scaleValues[0] = p / r } } else if (1 == t) { var c = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, n, i).projectPoint, y = SuperMap.Plot.PlottingUtil.distance(c, o); this.scaleValues[1] = y / a } else if (2 == t) { var P = SuperMap.Plot.PlottingUtil.pointProjectToSegment(e, this.controlPoints[1], i).projectPoint, h = SuperMap.Plot.PlottingUtil.pointProjectToSegment(P, o, this.controlPoints[1]), f = h.projectPoint, S = SuperMap.Plot.PlottingUtil.distance(f, o); !0 === h.inOnline ? this.scaleValues[4] = -S / a : this.scaleValues[4] = S / a } } this.calculateParts() } }]), e }(); SuperMap.Plot.AlgoSymbol1001 = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Wire = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.05), o.CLASS_NAME = "SuperMap.Plot.Wire", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.isEdit || (this.scaleValues[0] = 2 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e); for (var n = o * this.scaleValues[0], i = o * this.scaleValues[0] / 2, l = SuperMap.Plot.PlottingUtil.clonePoints(e), r = parseInt((o - i) / n), a = 0; a <= r && !(i + n * a > o); a++) { var s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(l, i + n * a); if (-1 !== s.index) { var u = new SuperMap.Geometry.Point(s.pt.x, s.pt.y), p = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n / 2, e[s.index], u); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, [p.pntLeft, p.pntRight]) } } this.finish() } } }]), e }(); SuperMap.Plot.Wire = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), i = function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 }; var l = e.PolygonRegion = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(0), o.scaleValues.push(0)), o.CLASS_NAME = "SuperMap.Plot.PolygonRegion", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { i(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (null != (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)) && t.length >= this.minEditPts) { if (this.addCell(32, t, { surroundLineFlag: !1 }), this.textContent && null != this.textContent && this.textContent.length > 0) { var e = []; this.scaleValues[1] > t.length && (this.scaleValues[1] = 0); var o = { labelRotation: 0, surroundLineFlag: !1, labelAlign: "lt" }; if (0 === this.scaleValues[1]) e = [SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t)]; else { var n = null, i = null; this.scaleValues[1] === t.length ? (n = t[t.length - 1], i = t[0]) : (n = t[this.scaleValues[1] - 1], i = t[this.scaleValues[1]]), o.labelRotation = -SuperMap.Plot.PlottingUtil.radian(n, i) / Math.PI * 180; var l = this.scaleValues[0] * SuperMap.Plot.PlottingUtil.distance(n, i); e = [SuperMap.Plot.PlottingUtil.findPoint(n, i, l, 0)] } this.addCell(34, e, o, this.textContent); var r = new SuperMap.Geometry.Point(e[0].x, e[0].y); r.isScalePoint = !0, r.tag = 0, this.scalePoints = [], this.addScalePoint(r) } } else this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine() } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { for (var o = 0, n = SuperMap.Plot.PlottingUtil.distance(e, this.controlPoints[0]), i = 1; i < this.controlPoints.length; i++) { var l = SuperMap.Plot.PlottingUtil.distance(e, this.controlPoints[i]); l < n && (n = l, o = i) } var r = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); (r = SuperMap.Plot.PlottingUtil.clearSamePts(r)).push(r[0].clone()); var a = SuperMap.Plot.PlottingUtil.computePointToLineMinDis(e, r); if (-1 === a.minDis) this.scaleValues[1] = o + 1, this.offsetX = 0, this.offsetY = 0; else { var s = SuperMap.Plot.PlottingUtil.projectPoint(e, r[a.index], r[a.index + 1]), u = SuperMap.Plot.PlottingUtil.distance(e, s), p = SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints), c = SuperMap.Plot.PlottingUtil.distance(e, p); if (c < u && c < n) this.scaleValues[1] = 0, this.scaleValues[0] = 0; else if (n < u && n < c) this.scaleValues[1] = o + 1, this.scaleValues[0] = 0; else if (u < n && u < c) { this.scaleValues[1] = a.index + 1; var y = null, P = null; this.scaleValues[1] === this.controlPoints.length ? (y = this.controlPoints[this.controlPoints.length - 1], P = this.controlPoints[0]) : (y = this.controlPoints[this.scaleValues[1] - 1], P = this.controlPoints[this.scaleValues[1]]); var h = SuperMap.Plot.PlottingUtil.distance(s, y), f = SuperMap.Plot.PlottingUtil.distance(y, P); this.scaleValues[0] = h / f } } } this.calculateParts() } }, { key: "parseSymbolData", value: function () { i(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "parseSymbolData", this).call(this), this.symbolData && (this.scaleValues[1] = this.symbolData.annotationPosition) } }, { key: "setSymbolData", value: function () { i(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "setSymbolData", this).call(this), this.symbolData && (this.symbolData.annotationPosition = this.scaleValues[1]) } }]), e }(); SuperMap.Plot.PolygonRegion = l }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.LineRelation = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.subSectionCount = t.subSectionCount ? t.subSectionCount : 10, o.CLASS_NAME = "SuperMap.Plot.LineRelation", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { this.subSectionCount = null, function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 }(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { this.init(); for (var t = 0; t < this.controlPoints.length; t++)this.controlPoints[t].tag = t; var e = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); null !== e && e.length >= this.minEditPts && this.computeLine(e) } }, { key: "computeLine", value: function (t) { this.components = []; var e = t[0], o = t[t.length - 1]; this.subSectionCount <= 1 && (this.subSectionCount = 10); var n = SuperMap.Plot.PlottingUtil.distance(e, o) / (2 * this.subSectionCount - 1); if (this.lineRelationType === SuperMap.Plot.LineRelationType.SOLID) this.addCell(24, t, { surroundLineFlag: !1 }); else if (this.lineRelationType === SuperMap.Plot.LineRelationType.DASH) for (var i = 0; i < this.subSectionCount; i++) { var l = SuperMap.Plot.PlottingUtil.findPoint(e, o, 2 * i * n, 0), r = SuperMap.Plot.PlottingUtil.findPoint(e, o, (2 * i + 1) * n, 0); this.addCell(24, [l, r], { surroundLineFlag: !1 }) } else if (this.lineRelationType === SuperMap.Plot.LineRelationType.ARROW) for (var a = 0; a < this.subSectionCount; a++) { var s = SuperMap.Plot.PlottingUtil.findPoint(e, o, 2 * a * n, 0), u = SuperMap.Plot.PlottingUtil.findPoint(e, o, (2 * a + 1) * n, 0), p = SuperMap.Plot.PlottingUtil.findPoint(u, s, n, 60), c = SuperMap.Plot.PlottingUtil.findPoint(u, s, n, -60); this.addCell(24, [p, u, c], { surroundLineFlag: !1 }) } } }]), e }(); SuperMap.Plot.LineRelation = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.LineMarking = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.islocationCircle = !!t.islocationCircle && t.islocationCircle, o.textBoxType = t.textBoxType ? t.textBoxType : SuperMap.Plot.TextBoxType.RECTBOX, 0 === o.scaleValues.length && (o.scaleValues.push(.126), o.scaleValues.push(0), o.scaleValues.push(0), o.scaleValues.push(4)), o.CLASS_NAME = "SuperMap.Plot.LineMarking", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { this.islocationCircle = null, this.textBoxType = null, function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 }(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { this.init(), this.controlPoints = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), this.controlPoints = SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints); var t = this.scaleValues[0]; if (!(t < 0 || t > 1)) { if (t = (1 - t) / 2, this.controlPoints.length >= this.minEditPts) { var e, o, n, i; this.scalePoints = []; var l = []; this.controlPoints[0].x < this.controlPoints[1].x ? (e = this.controlPoints[0].x, n = this.controlPoints[1].x) : (e = this.controlPoints[1].x, n = this.controlPoints[0].x), this.controlPoints[0].y < this.controlPoints[1].y ? (i = this.controlPoints[0].y, o = this.controlPoints[1].y) : (i = this.controlPoints[1].y, o = this.controlPoints[0].y), l.push(new SuperMap.Geometry.Point(e, i)), l.push(new SuperMap.Geometry.Point(e, o)), l.push(new SuperMap.Geometry.Point(n, o)), l.push(new SuperMap.Geometry.Point(n, i)), !1 === this.isEdit && (this.scaleValues[1] = e + .1 * (n - e), this.scaleValues[2] = i + -.3 * (o - i)); var r = this.getAction(this.scaleValues[1], this.scaleValues[2], e, o, n, i), a = new SuperMap.Geometry.Point(this.scaleValues[1], this.scaleValues[2]); if (this.textBoxType === SuperMap.Plot.TextBoxType.RECTBOX || this.textBoxType === SuperMap.Plot.TextBoxType.LINEBOX) { var s = []; switch (r) { case 0: this.addScalePoint(a); break; case 1: this.addScalePoint(a), s.push(new SuperMap.Geometry.Point(e, o - (o - i) * t)), s.push(a); break; case 2: this.addScalePoint(a), s.push(new SuperMap.Geometry.Point(n - (n - e) * t, o)), s.push(a); break; case 3: this.addScalePoint(a), s.push(new SuperMap.Geometry.Point(n, o - (o - i) * t)), s.push(a); break; case 4: this.addScalePoint(a), s.push(new SuperMap.Geometry.Point(n - (n - e) * t, i)), s.push(a) }this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, s) } if (0 !== l.length && this.textBoxType === SuperMap.Plot.TextBoxType.RECTBOX) this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l); else if (0 !== l.length && this.textBoxType === SuperMap.Plot.TextBoxType.LINEBOX) { var u = []; switch (r) { case 0: break; case 1: u = (u = (u = u.concat(l[0])).concat(l[1])).concat(l[2]); break; case 2: u = (u = (u = u.concat(l[1])).concat(l[2])).concat(l[3]); break; case 3: u = (u = (u = u.concat(l[2])).concat(l[3])).concat(l[4]); break; case 4: u = (u = (u = u.concat(l[3])).concat(l[4])).concat(l[0]) }3 === u.length ? this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, u) : this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, this.controlPoints) } this.islocationCircle && this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [a, new SuperMap.Geometry.Point(a.x - .05, a.y - .05)]), this.annotationContent(e, o, n, i) } else this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, this.controlPoints); this.finish() } } }, { key: "modifyPoint", value: function (t, e) { !0 === e.isScalePoint && (this.scaleValues[1] = e.x, this.scaleValues[2] = e.y), this.calculateParts() } }, { key: "getAction", value: function (t, e, o, n, i, l) { var r = (n - l) / (i - o); return t < o ? e > n ? Math.abs((e - n) / (t - o)) > r ? 2 : 1 : e < l && Math.abs((e - l) / (t - o)) > r ? 4 : 1 : t > i ? e > n ? Math.abs((e - n) / (t - i)) > r ? 2 : 3 : e < l && Math.abs((e - l) / (t - i)) > r ? 4 : 3 : e > n ? 2 : e < l ? 4 : 0 } }]), e }(); SuperMap.Plot.LineMarking = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.PathText = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.relLineText = t.relLineText ? t.relLineText : 0, o.showPathLine = !t.showPathLine || t.showPathLine, o.showPathLineArrow = !!t.showPathLineArrow && t.showPathLineArrow, o.isCurve = !!t.isCurve && t.isCurve, o.isAvoid = !!t.isAvoid && t.isAvoid, o.textToLineDistance = t.textToLineDistance ? t.textToLineDistance : 0, o.CLASS_NAME = "SuperMap.Plot.PathText", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { if (this.init(), null !== this.controlPoints && 0 !== this.controlPoints.length && !(this.controlPoints.length < this.minEditPts)) { SuperMap.Util.isArray(this.textContent) || (this.textContent = [this.textContent]); var t = []; if (t = this.isCurve ? SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints) : SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), this.relLineText === SuperMap.Plot.RelLineText.ONBOTHLINE) { this.relLineText = SuperMap.Plot.RelLineText.ONRIGHTLINE; var e = this.getTextPathPts(t, !1); this.computeText(e, this.textContent[0], t), this.relLineText = SuperMap.Plot.RelLineText.ONLEFTLINE; var o = this.showPathLine; this.showPathLine = !1; var n = this.getTextPathPts(t, !0); this.textContent.length > 1 ? this.computeText(n, this.textContent[1], t) : this.computeText(n, this.textContent[0], t), this.relLineText = SuperMap.Plot.RelLineText.ONBOTHLINE, this.showPathLine = o } else { var i = []; i = this.relLineText === SuperMap.Plot.RelLineText.ONRIGHTLINE ? this.getTextPathPts(t, !1) : this.relLineText === SuperMap.Plot.RelLineText.ONLEFTLINE ? this.getTextPathPts(t, !0) : t, this.computeText(i, this.textContent[0], t) } this.finish() } } }, { key: "getTextPathPts", value: function (t, e) { t = SuperMap.Plot.PlottingUtil.clearSamePts(t); var o = this.getLonLatDistanceFromPixel(this.textToLineDistance); if (0 >= o) return SuperMap.Plot.PlottingUtil.clonePoints(t); var n = SuperMap.Plot.PlottingUtil.paraLine(t, o, e); return SuperMap.Plot.PlottingUtil.clearSamePts(n) } }, { key: "computeText", value: function (t, e, o) { if (!(t.length < 2)) { for (var n = e.length, i = t, l = i.length, r = 0, a = 0; a < i.length - 1; a++)r += SuperMap.Plot.PlottingUtil.distance(i[a], i[a + 1]); var s = { index: -1, pt: i[0] }, u = 0, p = 0, c = 0, y = 180 / Math.PI, P = this.getTextBounds(this.style, e), h = "lm"; h = this.relLineText === SuperMap.Plot.RelLineText.ONLINE ? "lm" : this.relLineText === SuperMap.Plot.RelLineText.ONLEFTLINE ? "lb" : "lt", (u = (r - P.getWidth()) / 2) <= 0 && (u = 0); for (var f = [], S = 0; S < n; S++) { var d = this.getTextBounds(this.style, e.charAt(S)); f.push(new SuperMap.Bounds(0, -P.getHeight(), d.getWidth(), 0)) } for (var g, M = !1, m = !1, v = 0, b = 0, T = []; p <= u && c < l - 1;)c++, p += SuperMap.Plot.PlottingUtil.distance(i[c - 1], i[c]); var A = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, u), L = SuperMap.Plot.PlottingUtil.radian(i[c - 1], i[c]) * y; L > 180 && (L -= 360), L < -180 && (L += 360), L > 90 && L <= 180 ? (v = -180, M = !0, m = !0) : L > -180 && L < -90 && (v = 180, M = !0, m = !0), !0, 0 != v ? this.relLineText === SuperMap.Plot.RelLineText.ONLINE || (h = this.relLineText === SuperMap.Plot.RelLineText.ONLEFTLINE ? "lt" : "lb") : this.relLineText === SuperMap.Plot.RelLineText.ONLINE || (h = this.relLineText === SuperMap.Plot.RelLineText.ONLEFTLINE ? "lb" : "lt"); for (var O = 0; O < n && !(u > r); O++) { var E = O; for (m && (E = n - O - 1), b = (g = f[E]).getWidth(), M && (u += b); p <= u && c < l - 1;)c++, p += SuperMap.Plot.PlottingUtil.distance(i[c - 1], i[c]); var x = (L = SuperMap.Plot.PlottingUtil.radian(i[c - 1], i[c]) * y) + v; if ((s = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, u)).index < 0) break; g.add(s.pt.x, s.pt.y); var w = e.charAt(E), I = {}; I.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, I.textContent = w, I.positionPoints = [s.pt], I.style = { surroundLineFlag: !1, labelAlign: h, labelRotation: -x }, T.push(I), M || (u += b) } var R = SuperMap.Plot.PlottingUtil.findPointInPolyLine(i, u); if (this.showPathLine) { if (this.relLineText === SuperMap.Plot.RelLineText.ONLINE && this.isAvoid) { if (A.index >= 0) { for (var C = [], _ = 0; _ <= A.index; _++)C.push(o[_]); C.push(A.pt), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, C) } if (R.index >= 0) { var U = []; U.push(R.pt); for (var N = R.index + 1; N < o.length; N++)U.push(o[N]); this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, U) } } else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, o); this.showPathLineArrow && this.addArrow(o) } for (var D = 0; D < T.length; D++)this.components.push(T[D]) } } }, { key: "addArrow", value: function (t) { if (t.length < 2) return t; var e = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints) * (this.isEdit, null == this.getSubSymbolScaleValue() ? .05 : .5 * this.getSubSymbolScaleValue()), o = t[t.length - 1]; if (t.length > 2) { for (var n = -1, i = t.length - 2; i >= 0; i--)if (e < SuperMap.Plot.PlottingUtil.distance(o, t[i])) { n = i; break } t.splice(n + 1, t.length - n), t.push(o) } var l = t[t.length - 2], r = t[t.length - 1], a = e; if (void 0 === l) return t; if (!(SuperMap.Plot.PlottingUtil.distance(l, r) < e)) { var s = SuperMap.Plot.PlottingUtil.radian(l, r) * SuperMap.Plot.PlottingUtil.RTOD, u = SuperMap.Plot.PlottingUtil.circlePoint(r, a, a, s + 157.5), p = SuperMap.Plot.PlottingUtil.circlePoint(r, a, a, s + 202.5); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [u, t[t.length - 1], p], { surroundLineFlag: !1, fillLimit: !0, lineTypeLimit: !0, fill: !0 }) } } }]), e }(); SuperMap.Plot.PathText = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.CurveEight = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.CLASS_NAME = "SuperMap.Plot.CurveEight", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { if (this.init(), this.controlPoints && null !== this.controlPoints && !(this.minEditPts > this.controlPoints.length)) if (2 === this.controlPoints.length) { var t = this.controlPoints[0].clone(), e = this.controlPoints[1].clone(), o = SuperMap.Plot.PlottingUtil.distance(t, e) / 2, n = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, i = new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2), l = SuperMap.Plot.PlottingUtil.circlePoint(i, o, o, n + 90), r = SuperMap.Plot.PlottingUtil.circlePoint(i, 3 * o, 3 * o, n + 90); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [l, new SuperMap.Geometry.Point(l.x + o, l.y)]), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [r, new SuperMap.Geometry.Point(r.x + o, r.y)]) } else { var a = this.controlPoints[0].clone(), s = this.controlPoints[1].clone(), u = this.controlPoints[2].clone(), p = 0; p = SuperMap.Plot.PlottingUtil.isRight(u, a, s) ? 180 * SuperMap.Plot.PlottingUtil.radian(s, a) / Math.PI + 90 : 180 * SuperMap.Plot.PlottingUtil.radian(a, s) / Math.PI + 90; var c = SuperMap.Plot.PlottingUtil.distance(a, s) / 2, y = new SuperMap.Geometry.Point((a.x + s.x) / 2, (a.y + s.y) / 2), P = SuperMap.Plot.PlottingUtil.circlePoint(y, c, c, p), h = SuperMap.Plot.PlottingUtil.plumbLineLen(u, a, s); if (h <= 4 * c) { var f = SuperMap.Plot.PlottingUtil.circlePoint(y, 3 * c, 3 * c, p); this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [P, new SuperMap.Geometry.Point(P.x + c, P.y)]), this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [f, new SuperMap.Geometry.Point(f.x + c, f.y)]) } else { for (var S = SuperMap.Plot.PlottingUtil.circlePoint(y, h - c, h - c, p), d = 180 * Math.acos(c / (h - 2 * c)) / Math.PI, g = p - d, M = p - 180 + d, m = p - 180 - d + 360, v = [], b = p + d - 360; b <= g; b += 4) { var T = SuperMap.Plot.PlottingUtil.circlePoint(P, c, c, b); v.push(T) } var A = SuperMap.Plot.PlottingUtil.circlePoint(P, c, c, g); v.push(A); for (var L = [], O = M; O < m; O += 4) { var E = SuperMap.Plot.PlottingUtil.circlePoint(S, c, c, O); L.push(E) } var x = SuperMap.Plot.PlottingUtil.circlePoint(S, c, c, m); L.push(x); var w = []; w = w.concat(v); for (var I = L.length - 1; I >= 0; I--)w.push(L[I]); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, w) } } } }]), e }(); SuperMap.Plot.CurveEight = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Runway = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.2), o.CLASS_NAME = "SuperMap.Plot.Runway", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { if (this.init(), this.controlPoints.length >= this.minEditPts) { for (var t = this.controlPoints[0], e = this.controlPoints[1], o = SuperMap.Plot.PlottingUtil.distance(t, e), n = this.scaleValues[0] * o, i = SuperMap.Plot.PlottingUtil.parallel(this.controlPoints, n / 2), l = SuperMap.Plot.PlottingUtil.parallel(this.controlPoints, -n / 2), r = 180 * SuperMap.Plot.PlottingUtil.radian(t, e) / Math.PI, a = [], s = r + 90; s <= r + 270; s += 10) { var u = SuperMap.Plot.PlottingUtil.circlePoint(t, n / 2, n / 2, s); a.push(u) } for (var p = [], c = r - 90; c <= r + 90; c += 10) { var y = SuperMap.Plot.PlottingUtil.circlePoint(e, n / 2, n / 2, c); p.push(y) } var P = []; (P = (P = (P = (P = P.concat(a)).concat(l)).concat(p)).concat(i)).push(P[0]), this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, P); var h = new SuperMap.Geometry.Point(a[0].x, a[0].y); this.addScalePoint(h) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint && 0 == t) { var o = SuperMap.Plot.PlottingUtil.distance(e, this.controlPoints[0]), n = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], this.controlPoints[1]); this.scaleValues[0] = 2 * o / n } this.calculateParts() } }]), e }(); SuperMap.Plot.Runway = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.NodeChain = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(0), o.scaleValues[1] = .1), o.CLASS_NAME = "SuperMap.Plot.NodeChain", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { if (this.init(), this.controlPoints && null !== this.controlPoints) { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t), this.isEdit || (this.scaleValues[1] = .25 * this.getSubSymbolScaleValue()); var e = SuperMap.Plot.PlottingUtil.polylineDistance(t), o = e * this.scaleValues[0], n = e * this.scaleValues[1]; if (0 < this.subSymbols.length && null !== this.subSymbols[0] && void 0 !== this.subSymbols[0]) if (this.subSymbols[0].code > 0) for (var i = 0; i < t.length; i++) { var l = new SuperMap.Geometry.Point(t[i].x, t[i].y + o); this.computeSubSymbol(this.subSymbols[0], l, 2 * n, 0) } else this.addCircles(t, o, n); else this.addCircles(t, o, n); var r = new SuperMap.Geometry.Point(t[0].x, t[0].y + o); this.addScalePoint(r); var a = SuperMap.Plot.PlottingUtil.circlePoint(r, n, n, 90); this.addScalePoint(a) } } } }, { key: "addCircles", value: function (t, e, o) { for (var n = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0 }, i = 0; i < t.length; i++) { var l = new SuperMap.Geometry.Point(t[i].x, t[i].y + e), r = this.getCirclePts(l, o); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, r, n) } } }, { key: "getCirclePts", value: function (t, e) { for (var o = [], n = 0; n <= 360; n += 12) { var i = SuperMap.Plot.PlottingUtil.circlePoint(t, e, e, n); o.push(i) } return o } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((o = SuperMap.Plot.PlottingUtil.clearSamePts(o)).length < this.minEditPts) return; var n = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (0 === t) this.scaleValues[0] = (e.y - o[0].y) / n; else if (1 === t) { var i = SuperMap.Plot.PlottingUtil.distance(e, o[0]); this.scaleValues[1] = i / n } } this.calculateParts() } }]), e }(); SuperMap.Plot.NodeChain = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.FreeCurve = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.CLASS_NAME = "SuperMap.Plot.FreeCurve", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { if (this.init(), !(null == this.controlPoints || this.controlPoints.length < this.minEditPts)) { this.scalePoints = []; var t = []; if (this.controlPoints.length < 3) t.push(this.controlPoints[0]), t.push(this.controlPoints[1]); else { if (!this.isEdit) { var e = this.getLonLatFromPixel(0, 0), o = this.getLonLatFromPixel(100, 100), n = Math.abs(e.lon - o.lon), i = this.reSample(this.controlPoints, n / 50); i.length < 3 && (i = this.controlPoints), this.controlPoints = [], this.controlPoints = this.controlPoints.concat(i) } var l = SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit, this.controlPoints, this.scaleValues); l.scalePoints = SuperMap.Plot.PlottingUtil.clearSamePts(l.scalePoints), l.scaleValues = SuperMap.Plot.PlottingUtil.clearSamePts(l.scaleValues), this.scaleValues = l.scaleValues; for (var r = 0, a = l.scalePoints.length; r < a; r++) { var s = l.scalePoints[r]; s.isScalePoint = !0, s.tag = r, this.addScalePoint(s) } t = SuperMap.Plot.PlottingUtil.clonePoints(l.beizerPoints) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t > 2 * this.controlPoints.length - 1) return; var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (2 > o.length) return; var n = SuperMap.Plot.PlottingUtil.polylineDistance(o), i = -1; i = t % 2 == 0 ? Math.floor(t / 2) : Math.floor((t + 1) / 2); var l = (e.x - o[i].x) / n, r = (e.y - o[i].y) / n; this.scaleValues[2 * t] = l, this.scaleValues[2 * t + 1] = r } this.calculateParts() } }, { key: "reSample", value: function (t, e) { var o = []; if (null == t || e < 0) return o; var n = t.length; if (n > 2) { var i = new SuperMap.Geometry.Point(0, 0), l = 0, r = 0, a = 0, s = 2 * Math.PI; i = t[0], o.push(i); for (var u = !1, p = !1, c = !1, y = 1; y < n; y++)if (r = Math.sqrt((t[y].y - i.y) * (t[y].y - i.y) + (t[y].x - i.x) * (t[y].x - i.x)), SuperMap.Plot.PlottingUtil.equalFuzzy(0, r)) u && (i = t[y - 1], y--, o.push(i), a = 0, s = 2 * Math.PI, u = !1, p = !1, c = !1); else { var P = (t[y].x - i.x) / r, h = (t[y].y - i.y) / r; if (l = h > 0 || SuperMap.Plot.PlottingUtil.equalFuzzy(0, h) ? Math.acos(P) : 2 * Math.PI - Math.acos(P), s > 2 * Math.PI && l + 2 * Math.PI < s ? (l += 2 * Math.PI, a < 0 && (a += 2 * Math.PI)) : a < 0 && l - 2 * Math.PI > a && (l -= 2 * Math.PI, s > 2 * Math.PI && (s -= 2 * Math.PI)), l > a && l < s || SuperMap.Plot.PlottingUtil.equalFuzzy(0, l - a) || SuperMap.Plot.PlottingUtil.equalFuzzy(0, l - s)) { var f = Math.atan(e / r); p ? a < l - f && (a = l - f) : (p = !0, a = l - f), c ? s > l + f && (s = l + f) : (c = !0, s = l + f), u = !0 } else i = t[y - 1], y--, o.push(i), a = 0, s = 2 * Math.PI, u = !1, p = !1, c = !1 } return o.push(t[n - 1]), o } return o } }, { key: "reSampleByAngle", value: function (t, e) { var o = [], n = t.length; if (null == t || n <= 0 || e <= 0) return o; for (var i = t, l = n, r = !1; SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].x, i[l - 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].y, i[l - 1].y);) { if ((l -= 1) <= 0) return o; r = !0 } var a, s, u = []; for (a = 0; a < l; a++)u.push(0); for (u[0] = 1, u[l - 1] = 1, s = 0, a = 1; a < l - 1; a++)if (SuperMap.Plot.PlottingUtil.distance(i[s], i[a]) > 1e-10 && SuperMap.Plot.PlottingUtil.distance(i[s], i[a + 1]) > 1e-10) { var p = 180 * SuperMap.Plot.PlottingUtil.InnerAngle(i[a], i[s], i[a + 1]) / Math.PI; p > e && p < 180 - e && (u[a] = 1, s++) } var c = 0; for (a = 0; a < l; a++)1 == u[a] && c++; if (c > 0) { for (r && c++, o = [], s = 0, a = 0; a < l; a++)1 == u[a] && (o[s++] = i[a]); return r && (o[s] = o[0]), o } return o } }]), e }(); SuperMap.Plot.FreeCurve = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.CombinationalCircle = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.angleRange = [], o.defaultRadius = t.defaultRadius ? t.defaultRadius : 60, o.CLASS_NAME = "SuperMap.Plot.CombinationalCircle", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { if (this.init(), this.controlPoints = SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints), !(null == this.controlPoints || this.controlPoints.length < 1)) { var t = this.getCircleLonLat(this.controlPoints[0], this.defaultRadius); this.angleRange = []; for (var e = 0; e < this.controlPoints.length; e++)null == this.scaleValues[e] && (this.scaleValues[e] = t), this.angleRange.push([{ Start: 0, End: 360 }]); for (var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), n = 0; n < o.length; n++)if (0 !== this.angleRange[n].length && (0 !== this.angleRange[n][0].Start || 0 !== this.angleRange[n][0].End)) for (var i = n + 1; i < o.length; i++)if (0 !== this.angleRange[i].length && (0 !== this.angleRange[i][0].Start || 0 !== this.angleRange[i][0].End)) { var l = SuperMap.Plot.PlottingUtil.distance(o[n], o[i]); if (l < this.scaleValues[n] + this.scaleValues[i]) if (l > Math.abs(this.scaleValues[n] - this.scaleValues[i])) for (var r = 0; r < 2; r++) { var a, s, u; 0 == r ? (u = n, a = SuperMap.Plot.PlottingUtil.radian(o[n], o[i]) * SuperMap.Plot.PlottingUtil.RTOD, s = Math.acos((l * l + this.scaleValues[n] * this.scaleValues[n] - this.scaleValues[i] * this.scaleValues[i]) / (2 * l * this.scaleValues[n])) * SuperMap.Plot.PlottingUtil.RTOD) : (u = i, a = SuperMap.Plot.PlottingUtil.radian(o[i], o[n]) * SuperMap.Plot.PlottingUtil.RTOD, s = Math.acos((l * l + this.scaleValues[i] * this.scaleValues[i] - this.scaleValues[n] * this.scaleValues[n]) / (2 * l * this.scaleValues[i])) * SuperMap.Plot.PlottingUtil.RTOD); var p = a - s, c = a + s, y = p < 0 && c > 0 || p > 360 || c > 360; p = this.adjustAngle(p), c = this.adjustAngle(c); for (var P = this.angleRange[u].length - 1; P >= 0; P--)if (y) { if (c > this.angleRange[u][P].End || SuperMap.Plot.PlottingUtil.equalFuzzy(c, this.angleRange[u][P].End)) { this.angleRange[u].splice(P, 1); continue } if (c > this.angleRange[u][P].Start && (this.angleRange[u][P].Start = c), p < this.angleRange[u][P].Start || SuperMap.Plot.PlottingUtil.equalFuzzy(p, this.angleRange[u][P].Start)) { this.angleRange[u].splice(P, 1); continue } p < this.angleRange[u][P].End && (this.angleRange[u][P].End = p) } else if (p < this.angleRange[u][P].Start && c > this.angleRange[u][P].End) this.angleRange[u].splice(P, 1); else if (p > this.angleRange[u][P].Start && c < this.angleRange[u][P].End) this.angleRange[u].push({ Start: this.angleRange[u][P].Start, End: p }), this.angleRange[u].push({ Start: c, End: this.angleRange[u][P].End }), this.angleRange[u].splice(P, 1); else { if (p > this.angleRange[u][P].End) continue; if (p > this.angleRange[u][P].Start && (this.angleRange[u][P].End = p), c < this.angleRange[u][P].Start) continue; c < this.angleRange[u][P].End && (this.angleRange[u][P].Start = c) } } else { if (this.scaleValues[n] < this.scaleValues[i]) { this.angleRange[n][0].Start = 0, this.angleRange[n][0].End = 0; break } this.angleRange[i][0].Start = 0, this.angleRange[i][0].End = 0 } } for (var h = [], f = 0; f < o.length; f++)if (0 !== this.angleRange[f].length && (0 !== this.angleRange[f][0].Start || 0 !== this.angleRange[f][0].End)) for (var S = this.angleRange[f].length - 1; S >= 0; S--) { for (var d = this.adjustAngle(this.angleRange[f][S].Start), g = this.adjustAngle(this.angleRange[f][S].End); g < d;)g += 360; if (g - d == 360) this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL, [o[f], new SuperMap.Geometry.Point(o[f].x, o[f].y + this.scaleValues[f])]); else { for (var M = [], m = (g - d) / 72, v = d; v < g + m / 2; v += m) { var b = o[f].x + this.scaleValues[f] * Math.cos(v * SuperMap.Plot.PlottingUtil.DTOR), T = o[f].y + this.scaleValues[f] * Math.sin(v * SuperMap.Plot.PlottingUtil.DTOR); M.push(new SuperMap.Geometry.Point(b, T)) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, M), h.push(M) } } for (var A = []; 0 !== h.length;) { var L = h[0]; h.splice(0, 1), void 0 !== (L = this.generatePolygon(h, L)) && A.push(L) } for (var O = [], E = 0; E < A.length; E++)O.push(A[E]); for (var x = O.length - 1; x >= 0; x--)for (var w = 0; w < O[x].length; w++) { for (var I in O) if (parseInt(I) !== x) { var R = O[I]; if (SuperMap.Plot.PlottingUtil.ptIsInPolygon(R, O[x][w])) { var C = x, _ = parseInt(I); O[_].push(O[_][0]), O[C].push(O[C][0]), O[_] = O[_].concat(O[C]), O.splice(C, 1); break } } if (!isNaN(C) && !isNaN(_)) break } for (var U = 0; U < O.length; U++) { var N = { type: SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, positionPoints: O[U], style: { surroundLineFlag: !1, lineWidthLimit: !0, weight: 0 } }; this.components.splice(0, 0, N) } for (var D = 0; D < o.length; D++) { var B = new SuperMap.Geometry.Point(o[D].x + this.scaleValues[D], o[D].y); B.isScalePoint = !0, B.tag = D, this.addScalePoint(B) } } } }, { key: "generatePolygon", value: function (t, e) { if (0 === t.length || SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x, e[e.length - 1].x, 1e-7) && SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y, e[e.length - 1].y, 1e-7)) return e; for (var o, n = e[e.length - 1], i = 0; i < t.length; i++)if (SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].x, n.x, 1e-7) && SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].y, n.y, 1e-7)) { if (e = e.concat(t[i]), t.splice(i, 1), void 0 !== (o = this.generatePolygon(t, e)) && 0 !== o.length) return o } else if (SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length - 1].x, n.x, 1e-7) && SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length - 1].y, n.y, 1e-7)) { for (var l = t[i].length - 1; l >= 0; l--)e.push(t[i][l]); if (t.splice(i, 1), void 0 !== (o = this.generatePolygon(t, e)) && 0 !== o.length) return o } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { if (t < 0 || t >= this.controlPoints.length) return; var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), n = SuperMap.Plot.PlottingUtil.distance(o[t], e); this.scaleValues[t] = n } this.calculateParts() } }, { key: "adjustAngle", value: function (t) { for (; t > 360;)t -= 360; for (; t < 0;)t += 360; return t } }, { key: "getCircleLonLat", value: function (t, e) { return null === this.map ? 2 * this.getDefaultSubSymbolSize() : this.map && "undefined" != typeof L && void 0 !== L.Map && this.map instanceof L.Map ? ((o = this.map.latLngToLayerPoint(L.latLng(t.y, t.x))).x += e, this.map.layerPointToLatLng(L.point(o.x, o.y)).lng - t.x) : this.map && "undefined" != typeof SuperMap && void 0 !== SuperMap.Map && this.map instanceof SuperMap.Map ? ((o = this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x, t.y))).x += e, this.map.getLonLatFromPixel(new SuperMap.Pixel(o.x, o.y)).lon - t.x) : void 0; var o } }]), e }(); SuperMap.Plot.CombinationalCircle = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.ConcentricCircle = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return void 0 === o.scaleValues[0] && (o.scaleValues[0] = 0), void 0 === o.scaleValues[1] && (o.scaleValues[1] = 360), o.CLASS_NAME = "SuperMap.Plot.ConcentricCircle", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!(null == (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)) || t.length < 2)) { for (2 == t.length && t.push(t[1].clone()); this.scaleValues[0] > 360;)this.scaleValues[0] -= 360; for (; this.scaleValues[0] < 0;)this.scaleValues[0] += 360; for (; this.scaleValues[1] > 360;)this.scaleValues[1] -= 360; for (; this.scaleValues[1] < 0;)this.scaleValues[1] += 360; for (; this.scaleValues[1] <= this.scaleValues[0];)this.scaleValues[1] += 360; for (var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]), o = SuperMap.Plot.PlottingUtil.distance(t[0], t[2]), n = [], i = [], l = Math.PI / 180, r = (this.scaleValues[1] - this.scaleValues[0]) / 72, a = this.scaleValues[0]; a < this.scaleValues[1] + r / 2; a += r) { var s = t[0].x + e * Math.cos(a * l), u = t[0].y + e * Math.sin(a * l), p = t[0].x + o * Math.cos(a * l), c = t[0].y + o * Math.sin(a * l); n.push(new SuperMap.Geometry.Point(s, u)), i.push(new SuperMap.Geometry.Point(p, c)) } for (var y = [], P = 0; P < n.length; P++)y.push(n[P]); y.push(n[0]); for (var h = i.length - 1; h >= 0; h--)y.push(i[h]); this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, y, { surroundLineFlag: !1, lineWidthLimit: !0, weight: 0, strokeWidth: 0 }), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, i); var f = t[0].x + e / 2 * Math.cos(this.scaleValues[0] * l), S = t[0].y + e / 2 * Math.sin(this.scaleValues[0] * l), d = t[0].x + o / 2 * Math.cos(this.scaleValues[1] * l), g = t[0].y + o / 2 * Math.sin(this.scaleValues[1] * l), M = new SuperMap.Geometry.Point(f, S); M.isScalePoint = !0, M.tag = 0, this.addScalePoint(M); var m = new SuperMap.Geometry.Point(d, g); m.isScalePoint = !0, m.tag = 1, this.addScalePoint(m) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { for (var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), n = 180 * SuperMap.Plot.PlottingUtil.radian(o[0], e) / Math.PI; n > 360;)n -= 360; for (; n < 0;)n += 360; 0 == t ? this.scaleValues[0] = n : 1 == t && (this.scaleValues[1] = n) } this.calculateParts() } }]), e }(); SuperMap.Plot.ConcentricCircle = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.SymbolTextBox = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.roundBox = !!t.roundBox && t.roundBox, o.textBoxType = t.textBoxType ? t.textBoxType : SuperMap.Plot.TextBoxType.WITHTIPBOX, 0 === o.scaleValues.length && (o.scaleValues.push(.126), o.scaleValues.push(0), o.scaleValues.push(0)), o.CLASS_NAME = "SuperMap.Plot.SymbolTextBox", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { this.roundBox = null, this.textBoxType = null, function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 }(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { this.init(); var t = this.scaleValues[0]; if (!(t < 0 || t > 1)) { if (t = (1 - t) / 2, this.controlPoints.length >= this.minEditPts) { var e, o, n, i; this.scalePoints = []; var l = []; this.controlPoints[0].x < this.controlPoints[1].x ? (e = this.controlPoints[0].x, n = this.controlPoints[1].x) : (e = this.controlPoints[1].x, n = this.controlPoints[0].x), this.controlPoints[0].y < this.controlPoints[1].y ? (i = this.controlPoints[0].y, o = this.controlPoints[1].y) : (i = this.controlPoints[1].y, o = this.controlPoints[0].y); var r = 1, a = 2, s = 3, u = 4; if (this.roundBox) { var p = Math.max(e, n), c = Math.min(e, n), y = Math.max(o, i), P = Math.min(o, i), h = .1 * Math.min(Math.abs(e - n), Math.abs(o - i)), f = new SuperMap.Geometry.Point(c + h, P + h), S = new SuperMap.Geometry.Point(c + h, y - h), d = new SuperMap.Geometry.Point(p - h, y - h), g = new SuperMap.Geometry.Point(p - h, P + h), M = this.calculateArc(f, h, 3 * Math.PI / 2, Math.PI, -1, 180), m = this.calculateArc(S, h, Math.PI, Math.PI / 2, -1, 180), v = this.calculateArc(d, h, Math.PI / 2, 0, -1, 180), b = this.calculateArc(g, h, 2 * Math.PI, 3 * Math.PI / 2, -1, 180); r = M.length, a = M.length + m.length, s = M.length + m.length + v.length, u = M.length + m.length + v.length + b.length, l = M.concat(m, v, b) } else l.push(new SuperMap.Geometry.Point(e, i)), l.push(new SuperMap.Geometry.Point(e, o)), l.push(new SuperMap.Geometry.Point(n, o)), l.push(new SuperMap.Geometry.Point(n, i)); this.isEdit || (this.scaleValues[1] = e + .1 * (n - e), this.scaleValues[2] = i + -.3 * (o - i)); var T = new SuperMap.Geometry.Point(this.scaleValues[1], this.scaleValues[2]), A = this.getAction(this.scaleValues[1], this.scaleValues[2], e, o, n, i); if (this.textBoxType === SuperMap.Plot.TextBoxType.WITHTIPBOX) switch (this.addScalePoint(T, 0), A) { case 0: break; case 1: this.addScalePoint(new SuperMap.Geometry.Point(e, o - (o - i) * t)), l.splice(r, 0, new SuperMap.Geometry.Point(e, o - (o - i) * t)), l.splice(r, 0, T), l.splice(r, 0, new SuperMap.Geometry.Point(e, i + (o - i) * t)); break; case 2: this.addScalePoint(new SuperMap.Geometry.Point(n - (n - e) * t, o)), l.splice(a, 0, new SuperMap.Geometry.Point(n - (n - e) * t, o)), l.splice(a, 0, T), l.splice(a, 0, new SuperMap.Geometry.Point(e + (n - e) * t, o)); break; case 3: this.addScalePoint(new SuperMap.Geometry.Point(n, o - (o - i) * t)), l.splice(s, 0, new SuperMap.Geometry.Point(n, i + (o - i) * t)), l.splice(s, 0, T), l.splice(s, 0, new SuperMap.Geometry.Point(n, o - (o - i) * t)); break; case 4: this.addScalePoint(new SuperMap.Geometry.Point(n - (n - e) * t, i)), l.splice(u, 0, new SuperMap.Geometry.Point(e + (n - e) * t, i)), l.splice(u, 0, T), l.splice(u, 0, new SuperMap.Geometry.Point(n - (n - e) * t, i)) }if (0 !== l.length) if (this.textBoxType === SuperMap.Plot.TextBoxType.NONEBOX) { this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l, { surroundLineFlag: !1, weight: 0, lineWidthLimit: !0 }) } else this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l) } else this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL, this.controlPoints); this.annotationContent(e, o, n, i), this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) if (0 === t) this.scaleValues[1] = e.x, this.scaleValues[2] = e.y; else if (1 === t) { var o, n, i, l, r, a, s = this.scalePoints[0]; this.controlPoints[0].x < this.controlPoints[1].x ? (o = this.controlPoints[0].x, i = this.controlPoints[1].x) : (o = this.controlPoints[1].x, i = this.controlPoints[0].x), this.controlPoints[0].y < this.controlPoints[1].y ? (l = this.controlPoints[0].y, n = this.controlPoints[1].y) : (l = this.controlPoints[1].y, n = this.controlPoints[0].y), r = this.scaleValues[1], a = this.scaleValues[2]; var u = (n - l) / (i - o), p = .25; switch (r < o ? a > n ? Math.abs((a - n) / (r - o)) > u ? 2 : 1 : a < l && Math.abs((a - l) / (r - o)) > u ? 4 : 1 : r > i ? a > n ? Math.abs((a - n) / (r - i)) > u ? 2 : 3 : a < l && Math.abs((a - l) / (r - i)) > u ? 4 : 3 : a > n ? 2 : a < l ? 4 : 0) { case 1: case 3: var c = s.y + (e.y - s.y); c > n && (c = n), c < (n + l) / 2 && (c = (n + l) / 2), p = 1 - 2 * (n - c) / (n - l); break; case 2: case 4: var y = s.x + (e.x - s.x); y > i && (y = i), y < (o + i) / 2 && (y = (o + i) / 2), p = 1 - 2 * (i - y) / (i - o) }p < 0 && (p = 0), p > 1 && (p = 1), this.scaleValues[0] = p } this.calculateParts() } }, { key: "calculateArc", value: function (t, e, o, n, i, l) { (!i || 1 != i && -1 != i) && (i = -1), l || (l = 360); for (var r = Math.PI / l / 2, a = r * i, s = Math.abs(n - o), u = [], p = o, c = 0; c < s; c += r) { var y = new SuperMap.Geometry.Point(Math.cos(p) * e + t.x, Math.sin(p) * e + t.y); u.push(y), p = (p = (p += a) < 0 ? p + 2 * Math.PI : p) > 2 * Math.PI ? p - 2 * Math.PI : p } return u } }, { key: "getAction", value: function (t, e, o, n, i, l) { var r = (n - l) / (i - o); return t < o ? e > n ? Math.abs((e - n) / (t - o)) > r ? 2 : 1 : e < l && Math.abs((e - l) / (t - o)) > r ? 4 : 1 : t > i ? e > n ? Math.abs((e - n) / (t - i)) > r ? 2 : 3 : e < l && Math.abs((e - l) / (t - i)) > r ? 4 : 3 : e > n ? 2 : e < l ? 4 : 0 } }]), e }(); SuperMap.Plot.SymbolTextBox = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GeoTooltipBoxM = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(0), o.scaleValues.push(0), o.scaleValues.push(0), o.scaleValues.push(0)), o.CLASS_NAME = "SuperMap.Plot.GeoTooltipBoxM", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destory", this).call(this) } }, { key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= this.minEditPts) { var e, o, n, i; t[0].x < t[1].x ? (e = t[0].x, n = t[1].x) : (e = t[1].x, n = t[0].x), t[0].y < t[1].y ? (i = t[0].y, o = t[1].y) : (i = t[1].y, o = t[0].y), this.scalePoints = []; var l = []; l.push(new SuperMap.Geometry.Point(e, i)), l.push(new SuperMap.Geometry.Point(e, o)), l.push(new SuperMap.Geometry.Point(n, o)), l.push(new SuperMap.Geometry.Point(n, i)), this.isEdit || (this.scaleValues[0] = e, this.scaleValues[1] = i - .3 * (o - i), this.scaleValues[2] = e + .5 * (n - e), this.scaleValues[3] = i - .3 * (o - i)); for (var r = [], a = [], s = 0; s < this.scaleValues.length / 2; s++)r.push(this.getAction(this.scaleValues[2 * s], this.scaleValues[2 * s + 1], e, o, n, i)), a.push(new SuperMap.Geometry.Point(this.scaleValues[2 * s], this.scaleValues[2 * s + 1])); for (var u, p, c, y, P = a.length, h = [], f = [], S = [], d = [], g = [], M = 0; M < r.length; M++)0 === r[M] && h.push(a[M]), 1 === r[M] && f.push(a[M]), 2 === r[M] && S.push(a[M]), 3 === r[M] && d.push(a[M]), 4 === r[M] && g.push(a[M]); var m = r.slice(); m.sort(); var v = new SuperMap.Geometry.Point(0, 0); if (m[0] === m[m.length - 1] && 0 !== m[0]) { var b = []; switch (m[0]) { case 0: break; case 1: u = 1 / (2 * f.length + 1); for (var T = new SuperMap.Geometry.Point, A = 0; A < 2 * f.length; A++)T = new SuperMap.Geometry.Point(e, i + (o - i) * u * (A + 1)), b.unshift(T); break; case 2: p = 1 / (2 * S.length + 1); for (var L = new SuperMap.Geometry.Point, O = 0; O < 2 * S.length; O++)L = new SuperMap.Geometry.Point(e + (n - e) * p * (O + 1), o), b.unshift(L); break; case 3: c = 1 / (2 * d.length + 1); for (var E = new SuperMap.Geometry.Point, x = 0; x < 2 * d.length; x++)E = new SuperMap.Geometry.Point(n, i + (o - i) * c * (x + 1)), b.push(E); break; case 4: y = 1 / (2 * g.length + 1); for (var w = new SuperMap.Geometry.Point, I = 0; I < 2 * g.length; I++)w = new SuperMap.Geometry.Point(e + (n - e) * y * (I + 1), i), b.push(w) }for (var R = 0; R < P; R++)for (var C = 0; C < P; C++) { var _ = SuperMap.Plot.PlottingUtil.intersectLineSegs(b[2 * R + 1], a[R], b[2 * C], a[C], v); if (_ && SuperMap.Plot.PlottingUtil.equalFuzzy(v.x, b[2 * R + 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.y, b[2 * R + 1].y) && (_ = !1), _) { var U = a[C].clone(); a[C] = a[R], a[R] = U } } for (var N = 0; N < P; N++)l.splice(m[0], 0, b[2 * N]), l.splice(m[0], 0, a[N]), l.splice(m[0], 0, b[2 * N + 1]) } else { for (var D, B, G = [], k = [], V = [], Y = [], F = 0; F < r.length; F++)switch (r[F]) { case 0: break; case 1: u = 1 / (2 * f.length + 1); for (var j = 0; j < 2 * f.length; j++) { var z = new SuperMap.Geometry.Point(e, i + (o - i) * u * (j + 1)); G.unshift(z) } for (var W = 0; W < f.length; W++)for (var H = 1; H < f.length; H++)(D = SuperMap.Plot.PlottingUtil.intersectLineSegs(G[2 * W + 1], f[W], G[2 * H], f[H], v)) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.x, G[2 * W + 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.y, G[2 * W + 1].y) && (D = !1), D && (B = f[H].clone(), f[H] = f[W], f[W] = B); break; case 2: p = 1 / (2 * S.length + 1); for (var q = 0; q < 2 * S.length; q++) { var J = new SuperMap.Geometry.Point(e + (n - e) * p * (q + 1), o); k.unshift(J) } for (var X = 0; X < S.length; X++)for (var K = 1; K < S.length; K++)(D = SuperMap.Plot.PlottingUtil.intersectLineSegs(k[2 * X + 1], S[X], k[2 * K], S[K], v)) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.x, k[2 * X + 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.y, k[2 * X + 1].y) && (D = !1), D && (B = S[K].clone(), S[K] = S[X], S[X] = B); break; case 3: c = 1 / (2 * d.length + 1); for (var Q = 0; Q < 2 * d.length; Q++) { var Z = new SuperMap.Geometry.Point(n, i + (o - i) * c * (Q + 1)); V.push(Z) } for (var $ = 0; $ < d.length; $++)for (var tt = 1; tt < d.length; tt++)(D = SuperMap.Plot.PlottingUtil.intersectLineSegs(V[2 * $ + 1], d[$], V[2 * tt], d[tt], v)) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.x, V[2 * $ + 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.y, V[2 * $ + 1].y) && (D = !1), D && (B = d[tt].clone(), d[tt] = d[$], d[$] = B); break; case 4: y = 1 / (2 * g.length + 1); for (var et = 0; et < 2 * g.length; et++) { var ot = new SuperMap.Geometry.Point(e + (n - e) * y * (et + 1), i); Y.push(ot) } for (var nt = 0; nt < g.length; nt++)for (var it = 1; it < g.length; it++)(D = SuperMap.Plot.PlottingUtil.intersectLineSegs(Y[2 * nt + 1], g[nt], Y[2 * it], g[it], v)) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.x, Y[2 * nt + 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(v.y, Y[2 * nt + 1].y) && (D = !1), D && (B = g[it].clone(), g[it] = g[nt], g[nt] = B) }for (var lt = 0; lt < g.length; lt++)l.splice(4, 0, Y[2 * lt]), l.splice(4, 0, g[lt]), l.splice(4, 0, Y[2 * lt + 1]); for (var rt = 0; rt < d.length; rt++)l.splice(3, 0, V[2 * rt]), l.splice(3, 0, d[rt]), l.splice(3, 0, V[2 * rt + 1]); for (var at = 0; at < S.length; at++)l.splice(2, 0, k[2 * at]), l.splice(2, 0, S[at]), l.splice(2, 0, k[2 * at + 1]); for (var st = 0; st < f.length; st++)l.splice(1, 0, G[2 * st]), l.splice(1, 0, f[st]), l.splice(1, 0, G[2 * st + 1]) } for (var ut = 0; ut < a.length; ut++)this.addScalePoint(a[ut], ut) } this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l), this.annotationContent(e, o, n, i), this.finish() } }, { key: "modifyPoint", value: function (t, e) { !0 === e.isScalePoint && (null == t && void 0 === t || (this.scaleValues[2 * t] = e.x, this.scaleValues[2 * t + 1] = e.y)), this.calculateParts() } }, { key: "getAction", value: function (t, e, o, n, i, l) { var r = (n - l) / (i - o); return t < o ? e > n ? Math.abs((e - n) / (t - o)) > r ? 2 : 1 : e < l && Math.abs((e - l) / (t - o)) > r ? 4 : 1 : t > i ? e > n ? Math.abs((e - n) / (t - i)) > r ? 2 : 3 : e < l && Math.abs((e - l) / (t - i)) > r ? 4 : 3 : e > n ? 2 : e < l ? 4 : 0 } }]), e }(); SuperMap.Plot.GeoTooltipBoxM = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GeoTooltipBox = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(.126), o.CLASS_NAME = "SuperMap.Plot.GeoTooltipBox", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "calculateParts", value: function () { this.init(); var t = this.scaleValues[0]; if (!(t < 0 || t > 1)) { if (t = (1 - t) / 2, this.controlPoints.length >= this.minEditPts) { var e, o, n, i, l, r; this.controlPoints[2] && (this.controlPoints[2].isFixedPos = !0), this.controlPoints[0].x < this.controlPoints[1].x ? (e = this.controlPoints[0].x, n = this.controlPoints[1].x) : (e = this.controlPoints[1].x, n = this.controlPoints[0].x), this.controlPoints[0].y < this.controlPoints[1].y ? (i = this.controlPoints[0].y, o = this.controlPoints[1].y) : (i = this.controlPoints[1].y, o = this.controlPoints[0].y), l = this.controlPoints[2].x, r = this.controlPoints[2].y; var a = 0, s = (o - i) / (n - e); a = l < e ? r > o ? Math.abs((r - o) / (l - e)) > s ? 2 : 1 : r < i && Math.abs((r - i) / (l - e)) > s ? 4 : 1 : l > n ? r > o ? Math.abs((r - o) / (l - n)) > s ? 2 : 3 : r < i && Math.abs((r - i) / (l - n)) > s ? 4 : 3 : r > o ? 2 : r < i ? 4 : 0, this.scalePoints = []; var u = []; switch (u.push(new SuperMap.Geometry.Point(e, i)), u.push(new SuperMap.Geometry.Point(e, o)), u.push(new SuperMap.Geometry.Point(n, o)), u.push(new SuperMap.Geometry.Point(n, i)), a) { case 0: break; case 1: this.addScalePoint(new SuperMap.Geometry.Point(e, o - (o - i) * t)), u.splice(a, 0, new SuperMap.Geometry.Point(e, o - (o - i) * t)), u.splice(a, 0, this.controlPoints[2].clone()), u.splice(a, 0, new SuperMap.Geometry.Point(e, i + (o - i) * t)); break; case 2: this.addScalePoint(new SuperMap.Geometry.Point(n - (n - e) * t, o)), u.splice(a, 0, new SuperMap.Geometry.Point(n - (n - e) * t, o)), u.splice(a, 0, this.controlPoints[2].clone()), u.splice(a, 0, new SuperMap.Geometry.Point(e + (n - e) * t, o)); break; case 3: this.addScalePoint(new SuperMap.Geometry.Point(n, o - (o - i) * t)), u.splice(a, 0, new SuperMap.Geometry.Point(n, i + (o - i) * t)), u.splice(a, 0, this.controlPoints[2].clone()), u.splice(a, 0, new SuperMap.Geometry.Point(n, o - (o - i) * t)); break; case 4: this.addScalePoint(new SuperMap.Geometry.Point(n - (n - e) * t, i)), u.splice(a, 0, new SuperMap.Geometry.Point(e + (n - e) * t, i)), u.splice(a, 0, this.controlPoints[2].clone()), u.splice(a, 0, new SuperMap.Geometry.Point(n - (n - e) * t, i)) }this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, u), this.annotationContent(e, o, n, i) } this.finish() } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint && 0 == t) { var o, n, i, l, r, a, s = this.scalePoints[0]; this.controlPoints[0].x < this.controlPoints[1].x ? (o = this.controlPoints[0].x, i = this.controlPoints[1].x) : (o = this.controlPoints[1].x, i = this.controlPoints[0].x), this.controlPoints[0].y < this.controlPoints[1].y ? (l = this.controlPoints[0].y, n = this.controlPoints[1].y) : (l = this.controlPoints[1].y, n = this.controlPoints[0].y), r = this.controlPoints[2].x, a = this.controlPoints[2].y; var u = (n - l) / (i - o), p = .25; switch (r < o ? a > n ? Math.abs((a - n) / (r - o)) > u ? 2 : 1 : a < l && Math.abs((a - l) / (r - o)) > u ? 4 : 1 : r > i ? a > n ? Math.abs((a - n) / (r - i)) > u ? 2 : 3 : a < l && Math.abs((a - l) / (r - i)) > u ? 4 : 3 : a > n ? 2 : a < l ? 4 : 0) { case 1: case 3: var c = s.y + (e.y - s.y); c > n && (c = n), c < (n + l) / 2 && (c = (n + l) / 2), p = 1 - 2 * (n - c) / (n - l); break; case 2: case 4: var y = s.x + (e.x - s.x); y > i && (y = i), y < (o + i) / 2 && (y = (o + i) / 2), p = 1 - 2 * (i - y) / (i - o) }p < 0 && (p = 0), p > 1 && (p = 1), this.scaleValues[0] = p } this.calculateParts() } }]), e }(); SuperMap.Plot.GeoTooltipBox = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Trapezoid = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.CLASS_NAME = "SuperMap.Plot.Trapezoid", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if ((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length >= 2 && t.length < this.minEditPts && this.calAssistantLine(), !(t.length < this.minEditPts)) { var e = [], o = t[0], n = t[1], i = t[2], l = new SuperMap.Geometry.Point(0, 0); this.GetPointsByTrapezoid(1, i, n, o, l), e.push(o), e.push(n), e.push(i), e.push(l); var r = SuperMap.Plot.PlottingUtil.intersectLines(o, n, i, l), a = r.intersectPoint; r.isIntersectLines && (a.x > o.x && a.x < n.x || a.y > o.y && a.y < n.y || a.x < o.x && a.x > n.x || a.y < o.y && a.y > n.y) && (e[0] = l, e[3] = o), 4 == e.length && this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e) } } }, { key: "GetPointsByTrapezoid", value: function (t, e, o, n, i) { var l = e.x, r = e.y, a = o.x, s = o.y, u = n.x, p = n.y, c = 0, y = 0, P = 0, h = 0; if (SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(r - s), 0)) c = l + a - u, y = p; else if (SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(l - a), 0)) c = u, y = r + s - p; else { var f = 1 * (r - s) / (l - a), S = p - f * u; y = f * (c = ((s + r) / 2 + (l + a) / (2 * f) - S) / (f + 1 / f)) + S, c = 2 * c - u, y = 2 * y - p } var d = Math.sqrt(1 * (l - a) * (l - a) + 1 * (r - s) * (r - s)), g = Math.sqrt(1 * (l - c) * (l - c) + 1 * (r - y) * (r - y)); d > 0 ? (P = l + (a - l) * g / d, h = r + (s - r) * g / d) : (P = l, h = r); var M = P + (c - P) * t, m = h + (y - h) * t; i.x = M, i.y = m } }]), e }(); SuperMap.Plot.Trapezoid = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Brace = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && (o.scaleValues.push(.1), o.scaleValues.push(.1)), o.CLASS_NAME = "SuperMap.Plot.Brace", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { this.init(); var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); if (!((t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length < this.minEditPts)) { var e = t[0], o = t[1], n = SuperMap.Plot.PlottingUtil.distance(e, o); this.scaleValues.length < 2 && (this.scaleValues = [], this.scaleValues.push(.1), this.scaleValues.push(.1)); for (var i = this.scaleValues[0], l = this.scaleValues[1], r = new SuperMap.Geometry.Point(n * i, n * i), a = new SuperMap.Geometry.Point(n * (.5 - l / 2), 0), s = new SuperMap.Geometry.Point(.5 * n, -n * l), u = new SuperMap.Geometry.Point(n * (.5 + l / 2), 0), p = new SuperMap.Geometry.Point(n * (1 - i), n * i), c = [], y = 180 * Math.PI / 180, P = 270 * Math.PI / 180, h = 3 * Math.PI / 180, f = y; f <= P; f += h) { var S = new SuperMap.Geometry.Point(r.x + n * i, r.y); S = SuperMap.Plot.PlottingUtil.rotateAngle(r, f, S), c.push(S) } c.push(a), c.push(s), c.push(u), y = 270 * Math.PI / 180, P = 360 * Math.PI / 180; for (var d = y; d <= P; d += h) { var g = new SuperMap.Geometry.Point(p.x + n * i, p.y); g = SuperMap.Plot.PlottingUtil.rotateAngle(p, d, g), c.push(g) } for (var M = SuperMap.Plot.PlottingUtil.radian(e, o), m = [], v = 0; v < c.length; v++) { var b = new SuperMap.Geometry.Point(c[v].x + e.x, c[v].y + e.y); b = SuperMap.Plot.PlottingUtil.rotateAngle(e, M, b), m.push(b) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, m), this.scalePoints = []; var T = new SuperMap.Geometry.Point(n * i, 0), A = new SuperMap.Geometry.Point(T.x + e.x, T.y + e.y); (A = SuperMap.Plot.PlottingUtil.rotateAngle(e, M, A)).isScalePoint = !0, A.tag = 0, this.addScalePoint(A); var L = new SuperMap.Geometry.Point(s.x + e.x, s.y + e.y); SuperMap.Plot.PlottingUtil.rotateAngle(e, M, L), L.isScalePoint = !0, L.tag = 1, this.addScalePoint(L) } } }, { key: "modifyPoint", value: function (t, e) { if (!0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), n = SuperMap.Plot.PlottingUtil.distance(o[0], o[1]); if (0 == t) { var i = SuperMap.Plot.PlottingUtil.distance(o[0], e) / n; i > 0 && i < .4 && (this.scaleValues[0] = i) } else if (1 == t) { var l = new SuperMap.Geometry.Point((o[0].x + o[1].x) / 2, (o[0].y + o[1].y) / 2), r = SuperMap.Plot.PlottingUtil.distance(e, l) / n; 0 < r && .2 > r && (this.scaleValues[1] = r) } } this.calculateParts() } }]), e }(); SuperMap.Plot.Brace = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.RegularPolygon = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return 0 === o.scaleValues.length && o.scaleValues.push(1), o.CLASS_NAME = "SuperMap.Plot.RegularPolygon", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { if (this.init(), !(this.controlPoints.length < this.minEditPts)) { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), e = this.controlPoints.length + 1, o = 2 * Math.PI / e; if (!this.isEdit) { var n = this.controlPoints[this.controlPoints.length - 1], i = new SuperMap.Geometry.Point(this.controlPoints[this.controlPoints.length - 1].x, this.controlPoints[this.controlPoints.length - 1].y); SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0], o, i), this.scaleValues[0] = SuperMap.Plot.PlottingUtil.distance(t[0], this.calculateMidPt(n, i)) / SuperMap.Plot.PlottingUtil.distance(t[0], t[t.length - 1]) } var l = [], r = this.controlPoints[this.controlPoints.length - 1].clone(); l.push(r.clone()), r = SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0], o / 2, r); var a = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0], this.controlPoints[0], r); l.push(a); for (var s = 1; s < e; s++)r = SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0], o / 2, r), l.push(r.clone()), r = SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0], o / 2, r), a = SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0], this.controlPoints[0], r), l.push(a); var u = l[1]; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, l, { surroundLineFlag: !1, fill: !1 }), this.addScalePoint(u), 0 !== this.textContent.length && this.createTextContent(), this.finish() } } }, { key: "calculateMidPt", value: function (t, e) { return new SuperMap.Geometry.Point((t.x + e.x) / 2, (t.y + e.y) / 2) } }, { key: "modifyPoint", value: function (t, e) { if (0 === t && !0 === e.isScalePoint) { var o = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], this.controlPoints[this.controlPoints.length - 1]), n = this.scalePoints[0], i = SuperMap.Plot.PlottingUtil.projectPoint(e, this.controlPoints[0], n), l = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], i); this.scaleValues[0] = l / o } this.calculateParts() } }]), e }(); SuperMap.Plot.RegularPolygon = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.ArrowLine = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.arrowAngle = t.arrowAngle ? t.arrowAngle : 45, 0 === o.scaleValues.length && (o.scaleValues.push(.3), o.scaleValues.push(0), o.scaleValues.push(0)), o.CLASS_NAME = "SuperMap.Plot.ArrowLine", o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.Plot.AlgoSymbol), n(e, [{ key: "calculateParts", value: function () { if (this.init(), !(null == this.controlPoints || this.controlPoints.length < this.minEditPts)) { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); t = SuperMap.Plot.PlottingUtil.clearSamePts(t); var e = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); e = SuperMap.Plot.PlottingUtil.clearSamePts(e); var o = SuperMap.Plot.PlottingUtil.polylineDistance(e); this.isEdit || (this.scaleValues[0] = .5 * this.getSubSymbolScaleValue(o)); var n, i = this.scaleValues[0] * o, l = this.arrowAngle * Math.PI / 180 / 2, r = (n = e.length > 2 ? SuperMap.Plot.PlottingUtil.radian(e[e.length - 1], e[e.length - 2]) : SuperMap.Plot.PlottingUtil.radian(e[1], e[0])) - l, a = e[e.length - 1].x + i * Math.cos(r), s = e[e.length - 1].y + i * Math.sin(r), u = new SuperMap.Geometry.Point(a, s), p = n + l, c = e[e.length - 1].x + i * Math.cos(p), y = e[e.length - 1].y + i * Math.sin(p), P = new SuperMap.Geometry.Point(c, y), h = []; h.push(u), h.push(e[e.length - 1].clone()), h.push(P); var f = { surroundLineFlag: !1, fillLimit: !0, lineTypeLimit: !0 }, S = SuperMap.Plot.PlottingUtil.radian(e[0], e[1]); r = S - l, a = e[0].x + i * Math.cos(r), s = e[0].y + i * Math.sin(r), u = new SuperMap.Geometry.Point(a, s), p = S + l, c = e[0].x + i * Math.cos(p), y = e[0].y + i * Math.sin(p), P = new SuperMap.Geometry.Point(c, y); var d = []; d.push(u), d.push(e[0].clone()), d.push(P); var g = this.scaleValues[1] === SuperMap.Plot.ArrowLineType.DOUBLELINE ? SuperMap.Plot.SymbolType.POLYLINESYMBOL : SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, M = this.scaleValues[2] === SuperMap.Plot.ArrowLineType.DOUBLELINE ? SuperMap.Plot.SymbolType.POLYLINESYMBOL : SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL; this.scaleValues[1] === SuperMap.Plot.ArrowLineType.DOUBLELINE ? this.addCell(g, d, f) : this.scaleValues[1] === SuperMap.Plot.ArrowLineType.TRIANGLESOLID && this.addCell(g, d, f), this.scaleValues[2] === SuperMap.Plot.ArrowLineType.DOUBLELINE ? this.addCell(M, h, f) : this.scaleValues[2] === SuperMap.Plot.ArrowLineType.TRIANGLESOLID && this.addCell(M, h, f), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, e), this.finish() } } }]), e }(); SuperMap.Plot.ArrowLine = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.AlgoSymbol = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.style = null, this.libID = e.libID ? e.libID : 0, this.code = e.code ? e.code : 0, this.maxEditPts = e.maxEditPts ? e.maxEditPts : SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(e.libID, e.code), this.minEditPts = e.minEditPts ? e.minEditPts : SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(e.libID, e.code), this.isEdit = !!e.isEdit && e.isEdit, this.controlPoints = e.controlPoints ? e.controlPoints : [], this.scalePoints = e.scalePoints ? e.scalePoints : [], this.scaleValues = e.scaleValues ? e.scaleValues : [], this.subSymbols = e.subSymbols ? e.subSymbols : SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID, e.code), this.polylineConnectLocationPoint = !!e.polylineConnectLocationPoint && e.polylineConnectLocationPoint, this.style = e.style ? e.style : SuperMap.Plot.PlottingUtil.copyAttributes(this.style, SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(e.libID, e.code)), this.textContent = e.textContent ? e.textContent : "", this.map = e.map ? e.map : null, this.scene = e.scene ? e.scene : null, this.subSymbolDefaultPixelSize = e.subSymbolDefaultPixelSize ? e.subSymbolDefaultPixelSize : 30, this.components = [], this.symbolType = 0 === this.libID ? this.code : 2 } return n(t, [{ key: "addScalePoint", value: function (t, e) { if (null != t) { void 0 !== e && null !== e || (e = this.scalePoints.length); var o = new SuperMap.Geometry.Point(t.x, t.y); o.isScalePoint = !0, o.tag = e, this.scalePoints.push(o) } } }, { key: "setOptions", value: function (t) { if (t) for (var e in this) t[e] && (this[e] = t[e]) } }, { key: "getAlgorithmResult", value: function (t) { t.components = this.components, t.scalePoints = this.scalePoints, t.scaleValues = this.scaleValues } }]), n(t, [{ key: "destroy", value: function () { this.minEditPts = null, this.maxEditPts = null, this.controlPoints.length = 0, this.controlPoints = null, this.scalePoints.length = 0, this.scalePoints = null, this.scaleValues.length = 0, this.scaleValues = null, this.subSymbols.length = 0, this.subSymbols = null, this.subSymbolSize = 0, this.components = [], this.style = null } }, { key: "init", value: function () { if (this.components = [], this.scalePoints = [], this.controlPoints.length >= 2 && this.controlPoints.length < this.minEditPts && this.calAssistantLine(), this.maxEditPts < this.controlPoints.length && this.symbolType !== SuperMap.Plot.SymbolType.ELLIPSESYMBOL) { var t = this.controlPoints.shift(), e = this.controlPoints.pop(); this.controlPoints = [], this.controlPoints.push(t, e) } } }, { key: "finish", value: function () { } }, { key: "calculateParts", value: function () { if (this.init(), this.controlPoints = SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints), this.controlPoints = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints), this.controlPoints.length >= this.minEditPts) { var t = { textContent: this.textContent, type: this.symbolType, surroundLineFlag: !1, positionPoints: this.controlPoints, style: {} }; if (t.type === SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL && t.positionPoints.push(t.positionPoints[0]), this.symbolType === SuperMap.Plot.SymbolType.PARALLELLINE) { if (this.controlPoints && this.controlPoints.length >= 3) { var e = !1; void 0 !== this.controlPoints[0].z && (e = !0); var o = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], this.controlPoints[1]); SuperMap.Plot.PlottingUtil.isRight(this.controlPoints[0], this.controlPoints[1], this.controlPoints[2]) && (o = -o); for (var n = [], i = 1; i < this.controlPoints.length; i++)n.push(this.controlPoints[i].clone()); var l = SuperMap.Plot.PlottingUtil.parallel(n, o); if (this.controlPoints[0].x = l[0].x, this.controlPoints[0].y = l[0].y, e) for (var r = 0; r < n.length; r++)l[r].z = n[r].z; this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, n), this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, l) } } else this.components.push(t) } } }, { key: "modifyPoint", value: function (t, e) { if (0 === this.libID && 31 === this.code) { if (0 === t) return this.controlPoints[0].x = (this.controlPoints[1].x + this.controlPoints[3].x) / 2, void (this.controlPoints[0].y = (this.controlPoints[1].y + this.controlPoints[3].y) / 2); var o = -1; 0 === (o = (t + 2) % 4) && (o = 4); var n = SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0], this.controlPoints[t]), i = SuperMap.Plot.PlottingUtil.findPointInLine(this.controlPoints[0], this.controlPoints[o], n), l = new SuperMap.Geometry.Point(2 * this.controlPoints[0].x - i.x, 2 * this.controlPoints[0].y - i.y), r = this.getPixelFromLonLat(i.x, i.y), a = this.getPixelFromLonLat(l.x, l.y), s = !1; (SuperMap.Plot.PlottingUtil.equalFuzzy(r.x - a.x, 0) || SuperMap.Plot.PlottingUtil.equalFuzzy(r.y - a.y, 0)) && (s = !0), s ? (this.controlPoints[o].x = l.x, this.controlPoints[o].y = l.y, this.controlPoints[t].x = i.x, this.controlPoints[t].y = i.y) : (this.controlPoints[o].x = i.x, this.controlPoints[o].y = i.y, this.controlPoints[t].x = l.x, this.controlPoints[t].y = l.y) } else this.computeScaleValues(t, e), this.calculateParts() } }, { key: "computeScaleValues", value: function () { } }, { key: "getLonLatDistanceFromPixel", value: function (t) { if (null === this.map) return 0; var e, o; if (this.map && "undefined" != typeof L && void 0 !== L.Map && this.map instanceof L.Map) { var n = this.map.layerPointToLatLng(L.point(0, 0)), i = this.map.layerPointToLatLng(L.point(t, 0)); e = new SuperMap.Geometry.Point(n.lng, n.lat), o = new SuperMap.Geometry.Point(i.lng, i.lat) } else if (this.map && "undefined" != typeof SuperMap && void 0 !== SuperMap.Map && this.map instanceof SuperMap.Map) { n = this.map.getLonLatFromPixel(new SuperMap.Pixel(0, 0)), i = this.map.getLonLatFromPixel(new SuperMap.Pixel(t, 0)); e = new SuperMap.Geometry.Point(n.lon, n.lat), o = new SuperMap.Geometry.Point(i.lon, i.lat) } return SuperMap.Plot.PlottingUtil.distance(e, o) } }, { key: "getPixelFromLonLat", value: function (t, e) { if (this.map && "undefined" != typeof L && void 0 !== L.Map && this.map instanceof L.Map) { var o = this.map.latLngToLayerPoint(L.latLng(e, t)); return { x: o.x, y: o.y } } if (this.map && "undefined" != typeof SuperMap && void 0 !== SuperMap.Map && this.map instanceof SuperMap.Map) { var n = this.map.getPixelFromLonLat(new SuperMap.LonLat(t, e)); return { x: n.x, y: n.y } } } }, { key: "getLonLatFromPixel", value: function (t, e) { if (this.map && "undefined" != typeof L && void 0 !== L.Map && this.map instanceof L.Map) { var o = this.map.layerPointToLatLng(L.point(t, e)); return { lon: o.lng, lat: o.lat } } if (this.map && "undefined" != typeof SuperMap && void 0 !== SuperMap.Map && this.map instanceof SuperMap.Map) { var n = this.map.getLonLatFromPixel(new SuperMap.Pixel(t, e)); return { lon: n.lon, lat: n.lat } } } }, { key: "pixelBoundsToLonLat", value: function (t) { var e = this.getLonLatFromPixel(t.left, t.top), o = this.getLonLatFromPixel(t.right, t.bottom); return new SuperMap.Bounds(e.lon, o.lat, o.lon, e.lat) } }, { key: "annotationContent", value: function (t, e, o, n) { var i = this.textContent; if (0 !== i.length) { var l = SuperMap.Plot.PlottingUtil.getTextWidth(this.style, i), r = this.getPixelFromLonLat(t, e), a = this.getPixelFromLonLat(o, n), s = parseFloat(Math.abs(a.x - r.x)), u = parseFloat(Math.abs(r.y - a.y)); if (l >= s) { var p = i.split(""); i = ""; var c = 1, y = 0; this.style.weight ? y = parseFloat(this.style.fontSize) + 2 * this.style.weight + .2 * parseFloat(this.style.fontSize) + c : this.style.strokeWidth && (y = parseFloat(this.style.fontSize) + 2 * this.style.strokeWidth + .2 * parseFloat(this.style.fontSize) + c); for (var P = "", h = 0, f = p.length; h < f && y <= u; h++) { if (P += p[h], SuperMap.Plot.PlottingUtil.getTextWidth(this.style, P) >= s) { var S = p[h]; if (p[h] = "\n", c++, this.style.weight ? y = parseFloat(this.style.fontSize) * c + c + 2 * this.style.weight + .2 * parseFloat(this.style.fontSize) : this.style.strokeWidth && (y = parseFloat(this.style.fontSize) * c + c + 2 * this.style.strokeWidth + .2 * parseFloat(this.style.fontSize)), !(y < u)) break; p[h] += S, P = S } i += p[h] } } if (0 !== i.length) { var d = this.style.labelAlign, g = 0, M = 0; "l" === d[0] ? g = t : "r" === d[0] ? g = o : "c" === d[0] && (g = (t + o) / 2), "t" === d[1] ? M = e : "b" === d[1] ? M = n : "m" === d[1] && (M = (e + n) / 2); var m = new SuperMap.Geometry.Point(g, M), v = {}; v.positionPoints = [m], v.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, v.textContent = i, v.style = { surroundLineFlag: !1, labelAlign: d }, this.components.push(v) } } } }, { key: "addCell", value: function (t, e, o, n) { if (t && e) { var i = {}; i.type = t, i.textContent = n, i.positionPoints = e, i.style = null == o ? { surroundLineFlag: !1 } : o, this.components.push(i) } } }, { key: "addText", value: function (t, e, o, n, i) { if (t && e) { var l = {}; l.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, l.textContent = t, l.positionPoints = [e]; var r = o / t.length / 2; l.style = {}, l.style.surroundLineFlag = !1, l.style.labelRotation = -n, l.style.fontSize = r, l.style.fontColor = void 0 === i ? "#000000" : i, l.style.fontSizeLimit = !0, l.style.sizeFixed = !1, l.style.labelAlign = "cm", l.style.label = t, this.components.push(l) } } }, { key: "getLinePts", value: function (t, e, o) { var n = new Object; if (e > .5) return n.startIndex = 0, n.startPt = t[0], n.endIndex = t.length - 1, n.endPt = t[t.length - 1], n; null == o && (o = .5); var i = SuperMap.Plot.PlottingUtil.polylineDistance(t), l = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i * (o - e), t), r = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i * (o + e), t); return n.startIndex = l.index, n.startPt = l.pts, n.endIndex = r.index, n.endPt = r.pts, n } }, { key: "computeDashLine", value: function (t, e, o) { var n = [], i = SuperMap.Plot.PlottingUtil.polylineDistance(o); if (i <= 0) return []; for (var l, r = o[0], a = 1, s = 0, u = !0, p = !0; s < i;) { var c, y = []; y.push(r), s += t; var P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, o); if (c = P.index, l = P.pts, !(u = P.bfind)) break; if (a < c) for (var h = a; h < c; h++)y.push(o[h]); y.push(l), n.push(y), s += e; var f = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s, o); if (c = f.index, r = f.pts, a = c + 1, !(p = f.bfind)) break } if (!u) { var S = []; S.push(r); for (var d = a; d < o.length; d++)S.push(o[d]); 2 === S.length && SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(S[0], S[1]), 0) || n.push(S) } if (!p) { var g = o[o.length - 1], M = SuperMap.Plot.PlottingUtil.distance(l, g); if (M *= .01, !SuperMap.Plot.PlottingUtil.equalFuzzy(M, 0)) { var m = SuperMap.Plot.PlottingUtil.linePnt(g, l, M), v = []; v.push(m), v.push(g), n.push(v) } } return n } }, { key: "addArrow", value: function (t, e) { if (t.length < 2) return t; var o, n = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); void 0 === e && (e = (this.isEdit, .5 * this.getSubSymbolScaleValue())), o = n * e; var i = t[t.length - 1]; if (t.length > 2) { for (var l = -1, r = t.length - 2; r >= 0; r--)if (o < SuperMap.Plot.PlottingUtil.distance(i, t[r])) { l = r; break } t.splice(l + 1, t.length - l), t.push(i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var a = t[t.length - 2], s = t[t.length - 1], u = o; if (void 0 === a) return t; if (!(SuperMap.Plot.PlottingUtil.distance(a, s) < o)) { var p = SuperMap.Plot.PlottingUtil.radian(a, s) * SuperMap.Plot.PlottingUtil.RTOD, c = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 157.5), y = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 202.5), P = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0, lineTypeLimit: !0, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.NONE }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, [c, t[t.length - 1], y], P) } } }, { key: "addDovetailArrow", value: function (t, e) { if (t.length < 2) return t; var o, n = SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); void 0 === e && (e = (this.isEdit, .5 * this.getSubSymbolScaleValue())), o = n * e; var i = t[t.length - 1]; if (t.length > 2) { for (var l = -1, r = t.length - 2; r >= 0; r--)if (o < SuperMap.Plot.PlottingUtil.distance(i, t[r])) { l = r; break } t.splice(l + 1, t.length - l), t.push(i) } this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL, t); var a = t[t.length - 2], s = t[t.length - 1], u = o; if (void 0 === a) return t; if (!(SuperMap.Plot.PlottingUtil.distance(a, s) < o)) { var p = SuperMap.Plot.PlottingUtil.radian(a, s) * SuperMap.Plot.PlottingUtil.RTOD, c = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 157.5), y = SuperMap.Plot.PlottingUtil.circlePoint(s, u, u, p + 202.5), P = SuperMap.Plot.PlottingUtil.circlePoint(s, .5 * u, .5 * u, p + 180), h = []; h.push(c), h.push(t[t.length - 1]), h.push(y), h.push(P); var f = { surroundLineFlag: !1, fillLimit: !0, fillColorLimit: !1, fill: !0, lineTypeLimit: !0, surroundLineLimit: !0, surroundLineType: SuperMap.Plot.AlgoSurroundLineType.NONE }; this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, h, f) } } }, { key: "getDefaultSubSymbolSize", value: function () { var t = 0; if (this.map) { var e = this.getLonLatFromPixel(0, 0), o = this.getLonLatFromPixel(this.subSymbolDefaultPixelSize, 0), n = new SuperMap.Geometry.Point(e.lon, e.lat), i = new SuperMap.Geometry.Point(o.lon, o.lat); t = SuperMap.Plot.PlottingUtil.distance(n, i) } if (0 === t) { if (0 !== this.subSymbolSize) return this.subSymbolSize; for (var l = 0, r = 0; r < this.controlPoints.length - 1; r++)l += SuperMap.Plot.PlottingUtil.distance(this.controlPoints[r], this.controlPoints[r + 1]); t = .3 * l } return t } }, { key: "getTextBounds", value: function (t, e) { " " === e && (e = "_"); var o = document.createElement("span"); document.body.appendChild(o), o.style.width = "auto", o.style.height = "auto", t.fontSize && (o.style.fontSize = new String(t.fontSize) + "px"), t.fontFamily && (o.style.fontFamily = t.fontFamily), t.fontWeight && (o.style.fontWeight = t.fontWeight), o.style.position = "absolute", o.style.visibility = "hidden", o.innerHTML = e; var n = new SuperMap.Bounds(o.clientLeft, o.clientTop + o.clientHeight - 6, o.clientLeft + o.clientWidth, o.clientTop + 4), i = this.pixelBoundsToLonLat(n); return document.body.removeChild(o), i } }, { key: "calAssistantLine", value: function () { var t = SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints); this.symbolType === SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL && (t.splice(1, 0, new SuperMap.Geometry.Point(this.controlPoints[1].x, this.controlPoints[0].y)), t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x, this.controlPoints[1].y)), t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x, this.controlPoints[0].y))); var e = { type: 24, surroundLineFlag: !1, positionPoints: t, style: { color: "#0000ff", opacity: 1, weight: 1, dashArray: "5, 5", strokeColor: "#0000ff", strokeOpacity: 1, strokeWidth: 1, strokeDashstyle: "dash", lineColorLimit: !0, lineTypeLimit: !0, lineWidthLimit: !0, surroundLineFlag: !1 } }; this.components.push(e) } }, { key: "getSubSymbolScaleValue", value: function (t, e) { var o = 0; o = t && !SuperMap.Plot.PlottingUtil.equalFuzzy(t, 0) ? t : SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints); var n = this.getDefaultSubSymbolSize() / o; return void 0 === e && (e = .3), (n > e || n <= 0) && (n = e), n } }, { key: "computeSubSymbol", value: function (t, e, o, n, i, l) { if (null == t.symbolData || null == t.symbolData.innerCells) return null; void 0 === i && (i = 0), void 0 === l && (l = 0); for (var r = SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(t.symbolData, !0), a = 0, s = 0, u = 0, p = 0, c = 0; c < r.length; c++)for (var y = SuperMap.Plot.Primitives.getSpatialData(r[c].type, r[c].positionPoints, r[c].textContent, 0, r[c].isCalculate), P = 0, h = y.length; P < h; P++)a < y[P].x && (a = y[P].x), s < y[P].y && (s = y[P].y), u > y[P].x && (u = y[P].x), p > y[P].y && (p = y[P].y); var f = new SuperMap.Geometry.Point(a, s), S = new SuperMap.Geometry.Point(u, p), d = (f.y - S.y) / o, g = (f.x - S.x) / o, M = g > d ? g : d, m = new SuperMap.Geometry.Point(.5 * (f.x + S.x), .5 * (f.y + S.y)); m.x += i * (f.x - S.x), m.y += l * (f.y - S.y); for (var v = 0, b = r.length; v < b; v++) { for (var T = 0, A = r[v].positionPoints.length; T < A; T++)r[v].positionPoints[T].x -= m.x, r[v].positionPoints[T].y -= m.y, r[v].positionPoints[T].x /= M, r[v].positionPoints[T].y /= M, SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0, 0), n * Math.PI / 180, r[v].positionPoints[T]), r[v].positionPoints[T].x += e.x, r[v].positionPoints[T].y += e.y; r[v].type === SuperMap.Plot.SymbolType.TEXTSYMBOL && (r[v].style.fontSize /= 10 * M, r[v].style.labelRotation = -n, r[v].style.sizeFixed = !1), r[v].isCalculate = !1, this.components.push(r[v]) } return r } }, { key: "ComputeZValue", value: function (t, e, o) { var n = SuperMap.Plot.PlottingUtil.pointProjectToSegment(t, e, o), i = new SuperMap.Geometry.Point(n.projectPoint.x, n.projectPoint.y), l = SuperMap.Plot.PlottingUtil.distance(e, o), r = SuperMap.Plot.PlottingUtil.distance(e, t), a = SuperMap.Plot.PlottingUtil.distance(o, t); if (!n.isOnline) { if (r >= l) return o.z; if (a >= l) return e.z } return i.x != e.x && e.x != o.x ? e.z + (i.x - e.x) / (e.x - o.x) * (e.z - o.z) : i.y != e.y && e.y != o.y ? e.z + (i.y - e.y) / (e.y - o.y) * (e.z - o.z) : 0 == (r = SuperMap.Plot.PlottingUtil.distance(e, i)) ? e.z : e.z - (e.z - o.z) * (r / l) } }, { key: "ComputeBeizerZValueByDis", value: function (t, e, o) { if (t.length < 2) return !1; for (var n = [], i = 0; i < t.length; i++)n.push({ x: t[i].x, y: t[i].y }); var l = SuperMap.Plot.PlottingUtil.polylineDistance(n); if (0 == l) return !1; var r = SuperMap.Plot.PlottingUtil.polylineDistance(e), a = []; a.push(n[0]); for (var s = -1, u = 0, p = e[0], c = 1; c < n.length; c++) { a.push(n[c]); var y = SuperMap.Plot.PlottingUtil.polylineDistance(a) / l, P = r * y, h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P, e), f = h.index, S = h.pts; if (h.bfind) { for (var d = t[c - 1].z, g = t[c].z, M = r * (y - u), m = 0, v = ++s; v <= f; v++) { var b = d + (g - d) * ((m += v == s ? SuperMap.Plot.PlottingUtil.distance(p, e[v]) : SuperMap.Plot.PlottingUtil.distance(e[v - 1], e[v])) / M); o.push({ x: e[v].x, y: e[v].y, z: b }) } s = f } u = y, p = S } for (var T = s + 1; T < e.length; T++)o.push({ x: e[T].x, y: e[T].y, z: t[t.length - 1].z }); return !0 } }, { key: "ComputeHeight", value: function (t, e, o, n) { if (o != n) { if (0 != t.length) if (1 == t.length) e.push({ x: t[0].x, y: t[0].y, z: o }); else if (2 == t.length) e.push({ x: t[0].x, y: t[0].y, z: o }), e.push({ x: t[1].x, y: t[1].y, z: n }); else { var i = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (0 != i) { var l = []; l.push(t[0]), e.push({ x: t[0].x, y: t[0].y, z: o }); for (var r = 1; r < t.length - 1; r++) { l.push(t[r]); var a = o + (n - o) * SuperMap.Plot.PlottingUtil.polylineDistance(l) / i; e.push({ x: t[r].x, y: t[r].y, z: a }) } e.push({ x: t[t.length - 1].x, y: t[t.length - 1].y, z: n }) } else for (var s = 0; s < t.length; s++)e.push({ x: t[s].x, y: t[s].y, z: o }) } } else for (var u = 0; u < t.length; u++)e.push({ x: t[u].x, y: t[u].y, z: o }) } }]), t }(); SuperMap.Plot.AlgoSymbol = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.ArrowToolkit = SuperMap.Plot.ArrowToolkit = SuperMap.Plot.ArrowToolkit || {}; SuperMap.Plot.ArrowToolkit.ConstValue = { MAX_ARRAY_SIZE: 128, sv_AtScaleParameter: 1.5, sv_AtLenDivAtWidth: 1.35, sv_AtWidthDivAwWidth: .5, DUOJIANTOU_TAIL_RATE_1: 8, DUOJIANTOU_TAIL_RATE_2: 3, DUOJIANTOU_TAIL_RATE_3: .6 }, SuperMap.Plot.ArrowToolkit.ArrowTailType = { ARROWTAIL_NONE: 0, ARROWTAIL_LINE: 1, ARROWTAIL_CURVE: 2, ARROWTAIL_COATTAIL: 3, ARROWTAIL_COATTAIL_POLYBODY: 4 }, SuperMap.Plot.ArrowToolkit.ArrowHeadType = { ARROWHEAD_POLYLINE: 0, ARROWHEAD_TRIANGLE: 1, ARROWHEAD_COATTAIL: 2, ARROWHEAD_TRIANGLE_SOLID: 3, ARROWHEAD_COATTAIL_HOLLOW: 6, ARROWHEAD_WITH_EAR: 4, ARROWHEAD_WITHOUT_EAR: 5 }, SuperMap.Plot.ArrowToolkit.ArrowBodyType = { ARROWBODY_POLYLINE: 0, ARROWBODY_POLYBEZIER: 1, ARROWBODY_COATTAIL: 5, ARROWBODY_PARALLEL: 2, ARROWBODY_TRAPEZOID: 3, ARROWBODY_MULTIPOLYBEZIER: 4 }, SuperMap.Plot.ArrowToolkit.parallel = function (t, e) { var o = { leftParallelPts: [], rightParallelPts: [] }; return 1 === t.length || 2 === t.length && t[0].x === t[1].x && t[0].y === t[1].y ? o : (o.leftParallelPts = SuperMap.Plot.PlottingUtil.parallel(t, e), o.rightParallelPts = SuperMap.Plot.PlottingUtil.parallel(t, -e), o) }, SuperMap.Plot.ArrowToolkit.trapezoid = function (t, e, o) { var n = { leftParallelPts: [], rightParallelPts: [] }; if (1 === t.length || 2 === t.length && t[0].x === t[1].x && t[0].y === t[1].y) return n; for (var i = 0; i < t.length - 1; i++) { t[i].x === t[i + 1].x && t[i].y === t[i + 1].y && (n.leftParallelPts.push(n.leftParallelPts[n.leftParallelPts.length - 1]), n.rightParallelPts.push(n.rightParallelPts[n.rightParallelPts.length - 1])); var l = t[i + 1]; l = SuperMap.Plot.PlottingUtil.rotate(t[i], 0, 1, l), n.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i], l, e)), l = t[i], l = SuperMap.Plot.PlottingUtil.rotate(t[i + 1], 0, -1, l), n.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i + 1], l, o)), l = t[i + 1], l = SuperMap.Plot.PlottingUtil.rotate(t[i], 0, -1, l), n.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i], l, e)), l = t[i], l = SuperMap.Plot.PlottingUtil.rotate(t[i + 1], 0, 1, l), n.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i + 1], l, o)) } return n }, SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts = function (t, e, o) { var n = {}; switch (o) { case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL: case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID: var i = e[0], l = e[1], r = e[2], a = SuperMap.Plot.PlottingUtil.equalFuzzy(r, 0); if (!a && t.length > 2) { var s = t.length; t.splice(2, s - 2) } var u = SuperMap.Plot.PlottingUtil.polylineDistance(t); n.arrowTouLen = u * i; for (var p = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, u - n.arrowTouLen).pt, c = [], y = n.arrowTouLen * r, P = n.arrowTouLen * l, h = t.length - 1, f = 0; f < h; f++)c.push(t[f]); c.push(p); var S = { leftParallelPts: [], rightParallelPts: [] }; S = !0 === a ? SuperMap.Plot.ArrowToolkit.parallel(c, P) : SuperMap.Plot.ArrowToolkit.trapezoid(c, y, P); var d = t[t.length - 1]; t[t.length - 1] = p, t.push(d); n.leftBodyPts = S.leftParallelPts, n.rightBodyPts = S.rightParallelPts, n.OpectrlPoints = null; break; case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER: var g = SuperMap.Plot.PlottingUtil.polylineDistance(t); if (0 == g) return; var M = SuperMap.Plot.ArrowToolkit.OperateCtrlPts(t), m = M.length; m--; var v = SuperMap.Plot.ArrowToolkit.generateMultiBezier(M, m, e, g); t = []; for (var b = 0; b < M.length; b++)t.push(M[b]); n.arrowTouLen = v.arrowTouLen, n.leftBodyPts = v.leftBodyPts, n.rightBodyPts = v.rightBodyPts, n.OpectrlPoints = M }return n }, SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts = function (t, e, o, n, i) { var l = []; switch (i) { case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR: case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR: var r = o[0], a = o[1], s = 0, u = 0; 3 == o.length && (s = o[2]), 4 == o.length && (s = o[2], u = o[3]); var p = 0; if (!SuperMap.Plot.PlottingUtil.equalFuzzy(s, 0) && !SuperMap.Plot.PlottingUtil.equalFuzzy(u, 0)) { var c = SuperMap.Plot.PlottingUtil.clonePoints(t); c.splice(c.length - 1, 1), p = SuperMap.Plot.PlottingUtil.polylineDistance(c) * s * u } var y = new SuperMap.Geometry.Point((e[0].x + e[1].x) / 2, (e[0].y + e[1].y) / 2); if (SuperMap.Plot.PlottingUtil.equalFuzzy(a, 0)) { var P = n * r, h = t[t.length - 1]; return h = SuperMap.Plot.PlottingUtil.rotate(y, 0, 1, h), l.push(SuperMap.Plot.PlottingUtil.findPointInLine(y, h, P)), l.push(t[t.length - 1]), h = t[t.length - 1], h = SuperMap.Plot.PlottingUtil.rotate(y, 0, -1, h), l.push(SuperMap.Plot.PlottingUtil.findPointInLine(y, h, P)), l } var f = n * a, S = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(f, y, t[t.length - 1]); f = n * r, f += p; var d = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f, t[t.length - 1], S), g = d.pntLeft, M = d.pntRight, m = t[t.length - 1]; return l.push(M), l.push(m), l.push(g), l } }, SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine = function (t, e, o, n) { var i = []; if (2 > t.length) return i; var l, r = SuperMap.Plot.PlottingUtil.polylineDistance(t), a = SuperMap.Plot.PlottingUtil.equalFuzzy(e, 0); switch (o) { case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE: i = i.concat(t), n && !a && SuperMap.Plot.PlottingUtil.distance(t[t.length - 1], t[t.length - 2]) > e && (l = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, r - e), i.splice(i.length - 1, 1), i.push(l.pt)); break; case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER: if (2 == t.length) i = i.concat(t), n && !a && SuperMap.Plot.PlottingUtil.distance(t[t.length - 1], t[t.length - 2]) > e && (l = SuperMap.Plot.PlottingUtil.findPointInPolyLine(t, r - e), i.splice(i.length - 1, 1), i.push(l.pt)); else { var s = SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t); if (a) i = i.concat(s); else { var u = s[s.length - 1]; if (!a && (e < SuperMap.Plot.PlottingUtil.distance(t[t.length - 1], t[t.length - 2]) || SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(t[t.length - 1], t[t.length - 2]), e, 1e-7))) { for (var p = s.length - 1; p > 1; p--) { if (!(e > SuperMap.Plot.PlottingUtil.distance(u, s[p]))) { var c = SuperMap.Plot.PlottingUtil.findPoint(u, s[p], e, 0); s.push(c), i = s; break } s.splice(p, 1) } n || i.push(u) } else i = i.concat(s) } } break; case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL: var y = e; if (y > r) return i; for (var P, h, f = Math.ceil(r / (1.4 * y)), S = 0, d = [], g = 0; g < f; g++)P = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y * S, t), h = SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y * (S + 1), t), P.bfind && h.bfind && (d.push(P.pts), d.push(h.pts)), S = 1.4 * (g + 1); i = d }return i }, SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine = function (t, e, o) { var n = []; if (2 > t.length) return n; switch (o) { case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE: var i = t[0], l = t[1], r = SuperMap.Plot.PlottingUtil.distance(i, l); if (SuperMap.Plot.PlottingUtil.equalFuzzy(r, e, 1e-7) || r > e) { var a = SuperMap.Plot.PlottingUtil.findPoint(i, l, e, 0), s = e * Math.tan(.125 * Math.PI), u = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s, t[0], a); n.push(u.pntLeft), n.push(t[0]), n.push(u.pntRight) } break; case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE: break; case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID: var p = t[0], c = t[1], y = SuperMap.Plot.PlottingUtil.distance(p, c); if (SuperMap.Plot.PlottingUtil.equalFuzzy(y, e, 1e-7) || y > e) { var P = e * Math.tan(.125 * Math.PI), h = SuperMap.Plot.PlottingUtil.findPoint(p, c, e, 0), f = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(P, t[0], h); n.push(f.pntLeft), n.push(p), n.push(f.pntRight), n.push(f.pntLeft) } break; case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL: var S = t[0], d = 2 * Math.sqrt(e * e / 3), g = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (SuperMap.Plot.PlottingUtil.equalFuzzy(d / 2, g, 1e-7) || g > d / 2) { var M = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], d, 20), m = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], d, -20), v = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], d / 2, 0); n.push(S), n.push(M), n.push(v), n.push(m), n.push(S) } break; case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW: var b = [], T = t[0], A = 2 * Math.sqrt(e * e / 3), L = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (SuperMap.Plot.PlottingUtil.equalFuzzy(A / 1.4, L, 1e-7) || L > A / 1.4) { var O = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], A, 20), E = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], A, -20), x = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], A / 1.4, 0); b.push(T), b.push(O), b.push(x), b.push(E), b.push(T); var w = new SuperMap.Geometry.Point((b[0].x + b[1].x) / 2, (b[0].y + b[1].y) / 2), I = new SuperMap.Geometry.Point((b[3].x + b[4].x) / 2, (b[3].y + b[4].y) / 2), R = new SuperMap.Geometry.Point((w.x + I.x) / 2, (w.y + I.y) / 2), C = .75 * SuperMap.Plot.PlottingUtil.distance(w, I) / 2, _ = SuperMap.Plot.PlottingUtil.findPointInLine(R, w, C), U = SuperMap.Plot.PlottingUtil.findPointInLine(R, I, C); n.push(b[0]), n.push(_), n.push(b[1]), n.push(b[2]), n.push(b[3]), n.push(U), n.push(b[4]) } }return n }, SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts = function (t, e, o, n) { for (var i = e.length, l = [], r = 0, a = 0; a < t.length - 1; a++)r += SuperMap.Plot.PlottingUtil.distance(t[a], t[a + 1]); var s = r * o; switch (n) { case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE: break; case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE: var u = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], s, 90), p = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], s, -90); l.push(u), l.push(p); break; case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE: var c = new SuperMap.Geometry.Point(.5 * (e[0].x + e[i - 1].x), .5 * (e[0].y + e[i - 1].y)), y = SuperMap.Plot.PlottingUtil.distance(e[0], e[i - 1]), P = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(y * o, c, t[t.length - 1]), h = new SuperMap.Geometry.Point(0, 0), f = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrianglePoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1, SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2, e[0], P, e[i - 1], h, f); var S = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3, e[0], P, h, S); var d = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3, e[i - 1], P, f, d); break; case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL: var g = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], s, 157.5), M = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], s, -157.5); l.push(g), l.push(t[0]), l.push(M); break; case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY: var m = new SuperMap.Geometry.Point(.5 * (e[0].x + e[i - 1].x), .5 * (e[0].y + e[i - 1].y)), v = SuperMap.Plot.PlottingUtil.distance(e[0], e[i - 1]), b = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v * o, e[0], m); l.push(e[i - 1]), l.push(b.pntLeft), l.push(e[0]) }return l }, SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine = function (t, e, o) { var n = []; switch (o) { case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE: break; case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE: var i = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], e, 90), l = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], e, -90); n.push(i), n.push(l); break; case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL: var r = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], e, 157.5), a = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], e, -157.5); n.push(r), n.push(t[0]), n.push(a) }return n }, SuperMap.Plot.ArrowToolkit.OperateCtrlPts = function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t); if (3 == e.length) { var o = ((e[0].x + e[1].x) / 2 + e[2].x) / 2, n = ((e[0].y + e[1].y) / 2 + e[2].y) / 2, i = new SuperMap.Geometry.Point(o, n), l = e[2].clone(); e[2] = i, e.push(l) } return e }, SuperMap.Plot.ArrowToolkit.generateMultiBezier = function (t, e, o, n) { var i = 0, l = [], r = [], a = [], s = [], u = [], p = [], c = o[0], y = o[1], P = (t[0].x + t[1].x) / 2, h = (t[0].y + t[1].y) / 2, f = Math.abs(P - t[2].x), S = Math.abs(h - t[2].y), d = 0; if (f > 0 && S > 0) { var g = 1 / (P - t[2].x), M = -1 / (h - t[2].y), m = 1 * t[2].y / (h - t[2].y) - 1 * t[2].x / (P - t[2].x); d = Math.abs(g * t[0].x + M * t[0].y + m) / Math.sqrt(g * g + M * M) } else S <= 1e-4 ? d = Math.abs(h - t[1].y) : f <= 1e-4 && (d = Math.abs(P - t[1].x)); var v = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d, t[2], new SuperMap.Geometry.Point(P, h)), b = SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[1], t[2], t[0]); b ? (l[1] = t[1], r[1] = t[0]) : (l[1] = t[0], r[1] = t[1]), t[1] = new SuperMap.Geometry.Point((t[0].x + t[1].x) / 2, (t[0].y + t[1].y) / 2); var T = Math.sqrt((v.pntLeft.x - v.pntRight.x) * (v.pntLeft.x - v.pntRight.x) + (v.pntLeft.y - v.pntRight.y) * (v.pntLeft.y - v.pntRight.y)) * SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth, A = (i = T * SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth) * y; SuperMap.Plot.PlottingUtil.equalFuzzy(c, 0) || (A = (i = n * c) * y); var L, O, E = SuperMap.Plot.PlottingUtil.distance(t[e], t[e - 1]), x = 2 * i; E < x && (A = (i = E / 2) * y), t.push(t[e]), L = 0, O = 0; var w = 0, I = []; for (w = 2; w <= e; w++)L += SuperMap.Plot.PlottingUtil.distance(t[w], t[w - 1]); for (L -= i, w = 2; w <= e - 1; w++)O += SuperMap.Plot.PlottingUtil.distance(t[w], t[w - 1]), I[w] = A + (T - A) * Math.pow((L - O) / L, SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter); I[e] = A; var R, C, _ = new SuperMap.Geometry.Point(0, 0), U = new SuperMap.Geometry.Point(0, 0), N = new SuperMap.Geometry.Point(0, 0); for (w = 2; w <= e - 1; w++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0, 3, t[w - 1], t[w], t[w + 1], U, N), w == e - 1 && SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, t[e], t[e - 1], N, _), R = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I[w], U, t[w]), (b = SuperMap.Plot.PlottingUtil.pointIsRightToLine(N, U, R.pntRight)) ? (l[w] = new SuperMap.Geometry.Point(R.pntRight.x, R.pntRight.y), r[w] = new SuperMap.Geometry.Point(R.pntLeft.x, R.pntLeft.y)) : (l[w] = new SuperMap.Geometry.Point(R.pntLeft.x, R.pntLeft.y), r[w] = new SuperMap.Geometry.Point(R.pntRight.x, R.pntRight.y)); for (Math.sqrt(1 * (t[e].x - _.x) * (t[e].x - _.x) + 1 * (t[e].y - _.y) * (t[e].y - _.y)) > 0 && (t[e] = SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i, t[e], _)), R = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(A, t[e + 1], t[e]), (b = SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[e], t[e + 1], R.pntLeft)) ? (r[e] = new SuperMap.Geometry.Point(R.pntLeft.x, R.pntLeft.y), l[e] = new SuperMap.Geometry.Point(R.pntRight.x, R.pntRight.y)) : (r[e] = new SuperMap.Geometry.Point(R.pntRight.x, R.pntRight.y), l[e] = new SuperMap.Geometry.Point(R.pntLeft.x, R.pntLeft.y)), w = 2; w < e; w++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, l[w - 1], l[w], l[w + 1], U, N), a[w] = new SuperMap.Geometry.Point(U.x, U.y), s[w] = new SuperMap.Geometry.Point(N.x, N.y), SuperMap.Plot.PlottingUtil.getTrianglePoints(3, 3, r[w - 1], r[w], r[w + 1], U, N), u[w] = new SuperMap.Geometry.Point(U.x, U.y), p[w] = new SuperMap.Geometry.Point(N.x, N.y), 2 == w && (SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, l[1], l[2], a[2], _), s[1] = new SuperMap.Geometry.Point(_.x, _.y), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5, r[1], r[2], u[2], _), p[1] = new SuperMap.Geometry.Point(_.x, _.y)), w == e - 1 && (x = (E = SuperMap.Plot.PlottingUtil.distance(l[e], l[e - 1])) / 3, (C = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(x, t[e], t[e + 1])).x += l[e].x - t[e].x, C.y += l[e].y - t[e].y, x = (E = T - A) * Math.pow(x / L, SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter), R = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x, l[e], C), a[e] = new SuperMap.Geometry.Point(R.pntLeft.x, R.pntLeft.y), x = (E = SuperMap.Plot.PlottingUtil.distance(r[e], r[e - 1])) / 3, (C = SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(x, t[e], t[e + 1])).x += r[e].x - t[e].x, C.y += r[e].y - t[e].y, x = (E = T - A) * Math.pow(x / L, SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter), R = SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x, r[e], C), u[e] = new SuperMap.Geometry.Point(R.pntRight.x, R.pntRight.y)); return { arrowTouLen: i, leftBodyPts: SuperMap.Plot.ArrowToolkit.genArrowBody(e, l, a, s), rightBodyPts: SuperMap.Plot.ArrowToolkit.genArrowBody(e, r, u, p) } }, SuperMap.Plot.ArrowToolkit.genArrowBody = function (t, e, o, n) { var i = new SuperMap.Plot.Path2D; if (!(t < 2)) { i.MoveTo(e[1]); for (var l = 1; l <= t - 1; l++)i.CubicTo(n[l], o[l + 1], e[l + 1]); var r = []; return i.ToSubPathPolygons(r), r[0] } } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Path2DData = function () { function t(e) { if (function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e) { this.cStart = e.cStart, this.fillRule = e.fillRule, this.require_StartNewFigure = e.require_StartNewFigure, this.isBoundsDirty = e.isBoundsDirty, this.bounds = new SuperMap.Bounds(e.bounds.left, e.bounds.bottom, e.bounds.right, e.bounds.top), this.ref = 1, this.elements = []; for (var o = 0; o < e.elements.length; o++)this.elements.push(e.elements[o].clone()) } else this.ref = 1, this.bounds = new SuperMap.Bounds(0, 0, 0, 0), this.elements = []; this.CLASS_NAME = "SuperMap.Plot.Path2DData" } return n(t, [{ key: "IsClosed", value: function () { var t = this.elements[this.cStart], e = this.elements[this.elements.length - 1]; return t.GetX() == e.GetX() && t.GetY() == e.GetY() } }, { key: "Close", value: function () { this.require_StartNewFigure = !0; var t = this.elements[this.cStart], e = this.elements[this.elements.length - 1]; t != e && (t.Equal(e) ? e.SetPosition(t.GetX(), t.GetY()) : this.elements.push(new SuperMap.Plot.Element(t.GetX(), t.GetY(), SuperMap.Plot.ElementType.LineToElement))) } }, { key: "MaybeStartNewFigure", value: function () { if (this.require_StartNewFigure) { var t = this.elements[this.elements.length - 1].clone(); t.SetType(0), this.elements.push(t), this.require_StartNewFigure = !1 } } }]), t }(); SuperMap.Plot.Path2DData = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Element = function () { function t(e, o, n) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.m_x = e, this.m_y = o, this.m_type = n, this.CLASS_NAME = "SuperMap.Plot.Element" } return n(t, [{ key: "GetX", value: function () { return this.m_x } }, { key: "GetY", value: function () { return this.m_y } }, { key: "GetType", value: function () { return this.m_type } }, { key: "GetPosition", value: function () { return SuperMap.Geometry.Point(this.m_x, this.m_y) } }, { key: "SetPosition", value: function (t, e) { this.m_x = t, this.m_y = e } }, { key: "SetType", value: function (t) { this.m_type = t } }, { key: "IsCurveTo", value: function () { return 2 == this.m_type } }, { key: "IsLineTo", value: function () { return 1 == this.m_type } }, { key: "IsMoveTo", value: function () { return 0 == this.m_type } }, { key: "Equal", value: function (t) { return SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_x, t.m_x, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_y, t.m_y, 1e-10) && this.m_type == t.m_type } }, { key: "clone", value: function () { return new SuperMap.Plot.Path2D.Element(this.m_x, this.m_y, this.m_type) } }]), t }(); SuperMap.Plot.Element = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Path2D = function () { function t() { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.m_pData = null, this.CLASS_NAME = "SuperMap.Plot.Path2D" } return n(t, [{ key: "MoveTo", value: function (t) { this.ensureData(), this.detach(); var e = this.getDataPtr(); if (e.require_StartNewFigure = !1, 0 == e.elements[e.elements.length - 1].GetType()) e.elements[e.elements.length - 1].SetPosition(t.x, t.y); else { var o = new SuperMap.Plot.Element(t.x, t.y, 0); e.elements.push(o) } e.cStart = e.elements.length - 1 } }, { key: "LineTo", value: function (t) { this.ensureData(), this.detach(); var e = this.getDataPtr(); if (e.MaybeStartNewFigure(), e.elements[e.elements.length - 1].GetX() != t.x || e.elements[e.elements.length - 1].GetY() != t.y) { var o = new SuperMap.Plot.Element(t.x, t.y, 1); e.elements.push(o) } } }, { key: "CurveTo", value: function (t, e, o) { this.ensureData(), this.detach(); var n = this.getDataPtr(); if (n.elements[n.elements.length - 1].GetX() != t.x || n.elements[n.elements.length - 1].GetY() != t.y || t.x != e.x || t.y != e.y || e.x != o.x || e.y != o.y) { n.MaybeStartNewFigure(); var i = new SuperMap.Plot.Element(t.x, t.y, 2), l = new SuperMap.Plot.Element(e.x, e.y, 3), r = new SuperMap.Plot.Element(o.x, o.y, 3); n.elements.push(i), n.elements.push(l), n.elements.push(r) } } }, { key: "CubicTo", value: function (t, e, o) { this.ensureData(), this.detach(); var n = this.getDataPtr(); if (n.elements[n.elements.length - 1].GetX() != t.x || n.elements[n.elements.length - 1].GetY() != t.y || t.x != e.x || t.y != e.y || e.x != o.x || e.y != o.y) { n.MaybeStartNewFigure(); var i = new SuperMap.Plot.Element(t.x, t.y, 2), l = new SuperMap.Plot.Element(e.x, e.y, 3), r = new SuperMap.Plot.Element(o.x, o.y, 3); n.elements.push(i), n.elements.push(l), n.elements.push(r) } } }, { key: "ToSubPathPolygons", value: function (t) { var e, o, n = this.getDataPtr(); if (this.IsEmpty()) return !1; for (var i = [], l = this.GetElementCount(), r = 0; r < l; r++) { var a = n.elements[r]; switch (a.GetType()) { case 0: i.length > 1 && t.push(i), i = [], e = a.GetX(), o = a.GetY(), i.push(new SuperMap.Geometry.Point(e, o)); break; case 1: e = a.GetX(), o = a.GetY(), i.push(new SuperMap.Geometry.Point(e, o)); break; case 2: if (3 != n.elements[r + 1].GetType() || 3 != n.elements[r + 1].GetType()) break; for (var s = n.elements[r - 1].GetX(), u = n.elements[r - 1].GetY(), p = a.GetX(), c = a.GetY(), y = n.elements[r + 1].GetX(), P = n.elements[r + 1].GetY(), h = n.elements[r + 2].GetX(), f = n.elements[r + 2].GetY(), S = 0; S <= 1; S += .03125) { var d = S * S, g = d * S, M = 1 - 3 * S + 3 * d - g, m = 3 * (S - 2 * d + g), v = 3 * (d - g), b = g; i.push(new SuperMap.Geometry.Point(M * s + m * p + v * y + b * h, M * u + m * c + v * P + b * f)) } r += 2 } } return i.length > 1 && t.push(i), !0 } }, { key: "ensureData", value: function () { null == this.m_pData && this.ensureData_helper() } }, { key: "ensureData_helper", value: function () { var t = new SuperMap.Plot.Path2DData, e = new SuperMap.Plot.Element(0, 0, 0); t.elements.push(e), null == this.m_pData || this.mtDeRef(this.m_pData.ref) || (this.m_pData = null), this.m_pData = t } }, { key: "detach", value: function () { 1 != this.m_pData.ref && this.detach_helper(), this.setBoundsDirty(!0) } }, { key: "detach_helper", value: function () { var t = new SuperMap.Plot.Path2DData; null == this.m_pData || this.mtDeRef(this.m_pData.ref) || (this.m_pData = null), this.m_pData = t } }, { key: "setBoundsDirty", value: function (t) { this.getDataPtr().isBoundsDirty = t } }, { key: "getDataPtr", value: function () { return this.m_pData } }, { key: "IsEmpty", value: function () { if (null == this.m_pData) return !0; var t = this.m_pData.elements.length; return 0 == t || 1 == t && 0 == this.m_pData.elements[0].GetType() } }, { key: "GetElementCount", value: function () { return null != this.m_pData ? this.m_pData.elements.length : 0 } }], [{ key: "mtRef", value: function (t) { return 0 != ++t } }, { key: "mtDeRef", value: function (t) { return 0 != --t } }]), t }(); SuperMap.Plot.Path2D = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbol15200 = e.AlgoSymbol315 = e.AlgoSymbol1022 = e.AlgoSymbol1021 = e.AlgoSymbol1020 = e.AlgoSymbol1019 = e.AlgoSymbol1018 = e.AlgoSymbol1017 = e.AlgoSymbol1016 = e.AlgoSymbol1015 = e.AlgoSymbol1014 = e.AlgoSymbol1013 = e.AlgoSymbol1012 = e.AlgoSymbol1011 = e.AlgoSymbol1010 = e.AlgoSymbol1009 = e.AlgoSymbol1008 = e.AlgoSymbol1007 = e.AlgoSymbol1006 = e.AlgoSymbol1005 = e.AlgoSymbol1004 = e.AlgoSymbol1003 = e.AlgoSymbol1002 = e.AlgoSymbol1001 = e.Wire = e.PolygonRegion = e.LineRelation = e.LineMarking = e.PathText = e.CurveEight = e.Runway = e.NodeChain = e.FreeCurve = e.CombinationalCircle = e.ConcentricCircle = e.SymbolTextBox = e.GeoTooltipBoxM = e.GeoTooltipBox = e.Trapezoid = e.Brace = e.RegularPolygon = e.ArrowLine = e.AlgoSymbol = e.ArrowToolkit = e.Path2DData = e.Element = e.Path2D = void 0; var n = o(53), i = o(52), l = o(51), r = o(50), a = o(49), s = o(48), u = o(47), p = o(46), c = o(45), y = o(44), P = o(43), h = o(42), f = o(41), S = o(40), d = o(39), g = o(38), M = o(37), m = o(36), v = o(35), b = o(34), T = o(33), A = o(32), L = o(31), O = o(30), E = o(29), x = o(28), w = o(27), I = o(26), R = o(25), C = o(24), _ = o(23), U = o(22), N = o(21), D = o(20), B = o(19), G = o(18), k = o(17), V = o(16), Y = o(15), F = o(14), j = o(13), z = o(12), W = o(11), H = o(10), q = o(9), J = o(8), X = o(7); e.Path2D = n.Path2D, e.Element = i.Element, e.Path2DData = l.Path2DData, e.ArrowToolkit = r.ArrowToolkit, e.AlgoSymbol = a.AlgoSymbol, e.ArrowLine = s.ArrowLine, e.RegularPolygon = u.RegularPolygon, e.Brace = p.Brace, e.Trapezoid = c.Trapezoid, e.GeoTooltipBox = y.GeoTooltipBox, e.GeoTooltipBoxM = P.GeoTooltipBoxM, e.SymbolTextBox = h.SymbolTextBox, e.ConcentricCircle = f.ConcentricCircle, e.CombinationalCircle = S.CombinationalCircle, e.FreeCurve = d.FreeCurve, e.NodeChain = g.NodeChain, e.Runway = M.Runway, e.CurveEight = m.CurveEight, e.PathText = v.PathText, e.LineMarking = b.LineMarking, e.LineRelation = T.LineRelation, e.PolygonRegion = A.PolygonRegion, e.Wire = L.Wire, e.AlgoSymbol1001 = O.AlgoSymbol1001, e.AlgoSymbol1002 = E.AlgoSymbol1002, e.AlgoSymbol1003 = x.AlgoSymbol1003, e.AlgoSymbol1004 = w.AlgoSymbol1004, e.AlgoSymbol1005 = I.AlgoSymbol1005, e.AlgoSymbol1006 = R.AlgoSymbol1006, e.AlgoSymbol1007 = C.AlgoSymbol1007, e.AlgoSymbol1008 = _.AlgoSymbol1008, e.AlgoSymbol1009 = U.AlgoSymbol1009, e.AlgoSymbol1010 = N.AlgoSymbol1010, e.AlgoSymbol1011 = D.AlgoSymbol1011, e.AlgoSymbol1012 = B.AlgoSymbol1012, e.AlgoSymbol1013 = G.AlgoSymbol1013, e.AlgoSymbol1014 = k.AlgoSymbol1014, e.AlgoSymbol1015 = V.AlgoSymbol1015, e.AlgoSymbol1016 = Y.AlgoSymbol1016, e.AlgoSymbol1017 = F.AlgoSymbol1017, e.AlgoSymbol1018 = j.AlgoSymbol1018, e.AlgoSymbol1019 = z.AlgoSymbol1019, e.AlgoSymbol1020 = W.AlgoSymbol1020, e.AlgoSymbol1021 = H.AlgoSymbol1021, e.AlgoSymbol1022 = q.AlgoSymbol1022, e.AlgoSymbol315 = J.AlgoSymbol315, e.AlgoSymbol15200 = X.AlgoSymbol15200 }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbolFactory = e.BasicAlgoSymbolFactory = void 0; var n = o(3), i = o(6); e.BasicAlgoSymbolFactory = n.BasicAlgoSymbolFactory, e.AlgoSymbolFactory = i.AlgoSymbolFactory }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.AddPoint_WayType = SuperMap.Plot.AddPoint_WayType = { UNKNOWN: 0, POLYLINE: 1, CURVE: 2 } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.RouteNodePrimitives = SuperMap.Plot.RouteNodePrimitives = SuperMap.Plot.RouteNodePrimitives || {}; SuperMap.Plot.RouteNodePrimitives = { initialize: function () { }, rendezvousPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), o.textContent = "会", o.style = { surroundLineFlag: !1, fontSize: 14, fontSizeLimit: !0 }, o.style.labelAlign = "cm", t.push(o), t.push(e), t }, expandingPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), o.textContent = "展", o.style = { surroundLineFlag: !1, fontSize: 14, fontSizeLimit: !0 }, o.style.labelAlign = "cm", t.push(o), t.push(e), t }, volleyPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), o.textContent = "齐", o.style = { surroundLineFlag: !1, fontSize: 14, fontSizeLimit: !0 }, o.style.labelAlign = "cm", t.push(o), t.push(e), t }, standbyPoint_Outer: function (t, e) { var o = [], n = new SuperMap.Geometry.Point(0, 0), i = new SuperMap.Geometry.Point(0, 30); t || (t = 90); var l = new Object; l.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, l.positionPoints = []; for (var r = t + 10; r < 170 + t; r += 10) { var a = SuperMap.Plot.PlottingUtil.findPoint(n, i, 30, r); l.positionPoints.push(a) } l.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, o.push(l); var s = l.positionPoints[l.positionPoints.length - 1], u = l.positionPoints[l.positionPoints.length - 2], p = SuperMap.Plot.PlottingUtil.findPoint(s, u, 9, 22.5), c = SuperMap.Plot.PlottingUtil.findPoint(s, u, 9, -22.5), y = new Object; y.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, y.positionPoints = [], y.positionPoints.push(p), y.positionPoints.push(s.clone()), y.positionPoints.push(c), y.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, o.push(y); var P = new Object; P.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, P.positionPoints = []; for (var h = 190 + t; h < 350 + t; h += 10) { var f = SuperMap.Plot.PlottingUtil.findPoint(n, i, 30, h); P.positionPoints.push(f) } P.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, o.push(P); var S = P.positionPoints[P.positionPoints.length - 1], d = P.positionPoints[P.positionPoints.length - 2], g = SuperMap.Plot.PlottingUtil.findPoint(S, d, 9, 22.5), M = SuperMap.Plot.PlottingUtil.findPoint(S, d, 9, -22.5), m = new Object; m.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, m.positionPoints = [], m.positionPoints.push(g), m.positionPoints.push(S.clone()), m.positionPoints.push(M), m.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, o.push(m); for (var v = 0; v < o.length; v++)for (var b = 0; b < o[v].positionPoints.length; b++) { var T = e * (Math.PI / 180); SuperMap.Plot.PlottingUtil.rotateAngle(n, T, o[v].positionPoints[b]) } return o }, standbyPoint_Inner: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(-20, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(20, 10)), e.positionPoints.push(new SuperMap.Geometry.Point(20, -10)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e); var o = new Object; o.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(-5, 0)), o.positionPoints.push(new SuperMap.Geometry.Point(17, 0)), o.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(o); var n = new Object; return n.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, n.positionPoints = [], n.positionPoints.push(new SuperMap.Geometry.Point(-2, 1.5)), n.positionPoints.push(new SuperMap.Geometry.Point(-5, 0)), n.positionPoints.push(new SuperMap.Geometry.Point(-2, -1.5)), n.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(n), t }, supplyPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.TEXTSYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), o.textContent = "补", o.style = { surroundLineFlag: !1, fontSize: 14, fontSizeLimit: !0 }, o.style.labelAlign = "cm", t.push(o), t.push(e), t }, takeoffPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(-15, 25)), e.positionPoints.push(new SuperMap.Geometry.Point(15, 25)), e.positionPoints.push(new SuperMap.Geometry.Point(15, -25)), e.positionPoints.push(new SuperMap.Geometry.Point(0, -35)), e.positionPoints.push(new SuperMap.Geometry.Point(-15, -25)), e.positionPoints.push(new SuperMap.Geometry.Point(-15, 25)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, initialPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(-30, 30)), e.positionPoints.push(new SuperMap.Geometry.Point(30, 30)), e.positionPoints.push(new SuperMap.Geometry.Point(30, -30)), e.positionPoints.push(new SuperMap.Geometry.Point(-30, -30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, visualInitalPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.positionPoints.push(new SuperMap.Geometry.Point(30, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, -30)), e.positionPoints.push(new SuperMap.Geometry.Point(-30, 0)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, lanchPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.positionPoints.push(new SuperMap.Geometry.Point(20, -30)), e.positionPoints.push(new SuperMap.Geometry.Point(-20, -30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, turningPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, aimingPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, -30)), e.positionPoints.push(new SuperMap.Geometry.Point(20, 30)), e.positionPoints.push(new SuperMap.Geometry.Point(-20, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, targetPoint: function () { var t = [], e = new Object; return e.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.positionPoints.push(new SuperMap.Geometry.Point(30, -30)), e.positionPoints.push(new SuperMap.Geometry.Point(-30, -30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t }, eightSpiralPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(30, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(-30, 0)), o.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), o.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t.push(o), t }, happyValleyPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(-30, 20)), e.positionPoints.push(new SuperMap.Geometry.Point(30, 20)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; o.type = SuperMap.Plot.SymbolType.POLYLINESYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(30, -20)), o.positionPoints.push(new SuperMap.Geometry.Point(-30, -20)), o.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var n = new Object; n.type = SuperMap.Plot.SymbolType.ARCSYMBOL, n.positionPoints = [], n.positionPoints.push(new SuperMap.Geometry.Point(-30, 20)), n.positionPoints.push(new SuperMap.Geometry.Point(-50, 0)), n.positionPoints.push(new SuperMap.Geometry.Point(-30, -20)), n.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var i = new Object; return i.type = SuperMap.Plot.SymbolType.ARCSYMBOL, i.positionPoints = [], i.positionPoints.push(new SuperMap.Geometry.Point(30, 20)), i.positionPoints.push(new SuperMap.Geometry.Point(50, 0)), i.positionPoints.push(new SuperMap.Geometry.Point(30, -20)), i.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(e), t.push(o), t.push(n), t.push(i), t }, attackPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(0, 20)), o.positionPoints.push(new SuperMap.Geometry.Point(20, -20)), o.positionPoints.push(new SuperMap.Geometry.Point(-20, -20)), o.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(o), t.push(e), t }, suppressPoint: function () { var t = [], e = new Object; e.type = SuperMap.Plot.SymbolType.CIRCLESYMBOL, e.positionPoints = [], e.positionPoints.push(new SuperMap.Geometry.Point(0, 0)), e.positionPoints.push(new SuperMap.Geometry.Point(0, 30)), e.style = { surroundLineFlag: !1, fontSize: 14 }; var o = new Object; return o.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL, o.positionPoints = [], o.positionPoints.push(new SuperMap.Geometry.Point(-15, 15)), o.positionPoints.push(new SuperMap.Geometry.Point(15, 15)), o.positionPoints.push(new SuperMap.Geometry.Point(15, -15)), o.positionPoints.push(new SuperMap.Geometry.Point(-15, -15)), o.style = { surroundLineFlag: !1, fillLimit: !0, fill: !1 }, t.push(o), t.push(e), t }, getRouteNodeCells: function (t, e, o) { switch (t) { case SuperMap.Plot.RouteNodeType.RENDEZVOUS: return this.rendezvousPoint(); case SuperMap.Plot.RouteNodeType.EXPANDING: return this.expandingPoint(); case SuperMap.Plot.RouteNodeType.VOLLEY: return this.volleyPoint(); case SuperMap.Plot.RouteNodeType.STANDBY: return e ? this.standbyPoint_Inner() : this.standbyPoint_Outer(null, o); case SuperMap.Plot.RouteNodeType.SUPPLY: return this.supplyPoint(); case SuperMap.Plot.RouteNodeType.TAKEOFF: return this.takeoffPoint(); case SuperMap.Plot.RouteNodeType.INITIAL: return this.initialPoint(); case SuperMap.Plot.RouteNodeType.VISUALINITAL: return this.visualInitalPoint(); case SuperMap.Plot.RouteNodeType.LANCH: case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH: return this.lanchPoint(); case SuperMap.Plot.RouteNodeType.TURNING: case SuperMap.Plot.RouteNodeType.COMMONROUTE: return this.turningPoint(); case SuperMap.Plot.RouteNodeType.AIMING: return this.aimingPoint(); case SuperMap.Plot.RouteNodeType.TARGET: return this.targetPoint(); case SuperMap.Plot.RouteNodeType.ATTACK: return this.attackPoint(); case SuperMap.Plot.RouteNodeType.SUPPRESS: return this.suppressPoint(); case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL: return this.eightSpiralPoint(); case SuperMap.Plot.RouteNodeType.HAPPYVALLEY: return this.happyValleyPoint(); default: return [] } }, getRouteNodeNameByType: function (t) { switch (t) { case SuperMap.Plot.RouteNodeType.RENDEZVOUS: return "会合点"; case SuperMap.Plot.RouteNodeType.EXPANDING: return "展开点"; case SuperMap.Plot.RouteNodeType.VOLLEY: return "齐射点"; case SuperMap.Plot.RouteNodeType.STANDBY: return "待机点"; case SuperMap.Plot.RouteNodeType.SUPPLY: return "补给点"; case SuperMap.Plot.RouteNodeType.TAKEOFF: return "起飞点"; case SuperMap.Plot.RouteNodeType.INITIAL: return "初始点"; case SuperMap.Plot.RouteNodeType.VISUALINITAL: return "可视化初始点"; case SuperMap.Plot.RouteNodeType.LANCH: return "发射点"; case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH: return "武器发射点"; case SuperMap.Plot.RouteNodeType.TURNING: return "转弯点"; case SuperMap.Plot.RouteNodeType.COMMONROUTE: return "普通航路点"; case SuperMap.Plot.RouteNodeType.AIMING: return "目标瞄准点"; case SuperMap.Plot.RouteNodeType.TARGET: return "目标点"; case SuperMap.Plot.RouteNodeType.ATTACK: return "攻击点"; case SuperMap.Plot.RouteNodeType.SUPPRESS: return "压制点"; case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL: return "八字盘旋点"; case SuperMap.Plot.RouteNodeType.HAPPYVALLEY: return "跑马圈点"; default: return "" } } } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.Primitives = SuperMap.Plot.Primitives = SuperMap.Plot.Primitives || {}; SuperMap.Plot.Primitives = { nSegmentCount: 72, initialize: function (t) { t && t.nSegmentCount && (this.nSegmentCount = t.nSegmentCount) }, polyline: function (t) { return t }, parallelline: function (t) { if (t && t.length >= 3) { var e = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); SuperMap.Plot.PlottingUtil.isRight(t[0], t[1], t[2]) && (e = -e); for (var o = [], n = 1; n < t.length; n++)o.push(t[n].clone()); var i = SuperMap.Plot.PlottingUtil.parallel(o, e); return t[0].x = i[0].x, t[0].y = i[0].y, [o, i] } return [] }, kidney: function (t, e) { if (t) { return e ? this.getKendyShapePts(t) : t } }, bezier: function (t, e) { if (t) { var o = []; return o = e ? SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t) : t, SuperMap.Plot.PlottingUtil.clearSamePts(o), o } }, loopbezier: function (t, e) { if (t) { t[0].x === t[t.length - 1].x && t[0].y === t[t.length - 1].y || t.push(t[0]); var o = []; return o = e ? SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t) : t, SuperMap.Plot.PlottingUtil.clearSamePts(o), o } }, parallelogram: function (t) { if (t && t.length >= 3) { var e = t[0].x + (t[2].x - t[1].x), o = t[0].y + (t[2].y - t[1].y), n = new SuperMap.Geometry.Point(e, o), i = []; return i.push.apply(i, t), i.push(n), i.push(i[0]), i } }, polygon: function (t) { if (t && t.length > 2) return t }, circle: function (t) { if (t && 2 === t.length) { for (var e = t[0], o = t[1], n = [], i = Math.sqrt((o.x - e.x) * (o.x - e.x) + (o.y - e.y) * (o.y - e.y)), l = 360 / this.nSegmentCount, r = 0; r < this.nSegmentCount; r++) { var a = (r * l + 1) * Math.PI / 180, s = new SuperMap.Geometry.Point(Math.cos(a) * i + e.x, Math.sin(a) * i + e.y); n[r] = s } return n } }, rectangle: function (t) { if (t && 2 === t.length) { var e = t[0], o = t[1], n = e.clone(); return [n, new SuperMap.Geometry.Point(o.x, e.y), o.clone(), new SuperMap.Geometry.Point(e.x, o.y), n] } }, sector: function (t) { if (t && t.length >= 3) { var e = this.getArcInfo(t[0], t[1], t[2]); e.dStartAngle *= Math.PI / 180, e.dEndAngle *= Math.PI / 180; var o = (e.dEndAngle - e.dStartAngle) / this.nSegmentCount, n = this.getArcSpatialData(e.pntCenter, e.dRadius, e.dRadius, 0, e.dStartAngle, e.dEndAngle, o); if (n.push(e.pntCenter), 0 !== n.length) return n } }, lune: function (t) { if (t && t.length >= 3) { var e = this.getArcInfo(t[0], t[1], t[2]); e.dStartAngle *= Math.PI / 180, e.dEndAngle *= Math.PI / 180; var o = (e.dEndAngle - e.dStartAngle) / this.nSegmentCount, n = this.getArcSpatialData(e.pntCenter, e.dRadius, e.dRadius, 0, e.dStartAngle, e.dEndAngle, o); if (0 !== n.length) return n } }, arc: function (t) { if (t && t.length >= 3) { var e = this.getArcInfo(t[0], t[1], t[2]); e.dStartAngle *= Math.PI / 180, e.dEndAngle *= Math.PI / 180; var o = (e.dEndAngle - e.dStartAngle) / this.nSegmentCount, n = this.getArcSpatialData(e.pntCenter, e.dRadius, e.dRadius, 0, e.dStartAngle, e.dEndAngle, o); if (0 !== n.length) return n } }, ellipse: function (t, e, o, n, i) { if (!0 === o) { if ((!n || null == n) && t && t.length >= 3 && (n = SuperMap.Plot.PlottingUtil.distance(t[0], t[1])), (!i || null == i) && t && t.length >= 3) { var l = SuperMap.Plot.PlottingUtil.projectPoint(t[2], t[0], t[1]); i = SuperMap.Plot.PlottingUtil.distance(l, t[2]) } } else i = SuperMap.Plot.PlottingUtil.distance(t[0], t[2]), n = SuperMap.Plot.PlottingUtil.distance(t[0], t[1]); if (e && null != e ? e *= Math.PI / 180 : e = SuperMap.Plot.PlottingUtil.radian(t[0], t[1]), t && t.length > 0) { var r = 2 * Math.PI, a = r / this.nSegmentCount, s = this.getArcSpatialData(t[0], n, i, e, 0, r, a); if (!0 === o) { var u = Math.sin(e), p = Math.cos(e); t[2].x > t[1].x ? (t[2].x = t[0].x - i * u, t[2].y = t[0].y + i * p) : (t[2].x = t[0].x + i * u, t[2].y = t[0].y - i * p) } return s } }, getArcSpatialData: function (t, e, o, n, i, l, r) { var a = []; if (Math.abs(r) < 1e-9) return a; for (; l < i;)l += 2 * Math.PI; for (; l > i + 2 * Math.PI;)i += 2 * Math.PI; var s = Math.cos(n) * e, u = Math.sin(n) * e, p = Math.cos(n) * o, c = Math.sin(n) * o, y = this.calcEllipseRadian(i, e, o), P = this.calcEllipseRadian(l, e, o); P - y < 1e-5 && (P += 2 * Math.PI); var h = Math.round(Math.abs((P - y) / r) + 1); if (h < 2) return a; for (var f = 0; f < h - 1; y += r, f++) { f === h - 2 && (y = l); var S = t.x + s * Math.cos(y) - c * Math.sin(y), d = t.y + u * Math.cos(y) + p * Math.sin(y); a.push(new SuperMap.Geometry.Point(S, d)) } return 0 > a.length && (a[a.length - 1].x = t.x + s * Math.cos(P) - c * Math.sin(P), a[a.length - 1].y = t.y + u * Math.cos(P) + p * Math.sin(P)), a }, getArcInfo: function (t, e, o) { var n = {}; n.pntCenter = new SuperMap.Geometry.Point(0, 0), n.dRadius = 0, n.dStartAngle = 0, n.dEndAngle = 0; var i = e.x - t.x, l = e.y - t.y; if (Math.abs(i) < 1e-9) { var r = {}, a = {}; r.x = (e.x + t.x) / 2, r.y = (e.y + t.y) / 2, a.x = (e.x + o.x) / 2, a.y = (e.y + o.y) / 2; var s = 0; Math.abs(o.x - e.x) >= 1e-9 && (s = (o.y - e.y) / (o.x - e.x)), n.pntCenter.y = r.y, Math.abs(s) < 1e-9 ? n.pntCenter.x = a.x : n.pntCenter.x = a.x - s * (r.y - a.y) } else { var u = {}, p = {}; u.x = (e.x + t.x) / 2, u.y = (e.y + t.y) / 2, p.x = (e.x + o.x) / 2, p.y = (e.y + o.y) / 2; var c = l / i, y = 1; Math.abs(c) < 1e-9 ? (n.pntCenter.x = u.x, Math.abs(o.x - e.x < 1e-9) ? n.pntCenter.y = p.y : n.pntCenter.y = -(o.x - e.x) / (o.y - e.y) * (n.pntCenter.x - p.x) + p.y) : Math.abs(o.x - e.x) < 1e-9 ? (n.pntCenter.y = p.y, n.pntCenter.x = -c * (n.pntCenter.y - u.y) + u.x) : (y = (o.y - e.y) / (o.x - e.x), n.pntCenter.x = (c * y * (u.y - p.y) + y * u.x - c * p.x) / (y - c), n.pntCenter.y = (p.x - u.x + y * p.y - c * u.y) / (y - c)) } var P = Math.atan2(t.y - n.pntCenter.y, t.x - n.pntCenter.x), h = Math.atan2(o.y - n.pntCenter.y, o.x - n.pntCenter.x); if (SuperMap.Plot.PlottingUtil.isCounterClockwise(t, e, o)) { for (; P >= 2 * Math.PI;)P -= 2 * Math.PI; for (; P < 0;)P += 2 * Math.PI; for (; h > 2 * Math.PI;)h -= 2 * Math.PI; for (; h < P;)h += 2 * Math.PI } else { for (; h >= 2 * Math.PI;)h -= 2 * Math.PI; for (; h < 0;)h += 2 * Math.PI; for (; P > 2 * Math.PI;)P -= 2 * Math.PI; for (; h > P;)P += 2 * Math.PI; var f = P; P = h, h = f } return n.dRadius = Math.sqrt((n.pntCenter.x - t.x) * (n.pntCenter.x - t.x) + (n.pntCenter.y - t.y) * (n.pntCenter.y - t.y)), n.dEndAngle = 180 * h / Math.PI, n.dStartAngle = 180 * P / Math.PI, n }, calcEllipseRadian: function (t, e, o) { var n = t, i = e * Math.sin(t), l = o * Math.cos(t), r = Math.atan2(i, l); if (t > Math.PI) for (; n > Math.PI;)n -= 2 * Math.PI, r += 2 * Math.PI; else if (t < -Math.PI) for (; n < -Math.PI;)n += 2 * Math.PI, r -= 2 * Math.PI; return r }, getKendyShapePts: function (t) { var e = []; if (2 > (t = SuperMap.Plot.PlottingUtil.clearSamePts(t)).length) return e; var o = this.calcShapePoints(t); if (12 != o.length) return e; o.push(o[0]), o.push(o[1]), o.splice(0, 1); for (var n = 0; n < o.length - 3; n += 3) { var i; i = this.getBezierPtsWithScalePts(o[n], o[n + 1], o[n + 2], o[n + 3]), e = e.concat(i) } return e }, calcShapePoints: function (t) { var e = [], o = [], n = t.length; if (0 !== n) { if (1 !== n) { if (2 == n) { var i = this.calcProtudeC3(t[0], t[1]); o.push(t[0]), o.push(t[1]), o.push(i) } else if (o.push(t[0]), o.push(t[1]), o.push(t[2]), (SuperMap.Plot.PlottingUtil.isSamePt(t[0], t[2]) || SuperMap.Plot.PlottingUtil.isSamePt(t[1], t[2])) && (e.push(t[0]), e.push(t[1])), SuperMap.Plot.PlottingUtil.isSamePt(t[0], t[1])) return e.push(t[0]), void e.push(t[2]); o = this.reNormalizeKidneyCtrlPoints(o); var l = new SuperMap.Geometry.Point(0, 0), r = new SuperMap.Geometry.Point(0, 0); l.x = .5 * (o[0].x + o[1].x), l.y = .5 * (o[0].y + o[1].y), r.x = l.x - .1 * (o[2].x - l.x), r.y = l.y - .1 * (o[2].y - l.y); var a = this.GetPtsByTriangle(3, 0, o[1], o[0], r); e.push(a.pr), e.push(r), e.push(a.pl); var s = this.GetPtsByTriangle(4, 2, o[2], o[0], o[1]); e.push(s.pr), e.push(o[1]), e.push(s.pl); var u = this.GetPtsByTriangle(2, 0, o[0], o[1], o[2]); e.push(u.pr), e.push(o[2]), e.push(u.pl); var p = this.GetPtsByTriangle(4, 1, o[1], o[2], o[0]); return e.push(p.pr), e.push(o[0]), e.push(p.pl), e } e.push(t[0]) } }, calcProtudeC3: function (t, e) { var o, n = new SuperMap.Geometry.Point(0, 0); return n.x = .5 * (t.x + e.x), n.y = .5 * (t.y + e.y), o = SuperMap.Plot.PlottingUtil.distance(e, t) / 2.7, this.GetPointsOfNormal(o, t, n).pt3 }, GetPointsOfNormal: function (t, e, o) { var n, i = new SuperMap.Geometry.Point(0, 0), l = new SuperMap.Geometry.Point(0, 0), r = new SuperMap.Geometry.Point(0, 0); return 0 == (n = SuperMap.Plot.PlottingUtil.distance(e, o)) ? (r.y = 0, r.x = t) : (r.x = t * (e.x - o.x) / n, r.y = t * (e.y - o.y) / n), i.x = -r.y + o.x, i.y = r.x + o.y, l.x = r.y + o.x, l.y = -r.x + o.y, { pt3: i, pt4: l } }, reNormalizeKidneyCtrlPoints: function (t) { var e = []; e.push(new SuperMap.Geometry.Point(0, 0)), e.push(new SuperMap.Geometry.Point(0, 0)), e.push(new SuperMap.Geometry.Point(0, 0)); var o = t.length; if (o < 2) return e; if (2 == o) e[0] = t[0], e[1] = t[1], e[2] = this.calcProtudeC3(t[0], t[1]); else { var n, i, l, r = t[0], a = t[1], s = t[2]; if (n = SuperMap.Plot.PlottingUtil.distance(a, r), i = SuperMap.Plot.PlottingUtil.distance(s, a), l = SuperMap.Plot.PlottingUtil.distance(r, s), i >= n && i >= l) { var u = r.clone(); r = s.clone(), s = u.clone() } else if (l >= n && l >= i) { var p = s.clone(); s = a.clone(), a = p.clone() } if (!SuperMap.Plot.PlottingUtil.isRight(s, r, a)) { var c = r.clone(); r = a.clone(), a = c.clone() } e[0] = r, e[1] = a, e[2] = s } return e }, GetPtsByTriangle: function (t, e, o, n, i) { var l = new SuperMap.Geometry.Point(0, 0), r = 0, a = 0; return r = SuperMap.Plot.PlottingUtil.distance(i, o), a = SuperMap.Plot.PlottingUtil.distance(n, i), 1 == e && (r *= 2), 2 == e && (a *= 2), l.x = (r * n.x + a * o.x) / (r + a), l.y = (r * n.y + a * o.y) / (r + a), { pl: this.GetWhichPtOfNormal(t, o, l, i), pr: this.GetWhichPtOfNormal(t, n, l, i) } }, GetWhichPtOfNormal: function (t, e, o, n) { var i = 0; i = SuperMap.Plot.PlottingUtil.distance(n, e) / t; var l = this.GetPointsOfNormal(i, o, n); return SuperMap.Plot.PlottingUtil.distance(e, l.pt4) >= (i = SuperMap.Plot.PlottingUtil.distance(e, l.pt3)) ? l.pt3 : l.pt4 }, getBezierPtsWithScalePts: function (t, e, o, n) { var i = [], l = t.x, r = t.y, a = e.x, s = e.y, u = o.x, p = o.y, c = n.x, y = n.y; if (SuperMap.Plot.PlottingUtil.equalFuzzy(l, a, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(r, s, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(u, c, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(p, y, 1e-10)) i.push(new SuperMap.Geometry.Point(l, r)), i.push(new SuperMap.Geometry.Point(u, p)); else for (var P = 0; P <= 1; P += .03125) { var h, f, S, d, g = P * P, M = g * P; h = 1 - 3 * P + 3 * g - M, f = 3 * (P - 2 * g + M), S = 3 * (g - M), d = M; var m = new SuperMap.Geometry.Point(h * l + f * a + S * u + d * c, h * r + f * s + S * p + d * y); i.push(m) } return i }, getSpatialData: function (t, e, o, n) { switch (null == n && (n = !0), t) { case 24: return this.polyline(e); case 390: return this.kidney(e, n); case 590: return this.bezier(e, n); case 360: return this.loopbezier(e, n); case 28: return this.parallelogram(e); case 32: return this.polygon(e); case 29: return this.circle(e); case 26: return this.rectangle(e); case 380: return this.sector(e); case 370: return this.lune(e); case 44: return this.arc(e); case 31: return this.ellipse(e, o, n); case 48: return this.parallelline(e); default: return e } } } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }; e.PlottingUtil = SuperMap.Plot.PlottingUtil = SuperMap.Plot.PlottingUtil || {}; SuperMap.Plot.PlottingUtil.DEFAULT_PRECISION = 14, SuperMap.Plot.PlottingUtil.DPI = 96, SuperMap.Plot.PlottingUtil.RTOD = 57.29577951308232, SuperMap.Plot.PlottingUtil.DTOR = .017453292519943295, SuperMap.Plot.PlottingUtil.dirAngle = function (t, e) { var o, n, i, l; o = e.x, n = e.y, i = o - t.x, l = n - t.y; var r = Math.atan2(l, i); return r < 0 && (r += 2 * Math.PI), r }, SuperMap.Plot.PlottingUtil.generateUuid = function () { for (var t = [], e = 0; e < 36; e++)t[e] = "0123456789abcdef".substr(Math.floor(16 * Math.random()), 1); return t[14] = "4", t[19] = "0123456789abcdef".substr(3 & t[19] | 8, 1), t[8] = t[13] = t[18] = t[23] = "-", t.join("") }, SuperMap.Plot.PlottingUtil.cloneObject = function (t) { return JSON.parse(JSON.stringify(t)) }, SuperMap.Plot.PlottingUtil.colorRGBA = function (t, e) { var o = t.substring(1, 3), n = parseInt(o, 16), i = t.substring(3, 5), l = parseInt(i, 16), r = t.substring(5); return "rgba(" + n + "," + l + "," + parseInt(r, 16) + "," + e + ")" }, SuperMap.Plot.PlottingUtil.colorRGBToString = function (t) { var e = t.red.toString(16); e.length < 2 && (e = "0" + e); var o = t.green.toString(16); o.length < 2 && (o = "0" + o); var n = t.blue.toString(16); return n.length < 2 && (n = "0" + n), "#" + e + o + n }, SuperMap.Plot.PlottingUtil.colorStringToRGB = function (t) { var e = {}, o = t.substring(1, 3); e.red = parseInt(o, 16); var n = t.substring(3, 5); e.green = parseInt(n, 16); var i = t.substring(5); return e.blue = parseInt(i, 16), e }, SuperMap.Plot.PlottingUtil.decimalToHex = function (t) { for (var e = t.toString(16); e.length < 8;)e = "0" + e; var o = e.substring(0, 2), n = e.substring(2, 4), i = e.substring(4, 6); return { color: "#" + e.substring(6) + i + n, alpha: parseInt(o, 16) / 255 } }, SuperMap.Plot.PlottingUtil.hexToDecimal = function (t, e) { var o = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5), l = parseInt(i + n + o, 16), r = Math.round(255 * e).toString(16); return parseInt(r + "000000", 16) + l }, SuperMap.Plot.PlottingUtil.getAlign = function (t) { return "TOPLEFT" === t ? "lt" : "TOPCENTER" === t ? "ct" : "TOPRIGHT" === t ? "rt" : "BOTTOMLEFT" === t ? "lb" : "BOTTOMCENTER" === t ? "cb" : "BOTTOMRIGHT" === t ? "rb" : "MIDDLELEFT" === t ? "lm" : "MIDDLECENTER" === t ? "cm" : "MIDDLERIGHT" === t ? "rm" : "lt" }, SuperMap.Plot.PlottingUtil.trim = function (t) { return null == t ? "" : t.replace(/(^\s*)|(\s*$)/g, "") }, SuperMap.Plot.PlottingUtil.getTextWidth = function (t, e) { " " === e && (e = "_"); var o = document.createElement("span"); document.body.appendChild(o), o.style.width = "auto", o.style.height = "auto", t.fontSize && (o.style.fontSize = new String(t.fontSize) + "px"), t.fontFamily && (o.style.fontFamily = t.fontFamily), t.fontWeight && (o.style.fontWeight = t.fontWeight), o.style.position = "absolute", o.style.visibility = "hidden", o.style.display = "inline-block", o.innerHTML = e; var n = o.clientWidth, i = e.length; return void 0 === t.fontSpace && void 0 === t.fontPercent || (0 !== t.fontSpace && 100 !== t.fontPercent && void 0 !== t.fontSpace || void 0 !== t.fontPercent ? n = t.fontPercent / 100 * n + t.fontSpace * (t.fontPercent / 100) * (i - 1) : 0 === t.fontSpace && 100 !== t.fontPercent && void 0 !== t.fontPercent ? n = t.fontPercent / 100 * n : 0 !== t.fontSpace && 100 === t.fontPercent && void 0 !== t.fontSpace && (n += t.fontSpace * (i - 1))), document.body.removeChild(o), n }, SuperMap.Plot.PlottingUtil.getTextCount = function (t) { for (var e = 0, o = 0, n = 0; n < t.length; n++)t.charCodeAt(n) > 255 ? e++ : o++; return e + o / 2 }, SuperMap.Plot.PlottingUtil.toJSON = function (t) { var e = t; if (null == e) return null; switch (e.constructor) { case String: return e = (e = (e = (e = (e = (e = (e = '"' + e.replace(/(["\\])/g, "\\$1") + '"').replace(/\n/g, "\\n")).replace(/\r/g, "\\r")).replace("<", "<")).replace(">", ">")).replace(/%/g, "%2525")).replace(/&/g, "%26"); case Array: for (var o = [], i = 0, l = e.length; i < l; i++)o.push(SuperMap.Plot.PlottingUtil.toJSON(e[i])); return "[" + o.join(",") + "]"; case Number: return isFinite(e) ? String(e) : null; case Boolean: return String(e); case Date: return "{'__type':\"System.DateTime\",'Year':" + e.getFullYear() + ",'Month':" + (e.getMonth() + 1) + ",'Day':" + e.getDate() + ",'Hour':" + e.getHours() + ",'Minute':" + e.getMinutes() + ",'Second':" + e.getSeconds() + ",'Millisecond':" + e.getMilliseconds() + ",'TimezoneOffset':" + e.getTimezoneOffset() + "}"; default: if (null != e.toJSON && "function" == typeof e.toJSON) return e.toJSON(); if ("object" === (void 0 === e ? "undefined" : n(e))) { if (e.length) { for (var r = [], a = 0, s = e.length; a < s; a++)r.push(SuperMap.Plot.PlottingUtil.toJSON(e[a])); return "[" + r.join(",") + "]" } var u = []; for (var p in e) "function" != typeof e[p] && "CLASS_NAME" !== p && "parent" !== p && u.push('"' + p + '":' + SuperMap.Plot.PlottingUtil.toJSON(e[p])); return u.length > 0 ? "{" + u.join(",") + "}" : "{}" } return e.toString() } }, SuperMap.Plot.PlottingUtil.copyFeature = function (t) { var e = null; if (null != t && t.geometry) { var o = t.geometry.clone(); e = new SuperMap.Feature.Vector(o), t.style && (e.style = SuperMap.Plot.PlottingUtil.copyAttributes(e.style, t.style)), o.feature = e, o.calculateParts() } return e }, SuperMap.Plot.PlottingUtil.getSurroundLinePts = function (t, e) { for (var o = [], n = [], i = 0; i < t.length - 1; i++) { var l, r, a = []; if (!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].x, t[i + 1].x) || !SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].y, t[i + 1].y)) { a.push(t[i]), a.push(t[i + 1]); var s = SuperMap.Plot.PlottingUtil.parallel(a, e); if (l = s[0], r = s[1], 0 != o.length) { var u = SuperMap.Plot.PlottingUtil.intersectLines(l, r, o[0], o[1]); if (u.isIntersectLines) { var p = u.intersectPoint, c = SuperMap.Plot.PlottingUtil.distance(l, r); SuperMap.Plot.PlottingUtil.distance(p, r) > 2 * c ? n.push(r) : (n[n.length - 1] = p, n.push(r)) } else n.push(r) } else n.push(l), n.push(r); (o = []).push(n[n.length - 2]), o.push(n[n.length - 1]) } } if (t[0].x === t[t.length - 1].x && t[0].y === t[t.length - 1].y && 1 < n.length) { var y = SuperMap.Plot.PlottingUtil.intersectLines(n[0], n[1], n[n.length - 2], n[n.length - 1]); if (y.isIntersectLines) { var P = y.intersectPoint; n[n.length - 1] = P, n[0] = P } } return n }, SuperMap.Plot.PlottingUtil.copyFontStyle = function (t, e) { void 0 === t.labelAlign && void 0 !== e.labelAlign && (t.labelAlign = e.labelAlign), !0 !== t.fontSizeLimit && (void 0 !== e.fontSize && (t.fontSize = e.fontSize), void 0 !== e.fontWeight && (t.fontWeight = e.fontWeight), void 0 !== e.fontStyle && (t.fontStyle = e.fontStyle), void 0 !== e.fontSpace && (t.fontSpace = e.fontSpace), void 0 !== e.fontPercent && (t.fontPercent = e.fontPercent)), t.strokeWidth = e.strokeWidth }, SuperMap.Plot.PlottingUtil.getDataFromServer = function (t, e, o, i, l, r, a, s) { var u = void 0; if (void 0 !== r && (u = r), "undefined" != typeof SuperMap && void 0 !== SuperMap.GetSymbolInfoService) { var p = new SuperMap.GetSymbolInfoService(t); p.events.on({ processCompleted: a, processFailed: s, scope: u }); var c = new SuperMap.GetSymbolInfoParameters; c.libID = e, c.code = o, l && SuperMap.Plot.PlottingUtil.extend(c, l), i && null != i && (SuperMap.Plot.PlottingUtil.isArray(i) || (i = [i]), c.inputPoints = i), p.processAsync(c) } else if (void 0 !== ("undefined" == typeof SuperMap ? "undefined" : n(SuperMap)) && void 0 !== n(SuperMap.REST) && void 0 !== n(SuperMap.REST.GetSymbolInfoService)) { var y = new SuperMap.REST.GetSymbolInfoService(t); y.events.on({ processCompleted: a, processFailed: s, scope: u }); var P = new SuperMap.REST.GetSymbolInfoParameters; if (P.libID = e, P.code = o, l && SuperMap.Plot.PlottingUtil.extend(P, l), i && null != i && (SuperMap.Plot.PlottingUtil.isArray(i) || (i = [i]), P.inputPoints = i), l && l.credential) { var h = l.credential; y.processAsync(P, h) } else y.processAsync(P) } }, SuperMap.Plot.PlottingUtil.innerOutlineDir = function (t) { function e(t, e) { function o(t) { var e = Math.atan2(t.y, t.x); return e < 0 && (e += 2 * Math.PI), e } var n = o(e) - o(t); return n < -Math.PI && (n += 2 * Math.PI), n > Math.PI && (n -= 2 * Math.PI), n } if (t.length < 3) return 1; for (var o = 0, n = { x: 0, y: 0 }, i = { x: 0, y: 0 }, l = 2; l < t.length; l++)i.x = t[l].x - t[l - 1].x, i.y = t[l].y - t[l - 1].y, n.x = t[l - 1].x - t[l - 2].x, n.y = t[l - 1].y - t[l - 2].y, o += e(n, i); return i.x = t[1].x - t[0].x, i.y = t[1].y - t[0].y, n.x = t[0].x - t[t.length - 1].x, n.y = t[0].y - t[t.length - 1].y, (o += e(n, i)) >= 0 ? -1 : 1 }, SuperMap.Plot.PlottingUtil.isNear = function (t, e) { return e || (e = SuperMap.Plot.PlottingUtil.TORLERANCE_STATIC), t < e && t > -e }, SuperMap.Plot.PlottingUtil.equalFuzzy = function (t, e, o) { return o || (o = 1e-18), Math.abs(t - e) <= o }, SuperMap.Plot.PlottingUtil.intersectLines = function (t, e, o, n) { var i = { isIntersectLines: !1 }; if (t.x === e.x && t.y === e.y || o.x === n.x && o.y === n.y) return i; var l = e.x - t.x, r = e.y - t.y, a = n.x - o.x, s = n.y - o.y, u = l * s - a * r; if (SuperMap.Plot.PlottingUtil.isNear(u)) return i; var p = (l * (t.y - o.y) - r * (t.x - o.x)) / u, c = new SuperMap.Geometry.Point(0, 0); return c.x = p * a + o.x, c.y = p * s + o.y, i.isIntersectLines = !0, i.intersectPoint = c, i }, SuperMap.Plot.PlottingUtil.getEnvelopePoints = function (t) { function e(t, e) { if (t.length !== e.length) return !1; for (var o = 0; o < t.length; o++)if (t[o].x !== e[o].x || t[o].y !== e[o].y) return !1; return !0 } function o(t, e, o) { for (var n = 0; n < t.length; n++)if (t[n].containsPoint(e)) return o.index = n, !0; return !1 } function n(t, e, o) { for (var n = t.components[0].components, i = new SuperMap.Geometry.Point(0, 0), l = 0; l < n.length - 1; l++)if (SuperMap.Plot.PlottingUtil.intersectLineSegs(e, o, n[l], n[l + 1], i)) return i; return null } function i(t, e) { if (0 === t.length || SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x, e[e.length - 1].x, .5) && SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y, e[e.length - 1].y, .5)) return e; for (var o = e[e.length - 1], n = 0; n < t.length; n++)if (SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].x, o.x, .5) && SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].y, o.y, .5)) { e = e.concat(t[n]), t.splice(n, 1); var l = i(t, e); if (void 0 !== l && 0 !== l.length) return l } else if (SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length - 1].x, o.x, .5) && SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length - 1].y, o.y, .5)) { for (var r = t[n].length - 1; r >= 0; r--)e.push(t[n][r]); t.splice(n, 1); var a = i(t, e); if (void 0 !== a && 0 !== a.length) return a } return e } if (SuperMap.Plot.PlottingUtil.isArray(t) || (t = [t]), 0 === t.length) return []; if (1 === t.length) return t[0]; for (var l = 0; l < t.length; l++)for (var r = l + 1; r < t.length;)e(t[l], t[r]) ? t.splice(r, 1) : r++; for (var a = [], s = 0; s < t.length; s++)a.push(new SuperMap.Geometry.Polygon([new SuperMap.Geometry.LinearRing(t[s])])); for (var u = [], p = 0; p < t.length; p++) { var c = [], y = [], P = -1, h = -1, f = a.slice(); f.splice(p, 1); for (var S = {}, d = 0; d < t[p].length; d++)if (o(f, t[p][d], S)) { if (0 !== y.length) { var g = n(a[S.index], t[p][d - 1], t[p][d]); g && g !== t[p][d - 1] && g !== t[p][d] && y.push(g), c.push(y), y = [] } } else { if (0 === d && (P = c.length), d === t[p].length - 1 && (h = c.length), 0 === y.length && void 0 !== S.index) { var M = n(a[S.index], t[p][d - 1], t[p][d]); M && M !== t[p][d - 1] && M !== t[p][d] && y.push(M) } y.push(t[p][d].clone()) } if (0 !== y.length && c.push(y), P < c.length && h < c.length && P !== h) { for (var m = 0; m < c[P].length; m++)c[h].push(c[P][m]); c.splice(P, 1) } u = u.concat(c) } for (var v = []; 0 !== u.length;) { var b = u[0]; u.splice(0, 1); var T = i(u, b); void 0 !== T && (b = T), b.length > 2 && v.push(b) } return v }, SuperMap.Plot.PlottingUtil.isRight = function (t, e, o) { var n = e, i = o, l = e, r = t; return (i.x - n.x) * (r.y - l.y) - (r.x - l.x) * (i.y - n.y) < 0 }, SuperMap.Plot.PlottingUtil.radian = function (t, e) { var o, n, i = 0; return o = e.x - t.x, n = e.y - t.y, (i = Math.atan2(n, o)) < 0 && (i += 2 * Math.PI), i }, SuperMap.Plot.PlottingUtil.findBisectorPoint = function (t, e, o, n) { var i = SuperMap.Plot.PlottingUtil.radian(e, t), l = (i + SuperMap.Plot.PlottingUtil.radian(e, o)) / 2, r = Math.cos(l - i + Math.PI / 2), a = n; SuperMap.Plot.PlottingUtil.isNear(r, .15) || (a = n / r); var s = e.x + a * Math.cos(l), u = e.y + a * Math.sin(l); return new SuperMap.Geometry.Point(s, u) }, SuperMap.Plot.PlottingUtil.findPoint = function (t, e, o, n) { if (t === e || Math.abs(o) < 1e-18) return t; var i = SuperMap.Plot.PlottingUtil.radian(t, e) + n * Math.PI / 180, l = t.x + o * Math.cos(i), r = t.y + o * Math.sin(i); return new SuperMap.Geometry.Point(l, r) }, SuperMap.Plot.PlottingUtil.isSameQuadrant = function (t, e, o, n) { var i = (e.x - t.x) * (n.x - o.x), l = (e.y - t.y) * (n.y - o.y); return !(Math.abs(i) < 1e-18 && Math.abs(l) < 1e-18) && ((i > 0 || Math.abs(i) < 1e-18) && (l > 0 || Math.abs(l) < 1e-18)) }, SuperMap.Plot.PlottingUtil.isCross = function (t, e, o, n) { var i = new SuperMap.Geometry.Point(0, 0); return !(!SuperMap.Plot.PlottingUtil.intersectLineSegs(t, e, o, n, i) || i == t || i === e || i === o || i == n) }, SuperMap.Plot.PlottingUtil.intersectLineSegs = function (t, e, o, n, i) { if (SuperMap.Plot.PlottingUtil.equalFuzzy(t.x, e.x) && SuperMap.Plot.PlottingUtil.equalFuzzy(t.y, e.y)) return i.x = t.x, i.y = t.y, !1; if (SuperMap.Plot.PlottingUtil.equalFuzzy(o.x, n.x) && SuperMap.Plot.PlottingUtil.equalFuzzy(o.y, n.y)) return i.x = o.x, i.y = o.y, !1; var l = 0, r = 0; if (l = t.x > e.x ? t.x : e.x, r = t.x < e.x ? t.x : e.x, o.x - l > 1e-16 && n.x - l > 1e-16 || o.x - r < -1e-16 && n.x - r < -1e-16) return !1; if (l = t.y > e.y ? t.y : e.y, r = t.y < e.y ? t.y : e.y, o.y - l > 1e-16 && n.y - l > 1e-16 || o.y - r < -1e-16 && n.y - r < -1e-16) return !1; var a = e.x - t.x, s = e.y - t.y, u = n.x - o.x, p = n.y - o.y, c = t.x - o.x, y = t.y - o.y, P = a * p - u * s, h = P; if (Math.abs(a) > 1e-18 && Math.abs(u) > 1e-18 && (h /= a * u), Math.abs(h) < 1e-18) return t === o ? (i.x = t.x, i.y = t.y, !SuperMap.Plot.PlottingUtil.isSameQuadrant(t, e, o, n)) : e === n ? (i.x = e.x, i.y = e.y, !SuperMap.Plot.PlottingUtil.isSameQuadrant(t, e, o, n)) : t === n ? (i.x = t.x, i.y = t.y, SuperMap.Plot.PlottingUtil.isSameQuadrant(t, e, o, n)) : e === o && (i.x = e.x, i.y = e.y, SuperMap.Plot.PlottingUtil.isSameQuadrant(t, e, o, n)); var f = (a * y - s * c) / P, S = (u * y - p * c) / P; return !(f < 0 && (Math.abs(f * u) > 1e-16 || Math.abs(f * p) > 1e-16)) && (!(f > 1 && (Math.abs((f - 1) * u) > 1e-16 || Math.abs((f - 1) * p) > 1e-16)) && (!(S < 0 && (Math.abs(S * a) > 1e-16 || Math.abs(S * s) > 1e-16)) && (!(S > 1 && (Math.abs((S - 1) * a) > 1e-16 || Math.abs((S - 1) * s) > 1e-16)) && (Math.abs(f) < 1e-18 ? (i.x = o.x, i.y = o.y, !0) : Math.abs(f - 1) < 1e-18 ? (i.x = n.x, i.y = n.y, !0) : Math.abs(S) < 1e-18 ? (i.x = t.x, i.y = t.y, !0) : Math.abs(S - 1) < 1e-18 ? (i.x = e.x, i.y = e.y, !0) : !(f < 0 && (Math.abs(f * u) > 1e-16 || Math.abs(f * p) > 1e-16)) && (!(f > 1 && (Math.abs((f - 1) * u) > 1e-16 || Math.abs((f - 1) * p) > 1e-16)) && (!(S < 0 && (Math.abs(S * a) > 1e-16 || Math.abs(S * s) > 1e-16)) && (!(S > 1 && (Math.abs((S - 1) * a) > 1e-16 || Math.abs((S - 1) * s) > 1e-16)) && (i.x = f * u + o.x, i.y = f * p + o.y, !0)))))))) }, SuperMap.Plot.PlottingUtil.parallel = function (t, e) { var o = [], n = t.length; if (!t || null == t || t.length < 2) return o; var i = !1; t.length > 3 && t[0].x === t[t.length - 1].x && t[0].y === t[t.length - 1].y && (i = !0), i ? (o[0] = SuperMap.Plot.PlottingUtil.findBisectorPoint(t[t.length - 2], t[0], t[1], e), o[t.length - 1] = o[0]) : (o[0] = SuperMap.Plot.PlottingUtil.findPoint(t[0], t[1], e, 90), o[t.length - 1] = SuperMap.Plot.PlottingUtil.findPoint(t[t.length - 1], t[t.length - 2], -e, 90)); for (var l = t[0], r = t[1], a = t[1], s = 1; s < t.length - 1; s++)if (r = t[s], t[s] !== t[s - 1] && (l = t[s - 1]), t[s] !== t[s + 1]) { a = t[s + 1]; var u = SuperMap.Plot.PlottingUtil.findBisectorPoint(l, r, a, e); SuperMap.Plot.PlottingUtil.isCross(l, o[s - 1], r, u) && (u = o[s - 1]), o[s] = u } else { for (var p = s; p < n - 1;) { if (t[p] !== t[p + 1]) { a = t[p + 1]; break } p++ } if (p < n - 1) { var c = SuperMap.Plot.PlottingUtil.FindBisectorPoint(l, r, a, e); for (SuperMap.Plot.PlottingUtil.isCross(l, o[s - 1], r, c) && (c = o[s - 1]); s < p;)o[s] = c, s++; s = p - 1 } } return o }, SuperMap.Plot.PlottingUtil.distance = function (t, e) { return Math.sqrt((t.x - e.x) * (t.x - e.x) + (t.y - e.y) * (t.y - e.y)) }, SuperMap.Plot.PlottingUtil.projectPoint = function (t, e, o) { if (e === o) return e; var n = new SuperMap.Geometry.Point(0, 0), i = o.x - e.x, l = e.y - o.y, r = i * i, a = l * l, s = i * l, u = i * i + l * l; return n.x = (s * (e.y - t.y) + e.x * a + t.x * r) / u, n.y = (s * (e.x - t.x) + e.y * r + t.y * a) / u, n }, SuperMap.Plot.PlottingUtil.pointToLineDis = function (t, e, o) { var n = SuperMap.Plot.PlottingUtil.projectPoint(t, e, o); return SuperMap.Plot.PlottingUtil.distance(t, n) }, SuperMap.Plot.PlottingUtil.pointToPloyLineDis = function (t, e, o) { if (e === o) return SuperMap.Plot.PlottingUtil.distance(t, e); var n = (e.x - t.x) * (e.x - t.x) + (e.y - t.y) * (e.y - t.y), i = (o.x - t.x) * (o.x - t.x) + (o.y - t.y) * (o.y - t.y), l = (e.x - o.x) * (e.x - o.x) + (e.y - o.y) * (e.y - o.y), r = (n + l - i) / (2 * l); r < 0 ? r = 0 : r > 1 && (r = 1); var a = (o.x - e.x) * r + e.x, s = (o.y - e.y) * r + e.y, u = (a - t.x) * (a - t.x) + (s - t.y) * (s - t.y); return Math.sqrt(u) }, SuperMap.Plot.PlottingUtil.isCounterClockwise = function (t, e, o) { return (o.x - e.x) * (t.y - e.y) - (t.x - e.x) * (o.y - e.y) > 0 }, SuperMap.Plot.PlottingUtil.clearSamePts = function (t) { for (var e = t.length, o = 0; o < e - 1;)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x, t[o + 1].x) && SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].y, t[o + 1].y) ? (t.splice(o, 1), e--) : o++; return t }, SuperMap.Plot.PlottingUtil.getBeizerCtrlPt = function (t) { var e = [], o = t.length; if (o < 3) for (var n = 0; n < o; ++n)e[n] = t[n].clone(); else { for (var i = 0, l = 0; l < 3 * o - 2; l += 3)e[l] = t[i].clone(), e[l + 1] = new SuperMap.Geometry.Point(0, 0), e[l + 2] = new SuperMap.Geometry.Point(0, 0), i++; for (var r = 1; r < o - 1; r++)SuperMap.Plot.PlottingUtil.getTrianglePoints(8, 3, t[r - 1], t[r], t[r + 1], e[3 * r - 1], e[3 * r + 1]); SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6, e[0], e[3], e[2], e[1]), SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6, e[3 * o - 3], e[3 * o - 6], e[3 * o - 5], e[3 * o - 4]), e[3 * o - 1] = e[3 * o - 2] = t[o - 1].clone() } return e }, SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt = function (t, e) { var o = t.slice(); !0 === e && o.push(o[0]); var n = SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(o); return SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(n) }, SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt = function (t) { var e = t.length, o = []; if (t.length < 3) for (var n = 0; n < e; n++)o[n] = t[n].clone(); else { e /= 3; for (var i = 0; i < 3 * e && !(i + 4 >= 3 * e); i += 3) { var l = t[i].x, r = t[i].y, a = t[i + 1].x, s = t[i + 1].y, u = t[i + 2].x, p = t[i + 2].y, c = t[i + 3].x, y = t[i + 3].y; if (SuperMap.Plot.PlottingUtil.equalFuzzy(l, a, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(r, s, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(u, c, 1e-10) && SuperMap.Plot.PlottingUtil.equalFuzzy(p, y, 1e-10)) o.push(new SuperMap.Geometry.Point(l, r)), o.push(new SuperMap.Geometry.Point(u, p)); else for (var P = 0; P <= 1; P += .03125) { var h, f, S, d, g = P * P, M = g * P; h = 1 - 3 * P + 3 * g - M, f = 3 * (P - 2 * g + M), S = 3 * (g - M), d = M; var m = new SuperMap.Geometry.Point(h * l + f * a + S * u + d * c, h * r + f * s + S * p + d * y); o.push(m) } } } return o }, SuperMap.Plot.PlottingUtil.computeBeizerPoints = function (t, e, o) { var n = SuperMap.Plot.PlottingUtil.polylineDistance(e), i = [], l = [], r = []; if (t) { l.push(e[0]); var a = o[0], s = o[1], u = e[0].x + n * a, p = e[0].y + n * s; l.push(new SuperMap.Geometry.Point(u, p)), i.push(new SuperMap.Geometry.Point(u, p)); for (var c = 1; c < e.length - 1; c++) { var y = o[4 * c - 2], P = o[4 * c - 1], h = e[c].x + n * y, f = e[c].y + n * P; l.push(new SuperMap.Geometry.Point(h, f)), i.push(new SuperMap.Geometry.Point(h, f)), l.push(new SuperMap.Geometry.Point(e[c].x, e[c].y)), y = o[4 * c], P = o[4 * c + 1], h = e[c].x + n * y, f = e[c].y + n * P, l.push(new SuperMap.Geometry.Point(h, f)), i.push(new SuperMap.Geometry.Point(h, f)) } var S = e.length - 1; a = o[4 * S - 2], s = o[4 * S - 1], u = e[S].x + n * a, p = e[S].y + n * s, l.push(new SuperMap.Geometry.Point(u, p)), i.push(new SuperMap.Geometry.Point(u, p)), l.push(new SuperMap.Geometry.Point(e[S].x, e[S].y)), l.push(new SuperMap.Geometry.Point(e[S].x, e[S].y)), l.push(new SuperMap.Geometry.Point(e[S].x, e[S].y)), r = SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l) } else { o = []; var d = (l = SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[1].x - l[0].x, g = l[1].y - l[0].y, M = d / n, m = g / n; o.push(M), o.push(m), i.push(l[1]); for (var v = 1; v < e.length - 1; v++) { var b = (l[3 * v - 1].x - l[3 * v].x) / n, T = (l[3 * v - 1].y - l[3 * v].y) / n; o.push(b), o.push(T), i.push(l[3 * v - 1]); var A = (l[3 * v + 1].x - l[3 * v].x) / n, L = (l[3 * v + 1].y - l[3 * v].y) / n; o.push(A), o.push(L), i.push(l[3 * v + 1]) } M = (d = l[3 * (e.length - 1) - 1].x - l[3 * (e.length - 1)].x) / n, m = (g = l[3 * (e.length - 1) - 1].y - l[3 * (e.length - 1)].y) / n, o.push(M), o.push(m), i.push(l[3 * (e.length - 1) - 1]), r = SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l) } return { scalePoints: i, scaleValues: o, beizerPoints: r } }, SuperMap.Plot.PlottingUtil.getTrianglePoints = function (t, e, o, n, i, l, r) { var a = o.x, s = o.y, u = n.x, p = n.y, c = i.x, y = i.y; SuperMap.Plot.PlottingUtil.getPointsByTriangle(t, e, a, s, u, p, c, y, l, r) }, SuperMap.Plot.PlottingUtil.getPointsByTriangle = function (t, e, o, n, i, l, r, a, s, u) { var p = i + (r - o), c = l + (a - n), y = 0, P = 0; if (o == r) y = o, P = c; else if (n == a) y = p, P = n; else { var h = 1 * (a - n) / (r - o), f = n - o * h; P = h * (y = (c + p / h - f) / (h + 1 / h)) + f } var S = Math.sqrt(1 * (i - p) * (i - p) + 1 * (l - c) * (l - c)), d = Math.sqrt(1 * (o - i) * (o - i) + 1 * (n - l) * (n - l)), g = Math.sqrt(1 * (i - r) * (i - r) + 1 * (l - a) * (l - a)), M = 0; p = y + (p - y) * (M = d + g ? 1 + (g - d) * t / (g + d) : 1), c = P + (c - P) * M, 0 == S && (S = 1), s.x = i + (i - p) * d / (e * S), s.y = l + (l - c) * d / (e * S), u.x = i + (p - i) * g / (e * S), u.y = l + (c - l) * g / (e * S) }, SuperMap.Plot.PlottingUtil.getTrapezoidPoints = function (t, e, o, n, i) { var l = e.x, r = e.y, a = o.x, s = o.y, u = n.x, p = n.y; return SuperMap.Plot.PlottingUtil.getPointsByTrapezoid(t, l, r, a, s, u, p, i) }, SuperMap.Plot.PlottingUtil.getPointsByTrapezoid = function (t, e, o, n, i, l, r, a) { var s = 0, u = 0, p = 0, c = 0; if (0 == Math.abs(o - i)) s = e + n - l, u = r; else if (0 == Math.abs(e - n)) s = l, u = o + i - r; else { var y = 1 * (o - i) / (e - n), P = r - y * l; u = y * (s = ((i + o) / 2 + (e + n) / (2 * y) - P) / (y + 1 / y)) + P, s = 2 * s - l, u = 2 * u - r } var h = Math.sqrt(1 * (e - n) * (e - n) + 1 * (o - i) * (o - i)), f = Math.sqrt(1 * (e - s) * (e - s) + 1 * (o - u) * (o - u)); return h > 0 ? (p = e + (n - e) * f / h, c = o + (i - o) * f / h) : (p = e, c = o), a.x = p + (s - p) * t, a.y = c + (u - c) * t, a }, SuperMap.Plot.PlottingUtil.pointIsOnPolyLine = function (t, e, o) { if (SuperMap.Plot.PlottingUtil.equalFuzzy(t.x, e.x) && SuperMap.Plot.PlottingUtil.equalFuzzy(t.y, e.y) || SuperMap.Plot.PlottingUtil.equalFuzzy(t.x, o.x) && SuperMap.Plot.PlottingUtil.equalFuzzy(t.y, o.y)) return !0; var n = t.x - e.x, i = t.y - e.y, l = t.x - o.x, r = t.y - o.y, a = (n * l + i * r) / (Math.sqrt(n * n + i * i) * Math.sqrt(l * l + r * r)); return !!SuperMap.Plot.PlottingUtil.equalFuzzy(a, -1, .1) }, SuperMap.Plot.PlottingUtil.pointIsOnPolyLines = function (t, e) { if (!e || 0 === e.length) return { isOnPolyLine: !1, index: -1 }; for (var o = !1, n = -1, i = 0; i < e.length - 1; i++)if (o = SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(t, e[i], e[i + 1])) { n = i; break } return { isOnPolyLine: o, index: n } }, SuperMap.Plot.PlottingUtil.computePointToLineMinDis = function (t, e) { for (var o = -1, n = -1, i = 0; i < e.length - 1; i++) { var l = e[i], r = e[i + 1], a = SuperMap.Plot.PlottingUtil.projectPoint(t, l, r); if (SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(a, l, r)) { var s = SuperMap.Plot.PlottingUtil.distance(t, a); o < 0 ? (o = s, n && (n = i)) : o > s && (o = s, n = i) } } return n && o < 0 && (n = -1), { minDis: o, index: n } }, SuperMap.Plot.PlottingUtil.findPointInLine = function (t, e, o) { if (t === e || Math.abs(o) < 1e-18) return t; var n = e.x - t.x, i = e.y - t.y, l = o / Math.sqrt(n * n + i * i), r = t.x + n * l, a = t.y + i * l; return new SuperMap.Geometry.Point(r, a) }, SuperMap.Plot.PlottingUtil.operateControlPoints = function (t) { var e = t, o = e.length; if (3 == o) { var n = new SuperMap.Geometry.Point(0, 0); SuperMap.Plot.PlottingUtil.getTrapezoidPoints(1, t[0], t[1], t[2], n), e.push(n) } if (o > 4 && (e.splice(4, o - 4), o = e.length), SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0], t[1], e[2])) { var i = e[0]; e[0] = e[1], e[1] = i } if (!SuperMap.Plot.PlottingUtil.pointIsRightToVerticle(e[0], e[1], e[2])) { var l = e[2]; e[2] = e[3], e[3] = l } return e }, SuperMap.Plot.PlottingUtil.pointIsRightToLine = function (t, e, o) { return (e.x - t.x) * (o.y - t.y) - (o.x - t.x) * (e.y - t.y) < 0 }, SuperMap.Plot.PlottingUtil.pointIsRightToVerticle = function (t, e, o) { var n = new SuperMap.Geometry.Point(.5 * (e.x + t.x), .5 * (e.y + t.y)), i = new SuperMap.Geometry.Point(e.x - t.x, e.y - t.y), l = new SuperMap.Geometry.Point(o.x - n.x, o.y - n.y); return i.x * l.x + i.y * l.y > 0 }, SuperMap.Plot.PlottingUtil.linePnt = function (t, e, o) { var n = SuperMap.Plot.PlottingUtil.distance(t, e); if (0 == n) return t; var i = o / n; return SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(i, t, e) }, SuperMap.Plot.PlottingUtil.findPointOnLineByRatio = function (t, e, o) { var n = new SuperMap.Geometry.Point(0, 0); return n.x = e.x + (o.x - e.x) * t, n.y = e.y + (o.y - e.y) * t, n }, SuperMap.Plot.PlottingUtil.rotateAngle = function (t, e, o) { var n = e, i = Math.cos(n), l = Math.sin(n), r = o.x - t.x, a = o.y - t.y; return o.x = r * i - a * l + t.x, o.y = r * l + a * i + t.y, o }, SuperMap.Plot.PlottingUtil.resize = function (t, e, o) { return o.x = t.x + e * (o.x - t.x), o.y = t.y + e * (o.y - t.y), o }, SuperMap.Plot.PlottingUtil.findPointInPolyLine = function (t, e) { if (e < 0 || t.length < 2) return { index: -1, pt: null }; if (Math.abs(e) < 1e-18) return { index: 0, pt: t[0] }; for (var o = 0, n = 0; n < t.length - 1; n++)if ((o += SuperMap.Plot.PlottingUtil.distance(t[n], t[n + 1])) > e || SuperMap.Plot.PlottingUtil.equalFuzzy(o, e)) { var i = o - e, l = t[n + 1], r = t[n], a = i / SuperMap.Plot.PlottingUtil.distance(l, r), s = new SuperMap.Geometry.Point(0, 0); return s.x = l.x + (r.x - l.x) * a, s.y = l.y + (r.y - l.y) * a, { index: n, pt: s } } return { index: -1, pt: null } }, SuperMap.Plot.PlottingUtil.polylineDistance = function (t) { if (0 === t.length) return 0; for (var e = 0, o = 0; o < t.length - 1; o++)e += SuperMap.Plot.PlottingUtil.distance(t[o], t[o + 1]); return e }, SuperMap.Plot.PlottingUtil.rotate = function (t, e, o, n) { var i = n.x - t.x, l = n.y - t.y, r = i * e - l * o + t.x, a = i * o + l * e + t.y; return new SuperMap.Geometry.Point(r, a) }, SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale = function (t, e, o) { var n = e.x, i = e.y, l = o.x, r = o.y, a = Math.sqrt(1 * (n - l) * (n - l) + 1 * (i - r) * (i - r)), s = 0, u = 0; return 0 == a ? (s = n, u = i) : (s = n + (l - n) * t / a, u = i + (r - i) * t / a), new SuperMap.Geometry.Point(s, u) }, SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale = function (t, e, o) { var n = e.x, i = e.y, l = o.x, r = o.y, a = 0, s = 0, u = Math.sqrt(1 * (n - l) * (n - l) + 1 * (i - r) * (i - r)); return 0 === u ? (a = n, s = i) : (a = n + (n - l) * t / u, s = i + (i - r) * t / u), new SuperMap.Geometry.Point(a, s) }, SuperMap.Plot.PlottingUtil.getSidePointsOfLine = function (t, e, o) { var n = e.x, i = e.y, l = o.x, r = o.y, a = Math.sqrt(1 * (n - l) * (n - l) + 1 * (i - r) * (i - r)), s = 0, u = 0; 0 == a ? (u = 0, s = t) : (s = t * (n - l) / a, u = t * (i - r) / a); var p = -u + l, c = +s + r, y = +u + l, P = -s + r; return { pntLeft: new SuperMap.Geometry.Point(y, P), pntRight: new SuperMap.Geometry.Point(p, c) } }, SuperMap.Plot.PlottingUtil.pointProjectToSegment = function (t, e, o) { var n = 0, i = 0, l = 0, r = 1, a = void 0, s = void 0; if (i = e.x !== t.x ? (e.y - t.y) / (e.x - t.x) : 1.7976931348623157e308, l = o.x !== t.x ? (o.y - t.y) / (o.x - t.x) : 1.7976931348623157e308, n = o.y !== e.y ? (o.x - e.x) / (e.y - o.y) : 1.7976931348623157e308, (a = e.x >= t.x && e.y >= t.y ? 1 : e.x < t.x && e.y > t.y ? 2 : e.x <= t.x && e.y <= t.y ? 3 : 4) == (s = o.x > t.x && o.y > t.y ? 1 : o.x < t.x && o.y > t.y ? 2 : o.x < t.x && o.y < t.y ? 3 : 4)) (i < n && l < n || i > n && l > n) && (r = 0); else switch (a) { case 1: (4 == s && i < n || 2 == s && i > n) && (r = 0); break; case 2: (1 == s && i < n || 3 == s && i > n) && (r = 0); break; case 3: (2 == s && i < n || 4 == s && i > n) && (r = 0); break; case 4: (3 == s && i < n || 1 == s && i > n) && (r = 0) }var u = new SuperMap.Geometry.Point(0, 0); return SuperMap.Plot.PlottingUtil.equalFuzzy(n - 1.7976931348623157e308, 0) ? (u.x = t.x, u.y = e.y) : SuperMap.Plot.PlottingUtil.equalFuzzy(n, 0) ? (u.x = e.x, u.y = t.y) : (u.x = (n * (e.y - t.y) + n * n * t.x + e.x) / (n * n + 1), u.y = t.y + n * (u.x - t.x)), { isOnline: 1 === r, projectPoint: u } }, SuperMap.Plot.PlottingUtil.coordinateTrans = function (t, e, o) { var n = SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(0, 0), e), i = SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(0, 0), e) + o * Math.PI / 180, l = n * Math.cos(i) + t.x, r = n * Math.sin(i) + t.y; return new SuperMap.Geometry.Point(l, r) }, SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen = function (t, e, o) { var n = void 0, i = void 0, l = (o.x - e.x) * (o.x - e.x) + (o.y - e.y) * (o.y - e.y), r = Math.sqrt((t.x - e.x) * (t.x - e.x) + (t.y - e.y) * (t.y - e.y)), a = Math.sqrt((t.x - o.x) * (t.x - o.x) + (t.y - o.y) * (t.y - o.y)); if (0 == a || 0 == r) n = 0, i = 0; else if (0 == l) n = r, i = 0; else { var s = (r * r + a * a - l) / 2 / r / a, u = 0; s >= 1 ? (s = 1, u = 0) : u = Math.sqrt(1 - s * s), n = a * s, i = a * u } return { dLen1: n, dLen2: i } }, SuperMap.Plot.PlottingUtil.paraLine = function (t, e, o) { var n = []; if (2 > t.length) return n; if (o) { var i = t[1].clone(); i = SuperMap.Plot.PlottingUtil.rotateAngle(t[0], Math.PI / 2, i), n.push(SuperMap.Plot.PlottingUtil.linePnt(t[0], i, e)); for (var l = 1; l < t.length - 1; l++)if (!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].x, t[l + 1].x) || !SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].y, t[l + 1].y)) { for (var r = SuperMap.Plot.PlottingUtil.radian(t[l], t[l + 1]), a = SuperMap.Plot.PlottingUtil.radian(t[l], t[l - 1]) - r; a < 0;)a += 2 * Math.PI; var s = a / 2, u = void 0; u = s > Math.PI / 2 ? s - Math.PI / 2 : Math.PI / 2 - s; var p = e / Math.cos(u); i = t[l + 1].clone(), i = SuperMap.Plot.PlottingUtil.rotateAngle(t[l], s, i), n.push(SuperMap.Plot.PlottingUtil.linePnt(t[l], i, p)) } i = t[t.length - 2].clone(), i = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], -1 * Math.PI / 2, i), n.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], i, e)) } else { var c = t[1].clone(); c = SuperMap.Plot.PlottingUtil.rotateAngle(t[0], -Math.PI / 2, c), n.push(SuperMap.Plot.PlottingUtil.linePnt(t[0], c, e)); for (var y = 1; y < t.length - 1; y++)if (!SuperMap.Plot.PlottingUtil.equalFuzzy(t[y].x, t[y + 1].x) || !SuperMap.Plot.PlottingUtil.equalFuzzy(t[y].y, t[y + 1].y)) { for (var P = SuperMap.Plot.PlottingUtil.radian(t[y], t[y + 1]), h = SuperMap.Plot.PlottingUtil.radian(t[y], t[y - 1]) - P; h < 0;)h += 2 * Math.PI; var f = Math.PI - h / 2, S = void 0; S = f > Math.PI / 2 ? f - Math.PI / 2 : Math.PI / 2 - f; var d = e / Math.cos(S); c = t[y - 1].clone(), c = SuperMap.Plot.PlottingUtil.rotateAngle(t[y], f, c), n.push(SuperMap.Plot.PlottingUtil.linePnt(t[y], c, d)) } c = t[t.length - 2].clone(), c = SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length - 1], Math.PI / 2, c), n.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length - 1], c, e)) } return n }, SuperMap.Plot.PlottingUtil.circlePoint = function (t, e, o, n) { n *= Math.PI / 180; var i = t.x + e * Math.cos(n), l = t.y + o * Math.sin(n); return new SuperMap.Geometry.Point(i, l) }, SuperMap.Plot.PlottingUtil.getPolygonCenterPt = function (t) { if (!t || 0 === t.length) return null; for (var e = 0, o = 0, n = 0; n < t.length; n++)e += t[n].x, o += t[n].y; return new SuperMap.Geometry.Point(e / t.length, o / t.length) }, SuperMap.Plot.PlottingUtil.ptIsInPolygon = function (t, e) { if (!t || 0 === t.length) return !1; for (var o = 0, n = t.length, i = 0; i < n; i++) { var l = t[i], r = t[(i + 1) % n]; if (l.y !== r.y) { var a = l.y < r.y ? l.y : r.y, s = l.y > r.y ? l.y : r.y; if (!(e.y < a || e.y > s)) (e.y - l.y) * (r.x - l.x) / (r.y - l.y) + l.x > e.x && o++ } } return o % 2 == 1 }, SuperMap.Plot.PlottingUtil.projectPtOnPolyLine = function (t, e) { if (2 > e.length) return { index: -1, pt: null }; for (var o = 0; o < e.length - 1; o++) { var n = SuperMap.Plot.PlottingUtil.pointProjectToSegment(t, e[o], e[o + 1]); if (n.isOnline) return { index: o, pt: n.projectPoint } } return { index: -1, pt: null } }, SuperMap.Plot.PlottingUtil.isPloyClockwise = function (t) { var e = SuperMap.Plot.PlottingUtil.clonePoints(t), o = e.length; if (!(o < 3)) { var n = e[0].y * (e[o - 1].x - e[1].x); e.push(e[0].clone()); for (var i = 1; i < o; ++i)n += e[i].y * (e[i - 1].x - e[i + 1].x); return n > 0 ? 0 : 1 } }, SuperMap.Plot.PlottingUtil.isSamePt = function (t, e) { return !(!SuperMap.Plot.PlottingUtil.equalFuzzy(t.x, e.x) || !SuperMap.Plot.PlottingUtil.equalFuzzy(t.y, e.y)) }, SuperMap.Plot.PlottingUtil.getPtsIndexByDistance = function (t, e) { var o = SuperMap.Plot.PlottingUtil.findPointInPolyLine(e, t); return { index: o.index, pts: o.pt, bfind: -1 !== o.index } }, SuperMap.Plot.PlottingUtil.ptInBounds = function (t, e) { return t.x > e.left && t.x < e.right && t.y < e.top && t.y > e.bottom }, SuperMap.Plot.PlottingUtil.InnerAngle = function (t, e, o) { if (t == e || t == o) return 0; var n = SuperMap.Plot.PlottingUtil.distance(t, e), i = SuperMap.Plot.PlottingUtil.distance(t, o), l = SuperMap.Plot.PlottingUtil.distance(e, o), r = (n * n + i * i - l * l) / (2 * n * i); return r > 1 && SuperMap.Plot.PlottingUtil.equalFuzzy(r, 1) ? r = 1 : r < 1 && SuperMap.Plot.PlottingUtil.equalFuzzy(r, -1) && (r = -1), Math.acos(r) }, SuperMap.Plot.PlottingUtil.plumbLineLen = function (t, e, o) { return SuperMap.Plot.PlottingUtil.distance(t, e) * Math.sin(SuperMap.Plot.PlottingUtil.InnerAngle(e, t, o)) }, SuperMap.Plot.PlottingUtil.paraPolygon = function (t, e, o) { var n = [], i = SuperMap.Plot.PlottingUtil.clonePoints(t), l = i.length; if (l < 2) return n; var r = new SuperMap.Geometry.Point(0, 0); if (o) { if (l < 3) r = i[1].clone(), SuperMap.Plot.PlottingUtil.rotateAngle(i[0], Math.PI, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0], r, e)); else { for (var a = SuperMap.Plot.PlottingUtil.radian(i[0], i[1]), s = SuperMap.Plot.PlottingUtil.radian(i[0], i[i.length - 1]) - a; s < 0;)s += 2 * Math.PI; var u = s / 2, p = void 0; p = u > Math.PI / 2 ? u - Math.PI / 2 : Math.PI / 2 - u; var c = e / Math.cos(p); r = i[1].clone(), r = SuperMap.Plot.PlottingUtil.rotateAngle(i[0], u, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0], r, c)) } for (var y = 1; y < l - 1; y++) { for (var P = SuperMap.Plot.PlottingUtil.radian(i[y], i[y + 1]), h = SuperMap.Plot.PlottingUtil.radian(i[y], i[y - 1]) - P; h < 0;)h += 2 * Math.PI; var f = h / 2, S = void 0; S = f > Math.PI / 2 ? f - Math.PI / 2 : Math.PI / 2 - f; var d = e / Math.cos(S); r = i[y + 1].clone(), r = SuperMap.Plot.PlottingUtil.rotateAngle(i[y], f, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[y], r, d)) } if (l < 3) r = i[l - 2].clone(), SuperMap.Plot.PlottingUtil.rotateAngle(i[l - 1], 0, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l - 1], r, e)); else { for (var g = SuperMap.Plot.PlottingUtil.radian(i[l - 1], i[0]), M = SuperMap.Plot.PlottingUtil.radian(i[l - 1], i[l - 2]) - g; M < 0;)M += 2 * Math.PI; var m = M / 2, v = void 0; v = m > Math.PI / 2 ? m - Math.PI / 2 : Math.PI / 2 - m; var b = e / Math.cos(v); r = i[0].clone(), r = SuperMap.Plot.PlottingUtil.rotateAngle(i[l - 1], m, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l - 1], r, b)) } } else { if (l < 3) { var T = i[1].clone(); SuperMap.Plot.PlottingUtil.rotateAngle(i[0], 0, T), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0], T, e)) } else { for (var A = SuperMap.Plot.PlottingUtil.radian(i[0], i[1]), L = SuperMap.Plot.PlottingUtil.radian(i[0], i[l - 1]) - A; L < 0;)L += 2 * Math.PI; var O = Math.PI - L / 2, E = void 0; E = O > Math.PI / 2 ? O - Math.PI / 2 : Math.PI / 2 - O; var x = e / Math.cos(E); r = i[l - 1].clone(), r = SuperMap.Plot.PlottingUtil.rotateAngle(i[0], O, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[0], r, x)) } for (var w = 1; w < l - 1; w++) { for (var I = SuperMap.Plot.PlottingUtil.radian(i[w], i[w + 1]), R = SuperMap.Plot.PlottingUtil.radian(i[w], i[w - 1]) - I; R < 0;)R += 2 * Math.PI; var C = Math.PI - R / 2, _ = void 0; _ = C > Math.PI / 2 ? C - Math.PI / 2 : Math.PI / 2 - C; var U = e / Math.cos(_); r = i[w - 1].clone(), r = SuperMap.Plot.PlottingUtil.rotateAngle(i[w], C, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[w], r, U)) } if (l < 3) r = i[l - 2].clone(), SuperMap.Plot.PlottingUtil.rotateAngle(i[l - 1], Math.PI, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l - 1], r, e)); else { for (var N = SuperMap.Plot.PlottingUtil.radian(i[l - 1], i[0]), D = SuperMap.Plot.PlottingUtil.radian(i[l - 1], i[l - 2]) - N; D < 0;)D += 2 * Math.PI; var B = Math.PI - D / 2, G = void 0; G = B > Math.PI / 2 ? B - Math.PI / 2 : Math.PI / 2 - B; var k = e / Math.cos(G); r = i[l - 2].clone(), r = SuperMap.Plot.PlottingUtil.rotateAngle(i[l - 1], B, r), n.push(SuperMap.Plot.PlottingUtil.linePnt(i[l - 1], r, k)) } } return n }, SuperMap.Plot.PlottingUtil.getOutRectangleDis = function (t) { if (2 > t.length) return 0; for (var e = t[0].x, o = t[0].x, n = t[0].y, i = t[0].y, l = 1; l < t.length; l++)e < t[l].x && (e = t[l].x), o > t[l].x && (o = t[l].x), n < t[l].y && (n = t[l].y), i > t[l].y && (i = t[l].y); return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e, n), new SuperMap.Geometry.Point(o, i)) }, SuperMap.Plot.PlottingUtil.clonePoints = function (t) { var e = []; if (void 0 === t || null === t) return e; if (SuperMap.Plot.PlottingUtil.isArray(t) || (t = [t]), t && null != t) for (var o = 0; o < t.length; o++)void 0 !== t[o] && null !== t[o] && e.push(t[o].clone()); return e }, SuperMap.Plot.PlottingUtil.extend = function (t, e) { if ("function" == typeof SuperMap.Util.extend) return SuperMap.Util.extend(t, e); if (t = t || {}, e) { for (var o in e) { var n = e[o]; void 0 !== n && (t[o] = n) } !("function" == typeof window.Event && e instanceof window.Event) && e.hasOwnProperty && e.hasOwnProperty("toString") && (t.toString = e.toString) } return t }, SuperMap.Plot.PlottingUtil.isArray = function (t) { return "[object Array]" === Object.prototype.toString.call(t) }, SuperMap.Plot.PlottingUtil.indexOf = function (t, e) { if (null == t) return -1; if ("function" == typeof t.indexOf) return t.indexOf(e); for (var o = 0, n = t.length; o < n; o++)if (t[o] === e) return o; return -1 }, SuperMap.Plot.PlottingUtil.copyAttributes = function (t, e) { if (t = t || {}, e) for (var o in e) { var n = e[o]; void 0 !== n && "CLASS_NAME" !== o && "function" != typeof n && (t[o] = n) } return t }, SuperMap.Plot.PlottingUtil.cloneObject = function (t) { if (null === t || "object" !== (void 0 === t ? "undefined" : n(t))) return t; if (t instanceof Date) { var e = new Date; return e.setTime(t.getTime()), e } if (t instanceof Array) return t.slice(0); if (t instanceof Object) { var o = {}; for (var i in t) t.hasOwnProperty(i) && (o[i] = SuperMap.Plot.PlottingUtil.cloneObject(t[i])); return o } throw new Error("Unable to copy obj! Its type isn't supported.") }, SuperMap.Plot.PlottingUtil.rad = function (t) { return t * Math.PI / 180 }, SuperMap.Plot.PlottingUtil.deg = function (t) { return 180 * t / Math.PI }, SuperMap.Plot.PlottingUtil.VincentyConstants = { a: 6378137, b: 6356752.3142, f: 1 / 298.257223563 }, SuperMap.Plot.PlottingUtil.distVincenty = function (t, e) { var o, n, i, l = SuperMap.Plot.PlottingUtil.VincentyConstants, r = l.a, a = l.b, s = l.f; "undefined" != typeof L && void 0 !== L.LatLng && t instanceof L.LatLng && e instanceof L.LatLng ? (o = SuperMap.Plot.PlottingUtil.rad(e.lng - t.lng), n = Math.atan((1 - s) * Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))), i = Math.atan((1 - s) * Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))) : (o = SuperMap.Plot.PlottingUtil.rad(e.lon - t.lon), n = Math.atan((1 - s) * Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))), i = Math.atan((1 - s) * Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))); for (var u = Math.sin(n), p = Math.cos(n), c = Math.sin(i), y = Math.cos(i), P = o, h = 2 * Math.PI, f = 20; Math.abs(P - h) > 1e-12 && --f > 0;) { var S = Math.sin(P), d = Math.cos(P), g = Math.sqrt(y * S * (y * S) + (p * c - u * y * d) * (p * c - u * y * d)); if (0 == g) return 0; var M = u * c + p * y * d, m = Math.atan2(g, M), v = Math.asin(p * y * S / g), b = Math.cos(v) * Math.cos(v), T = M - 2 * u * c / b, A = s / 16 * b * (4 + s * (4 - 3 * b)); h = P, P = o + (1 - A) * s * Math.sin(v) * (m + A * g * (T + A * M * (2 * T * T - 1))) } if (0 == f) return NaN; var O = b * (r * r - a * a) / (a * a), E = O / 1024 * (256 + O * (O * (74 - 47 * O) - 128)); return (a * (1 + O / 16384 * (4096 + O * (O * (320 - 175 * O) - 768))) * (m - E * g * (T + E / 4 * (M * (2 * T * T - 1) - E / 6 * T * (4 * g * g - 3) * (4 * T * T - 3))))).toFixed(3) / 1e3 }, SuperMap.Plot.PlottingUtil.destinationVincenty = function (t, e, o) { var n, i, l = SuperMap.Plot.PlottingUtil, r = l.VincentyConstants, a = r.a, s = r.b, u = r.f; "undefined" != typeof L && void 0 !== L.LatLng && t instanceof L.LatLng ? (n = t.lng, i = t.lat) : (n = t.lon, i = t.lat); for (var p = o, c = l.rad(e), y = Math.sin(c), P = Math.cos(c), h = (1 - u) * Math.tan(l.rad(i)), f = 1 / Math.sqrt(1 + h * h), S = h * f, d = Math.atan2(h, P), g = f * y, M = 1 - g * g, m = M * (a * a - s * s) / (s * s), v = 1 + m / 16384 * (4096 + m * (m * (320 - 175 * m) - 768)), b = m / 1024 * (256 + m * (m * (74 - 47 * m) - 128)), T = p / (s * v), A = 2 * Math.PI; Math.abs(T - A) > 1e-12;) { var O = Math.cos(2 * d + T), E = Math.sin(T), x = Math.cos(T); A = T, T = p / (s * v) + b * E * (O + b / 4 * (x * (2 * O * O - 1) - b / 6 * O * (4 * E * E - 3) * (4 * O * O - 3))) } var w = S * E - f * x * P, I = Math.atan2(S * x + f * E * P, (1 - u) * Math.sqrt(g * g + w * w)), R = u / 16 * M * (4 + u * (4 - 3 * M)), C = Math.atan2(E * y, f * x - S * E * P) - (1 - R) * u * g * (T + R * E * (O + R * x * (2 * O * O - 1))); return "undefined" != typeof L && void 0 !== L.LatLng && t instanceof L.LatLng ? L.latLng(l.deg(I), n + l.deg(C)) : new SuperMap.LonLat(n + l.deg(C), l.deg(I)) } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.AnalysisSymbol = SuperMap.Plot.AnalysisSymbol = SuperMap.Plot.AnalysisSymbol || {}; SuperMap.Plot.AnalysisSymbol.analysisBasicInfo = function (t) { var e = new Object; return e.libID = t.libID, e.code = t.code, e.symbolType = t.symbolType, e.symbolName = t.symbolName, e.textContent = t.textContent, e.minEditPts = t.algoMinEditPts, e.maxEditPts = t.algoMaxEditPts, e.surroundLineType = t.surroundLineType, e }, SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo = function (t) { var e = SuperMap.Plot.PlottingUtil.DPI, o = new Object; o.anchorPoint = new SuperMap.Geometry.Point(t.anchorPoint.x, t.anchorPoint.y); var n = 0, i = 0; return void 0 !== t.symbolSizeInLib ? (n = Math.round(t.symbolSizeInLib.x * e / 25.4 / 10), i = Math.round(t.symbolSizeInLib.y * e / 25.4 / 10)) : (n = Math.round(t.symbolSize.x * e / 25.4 / 10), i = Math.round(t.symbolSize.y * e / 25.4 / 10)), o.symbolSizeInLib = new SuperMap.Size(n, i), o.symbolSizeInLib.w = n, o.symbolSizeInLib.h = i, o.middleMarkBounds = new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x, t.middleMarkBounds.leftBottom.y, t.middleMarkBounds.rightTop.x, t.middleMarkBounds.rightTop.y), o }, SuperMap.Plot.AnalysisSymbol.analysisAlgoBasicInfo = function (t, e) { var o = new Object; if (o.subSymbols = [], o.scalePoints = [], o.scaleValues = [], e && t.subSymbols) for (var n = 0; n < t.subSymbols.length; n++)o.subSymbols.push(new SuperMap.Plot.SubSymbol(t.libID, t.subSymbols[n])); if (t.scalePoints) { o.scalePoints = []; for (var i = 0; i < t.scalePoints.length; i++) { var l = new SuperMap.Geometry.Point(t.scalePoints[i].x, t.scalePoints[i].y); l.tag = i, l.isScalePoint = !0, o.scalePoints.push(l) } } if (t.scaleValues) for (var r = 0; r < t.scaleValues.length; r++)o.scaleValues.push(t.scaleValues[r]); return o }, SuperMap.Plot.AnalysisSymbol.analysisSymbolCells = function (t, e) { var o = []; if (t && (function (t, o) { if (t.innerCells && t.innerCells.length) for (var n = 0; n < t.innerCells.length; n++) { var i = t.innerCells[n]; if (t.symbolIsCanFill && i.type !== SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL) { var l = new Object, r = SuperMap.Plot.AnalysisSymbol.getStyle(t, e); l.type = 32, l.style = { fillSymbolID: r.fillSymbolID, fillColor: r.fillColor, fillOpacity: r.fillOpacity, strokeOpacity: 0, strokeWidth: 0, fillLimit: !1, lineColorLimit: !0, lineWidthLimit: !0 }, l.positionPoints = []; for (var a = 0; a < i.positionPoints.length; a++) { var s = new SuperMap.Geometry.Point(i.positionPoints[a].x, i.positionPoints[a].y); l.positionPoints.push(s) } o.push(l) } } }(t, o), t.innerCells)) { var n = t.innerCells; if (0 !== n.length) for (var i = 0; i < n.length; i++)o.push(SuperMap.Plot.AnalysisSymbol.analysisInnerCell(n[i], e)) } return o }, SuperMap.Plot.AnalysisSymbol.analysisInnerCell = function (t, e) { var o = new Object; if (o.positionPoints = [], t) { if (o.type = t.type, o.surroundLineFlag = t.surroundLineFlag, o.textContent = t.textContent, o.style = SuperMap.Plot.AnalysisSymbol.getStyle(t, e), null != t.positionPoints) for (var n = t.positionPoints, i = 0; i < n.length; i++) { var l = new SuperMap.Geometry.Point(n[i].x, n[i].y); o.positionPoints.push(l) } if (o.style.lineColorLimit = t.lineColorLimit, o.style.lineTypeLimit = t.lineTypeLimit, o.style.lineWidthLimit = t.lineWidthLimit, o.style.fillLimit = t.fillLimit, o.style.fillColorLimit = t.fillColorLimit, o.style.fontColorLimit = t.fontColorLimit, o.style.surroundLineLimit = t.surroundLineLimit, o.style.surroundLineFlag = o.surroundLineFlag, 34 == t.type ? o.style.fontColorLimit = !0 : o.style.fontColorLimit = t.fontColorLimit, o.type === SuperMap.Plot.SymbolType.RECTANGLESYMBOL) { var r = o.positionPoints[0], a = o.positionPoints[1], s = r.clone(), u = new SuperMap.Geometry.Point(a.x, r.y), p = a.clone(), c = new SuperMap.Geometry.Point(r.x, a.y); o.positionPoints = [], o.positionPoints.push(s), o.positionPoints.push(u), o.positionPoints.push(p), o.positionPoints.push(c), o.type = SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL } o.type === SuperMap.Plot.SymbolType.TEXTSYMBOL && (o.style.fontSizeLimit = !0) } return o }, SuperMap.Plot.AnalysisSymbol.getStyle = function (t, e) { function o(t) { var e = t.red.toString(16); e.length < 2 && (e = "0" + e); var o = t.green.toString(16); o.length < 2 && (o = "0" + o); var n = t.blue.toString(16); return n.length < 2 && (n = "0" + n), "#" + e + o + n } function n(t) { return "TOPLEFT" === t ? "lt" : "TOPCENTER" === t ? "ct" : "TOPRIGHT" === t ? "rt" : "BOTTOMLEFT" === t ? "lb" : "BOTTOMCENTER" === t ? "cb" : "BOTTOMRIGHT" === t ? "rb" : "MIDDLELEFT" === t ? "lm" : "MIDDLECENTER" === t ? "cm" : "MIDDLERIGHT" === t ? "rm" : 0 === t ? "lt" : 1 === t ? "ct" : 2 === t ? "rt" : 6 === t ? "lb" : 7 === t ? "cb" : 8 === t ? "rb" : 3 === t ? "lm" : 4 === t ? "cm" : 5 === t ? "rm" : "lt" } var i = SuperMap.Plot.PlottingUtil.DPI, l = {}; return t.style ? (e ? (l.fillSymbolID = t.style.fillSymbolID, l.fillSymbolID || (l.fill = t.style.fill)) : (!1 === t.style.fill ? t.style.fillSymbolID = 1 : !0 === t.style.fill && (t.style.fillSymbolID = 0), l.fillSymbolID = t.style.fillSymbolID), void 0 !== t.style.strokeGradientMode && null != t.style.strokeGradientMode ? 1 === t.style.strokeGradientMode ? l.strokeGradientMode = "LINEAR" : 2 === t.style.strokeGradientMode ? l.strokeGradientMode = "RADIAL" : "LINEAR" !== t.style.strokeGradientMode && "RADIAL" !== t.style.strokeGradientMode && (l.strokeGradientMode = "NONE") : l.strokeGradientMode = "NONE", void 0 !== t.style.strokeBackColor ? (l.strokeBackColor = o(t.style.strokeBackColor), l.strokeBackOpacity = (t.style.strokeBackColor.alpha / 255).toFixed(2)) : t.style.fillBackColor && (l.strokeBackColor = o(t.style.fillBackColor), l.strokeBackOpacity = (t.style.fillBackColor.alpha / 255).toFixed(2)), void 0 !== t.style.fillGradientMode && null != t.style.fillGradientMode && (1 === t.style.fillGradientMode ? l.fillGradientMode = "LINEAR" : 2 === t.style.fillGradientMode ? l.fillGradientMode = "RADIAL" : "LINEAR" !== t.style.fillGradientMode && "RADIAL" !== t.style.fillGradientMode && (l.fillGradientMode = "NONE")), null != t.style.fillGradientAngle && void 0 !== t.style.fillGradientAngle ? l.fillAngle = t.style.fillGradientAngle : void 0 !== t.style.fillAngle && null != t.style.fillAngle && (l.fillAngle = t.style.fillAngle), void 0 !== t.style.fillGradientOffsetRatioX && null != t.style.fillGradientOffsetRatioX ? l.fillCenterOffsetX = t.style.fillGradientOffsetRatioX / 100 : void 0 !== t.style.fillCenterOffsetX && null != t.style.fillCenterOffsetX && (l.fillCenterOffsetX = t.style.fillCenterOffsetX / 100), void 0 !== t.style.fillGradientOffsetRatioY && null != t.style.fillGradientOffsetRatioY ? l.fillCenterOffsetY = t.style.fillGradientOffsetRatioY / 100 : void 0 !== t.style.fillCenterOffsetY && null != t.style.fillCenterOffsetY && (l.fillCenterOffsetY = t.style.fillCenterOffsetY / 100), void 0 !== t.style.fillForeColor && (l.fillColor = o(t.style.fillForeColor)), void 0 !== t.style.fillOpaqueRate && (l.fillOpacity = (t.style.fillOpaqueRate / 100).toFixed(2), 100 !== t.style.fillOpaqueRate || 1 === t.style.fillGradientMode && 2 === t.style.fillGradientMode || (l.fillOpacity = (t.style.fillForeColor.alpha / 255).toFixed(2))), void 0 !== t.style.fillBackColor && (l.fillBackColor = o(t.style.fillBackColor)), 0 === t.style.fillBackOpaque ? l.fillBackOpacity = 0 : t.style.fillBackColor && t.style.fillBackColor.alpha && (l.fillBackOpacity = (t.style.fillBackColor.alpha / 255).toFixed(2)), void 0 !== t.style.lineColor && (!0 === e ? (l.color = o(t.style.lineColor), l.opacity = (t.style.lineColor.alpha / 255).toFixed(2)) : (l.strokeColor = o(t.style.lineColor), l.strokeOpacity = (t.style.lineColor.alpha / 255).toFixed(2))), void 0 !== t.style.lineWidth && (!0 === e ? l.weight = Math.ceil(t.style.lineWidth * i / 25.4) : l.strokeWidth = Math.ceil(t.style.lineWidth * i / 25.4)), e ? (l.lineSymbolID = t.style.lineSymbolID, l.lineSymbolID || (l.dashArray = t.style.dashArray)) : 1 === t.style.lineSymbolID ? l.strokeDashstyle = "dash" : 2 === t.style.lineSymbolID ? l.strokeDashstyle = "dot" : 3 === t.style.lineSymbolID ? l.strokeDashstyle = "dashdot" : l.strokeDashstyle = "solid", t.textStyle2D && null != t.textStyle2D ? (void 0 !== t.textStyle2D.sizeFixed && (l.sizeFixed = t.textStyle2D.sizeFixed), void 0 !== t.textStyle2D.fontName && (l.fontFamily = t.textStyle2D.fontName), void 0 !== t.textStyle2D.fontHeight && (l.sizeFixed ? l.fontSize = Math.ceil(t.textStyle2D.fontHeight * i / 25.4) : l.fontSize = t.textStyle2D.fontHeight), void 0 !== t.textStyle2D.foreColor && (l.fontColor = o(t.textStyle2D.foreColor)), void 0 !== t.textStyle2D.align && (l.labelAlign = n(t.textStyle2D.align)), void 0 !== t.textStyle2D.rotation && (l.labelRotation = -t.textStyle2D.rotation), void 0 !== t.textStyle2D.bold && (l.fontWeight = -t.textStyle2D.bold), l.labelXOffset = 0, l.labelYOffset = 0) : t.textStyle && null != t.textStyle && (void 0 !== t.textStyle.sizeFixed && (l.sizeFixed = t.textStyle.sizeFixed), void 0 !== t.textStyle.fontName && (l.fontFamily = t.textStyle.fontName), void 0 !== t.textStyle.fontHeight && (l.sizeFixed ? l.fontSize = Math.ceil(t.textStyle.fontHeight * i / 25.4) : l.fontSize = t.textStyle.fontHeight), void 0 !== t.textStyle.foreColor && (l.fontColor = o(t.textStyle.foreColor)), void 0 !== t.textStyle.align && (l.labelAlign = n(t.textStyle.align)), void 0 !== t.textStyle.rotation && (l.labelRotation = -t.textStyle.rotation), void 0 !== t.textStyle.bold && (l.fontWeight = -t.textStyle.bold), l.labelXOffset = 0, l.labelYOffset = 0), void 0 !== t.style.fontOpacity && (l.fontOpacity = t.style.fontOpacity), void 0 !== t.style.fontStroke ? l.fontStroke = t.style.fontStroke : t.textStyle2D && void 0 !== t.textStyle2D.outline && (l.fontStroke = t.textStyle2D.outline), void 0 !== t.style.fontStrokeColor ? l.fontStrokeColor = t.style.fontStrokeColor : t.textStyle2D && void 0 !== t.textStyle2D.backColor && (l.fontStrokeColor = o(t.textStyle2D.backColor)), void 0 !== l.fontStrokeWidth && (l.fontStrokeWidth = t.style.fontStrokeWidth), void 0 !== t.style.fontBackground && (l.fontBackground = t.style.fontBackground), void 0 !== t.style.fontBackgroundColor && (l.fontBackgroundColor = t.style.fontBackgroundColor), void 0 !== t.style.fontShadow && (l.fontShadow = t.style.fontShadow), void 0 !== t.style.fontShadowColor && (l.fontShadowColor = t.style.fontShadowColor), void 0 !== t.style.fontShadowOffsetX && (l.fontShadowOffsetX = t.style.fontShadowOffsetX), void 0 !== t.style.fontShadowOffsetY && (l.fontShadowOffsetY = t.style.fontShadowOffsetY), void 0 !== t.style.fontSpace && (l.fontSpace = t.style.fontSpace), void 0 !== t.style.fontPercent && (l.fontPercent = t.style.fontPercent), void 0 !== t.style.fontWeight && (l.fontWeight = t.style.fontWeight), void 0 !== t.style.fontStyle && (l.fontStyle = t.style.fontStyle), void 0 !== t.surroundLineColor && null != t.surroundLineColor && (l.surroundLineColor = o(t.surroundLineColor), l.surroundLineColorOpacity = (t.surroundLineColor.alpha / 255).toFixed(2)), void 0 !== t.surroundLineWidth2D && null != t.surroundLineWidth2D ? l.surroundLineWidth = Math.round(t.surroundLineWidth2D * i / 25.4) : void 0 !== t.surroundLineWidth && null != t.surroundLineWidth && (l.surroundLineWidth = Math.round(t.surroundLineWidth * i / 25.4)), !1 === t.visibility ? l.display = "none" : l.display = "display", l) : l }, SuperMap.Plot.AnalysisSymbol.setStyle = function (t, e, o) { var n = SuperMap.Plot.PlottingUtil.DPI; if (null != e) return e.style || (e.style = {}), e.textStyle2D || (e.textStyle2D = {}), o ? (e.style.fillSymbolID = t.fillSymbolID, e.style.fillSymbolID || (e.style.fill = t.fill)) : (!1 === t.fill ? t.fillSymbolID = 1 : !0 === t.fill && (t.fillSymbolID = 0), e.style.fillSymbolID = t.fillSymbolID), t.fillGradientMode && (e.style.fillGradientMode = t.fillGradientMode), t.fillGradientMode && ("LINEAR" === t.fillGradientMode ? e.style.fillGradientMode = 1 : "RADIAL" === t.fillGradientMode ? e.style.fillGradientMode = 2 : e.style.fillGradientMode = 0), t.strokeGradientMode && ("LINEAR" === t.strokeGradientMode ? e.style.strokeGradientMode = 1 : "RADIAL" === t.strokeGradientMode ? e.style.strokeGradientMode = 2 : e.style.strokeGradientMode = 0), t.strokeBackColor && (e.style.strokeBackColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeBackColor)), t.strokeBackOpacity && e.style.strokeBackColor && (e.style.strokeBackColor.alpha = 255 * t.strokeBackOpacity), null != t.fillAngle && void 0 !== t.fillAngle && (e.style.fillAngle = t.fillAngle, e.style.fillGradientAngle = t.fillAngle), null != t.fillCenterOffsetX && void 0 !== t.fillCenterOffsetX && (e.style.fillCenterOffsetX = 100 * t.fillCenterOffsetX, e.style.fillGradientOffsetRatioX = 100 * t.fillCenterOffsetX), null != t.fillCenterOffsetY && void 0 !== t.fillCenterOffsetY && (e.style.fillCenterOffsetY = 100 * t.fillCenterOffsetY, e.style.fillGradientOffsetRatioY = 100 * t.fillCenterOffsetY), t.fillColor && (e.style.fillForeColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillColor)), void 0 !== t.fillOpacity && null != t.fillOpacity && (e.style.fillOpaqueRate = 100 * t.fillOpacity, e.style.fillForeColor.alpha = 255), t.fillBackColor && (e.style.fillBackColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillBackColor)), void 0 !== t.fillBackOpacity && null != t.fillBackOpacity && (0 === t.fillBackOpacity ? (e.style.fillBackOpaque = 0, e.style.fillBackColor.alpha = 255) : (e.style.fillBackOpaque = 1, e.style.fillBackColor.alpha = 255 * t.fillBackOpacity)), !0 === o && t.color ? e.style.lineColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.color) : t.strokeColor && (e.style.lineColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeColor)), !0 === o && null != t.opacity && void 0 !== t.opacity ? (e.style.lineColor.alpha = 255 * t.opacity, e.style.lineColor.alpha < 1 && (e.style.lineColor.alpha = 1)) : null != t.strokeOpacity && void 0 !== t.strokeOpacity && (e.style.lineColor.alpha = 255 * t.strokeOpacity, e.style.lineColor.alpha < 1 && (e.style.lineColor.alpha = 1)), !0 === o && t.weight ? e.style.lineWidth = 25.4 * t.weight / n : t.strokeWidth && (e.style.lineWidth = 25.4 * t.strokeWidth / n), o ? (e.style.lineSymbolID = t.lineSymbolID, e.style.lineSymbolID || (e.style.dashArray = t.dashArray)) : "dot" === t.strokeDashstyle ? e.style.lineSymbolID = 2 : "dash" === t.strokeDashstyle || "longdash" === t.strokeDashstyle ? e.style.lineSymbolID = 1 : "dashdot" === t.strokeDashstyle || "longdashdot" === t.strokeDashstyle ? e.style.lineSymbolID = 3 : e.style.lineSymbolID = 0, t.fontFamily && (e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.fontName = t.fontFamily : e.textStyle && null != e.textStyle && (e.textStyle.fontName = t.fontFamily)), t.sizeFixed && (e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.sizeFixed = t.sizeFixed : e.textStyle && null != e.textStyle && (e.textStyle.sizeFixed = t.sizeFixed)), t.fontSize && (e.textStyle2D && null != e.textStyle2D ? t.sizeFixed ? e.textStyle2D.fontHeight = 25.4 * t.fontSize / n : e.textStyle2D.fontHeight = t.fontSize : e.textStyle && null != e.textStyle && (t.sizeFixed ? e.textStyle.fontHeight = 25.4 * t.fontSize / n : e.textStyle.fontHeight = t.fontSize)), t.fontWeight && (e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.bold = t.fontWeight : e.textStyle && null != e.textStyle && (e.textStyle.bold = t.fontWeight)), t.fontColor && (e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.foreColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor) : e.textStyle && null != e.textStyle && (e.textStyle.foreColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor))), t.labelRotation && (e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.rotation = -t.labelRotation : e.textStyle && null != e.textStyle && (e.textStyle.rotation = -t.labelRotation)), void 0 !== t.fontOpacity && (e.style.fontOpacity = t.fontOpacity), void 0 !== t.fontStroke && (e.textStyle2D.outline = t.fontStroke), void 0 !== t.fontStrokeColor && (e.textStyle2D.backColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontStrokeColor)), void 0 !== t.fontStrokeWidth && (e.style.fontStrokeWidth = t.fontStrokeWidth), void 0 !== t.fontBackground && (e.style.fontBackground = t.fontBackground), void 0 !== t.fontBackgroundColor && (e.style.fontBackgroundColor = t.fontBackgroundColor), void 0 !== t.fontShadow && (e.style.fontShadow = t.fontShadow), void 0 !== t.fontShadowColor && (e.style.fontShadowColor = t.fontShadowColor), void 0 !== t.fontShadowOffsetX && (e.style.fontShadowOffsetX = t.fontShadowOffsetX), void 0 !== t.fontShadowOffsetY && (e.style.fontShadowOffsetY = t.fontShadowOffsetY), void 0 !== t.fontSpace && (e.style.fontSpace = t.fontSpace), void 0 !== t.fontPercent && (e.style.fontPercent = t.fontPercent), void 0 !== t.fontWeight && (e.style.fontWeight = t.fontWeight), void 0 !== t.fontStyle && (e.style.fontStyle = t.fontStyle), t.surroundLineColor && (e.surroundLineColor = SuperMap.Plot.PlottingUtil.colorStringToRGB(t.surroundLineColor)), null != t.surroundLineColorOpacity && void 0 !== t.surroundLineColorOpacity && (e.surroundLineColor.alpha = 255 * t.surroundLineColorOpacity), t.surroundLineWidth && (e.surroundLineWidth2D = 25.4 * t.surroundLineWidth / n), void 0 !== t.labelAlign && ("lt" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 0 : e.textStyle && null != e.textStyle && (e.textStyle.align = 0) : "ct" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 1 : e.textStyle && null != e.textStyle && (e.textStyle.align = 1) : "rt" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 2 : e.textStyle && null != e.textStyle && (e.textStyle.align = 2) : "lb" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 6 : e.textStyle && null != e.textStyle && (e.textStyle.align = 6) : "cb" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 7 : e.textStyle && null != e.textStyle && (e.textStyle.align = 7) : "rb" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 8 : e.textStyle && null != e.textStyle && (e.textStyle.align = 8) : "lm" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 3 : e.textStyle && null != e.textStyle && (e.textStyle.align = 3) : "cm" === t.labelAlign ? e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 4 : e.textStyle && null != e.textStyle && (e.textStyle.align = 4) : "rm" === t.labelAlign && (e.textStyle2D && null != e.textStyle2D ? e.textStyle2D.align = 5 : e.textStyle && null != e.textStyle && (e.textStyle.align = 5))), t.display && "none" === t.display ? e.visibility = !1 : e.visibility = !0, t }, SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature = function (t, e, o) { var n = void 0, i = void 0; n = t.style, i = !0 !== o ? t.geometry : t, e && !0 === e.defaultFlag && !1 === i.isEdit && (i.surroundLineType = e.surroundLineType, n.surroundLineColor = e.surroundLineColor, n.surroundLineWidth = e.surroundLineWidth, n.surroundLineColorOpacity = e.surroundLineColorOpacity, n.fillBackColor = e.fillBackColor, n.fillBackOpacity = e.fillBackOpacity, n.fillGradientMode = e.fillGradientMode, n.fillCenterOffsetX = e.fillCenterOffsetX, n.fillCenterOffsetY = e.fillCenterOffsetY, n.fillAngle = e.fillAngle, !0 === o ? (n.color = e.lineColor, n.weight = e.lineWidth, n.opacity = e.lineOpacity, n.lineSymbolID = e.lineType, n.linecap = e.lineCap, n.linejoin = e.lineJoin) : (n.strokeColor = e.lineColor, n.strokeWidth = e.lineWidth, n.strokeOpacity = e.lineOpacity, n.strokeDashstyle = e.lineType, n.strokeLinecap = e.lineCap, n.strokeLinejoin = e.lineJoin), n.fillSymbolID = e.fillSymbolID, n.fillColor = e.fillColor, n.fillOpacity = e.fillOpacity, n.fontColor = e.fontColor, n.fontOpacity = e.fontOpacity, n.fontSize = e.fontSize, n.fontFamily = e.fontFamily, n.fontWeight = e.fontWeight, n.fontStyle = e.fontStyle, n.fontStroke = e.fontStroke, n.fontStrokeColor = e.fontStrokeColor, n.fontStrokeWidth = e.fontStrokeWidth, n.fontBackground = e.fontBackground, n.fontBackgroundColor = e.fontBackgroundColor, n.fontShadow = e.fontShadow, n.fontShadowColor = e.fontShadowColor, n.fontShadowOffsetX = e.fontShadowOffsetX, n.fontShadowOffsetY = e.fontShadowOffsetY, n.fontSpace = e.fontSpace, n.fontPercent = e.fontPercent, n.strokeGradientMode = e.strokeGradientMode, n.strokeBackColor = e.strokeBackColor, n.strokeBackOpacity = e.strokeBackOpacity) }, SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData = function (t, e) { t.hasOwnProperty("algoMinEditPts") || (t.algoMinEditPts = e.algoMinEditPts), t.hasOwnProperty("algoMaxEditPts") || (t.algoMaxEditPts = e.algoMaxEditPts), t.hasOwnProperty("innerCells") || (t.innerCells = SuperMap.Util.cloneObject(e.innerCells)), t.hasOwnProperty("symbolRanks") || (t.symbolRanks = SuperMap.Util.cloneObject(e.symbolRanks)), t.hasOwnProperty("symbolSizeInLib") || (t.symbolSizeInLib = SuperMap.Util.cloneObject(e.symbolSize)), t.hasOwnProperty("middleMarkExist") || (t.middleMarkExist = SuperMap.Util.cloneObject(e.middleMarkExist)), t.hasOwnProperty("middleMarkBounds") || (t.middleMarkBounds = SuperMap.Util.cloneObject(e.middleMarkBounds)), t.hasOwnProperty("anchorPoint") || (t.anchorPoint = SuperMap.Util.cloneObject(e.anchorPoint)) }, SuperMap.Plot.AnalysisSymbol.setSymbolData = function (t, e, o) { null == e && (e = {}), e.hasOwnProperty("type") || (e.type = "GRAPHICOBJECT"), e.isEdit = !0, e.uuid = t.uuid, e.associatedUuid = t.associatedUuid, e.hasOwnProperty("rotate2D") ? e.rotate2D.x = t.dRotate : e.rotate2D = { x: t.dRotate, y: 0, z: 0 }, e.hasOwnProperty("scale2D") ? e.scale2D.x = t.dScale : e.scale2D = { x: t.dScale, y: 0, z: 0 }, e.libID = t.libID, e.code = t.code, e.symbolType = t.symbolType, e.symbolName = t.symbolName, e.annotationPosition = t.annotationPosition ? t.annotationPosition : t.textPosition, e.textContent = t.textContent, e.scaleByMap = t.scaleByMap, e.resolution = t.resolution, e.isLocked = t.isLocked, e.note = t.note, e.custom = t.custom, e.subSymbols = []; for (var n = 0; n < t.subSymbols.length; n++) { var i = t.subSymbols[n]; e.subSymbols.push({ libID: i.libID, code: i.code, symbolData: i.symbolData, textContent: i.textContent, totalNum: i.totalNum }) } e.extendProperty = []; for (var l = t.getExtendProperty().getPropertyCount(), r = 0; r < l; r++) { var a = t.getExtendProperty().getPropertyByIndex(r); e.extendProperty.push({ key: a.key, value: a.value }) } e.avoidRegions = []; for (var s = 0; s < t.avoidRegions.length; s++) { var u = {}; SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[s].feature.style, u, o), e.avoidRegions.push([t.avoidRegions[s].getSymbolData(), u]) } if (!0 === o ? SuperMap.Plot.AnalysisSymbol.setStyle(t.style, e, o) : null != t.feature && SuperMap.Plot.AnalysisSymbol.setStyle(t.feature.style, e), t.symbolType === SuperMap.Plot.SymbolType.AIRROUTE || t.symbolType === SuperMap.Plot.SymbolType.NAVYROUTE || t.symbolType === SuperMap.Plot.SymbolType.MISSILEROUTE) { if (e.routeNodes = t.routeNodes, o) for (var p = 0; p < t.routeNodes.length; p++)e.routeNodes[p].positionPoint = {}, e.routeNodes[p].positionPoint.x = t.routeNodes[p].x, e.routeNodes[p].positionPoint.y = t.routeNodes[p].y, e.routeNodes[p].positionPoint.z = t.routeNodes[p].z, delete e.routeNodes[p].x, delete e.routeNodes[p].y, delete e.routeNodes[p].z; e.arrRoutePts = t.arrRoutePts, e.lineStyle = t.lineStyle } else if (t.symbolType === SuperMap.Plot.SymbolType.GROUPOBJECT || t.symbolType === SuperMap.Plot.SymbolType.FLAGGROUP || t.symbolType === SuperMap.Plot.SymbolType.NAVYDEPLOYMENT || t.symbolType === SuperMap.Plot.SymbolType.AIRDEPLOYMENT) { if (e.subAssociatedUuids = t.subAssociatedUuids, e.subFeatures = [], o) for (var c = 0; c < t.subObjects.length; c++)e.subFeatures.push(t.subObjects[c].getSymbolData()); else for (var y = 0; y < t.components.length; y++)e.subFeatures.push(t.components[y].geometry.getSymbolData()); 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.FLAGGROUP ? e.ratio = t.ratio : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.AIRDEPLOYMENT ? (e.colNum = t.colNum, e.speceDis = t.speceDis, e.isShowTooltip = t.isShowTooltip) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.NAVYDEPLOYMENT && (e.colNum = t.colNum, e.speceDis = t.speceDis) } else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SYMBOLTEXT) e.symbolTexts = t.symbolTexts, e.addFrame = t.addFrame; else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SYMBOLTEXT1) e.space = t.space, e.offsetX = t.offsetX, e.offsetY = t.offsetY; else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SATELLITE) { if (e.hasOwnProperty("scaleValues")) for (var P = 0; P < t.scaleValues.length; P++)e.scaleValues.length > P ? e.scaleValues[P] = t.scaleValues[P] : e.scaleValues.push(t.scaleValues[P]); else e.scaleValues = [], e.scaleValues = t.scaleValues; e.visible = t.visible, e.orbitPoints = t.orbitPoints } else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS) e.timeWindows = t.timeWindows; else { var h = void 0; h = !0 === o ? L.Util.latLngsToSuperMapPoints(t.getLatLngs()) : t.controlPoints, e.hasOwnProperty("localePoints") || (e.localePoints = []); var f = h.length; t.symbolType === SuperMap.Plot.SymbolType.ELLIPSESYMBOL && (f = 3); for (var S = 0; S < f; S++)e.localePoints.length > S ? (e.localePoints[S].x = h[S].x, e.localePoints[S].y = h[S].y, e.localePoints[S].hasOwnProperty("z") || (e.localePoints[S].z = 0)) : e.localePoints.push({ x: h[S].x, y: h[S].y, z: 0 }); if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.LINERELATION) e.endAssociatedUuid = t.endAssociatedUuid, e.lineRelationType = t.lineRelationType, e.startAssociatedUuid = t.startAssociatedUuid, e.subSectionCount = t.subSectionCount; else if (t.symbolType === SuperMap.Plot.SymbolType.DOTSYMBOL) { e.surroundLineType = t.surroundLineType, e.symbolRank = t.symbolRank, e.negativeImage = t.negativeImage, e.space = t.space, e.flagTextSize = t.flagTextSize, e.maxScale = t.maxScale, e.minScale = t.minScale, e.textDisplay = t.textDisplay, e.actualScale = t.actualScale, void 0 !== t.fontSize && (e.fontSize = t.fontSize), void 0 !== t.strokeWidth && (e.strokeWidth = t.strokeWidth); var d = 25.4 * t.symbolSize.w * 10 / SuperMap.Plot.PlottingUtil.DPI, g = 25.4 * t.symbolSize.h * 10 / SuperMap.Plot.PlottingUtil.DPI; e.symbolSize = { x: d, y: g }; var M = 25.4 * t.symbolSizeInLib.w * 10 / SuperMap.Plot.PlottingUtil.DPI, m = 25.4 * t.symbolSizeInLib.h * 10 / SuperMap.Plot.PlottingUtil.DPI; e.symbolSizeInLib = { x: M, y: m }, e.positionOffset = t.positionOffset, e.positionOffsetType = t.positionOffsetType, e.positionOffsetX = t.positionOffsetX, e.positionOffsetY = t.positionOffsetY, !1 === t.widthHeightLimit || !0 === t.widthHeightLimit ? e.limitWidthHeight = t.widthHeightLimit : e.limitWidthHeight = t.limitWidthHeight } else { if (e.surroundLineType = t.surroundLineType, e.hasOwnProperty("scaleValues")) for (var v = 0; v < t.scaleValues.length; v++)e.scaleValues.length > v ? e.scaleValues[v] = t.scaleValues[v] : e.scaleValues.push(t.scaleValues[v]); else e.scaleValues = [], e.scaleValues = t.scaleValues; e.subSymbolScaleValue = t.subSymbolScaleValue, e.baseScale = t.baseScale, e.strokeWidth = t.strokeWidth, e.polylineConnectLocationPoint = t.polylineConnectLocationPoint, 22 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ALGOSYMBOL ? (e.arrowHeadType = t.arrowHeadType, e.arrowBodyType = t.arrowBodyType, e.arrowTailType = t.arrowTailType) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ARROWLINE ? e.arrowAngle = t.arrowAngle : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE ? e.defaultRadius = t.defaultRadius : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.CONCENTRICCIRCLE || (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.LINEMARKING ? (e.islocationCircle = t.islocationCircle, e.textBoxType = t.textBoxType) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SYMBOLTEXTBOX ? (e.roundBox = t.roundBox, e.textBoxType = t.textBoxType) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.PATHTEXT ? (e.isAvoid = t.isAvoid, e.isCurve = t.isCurve, e.relLineText = t.relLineText, e.showPathLine = t.showPathLine, e.textToLineDistance = t.textToLineDistance, e.showPathLineArrow = t.showPathLineArrow) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ARCREGION && (o ? (e.centerPoint = { x: t.centerPoint.lng, y: t.centerPoint.lat }, e.circlePts = t.circlePts, e.spatialAnalystUrl = t.spatialAnalystUrl) : e.centerPoint = t.centerPoint, e.endAngle = t.endAngle, e.radius = t.radius, e.radiusPosAngle = t.radiusPosAngle, e.startAngle = t.startAngle, e.textPosition = t.textPosition, e.radiusLineType = t.radiusLineType, e.radiusText = t.radiusText)) } } t.symbolData = e }, SuperMap.Plot.AnalysisSymbol.parseSymbolData = function (t, e, o) { if (null != e) { if (void 0 !== e.isEdit && (t.isEdit = e.isEdit), t.libID = parseInt(e.libID), t.code = parseInt(e.code), t.symbolType = e.symbolType, t.symbolName = e.symbolName, t.textContent = e.textContent, void 0 !== e.dScale ? t.dScale = e.dScale : void 0 !== e.scale2D && (t.dScale = e.scale2D.x), void 0 !== e.dRotate ? t.dRotate = e.dRotate : void 0 !== e.rotate2D && (t.dRotate = e.rotate2D.x), void 0 !== e.resolution && (t.resolution = e.resolution), void 0 !== e.uuid && (t.uuid = e.uuid), void 0 !== e.associatedUuid && (t.associatedUuid = e.associatedUuid), void 0 !== e.annotationPosition && (o ? t.annotationPosition = e.annotationPosition : t.textPosition = e.annotationPosition), void 0 !== e.scaleByMap && (t.scaleByMap = e.scaleByMap), void 0 !== e.isLocked && (t.isLocked = e.isLocked), void 0 !== e.note && (t.note = e.note), void 0 !== e.custom && (t.custom = e.custom), e.extendProperty) for (var n = 0; n < e.extendProperty.length; n++) { var i = e.extendProperty[n]; t.extendProperty.addProperty(i.key, i.value) } if (e.hasOwnProperty("subSymbols") && null != e.subSymbols) { t.subSymbols = []; for (var l = 0; l < e.subSymbols.length; l++) { var r = e.subSymbols[l].libID; void 0 === r && (r = t.libID); var a = e.subSymbols[l].code; if (void 0 !== a) { var s = {}; void 0 !== e.subSymbols[l].textContent && (s.textContent = e.subSymbols[l].textContent), void 0 !== e.subSymbols[l].totalNum && (s.totalNum = e.subSymbols[l].totalNum), void 0 !== e.subSymbols[l].symbolData && (s.symbolData = e.subSymbols[l].symbolData), t.subSymbols.push(new SuperMap.Plot.SubSymbol(r, a, s)) } } } if (e.avoidRegions && 0 !== e.avoidRegions.length) for (var u = 0; u < e.avoidRegions.length; u++) { var p = { libID: 0, code: SuperMap.Plot.SymbolType.AVOIDREGION, map: t.map, symbolData: e.avoidRegions[u][0] }, c = null; if (o) (c = L.supermap.plotting.avoidRegion(0, SuperMap.Plot.SymbolType.AVOIDREGION, [], p)).style = SuperMap.Plot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[u][1], !0); else { c = new SuperMap.Geometry.AvoidRegion(p); var y = new SuperMap.Feature.Vector(c); y.style = SuperMap.Plot.AnalysisSymbol.getStyle(e.avoidRegions[u][1], o), c.feature = y, c.calculateParts() } t.avoidRegions.push(c) } if (!0 === o && (t.style = SuperMap.Plot.AnalysisSymbol.getStyle(e, !0)), t.symbolType === SuperMap.Plot.SymbolType.AIRROUTE || t.symbolType === SuperMap.Plot.SymbolType.NAVYROUTE || t.symbolType === SuperMap.Plot.SymbolType.MISSILEROUTE) { t.routeNodes = e.routeNodes, t.routeNodes = []; for (var P = 0; P < e.routeNodes.length; P++) { var h = new SuperMap.Plot.RouteNode; null == e.routeNodes[P].id && void 0 === e.routeNodes[P].id || (h.id = e.routeNodes[P].id), h.type = e.routeNodes[P].type, h.name = e.routeNodes[P].name, h.rotate = e.routeNodes[P].rotate, o ? (h.x = e.routeNodes[P].positionPoint.x, h.y = e.routeNodes[P].positionPoint.y, h.z = e.routeNodes[P].positionPoint.z) : h.positionPoint = new SuperMap.Geometry.Point(e.routeNodes[P].positionPoint.x, e.routeNodes[P].positionPoint.y), h.towardNodes = []; for (var f = 0; f < e.routeNodes[P].towardNodes.length; f++) { var S = new SuperMap.Plot.TowardNode; S.routeNodeId = e.routeNodes[P].towardNodes[f].routeNodeId, S.relLineText = e.routeNodes[P].towardNodes[f].relLineText, S.textContent = e.routeNodes[P].towardNodes[f].textContent, S.offsetX = e.routeNodes[P].towardNodes[f].offsetX, S.offsetY = e.routeNodes[P].towardNodes[f].offsetY, S.style = e.routeNodes[P].towardNodes[f].style, h.towardNodes.push(S) } h.style = e.routeNodes[P].style, t.routeNodes.push(h) } t.arrRoutePts = []; for (var d = 0; d < e.arrRoutePts.length; d++) { for (var g = [], M = 0; M < e.arrRoutePts[d].length; M++)e.arrRoutePts[d][M].hasOwnProperty("lat") && e.arrRoutePts[d][M].hasOwnProperty("lng") ? g.push(new SuperMap.Geometry.Point(e.arrRoutePts[d][M].lng, e.arrRoutePts[d][M].lat)) : void 0 === e.arrRoutePts[d][M].x && void 0 === e.arrRoutePts[d][M].y || g.push(new SuperMap.Geometry.Point(e.arrRoutePts[d][M].x, e.arrRoutePts[d][M].y)); o && (g = L.Util.superMapPointsToLatLngs(g)), t.arrRoutePts.push(g) } t.lineStyle = e.lineStyle } else if (t.symbolType === SuperMap.Plot.SymbolType.GROUPOBJECT || t.symbolType === SuperMap.Plot.SymbolType.FLAGGROUP || t.symbolType === SuperMap.Plot.SymbolType.NAVYDEPLOYMENT || t.symbolType === SuperMap.Plot.SymbolType.AIRDEPLOYMENT) { if (t.subAssociatedUuids = e.subAssociatedUuids, o) { for (var m = [], v = 0; v < e.subFeatures.length; v++) { var b = e.subFeatures[v]; b.uuid = SuperMap.Plot.PlottingUtil.generateUuid(); var T = L.supermap.plotting.PlottingObject.createSymbol(b.libID, b.code, null, { symbolData: b }); m.push(T) } t.subObjects = m } else for (var A = 0; A < e.subFeatures.length; A++) { var O = e.subFeatures[A], E = SuperMap.Geometry.PlottingGeometry.createFeature(O.libID, O.code, null, { symbolData: O, map: t.map }); E.geometry.ownGroupObj = t, t.components.push(E) } 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.FLAGGROUP ? (t.ratio = e.ratio, t.subFeatures = e.subFeatures) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.AIRDEPLOYMENT ? (t.colNum = e.colNum, t.speceDis = e.speceDis, t.isShowTooltip = e.isShowTooltip) : 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.NAVYDEPLOYMENT && (t.colNum = e.colNum, t.speceDis = e.speceDis) } else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SYMBOLTEXT) { t.addFrame = e.addFrame, t.symbolTexts = []; for (var x = 0, w = e.symbolTexts.length; x < w; x++) { var I = new SuperMap.Plot.SymbolText; I.textContent = e.symbolTexts[x].textContent, I.textPosition = e.symbolTexts[x].textPosition, I.style = e.symbolTexts[x].style, I.offsetX = e.symbolTexts[x].offsetX, I.offsetY = e.symbolTexts[x].offsetY, t.symbolTexts.push(I) } } else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SYMBOLTEXT1) void 0 !== e.space && (t.space = e.space), void 0 !== e.offsetX && (t.offsetX = e.offsetX), void 0 !== e.offsetY && (t.offsetY = e.offsetY); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SATELLITE) { if (e.scaleValues && 0 !== e.scaleValues.length) { t.scaleValues = []; for (var R = 0; R < e.scaleValues.length; R++)t.scaleValues.push(e.scaleValues[R]) } if (e.subSymbol && (t.subSymbols = [e.subSymbol]), t.visible = e.visible, e.orbitPoints) { t.orbitPoints = []; for (var C = 0; C < e.orbitPoints.length; C++)t.orbitPoints.push(new SuperMap.Plot.OrbitPoint(e.orbitPoints[C].x, e.orbitPoints[C].y, e.orbitPoints[C].z, e.orbitPoints[C].number, e.orbitPoints[C].time)) } } else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS) { t.timeWindows = e.timeWindows; for (var _ = 0; _ < t.timeWindows.length; _++)"Time" !== e.type && "Number" !== e.type || (t.timeWindows[_].type = e.type) } else { if (e.localePoints) { t.controlPoints = []; for (var U = 0; U < e.localePoints.length; U++)t.controlPoints.push(new SuperMap.Geometry.Point(e.localePoints[U].x, e.localePoints[U].y)); !0 === o && (t.latLngs = L.Util.superMapPointsToLatLngs(t.controlPoints), delete t.controlPoints) } if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.LINERELATION) t.endAssociatedUuid = e.endAssociatedUuid, t.lineRelationType = e.lineRelationType, t.startAssociatedUuid = e.startAssociatedUuid, t.subSectionCount = e.subSectionCount; else if (t.symbolType === SuperMap.Plot.SymbolType.DOTSYMBOL) { t.surroundLineType = e.surroundLineType, t.symbolRank = e.symbolRank, t.negativeImage = e.negativeImage; var N = SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo(e); if (t.anchorPoint = N.anchorPoint, t.symbolSizeInLib = N.symbolSizeInLib, t.middleMarkBounds = N.middleMarkBounds, void 0 !== e.actualScale && (t.actualScale = e.actualScale), void 0 !== e.limitWidthHeight && (t.limitWidthHeight = e.limitWidthHeight), void 0 !== e.fontSize && (t.fontSize = e.fontSize), void 0 !== e.strokeWidth && (t.strokeWidth = e.strokeWidth), void 0 !== e.space && (t.space = e.space), void 0 !== e.flagTextSize && (t.flagTextSize = e.flagTextSize), void 0 !== e.maxScale && (t.maxScale = e.maxScale), void 0 !== e.minScale && (t.minScale = e.minScale), void 0 !== e.textDisplay && (t.textDisplay = e.textDisplay), !1 !== t.isEdit) { var D = { x: 0, y: 0 }; -1 === e.symbolSize.x && -1 === e.symbolSize.x ? (D.x = e.symbolSizeInLib.x * SuperMap.Plot.PlottingUtil.DPI / 25.4 / 10, D.y = e.symbolSizeInLib.y * SuperMap.Plot.PlottingUtil.DPI / 25.4 / 10) : (D.x = e.symbolSize.x * SuperMap.Plot.PlottingUtil.DPI / 25.4 / 10, D.y = e.symbolSize.y * SuperMap.Plot.PlottingUtil.DPI / 25.4 / 10), t.setSymbolSize(D.x, D.y) } void 0 !== e.positionOffset && null !== e.positionOffset && (t.positionOffset = e.positionOffset), void 0 !== e.positionOffsetType && null !== e.positionOffsetType && (t.positionOffsetType = e.positionOffsetType), void 0 !== e.positionOffsetX && null !== e.positionOffsetX && (t.positionOffsetX = e.positionOffsetX), void 0 !== e.positionOffsetY && null !== e.positionOffsetY && (t.positionOffsetY = e.positionOffsetY) } else { if (t.surroundLineType = e.surroundLineType, e.scaleValues && 0 !== e.scaleValues.length) { t.scaleValues = []; for (var B = 0; B < e.scaleValues.length; B++)t.scaleValues.push(e.scaleValues[B]) } if (void 0 !== e.strokeWidth && null !== e.strokeWidth && (t.strokeWidth = e.strokeWidth), void 0 !== e.baseScale && null !== e.baseScale && (t.baseScale = e.baseScale), void 0 !== e.polylineConnectLocationPoint && null !== e.polylineConnectLocationPoint && (t.polylineConnectLocationPoint = e.polylineConnectLocationPoint), 22 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ALGOSYMBOL) void 0 !== e.arrowHeadType && null !== e.arrowHeadType && (t.arrowHeadType = e.arrowHeadType), void 0 !== e.arrowBodyType && null !== e.arrowBodyType && (t.arrowBodyType = e.arrowBodyType), void 0 !== e.arrowTailType && null !== e.arrowTailType && (t.arrowTailType = e.arrowTailType); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ARROWLINE) t.arrowAngle = e.arrowAngle, void 0 !== e.arrowTypeStart && (t.scaleValues[1] = e.arrowTypeStart), void 0 !== e.arrowTypeEnd && (t.scaleValues[2] = e.arrowTypeEnd); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE) { if (e.radius && 0 !== e.radius.length && 0 === t.scaleValues.length) for (var G = 0; G < e.radius.length; G++)t.scaleValues.push(e.radius[G]) } else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.CONCENTRICCIRCLE) t.symbolData.hasOwnProperty("startAngle") && (t.scaleValues[0] = t.symbolData.startAngle), t.symbolData.hasOwnProperty("endAngle") && (t.scaleValues[1] = t.symbolData.endAngle); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.LINEMARKING) void 0 !== e.islocationCircle && null !== e.islocationCircle && (t.islocationCircle = e.islocationCircle), void 0 !== e.textBoxType && null !== e.textBoxType && (t.textBoxType = e.textBoxType), e.tipPoint && (this.scaleValues[1] = e.tipPoint.x, this.scaleValues[2] = e.tipPoint.y); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.SYMBOLTEXTBOX) void 0 !== e.roundBox && null !== e.roundBox && (t.roundBox = e.roundBox), void 0 !== e.textBoxType && null !== e.textBoxType && (t.textBoxType = e.textBoxType), e.tipPoint && (this.scaleValues[1] = e.tipPoint.x, this.scaleValues[2] = e.tipPoint.y); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM) e.tipPoint1 && (this.scaleValues[0] = e.tipPoint1.x, this.scaleValues[1] = e.tipPoint1.y), e.tipPoint2 && (this.scaleValues[2] = e.tipPoint2.x, this.scaleValues[3] = e.tipPoint2.y); else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.PATHTEXT) t.isAvoid = e.isAvoid, t.isCurve = e.isCurve, t.relLineText = e.relLineText, t.showPathLine = e.showPathLine, t.textToLineDistance = e.textToLineDistance, t.showPathLineArrow = e.showPathLineArrow; else if (0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.ARCREGION) { if (o) { if (t.centerPoint = L.latLng(e.centerPoint.y, e.centerPoint.x), t.symbolData.circlePts) { for (var k = [], V = 0; V < e.circlePts.length; V++)k.push(new SuperMap.Geometry.Point(e.circlePts[V].x, e.circlePts[V].y)); 0 !== k.length && (t.circlePts = k) } t.spatialAnalystUrl = e.spatialAnalystUrl } else t.centerPoint = new SuperMap.Geometry.Point(e.centerPoint.x, e.centerPoint.y); t.endAngle = e.endAngle, t.radius = e.radius, t.radiusPosAngle = e.radiusPosAngle, t.startAngle = e.startAngle, t.textPosition = e.textPosition, t.radiusLineType = e.radiusLineType, t.radiusText = e.radiusText } else 0 === t.libID && t.symbolType === SuperMap.Plot.SymbolType.POLYGONREGION && (t.symbolData.hasOwnProperty("textPosition") ? t.scaleValues[1] = t.symbolData.textPosition : void 0 === t.scaleValues[1] && (t.scaleValues[1] = t.symbolData.annotationPosition)) } } } } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AddPoint_WayType = e.RouteNodePrimitives = e.Primitives = e.PlottingUtil = e.AnalysisSymbol = void 0; var n = o(60), i = o(59), l = o(58), r = o(57), a = o(56); e.AnalysisSymbol = n.AnalysisSymbol, e.PlottingUtil = i.PlottingUtil, e.Primitives = l.Primitives, e.RouteNodePrimitives = r.RouteNodePrimitives, e.AddPoint_WayType = a.AddPoint_WayType }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.CalculateSVGGradient = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.feature = e } return n(t, [{ key: "destroy", value: function () { this.feature = null } }, { key: "createGradient", value: function () { var t = !1; this.feature.layer._renderer._container.defs || (this.feature.layer._renderer._container.defs = L.SVG.create("defs"), t = !0); var e = null; "LINEAR" === this.feature.style.fillGradientMode && (e = document.getElementById("linearGradient_" + this.feature.uuid)), "RADIAL" === this.feature.style.fillGradientMode && (e = document.getElementById("radialGradient_" + this.feature.uuid)); var o = this.createGradientDirection(); for ("LINEAR" === this.feature.style.fillGradientMode ? ((e = null === e ? L.SVG.create("linearGradient") : e).setAttributeNS(null, "x1", o.x1), e.setAttributeNS(null, "y1", o.y1), e.setAttributeNS(null, "x2", o.x2), e.setAttributeNS(null, "y2", o.y2)) : "RADIAL" === this.feature.style.fillGradientMode && ((e = null === e ? L.SVG.create("radialGradient") : e).setAttributeNS(null, "cx", o.cx), e.setAttributeNS(null, "cy", o.cy), e.setAttributeNS(null, "fx", o.fx), e.setAttributeNS(null, "fy", o.fy), e.setAttributeNS(null, "r", o.r)); e.hasChildNodes();)e.removeChild(e.firstChild); for (var n = 0, i = o.colors.length; n < i; n++) { var l = L.SVG.create("stop"); l.setAttributeNS(null, "offset", o.colors[n].offset), l.setAttributeNS(null, "style", "stop-color:" + SuperMap.Plot.PlottingUtil.colorRGBA(o.colors[n].color, o.colors[n].opacity)), e.appendChild(l) } return 0 === e.id.length && e.setAttributeNS(null, "id", e.tagName + "_" + this.feature.uuid), this.feature.layer._renderer._container.defs.appendChild(e), t && this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs), e.id } }, { key: "createTextureFill", value: function (t) { var e = !1; this.feature.layer._renderer._container.defs || (this.feature.layer._renderer._container.defs = L.SVG.create("defs"), e = !0); var o = document.getElementById("patternFill_" + this.feature.uuid); function n(t) { var e = ""; return 2 === t.fillID ? e = "rotate(-45)" : 3 === t.fillID || 6 === t.fillID ? e = "rotate(0)" : 4 === t.fillID || 5 === t.fillID ? e = "rotate(45)" : 7 === t.fillID && (e = "rotate(90)"), e } function i(t, e, o) { var n = L.SVG.create("path"); n.setAttributeNS(null, "d", t), n.setAttributeNS(null, "stroke", o.color), n.setAttributeNS(null, "stroke-width", "2"), n.setAttributeNS(null, "stroke-linecap", "square"), n.setAttributeNS(null, "stroke-opacity", o.opacity), e.appendChild(n) } function l(t, e, o) { var n = L.SVG.create("polygon"); n.setAttributeNS(null, "points", t), n.setAttributeNS(null, "fill", o.color), n.setAttributeNS(null, "fill-opacity", o.opacity), e.appendChild(n) } return o ? (o.setAttributeNS(null, "patternTransform", n(t[0]).toString()), 3 === t[0].fillID || 6 === t[0].fillID || 7 === t[0].fillID ? (o.setAttributeNS(null, "width", 7.3), o.setAttributeNS(null, "height", 7.3), o.childNodes[0].setAttributeNS(null, "points", "0 0 0 7.3 7.3 7.3 7.3 0"), o.childNodes[1].setAttributeNS(null, "d", "M 7.3 0 L 0 0")) : (o.setAttributeNS(null, "width", 5.4), o.setAttributeNS(null, "height", 5.4), o.childNodes[0].setAttributeNS(null, "points", "0 0 0 5.4 5.4 5.4 5.4 0"), o.childNodes[1].setAttributeNS(null, "d", "M 5.4 0 L 0 0")), o.childNodes[0].setAttributeNS(null, "fill", t[1].color), o.childNodes[0].setAttributeNS(null, "fill-opacity", t[1].opacity), o.childNodes[1].setAttributeNS(null, "stroke", t[0].color), o.childNodes[1].setAttributeNS(null, "stroke-opacity", t[0].opacity), 3 === t[0].fillID || 4 === t[0].fillID ? (o.childNodes[2] && (o.childNodes[2].setAttributeNS(null, "stroke", t[0].color), o.childNodes[2].setAttributeNS(null, "stroke-opacity", t[0].opacity)), 3 === t[0].fillID ? null === o && i("M 0 7.3 L 0 0", o, t[0]) : 4 === t[0].fillID && null === o && i("M 0 5.4 L 0 0", o, t[0])) : o.childNodes[2] && o.removeChild(o.childNodes[2]), 0 === o.id.length && o.setAttributeNS(null, "id", "patternFill_" + this.feature.uuid), o.id) : ((o = null === o ? L.SVG.create("pattern") : o).setAttributeNS(null, "x", 0), o.setAttributeNS(null, "y", 0), 3 === t[0].fillID || 6 === t[0].fillID || 7 === t[0].fillID ? (o.setAttributeNS(null, "width", 7.3), o.setAttributeNS(null, "height", 7.3)) : (o.setAttributeNS(null, "width", 5.4), o.setAttributeNS(null, "height", 5.4)), o.setAttributeNS(null, "patternUnits", "userSpaceOnUse"), o.setAttributeNS(null, "patternTransform", n(t[0]).toString()), 3 === t[0].fillID || 6 === t[0].fillID || 7 === t[0].fillID ? (l("0 0 0 7.3 7.3 7.3 7.3 0", o, t[1]), i("M 7.3 0 L 0 0", o, t[0])) : (l("0 0 0 5.4 5.4 5.4 5.4 0", o, t[1]), i("M 5.4 0 L 0 0", o, t[0])), 4 === t[0].fillID ? i("M 0 5.4 L 0 0", o, t[0]) : 3 === t[0].fillID && i("M 0 7.3 L 0 0", o, t[0]), this.feature.layer._renderer._container.defs.appendChild(o), e && this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs), 0 === o.id.length && o.setAttributeNS(null, "id", "patternFill_" + this.feature.uuid), o.id) } }, { key: "createFillMode", value: function (t) { if (void 0 !== this.feature.style.fillSymbolID) if (t.fill = this.feature.style.fill, t.fillSymbolID = this.feature.style.fillSymbolID, 0 === this.feature.style.fillSymbolID || 1 === this.feature.style.fillSymbolID || !0 === this.feature.style.fill || !1 === this.feature.style.fill) 0 === this.feature.style.fillSymbolID ? t.fill = !0 : 1 === this.feature.style.fillSymbolID && (t.fill = !1), t.fillColor = this.feature.style.fillColor, t.fillOpacity = this.feature.style.fillOpacity; else if (this.feature._map.getRenderer(this.feature.layer) instanceof L.SVG) if (this.feature.style.fillColor !== this.feature.style.fillBackColor || this.feature.style.fillBackOpacity > 0 && this.feature.style.fillBackOpacity < 1) { var e = []; e.push({ fillID: this.feature.style.fillSymbolID, color: this.feature.style.fillColor, opacity: this.feature.style.fillOpacity }, { fillID: this.feature.style.fillSymbolID, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillBackOpacity }), t.fillOpacity = 1, t.fillColor = "url(#" + this.createTextureFill(e) + ")", t.fill = t.fillColor } else t.fill = !0, t.fillColor = this.feature.style.fillColor, t.fillOpacity = this.feature.style.fillOpacity; else t.fill = !0, t.fillColor = this.feature.style.fillColor, t.fillOpacity = this.feature.style.fillOpacity; else t.fill = this.feature.style.fill, t.fillColor = this.feature.style.fillColor, t.fillOpacity = this.feature.style.fillOpacity } }, { key: "createGradientDirection", value: function () { var t = []; if ("LINEAR" === this.feature.style.fillGradientMode) { if (null !== this.feature.style.fillCenterOffsetX && void 0 !== this.feature.style.fillCenterOffsetX && (0 === this.feature.style.fillAngle || 180 === this.feature.style.fillAngle ? (t.push({ offset: 0, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: this.feature.style.fillCenterOffsetX, color: this.feature.style.fillColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: 1, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillOpacity })) : 90 === this.feature.style.fillAngle || 270 === this.feature.style.fillAngle ? (t.push({ offset: 0, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: this.feature.style.fillCenterOffsetY, color: this.feature.style.fillColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: 1, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillOpacity })) : (t.push({ offset: 0, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: this.feature.style.fillCenterOffsetX / 2 * (Math.sqrt(2) / 2) * Math.abs(Math.sin(this.feature.style.fillAngle * Math.PI / 180)), color: this.feature.style.fillColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: 1, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillOpacity }))), this.feature.style.fillAngle >= 360 && (this.feature.style.fillAngle = 0), 0 === this.feature.style.fillAngle) return { x1: 0, y1: 0, x2: 1, y2: 0, colors: t }; if (90 === this.feature.style.fillAngle) return { x1: 0, y1: 1, x2: 0, y2: 0, colors: t }; if (180 === this.feature.style.fillAngle) return { x1: 1, y1: 0, x2: 0, y2: 0, colors: t }; if (270 === this.feature.style.fillAngle) return { x1: 0, y1: 0, x2: 0, y2: 1, colors: t }; if (0 < this.feature.style.fillAngle && this.feature.style.fillAngle <= 45) return { x1: 0, y1: 1, x2: 1, y2: (1 - Math.tan(this.feature.style.fillAngle * Math.PI / 180)) / 2, colors: t }; if (45 < this.feature.style.fillAngle && this.feature.style.fillAngle < 90) return { x1: 0, y1: 1, x2: (1 - Math.tan((this.feature.style.fillAngle - 45) * Math.PI / 180)) / 2, y2: 0, colors: t }; if (90 < this.feature.style.fillAngle && this.feature.style.fillAngle <= 135) return { x1: 1, y1: 1, x2: Math.tan((this.feature.style.fillAngle - 90) * Math.PI / 180) / 2, y2: 0, colors: t }; if (135 < this.feature.style.fillAngle && this.feature.style.fillAngle < 180) return { x1: 1, y1: 1, x2: 0, y2: Math.tan((this.feature.style.fillAngle - 135) * Math.PI / 180) / 2, colors: t }; if (180 < this.feature.style.fillAngle && this.feature.style.fillAngle <= 225) return { x1: 1, y1: 0, x2: 0, y2: Math.tan((this.feature.style.fillAngle - 180) * Math.PI / 180) / 2, colors: t }; if (225 < this.feature.style.fillAngle && this.feature.style.fillAngle < 270) return { x1: 1, y1: 0, x2: Math.tan((this.feature.style.fillAngle - 225) * Math.PI / 180) / 2, y2: 0, colors: t }; if (270 < this.feature.style.fillAngle && this.feature.style.fillAngle <= 315) return { x1: 0, y1: 0, x2: 1 - Math.tan((this.feature.style.fillAngle - 270) * Math.PI / 180) / 2, y2: 1, colors: t }; if (315 < this.feature.style.fillAngle && this.feature.style.fillAngle < 360) return { x1: 0, y1: 0, x2: 1, y2: Math.tan((this.feature.style.fillAngle - 315) * Math.PI / 180) / 2, colors: t } } else if ("RADIAL" === this.feature.style.fillGradientMode) if (null !== this.feature.style.fillCenterOffsetX && void 0 !== this.feature.style.fillCenterOffsetX && null !== this.feature.style.fillCenterOffsetY && void 0 !== this.feature.style.fillCenterOffsetY && (t.push({ offset: 0, color: this.feature.style.fillColor, opacity: this.feature.style.fillOpacity }), t.push({ offset: 1, color: this.feature.style.fillBackColor, opacity: this.feature.style.fillBackOpacity })), this.feature.style.fillCenterOffsetX <= .5 && this.feature.style.fillCenterOffsetX >= 0 || this.feature.style.fillCenterOffsetX <= 0 && this.feature.style.fillCenterOffsetX >= -1) { if (this.feature.style.fillCenterOffsetY >= 0 && this.feature.style.fillCenterOffsetY <= .5 || this.feature.style.fillCenterOffsetY >= -.5 && this.feature.style.fillCenterOffsetY <= 0) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: .5 * Math.sqrt(2), colors: t }; if (this.feature.style.fillCenterOffsetY >= .5 && this.feature.style.fillCenterOffsetY <= .8 || this.feature.style.fillCenterOffsetY >= -.8 && this.feature.style.fillCenterOffsetY <= -.5) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: .8 * Math.sqrt(2), colors: t }; if (this.feature.style.fillCenterOffsetY >= .8 && this.feature.style.fillCenterOffsetY <= 1 || this.feature.style.fillCenterOffsetY >= -1 && this.feature.style.fillCenterOffsetY <= -.8) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: Math.sqrt(2), colors: t } } else if (this.feature.style.fillCenterOffsetX <= .8 && this.feature.style.fillCenterOffsetX > .5 || this.feature.style.fillCenterOffsetX <= -.5 && this.feature.style.fillCenterOffsetX >= -.8) { if (this.feature.style.fillCenterOffsetY >= 0 && this.feature.style.fillCenterOffsetY <= .5 || this.feature.style.fillCenterOffsetY >= -.5 && this.feature.style.fillCenterOffsetY <= 0) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: .8 * Math.sqrt(2), colors: t }; if (this.feature.style.fillCenterOffsetY >= .5 && this.feature.style.fillCenterOffsetY <= .8 || this.feature.style.fillCenterOffsetY >= -.8 && this.feature.style.fillCenterOffsetY <= -.5) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: .8 * Math.sqrt(2), colors: t }; if (this.feature.style.fillCenterOffsetY >= .8 && this.feature.style.fillCenterOffsetY <= 1 || this.feature.style.fillCenterOffsetY >= -1 && this.feature.style.fillCenterOffsetY <= -.8) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: Math.sqrt(2), colors: t } } else if (this.feature.style.fillCenterOffsetX <= 1 && this.feature.style.fillCenterOffsetX > .8 || this.feature.style.fillCenterOffsetX <= -.8 && this.feature.style.fillCenterOffsetX >= -1) { if (this.feature.style.fillCenterOffsetY >= 0 && this.feature.style.fillCenterOffsetY <= .5 || this.feature.style.fillCenterOffsetY >= -.5 && this.feature.style.fillCenterOffsetY <= 0) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: Math.sqrt(2), colors: t }; if (this.feature.style.fillCenterOffsetY >= .5 && this.feature.style.fillCenterOffsetY <= .8 || this.feature.style.fillCenterOffsetY >= -.8 && this.feature.style.fillCenterOffsetY <= -.5) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: Math.sqrt(2), colors: t }; if (this.feature.style.fillCenterOffsetY >= .8 && this.feature.style.fillCenterOffsetY <= 1 || this.feature.style.fillCenterOffsetY >= -1 && this.feature.style.fillCenterOffsetY <= -.8) return { cx: .5, cy: .5, fx: .5 + this.feature.style.fillCenterOffsetX, fy: .5 - this.feature.style.fillCenterOffsetY, r: Math.sqrt(2), colors: t } } } }]), t }(); SuperMap.Plot.CalculateSVGGradient = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.CalculateCanvasGradient = function () { function t(e, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.feature = e, this._bounds = o } return n(t, [{ key: "destroy", value: function () { this.feature = null } }, { key: "getContext", value: function () { return this.feature._map.getRenderer(this.feature.layer)._ctx } }, { key: "calculateObjectByBounds", value: function () { var t = this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getNorth(), this._bounds.getWest())), e = this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getSouth(), this._bounds.getEast())), o = this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getCenter())); if (t.x !== e.x || t.y !== e.y) { var n = Math.max(t.x, e.x), i = Math.max(t.y, e.y), l = Math.min(t.x, e.x), r = Math.min(t.y, e.y); return { ptMinX: l, ptMinY: r, width: Math.abs(n - l), height: Math.abs(i - r), center: o, r: Math.abs(t.x - e.x) > Math.abs(e.y - e.y) ? Math.abs(t.x - e.x) : Math.abs(t.y - e.y) } } } }, { key: "createGradient", value: function () { var t = function (t, e) { var o = t.substring(1, 3), n = parseInt(o, 16), i = t.substring(3, 5), l = parseInt(i, 16), r = t.substring(5); return "rgba(" + n + "," + l + "," + parseInt(r, 16) + "," + e + ")" }, e = null; if (this.getContext() instanceof CanvasRenderingContext2D) { var o = this.calculateObjectByBounds(); if ("LINEAR" === this.feature.style.fillGradientMode) { var n = this.getGradientDirection(this.feature.style.fillAngle); if (e = this.getContext().createLinearGradient(o.ptMinX + o.width * n.x1, o.ptMinY + o.height * n.y1, o.ptMinX + o.width * n.x2, o.ptMinY + o.height * n.y2), 0 === this.feature.style.fillCenterOffsetX && 0 === this.feature.style.fillCenterOffsetY) e.addColorStop(0, t(this.feature.style.fillColor, this.feature.style.fillOpacity)), e.addColorStop(1, t(this.feature.style.fillBackColor, this.feature.style.fillOpacity)); else { var i = this.feature.style.fillAngle; 0 === i || 180 === i || 90 === i || 270 === i ? (e.addColorStop(0, t(this.feature.style.fillBackColor, this.feature.style.fillOpacity)), 0 !== i && 180 !== i || e.addColorStop(this.feature.style.fillCenterOffsetX, t(this.feature.style.fillColor, this.feature.style.fillOpacity)), 90 !== i && 270 !== i || e.addColorStop(this.feature.style.fillCenterOffsetY, t(this.feature.style.fillColor, this.feature.style.fillOpacity)), e.addColorStop(1, t(this.feature.style.fillBackColor, this.feature.style.fillOpacity))) : (e.addColorStop(0, t(this.feature.style.fillBackColor, this.feature.style.fillOpacity)), e.addColorStop(this.feature.style.fillCenterOffsetX >= this.feature.style.fillCenterOffsetY ? this.feature.style.fillCenterOffsetX : this.feature.style.fillCenterOffsetY * Math.cos(this.feature.style.fillAngle * Math.PI / 180), t(this.feature.style.fillColor, this.feature.style.fillOpacity)), e.addColorStop(1, t(this.feature.style.fillBackColor, this.feature.style.fillOpacity))) } } else if ("RADIAL" === this.feature.style.fillGradientMode) { var l = this.feature.style.fillCenterOffsetX * o.r, r = this.feature.style.fillCenterOffsetY * o.r, a = o.r / Math.sqrt(2) + Math.abs(l) > o.r / Math.sqrt(2) + Math.abs(r) ? o.r / Math.sqrt(2) + Math.abs(l) : o.r / Math.sqrt(2) + Math.abs(r); (e = this.getContext().createRadialGradient(o.center.x + l, o.center.y - r, 0, o.center.x + l, o.center.y - r, a)).addColorStop(0, t(this.feature.style.fillColor, this.feature.style.fillOpacity)), e.addColorStop(1, t(this.feature.style.fillBackColor, this.feature.style.fillBackOpacity)) } return e } } }, { key: "getGradientDirection", value: function (t) { var e = function (t) { return { x: Math.cos(t), y: Math.sin(t) } }, o = function (t) { return t * Math.PI / 180 }, n = e(o(180 - t % 360)), i = e(o(360 - t % 360)), l = Math.pow(2, -52); return (n.x <= 0 || Math.abs(n.x) <= l) && (n.x = 0), (n.y <= 0 || Math.abs(n.y) <= l) && (n.y = 0), (i.x <= 0 || Math.abs(i.x) <= l) && (i.x = 0), (i.y <= 0 || Math.abs(i.y) <= l) && (i.y = 0), { x1: n.x, y1: n.y, x2: i.x, y2: i.y } } }]), t }(); SuperMap.Plot.CalculateCanvasGradient = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.CalculateSVGGradient = e.CalculateCanvasGradient = void 0; var n = o(63), i = o(62); e.CalculateCanvasGradient = n.CalculateCanvasGradient, e.CalculateSVGGradient = i.CalculateSVGGradient }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = e.TransactionInfo = function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.layer = e.layer ? e.layer : null, this.feature = e.feature ? e.feature : null, this.uuid = e.uuid ? e.uuid : null, this.functionName = e.functionName ? e.functionName : null, this.undoParams = e.undoParams ? e.undoParams : null, this.redoParams = e.redoParams ? e.redoParams : null, this.propertyName = e.propertyName ? e.propertyName : null, this.undoValue = e.undoValue ? e.undoValue : null, this.redoValue = e.redoValue ? e.redoValue : null, this.CLASS_NAME = "SuperMap.Plot.TransactionInfo" }; SuperMap.Plot.TransactionInfo = n }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Transaction = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.transType = e.transType ? e.transType : SuperMap.Plot.TransactionType.EDIT, this.transInfos = [], this.CLASS_NAME = "SuperMap.Plot.Transaction" } return n(t, [{ key: "destroy", value: function () { this.transInfos = null, this.transType = null } }]), t }(); SuperMap.Plot.Transaction = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.TowardNode = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.routeNodeId = e.routeNodeId ? e.routeNodeId : null, this.relLineText = e.relLineText ? e.relLineText : SuperMap.Plot.RelLineText.ONLEFTLINE, this.index = e.index ? e.index : 0, this.textContent = e.textContent ? e.textContent : null, this.offsetX = e.offsetX ? e.offsetX : null, this.offsetY = e.offsetY ? e.offsetY : null, this.style = e.style ? e.style : { fontSize: 12, fontFamily: "Microsoft YaHei" }, this.CLASS_NAME = "SuperMap.Plot.TowardNode" } return n(t, [{ key: "destroy", value: function () { this.routeNodeId = null, this.relLineText = null, this.textContent = null, this.style = null } }, { key: "clone", value: function () { return new t({ routeNodeId: this.routeNodeId, relLineText: this.relLineText, textContent: this.textContent, style: SuperMap.Util.cloneObject(this.style) }) } }]), t }(); SuperMap.Plot.TowardNode = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.TimeWindowParameter = function () { function t(e, o, n) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.startOrbitPoint = e, this.endOrbitPoint = o, this.type = n, this.CLASS_NAME = "SuperMap.Plot.TimeWindowParameter" } return n(t, [{ key: "destroy", value: function () { this.startOrbitPoint = null, this.endOrbitPoint = null, this.type = null } }]), t }(); SuperMap.Plot.TimeWindowParameter = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.SymbolText = function () { function t(e, o, n, i) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), i = i || {}, this.textContent = e, this.textPosition = o, void 0 !== this.textPosition && null !== this.textPosition || (this.textPosition = 0), this.offsetX = i.offsetX ? i.offsetX : 0, this.offsetY = i.offsetY ? i.offsetY : 0, this.style = n, this.CLASS_NAME = "SuperMap.Plot.SymbolText" } return n(t, [{ key: "destroy", value: function () { this.textContent = null, this.textPosition = null, this.offsetX = null, this.offsetY = null } }]), t }(); SuperMap.Plot.SymbolText = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.SubSymbol = function () { function t(e, o, n) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), n = n || {}, this.libID = e, this.code = o, this.symbolData = n.symbolData ? n.symbolData : null, this.textContent = n.textContent ? n.textContent : null, this.totalNum = n.totalNum ? n.totalNum : null, this.CLASS_NAME = "SuperMap.Plot.SubSymbol" } return n(t, [{ key: "destroy", value: function () { this.libID = null, this.code = null, this.symbolData = null, this.totalNum = null } }, { key: "clone", value: function () { var t = new SuperMap.Plot.SubSymbol(this.libID, this.code); return t.symbolData = {}, t.symbolData = SuperMap.Util.copyAttributes(t.symbolData, this.symbolData), t.textContent = this.textContent, t.totalNum = this.totalNum, t } }]), t }(); SuperMap.Plot.SubSymbol = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.SMLInfoStruct = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e && (this.SMLName = e.SMLName, this.SMLDesc = e.SMLDesc, this.SMLSeclevel = e.SMLSeclevel, this.SMLDepat = e.SMLDepat, this.SMLAuthor = e.SMLAuthor, this.SMLTime = e.SMLTime), this.CLASS_NAME = "SuperMap.Plot.SMLInfoStruct" } return n(t, [{ key: "destroy", value: function () { this.SMLName = "", this.SMLDesc = "", this.SMLAuthor = "", this.SMLSeclevel = "", this.SMLDepat = "", this.SMLTime = "" } }, { key: "fromJSON", value: function (t) { this.SMLName = t.SMLName, this.SMLDesc = t.SMLDesc, this.SMLSeclevel = t.SMLSeclevel, this.SMLDepat = t.SMLDepat, this.SMLAuthor = t.SMLAuthor, this.SMLTime = t.SMLTime } }, { key: "toJSON", value: function () { return '{"SMLName":' + SuperMap.Plot.PlottingUtil.toJSON(this.SMLName) + ',"SMLDesc":' + SuperMap.Plot.PlottingUtil.toJSON(this.SMLDesc) + ',"SMLSeclevel":' + SuperMap.Plot.PlottingUtil.toJSON(this.SMLSeclevel) + ',"SMLDepat":' + SuperMap.Plot.PlottingUtil.toJSON(this.SMLDepat) + ',"SMLAuthor":' + SuperMap.Plot.PlottingUtil.toJSON(this.SMLAuthor) + ',"SMLTime":' + SuperMap.Plot.PlottingUtil.toJSON(this.SMLTime) + "}" } }]), t }(); SuperMap.Plot.SMLInfoStruct = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.SitDataStruct = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.smlInfo = e.smlInfo ? e.smlInfo : null, this.mapInfo = e.mapInfo ? e.mapInfo : null, this.layerDatas = e.layerDatas ? e.layerDatas : null, this.CLASS_NAME = "SuperMap.Plot.SitDataStruct" } return n(t, [{ key: "destroy", value: function () { this.smlInfo = null, this.mapInfo = null, this.layerDatas = null } }]), t }(); SuperMap.Plot.SitDataStruct = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.RouteNode = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.id = e.id ? e.id : SuperMap.Plot.PlottingUtil.generateUuid(), this.x = e.x ? e.x : null, this.y = e.y ? e.y : null, this.z = e.z ? e.z : null, this.type = e.type ? e.type : null, this.name = e.name ? e.name : null, this.rotate = e.rotate ? e.rotate : 0, this.towardNodes = e.towardNodes ? e.towardNodes : [], this.style = e.style ? e.style : {}, this.CLASS_NAME = "SuperMap.Plot.RouteNode" } return n(t, [{ key: "destroy", value: function () { this.type = null, this.position = null, this.name = null, this.id = null, this.rotate = null, this.towardNodes && null !== this.towardNodes || (this.towardNodes = null); for (var t = 0; t < this.towardNodes.length; t++)this.towardNodes[t].destroy(); this.towardNodes = null } }, { key: "clone", value: function () { var e = new t({ id: this.id, type: this.type, name: this.name, rotate: this.rotate, towardNodes: this.towardNodes }); return e.positionPoint = this.positionPoint.clone(), e.style = {}, e.style = SuperMap.Util.copyAttributes(e.style, this.style), e } }]), t }(); SuperMap.Plot.RouteNode = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.Property = function () { function t(e, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e && (this.key = e), o && (this.value = o), this.CLASS_NAME = "SuperMap.Plot.Property" } return n(t, [{ key: "setKey", value: function (t) { this.key = t } }, { key: "getKey", value: function () { return this.key } }, { key: "setValue", value: function (t) { this.value = t } }, { key: "getValue", value: function () { return this.value } }, { key: "destroy", value: function () { this.key = null, this.value = null } }, { key: "clone", value: function () { return new SuperMap.Plot.Property(this.key, this.value) } }]), t }(); SuperMap.Plot.Property = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.OrbitPoint = function () { function t(e, o, n, i, l) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.x = parseFloat(e), this.y = parseFloat(o), (n || 0 == n) && (this.z = parseFloat(n)), i && (this.number = i), l && (this.time = l), this.CLASS_NAME = "SuperMap.Plot.OrbitPoint" } return n(t, [{ key: "destroy", value: function () { this.x = null, this.y = null, this.z = null, this.index = null, this.time = null } }, { key: "clone", value: function (t) { return null == t && (t = new SuperMap.Plot.OrbitPoint(this.x, this.y, this.z)), SuperMap.Util.applyDefaults(t, this), t } }]), t }(); SuperMap.Plot.OrbitPoint = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.MapInfoStruct = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.zoom = e.zoom ? e.zoom : null, this.centerX = e.centerX ? e.centerX : null, this.centerY = e.centerY ? e.centerY : null, this.CLASS_NAME = "SuperMap.Plot.MapInfoStruct" } return n(t, [{ key: "destroy", value: function () { this.zoom = null, this.centerX = null, this.centerY = null } }, { key: "fromJSON", value: function (t) { void 0 !== t.zoom && (this.zoom = t.zoom), void 0 !== t.centerX && (this.centerX = t.centerX), void 0 !== t.centerY && (this.centerY = t.centerY) } }, { key: "toJSON", value: function () { return '{"zoom":' + SuperMap.Plot.PlottingUtil.toJSON(this.zoom) + ',"centerX":' + SuperMap.Plot.PlottingUtil.toJSON(this.centerX) + ',"centerY":' + SuperMap.Plot.PlottingUtil.toJSON(this.centerY) + "}" } }]), t }(); SuperMap.Plot.MapInfoStruct = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.LayerDataStruct = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.layerName = e.layerName ? e.layerName : null, this.spatialAnalystUrl = e.spatialAnalystUrl ? e.spatialAnalystUrl : null, this.useCanvas2 = !!e.useCanvas2 && e.useCanvas2, this.useCanvas = !!e.useCanvas && e.useCanvas, this.features = e.features ? e.features : null, this.CLASS_NAME = "SuperMap.Plot.LayerDataStruct" } return n(t, [{ key: "destroy", value: function () { this.layerName = null, this.spatialAnalystUrl = null, this.useCanvas2 = null, this.useCanvas = null, this.features = null } }, { key: "toJSON", value: function () { for (var t = [], e = 0; e < this.features.length; e++)t.push(this.features[e].getSymbolData()); return '{"layerName":' + SuperMap.Plot.PlottingUtil.toJSON(this.layerName) + ', "spatialAnalystUrl":' + SuperMap.Plot.PlottingUtil.toJSON(this.spatialAnalystUrl) + ', "useCanvas2":' + SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas2) + ', "useCanvas":' + SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas) + ', "isEditable":' + SuperMap.Plot.PlottingUtil.toJSON(this.isEditable) + ', "isLocked":' + SuperMap.Plot.PlottingUtil.toJSON(this.isLocked) + ', "visibility":' + SuperMap.Plot.PlottingUtil.toJSON(this.visibility) + ',"features":' + SuperMap.Plot.PlottingUtil.toJSON(t) + "}" } }]), t }(); SuperMap.Plot.LayerDataStruct = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.ExtendProperty = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.properties = e.properties ? e.properties : [], this.CLASS_NAME = "SuperMap.Plot.ExtendProperty" } return n(t, [{ key: "addProperty", value: function (t, e) { var o = this.findProperty(t); return null == o ? this.properties.push(new SuperMap.Plot.Property(t, e)) : o.setValue(e), !0 } }, { key: "deleteProperty", value: function (t) { for (var e = 0; e < this.properties.length; e++)if (this.properties[e].key === t) return this.properties.slice(e, 1), !0; return !1 } }, { key: "findProperty", value: function (t) { for (var e = 0; e < this.properties.length; e++)if (this.properties[e].key === t) return this.properties[e]; return null } }, { key: "getPropertyValue", value: function (t) { for (var e = 0; e < this.properties.length; e++)if (this.properties[e].key === t) return this.properties[e].value; return null } }, { key: "getPropertyByIndex", value: function (t) { return t < this.properties.length ? this.properties[t] : null } }, { key: "getPropertyCount", value: function () { return this.properties.length } }, { key: "destroy", value: function () { this.properties = null } }]), t }(); SuperMap.Plot.ExtendProperty = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.DefaultStyle = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.lineColor = e.lineColor ? e.lineColor : "#ff0000", this.lineWidth = e.lineWidth ? e.lineWidth : 2, this.lineType = e.lineType ? e.lineType : 0, this.lineOpacity = e.lineOpacity ? e.lineOpacity : 1, this.lineCap = e.lineCap ? e.lineCap : "round", this.flagTextSize = e.flagTextSize ? e.flagTextSize : 60, this.maxScale = e.maxScale ? e.maxScale : 5, this.minScale = e.minScale ? e.minScale : 1, this.dotSymbolSize = e.dotSymbolSize ? e.dotSymbolSize : 40, this.dotTextSpace = e.dotTextSpace ? e.dotTextSpace : 7, this.scaleByMap = !!e.scaleByMap && e.scaleByMap, this.fillColor = e.fillColor ? e.fillColor : "#ff0000", this.fillOpacity = e.fillOpacity ? e.fillOpacity : .31, this.fontColor = e.fontColor ? e.fontColor : "#000000", this.fontOpacity = e.fontOpacity ? e.fontOpacity : 1, this.fontStroke = !!e.fontStroke && e.fontStroke, this.fontStrokeColor = e.fontStrokeColor ? e.fontStrokeColor : "#ff0000", this.fontStrokeWidth = e.fontStrokeWidth ? e.fontStrokeWidth : "2px", this.fontBackground = !!e.fontBackground && e.fontBackground, this.fontBackgroundColor = e.fontBackgroundColor ? e.fontBackgroundColor : "#ff0000", this.fontShadow = !!e.fontShadow && e.fontShadow, this.fontShadowColor = e.fontShadowColor ? e.fontShadowColor : "#ff0000", this.fontShadowOffsetX = e.fontShadowOffsetX ? e.fontShadowOffsetX : 0, this.fontShadowOffsetY = e.fontShadowOffsetY ? e.fontShadowOffsetY : 0, this.fontSize = e.fontSize ? e.fontSize : 14, this.fontSpace = e.fontSpace ? e.fontSpace : 0, this.fontPercent = e.fontPercent ? e.fontPercent : 100, this.fontFamily = e.fontFamily ? e.fontFamily : "微软雅黑", this.fontWeight = e.fontWeight ? e.fontWeight : "bold", this.fontStyle = e.fontStyle ? e.fontStyle : "", this.surroundLineType = e.surroundLineType ? e.surroundLineType : 0, this.surroundLineColor = e.surroundLineColor ? e.surroundLineColor : "#ffff00", this.surroundLineWidth = e.surroundLineWidth ? e.surroundLineWidth : 4, this.surroundLineColorOpacity = e.surroundLineColorOpacity ? e.surroundLineColorOpacity : 1, this.fontStyle = e.fontStyle ? e.fontStyle : "", this.fillBackColor = e.fillBackColor ? e.fillBackColor : "#ff0000", this.fillBackOpacity = e.fillBackOpacity ? e.fillBackOpacity : 1, this.fillGradientMode = e.fillGradientMode ? e.fillGradientMode : "NONE", this.fillCenterOffsetX = e.fillCenterOffsetX ? e.fillCenterOffsetX : 0, this.fillCenterOffsetY = e.fillCenterOffsetY ? e.fillCenterOffsetY : 0, this.fillAngle = e.fillAngle ? e.fillAngle : 0, this.fillSymbolID = e.fillSymbolID ? e.fillSymbolID : 1, this.defaultFlag = !!e.defaultFlag && e.defaultFlag, this.CLASS_NAME = "SuperMap.Plot.DefaultStyle", this.parserConfiguration() } return n(t, [{ key: "parserConfiguration", value: function () { "undefined" != typeof DefaultStyleConfiguration && ("undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.flagTextSize && (this.flagTextSize = parseFloat(DefaultStyleConfiguration.flagTextSize)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.maxScale && (this.maxScale = parseFloat(DefaultStyleConfiguration.maxScale)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.minScale && (this.minScale = parseFloat(DefaultStyleConfiguration.minScale)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.dotSymbolSize && (this.dotSymbolSize = parseFloat(DefaultStyleConfiguration.dotSymbolSize)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.dotTextSpace && (this.dotTextSpace = parseFloat(DefaultStyleConfiguration.dotTextSpace)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.scaleByMap && (this.scaleByMap = DefaultStyleConfiguration.scaleByMap), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.strokeWidth && (this.lineWidth = parseFloat(DefaultStyleConfiguration.strokeWidth)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.strokeColor && (this.lineColor = DefaultStyleConfiguration.strokeColor), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.strokeOpacity && (this.lineOpacity = parseFloat(DefaultStyleConfiguration.strokeOpacity)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.strokeDashstyle && (this.lineType = DefaultStyleConfiguration.strokeDashstyle), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.strokeLinecap && (this.lineCap = DefaultStyleConfiguration.strokeLinecap), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillColor && (this.fillColor = DefaultStyleConfiguration.fillColor), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillOpacity && (this.fillOpacity = parseFloat(DefaultStyleConfiguration.fillOpacity)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontColor && (this.fontColor = DefaultStyleConfiguration.fontColor), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontOpacity && (this.fontOpacity = parseFloat(DefaultStyleConfiguration.fontOpacity)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontStroke && (this.fontStroke = DefaultStyleConfiguration.fontStroke), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontStrokeColor && (this.fontStrokeColor = DefaultStyleConfiguration.fontStrokeColor), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontStrokeWidth && (this.fontStrokeWidth = parseFloat(DefaultStyleConfiguration.fontStrokeWidth)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontBackground && (this.fontBackground = DefaultStyleConfiguration.fontBackground), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontBackgroundColor && (this.fontBackgroundColor = DefaultStyleConfiguration.fontBackgroundColor), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontShadow && (this.fontShadow = DefaultStyleConfiguration.fontShadow), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontShadowColor && (this.fontShadowColor = DefaultStyleConfiguration.fontShadowColor), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontShadowOffsetX && (this.fontShadowOffsetX = DefaultStyleConfiguration.fontShadowOffsetX), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontShadowOffsetY && (this.fontShadowOffsetY = DefaultStyleConfiguration.fontShadowOffsetY), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontSpace && (this.fontSpace = parseInt(DefaultStyleConfiguration.fontSpace)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontPercent && (this.fontPercent = parseFloat(DefaultStyleConfiguration.fontPercent)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontSize && (this.fontSize = parseFloat(DefaultStyleConfiguration.fontSize)), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontFamily && (this.fontFamily = DefaultStyleConfiguration.fontFamily), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontWeight && (this.fontWeight = DefaultStyleConfiguration.fontWeight), "undefined" == typeof DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fontStyle && (this.fontStyle = DefaultStyleConfiguration.fontStyle), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.surroundLineType && (this.surroundLineType = parseFloat(DefaultStyleConfiguration.surroundLineType)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.surroundLineColor && (this.surroundLineColor = DefaultStyleConfiguration.surroundLineColor), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.surroundLineWidth && (this.surroundLineWidth = parseFloat(DefaultStyleConfiguration.surroundLineWidth)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.surroundLineColorOpacity && (this.surroundLineColorOpacity = parseFloat(DefaultStyleConfiguration.surroundLineColorOpacity)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillBackColor && (this.fillBackColor = DefaultStyleConfiguration.fillBackColor), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillBackOpacity && (this.fillBackOpacity = parseFloat(DefaultStyleConfiguration.fillBackOpacity)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillGradientMode && (this.fillGradientMode = DefaultStyleConfiguration.fillGradientMode), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillAngle && (this.fillAngle = parseFloat(DefaultStyleConfiguration.fillAngle)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillCenterOffsetX && (this.fillCenterOffsetX = parseFloat(DefaultStyleConfiguration.fillCenterOffsetX)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillCenterOffsetY && (this.fillCenterOffsetY = parseFloat(DefaultStyleConfiguration.fillCenterOffsetY)), DefaultStyleConfiguration && void 0 !== DefaultStyleConfiguration.fillSymbolID && (this.fillSymbolID = parseFloat(DefaultStyleConfiguration.fillSymbolID))) } }, { key: "destroy", value: function () { this.lineColor = null, this.lineWidth = null, this.dotSymbolSize = null, this.lineType = null, this.defaultFlag = null, this.flagTextSize = null, this.maxScale = null, this.minScale = null, this.dotTextSpace = null, this.scaleByMap = null, this.lineOpacity = null, this.lineCap = null, this.fillColor = null, this.fillOpacity = null, this.fontColor = null, this.fontOpacity = null, this.fontSize = null, this.fontFamily = null, this.fontWeight = null, this.fontStyle = null, this.fontPercent = null, this.fontSpace = null, this.surroundLineType = null, this.surroundLineColor = null, this.surroundLineWidth = null, this.surroundLineColorOpacity = null, this.fillBackColor = null, this.fillBackOpacity = null, this.fillGradientMode = null, this.fillAngle = null, this.fillCenterOffsetX = null, this.fillCenterOffsetY = null, this.fillSymbolID = null } }]), t }(); SuperMap.Plot.DefaultStyle = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.TransactionInfo = e.Transaction = e.TowardNode = e.TimeWindowParameter = e.SymbolText = e.SubSymbol = e.SMLInfoStruct = e.SitDataStruct = e.RouteNode = e.Property = e.OrbitPoint = e.MapInfoStruct = e.LayerDataStruct = e.ExtendProperty = e.DefaultStyle = void 0; var n = o(79), i = o(78), l = o(77), r = o(76), a = o(75), s = o(74), u = o(73), p = o(72), c = o(71), y = o(70), P = o(69), h = o(68), f = o(67), S = o(66), d = o(65); e.DefaultStyle = n.DefaultStyle, e.ExtendProperty = i.ExtendProperty, e.LayerDataStruct = l.LayerDataStruct, e.MapInfoStruct = r.MapInfoStruct, e.OrbitPoint = a.OrbitPoint, e.Property = s.Property, e.RouteNode = u.RouteNode, e.SitDataStruct = p.SitDataStruct, e.SMLInfoStruct = c.SMLInfoStruct, e.SubSymbol = y.SubSymbol, e.SymbolText = P.SymbolText, e.TimeWindowParameter = h.TimeWindowParameter, e.TowardNode = f.TowardNode, e.Transaction = S.Transaction, e.TransactionInfo = d.TransactionInfo }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetSymbolInfoService = function (t) { function e(t, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e), o = o || {}; var n, i = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t, o)), l = i; return n = l.url.substr(l.url.length - 1, 1), l.url += "/" == n ? "graphicObject.json?" : "/graphicObject.json?", i.CLASS_NAME = "SuperMap.GetSymbolInfoService", i } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.PlotCommonServiceBase), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "processAsync", value: function (t) { if (t) { var e, o = Math.floor(1e3 * Math.random()), n = this; e = SuperMap.GetSymbolInfoParameters.toUrlParameters(t), n.url += e, n.url += "&dynamicPermission=" + o, "MSIE" === SuperMap.Browser.name.toUpperCase() && (n.url = encodeURI(n.url)), n.request({ method: "GET", params: null, scope: n, success: n.serviceProcessCompleted, failure: n.serviceProcessFailed, dynamicPermission: o }) } } }]), e }(); SuperMap.GetSymbolInfoService = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetSymbolInfoParameters = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.libID = e.libID ? e.libID : null, this.code = e.code ? e.code : null, this.inputPoints = e.inputPoints ? e.inputPoints : null, this.symbolRank = e.symbolRank ? e.symbolRank : null, this.negativeImage = e.negativeImage ? e.negativeImage : null, this.surroundLineType = e.surroundLineType ? e.surroundLineType : null, this.subSymbols = e.subSymbols ? e.subSymbols : null, this.scaleValues = e.scaleValues ? e.scaleValues : null, this.scalePoints = e.scalePoints ? e.scalePoints : null, this.newScalePoint = e.newScalePoint ? e.newScalePoint : null, this.newScalePointIndex = e.newScalePointIndex ? e.newScalePointIndex : null, this.CLASS_NAME = "SuperMap.GetSymbolInfoParameters" } return n(t, [{ key: "destroy", value: function () { var t = this; t.libID = null, t.code = null, t.inputPoints = null, t.symbolRank = null, t.negativeImage = null, t.surroundLineType = null, t.subSymbols = null, t.scaleValues = null, t.scalePoints = null, t.newScalePoint = null, t.newScalePointIndex = null } }], [{ key: "toUrlParameters", value: function (t) { if (t && null !== t.libID && null !== t.code) { var e = "libID=" + t.libID + "&code=" + t.code; if (t.inputPoints && null !== t.inputPoints && 0 !== t.inputPoints.length) { e += "&inputPoints=["; for (var o = 0; o < t.inputPoints.length; o++)o === t.inputPoints.length - 1 ? e += '{"x":' + t.inputPoints[o].x + ', "y":' + t.inputPoints[o].y + "}]" : e += '{"x":' + t.inputPoints[o].x + ', "y":' + t.inputPoints[o].y + "}," } if (t.scalePoints && null !== t.scalePoints && 0 !== t.scalePoints.length) { e += "&scalePoints=["; for (var n = 0; n < t.scalePoints.length; n++)n === t.scalePoints.length - 1 ? e += '{"x":' + t.scalePoints[n].x + ', "y":' + t.scalePoints[n].y + "}]" : e += '{"x":' + t.scalePoints[n].x + ', "y":' + t.scalePoints[n].y + "}," } if (t.scaleValues && null !== t.scaleValues && 0 !== t.scaleValues.length) { e += "&scaleValues=["; for (var i = 0; i < t.scaleValues.length; i++)i === t.scaleValues.length - 1 ? e += t.scaleValues[i] + "]" : e += t.scaleValues[i] + "," } if (t.subSymbols && null !== t.subSymbols && 0 !== t.subSymbols.length) { e += "&subSymbols=["; for (var l = 0; l < t.subSymbols.length; l++)l === t.subSymbols.length - 1 ? e += t.subSymbols[l].code + "]" : e += t.subSymbols[l].code + "," } return t.newScalePoint && null !== t.newScalePoint && (e += '&newScalePoint={"x":' + t.newScalePoint.x + ', "y":' + t.newScalePoint.y + "}"), t.newScalePointIndex && null !== t.newScalePointIndex && (e += "&newScalePointIndex=" + t.newScalePointIndex), t.symbolRank && null !== t.symbolRank && (e += "&symbolRank=" + t.symbolRank), t.negativeImage && null !== t.negativeImage && (e += "&negativeImage=" + t.negativeImage), t.surroundLineType && null !== t.surroundLineType && (e += "&surroundLineType=" + t.surroundLineType), e } } }]), t }(); SuperMap.GetSymbolInfoParameters = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetSMLInfosService = function (t) { function e(t, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var n = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t, o)); (o = o || {}) && SuperMap.Util.extend(n, o); var i, l = n; return l.events = new SuperMap.Events(l, null, l.EVENT_TYPES, !0), l.eventListeners instanceof Object && l.events.on(l.eventListeners), i = l.url.substr(l.url.length - 1, 1), l.url += "/" == i ? "smlInfos" : "/smlInfos", l.url += ".json", n.CLASS_NAME = "SuperMap.GetSMLInfosService", n } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.PlotCommonServiceBase), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "processAsync", value: function (t) { if (t) { var e = this; e.url += SuperMap.GetSMLInfosParameters.toUrlParameters(t), e.request({ method: "GET", data: null, scope: e, success: e.serviceProcessCompleted, failure: e.serviceProcessFailed }) } } }]), e }(); SuperMap.GetSMLInfosService = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetSMLInfosParameters = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.start = e.start ? e.start : null, this.count = e.count ? e.count : null, this.CLASS_NAME = "SuperMap.GetSMLInfosParameters" } return n(t, [{ key: "destroy", value: function () { this.start = null, this.count = null } }], [{ key: "toUrlParameters", value: function (t) { if (t) { var e = ""; return null !== t.start && (e = "?start=" + t.start), !t.count || null === t.count && 0 === t.count || (e += "&count=" + t.count), e } } }]), t }(); SuperMap.GetSMLInfosParameters = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetLibInfoService = function (t) { function e(t, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var n = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t, o)); (o = o || {}) && SuperMap.Util.extend(n, o); var i, l = n; return i = l.url.substr(l.url.length - 1, 1), l.url += "/" == i ? "symbolLibs/" : "/symbolLibs/", n.CLASS_NAME = "SuperMap.GetLibInfoService", n } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.PlotCommonServiceBase), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "processAsync", value: function (t) { var e = this; t && null !== t.libID && (e.libID = t.libID), e.url += e.libID, e.url += ".json", e.request({ method: "GET", data: null, scope: e, success: e.serviceProcessCompleted, failure: e.serviceProcessFailed }) } }]), e }(); SuperMap.GetLibInfoService = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetLibInfoParameter = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.libID = e.libID ? e.libID : null, this.CLASS_NAME = "SuperMap.GetLibInfoParameter" } return n(t, [{ key: "destroy", value: function () { this.libID = null } }]), t }(); SuperMap.GetLibInfoParameter = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.GetLibIDsService = function (t) { function e(t, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var n = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t, o)); (o = o || {}) && SuperMap.Util.extend(n, o); var i, l = n; return i = l.url.substr(l.url.length - 1, 1), l.url += "/" == i ? "symbolLibs.json?" : "/symbolLibs.json?", n.CLASS_NAME = "SuperMap.GetLibIDsService", n } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.PlotCommonServiceBase), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "processAsync", value: function () { this.request({ method: "GET", data: null, scope: this, success: this.serviceProcessCompleted, failure: this.serviceProcessFailed }) } }]), e }(); SuperMap.GetLibIDsService = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.EditSmlFileService = function (t) { function e(t, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var n = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t, o)); (o = o || {}) && SuperMap.Util.extend(n, o); var i = n; return i.events = new SuperMap.Events(i, null, i.EVENT_TYPES, !0), i.eventListeners instanceof Object && i.events.on(i.eventListeners), n.CLASS_NAME = "SuperMap.EditSmlFileService", n } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.PlotCommonServiceBase), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "processAsync", value: function (t) { if (t) { var e = this, o = t.method, n = e.url.substr(e.url.length - 1, 1); e.url += "/" == n ? "smlInfos/" : "/smlInfos/", e.url += t.smlFileName + ".json", e.url += "?isCover=" + t.isCover; var i = null; t.method && "POST" === t.method && (i = SuperMap.EditSmlFileParameters.toJsonParameters(t)), e.request({ method: o, data: i, scope: e, success: e.serviceProcessCompleted, failure: e.serviceProcessFailed }) } } }]), e }(); SuperMap.EditSmlFileService = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.EditSmlFileParameters = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), e = e || {}, this.method = e.method ? e.method : "POST", this.sitData = e.sitData ? e.sitData : null, this.smlFileName = e.smlFileName ? e.smlFileName : "", this.isCover = !!e.isCover && e.isCover, this.CLASS_NAME = "SuperMap.EditSmlFileParameters" } return n(t, [{ key: "destroy", value: function () { this.method = "POST", this.sitData = null, this.isCover = !1, this.smlFileName = "" } }], [{ key: "toJsonParameters", value: function (t) { if (t) return SuperMap.Plot.PlottingUtil.toJSON(t.sitData) } }]), t }(); SuperMap.EditSmlFileParameters = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(); var i = e.PlotCommonServiceBase = function (t) { function e(t, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var n = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t, o)); return n.CLASS_NAME = "SuperMap.PlotCommonServiceBase", n } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, SuperMap.CommonServiceBase), n(e, [{ key: "destroy", value: function () { (function t(e, o, n) { null === e && (e = Function.prototype); var i = Object.getOwnPropertyDescriptor(e, o); if (void 0 === i) { var l = Object.getPrototypeOf(e); return null === l ? void 0 : t(l, o, n) } if ("value" in i) return i.value; var r = i.get; return void 0 !== r ? r.call(n) : void 0 })(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "destroy", this).call(this) } }, { key: "_commit", value: function (t) { "POST" !== t.method && "PUT" !== t.method || (t.params && (t.url = SuperMap.Util.urlAppend(t.url, SuperMap.Util.getParameterString(t.params || {}))), t.params = t.data), SuperMap.FetchRequest.commit(t.method, t.url, t.params, { headers: t.headers, withCredentials: t.withCredentials, timeout: t.async ? 0 : null, proxy: t.proxy }).then(function (t) { return t.text() }).then(function (e) { var o = (new SuperMap.Format.JSON).read(e); (o || (o = { error: e }), o.error) ? (t.scope ? SuperMap.Function.bind(t.failure, t.scope) : t.failure)(o.error) : (o.succeed = void 0 == o.succeed || o.succeed, (t.scope ? SuperMap.Function.bind(t.success, t.scope) : t.success)(o)) }) } }]), e }(); SuperMap.PlotCommonServiceBase = i }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.GetSymbolInfoService = e.GetSymbolInfoParameters = e.GetSMLInfosService = e.GetSMLInfosParameters = e.GetLibInfoService = e.GetLibInfoParameter = e.GetLibIDsService = e.EditSmlFileService = e.EditSmlFileParameters = e.PlotCommonServiceBase = void 0; var n = o(90), i = o(89), l = o(88), r = o(87), a = o(86), s = o(85), u = o(84), p = o(83), c = o(82), y = o(81); e.PlotCommonServiceBase = n.PlotCommonServiceBase, e.EditSmlFileParameters = i.EditSmlFileParameters, e.EditSmlFileService = l.EditSmlFileService, e.GetLibIDsService = r.GetLibIDsService, e.GetLibInfoParameter = a.GetLibInfoParameter, e.GetLibInfoService = s.GetLibInfoService, e.GetSMLInfosParameters = u.GetSMLInfosParameters, e.GetSMLInfosService = p.GetSMLInfosService, e.GetSymbolInfoParameters = c.GetSymbolInfoParameters, e.GetSymbolInfoService = y.GetSymbolInfoService }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = SuperMap.Plot.GOAnimationType = { ANIMATION_UNKNOWN: -1, ANIMATION_WAY: 0, ANIMATION_BLINK: 1, ANIMATION_ATTRIBUTE: 2, ANIMATION_SHOW: 3, ANIMATION_ROTATE: 4, ANIMATION_SCALE: 5, ANIMATION_GROW: 6 }; e.GOAnimationType = n; var i = SuperMap.Plot.BlinkAnimationBlinkStyle = { Blink_Frequency: 0, Blink_Number: 1 }; e.BlinkAnimationBlinkStyle = i; var l = SuperMap.Plot.BlinkAnimationReplaceStyle = { Replace_NoColor: 0, Replace_Color: 1 }; e.BlinkAnimationReplaceStyle = l; var r = SuperMap.Plot.RotateDirection = { ClockWise: 0, AntiClockWise: 1 }; e.RotateDirection = r; var a = SuperMap.Plot.WayPathType = { POLYLINE: 0, CURVE: 1 }; e.WayPathType = a; var s = SuperMap.Plot.GOAnimationState = { UNKNOWN: 0, PLAYING: 1, PAUSE: 2, STOP: 3, RESET: 4 }; e.GOAnimationState = s }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.GOAnimationState = e.WayPathType = e.RotateDirection = e.BlinkAnimationReplaceStyle = e.BlinkAnimationBlinkStyle = e.GOAnimationType = void 0; var n = o(92); e.GOAnimationType = n.GOAnimationType, e.BlinkAnimationBlinkStyle = n.BlinkAnimationBlinkStyle, e.BlinkAnimationReplaceStyle = n.BlinkAnimationReplaceStyle, e.RotateDirection = n.RotateDirection, e.WayPathType = n.WayPathType, e.GOAnimationState = n.GOAnimationState }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.Event = SuperMap.Plot.Event = SuperMap.Plot.Event || {}; SuperMap.Plot.Event.beforefeatureadded = "beforefeatureadded", SuperMap.Plot.Event.featureadded = "featureadded", SuperMap.Plot.Event.beforefeaturesselected = "beforefeaturesselected", SuperMap.Plot.Event.featuresselected = "featuresselected", SuperMap.Plot.Event.beforefeaturesunselected = "beforefeaturesunselected", SuperMap.Plot.Event.featuresunselected = "featuresunselected", SuperMap.Plot.Event.beforefeaturesmodified = "beforefeaturesmodified", SuperMap.Plot.Event.featuresmodified = "featuresmodified", SuperMap.Plot.Event.initializecompleted = "initializecompleted", SuperMap.Plot.Event.cachecompleted = "cachecompleted", SuperMap.Plot.Event.reseteditmarkersvalues = "reseteditmarkersvalues", SuperMap.Plot.Event.reseteditmarkers = "reseteditmarkers" }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Event = void 0; var n = o(94); e.Event = n.Event }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); e.ArrowTailType = SuperMap.Plot.ArrowTailType = { ARROWTAIL_NONE: 0, ARROWTAIL_LINE: 1, ARROWTAIL_CURVE: 2, ARROWTAIL_COATTAIL: 3, ARROWTAIL_COATTAIL_POLYBODY: 4 }, e.ArrowHeadType = SuperMap.Plot.ArrowHeadType = { ARROWHEAD_POLYLINE: 0, ARROWHEAD_TRIANGLE: 1, ARROWHEAD_COATTAIL: 2, ARROWHEAD_TRIANGLE_SOLID: 3, ARROWHEAD_WITH_EAR: 4, ARROWHEAD_WITHOUT_EAR: 5, ARROWHEAD_COATTAIL_HOLLOW: 6 }, e.ArrowBodyType = SuperMap.Plot.ArrowBodyType = { ARROWBODY_POLYLINE: 0, ARROWBODY_POLYBEZIER: 1, ARROWBODY_PARALLEL: 2, ARROWBODY_TRAPEZOID: 3, ARROWBODY_MULTIPOLYBEZIER: 4, ARROWBODY_COATTAIL: 5 }, e.SymbolType = SuperMap.Plot.SymbolType = { DOTSYMBOL: 1, ALGOSYMBOL: 2, TEXTSYMBOL: 34, ELLIPSESYMBOL: 31, CIRCLESYMBOL: 29, RECTANGLESYMBOL: 26, ARBITRARYPOLYGONSYMBOL: 32, POLYLINESYMBOL: 24, PARALLELOGRAM: 28, ARCSYMBOL: 44, REGULARPOLYGON: 410, CHORDSYMBOL: 370, PIESYMBOL: 380, KIDNEY: 390, POLYBEZIERSYMBOL: 590, PARALLELLINE: 48, BRACESYMBOL: 400, ANNOFRAMESYMBOL: 320, ANNOFRAMESYMBOLM: 321, TRAPEZOIDSYMBOL: 350, POLYBEZIERCLOSESYMBOL: 360, GROUPOBJECT: 1e3, LINERELATION: 1001, INTERFERENCEBEAM: 1002, POLYGONREGION: 1003, ARCREGION: 1004, AIRROUTE: 1005, NAVYROUTE: 1006, MISSILEROUTE: 1007, NAVYDEPLOYMENT: 1008, AIRDEPLOYMENT: 1009, SATELLITE: 1010, SATELLITETIMEWINDOWS: 1011, SYMBOLTEXT: 1012, RUNWAY: 1013, CURVEEIGHT: 1014, ROUTENODE: 1015, ARROWLINE: 1016, PATHTEXT: 1017, LITERATESIGN: 1018, CONCENTRICCIRCLE: 1019, FLAGGROUP: 1020, SYMBOLTEXT1: 1021, COMBINATIONALCIRCLE: 1022, FREECURVE: 1023, SYMBOLTEXTBOX: 1024, NODECHAIN: 1025, LINEMARKING: 1026, AVOIDREGION: 1027, WIRE: 1028 }, e.LineRelationType = SuperMap.Plot.LineRelationType = { SOLID: 0, DASH: 1, ARROW: 2 }, e.AlgoSurroundLineType = SuperMap.Plot.AlgoSurroundLineType = { NONE: 0, INNER: 1, OUT: 2, ALL: 3 }, e.RouteNodeType = SuperMap.Plot.RouteNodeType = { RENDEZVOUS: "RENDEZVOUS", EXPANDING: "EXPANDING", VOLLEY: "VOLLEY", STANDBY: "STANDBY", SUPPLY: "SUPPLY", TAKEOFF: "TAKEOFF", INITIAL: "INITIAL", VISUALINITAL: "VISUALINITAL", LANCH: "LANCH", TURNING: "TURNING", AIMING: "AIMING", COMMONROUTE: "COMMONROUTE", WEAPONLAUNCH: "WEAPONLAUNCH", TARGET: "TARGET", ATTACK: "ATTACK", SUPPRESS: "SUPPRESS", EIGHTSPIRAL: "EIGHTSPIRAL", HAPPYVALLEY: "HAPPYVALLEY" }, e.RelLineText = SuperMap.Plot.RelLineText = { ONLINE: 0, ONLEFTLINE: 1, ONRIGHTLINE: 2, ONBOTHLINE: 3 }, e.RadiusLineType = SuperMap.Plot.RadiusLineType = { NONE: 0, SOLID: 1, ARROW: 2 }, e.AnnoPosition = SuperMap.Plot.AnnoPosition = { LEFTTOP: 0, LEFTBOTTOM: 1, RIGHTTOP: 2, RIGHTBOTTOM: 3, TOP: 4, BOTTOM: 5, LEFT: 6, RIGHT: 7 }, e.ArrowLineType = SuperMap.Plot.ArrowLineType = { DOUBLELINE: 0, TRIANGLESOLID: 1, NONE: 2 }, e.TextBoxType = SuperMap.Plot.TextBoxType = { WITHTIPBOX: 0, RECTBOX: 1, LINEBOX: 2, NONEBOX: 3 }, e.PositionOffsetType = SuperMap.Plot.PositionOffsetType = { LINE: 0, GRADIENTLINE: 1 }, e.AlignType = SuperMap.Plot.AlignType = { LEFT: 0, RIGHT: 1, UP: 2, DOWN: 3, VERTICALCENTER: 4, HORIZONTALCENTER: 5 }, e.EditMode = SuperMap.Plot.EditMode = { ADDCONTROLPOINT: 0, EDITCONTROLPOINT: 1, EDITCIRCUMRECTANGLE: 2, REMOVECONTROLPOINT: 3 }; SuperMap.Plot.EqualBigType = { WIDTH: 0, HEIGHT: 1, SAME: 2 }, SuperMap.Plot.EquiType = { LEVEL: 0, VERTICAL: 1 }; e.TransactionType = SuperMap.Plot.TransactionType = { CREATE: 0, EDIT: 1, REMOVE: 2 } }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = e.SuperMap = window.SuperMap = window.SuperMap || {}; e.Plot = n.Plot = n.Plot || {} }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.CalculateSVGGradient = e.CalculateCanvasGradient = e.TransactionInfo = e.Transaction = e.TowardNode = e.TimeWindowParameter = e.SymbolText = e.SubSymbol = e.SMLInfoStruct = e.SitDataStruct = e.RouteNode = e.Property = e.OrbitPoint = e.MapInfoStruct = e.LayerDataStruct = e.ExtendProperty = e.DefaultStyle = e.GetSymbolInfoService = e.GetSymbolInfoParameters = e.GetSMLInfosService = e.GetSMLInfosParameters = e.GetLibInfoService = e.GetLibInfoParameter = e.GetLibIDsService = e.EditSmlFileService = e.EditSmlFileParameters = e.PlotCommonServiceBase = e.GOAnimationType = e.Event = e.EditMode = e.AlignType = e.PositionOffsetType = e.TextBoxType = e.ArrowLineType = e.AnnoPosition = e.RadiusLineType = e.RelLineText = e.RouteNodeType = e.AlgoSurroundLineType = e.LineRelationType = e.SymbolType = e.Plot = void 0; var n = o(97), i = o(96), l = o(95), r = o(93), a = o(91), s = o(80), u = o(64); e.Plot = n.Plot, e.SymbolType = i.SymbolType, e.LineRelationType = i.LineRelationType, e.AlgoSurroundLineType = i.AlgoSurroundLineType, e.RouteNodeType = i.RouteNodeType, e.RelLineText = i.RelLineText, e.RadiusLineType = i.RadiusLineType, e.AnnoPosition = i.AnnoPosition, e.ArrowLineType = i.ArrowLineType, e.TextBoxType = i.TextBoxType, e.PositionOffsetType = i.PositionOffsetType, e.AlignType = i.AlignType, e.EditMode = i.EditMode, e.Event = l.Event, e.GOAnimationType = r.GOAnimationType, e.PlotCommonServiceBase = a.PlotCommonServiceBase, e.EditSmlFileParameters = a.EditSmlFileParameters, e.EditSmlFileService = a.EditSmlFileService, e.GetLibIDsService = a.GetLibIDsService, e.GetLibInfoParameter = a.GetLibInfoParameter, e.GetLibInfoService = a.GetLibInfoService, e.GetSMLInfosParameters = a.GetSMLInfosParameters, e.GetSMLInfosService = a.GetSMLInfosService, e.GetSymbolInfoParameters = a.GetSymbolInfoParameters, e.GetSymbolInfoService = a.GetSymbolInfoService, e.DefaultStyle = s.DefaultStyle, e.ExtendProperty = s.ExtendProperty, e.LayerDataStruct = s.LayerDataStruct, e.MapInfoStruct = s.MapInfoStruct, e.OrbitPoint = s.OrbitPoint, e.Property = s.Property, e.RouteNode = s.RouteNode, e.SitDataStruct = s.SitDataStruct, e.SMLInfoStruct = s.SMLInfoStruct, e.SubSymbol = s.SubSymbol, e.SymbolText = s.SymbolText, e.TimeWindowParameter = s.TimeWindowParameter, e.TowardNode = s.TowardNode, e.Transaction = s.Transaction, e.TransactionInfo = s.TransactionInfo, e.CalculateCanvasGradient = u.CalculateCanvasGradient, e.CalculateSVGGradient = u.CalculateSVGGradient }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Format = void 0; var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), i = o(0), l = o(1);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var r=e.Format=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=null,this.keepData=!1,l.Util.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}return n(t,[{key:"destroy",value:function(){}},{key:"read",value:function(t){}},{key:"write",value:function(t){}}]),t}();i.SuperMap.Format=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONFormat=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),l=o(0),r=o(99);
-/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
- * This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
-var a=e.JSONFormat=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.indent=" ",o.space=" ",o.newline="\n",o.level=0,o.pretty=!1,o.nativeJSON=!(!window.JSON||"function"!=typeof JSON.parse||"function"!=typeof JSON.stringify),o.CLASS_NAME="SuperMap.Format.JSON",o.serialize={object:function(t){if(null==t)return"null";if(t.constructor===Date)return this.serialize.date.apply(this,[t]);if(t.constructor===Array)return this.serialize.array.apply(this,[t]);var e,o,n,i=["{"];this.level+=1;var l=!1;for(e in t)t.hasOwnProperty(e)&&(o=this.write.apply(this,[e,this.pretty]),n=this.write.apply(this,[t[e],this.pretty]),null!=o&&null!=n&&(l&&i.push(","),i.push(this.writeNewline(),this.writeIndent(),o,":",this.writeSpace(),n),l=!0));return this.level-=1,i.push(this.writeNewline(),this.writeIndent(),"}"),i.join("")},array:function(t){var e,o=["["];this.level+=1;for(var n=0,i=t.length;n<i;++n)null!=(e=this.write.apply(this,[t[n],this.pretty]))&&(n>0&&o.push(","),o.push(this.writeNewline(),this.writeIndent(),e));return this.level-=1,o.push(this.writeNewline(),this.writeIndent(),"]"),o.join("")},string:function(t){var e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(t)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(t,o){var n=e[o];return n||(n=o.charCodeAt(),"\\u00"+Math.floor(n/16).toString(16)+(n%16).toString(16))})+'"':'"'+t+'"'},number:function(t){return isFinite(t)?String(t):"null"},boolean:function(t){return String(t)},date:function(t){function e(t){return t<10?"0"+t:t}return'"'+t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+"T"+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())+'"'}},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Format),i(e,[{key:"read",value:function(t,e){var o;if(this.nativeJSON)try{o=JSON.parse(t,e)}catch(t){}return this.keepData&&(this.data=o),o}},{key:"write",value:function(t,e){this.pretty=!!e;var o=null,i=void 0===t?"undefined":n(t);if(this.serialize[i])try{o=!this.pretty&&this.nativeJSON?JSON.stringify(t):this.serialize[i].apply(this,[t])}catch(t){}return o}},{key:"writeIndent",value:function(){var t=[];if(this.pretty)for(var e=0;e<this.level;++e)t.push(this.indent);return t.join("")}},{key:"writeNewline",value:function(){return this.pretty?this.newline:""}},{key:"writeSpace",value:function(){return this.pretty?this.space:""}}]),e}();l.SuperMap.Format.JSON=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetFeatureMode=e.AggregationQueryBuilderType=e.AggregationType=e.TopologyValidatorRule=e.SummaryType=e.StatisticAnalystMode=e.AnalystSizeUnit=e.AnalystAreaUnit=e.ClipAnalystMode=e.ChartType=e.ClientType=e.Exponent=e.VariogramMode=e.InterpolationAlgorithmType=e.SearchMode=e.PixelFormat=e.StatisticMode=e.UGCLayerType=e.LayerType=e.ColorSpaceType=e.GridType=e.TransferPreference=e.TransferTactic=e.EditType=e.DataReturnMode=e.SurfaceAnalystMethod=e.SmoothMethod=e.OutputType=e.OverlayOperationType=e.BufferEndType=e.TurnType=e.SupplyCenterType=e.SideType=e.DirectionType=e.LabelOverLengthMode=e.LabelBackShape=e.AlongLineDirection=e.FillGradientMode=e.TextAlignment=e.ColorGradientType=e.ThemeType=e.RangeMode=e.GraduatedMode=e.GraphAxesTextDisplayMode=e.ThemeGraphType=e.ThemeGraphTextFormat=e.EngineType=e.BufferRadiusUnit=e.Unit=e.MeasureMode=e.SpatialRelationType=e.SpatialQueryMode=e.JoinType=e.QueryOption=e.GeometryType=e.ServerType=e.DataFormat=void 0;var n=o(0),i=n.SuperMap.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"};
-/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
- * This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
-e.DataFormat=i;var l=n.SuperMap.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"};e.ServerType=l;var r=n.SuperMap.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN"};e.GeometryType=r;var a=n.SuperMap.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"};e.QueryOption=a;var s=n.SuperMap.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"};e.JoinType=s;var u=n.SuperMap.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"};e.SpatialQueryMode=u;var p=n.SuperMap.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"};e.SpatialRelationType=p;var c=n.SuperMap.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"};e.MeasureMode=c;var y=n.SuperMap.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"};e.Unit=y;var P=n.SuperMap.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"};e.BufferRadiusUnit=P;var h=n.SuperMap.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"};e.EngineType=h;var f=n.SuperMap.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"};e.ThemeGraphTextFormat=f;var S=n.SuperMap.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"};e.ThemeGraphType=S;var d=n.SuperMap.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"};e.GraphAxesTextDisplayMode=d;var g=n.SuperMap.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"};e.GraduatedMode=g;var M=n.SuperMap.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"};e.RangeMode=M;var m=n.SuperMap.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"};e.ThemeType=m;var v=n.SuperMap.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"};e.ColorGradientType=v;var b=n.SuperMap.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"};e.TextAlignment=b;var T=n.SuperMap.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"};e.FillGradientMode=T;var A=n.SuperMap.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"};e.AlongLineDirection=A;var L=n.SuperMap.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE:"TRIANGLE"};e.LabelBackShape=L;var O=n.SuperMap.LabelOverLengthMode={NEWLINE:"NEWLINE",NONE:"NONE",OMIT:"OMIT"};e.LabelOverLengthMode=O;var E=n.SuperMap.DirectionType={EAST:"EAST",NONE:"NONE",NORTH:"NORTH",SOURTH:"SOURTH",WEST:"WEST"};e.DirectionType=E;var x=n.SuperMap.SideType={LEFT:"LEFT",MIDDLE:"MIDDLE",NONE:"NONE",RIGHT:"RIGHT"};e.SideType=x;var w=n.SuperMap.SupplyCenterType={FIXEDCENTER:"FIXEDCENTER",NULL:"NULL",OPTIONALCENTER:"OPTIONALCENTER"};e.SupplyCenterType=w;var I=n.SuperMap.TurnType={AHEAD:"AHEAD",BACK:"BACK",END:"END",LEFT:"LEFT",NONE:"NONE",RIGHT:"RIGHT"};e.TurnType=I;var R=n.SuperMap.BufferEndType={FLAT:"FLAT",ROUND:"ROUND"};e.BufferEndType=R;var C=n.SuperMap.OverlayOperationType={CLIP:"CLIP",ERASE:"ERASE",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",UNION:"UNION",UPDATE:"UPDATE",XOR:"XOR"};e.OverlayOperationType=C;var _=n.SuperMap.OutputType={INDEXEDHDFS:"INDEXEDHDFS",UDB:"UDB",MONGODB:"MONGODB",PG:"PG"};e.OutputType=_;var U=n.SuperMap.SmoothMethod={BSPLINE:"BSPLINE",POLISH:"POLISH"};e.SmoothMethod=U;var N=n.SuperMap.SurfaceAnalystMethod={ISOLINE:"ISOLINE",ISOREGION:"ISOREGION"};e.SurfaceAnalystMethod=N;var D=n.SuperMap.DataReturnMode={DATASET_AND_RECORDSET:"DATASET_AND_RECORDSET",DATASET_ONLY:"DATASET_ONLY",RECORDSET_ONLY:"RECORDSET_ONLY"};e.DataReturnMode=D;var B=n.SuperMap.EditType={ADD:"add",UPDATE:"update",DELETE:"delete"};e.EditType=B;var G=n.SuperMap.TransferTactic={LESS_TIME:"LESS_TIME",LESS_TRANSFER:"LESS_TRANSFER",LESS_WALK:"LESS_WALK",MIN_DISTANCE:"MIN_DISTANCE"};e.TransferTactic=G;var k=n.SuperMap.TransferPreference={BUS:"BUS",SUBWAY:"SUBWAY",NO_SUBWAY:"NO_SUBWAY",NONE:"NONE"};e.TransferPreference=k;var V=n.SuperMap.GridType={CROSS:"CROSS",GRID:"GRID",POINT:"POINT"};e.GridType=V;var Y=n.SuperMap.ColorSpaceType={CMYK:"CMYK",RGB:"RGB"};e.ColorSpaceType=Y;var F=n.SuperMap.LayerType={UGC:"UGC",WMS:"WMS",WFS:"WFS",CUSTOM:"CUSTOM"};e.LayerType=F;var j=n.SuperMap.UGCLayerType={THEME:"THEME",VECTOR:"VECTOR",GRID:"GRID",IMAGE:"IMAGE"};e.UGCLayerType=j;var z=n.SuperMap.StatisticMode={AVERAGE:"AVERAGE",MAX:"MAX",MIN:"MIN",STDDEVIATION:"STDDEVIATION",SUM:"SUM",VARIANCE:"VARIANCE"};e.StatisticMode=z;var W=n.SuperMap.PixelFormat={BIT16:"BIT16",BIT32:"BIT32",BIT64:"BIT64",SINGLE:"SINGLE",DOUBLE:"DOUBLE",UBIT1:"UBIT1",UBIT4:"UBIT4",UBIT8:"UBIT8",UBIT24:"UBIT24",UBIT32:"UBIT32"};e.PixelFormat=W;var H=n.SuperMap.SearchMode={KDTREE_FIXED_COUNT:"KDTREE_FIXED_COUNT",KDTREE_FIXED_RADIUS:"KDTREE_FIXED_RADIUS",NONE:"NONE",QUADTREE:"QUADTREE"};e.SearchMode=H;var q=n.SuperMap.InterpolationAlgorithmType={KRIGING:"KRIGING",SimpleKriging:"SimpleKriging",UniversalKriging:"UniversalKriging"};e.InterpolationAlgorithmType=q;var J=n.SuperMap.VariogramMode={EXPONENTIAL:"EXPONENTIAL",GAUSSIAN:"GAUSSIAN",SPHERICAL:"SPHERICAL"};e.VariogramMode=J;var X=n.SuperMap.Exponent={EXP1:"EXP1",EXP2:"EXP2"};e.Exponent=X;var K=n.SuperMap.ClientType={IP:"IP",REFERER:"Referer",REQUESTIP:"RequestIP",NONE:"NONE",SERVER:"SERVER",WEB:"WEB"};e.ClientType=K;var Q=n.SuperMap.ChartType={BAR:"Bar",BAR3D:"Bar3D",CIRCLE:"Circle",PIE:"Pie",POINT:"Point",LINE:"Line",RING:"Ring"};e.ChartType=Q;var Z=n.SuperMap.ClipAnalystMode={CLIP:"clip",INTERSECT:"intersect"};e.ClipAnalystMode=Z;var $=n.SuperMap.AnalystAreaUnit={SQUAREMETER:"SquareMeter",SQUAREKILOMETER:"SquareKiloMeter",HECTARE:"Hectare",ARE:"Are",ACRE:"Acre",SQUAREFOOT:"SquareFoot",SQUAREYARD:"SquareYard",SQUAREMILE:"SquareMile"};e.AnalystAreaUnit=$;var tt=n.SuperMap.AnalystSizeUnit={METER:"Meter",KILOMETER:"Kilometer",YARD:"Yard",FOOT:"Foot",MILE:"Mile"};e.AnalystSizeUnit=tt;var et=n.SuperMap.StatisticAnalystMode={MAX:"max",MIN:"min",AVERAGE:"average",SUM:"sum",VARIANCE:"variance",STDDEVIATION:"stdDeviation"};e.StatisticAnalystMode=et;var ot=n.SuperMap.SummaryType={SUMMARYMESH:"SUMMARYMESH",SUMMARYREGION:"SUMMARYREGION"};e.SummaryType=ot;var nt=n.SuperMap.TopologyValidatorRule={REGIONNOOVERLAP:"REGIONNOOVERLAP",REGIONNOOVERLAPWITH:"REGIONNOOVERLAPWITH",REGIONCONTAINEDBYREGION:"REGIONCONTAINEDBYREGION",REGIONCOVEREDBYREGION:"REGIONCOVEREDBYREGION",LINENOOVERLAP:"LINENOOVERLAP",LINENOOVERLAPWITH:"LINENOOVERLAPWITH",POINTNOIDENTICAL:"POINTNOIDENTICAL"};e.TopologyValidatorRule=nt;var it=n.SuperMap.AggregationType={GEOHASH_GRID:"geohash_grid",FILTER:"filter"};e.AggregationType=it;var lt=n.SuperMap.AggregationQueryBuilderType={GEO_BOUNDING_BOX:"geo_bounding_box"};e.AggregationQueryBuilderType=lt;var rt=n.SuperMap.GetFeatureMode={BOUNDS:"BOUNDS",BUFFER:"BUFFER",ID:"ID",SPATIAL:"SPATIAL",SQL:"SQL"};e.GetFeatureMode=rt},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SecurityManager=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=o(0),l=o(1),r=o(5);
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var r = e.Format = function () { function t(e) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.data = null, this.keepData = !1, l.Util.extend(this, e), this.options = e, this.CLASS_NAME = "SuperMap.Format" } return n(t, [{ key: "destroy", value: function () { } }, { key: "read", value: function (t) { } }, { key: "write", value: function (t) { } }]), t }(); i.SuperMap.Format = r
+ }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.JSONFormat = void 0; var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, i = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), l = o(0), r = o(99);
+ /* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
+ * This program are made available under the terms of the Apache License, Version 2.0
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
+ var a = e.JSONFormat = function (t) { function e(t) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, e); var o = function (t, e) { if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !e || "object" != typeof e && "function" != typeof e ? t : e }(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, t)); return o.indent = " ", o.space = " ", o.newline = "\n", o.level = 0, o.pretty = !1, o.nativeJSON = !(!window.JSON || "function" != typeof JSON.parse || "function" != typeof JSON.stringify), o.CLASS_NAME = "SuperMap.Format.JSON", o.serialize = { object: function (t) { if (null == t) return "null"; if (t.constructor === Date) return this.serialize.date.apply(this, [t]); if (t.constructor === Array) return this.serialize.array.apply(this, [t]); var e, o, n, i = ["{"]; this.level += 1; var l = !1; for (e in t) t.hasOwnProperty(e) && (o = this.write.apply(this, [e, this.pretty]), n = this.write.apply(this, [t[e], this.pretty]), null != o && null != n && (l && i.push(","), i.push(this.writeNewline(), this.writeIndent(), o, ":", this.writeSpace(), n), l = !0)); return this.level -= 1, i.push(this.writeNewline(), this.writeIndent(), "}"), i.join("") }, array: function (t) { var e, o = ["["]; this.level += 1; for (var n = 0, i = t.length; n < i; ++n)null != (e = this.write.apply(this, [t[n], this.pretty])) && (n > 0 && o.push(","), o.push(this.writeNewline(), this.writeIndent(), e)); return this.level -= 1, o.push(this.writeNewline(), this.writeIndent(), "]"), o.join("") }, string: function (t) { var e = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }; return /["\\\x00-\x1f]/.test(t) ? '"' + t.replace(/([\x00-\x1f\\"])/g, function (t, o) { var n = e[o]; return n || (n = o.charCodeAt(), "\\u00" + Math.floor(n / 16).toString(16) + (n % 16).toString(16)) }) + '"' : '"' + t + '"' }, number: function (t) { return isFinite(t) ? String(t) : "null" }, boolean: function (t) { return String(t) }, date: function (t) { function e(t) { return t < 10 ? "0" + t : t } return '"' + t.getFullYear() + "-" + e(t.getMonth() + 1) + "-" + e(t.getDate()) + "T" + e(t.getHours()) + ":" + e(t.getMinutes()) + ":" + e(t.getSeconds()) + '"' } }, o } return function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) }(e, r.Format), i(e, [{ key: "read", value: function (t, e) { var o; if (this.nativeJSON) try { o = JSON.parse(t, e) } catch (t) { } return this.keepData && (this.data = o), o } }, { key: "write", value: function (t, e) { this.pretty = !!e; var o = null, i = void 0 === t ? "undefined" : n(t); if (this.serialize[i]) try { o = !this.pretty && this.nativeJSON ? JSON.stringify(t) : this.serialize[i].apply(this, [t]) } catch (t) { } return o } }, { key: "writeIndent", value: function () { var t = []; if (this.pretty) for (var e = 0; e < this.level; ++e)t.push(this.indent); return t.join("") } }, { key: "writeNewline", value: function () { return this.pretty ? this.newline : "" } }, { key: "writeSpace", value: function () { return this.pretty ? this.space : "" } }]), e }(); l.SuperMap.Format.JSON = a
+ }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.GetFeatureMode = e.AggregationQueryBuilderType = e.AggregationType = e.TopologyValidatorRule = e.SummaryType = e.StatisticAnalystMode = e.AnalystSizeUnit = e.AnalystAreaUnit = e.ClipAnalystMode = e.ChartType = e.ClientType = e.Exponent = e.VariogramMode = e.InterpolationAlgorithmType = e.SearchMode = e.PixelFormat = e.StatisticMode = e.UGCLayerType = e.LayerType = e.ColorSpaceType = e.GridType = e.TransferPreference = e.TransferTactic = e.EditType = e.DataReturnMode = e.SurfaceAnalystMethod = e.SmoothMethod = e.OutputType = e.OverlayOperationType = e.BufferEndType = e.TurnType = e.SupplyCenterType = e.SideType = e.DirectionType = e.LabelOverLengthMode = e.LabelBackShape = e.AlongLineDirection = e.FillGradientMode = e.TextAlignment = e.ColorGradientType = e.ThemeType = e.RangeMode = e.GraduatedMode = e.GraphAxesTextDisplayMode = e.ThemeGraphType = e.ThemeGraphTextFormat = e.EngineType = e.BufferRadiusUnit = e.Unit = e.MeasureMode = e.SpatialRelationType = e.SpatialQueryMode = e.JoinType = e.QueryOption = e.GeometryType = e.ServerType = e.DataFormat = void 0; var n = o(0), i = n.SuperMap.DataFormat = { GEOJSON: "GEOJSON", ISERVER: "ISERVER" };
+ /* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
+ * This program are made available under the terms of the Apache License, Version 2.0
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
+ e.DataFormat = i; var l = n.SuperMap.ServerType = { ISERVER: "ISERVER", IPORTAL: "IPORTAL", ONLINE: "ONLINE" }; e.ServerType = l; var r = n.SuperMap.GeometryType = { LINE: "LINE", LINEM: "LINEM", POINT: "POINT", REGION: "REGION", ELLIPSE: "ELLIPSE", CIRCLE: "CIRCLE", TEXT: "TEXT", RECTANGLE: "RECTANGLE", UNKNOWN: "UNKNOWN" }; e.GeometryType = r; var a = n.SuperMap.QueryOption = { ATTRIBUTE: "ATTRIBUTE", ATTRIBUTEANDGEOMETRY: "ATTRIBUTEANDGEOMETRY", GEOMETRY: "GEOMETRY" }; e.QueryOption = a; var s = n.SuperMap.JoinType = { INNERJOIN: "INNERJOIN", LEFTJOIN: "LEFTJOIN" }; e.JoinType = s; var u = n.SuperMap.SpatialQueryMode = { CONTAIN: "CONTAIN", CROSS: "CROSS", DISJOINT: "DISJOINT", IDENTITY: "IDENTITY", INTERSECT: "INTERSECT", NONE: "NONE", OVERLAP: "OVERLAP", TOUCH: "TOUCH", WITHIN: "WITHIN" }; e.SpatialQueryMode = u; var p = n.SuperMap.SpatialRelationType = { CONTAIN: "CONTAIN", INTERSECT: "INTERSECT", WITHIN: "WITHIN" }; e.SpatialRelationType = p; var c = n.SuperMap.MeasureMode = { DISTANCE: "DISTANCE", AREA: "AREA" }; e.MeasureMode = c; var y = n.SuperMap.Unit = { METER: "METER", KILOMETER: "KILOMETER", MILE: "MILE", YARD: "YARD", DEGREE: "DEGREE", MILLIMETER: "MILLIMETER", CENTIMETER: "CENTIMETER", INCH: "INCH", DECIMETER: "DECIMETER", FOOT: "FOOT", SECOND: "SECOND", MINUTE: "MINUTE", RADIAN: "RADIAN" }; e.Unit = y; var P = n.SuperMap.BufferRadiusUnit = { CENTIMETER: "CENTIMETER", DECIMETER: "DECIMETER", FOOT: "FOOT", INCH: "INCH", KILOMETER: "KILOMETER", METER: "METER", MILE: "MILE", MILLIMETER: "MILLIMETER", YARD: "YARD" }; e.BufferRadiusUnit = P; var h = n.SuperMap.EngineType = { IMAGEPLUGINS: "IMAGEPLUGINS", OGC: "OGC", ORACLEPLUS: "ORACLEPLUS", SDBPLUS: "SDBPLUS", SQLPLUS: "SQLPLUS", UDB: "UDB" }; e.EngineType = h; var f = n.SuperMap.ThemeGraphTextFormat = { CAPTION: "CAPTION", CAPTION_PERCENT: "CAPTION_PERCENT", CAPTION_VALUE: "CAPTION_VALUE", PERCENT: "PERCENT", VALUE: "VALUE" }; e.ThemeGraphTextFormat = f; var S = n.SuperMap.ThemeGraphType = { AREA: "AREA", BAR: "BAR", BAR3D: "BAR3D", LINE: "LINE", PIE: "PIE", PIE3D: "PIE3D", POINT: "POINT", RING: "RING", ROSE: "ROSE", ROSE3D: "ROSE3D", STACK_BAR: "STACK_BAR", STACK_BAR3D: "STACK_BAR3D", STEP: "STEP" }; e.ThemeGraphType = S; var d = n.SuperMap.GraphAxesTextDisplayMode = { ALL: "ALL", NONE: "NONE", YAXES: "YAXES" }; e.GraphAxesTextDisplayMode = d; var g = n.SuperMap.GraduatedMode = { CONSTANT: "CONSTANT", LOGARITHM: "LOGARITHM", SQUAREROOT: "SQUAREROOT" }; e.GraduatedMode = g; var M = n.SuperMap.RangeMode = { CUSTOMINTERVAL: "CUSTOMINTERVAL", EQUALINTERVAL: "EQUALINTERVAL", LOGARITHM: "LOGARITHM", QUANTILE: "QUANTILE", SQUAREROOT: "SQUAREROOT", STDDEVIATION: "STDDEVIATION" }; e.RangeMode = M; var m = n.SuperMap.ThemeType = { DOTDENSITY: "DOTDENSITY", GRADUATEDSYMBOL: "GRADUATEDSYMBOL", GRAPH: "GRAPH", LABEL: "LABEL", RANGE: "RANGE", UNIQUE: "UNIQUE" }; e.ThemeType = m; var v = n.SuperMap.ColorGradientType = { BLACK_WHITE: "BLACKWHITE", BLUE_BLACK: "BLUEBLACK", BLUE_RED: "BLUERED", BLUE_WHITE: "BLUEWHITE", CYAN_BLACK: "CYANBLACK", CYAN_BLUE: "CYANBLUE", CYAN_GREEN: "CYANGREEN", CYAN_WHITE: "CYANWHITE", GREEN_BLACK: "GREENBLACK", GREEN_BLUE: "GREENBLUE", GREEN_ORANGE_VIOLET: "GREENORANGEVIOLET", GREEN_RED: "GREENRED", GREEN_WHITE: "GREENWHITE", PINK_BLACK: "PINKBLACK", PINK_BLUE: "PINKBLUE", PINK_RED: "PINKRED", PINK_WHITE: "PINKWHITE", RAIN_BOW: "RAINBOW", RED_BLACK: "REDBLACK", RED_WHITE: "REDWHITE", SPECTRUM: "SPECTRUM", TERRAIN: "TERRAIN", YELLOW_BLACK: "YELLOWBLACK", YELLOW_BLUE: "YELLOWBLUE", YELLOW_GREEN: "YELLOWGREEN", YELLOW_RED: "YELLOWRED", YELLOW_WHITE: "YELLOWWHITE" }; e.ColorGradientType = v; var b = n.SuperMap.TextAlignment = { TOPLEFT: "TOPLEFT", TOPCENTER: "TOPCENTER", TOPRIGHT: "TOPRIGHT", BASELINELEFT: "BASELINELEFT", BASELINECENTER: "BASELINECENTER", BASELINERIGHT: "BASELINERIGHT", BOTTOMLEFT: "BOTTOMLEFT", BOTTOMCENTER: "BOTTOMCENTER", BOTTOMRIGHT: "BOTTOMRIGHT", MIDDLELEFT: "MIDDLELEFT", MIDDLECENTER: "MIDDLECENTER", MIDDLERIGHT: "MIDDLERIGHT" }; e.TextAlignment = b; var T = n.SuperMap.FillGradientMode = { NONE: "NONE", LINEAR: "LINEAR", RADIAL: "RADIAL", CONICAL: "CONICAL", SQUARE: "SQUARE" }; e.FillGradientMode = T; var A = n.SuperMap.AlongLineDirection = { NORMAL: "ALONG_LINE_NORMAL", LB_TO_RT: "LEFT_BOTTOM_TO_RIGHT_TOP", LT_TO_RB: "LEFT_TOP_TO_RIGHT_BOTTOM", RB_TO_LT: "RIGHT_BOTTOM_TO_LEFT_TOP", RT_TO_LB: "RIGHT_TOP_TO_LEFT_BOTTOM" }; e.AlongLineDirection = A; var L = n.SuperMap.LabelBackShape = { DIAMOND: "DIAMOND", ELLIPSE: "ELLIPSE", MARKER: "MARKER", NONE: "NONE", RECT: "RECT", ROUNDRECT: "ROUNDRECT", TRIANGLE: "TRIANGLE" }; e.LabelBackShape = L; var O = n.SuperMap.LabelOverLengthMode = { NEWLINE: "NEWLINE", NONE: "NONE", OMIT: "OMIT" }; e.LabelOverLengthMode = O; var E = n.SuperMap.DirectionType = { EAST: "EAST", NONE: "NONE", NORTH: "NORTH", SOURTH: "SOURTH", WEST: "WEST" }; e.DirectionType = E; var x = n.SuperMap.SideType = { LEFT: "LEFT", MIDDLE: "MIDDLE", NONE: "NONE", RIGHT: "RIGHT" }; e.SideType = x; var w = n.SuperMap.SupplyCenterType = { FIXEDCENTER: "FIXEDCENTER", NULL: "NULL", OPTIONALCENTER: "OPTIONALCENTER" }; e.SupplyCenterType = w; var I = n.SuperMap.TurnType = { AHEAD: "AHEAD", BACK: "BACK", END: "END", LEFT: "LEFT", NONE: "NONE", RIGHT: "RIGHT" }; e.TurnType = I; var R = n.SuperMap.BufferEndType = { FLAT: "FLAT", ROUND: "ROUND" }; e.BufferEndType = R; var C = n.SuperMap.OverlayOperationType = { CLIP: "CLIP", ERASE: "ERASE", IDENTITY: "IDENTITY", INTERSECT: "INTERSECT", UNION: "UNION", UPDATE: "UPDATE", XOR: "XOR" }; e.OverlayOperationType = C; var _ = n.SuperMap.OutputType = { INDEXEDHDFS: "INDEXEDHDFS", UDB: "UDB", MONGODB: "MONGODB", PG: "PG" }; e.OutputType = _; var U = n.SuperMap.SmoothMethod = { BSPLINE: "BSPLINE", POLISH: "POLISH" }; e.SmoothMethod = U; var N = n.SuperMap.SurfaceAnalystMethod = { ISOLINE: "ISOLINE", ISOREGION: "ISOREGION" }; e.SurfaceAnalystMethod = N; var D = n.SuperMap.DataReturnMode = { DATASET_AND_RECORDSET: "DATASET_AND_RECORDSET", DATASET_ONLY: "DATASET_ONLY", RECORDSET_ONLY: "RECORDSET_ONLY" }; e.DataReturnMode = D; var B = n.SuperMap.EditType = { ADD: "add", UPDATE: "update", DELETE: "delete" }; e.EditType = B; var G = n.SuperMap.TransferTactic = { LESS_TIME: "LESS_TIME", LESS_TRANSFER: "LESS_TRANSFER", LESS_WALK: "LESS_WALK", MIN_DISTANCE: "MIN_DISTANCE" }; e.TransferTactic = G; var k = n.SuperMap.TransferPreference = { BUS: "BUS", SUBWAY: "SUBWAY", NO_SUBWAY: "NO_SUBWAY", NONE: "NONE" }; e.TransferPreference = k; var V = n.SuperMap.GridType = { CROSS: "CROSS", GRID: "GRID", POINT: "POINT" }; e.GridType = V; var Y = n.SuperMap.ColorSpaceType = { CMYK: "CMYK", RGB: "RGB" }; e.ColorSpaceType = Y; var F = n.SuperMap.LayerType = { UGC: "UGC", WMS: "WMS", WFS: "WFS", CUSTOM: "CUSTOM" }; e.LayerType = F; var j = n.SuperMap.UGCLayerType = { THEME: "THEME", VECTOR: "VECTOR", GRID: "GRID", IMAGE: "IMAGE" }; e.UGCLayerType = j; var z = n.SuperMap.StatisticMode = { AVERAGE: "AVERAGE", MAX: "MAX", MIN: "MIN", STDDEVIATION: "STDDEVIATION", SUM: "SUM", VARIANCE: "VARIANCE" }; e.StatisticMode = z; var W = n.SuperMap.PixelFormat = { BIT16: "BIT16", BIT32: "BIT32", BIT64: "BIT64", SINGLE: "SINGLE", DOUBLE: "DOUBLE", UBIT1: "UBIT1", UBIT4: "UBIT4", UBIT8: "UBIT8", UBIT24: "UBIT24", UBIT32: "UBIT32" }; e.PixelFormat = W; var H = n.SuperMap.SearchMode = { KDTREE_FIXED_COUNT: "KDTREE_FIXED_COUNT", KDTREE_FIXED_RADIUS: "KDTREE_FIXED_RADIUS", NONE: "NONE", QUADTREE: "QUADTREE" }; e.SearchMode = H; var q = n.SuperMap.InterpolationAlgorithmType = { KRIGING: "KRIGING", SimpleKriging: "SimpleKriging", UniversalKriging: "UniversalKriging" }; e.InterpolationAlgorithmType = q; var J = n.SuperMap.VariogramMode = { EXPONENTIAL: "EXPONENTIAL", GAUSSIAN: "GAUSSIAN", SPHERICAL: "SPHERICAL" }; e.VariogramMode = J; var X = n.SuperMap.Exponent = { EXP1: "EXP1", EXP2: "EXP2" }; e.Exponent = X; var K = n.SuperMap.ClientType = { IP: "IP", REFERER: "Referer", REQUESTIP: "RequestIP", NONE: "NONE", SERVER: "SERVER", WEB: "WEB" }; e.ClientType = K; var Q = n.SuperMap.ChartType = { BAR: "Bar", BAR3D: "Bar3D", CIRCLE: "Circle", PIE: "Pie", POINT: "Point", LINE: "Line", RING: "Ring" }; e.ChartType = Q; var Z = n.SuperMap.ClipAnalystMode = { CLIP: "clip", INTERSECT: "intersect" }; e.ClipAnalystMode = Z; var $ = n.SuperMap.AnalystAreaUnit = { SQUAREMETER: "SquareMeter", SQUAREKILOMETER: "SquareKiloMeter", HECTARE: "Hectare", ARE: "Are", ACRE: "Acre", SQUAREFOOT: "SquareFoot", SQUAREYARD: "SquareYard", SQUAREMILE: "SquareMile" }; e.AnalystAreaUnit = $; var tt = n.SuperMap.AnalystSizeUnit = { METER: "Meter", KILOMETER: "Kilometer", YARD: "Yard", FOOT: "Foot", MILE: "Mile" }; e.AnalystSizeUnit = tt; var et = n.SuperMap.StatisticAnalystMode = { MAX: "max", MIN: "min", AVERAGE: "average", SUM: "sum", VARIANCE: "variance", STDDEVIATION: "stdDeviation" }; e.StatisticAnalystMode = et; var ot = n.SuperMap.SummaryType = { SUMMARYMESH: "SUMMARYMESH", SUMMARYREGION: "SUMMARYREGION" }; e.SummaryType = ot; var nt = n.SuperMap.TopologyValidatorRule = { REGIONNOOVERLAP: "REGIONNOOVERLAP", REGIONNOOVERLAPWITH: "REGIONNOOVERLAPWITH", REGIONCONTAINEDBYREGION: "REGIONCONTAINEDBYREGION", REGIONCOVEREDBYREGION: "REGIONCOVEREDBYREGION", LINENOOVERLAP: "LINENOOVERLAP", LINENOOVERLAPWITH: "LINENOOVERLAPWITH", POINTNOIDENTICAL: "POINTNOIDENTICAL" }; e.TopologyValidatorRule = nt; var it = n.SuperMap.AggregationType = { GEOHASH_GRID: "geohash_grid", FILTER: "filter" }; e.AggregationType = it; var lt = n.SuperMap.AggregationQueryBuilderType = { GEO_BOUNDING_BOX: "geo_bounding_box" }; e.AggregationQueryBuilderType = lt; var rt = n.SuperMap.GetFeatureMode = { BOUNDS: "BOUNDS", BUFFER: "BUFFER", ID: "ID", SPATIAL: "SPATIAL", SQL: "SQL" }; e.GetFeatureMode = rt
+ }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.SecurityManager = void 0; var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), i = o(0), l = o(1), r = o(5);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=e.SecurityManager=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,null,[{key:"generateToken",value:function(t,e){var o=this.servers[t];if(o)return r.FetchRequest.post(o.tokenServiceUrl,JSON.stringify(e.toJSON())).then(function(t){return t.text()})}},{key:"registerServers",value:function(t){this.servers=this.servers||{},l.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var o=t[e];this.servers[o.server]=o}}},{key:"registerToken",value:function(t,e){if(this.tokens=this.tokens||{},t&&e){var o=this._getTokenStorageKey(t);this.tokens[o]=e}}},{key:"registerKey",value:function(t,e){if(this.keys=this.keys||{},t&&!(t.length<1)&&e){t=l.Util.isArray(t)?t:[t];for(var o=0;o<t.length;o++){var n=this._getUrlRestString(t[0])||t[0];this.keys[n]=e}}}},{key:"getServerInfo",value:function(t){return this.servers=this.servers||{},this.servers[t]}},{key:"getToken",value:function(t){if(t){this.tokens=this.tokens||{};var e=this._getTokenStorageKey(t);return this.tokens[e]}}},{key:"getKey",value:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]}},{key:"loginiServer",value:function(t,e,o,n){t+="/"===t.substr(t.length-1,1)?"services/security/login.json":"/services/security/login.json";var i={username:e&&e.toString(),password:o&&o.toString(),rememberme:n};i=JSON.stringify(i);return r.FetchRequest.post(t,i,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(t){return t.json()})}},{key:"logoutiServer",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(e,o){var n=t.SSO+"/login?service="+e;this._open(n,o)}},{key:"loginiPortal",value:function(t,e,o){t+="/"===t.substr(t.length-1,1)?"web/login.json":"/web/login.json";var n={username:e&&e.toString(),password:o&&o.toString()};n=JSON.stringify(n);return r.FetchRequest.post(t,n,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(t){return t.json()})}},{key:"logoutiPortal",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(t,e,o){if(l.Util.isInTheSameDomain(t)){var n="/"===t.substr(t.length-1,1)?t+"icloud/security/tokens.json":t+"/icloud/security/tokens.json",i=e||{},a={username:i.userName&&i.userName.toString(),password:i.password&&i.password.toString()};a=JSON.stringify(a);var s=this;return r.FetchRequest.post(n,a,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(t){t.text().then(function(t){return s.imanagerToken=t,t})})}var u=!o||o.isNewTab;this._open(t,u)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(t){if(t){var e=this._getTokenStorageKey(t);this.tokens=this.tokens||{},this.tokens[e]&&delete this.tokens[e]}}},{key:"destroyKey",value:function(t){if(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;this.keys[e]&&delete this.keys[e]}}},{key:"_open",value:function(t,e){e=null==e||e;var o=window.screen.availWidth/2-this.INNER_WINDOW_WIDTH/2,n=window.screen.availHeight/2-this.INNER_WINDOW_HEIGHT/2,i="height="+this.INNER_WINDOW_HEIGHT+", width="+this.INNER_WINDOW_WIDTH+",top="+n+", left="+o+",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";e?window.open(t,"login"):window.open(t,"login",i)}},{key:"_getTokenStorageKey",value:function(t){var e=t.match(/(.*?):\/\/([^\/]+)/i);return e?e[0]:t}},{key:"_getUrlRestString",value:function(t){if(!t)return t;var e=t.match(/http:\/\/(.*\/rest)/i);return e?e[0]:t}}]),t}();a.INNER_WINDOW_WIDTH=600,a.INNER_WINDOW_HEIGHT=600,a.SSO="https://sso.supermap.com",a.ONLINE="http://www.supermapol.com",i.SuperMap.SecurityManager=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Credential=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=o(0);
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a = e.SecurityManager = function () { function t() { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t) } return n(t, null, [{ key: "generateToken", value: function (t, e) { var o = this.servers[t]; if (o) return r.FetchRequest.post(o.tokenServiceUrl, JSON.stringify(e.toJSON())).then(function (t) { return t.text() }) } }, { key: "registerServers", value: function (t) { this.servers = this.servers || {}, l.Util.isArray(t) || (t = [t]); for (var e = 0; e < t.length; e++) { var o = t[e]; this.servers[o.server] = o } } }, { key: "registerToken", value: function (t, e) { if (this.tokens = this.tokens || {}, t && e) { var o = this._getTokenStorageKey(t); this.tokens[o] = e } } }, { key: "registerKey", value: function (t, e) { if (this.keys = this.keys || {}, t && !(t.length < 1) && e) { t = l.Util.isArray(t) ? t : [t]; for (var o = 0; o < t.length; o++) { var n = this._getUrlRestString(t[0]) || t[0]; this.keys[n] = e } } } }, { key: "getServerInfo", value: function (t) { return this.servers = this.servers || {}, this.servers[t] } }, { key: "getToken", value: function (t) { if (t) { this.tokens = this.tokens || {}; var e = this._getTokenStorageKey(t); return this.tokens[e] } } }, { key: "getKey", value: function (t) { this.keys = this.keys || {}; var e = this._getUrlRestString(t) || t; return this.keys[e] } }, { key: "loginiServer", value: function (t, e, o, n) { t += "/" === t.substr(t.length - 1, 1) ? "services/security/login.json" : "/services/security/login.json"; var i = { username: e && e.toString(), password: o && o.toString(), rememberme: n }; i = JSON.stringify(i); return r.FetchRequest.post(t, i, { headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" } }).then(function (t) { return t.json() }) } }, { key: "logoutiServer", value: function (t) { t += "/" === t.substr(t.length - 1, 1) ? "services/security/logout" : "/services/security/logout"; return r.FetchRequest.get(t, "", { headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, withoutFormatSuffix: !0 }).then(function () { return !0 }).catch(function () { return !1 }) } }, { key: "loginOnline", value: function (e, o) { var n = t.SSO + "/login?service=" + e; this._open(n, o) } }, { key: "loginiPortal", value: function (t, e, o) { t += "/" === t.substr(t.length - 1, 1) ? "web/login.json" : "/web/login.json"; var n = { username: e && e.toString(), password: o && o.toString() }; n = JSON.stringify(n); return r.FetchRequest.post(t, n, { headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, withCredentials: !0 }).then(function (t) { return t.json() }) } }, { key: "logoutiPortal", value: function (t) { t += "/" === t.substr(t.length - 1, 1) ? "services/security/logout" : "/services/security/logout"; return r.FetchRequest.get(t, "", { headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, withCredentials: !0, withoutFormatSuffix: !0 }).then(function () { return !0 }).catch(function () { return !1 }) } }, { key: "loginManager", value: function (t, e, o) { if (l.Util.isInTheSameDomain(t)) { var n = "/" === t.substr(t.length - 1, 1) ? t + "icloud/security/tokens.json" : t + "/icloud/security/tokens.json", i = e || {}, a = { username: i.userName && i.userName.toString(), password: i.password && i.password.toString() }; a = JSON.stringify(a); var s = this; return r.FetchRequest.post(n, a, { headers: { Accept: "*/*", "Content-Type": "application/json" } }).then(function (t) { t.text().then(function (t) { return s.imanagerToken = t, t }) }) } var u = !o || o.isNewTab; this._open(t, u) } }, { key: "destroyAllCredentials", value: function () { this.keys = null, this.tokens = null, this.servers = null } }, { key: "destroyToken", value: function (t) { if (t) { var e = this._getTokenStorageKey(t); this.tokens = this.tokens || {}, this.tokens[e] && delete this.tokens[e] } } }, { key: "destroyKey", value: function (t) { if (t) { this.keys = this.keys || {}; var e = this._getUrlRestString(t) || t; this.keys[e] && delete this.keys[e] } } }, { key: "_open", value: function (t, e) { e = null == e || e; var o = window.screen.availWidth / 2 - this.INNER_WINDOW_WIDTH / 2, n = window.screen.availHeight / 2 - this.INNER_WINDOW_HEIGHT / 2, i = "height=" + this.INNER_WINDOW_HEIGHT + ", width=" + this.INNER_WINDOW_WIDTH + ",top=" + n + ", left=" + o + ",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no"; e ? window.open(t, "login") : window.open(t, "login", i) } }, { key: "_getTokenStorageKey", value: function (t) { var e = t.match(/(.*?):\/\/([^\/]+)/i); return e ? e[0] : t } }, { key: "_getUrlRestString", value: function (t) { if (!t) return t; var e = t.match(/http:\/\/(.*\/rest)/i); return e ? e[0] : t } }]), t }(); a.INNER_WINDOW_WIDTH = 600, a.INNER_WINDOW_HEIGHT = 600, a.SSO = "https://sso.supermap.com", a.ONLINE = "http://www.supermapol.com", i.SuperMap.SecurityManager = a
+ }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Credential = void 0; var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), i = o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Credential=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e||"",this.name=o||"token",this.CLASS_NAME="SuperMap.Credential"}return n(t,[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}]),t}();l.CREDENTIAL=null,i.SuperMap.Credential=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=o(0),i=o(1),l=e.Event=n.SuperMap.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(t){return t.target||t.srcElement},isSingleTouch:function(t){return t.touches&&1===t.touches.length},isMultiTouch:function(t){return t.touches&&t.touches.length>1},isLeftClick:function(t){return t.which&&1===t.which||t.button&&1===t.button},isRightClick:function(t){return t.which&&3===t.which||t.button&&2===t.button},stop:function(t,e){e||(t.preventDefault?t.preventDefault():t.returnValue=!1),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},findElement:function(t,e){for(var o=n.SuperMap.Event.element(t);o.parentNode&&(!o.tagName||o.tagName.toUpperCase()!=e.toUpperCase());)o=o.parentNode;return o},observe:function(t,e,o,n){var l=i.Util.getElement(t);if(n=n||!1,"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||l.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!l._eventCacheID){var r="eventCacheID_";l.id&&(r=l.id+"_"+r),l._eventCacheID=i.Util.createUniqueID(r)}var a=l._eventCacheID;this.observers[a]||(this.observers[a]=[]),this.observers[a].push({element:l,name:e,observer:o,useCapture:n}),l.addEventListener?l.addEventListener(e,o,n):l.attachEvent&&l.attachEvent("on"+e,o)},stopObservingElement:function(t){var e=i.Util.getElement(t)._eventCacheID;this._removeElementObservers(n.SuperMap.Event.observers[e])},_removeElementObservers:function(t){if(t)for(var e=t.length-1;e>=0;e--){var o=t[e],i=new Array(o.element,o.name,o.observer,o.useCapture);n.SuperMap.Event.stopObserving.apply(this,i)}},stopObserving:function(t,e,o,l){l=l||!1;var r=i.Util.getElement(t),a=r._eventCacheID;"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||r.detachEvent)&&(e="keydown");var s=!1,u=n.SuperMap.Event.observers[a];if(u)for(var p=0;!s&&p<u.length;){var c=u[p];if(c.name===e&&c.observer===o&&c.useCapture===l){u.splice(p,1),0==u.length&&delete n.SuperMap.Event.observers[a],s=!0;break}p++}return s&&(r.removeEventListener?r.removeEventListener(e,o,l):r&&r.detachEvent&&r.detachEvent("on"+e,o)),s},unloadCache:function(){if(n.SuperMap.Event&&n.SuperMap.Event.observers){for(var t in n.SuperMap.Event.observers){var e=n.SuperMap.Event.observers[t];n.SuperMap.Event._removeElementObservers.apply(this,[e])}n.SuperMap.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};n.SuperMap.Event=l,n.SuperMap.Event.observe(window,"unload",n.SuperMap.Event.unloadCache,!1)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pixel=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=o(0);
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l = e.Credential = function () { function t(e, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.value = e || "", this.name = o || "token", this.CLASS_NAME = "SuperMap.Credential" } return n(t, [{ key: "getUrlParameters", value: function () { return this.name + "=" + this.value } }, { key: "getValue", value: function () { return this.value } }, { key: "destroy", value: function () { this.value = null, this.name = null } }]), t }(); l.CREDENTIAL = null, i.SuperMap.Credential = l
+ }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Event = void 0; var n = o(0), i = o(1), l = e.Event = n.SuperMap.Event = { observers: !1, KEY_SPACE: 32, KEY_BACKSPACE: 8, KEY_TAB: 9, KEY_RETURN: 13, KEY_ESC: 27, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT: 39, KEY_DOWN: 40, KEY_DELETE: 46, element: function (t) { return t.target || t.srcElement }, isSingleTouch: function (t) { return t.touches && 1 === t.touches.length }, isMultiTouch: function (t) { return t.touches && t.touches.length > 1 }, isLeftClick: function (t) { return t.which && 1 === t.which || t.button && 1 === t.button }, isRightClick: function (t) { return t.which && 3 === t.which || t.button && 2 === t.button }, stop: function (t, e) { e || (t.preventDefault ? t.preventDefault() : t.returnValue = !1), t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0 }, findElement: function (t, e) { for (var o = n.SuperMap.Event.element(t); o.parentNode && (!o.tagName || o.tagName.toUpperCase() != e.toUpperCase());)o = o.parentNode; return o }, observe: function (t, e, o, n) { var l = i.Util.getElement(t); if (n = n || !1, "keypress" === e && (navigator.appVersion.match(/Konqueror|Safari|KHTML/) || l.attachEvent) && (e = "keydown"), this.observers || (this.observers = {}), !l._eventCacheID) { var r = "eventCacheID_"; l.id && (r = l.id + "_" + r), l._eventCacheID = i.Util.createUniqueID(r) } var a = l._eventCacheID; this.observers[a] || (this.observers[a] = []), this.observers[a].push({ element: l, name: e, observer: o, useCapture: n }), l.addEventListener ? l.addEventListener(e, o, n) : l.attachEvent && l.attachEvent("on" + e, o) }, stopObservingElement: function (t) { var e = i.Util.getElement(t)._eventCacheID; this._removeElementObservers(n.SuperMap.Event.observers[e]) }, _removeElementObservers: function (t) { if (t) for (var e = t.length - 1; e >= 0; e--) { var o = t[e], i = new Array(o.element, o.name, o.observer, o.useCapture); n.SuperMap.Event.stopObserving.apply(this, i) } }, stopObserving: function (t, e, o, l) { l = l || !1; var r = i.Util.getElement(t), a = r._eventCacheID; "keypress" === e && (navigator.appVersion.match(/Konqueror|Safari|KHTML/) || r.detachEvent) && (e = "keydown"); var s = !1, u = n.SuperMap.Event.observers[a]; if (u) for (var p = 0; !s && p < u.length;) { var c = u[p]; if (c.name === e && c.observer === o && c.useCapture === l) { u.splice(p, 1), 0 == u.length && delete n.SuperMap.Event.observers[a], s = !0; break } p++ } return s && (r.removeEventListener ? r.removeEventListener(e, o, l) : r && r.detachEvent && r.detachEvent("on" + e, o)), s }, unloadCache: function () { if (n.SuperMap.Event && n.SuperMap.Event.observers) { for (var t in n.SuperMap.Event.observers) { var e = n.SuperMap.Event.observers[t]; n.SuperMap.Event._removeElementObservers.apply(this, [e]) } n.SuperMap.Event.observers = !1 } }, CLASS_NAME: "SuperMap.Event" }; n.SuperMap.Event = l, n.SuperMap.Event.observe(window, "unload", n.SuperMap.Event.unloadCache, !1) }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Pixel = void 0; var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), i = o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Pixel=function(){function t(e,o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e?parseFloat(e):0,this.y=o?parseFloat(o):0,this.mode=n,this.CLASS_NAME="SuperMap.Pixel",i.SuperMap.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}return n(t,[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new t(this.x,this.y,this.mode)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Pixel.add cannot receive null values");return new t(this.x+e,this.y+o)}},{key:"offset",value:function(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}]),t}();i.SuperMap.Pixel=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),l=o(0),r=o(105),a=o(104),s=o(2),u=o(1);var p=e.Events=function(){function t(e,o,n,i,l){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=i,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,u.Util.extend(this,l),null!=n)for(var r=0,a=n.length;r<a;r++)this.addEventType(n[r]);null!=o&&this.attachToElement(o),this.CLASS_NAME="SuperMap.Events"}return i(t,[{key:"destroy",value:function(){for(var t in this.extensions)"boolean"!=typeof this.extensions[t]&&this.extensions[t].destroy();this.extensions=null,this.element&&(a.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&a.Event.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(t){this.listeners[t]||(this.eventTypes.push(t),this.listeners[t]=[])}},{key:"attachToElement",value:function(t){this.element?a.Event.stopObservingElement(this.element):(this.eventHandler=s.FunctionExt.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=s.FunctionExt.bind(this.clearMouseCache,this)),this.element=t;for(var e=0,o=this.BROWSER_EVENTS.length;e<o;e++){var n=this.BROWSER_EVENTS[e];this.addEventType(n),a.Event.observe(t,n,this.eventHandler)}a.Event.observe(t,"dragstart",a.Event.stop)}},{key:"on",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.register(e,t.scope,t[e])}},{key:"register",value:function(e,o,i,l){if(e in t&&!this.extensions[e]&&(this.extensions[e]=new t[e](this)),null!=i&&-1!==u.Util.indexOf(this.eventTypes,e)){null==o&&(o=this.object);var r=this.listeners[e];r||(r=[],this.listeners[e]=r,this.extensionCount[e]=0);var a={obj:o,func:i};l?(r.splice(this.extensionCount[e],0,a),"object"===(void 0===l?"undefined":n(l))&&l.extension&&this.extensionCount[e]++):r.push(a)}}},{key:"registerPriority",value:function(t,e,o){this.register(t,e,o,!0)}},{key:"un",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.unregister(e,t.scope,t[e])}},{key:"unregister",value:function(t,e,o){null==e&&(e=this.object);var n=this.listeners[t];if(null!=n)for(var i=0,l=n.length;i<l;i++)if(n[i].obj===e&&n[i].func===o){n.splice(i,1);break}}},{key:"remove",value:function(t){null!=this.listeners[t]&&(this.listeners[t]=[])}},{key:"triggerEvent",value:function(t,e){var o=this.listeners[t];if(o&&0!=o.length){var n;null==e&&(e={}),e.object=this.object,e.element=this.element,e.type||(e.type=t);for(var i=0,l=(o=o.slice()).length;i<l;i++){var r=o[i];if(void 0!=(n=r.func.apply(r.obj,[e]))&&0==n)break}return this.fallThrough||a.Event.stop(e,!0),n}}},{key:"handleBrowserEvent",value:function(t){var e=t.type,o=this.listeners[e];if(o&&0!=o.length){var n=t.touches;if(n&&n[0]){for(var i,l=0,r=0,a=n.length,s=0;s<a;++s)l+=(i=n[s]).clientX,r+=i.clientY;t.clientX=l/a,t.clientY=r/a}this.includeXY&&(t.xy=this.getMousePosition(t)),this.triggerEvent(e,t)}}},{key:"clearMouseCache",value:function(){this.element.scrolls=null,this.element.lefttop=null;var t=document.body;t&&(0==t.scrollTop&&0==t.scrollLeft||!navigator.userAgent.match(/iPhone/i))&&(this.element.offsets=null)}},{key:"getMousePosition",value:function(t){if(this.includeXY?this.element.hasScrollEvent||(a.Event.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache(),!this.element.scrolls){var e=u.Util.getViewportElement();this.element.scrolls=[e.scrollLeft,e.scrollTop]}return this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]),this.element.offsets||(this.element.offsets=u.Util.pagePosition(this.element)),new r.Pixel(t.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],t.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])}}]),t}();l.SuperMap.Events=p,l.SuperMap.Events.prototype.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"]},function(t,e,o){"use strict";var n,i,l;i=[e,t],void 0===(l="function"==typeof(n=function(t,e){var o={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function n(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}e.exports=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],l=t,r=e.timeout||o.timeout,a=e.jsonpCallback||o.jsonpCallback,s=void 0;return new Promise(function(o,u){var p=e.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),c=a+"_"+p;window[p]=function(t){o({ok:!0,json:function(){return Promise.resolve(t)}}),s&&clearTimeout(s),i(c),n(p)},l+=-1===l.indexOf("?")?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+l+a+"="+p),y.id=c,document.getElementsByTagName("head")[0].appendChild(y),s=setTimeout(function(){u(new Error("JSONP request to "+t+" timed out")),n(p),i(c)},r)})}})?n.apply(e,i):n)||(t.exports=l)},function(t,e,o){"use strict";!function(e){if(e.__disableNativeFetch||!e.fetch){a.prototype.append=function(t,e){t=l(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},a.prototype.delete=function(t){delete this.map[l(t)]},a.prototype.get=function(t){var e=this.map[l(t)];return e?e[0]:null},a.prototype.getAll=function(t){return this.map[l(t)]||[]},a.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},a.prototype.set=function(t,e){this.map[l(t)]=[r(e)]},a.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(o){this.map[o].forEach(function(n){t.call(e,n,o,this)},this)},this)};var o={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},n=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this)},c.call(y.prototype),c.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},h.error=function(){var t=new h(null,{status:0,statusText:""});return t.type="error",t};var i=[301,302,303,307,308];h.redirect=function(t,e){if(-1===i.indexOf(e))throw new RangeError("Invalid status code");return new h(null,{status:e,headers:{location:t}})},e.Headers=a,e.Request=y,e.Response=h,e.fetch=function(t,e){return new Promise(function(n,i){var l;l=y.prototype.isPrototypeOf(t)&&!e?t:new y(t,e);var r=new XMLHttpRequest;var s=!1;function u(){if(4===r.readyState){var t=1223===r.status?204:r.status;if(t<100||t>599){if(s)return;return s=!0,void i(new TypeError("Network request failed"))}var e={status:t,statusText:r.statusText,headers:function(t){var e=new a;return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){var o=t.trim().split(":"),n=o.shift().trim(),i=o.join(":").trim();e.append(n,i)}),e}(r),url:"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0},o="response"in r?r.response:r.responseText;s||(s=!0,n(new h(o,e)))}}r.onreadystatechange=u,r.onload=u,r.onerror=function(){s||(s=!0,i(new TypeError("Network request failed")))},r.open(l.method,l.url,!0);try{"include"===l.credentials&&("withCredentials"in r?r.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(t){console&&console.warn&&console.warn("set withCredentials error:"+t)}"responseType"in r&&o.blob&&(r.responseType="blob"),l.headers.forEach(function(t,e){r.setRequestHeader(e,t)}),r.send(void 0===l._bodyInit?null:l._bodyInit)})},e.fetch.polyfill=!0,void 0!==t&&t.exports&&(t.exports=e.fetch)}function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function p(t){var e=new FileReader;return e.readAsArrayBuffer(t),u(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t,e){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(o.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t,this._options=e;else if(o.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!o.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText=""},o.blob?(this.blob=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(p)},this.text=function(){var t,e,o,n,i,l,r,a=s(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,e=this._options,o=new FileReader,n=e.headers.map["content-type"]?e.headers.map["content-type"].toString():"",i=/charset\=[0-9a-zA-Z\-\_]*;?/,l=t.type.match(i)||n.match(i),r=[t],l&&r.push(l[0].replace(/^charset\=/,"").replace(/;$/,"")),o.readAsText.apply(o,r),u(o);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=s(this);return t||Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}function y(t,e){var o,i,l=(e=e||{}).body;if(y.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,l||(l=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new a(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),n.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&l)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(l,e)}function P(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var o=t.split("="),n=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function h(t,e){e||(e={}),this._initBody(t,e),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof a?e.headers:new a(e.headers),this.url=e.url||""}}("undefined"!=typeof self?self:void 0)},function(t,e,o){"use strict";var n,i,l=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var u,p=[],c=!1,y=-1;function P(){c&&u&&(c=!1,u.length?p=u.concat(p):y=-1,p.length&&h())}function h(){if(!c){var t=s(P);c=!0;for(var e=p.length;e;){for(u=p,p=[];++y<e;)u&&u[y].run();y=-1,e=p.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function S(){}l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];p.push(new f(t,e)),1!==p.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=S,l.addListener=S,l.once=S,l.off=S,l.removeListener=S,l.removeAllListeners=S,l.emit=S,l.prependListener=S,l.prependOnceListener=S,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,o){"use strict";(function(t,e){!function(t,o){if(!t.setImmediate){var n,i,l,r,a,s=1,u={},p=!1,c=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick(function(){h(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,o=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=o,e}}()?t.MessageChannel?((l=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){l.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,n=function(t){var e=c.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(r="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&h(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(r+e,"*")}),y.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),o=0;o<e.length;o++)e[o]=arguments[o+1];var i={callback:t,args:e};return u[s]=i,n(s),s++},y.clearImmediate=P}function P(t){delete u[t]}function h(t){if(p)setTimeout(h,0,t);else{var e=u[t];if(e){p=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(o,n)}}(e)}finally{P(t),p=!1}}}}}("undefined"==typeof self?void 0===t?void 0:t:self)}).call(this,o(4),o(109))},function(t,e,o){"use strict";(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function l(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new l(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new l(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(110),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||void 0,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||void 0}).call(this,o(4))},function(t,e,o){"use strict";(function(e){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(n){var i=setTimeout;function l(){}function r(t){if("object"!==o(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn(function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null!==o){var n;try{n=o(t._value)}catch(t){return void u(e.promise,t)}s(e.promise,n)}else(1===t._state?s:u)(e.promise,t._value)})):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===(void 0===e?"undefined":o(e))||"function"==typeof e)){var n=e.then;if(e instanceof r)return t._state=3,t._value=e,void p(t);if("function"==typeof n)return void c((i=n,l=e,function(){i.apply(l,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){u(t,e)}var i,l}function u(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&r._immediateFn(function(){t._handled||r._unhandledRejectionFn(t._value)});for(var e=0,o=t._deferreds.length;e<o;e++)a(t,t._deferreds[e]);t._deferreds=null}function c(t,e){var o=!1;try{t(function(t){o||(o=!0,s(e,t))},function(t){o||(o=!0,u(e,t))})}catch(t){if(o)return;o=!0,u(e,t)}}r.prototype.catch=function(t){return this.then(null,t)},r.prototype.then=function(t,e){var o=new this.constructor(l);return a(this,new function(t,e,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=o}(t,e,o)),o},r.all=function(t){var e=Array.prototype.slice.call(t);return new r(function(t,n){if(0===e.length)return t([]);var i=e.length;function l(r,a){try{if(a&&("object"===(void 0===a?"undefined":o(a))||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){l(r,t)},n)}e[r]=a,0==--i&&t(e)}catch(t){n(t)}}for(var r=0;r<e.length;r++)l(r,e[r])})},r.resolve=function(t){return t&&"object"===(void 0===t?"undefined":o(t))&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(t){return new r(function(e,o){o(t)})},r.race=function(t){return new r(function(e,o){for(var n=0,i=t.length;n<i;n++)t[n].then(e,o)})},r._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){i(t,0)},r._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},r._setImmediateFn=function(t){r._immediateFn=t},r._setUnhandledRejectionFn=function(t){r._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=r:n.Promise||(n.Promise=r)}(void 0)}).call(this,o(111).setImmediate)},function(t,e,o){"use strict";var n,i=o(112),l=(n=i)&&n.__esModule?n:{default:n};window.Promise=l.default},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommonServiceBase=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),i=o(0),l=o(5),r=o(106),a=o(103),s=o(102),u=o(1),p=o(101),c=o(100),y=o(2);
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l = e.Pixel = function () { function t(e, o, n) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.x = e ? parseFloat(e) : 0, this.y = o ? parseFloat(o) : 0, this.mode = n, this.CLASS_NAME = "SuperMap.Pixel", i.SuperMap.Pixel.Mode = { LeftTop: "lefttop", RightTop: "righttop", RightBottom: "rightbottom", LeftBottom: "leftbottom" } } return n(t, [{ key: "toString", value: function () { return "x=" + this.x + ",y=" + this.y } }, { key: "clone", value: function () { return new t(this.x, this.y, this.mode) } }, { key: "equals", value: function (t) { var e = !1; return null != t && (e = this.x == t.x && this.y == t.y || isNaN(this.x) && isNaN(this.y) && isNaN(t.x) && isNaN(t.y)), e } }, { key: "distanceTo", value: function (t) { return Math.sqrt(Math.pow(this.x - t.x, 2) + Math.pow(this.y - t.y, 2)) } }, { key: "add", value: function (e, o) { if (null == e || null == o) throw new TypeError("Pixel.add cannot receive null values"); return new t(this.x + e, this.y + o) } }, { key: "offset", value: function (t) { var e = this.clone(); return t && (e = this.add(t.x, t.y)), e } }, { key: "destroy", value: function () { this.x = null, this.y = null, this.mode = null } }]), t }(); i.SuperMap.Pixel = l
+ }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Events = void 0; var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, i = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), l = o(0), r = o(105), a = o(104), s = o(2), u = o(1); var p = e.Events = function () { function t(e, o, n, i, l) { if (function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), this.BROWSER_EVENTS = ["mouseover", "mouseout", "mousedown", "mouseup", "mousemove", "click", "dblclick", "rightclick", "dblrightclick", "resize", "focus", "blur", "touchstart", "touchmove", "touchend", "keydown", "MSPointerDown", "MSPointerUp", "pointerdown", "pointerup", "MSGestureStart", "MSGestureChange", "MSGestureEnd", "contextmenu"], this.listeners = {}, this.object = e, this.element = null, this.eventTypes = [], this.eventHandler = null, this.fallThrough = i, this.includeXY = !1, this.extensions = {}, this.extensionCount = {}, this.clearMouseListener = null, u.Util.extend(this, l), null != n) for (var r = 0, a = n.length; r < a; r++)this.addEventType(n[r]); null != o && this.attachToElement(o), this.CLASS_NAME = "SuperMap.Events" } return i(t, [{ key: "destroy", value: function () { for (var t in this.extensions) "boolean" != typeof this.extensions[t] && this.extensions[t].destroy(); this.extensions = null, this.element && (a.Event.stopObservingElement(this.element), this.element.hasScrollEvent && a.Event.stopObserving(window, "scroll", this.clearMouseListener)), this.element = null, this.listeners = null, this.object = null, this.eventTypes = null, this.fallThrough = null, this.eventHandler = null } }, { key: "addEventType", value: function (t) { this.listeners[t] || (this.eventTypes.push(t), this.listeners[t] = []) } }, { key: "attachToElement", value: function (t) { this.element ? a.Event.stopObservingElement(this.element) : (this.eventHandler = s.FunctionExt.bindAsEventListener(this.handleBrowserEvent, this), this.clearMouseListener = s.FunctionExt.bind(this.clearMouseCache, this)), this.element = t; for (var e = 0, o = this.BROWSER_EVENTS.length; e < o; e++) { var n = this.BROWSER_EVENTS[e]; this.addEventType(n), a.Event.observe(t, n, this.eventHandler) } a.Event.observe(t, "dragstart", a.Event.stop) } }, { key: "on", value: function (t) { for (var e in t) "scope" !== e && t.hasOwnProperty(e) && this.register(e, t.scope, t[e]) } }, { key: "register", value: function (e, o, i, l) { if (e in t && !this.extensions[e] && (this.extensions[e] = new t[e](this)), null != i && -1 !== u.Util.indexOf(this.eventTypes, e)) { null == o && (o = this.object); var r = this.listeners[e]; r || (r = [], this.listeners[e] = r, this.extensionCount[e] = 0); var a = { obj: o, func: i }; l ? (r.splice(this.extensionCount[e], 0, a), "object" === (void 0 === l ? "undefined" : n(l)) && l.extension && this.extensionCount[e]++) : r.push(a) } } }, { key: "registerPriority", value: function (t, e, o) { this.register(t, e, o, !0) } }, { key: "un", value: function (t) { for (var e in t) "scope" !== e && t.hasOwnProperty(e) && this.unregister(e, t.scope, t[e]) } }, { key: "unregister", value: function (t, e, o) { null == e && (e = this.object); var n = this.listeners[t]; if (null != n) for (var i = 0, l = n.length; i < l; i++)if (n[i].obj === e && n[i].func === o) { n.splice(i, 1); break } } }, { key: "remove", value: function (t) { null != this.listeners[t] && (this.listeners[t] = []) } }, { key: "triggerEvent", value: function (t, e) { var o = this.listeners[t]; if (o && 0 != o.length) { var n; null == e && (e = {}), e.object = this.object, e.element = this.element, e.type || (e.type = t); for (var i = 0, l = (o = o.slice()).length; i < l; i++) { var r = o[i]; if (void 0 != (n = r.func.apply(r.obj, [e])) && 0 == n) break } return this.fallThrough || a.Event.stop(e, !0), n } } }, { key: "handleBrowserEvent", value: function (t) { var e = t.type, o = this.listeners[e]; if (o && 0 != o.length) { var n = t.touches; if (n && n[0]) { for (var i, l = 0, r = 0, a = n.length, s = 0; s < a; ++s)l += (i = n[s]).clientX, r += i.clientY; t.clientX = l / a, t.clientY = r / a } this.includeXY && (t.xy = this.getMousePosition(t)), this.triggerEvent(e, t) } } }, { key: "clearMouseCache", value: function () { this.element.scrolls = null, this.element.lefttop = null; var t = document.body; t && (0 == t.scrollTop && 0 == t.scrollLeft || !navigator.userAgent.match(/iPhone/i)) && (this.element.offsets = null) } }, { key: "getMousePosition", value: function (t) { if (this.includeXY ? this.element.hasScrollEvent || (a.Event.observe(window, "scroll", this.clearMouseListener), this.element.hasScrollEvent = !0) : this.clearMouseCache(), !this.element.scrolls) { var e = u.Util.getViewportElement(); this.element.scrolls = [e.scrollLeft, e.scrollTop] } return this.element.lefttop || (this.element.lefttop = [document.documentElement.clientLeft || 0, document.documentElement.clientTop || 0]), this.element.offsets || (this.element.offsets = u.Util.pagePosition(this.element)), new r.Pixel(t.clientX + this.element.scrolls[0] - this.element.offsets[0] - this.element.lefttop[0], t.clientY + this.element.scrolls[1] - this.element.offsets[1] - this.element.lefttop[1]) } }]), t }(); l.SuperMap.Events = p, l.SuperMap.Events.prototype.BROWSER_EVENTS = ["mouseover", "mouseout", "mousedown", "mouseup", "mousemove", "click", "dblclick", "rightclick", "dblrightclick", "resize", "focus", "blur", "touchstart", "touchmove", "touchend", "keydown", "MSPointerDown", "MSPointerUp", "pointerdown", "pointerup", "MSGestureStart", "MSGestureChange", "MSGestureEnd", "contextmenu"] }, function (t, e, o) { "use strict"; var n, i, l; i = [e, t], void 0 === (l = "function" == typeof (n = function (t, e) { var o = { timeout: 5e3, jsonpCallback: "callback", jsonpCallbackFunction: null }; function n(t) { try { delete window[t] } catch (e) { window[t] = void 0 } } function i(t) { var e = document.getElementById(t); document.getElementsByTagName("head")[0].removeChild(e) } e.exports = function (t) { var e = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1], l = t, r = e.timeout || o.timeout, a = e.jsonpCallback || o.jsonpCallback, s = void 0; return new Promise(function (o, u) { var p = e.jsonpCallbackFunction || "jsonp_" + Date.now() + "_" + Math.ceil(1e5 * Math.random()), c = a + "_" + p; window[p] = function (t) { o({ ok: !0, json: function () { return Promise.resolve(t) } }), s && clearTimeout(s), i(c), n(p) }, l += -1 === l.indexOf("?") ? "?" : "&"; var y = document.createElement("script"); y.setAttribute("src", "" + l + a + "=" + p), y.id = c, document.getElementsByTagName("head")[0].appendChild(y), s = setTimeout(function () { u(new Error("JSONP request to " + t + " timed out")), n(p), i(c) }, r) }) } }) ? n.apply(e, i) : n) || (t.exports = l) }, function (t, e, o) { "use strict"; !function (e) { if (e.__disableNativeFetch || !e.fetch) { a.prototype.append = function (t, e) { t = l(t), e = r(e); var o = this.map[t]; o || (o = [], this.map[t] = o), o.push(e) }, a.prototype.delete = function (t) { delete this.map[l(t)] }, a.prototype.get = function (t) { var e = this.map[l(t)]; return e ? e[0] : null }, a.prototype.getAll = function (t) { return this.map[l(t)] || [] }, a.prototype.has = function (t) { return this.map.hasOwnProperty(l(t)) }, a.prototype.set = function (t, e) { this.map[l(t)] = [r(e)] }, a.prototype.forEach = function (t, e) { Object.getOwnPropertyNames(this.map).forEach(function (o) { this.map[o].forEach(function (n) { t.call(e, n, o, this) }, this) }, this) }; var o = { blob: "FileReader" in e && "Blob" in e && function () { try { return new Blob, !0 } catch (t) { return !1 } }(), formData: "FormData" in e, arrayBuffer: "ArrayBuffer" in e }, n = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; y.prototype.clone = function () { return new y(this) }, c.call(y.prototype), c.call(h.prototype), h.prototype.clone = function () { return new h(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new a(this.headers), url: this.url }) }, h.error = function () { var t = new h(null, { status: 0, statusText: "" }); return t.type = "error", t }; var i = [301, 302, 303, 307, 308]; h.redirect = function (t, e) { if (-1 === i.indexOf(e)) throw new RangeError("Invalid status code"); return new h(null, { status: e, headers: { location: t } }) }, e.Headers = a, e.Request = y, e.Response = h, e.fetch = function (t, e) { return new Promise(function (n, i) { var l; l = y.prototype.isPrototypeOf(t) && !e ? t : new y(t, e); var r = new XMLHttpRequest; var s = !1; function u() { if (4 === r.readyState) { var t = 1223 === r.status ? 204 : r.status; if (t < 100 || t > 599) { if (s) return; return s = !0, void i(new TypeError("Network request failed")) } var e = { status: t, statusText: r.statusText, headers: function (t) { var e = new a; return t.getAllResponseHeaders().trim().split("\n").forEach(function (t) { var o = t.trim().split(":"), n = o.shift().trim(), i = o.join(":").trim(); e.append(n, i) }), e }(r), url: "responseURL" in r ? r.responseURL : /^X-Request-URL:/m.test(r.getAllResponseHeaders()) ? r.getResponseHeader("X-Request-URL") : void 0 }, o = "response" in r ? r.response : r.responseText; s || (s = !0, n(new h(o, e))) } } r.onreadystatechange = u, r.onload = u, r.onerror = function () { s || (s = !0, i(new TypeError("Network request failed"))) }, r.open(l.method, l.url, !0); try { "include" === l.credentials && ("withCredentials" in r ? r.withCredentials = !0 : console && console.warn && console.warn("withCredentials is not supported, you can ignore this warning")) } catch (t) { console && console.warn && console.warn("set withCredentials error:" + t) } "responseType" in r && o.blob && (r.responseType = "blob"), l.headers.forEach(function (t, e) { r.setRequestHeader(e, t) }), r.send(void 0 === l._bodyInit ? null : l._bodyInit) }) }, e.fetch.polyfill = !0, void 0 !== t && t.exports && (t.exports = e.fetch) } function l(t) { if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)) throw new TypeError("Invalid character in header field name"); return t.toLowerCase() } function r(t) { return "string" != typeof t && (t = String(t)), t } function a(t) { this.map = {}, t instanceof a ? t.forEach(function (t, e) { this.append(e, t) }, this) : t && Object.getOwnPropertyNames(t).forEach(function (e) { this.append(e, t[e]) }, this) } function s(t) { if (t.bodyUsed) return Promise.reject(new TypeError("Already read")); t.bodyUsed = !0 } function u(t) { return new Promise(function (e, o) { t.onload = function () { e(t.result) }, t.onerror = function () { o(t.error) } }) } function p(t) { var e = new FileReader; return e.readAsArrayBuffer(t), u(e) } function c() { return this.bodyUsed = !1, this._initBody = function (t, e) { if (this._bodyInit = t, "string" == typeof t) this._bodyText = t; else if (o.blob && Blob.prototype.isPrototypeOf(t)) this._bodyBlob = t, this._options = e; else if (o.formData && FormData.prototype.isPrototypeOf(t)) this._bodyFormData = t; else if (t) { if (!o.arrayBuffer || !ArrayBuffer.prototype.isPrototypeOf(t)) throw new Error("unsupported BodyInit type") } else this._bodyText = "" }, o.blob ? (this.blob = function () { var t = s(this); if (t) return t; if (this._bodyBlob) return Promise.resolve(this._bodyBlob); if (this._bodyFormData) throw new Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])) }, this.arrayBuffer = function () { return this.blob().then(p) }, this.text = function () { var t, e, o, n, i, l, r, a = s(this); if (a) return a; if (this._bodyBlob) return t = this._bodyBlob, e = this._options, o = new FileReader, n = e.headers.map["content-type"] ? e.headers.map["content-type"].toString() : "", i = /charset\=[0-9a-zA-Z\-\_]*;?/, l = t.type.match(i) || n.match(i), r = [t], l && r.push(l[0].replace(/^charset\=/, "").replace(/;$/, "")), o.readAsText.apply(o, r), u(o); if (this._bodyFormData) throw new Error("could not read FormData body as text"); return Promise.resolve(this._bodyText) }) : this.text = function () { var t = s(this); return t || Promise.resolve(this._bodyText) }, o.formData && (this.formData = function () { return this.text().then(P) }), this.json = function () { return this.text().then(JSON.parse) }, this } function y(t, e) { var o, i, l = (e = e || {}).body; if (y.prototype.isPrototypeOf(t)) { if (t.bodyUsed) throw new TypeError("Already read"); this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new a(t.headers)), this.method = t.method, this.mode = t.mode, l || (l = t._bodyInit, t.bodyUsed = !0) } else this.url = t; if (this.credentials = e.credentials || this.credentials || "omit", !e.headers && this.headers || (this.headers = new a(e.headers)), this.method = (o = e.method || this.method || "GET", i = o.toUpperCase(), n.indexOf(i) > -1 ? i : o), this.mode = e.mode || this.mode || null, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && l) throw new TypeError("Body not allowed for GET or HEAD requests"); this._initBody(l, e) } function P(t) { var e = new FormData; return t.trim().split("&").forEach(function (t) { if (t) { var o = t.split("="), n = o.shift().replace(/\+/g, " "), i = o.join("=").replace(/\+/g, " "); e.append(decodeURIComponent(n), decodeURIComponent(i)) } }), e } function h(t, e) { e || (e = {}), this._initBody(t, e), this.type = "default", this.status = e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = e.statusText, this.headers = e.headers instanceof a ? e.headers : new a(e.headers), this.url = e.url || "" } }("undefined" != typeof self ? self : void 0) }, function (t, e, o) { "use strict"; var n, i, l = t.exports = {}; function r() { throw new Error("setTimeout has not been defined") } function a() { throw new Error("clearTimeout has not been defined") } function s(t) { if (n === setTimeout) return setTimeout(t, 0); if ((n === r || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0); try { return n(t, 0) } catch (e) { try { return n.call(null, t, 0) } catch (e) { return n.call(this, t, 0) } } } !function () { try { n = "function" == typeof setTimeout ? setTimeout : r } catch (t) { n = r } try { i = "function" == typeof clearTimeout ? clearTimeout : a } catch (t) { i = a } }(); var u, p = [], c = !1, y = -1; function P() { c && u && (c = !1, u.length ? p = u.concat(p) : y = -1, p.length && h()) } function h() { if (!c) { var t = s(P); c = !0; for (var e = p.length; e;) { for (u = p, p = []; ++y < e;)u && u[y].run(); y = -1, e = p.length } u = null, c = !1, function (t) { if (i === clearTimeout) return clearTimeout(t); if ((i === a || !i) && clearTimeout) return i = clearTimeout, clearTimeout(t); try { i(t) } catch (e) { try { return i.call(null, t) } catch (e) { return i.call(this, t) } } }(t) } } function f(t, e) { this.fun = t, this.array = e } function S() { } l.nextTick = function (t) { var e = new Array(arguments.length - 1); if (arguments.length > 1) for (var o = 1; o < arguments.length; o++)e[o - 1] = arguments[o]; p.push(new f(t, e)), 1 !== p.length || c || s(h) }, f.prototype.run = function () { this.fun.apply(null, this.array) }, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {}, l.on = S, l.addListener = S, l.once = S, l.off = S, l.removeListener = S, l.removeAllListeners = S, l.emit = S, l.prependListener = S, l.prependOnceListener = S, l.listeners = function (t) { return [] }, l.binding = function (t) { throw new Error("process.binding is not supported") }, l.cwd = function () { return "/" }, l.chdir = function (t) { throw new Error("process.chdir is not supported") }, l.umask = function () { return 0 } }, function (t, e, o) { "use strict"; (function (t, e) { !function (t, o) { if (!t.setImmediate) { var n, i, l, r, a, s = 1, u = {}, p = !1, c = t.document, y = Object.getPrototypeOf && Object.getPrototypeOf(t); y = y && y.setTimeout ? y : t, "[object process]" === {}.toString.call(t.process) ? n = function (t) { e.nextTick(function () { h(t) }) } : !function () { if (t.postMessage && !t.importScripts) { var e = !0, o = t.onmessage; return t.onmessage = function () { e = !1 }, t.postMessage("", "*"), t.onmessage = o, e } }() ? t.MessageChannel ? ((l = new MessageChannel).port1.onmessage = function (t) { h(t.data) }, n = function (t) { l.port2.postMessage(t) }) : c && "onreadystatechange" in c.createElement("script") ? (i = c.documentElement, n = function (t) { var e = c.createElement("script"); e.onreadystatechange = function () { h(t), e.onreadystatechange = null, i.removeChild(e), e = null }, i.appendChild(e) }) : n = function (t) { setTimeout(h, 0, t) } : (r = "setImmediate$" + Math.random() + "$", a = function (e) { e.source === t && "string" == typeof e.data && 0 === e.data.indexOf(r) && h(+e.data.slice(r.length)) }, t.addEventListener ? t.addEventListener("message", a, !1) : t.attachEvent("onmessage", a), n = function (e) { t.postMessage(r + e, "*") }), y.setImmediate = function (t) { "function" != typeof t && (t = new Function("" + t)); for (var e = new Array(arguments.length - 1), o = 0; o < e.length; o++)e[o] = arguments[o + 1]; var i = { callback: t, args: e }; return u[s] = i, n(s), s++ }, y.clearImmediate = P } function P(t) { delete u[t] } function h(t) { if (p) setTimeout(h, 0, t); else { var e = u[t]; if (e) { p = !0; try { !function (t) { var e = t.callback, n = t.args; switch (n.length) { case 0: e(); break; case 1: e(n[0]); break; case 2: e(n[0], n[1]); break; case 3: e(n[0], n[1], n[2]); break; default: e.apply(o, n) } }(e) } finally { P(t), p = !1 } } } } }("undefined" == typeof self ? void 0 === t ? void 0 : t : self) }).call(this, o(4), o(109)) }, function (t, e, o) { "use strict"; (function (t) { var n = void 0 !== t && t || "undefined" != typeof self && self || window, i = Function.prototype.apply; function l(t, e) { this._id = t, this._clearFn = e } e.setTimeout = function () { return new l(i.call(setTimeout, n, arguments), clearTimeout) }, e.setInterval = function () { return new l(i.call(setInterval, n, arguments), clearInterval) }, e.clearTimeout = e.clearInterval = function (t) { t && t.close() }, l.prototype.unref = l.prototype.ref = function () { }, l.prototype.close = function () { this._clearFn.call(n, this._id) }, e.enroll = function (t, e) { clearTimeout(t._idleTimeoutId), t._idleTimeout = e }, e.unenroll = function (t) { clearTimeout(t._idleTimeoutId), t._idleTimeout = -1 }, e._unrefActive = e.active = function (t) { clearTimeout(t._idleTimeoutId); var e = t._idleTimeout; e >= 0 && (t._idleTimeoutId = setTimeout(function () { t._onTimeout && t._onTimeout() }, e)) }, o(110), e.setImmediate = "undefined" != typeof self && self.setImmediate || void 0 !== t && t.setImmediate || void 0, e.clearImmediate = "undefined" != typeof self && self.clearImmediate || void 0 !== t && t.clearImmediate || void 0 }).call(this, o(4)) }, function (t, e, o) { "use strict"; (function (e) { var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }; !function (n) { var i = setTimeout; function l() { } function r(t) { if ("object" !== o(this)) throw new TypeError("Promises must be constructed via new"); if ("function" != typeof t) throw new TypeError("not a function"); this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], c(t, this) } function a(t, e) { for (; 3 === t._state;)t = t._value; 0 !== t._state ? (t._handled = !0, r._immediateFn(function () { var o = 1 === t._state ? e.onFulfilled : e.onRejected; if (null !== o) { var n; try { n = o(t._value) } catch (t) { return void u(e.promise, t) } s(e.promise, n) } else (1 === t._state ? s : u)(e.promise, t._value) })) : t._deferreds.push(e) } function s(t, e) { try { if (e === t) throw new TypeError("A promise cannot be resolved with itself."); if (e && ("object" === (void 0 === e ? "undefined" : o(e)) || "function" == typeof e)) { var n = e.then; if (e instanceof r) return t._state = 3, t._value = e, void p(t); if ("function" == typeof n) return void c((i = n, l = e, function () { i.apply(l, arguments) }), t) } t._state = 1, t._value = e, p(t) } catch (e) { u(t, e) } var i, l } function u(t, e) { t._state = 2, t._value = e, p(t) } function p(t) { 2 === t._state && 0 === t._deferreds.length && r._immediateFn(function () { t._handled || r._unhandledRejectionFn(t._value) }); for (var e = 0, o = t._deferreds.length; e < o; e++)a(t, t._deferreds[e]); t._deferreds = null } function c(t, e) { var o = !1; try { t(function (t) { o || (o = !0, s(e, t)) }, function (t) { o || (o = !0, u(e, t)) }) } catch (t) { if (o) return; o = !0, u(e, t) } } r.prototype.catch = function (t) { return this.then(null, t) }, r.prototype.then = function (t, e) { var o = new this.constructor(l); return a(this, new function (t, e, o) { this.onFulfilled = "function" == typeof t ? t : null, this.onRejected = "function" == typeof e ? e : null, this.promise = o }(t, e, o)), o }, r.all = function (t) { var e = Array.prototype.slice.call(t); return new r(function (t, n) { if (0 === e.length) return t([]); var i = e.length; function l(r, a) { try { if (a && ("object" === (void 0 === a ? "undefined" : o(a)) || "function" == typeof a)) { var s = a.then; if ("function" == typeof s) return void s.call(a, function (t) { l(r, t) }, n) } e[r] = a, 0 == --i && t(e) } catch (t) { n(t) } } for (var r = 0; r < e.length; r++)l(r, e[r]) }) }, r.resolve = function (t) { return t && "object" === (void 0 === t ? "undefined" : o(t)) && t.constructor === r ? t : new r(function (e) { e(t) }) }, r.reject = function (t) { return new r(function (e, o) { o(t) }) }, r.race = function (t) { return new r(function (e, o) { for (var n = 0, i = t.length; n < i; n++)t[n].then(e, o) }) }, r._immediateFn = "function" == typeof e && function (t) { e(t) } || function (t) { i(t, 0) }, r._unhandledRejectionFn = function (t) { "undefined" != typeof console && console && console.warn("Possible Unhandled Promise Rejection:", t) }, r._setImmediateFn = function (t) { r._immediateFn = t }, r._setUnhandledRejectionFn = function (t) { r._unhandledRejectionFn = t }, void 0 !== t && t.exports ? t.exports = r : n.Promise || (n.Promise = r) }(void 0) }).call(this, o(111).setImmediate) }, function (t, e, o) { "use strict"; var n, i = o(112), l = (n = i) && n.__esModule ? n : { default: n }; window.Promise = l.default }, function (t, e, o) {
+ "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.CommonServiceBase = void 0; var n = function () { function t(t, e) { for (var o = 0; o < e.length; o++) { var n = e[o]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } return function (e, o, n) { return o && t(e.prototype, o), n && t(e, n), e } }(), i = o(0), l = o(5), r = o(106), a = o(103), s = o(102), u = o(1), p = o(101), c = o(100), y = o(2);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
- * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var P=e.CommonServiceBase=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,u.Util.isArray(e)?(n.urls=e,n.length=e.length,n.totalTimes=n.length,1===n.length?n.url=e[0]:(n.index=parseInt(Math.random()*n.length),n.url=e[n.index])):(n.totalTimes=1,n.url=e),u.Util.isArray(e)&&!n.isServiceSupportPolling()&&(n.url=e[0],n.totalTimes=1),n.serverType=n.serverType||p.ServerType.ISERVER,o=o||{},u.Util.extend(this,o),n.isInTheSameDomain=u.Util.isInTheSameDomain(n.url),n.events=new r.Events(n,null,n.EVENT_TYPES,!0),n.eventListeners instanceof Object&&n.events.on(n.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}return n(t,[{key:"destroy",value:function(){var t=this;u.Util.isArray(t.urls)&&(t.urls=null,t.index=null,t.length=null,t.totalTimes=null),t.url=null,t.options=null,t._processSuccess=null,t._processFailed=null,t.isInTheSameDomain=null,t.EVENT_TYPES=null,t.events&&(t.events.destroy(),t.events=null),t.eventListeners&&(t.eventListeners=null)}},{key:"request",value:function(t){var e=this;t.url=t.url||e.url,t.proxy=t.proxy||e.proxy,t.withCredentials=void 0!=t.withCredentials?t.withCredentials:e.withCredentials,t.isInTheSameDomain=e.isInTheSameDomain;var o=this.getCredential(t.url);if(o){var n=t.url.substring(t.url.length-1,t.url.length);t.url.indexOf("?")>-1&&"?"===n?t.url+=o.getUrlParameters():t.url.indexOf("?")>-1&&"?"!==n?t.url+="&"+o.getUrlParameters():t.url+="?"+o.getUrlParameters()}e.calculatePollingTimes(),e._processSuccess=t.success,e._processFailed=t.failure,t.scope=e,t.success=e.getUrlCompleted,t.failure=e.getUrlFailed,e.options=t,e._commit(e.options)}},{key:"getCredential",value:function(t){var e=t,o=void 0,n=void 0;switch(this.serverType){case p.ServerType.IPORTAL:(o=(n=s.SecurityManager.getToken(e))?new a.Credential(n,"token"):null)||(o=(n=s.SecurityManager.getKey(e))?new a.Credential(n,"key"):null);break;case p.ServerType.ONLINE:o=(n=s.SecurityManager.getKey(e))?new a.Credential(n,"key"):null;break;default:o=(n=s.SecurityManager.getToken(e))?new a.Credential(n,"token"):null}return o}},{key:"getUrlCompleted",value:function(t){this._processSuccess(t)}},{key:"getUrlFailed",value:function(t){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(t)}},{key:"ajaxPolling",value:function(){var t=this,e=t.options.url,o=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],e=e.replace(o,o.exec(t.url)[0]),t.options.url=e,t.options.isInTheSameDomain=u.Util.isInTheSameDomain(e),t._commit(t.options)}},{key:"calculatePollingTimes",value:function(){var t=this;t.times?t.totalTimes>t.POLLING_TIMES?t.times>t.POLLING_TIMES?t.totalTimes=t.POLLING_TIMES:t.totalTimes=t.times:t.times<t.totalTimes&&(t.totalTimes=t.times):t.totalTimes>t.POLLING_TIMES&&(t.totalTimes=t.POLLING_TIMES),t.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}},{key:"serviceProcessCompleted",value:function(t){t=u.Util.transformResult(t),this.events.triggerEvent("processCompleted",{result:t})}},{key:"serviceProcessFailed",value:function(t){var e=(t=u.Util.transformResult(t)).error||t;this.events.triggerEvent("processFailed",{error:e})}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=u.Util.urlAppend(t.url,u.Util.getParameterString(t.params||{}))),t.params=t.data),l.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text?t.text():t.json?t.json():t}).then(function(e){var o=e;("string"==typeof e&&(o=(new c.JSONFormat).read(e)),(!o||o.error||o.code>=300&&304!==o.code)&&(o=o&&o.error?{error:o.error}:{error:o}),o.error)?(t.scope?y.FunctionExt.bind(t.failure,t.scope):t.failure)(o):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?y.FunctionExt.bind(t.success,t.scope):t.success)(o))})}}]),t}();i.SuperMap.CommonServiceBase=P},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=e.AddPoint_WayType=e.Primitives=e.PlottingUtil=e.RouteNodePrimitives=e.AnalysisSymbol=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=e.CommonServiceBase=void 0;var n=o(114),i=o(98),l=o(61),r=o(55);e.CommonServiceBase=n.CommonServiceBase,e.Plot=i.Plot,e.SymbolType=i.SymbolType,e.LineRelationType=i.LineRelationType,e.AlgoSurroundLineType=i.AlgoSurroundLineType,e.RouteNodeType=i.RouteNodeType,e.RelLineText=i.RelLineText,e.RadiusLineType=i.RadiusLineType,e.AnnoPosition=i.AnnoPosition,e.ArrowLineType=i.ArrowLineType,e.TextBoxType=i.TextBoxType,e.PositionOffsetType=i.PositionOffsetType,e.AlignType=i.AlignType,e.EditMode=i.EditMode,e.Event=i.Event,e.GOAnimationType=i.GOAnimationType,e.PlotCommonServiceBase=i.PlotCommonServiceBase,e.EditSmlFileParameters=i.EditSmlFileParameters,e.EditSmlFileService=i.EditSmlFileService,e.GetLibIDsService=i.GetLibIDsService,e.GetLibInfoParameter=i.GetLibInfoParameter,e.GetLibInfoService=i.GetLibInfoService,e.GetSMLInfosParameters=i.GetSMLInfosParameters,e.GetSMLInfosService=i.GetSMLInfosService,e.GetSymbolInfoParameters=i.GetSymbolInfoParameters,e.GetSymbolInfoService=i.GetSymbolInfoService,e.DefaultStyle=i.DefaultStyle,e.ExtendProperty=i.ExtendProperty,e.LayerDataStruct=i.LayerDataStruct,e.MapInfoStruct=i.MapInfoStruct,e.OrbitPoint=i.OrbitPoint,e.Property=i.Property,e.RouteNode=i.RouteNode,e.SitDataStruct=i.SitDataStruct,e.SMLInfoStruct=i.SMLInfoStruct,e.SubSymbol=i.SubSymbol,e.SymbolText=i.SymbolText,e.TimeWindowParameter=i.TimeWindowParameter,e.TowardNode=i.TowardNode,e.AnalysisSymbol=l.AnalysisSymbol,e.RouteNodePrimitives=l.RouteNodePrimitives,e.PlottingUtil=l.PlottingUtil,e.Primitives=l.Primitives,e.AddPoint_WayType=l.AddPoint_WayType,e.BasicAlgoSymbolFactory=r.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=r.AlgoSymbolFactory}]);
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var P = e.CommonServiceBase = function () { function t(e, o) { !function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t); var n = this; this.EVENT_TYPES = ["processCompleted", "processFailed"], this.events = null, this.eventListeners = null, this.url = null, this.urls = null, this.proxy = null, this.serverType = null, this.index = null, this.length = null, this.options = null, this.totalTimes = null, this.POLLING_TIMES = 3, this._processSuccess = null, this._processFailed = null, this.isInTheSameDomain = null, this.withCredentials = !1, u.Util.isArray(e) ? (n.urls = e, n.length = e.length, n.totalTimes = n.length, 1 === n.length ? n.url = e[0] : (n.index = parseInt(Math.random() * n.length), n.url = e[n.index])) : (n.totalTimes = 1, n.url = e), u.Util.isArray(e) && !n.isServiceSupportPolling() && (n.url = e[0], n.totalTimes = 1), n.serverType = n.serverType || p.ServerType.ISERVER, o = o || {}, u.Util.extend(this, o), n.isInTheSameDomain = u.Util.isInTheSameDomain(n.url), n.events = new r.Events(n, null, n.EVENT_TYPES, !0), n.eventListeners instanceof Object && n.events.on(n.eventListeners), this.CLASS_NAME = "SuperMap.CommonServiceBase" } return n(t, [{ key: "destroy", value: function () { var t = this; u.Util.isArray(t.urls) && (t.urls = null, t.index = null, t.length = null, t.totalTimes = null), t.url = null, t.options = null, t._processSuccess = null, t._processFailed = null, t.isInTheSameDomain = null, t.EVENT_TYPES = null, t.events && (t.events.destroy(), t.events = null), t.eventListeners && (t.eventListeners = null) } }, { key: "request", value: function (t) { var e = this; t.url = t.url || e.url, t.proxy = t.proxy || e.proxy, t.withCredentials = void 0 != t.withCredentials ? t.withCredentials : e.withCredentials, t.isInTheSameDomain = e.isInTheSameDomain; var o = this.getCredential(t.url); if (o) { var n = t.url.substring(t.url.length - 1, t.url.length); t.url.indexOf("?") > -1 && "?" === n ? t.url += o.getUrlParameters() : t.url.indexOf("?") > -1 && "?" !== n ? t.url += "&" + o.getUrlParameters() : t.url += "?" + o.getUrlParameters() } e.calculatePollingTimes(), e._processSuccess = t.success, e._processFailed = t.failure, t.scope = e, t.success = e.getUrlCompleted, t.failure = e.getUrlFailed, e.options = t, e._commit(e.options) } }, { key: "getCredential", value: function (t) { var e = t, o = void 0, n = void 0; switch (this.serverType) { case p.ServerType.IPORTAL: (o = (n = s.SecurityManager.getToken(e)) ? new a.Credential(n, "token") : null) || (o = (n = s.SecurityManager.getKey(e)) ? new a.Credential(n, "key") : null); break; case p.ServerType.ONLINE: o = (n = s.SecurityManager.getKey(e)) ? new a.Credential(n, "key") : null; break; default: o = (n = s.SecurityManager.getToken(e)) ? new a.Credential(n, "token") : null }return o } }, { key: "getUrlCompleted", value: function (t) { this._processSuccess(t) } }, { key: "getUrlFailed", value: function (t) { this.totalTimes > 0 ? (this.totalTimes--, this.ajaxPolling()) : this._processFailed(t) } }, { key: "ajaxPolling", value: function () { var t = this, e = t.options.url, o = /^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/; t.index = parseInt(Math.random() * t.length), t.url = t.urls[t.index], e = e.replace(o, o.exec(t.url)[0]), t.options.url = e, t.options.isInTheSameDomain = u.Util.isInTheSameDomain(e), t._commit(t.options) } }, { key: "calculatePollingTimes", value: function () { var t = this; t.times ? t.totalTimes > t.POLLING_TIMES ? t.times > t.POLLING_TIMES ? t.totalTimes = t.POLLING_TIMES : t.totalTimes = t.times : t.times < t.totalTimes && (t.totalTimes = t.times) : t.totalTimes > t.POLLING_TIMES && (t.totalTimes = t.POLLING_TIMES), t.totalTimes-- } }, { key: "isServiceSupportPolling", value: function () { return !("SuperMap.REST.ThemeService" === this.CLASS_NAME || "SuperMap.REST.EditFeaturesService" === this.CLASS_NAME) } }, { key: "serviceProcessCompleted", value: function (t) { t = u.Util.transformResult(t), this.events.triggerEvent("processCompleted", { result: t }) } }, { key: "serviceProcessFailed", value: function (t) { var e = (t = u.Util.transformResult(t)).error || t; this.events.triggerEvent("processFailed", { error: e }) } }, { key: "_commit", value: function (t) { "POST" !== t.method && "PUT" !== t.method || (t.params && (t.url = u.Util.urlAppend(t.url, u.Util.getParameterString(t.params || {}))), t.params = t.data), l.FetchRequest.commit(t.method, t.url, t.params, { headers: t.headers, withCredentials: t.withCredentials, timeout: t.async ? 0 : null, proxy: t.proxy }).then(function (t) { return t.text ? t.text() : t.json ? t.json() : t }).then(function (e) { var o = e; ("string" == typeof e && (o = (new c.JSONFormat).read(e)), (!o || o.error || o.code >= 300 && 304 !== o.code) && (o = o && o.error ? { error: o.error } : { error: o }), o.error) ? (t.scope ? y.FunctionExt.bind(t.failure, t.scope) : t.failure)(o) : (o.succeed = void 0 == o.succeed || o.succeed, (t.scope ? y.FunctionExt.bind(t.success, t.scope) : t.success)(o)) }) } }]), t }(); i.SuperMap.CommonServiceBase = P
+ }, function (t, e, o) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.AlgoSymbolFactory = e.BasicAlgoSymbolFactory = e.AddPoint_WayType = e.Primitives = e.PlottingUtil = e.RouteNodePrimitives = e.AnalysisSymbol = e.TowardNode = e.TimeWindowParameter = e.SymbolText = e.SubSymbol = e.SMLInfoStruct = e.SitDataStruct = e.RouteNode = e.Property = e.OrbitPoint = e.MapInfoStruct = e.LayerDataStruct = e.ExtendProperty = e.DefaultStyle = e.GetSymbolInfoService = e.GetSymbolInfoParameters = e.GetSMLInfosService = e.GetSMLInfosParameters = e.GetLibInfoService = e.GetLibInfoParameter = e.GetLibIDsService = e.EditSmlFileService = e.EditSmlFileParameters = e.PlotCommonServiceBase = e.GOAnimationType = e.Event = e.EditMode = e.AlignType = e.PositionOffsetType = e.TextBoxType = e.ArrowLineType = e.AnnoPosition = e.RadiusLineType = e.RelLineText = e.RouteNodeType = e.AlgoSurroundLineType = e.LineRelationType = e.SymbolType = e.Plot = e.CommonServiceBase = void 0; var n = o(114), i = o(98), l = o(61), r = o(55); e.CommonServiceBase = n.CommonServiceBase, e.Plot = i.Plot, e.SymbolType = i.SymbolType, e.LineRelationType = i.LineRelationType, e.AlgoSurroundLineType = i.AlgoSurroundLineType, e.RouteNodeType = i.RouteNodeType, e.RelLineText = i.RelLineText, e.RadiusLineType = i.RadiusLineType, e.AnnoPosition = i.AnnoPosition, e.ArrowLineType = i.ArrowLineType, e.TextBoxType = i.TextBoxType, e.PositionOffsetType = i.PositionOffsetType, e.AlignType = i.AlignType, e.EditMode = i.EditMode, e.Event = i.Event, e.GOAnimationType = i.GOAnimationType, e.PlotCommonServiceBase = i.PlotCommonServiceBase, e.EditSmlFileParameters = i.EditSmlFileParameters, e.EditSmlFileService = i.EditSmlFileService, e.GetLibIDsService = i.GetLibIDsService, e.GetLibInfoParameter = i.GetLibInfoParameter, e.GetLibInfoService = i.GetLibInfoService, e.GetSMLInfosParameters = i.GetSMLInfosParameters, e.GetSMLInfosService = i.GetSMLInfosService, e.GetSymbolInfoParameters = i.GetSymbolInfoParameters, e.GetSymbolInfoService = i.GetSymbolInfoService, e.DefaultStyle = i.DefaultStyle, e.ExtendProperty = i.ExtendProperty, e.LayerDataStruct = i.LayerDataStruct, e.MapInfoStruct = i.MapInfoStruct, e.OrbitPoint = i.OrbitPoint, e.Property = i.Property, e.RouteNode = i.RouteNode, e.SitDataStruct = i.SitDataStruct, e.SMLInfoStruct = i.SMLInfoStruct, e.SubSymbol = i.SubSymbol, e.SymbolText = i.SymbolText, e.TimeWindowParameter = i.TimeWindowParameter, e.TowardNode = i.TowardNode, e.AnalysisSymbol = l.AnalysisSymbol, e.RouteNodePrimitives = l.RouteNodePrimitives, e.PlottingUtil = l.PlottingUtil, e.Primitives = l.Primitives, e.AddPoint_WayType = l.AddPoint_WayType, e.BasicAlgoSymbolFactory = r.BasicAlgoSymbolFactory, e.AlgoSymbolFactory = r.AlgoSymbolFactory }]);
-/***/ }),
+ /***/
+}),
/* 5 */
-/***/ (function(module, exports, __webpack_require__) {
+/***/ (function (module, exports, __webpack_require__) {
-__webpack_require__(4);
-__webpack_require__(1);
-__webpack_require__(2);
-__webpack_require__(3);
-__webpack_require__(0);
+ __webpack_require__(4);
+ __webpack_require__(1);
+ __webpack_require__(2);
+ __webpack_require__(3);
+ __webpack_require__(0);
-/***/ })
-/******/ ]);
\ No newline at end of file
+ /***/
+})
+/******/]);
\ No newline at end of file
diff --git a/widgets/LeftNavigationBar/css/style.css b/widgets/LeftNavigationBar/css/style.css
index b53e680..8e60eb2 100644
--- a/widgets/LeftNavigationBar/css/style.css
+++ b/widgets/LeftNavigationBar/css/style.css
@@ -116,21 +116,6 @@
height: auto !important;
}
-.layui-tree-iconArrow:after {
- /* border-color: #c0c4cc transparent transparent transparent !important; */
- /* border-color: attr(data-attr) !important; */
-}
-
-/* #11 .layui-tree-iconArrow:after{
- border-color: #c0c4cc transparent transparent transparent !important;
-} */
-
-/* .downsAfter {
- border-color: #c0c4cc transparent transparent transparent !important;
-}
-.rightsAfter {
- border-color: #c0c4cc transparent transparent transparent !important;
-} */
.left-navigation-bar-main-down:after {
content: "";
diff --git a/widgets/plotting/css/style.css b/widgets/plotting/css/style.css
deleted file mode 100644
index cc9e83a..0000000
--- a/widgets/plotting/css/style.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.jimu-widget-plotting{
- width: 100%;
- height: 100%;
- background-color: rgba(255, 255, 255, .75);
- font-size: 14px;
- border: 1px solid rgb(69, 154, 251);
- color: rgb(0, 0, 0);
- font-size: 16px;
- display: block;
- border-radius: 10px;
- z-index: 16;
- display: none;
-}
diff --git a/widgets/plotting/nls/es/strings.js b/widgets/plotting/nls/es/strings.js
deleted file mode 100644
index 72d8114..0000000
--- a/widgets/plotting/nls/es/strings.js
+++ /dev/null
@@ -1,5 +0,0 @@
-define(
- ({
- _widgetLabel: "plotting"
- })
-);
\ No newline at end of file
diff --git a/widgets/plotting/Widget.html b/widgets/plottingP/Widget.html
similarity index 75%
rename from widgets/plotting/Widget.html
rename to widgets/plottingP/Widget.html
index c79b3b0..a303e60 100644
--- a/widgets/plotting/Widget.html
+++ b/widgets/plottingP/Widget.html
@@ -1,4 +1,4 @@
-<div class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html"
+<div class="sandcastle-loading"
style="margin: 0px; overflow: hidden;background: #fff;height: 100%;">
<div id="menu" style="position: absolute;width: 320px;height: 80%;border: 1px solid #3473b7;z-index: 98;">
<div class="easyui-panel"
@@ -10,6 +10,6 @@
</div>
</div>
- <div id="cesiumContainer" class="fullSize" style="position: relative;left: 14%;width: 86%;height: 100%;">
- </div>
+ <!-- <div id="cesiumContainers" class="fullSize" style="position: relative;left: 20px;width: 20px;height: 20px;"> -->
+ <!-- </div> -->
</div>
\ No newline at end of file
diff --git a/widgets/plotting/Widget.js b/widgets/plottingP/Widget.js
similarity index 71%
rename from widgets/plotting/Widget.js
rename to widgets/plottingP/Widget.js
index e1a3214..58d91b9 100644
--- a/widgets/plotting/Widget.js
+++ b/widgets/plottingP/Widget.js
@@ -19,33 +19,41 @@
BaseWidget
) {
return declare([BaseWidget], {
- baseClass: 'jimu-widget-plotting',
- name: 'plotting',
+ baseClass: 'jimu-widget-plottingP',
+ name: 'plottingP',
type: '',
startup: function () {
+ // js: ../../Build/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude.js 重要
+ // css: ../../Build/Cesium/Widgets/widgets.css 地图样式 不影响
+ // css:./css/sideBar.css 不影响
+ // js: js/plotPanelControl/PlottingUI.Include.js 重要
+ // js: js/bootstrap.min.js 不影响
+ // css: css/bootstrap-new.min.css 不影响
+ // js: http://www.supermapol.com/earth/Build/Cesium/Cesium.js 地图js 不影响
var cesium, scene, viewer, serverUrl, plotting;
var plottingLayer;
var plotEditControl;
var plotDrawControl;
var plotPanel;
-
- var begin = (Cesium) => {
- cesium = Cesium;
+ // var map = window.viewer;//加载地图数据
+ viewer = window.viewer;
+ cesium = Cesium;
+ scene = viewer.scene;
+ var begin = () => {
var host = 'http://support.supermap.com.cn:8090';
- viewer = new Cesium.Viewer('cesiumContainer');
- scene = viewer.scene;
+ // var host = 'http://localhost:8090';
scene.globe.depthTestAgainstTerrain = false;
serverUrl = host + '/iserver/services/plot-jingyong/rest/plot';
InitPlot(viewer, serverUrl);
};
var InitPlot = (viewer, serverUrl) => {
- // console.log(viewer, serverUrl)
if (!viewer) {
return;
}
plottingLayer = new cesium.PlottingLayer(scene, "plottingLayer");
- scene.plotLayers.add(plottingLayer);
-
+ // console.log(scene)
+ // scene.plotLayers.add(plottingLayer);
+ scene.layers.add(plottingLayer);
plotEditControl = new cesium.PlotEditControl(scene, plottingLayer);//编辑控件
plotDrawControl = new cesium.PlotDrawControl(scene, plottingLayer);//绘制控件
plotDrawControl.drawControlEndEvent.addEventListener(function () {//标绘结束,激活编辑控件
@@ -71,7 +79,7 @@
if (typeof Cesium !== 'undefined') {
window.startupCalled = true;
- begin(Cesium);
+ // begin(Cesium);
}
}
diff --git a/widgets/plottingP/css/style.css b/widgets/plottingP/css/style.css
new file mode 100644
index 0000000..5438305
--- /dev/null
+++ b/widgets/plottingP/css/style.css
@@ -0,0 +1,28 @@
+.jimu-widget-plottingP{
+ width: 100%;
+ height: 100%;
+ background-color: rgba(255, 255, 255, .75);
+ font-size: 14px;
+ border: 1px solid rgb(69, 154, 251);
+ color: rgb(0, 0, 0);
+ font-size: 16px;
+ display: block;
+ border-radius: 10px;
+ z-index: 16;
+ display: none;
+}
+
+/* 动态标绘 */
+.panel {
+ height: 100%;
+}
+
+/*下拉框的高度*/
+.combo-p {
+ height: 150px;
+}
+
+/*滚动条*/
+.propertygrid {
+ overflow: auto;
+}
\ No newline at end of file
diff --git a/widgets/plotting/manifest.json b/widgets/plottingP/manifest.json
similarity index 92%
rename from widgets/plotting/manifest.json
rename to widgets/plottingP/manifest.json
index cb6119b..5ed88d5 100644
--- a/widgets/plotting/manifest.json
+++ b/widgets/plottingP/manifest.json
@@ -1,5 +1,5 @@
{
- "name": "plotting",
+ "name": "plottingP",
"2D": true,
"3D": true,
"platform": "HTML",
diff --git a/widgets/plotting/mars3d-src.js b/widgets/plottingP/mars3d-src.js
similarity index 100%
rename from widgets/plotting/mars3d-src.js
rename to widgets/plottingP/mars3d-src.js
diff --git a/widgets/plottingP/nls/es/strings.js b/widgets/plottingP/nls/es/strings.js
new file mode 100644
index 0000000..bfa8dba
--- /dev/null
+++ b/widgets/plottingP/nls/es/strings.js
@@ -0,0 +1,5 @@
+define(
+ ({
+ _widgetLabel: "plottingP"
+ })
+);
\ No newline at end of file
diff --git a/widgets/plotting/nls/strings.js b/widgets/plottingP/nls/strings.js
similarity index 63%
rename from widgets/plotting/nls/strings.js
rename to widgets/plottingP/nls/strings.js
index 853dda8..8c7af17 100644
--- a/widgets/plotting/nls/strings.js
+++ b/widgets/plottingP/nls/strings.js
@@ -1,6 +1,6 @@
define({
root: ({
- _widgetLabel: "plotting"
+ _widgetLabel: "plottingP"
}),
"es": 1,
"zh-cn": 1
diff --git a/widgets/plotting/nls/zh-cn/strings.js b/widgets/plottingP/nls/zh-cn/strings.js
similarity index 100%
rename from widgets/plotting/nls/zh-cn/strings.js
rename to widgets/plottingP/nls/zh-cn/strings.js
diff --git a/widgets/searchL/Widget.js b/widgets/searchL/Widget.js
index b6dbde8..4da353f 100644
--- a/widgets/searchL/Widget.js
+++ b/widgets/searchL/Widget.js
@@ -56,94 +56,7 @@
$('.searchLMain').hide();
})
- // 暴露在外的接口
- // topic.subscribe("closeTool", lang.hitch(this, this.closeToolBox));
- // this.inherited(arguments);
- // $('.tool-bar .tool-btn span').click(function () {
- // topic.publish('closeMap', this.name);
- // topic.publish('closeZtree', this.name);
- // $('.tool-y-box').toggle();
- // })
-
-
- // 查询定位
- // $('.location-tool').click(function () {
- // $('.jimu-widget-Location').show();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-Sign').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.jimu-widget-Measurement').hide();
- // $('.tool-y-box').toggle()
- // })
-
-
- // 图上量算
- // $('.measure-tool').click(function () {
- // $('.jimu-widget-Location').hide();
- // $('.jimu-widget-Measurement').show();
- // $('.jimu-widget-Sign').hide();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.tool-y-box').toggle()
- // })
-
- // 我的标记
- // $('.sign-tool').click(function () {
- // topic.publish('openSign', 'Sign');
- // $('.jimu-widget-Location').hide();
- // $('.jimu-widget-Sign').show();
- // $('.jimu-widget-Measurement').hide();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.tool-y-box').toggle()
- // })
-
- // 卷帘对比
- // $('.rolling-tool').click(function () {
- // topic.publish('openRolling', 'Rolling');
- // $('.jimu-widget-Location').hide();
- // $('.jimu-widget-Rolling').show();
- // $('#widgets_Rolling_Widget_17').show();
- // $('.jimu-widget-Measurement').hide();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.tool-y-box').toggle();
- // })
-
- // 坐标定位
- // $('.CoorPosition-tool').click(function () {
- // $('.jimu-widget-CoorPosition').show();
- // $('.jimu-widget-Location').hide();
- // $('.jimu-widget-Measurement').hide();
- // $('.jimu-widget-Sign').hide();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.tool-y-box').toggle()
- // })
-
- // 地图打印
- // $('.MapPrinting-tool').click(function () {
- // $('.jimu-widget-Location').hide();
- // $('.jimu-widget-MapPrinting').show();
- // $('.jimu-widget-CoorPosition').hide();
- // $('.jimu-widget-Measurement').hide();
- // $('.jimu-widget-Sign').hide();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.tool-y-box').toggle()
- // })
-
- // 路线导航
- // $('.RouteNavigate-tool').click(function () {
- // $('.jimu-widget-RouteNavigate').show();
- // $('.jimu-widget-MapPrinting').hide();
- // $('.jimu-widget-CoorPosition').hide();
- // $('.jimu-widget-Measurement').hide();
- // $('.jimu-widget-Sign').hide();
- // $('.jimu-widget-FlyRoute').hide();
- // $('.jimu-widget-DynamicRiver').hide();
- // $('.tool-y-box').toggle()
- // })
+
},
closeToolBox: function (item) {
@@ -267,11 +180,11 @@
, last: false //不显示尾页
}
, cols: [[
- { field: 'id', width: 70, align: 'center', title: '序号' }
+ { field: 'id', width: 59, align: 'center', title: '序号' }
, { field: 'username', width: 90, align: 'center', title: '图层名称' }
, { field: 'style1', width: 95, align: 'center', title: '图层属性1' }
, { field: 'style2', width: 95, align: 'center', title: '图层属性2' }
- , { fixed: 'right', width: 120, align: 'center', title: '操作', toolbar: '#demoTable' }
+ , { fixed: 'right', width: 115, align: 'center', title: '操作', toolbar: '#demoTable' }
]],
data: data,
//,skin: 'line' //表格风格
diff --git a/widgets/searchL/css/style.css b/widgets/searchL/css/style.css
index 1c6d0ae..42e2d0c 100644
--- a/widgets/searchL/css/style.css
+++ b/widgets/searchL/css/style.css
@@ -109,27 +109,55 @@
position: fixed;
right: 5px;
top: 70px;
- width: 479px;
- min-height: 560px;
+ width: 462px;
+ min-height: 554px;
height: auto;
padding-bottom: 20px;
border-radius: 5px 5px 5px 5px;
- background-color: aliceblue;
+ background-color: rgb(255, 255, 255);
}
-
+.jimu-widget-searchL .searchLMain .layui-laypage-em{
+ background-color: #39A5FD;
+}
+.jimu-widget-searchL .searchLMain .layui-this{
+ color: #39A5FD;
+}
+.jimu-widget-searchL .searchLMain .layui-btn-xs{
+ background-color: #39A5FD;
+}
+.jimu-widget-searchL .searchLMain .layui-btn-primary{
+ background-color: #ffffff;
+}
+.jimu-widget-searchL .layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after{
+ border-bottom: 2px solid #39A5FD;
+}
.jimu-widget-searchL .searchLMain .layui-tab-title {
/* border: 1px saddlebrown solid; */
display: flex;
align-items: center;
justify-content: space-around;
}
-
+.jimu-widget-searchL .searchLMain .layui-tab-title li {
+ font-size: 18px;
+}
+.jimu-widget-searchL .searchLMain .layui-table-view{
+ border-bottom: 1px #fff solid;
+}
+.jimu-widget-searchL .searchLMain #layui-table-page1 {
+ position: relative;
+ left: 30px;
+ top: 5px;
+}
+.jimu-widget-searchL .searchLMain #layui-table-page1::before {
+ content: '每页10条,';
+ position: relative;
+ top: -4px;
+}
.jimu-widget-searchL .searchLMain .searchColce {
- /* border: 1px saddlebrown solid; */
position: absolute;
right: 10px;
top: 5px;
- font-size: 20px;
+ font-size: 16px;
color: #000;
width: 25px;
height: 25px;
--
Gitblit v1.9.3