1 |
- {"code":"(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"app\"],{0:function(t,e,i){t.exports=i(\"56d7\")},\"00a3\":function(t,e,i){},\"028b\":function(t,e,i){\"use strict\";i(\"3f4d\")},\"02b8\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-component\",use:\"icon-component-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-component\"><defs><style type=\"text/css\"></style></defs><path d=\"M826.56 470.016c-32.896 0-64.384 12.288-89.984 35.52l0-104.96c0-62.208-50.496-112.832-112.64-113.088L623.936 287.04 519.552 287.104C541.824 262.72 554.56 230.72 554.56 197.12c0-73.536-59.904-133.44-133.504-133.44-73.472 0-133.376 59.904-133.376 133.44 0 32.896 12.224 64.256 35.52 89.984L175.232 287.104l0 0.576C113.728 288.704 64 338.88 64 400.576l0.32 0 0.32 116.48C60.864 544.896 70.592 577.728 100.8 588.48c12.736 4.608 37.632 7.488 60.864-25.28 12.992-18.368 34.24-29.248 56.64-29.248 38.336 0 69.504 31.104 69.504 69.312 0 38.4-31.168 69.504-69.504 69.504-22.656 0-44.032-11.264-57.344-30.4C138.688 610.112 112.576 615.36 102.464 619.136c-29.824 10.752-39.104 43.776-38.144 67.392l0 160.384L64 846.912C64 909.248 114.752 960 177.216 960l446.272 0c62.4 0 113.152-50.752 113.152-113.152l0-145.024c24.384 22.272 56.384 35.008 89.984 35.008 73.536 0 133.44-59.904 133.44-133.504C960 529.92 900.096 470.016 826.56 470.016zM826.56 672.896c-22.72 0-44.032-11.264-57.344-30.4-22.272-32.384-48.448-27.136-58.56-23.36-29.824 10.752-39.04 43.776-38.08 67.392l0 160.384c0 27.136-22.016 49.152-49.152 49.152L177.216 896.064C150.08 896 128 873.984 128 846.848l0.32 0 0-145.024c24.384 22.272 56.384 35.008 89.984 35.008 73.6 0 133.504-59.904 133.504-133.504 0-73.472-59.904-133.376-133.504-133.376-32.896 0-64.32 12.288-89.984 35.52l0-104.96L128 400.512c0-27.072 22.08-49.152 49.216-49.152L177.216 351.04 334.656 350.72c3.776 0.512 7.616 0.832 11.52 0.832 24.896 0 50.752-10.816 60.032-37.056 4.544-12.736 7.424-37.568-25.344-60.736C362.624 240.768 351.68 219.52 351.68 197.12c0-38.272 31.104-69.44 69.376-69.44 38.336 0 69.504 31.168 69.504 69.44 0 22.72-11.264 44.032-30.528 57.472C427.968 276.736 433.088 302.784 436.8 313.024c10.752 29.888 43.072 39.232 67.392 38.08l119.232 0 0 0.384c27.136 0 49.152 22.08 49.152 49.152l0.256 116.48c-3.776 27.84 6.016 60.736 36.224 71.488 12.736 4.608 37.632 7.488 60.8-25.28 13.056-18.368 34.24-29.248 56.704-29.248C864.832 534.016 896 565.12 896 603.392 896 641.728 864.832 672.896 826.56 672.896z\" p-id=\"3146\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"034f\":function(t,e,i){\"use strict\";i(\"85ec\")},\"039a\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-download\",use:\"icon-download-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-download\"><defs><style type=\"text/css\"></style></defs><path d=\"M768.35456 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.35456 864v-64a192 192 0 0 0 0-384z m-512 384h64v64H256.35456v-64z m448 0h64v64h-64v-64z\" fill=\"#333333\" p-id=\"3063\" /><path d=\"M539.04256 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056 0.192 31.616 31.616 0 0 0-0.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-0.192-45.12 31.616 31.616 0 0 0-45.056-0.192l-36.096 36.096z\" fill=\"#333333\" p-id=\"3064\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"0486\":function(t,e,i){\"use strict\";i(\"34db\")},\"04ad\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-rate\",use:\"icon-rate-usage\",viewBox:\"0 0 1069 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1069 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-rate\"><defs><style type=\"text/css\"></style></defs><path d=\"M633.72929961 378.02038203l9.49872568 18.68789795 20.78025469 2.79745225 206.61592412 27.33248408a11.46496817 11.46496817 0 0 1 6.6095543 19.47324902l-147.2675168 147.35350284-14.89299345 14.89299345 3.8006376 20.68280244 37.84585956 204.89044571a11.46496817 11.46496817 0 0 1-16.4808914 12.2961788L554.68980898 751.84713388l-18.68789794-9.49299345-18.48726123 9.99171915-183.23885392 99.34968163a11.46496817 11.46496817 0 0 1-16.78471347-11.8662416l32.5433127-205.79617881 3.29617793-20.78598692-15.19108243-14.49172002-151.03375839-143.48407587a11.46496817 11.46496817 0 0 1 6.09936328-19.63949062l205.79617881-32.63503185 20.78598691-3.2961788L428.87898125 380.72038203 518.59235674 192.64331182a11.46496817 11.46496817 0 0 1 20.56815264-0.26369385l94.56879023 185.63503183zM496.64840732 85.52038203l-121.75796162 254.98089229L95.76433145 384.76178369A34.3949045 34.3949045 0 0 0 77.46050938 443.66879023l204.87324901 194.66369385-44.16879023 279.1146498a34.3949045 34.3949045 0 0 0 50.36560489 35.61592325l248.4-134.67898038 251.84522285 128.27579591a34.3949045 34.3949045 0 0 0 49.43694287-36.89426777l-51.30573223-277.85350284 199.73120977-199.90891758a34.3949045 34.3949045 0 0 0-19.82866201-58.40827998l-280.11783428-37.03184736L558.32993633 84.71210205a34.3949045 34.3949045 0 0 0-61.68152901 0.80254775z\" p-id=\"1099\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"068c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-upload\",use:\"icon-upload-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-upload\"><defs><style type=\"text/css\"></style></defs><path d=\"M530.944 458.24l4.8 3.456 122.176 106.816a32 32 0 0 1-37.44 51.584l-4.672-3.392L546.56 556.16v280.704a32 32 0 0 1-26.24 31.488l-5.76 0.512a32 32 0 0 1-31.424-26.24l-0.512-5.76-0.064-280.704-69.12 60.48a32 32 0 0 1-40.96 0.896l-4.16-3.968a32 32 0 0 1-0.96-40.96l4.032-4.16 122.176-106.816a32 32 0 0 1 37.312-3.456zM497.92 128c128.128 0 239.168 82.304 275.52 199.04 123.968 11.264 221.312 113.088 221.312 237.44 0 128.128-103.68 232.96-234.88 238.272h-5.888l-35.52 0.192a32 32 0 0 1-0.192-64l35.264-0.128 4.672-0.064c96.384-3.84 172.544-80.896 172.544-174.272 0-96.128-80.512-174.464-179.584-174.464h-1.984a32 32 0 0 1-32-25.28C695.872 264.96 604.736 192 497.92 192 381.824 192 285.44 277.76 274.816 388.48a32 32 0 0 1-28.352 28.8c-83.968 9.152-147.84 78.208-147.84 159.552l0.192 7.936c3.84 85.76 77.056 154.112 166.592 154.112h45.632a32 32 0 0 1 0 64h-45.632C142.016 802.944 40.32 708.032 34.88 586.88l-0.192-9.28c0-106.88 76.352-197.184 179.968-219.904C239.488 226.112 357.76 128 497.856 128z\" p-id=\"7923\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"06b3\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tool\",use:\"icon-tool-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-tool\"><defs><style type=\"text/css\"></style></defs><path d=\"M898.831744 900.517641 103.816972 900.517641c-36.002982 0-65.363683-29.286-65.363683-65.313541l0-554.949184c0-36.041868 29.361725-65.326844 65.363683-65.326844l795.015795 0c36.002982 0 65.198931 29.284977 65.198931 65.326844l0 554.949184C964.030675 871.231641 934.834726 900.517641 898.831744 900.517641L898.831744 900.517641zM103.816972 255.593236c-13.576203 0-24.711821 11.085476-24.711821 24.662703l0 554.949184c0 13.576203 11.136641 24.662703 24.711821 24.662703l795.015795 0c13.577227 0 24.547069-11.086499 24.547069-24.662703l0-554.949184c0-13.577227-10.970866-24.662703-24.547069-24.662703L103.816972 255.593236 103.816972 255.593236zM664.346245 251.774257c-11.161201 0-20.332071-9.080819-20.332071-20.332071l0-101.278661c0-13.576203-11.047614-24.623817-24.699542-24.623817L383.181611 105.539708c-13.576203 0-24.712845 11.04659-24.712845 24.623817l0 101.278661c0 11.252275-9.041934 20.332071-20.332071 20.332071-11.20111 0-20.319791-9.080819-20.319791-20.332071l0-101.278661c0-35.989679 29.323862-65.275679 65.364707-65.275679l236.133022 0c36.06745 0 65.402569 29.284977 65.402569 65.275679l0 101.278661C684.717202 242.694461 675.636383 251.774257 664.346245 251.774257L664.346245 251.774257zM413.233044 521.725502 75.694471 521.725502c-11.163247 0-20.333094-9.117658-20.333094-20.35663 0-11.252275 9.169847-20.332071 20.333094-20.332071l337.538573 0c11.277858 0 20.319791 9.080819 20.319791 20.332071C433.552835 512.607844 424.510902 521.725502 413.233044 521.725502L413.233044 521.725502zM912.894018 521.725502 575.367725 521.725502c-11.213389 0-20.332071-9.117658-20.332071-20.35663 0-11.252275 9.118682-20.332071 20.332071-20.332071l337.526293 0c11.290137 0 20.332071 9.080819 20.332071 20.332071C933.226089 512.607844 924.184155 521.725502 912.894018 521.725502L912.894018 521.725502zM557.56322 634.217552 445.085496 634.217552c-11.213389 0-20.332071-9.079796-20.332071-20.331048l0-168.763658c0-11.251252 9.118682-20.332071 20.332071-20.332071l112.478747 0c11.290137 0 20.370956 9.080819 20.370956 20.332071l0 168.763658C577.934177 625.137757 568.853357 634.217552 557.56322 634.217552L557.56322 634.217552zM465.417567 593.514525l71.827909 0L537.245476 465.454918l-71.827909 0L465.417567 593.514525 465.417567 593.514525z\" p-id=\"1685\" fill=\"#bfbfbf\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"06c2\":function(t,e,i){\"use strict\";i(\"6ef7\")},\"095c\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{ref:\"editor\",staticClass:\"editor\",style:t.styles})},o=[],r=(i(\"a9e3\"),i(\"99af\"),i(\"9339\")),s=i.n(r),a=(i(\"a753\"),i(\"8096\"),i(\"14e1\"),{name:\"Editor\",props:{value:{type:String,default:\"\"},height:{type:Number,default:null},minHeight:{type:Number,default:null},readOnly:{type:Boolean,default:!1}},data:function(){return{Quill:null,currentValue:\"\",options:{theme:\"snow\",bounds:document.body,debug:\"warn\",modules:{toolbar:[[\"bold\",\"italic\",\"underline\",\"strike\"],[\"blockquote\",\"code-block\"],[{list:\"ordered\"},{list:\"bullet\"}],[{indent:\"-1\"},{indent:\"+1\"}],[{size:[\"small\",!1,\"large\",\"huge\"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],[\"clean\"],[\"link\",\"image\",\"video\"]]},placeholder:\"请输入内容\",readOnly:this.readOnly}}},computed:{styles:function(){var t={};return this.minHeight&&(t.minHeight=\"\".concat(this.minHeight,\"px\")),this.height&&(t.height=\"\".concat(this.height,\"px\")),t}},watch:{value:{handler:function(t){t!==this.currentValue&&(this.currentValue=null===t?\"\":t,this.Quill&&this.Quill.pasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var t=this,e=this.$refs.editor;this.Quill=new s.a(e,this.options),this.Quill.pasteHTML(this.currentValue),this.Quill.on(\"text-change\",(function(e,i,n){var o=t.$refs.editor.children[0].innerHTML,r=t.Quill.getText(),s=t.Quill;t.currentValue=o,t.$emit(\"input\",o),t.$emit(\"on-change\",{html:o,text:r,quill:s})})),this.Quill.on(\"text-change\",(function(e,i,n){t.$emit(\"on-text-change\",e,i,n)})),this.Quill.on(\"selection-change\",(function(e,i,n){t.$emit(\"on-selection-change\",e,i,n)})),this.Quill.on(\"editor-change\",(function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];t.$emit.apply(t,[\"on-editor-change\",e].concat(n))}))}}}),l=a,h=(i(\"4ff4\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"a\"]=u.exports},\"0b37\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-input\",use:\"icon-input-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-input\"><defs><style type=\"text/css\"></style></defs><path d=\"M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64z m0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z\" p-id=\"3103\" /><path d=\"M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z\" p-id=\"3104\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"0b8d\":function(t,e,i){},\"0c16\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-row\",use:\"icon-row-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-row\"><defs><style type=\"text/css\"></style></defs><path d=\"M152 854.856875h325.7146875V237.715625H134.856875v600q0 6.99375 5.0746875 12.0684375T152 854.856875z m737.143125-17.1421875v-600H546.284375v617.1421875H872q6.99375 0 12.0684375-5.07375t5.0746875-12.0684375z m68.5715625-651.429375V837.715625q0 35.3821875-25.16625 60.5484375T872 923.4284375H152q-35.383125 0-60.5484375-25.1653125T66.284375 837.7146875V186.284375q0-35.3821875 25.16625-60.5484375T152 100.5715625h720q35.383125 0 60.5484375 25.1653125t25.16625 60.5484375z\" p-id=\"1183\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"0e8f\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tree\",use:\"icon-tree-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-tree\"><path d=\"M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"0ee3\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-select\",use:\"icon-select-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-select\"><defs><style type=\"text/css\"></style></defs><path d=\"M62 511.97954521C62 263.86590869 263.90681826 62 511.97954521 62s449.97954521 201.825 449.97954521 449.97954521c0 248.19545479-201.90681826 449.97954521-449.97954521 449.97954521C263.90681826 962 62 760.175 62 511.97954521M901.98636348 511.97954521c0-215.24318174-175.00909131-390.41590869-390.00681827-390.41590869-215.03863652 0-389.96590869 175.17272695-389.96590868 390.41590869 0 215.28409131 175.00909131 390.45681826 389.96590868 390.45681826C727.01818174 902.47727305 901.98636348 727.30454521 901.98636348 511.97954521M264.17272695 430.28409131c0-5.76818174 2.12727305-11.51590869 6.64772696-15.87272696 8.71363652-8.75454521 22.88863652-8.75454521 31.725 0l209.4340913 208.22727305L721.45454521 414.53409131c8.75454521-8.71363652 22.97045479-8.71363652 31.90909132 0 8.71363652 8.75454521 8.71363652 22.88863652 0 31.60227304L511.97954521 685.74090869 270.71818174 446.01363653C266.27954521 441.77954521 264.17272695 436.05227305 264.17272695 430.28409131\" p-id=\"805\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"11d7\":function(t,e,i){\"use strict\";i(\"dbc4\")},\"12de\":function(t,e,i){},\"14c9\":function(t,e,i){},\"15e8\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-message\",use:\"icon-message-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-message\"><path d=\"M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"171d\":function(t,e,i){},\"181a\":function(t,e,i){\"use strict\";i(\"8502\")},1868:function(t,e,i){},\"18ae\":function(t,e,i){\"use strict\";i(\"9367\")},\"198d\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-password\",use:\"icon-password-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-password\"><defs><style type=\"text/css\"></style></defs><path d=\"M868.593046 403.832442c-30.081109-28.844955-70.037123-44.753273-112.624057-44.753273L265.949606 359.079168c-42.554188 0-82.510202 15.908318-112.469538 44.690852-30.236652 28.782533-46.857191 67.222007-46.857191 108.198258l0 294.079782c0 40.977273 16.619516 79.414701 46.702672 108.136859 29.959336 28.844955 70.069869 44.814672 112.624057 44.814672l490.019383 0c42.585911 0 82.696444-15.969717 112.624057-44.814672 30.082132-28.844955 46.579875-67.222007 46.579875-108.136859L915.172921 511.968278C915.171897 471.053426 898.675178 432.677397 868.593046 403.832442zM841.821309 806.049083c0 22.098297-8.882298 42.772152-25.099654 58.306964-16.154935 15.661701-37.81935 24.203238-60.752666 24.203238L265.949606 888.559285c-22.934339 0-44.567032-8.54256-60.877509-24.264637-16.186657-15.474436-25.067932-36.148291-25.067932-58.246589L180.004165 511.968278c0-22.035876 8.881274-42.772152 25.192775-58.307987 16.186657-15.536858 37.81935-24.139793 60.753689-24.139793l490.019383 0c22.933315 0 44.597731 8.602935 60.752666 24.139793 16.21838 15.535835 25.099654 36.272112 25.099654 58.307987L841.822332 806.049083zM510.974136 135.440715c114.914216 0 208.318536 89.75214 208.318536 200.055338l73.350588 0c0-149.113109-126.366036-270.496667-281.669124-270.496667-155.333788 0-281.699824 121.383558-281.699824 270.496667l73.350588 0C302.623877 225.193879 396.059919 135.440715 510.974136 135.440715zM474.299865 747.244792l73.350588 0L547.650453 629.576859l-73.350588 0L474.299865 747.244792z\" p-id=\"2751\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"1c18\":function(t,e,i){},\"1ff4\":function(t,e,i){\"use strict\";i(\"ca8c\")},\"20e7\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-chart\",use:\"icon-chart-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-chart\"><path d=\"M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},2369:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-education\",use:\"icon-education-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-education\"><path d=\"M88.883 119.565c-7.284 0-19.434 2.495-21.333 8.25v.127c-4.232.13-5.222 0-7.108 0-1.895-5.76-14.045-8.256-21.333-8.256H0V0h42.523c9.179 0 17.109 5.47 21.47 13.551C68.352 5.475 76.295 0 85.478 0H128v119.57l-39.113-.005h-.004zM60.442 24.763c0-9.651-8.978-16.507-17.777-16.507H7.108V111.43H39.11c7.054-.14 18.177.082 21.333 6.12v-4.628c-.134-5.722-.004-13.522 0-13.832V27.413l.004-2.655-.004.005zm60.442-16.517h-35.55c-8.802 0-17.78 6.856-17.78 16.493v74.259c.004.32.138 8.115 0 13.813v4.627c3.155-6.022 14.279-6.26 21.333-6.114h32V8.25l-.003-.005z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"23f1\":function(t,e,i){var n={\"./404.svg\":\"49be\",\"./addy.svg\":\"3c06\",\"./bug.svg\":\"937c\",\"./build.svg\":\"b88c\",\"./button.svg\":\"c292\",\"./cascader.svg\":\"737d\",\"./chart.svg\":\"20e7\",\"./checkbox.svg\":\"9ec1\",\"./client.svg\":\"898c\",\"./clipboard.svg\":\"5aa7\",\"./code.svg\":\"d7a0\",\"./color.svg\":\"e218\",\"./component.svg\":\"02b8\",\"./dashboard.svg\":\"7154\",\"./date-range.svg\":\"ad41\",\"./date.svg\":\"a2bf\",\"./dict.svg\":\"da75\",\"./documentation.svg\":\"ed00\",\"./download.svg\":\"039a\",\"./drag.svg\":\"a2f6\",\"./druid.svg\":\"bc7b\",\"./edit.svg\":\"2fb0\",\"./education.svg\":\"2369\",\"./email.svg\":\"caf7\",\"./example.svg\":\"b6f9\",\"./excel.svg\":\"e3ff\",\"./exit-fullscreen.svg\":\"f22e\",\"./eye-open.svg\":\"74a2\",\"./eye.svg\":\"57fa\",\"./form.svg\":\"4576\",\"./fullscreen.svg\":\"72e5\",\"./github.svg\":\"cda1\",\"./guide.svg\":\"72d1\",\"./icon.svg\":\"9f4c\",\"./input.svg\":\"0b37\",\"./international.svg\":\"a601\",\"./job.svg\":\"e82a\",\"./language.svg\":\"a17a\",\"./link.svg\":\"5fda\",\"./list.svg\":\"3561\",\"./lock.svg\":\"a012\",\"./log.svg\":\"9cb5\",\"./logininfor.svg\":\"9b2c\",\"./message.svg\":\"15e8\",\"./money.svg\":\"4955\",\"./monitor.svg\":\"f71f\",\"./nacos.svg\":\"30a1\",\"./nested.svg\":\"91be\",\"./number.svg\":\"a1ac\",\"./online.svg\":\"575e\",\"./password.svg\":\"198d\",\"./pdf.svg\":\"8989\",\"./people.svg\":\"ae6e\",\"./peoples.svg\":\"dc13\",\"./phone.svg\":\"b470\",\"./post.svg\":\"482c\",\"./qq.svg\":\"39e1\",\"./question.svg\":\"5d9e\",\"./radio.svg\":\"9a4c\",\"./rate.svg\":\"04ad\",\"./row.svg\":\"0c16\",\"./search.svg\":\"679a\",\"./select.svg\":\"0ee3\",\"./sentinel.svg\":\"5600\",\"./server.svg\":\"4738\",\"./shopping.svg\":\"98ab\",\"./size.svg\":\"879b\",\"./skill.svg\":\"a263\",\"./slider.svg\":\"df36\",\"./spot.svg\":\"5ad5\",\"./star.svg\":\"4e5a\",\"./swagger.svg\":\"84e5\",\"./switch.svg\":\"243e\",\"./system.svg\":\"922f\",\"./tab.svg\":\"2723\",\"./table.svg\":\"dc78\",\"./textarea.svg\":\"7234\",\"./theme.svg\":\"7271\",\"./time-range.svg\":\"99c3\",\"./time.svg\":\"f8e6\",\"./tool.svg\":\"06b3\",\"./tree-table.svg\":\"4d24\",\"./tree.svg\":\"0e8f\",\"./upload.svg\":\"068c\",\"./user.svg\":\"d88a\",\"./validCode.svg\":\"67bd\",\"./wechat.svg\":\"2ba1\",\"./zip.svg\":\"a75d\"};function o(t){var e=r(t);return i(e)}function r(t){if(!i.o(n,t)){var e=new Error(\"Cannot find module '\"+t+\"'\");throw e.code=\"MODULE_NOT_FOUND\",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=r,t.exports=o,o.id=\"23f1\"},\"243e\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-switch\",use:\"icon-switch-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-switch\"><defs><style type=\"text/css\"></style></defs><path d=\"M692 792H332c-150 0-270-120-270-270s120-270 270-270h360c150 0 270 120 270 270 0 147-120 270-270 270zM332 312c-117 0-210 93-210 210s93 210 210 210h360c117 0 210-93 210-210s-93-210-210-210H332z\" p-id=\"1111\" /><path d=\"M341 522m-150 0a150 150 0 1 0 300 0 150 150 0 1 0-300 0Z\" p-id=\"1112\" /></symbol>'});s.a.add(a);e[\"default\"]=a},2466:function(t,e,i){\"use strict\";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"InstanceManagementList\"},[i(\"TabPane\",{attrs:{label:\"历史流程\",name:\"历史流程\"}},[\"历史流程\"===t.tabalive?i(\"HistoricalProcess\",{attrs:{falg:1,tabalive:t.tabalive}}):t._e()],1)],1)},o=[],r=i(\"58f1\"),s=i(\"634a\"),a={name:\"handled\",components:{todoProcess:r[\"a\"],HistoricalProcess:s[\"a\"]},data:function(){return{tabalive:\"历史流程\",tabConfig:[{label:\"待办流程\",name:\"待办流程\"},{label:\"历史流程\",name:\"历史流程\"}]}},methods:{routeClick:function(t){1===t?this.tabalive=\"待办流程\":2===t&&(this.tabalive=\"历史流程\")},onClick:function(t){this.tabalive=t,\"历史流程\"===t?window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=2\"):window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=1\")}},created:function(){this.routeClick(2)}},l=a,h=(i(\"9c49\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"default\"]=u.exports},2657:function(t,e,i){\"use strict\";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"InstanceManagementList\"},[i(\"TabPane\",{attrs:{label:\"历史流程\",name:\"历史流程\"}},[\"历史流程\"===t.tabalive?i(\"HistoricalProcess\",{attrs:{tabalive:t.tabalive}}):t._e()],1)],1)},o=[],r=i(\"58f1\"),s=i(\"634a\"),a={name:\"process\",components:{todoProcess:r[\"a\"],HistoricalProcess:s[\"a\"]},data:function(){return{tabalive:\"历史流程\",tabConfig:[{label:\"待办流程\",name:\"待办流程\"},{label:\"历史流程\",name:\"历史流程\"}]}},methods:{routeClick:function(t){1===t?this.tabalive=\"待办流程\":2===t&&(this.tabalive=\"历史流程\")},onClick:function(t){this.tabalive=t,\"历史流程\"===t?window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=2\"):window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=1\")}},created:function(){this.routeClick(2)}},l=a,h=(i(\"18ae\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"default\"]=u.exports},2723:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tab\",use:\"icon-tab-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-tab\"><path d=\"M78.921.052H49.08c-1.865 0-3.198 1.599-3.198 3.464v6.661c0 1.865 1.6 3.464 3.198 3.464h29.84c1.865 0 3.198-1.599 3.198-3.464V3.516C82.385 1.65 80.786.052 78.92.052zm45.563 0H94.642c-1.865 0-3.464 1.599-3.464 3.464v6.661c0 1.865 1.599 3.464 3.464 3.464h29.842c1.865-.266 3.464-1.599 3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464zm0 22.382H40.02c-1.866 0-3.464-1.599-3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464H3.516C1.65.052.052 1.651.052 3.516V124.75c0 1.598 1.599 3.197 3.464 3.197h120.968c1.865 0 3.464-1.599 3.464-3.464V25.898c0-1.865-1.599-3.464-3.464-3.464z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"28fa\":function(t,e,i){},\"2ba1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-wechat\",use:\"icon-wechat-usage\",viewBox:\"0 0 128 110\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 110\" id=\"icon-wechat\"><path d=\"M86.635 33.334c1.467 0 2.917.113 4.358.283C87.078 14.392 67.58.111 45.321.111 20.44.111.055 17.987.055 40.687c0 13.104 6.781 23.863 18.115 32.209l-4.527 14.352 15.82-8.364c5.666 1.182 10.207 2.395 15.858 2.395 1.42 0 2.829-.073 4.227-.189-.886-3.19-1.398-6.53-1.398-9.996 0-20.845 16.98-37.76 38.485-37.76zm-24.34-12.936c3.407 0 5.665 2.363 5.665 5.954 0 3.576-2.258 5.97-5.666 5.97-3.392 0-6.795-2.395-6.795-5.97 0-3.591 3.403-5.954 6.795-5.954zM30.616 32.323c-3.393 0-6.818-2.395-6.818-5.971 0-3.591 3.425-5.954 6.818-5.954 3.392 0 5.65 2.363 5.65 5.954 0 3.576-2.258 5.97-5.65 5.97z\" /><path d=\"M127.945 70.52c0-19.075-18.108-34.623-38.448-34.623-21.537 0-38.5 15.548-38.5 34.623 0 19.108 16.963 34.622 38.5 34.622 4.508 0 9.058-1.2 13.584-2.395l12.414 7.167-3.404-11.923c9.087-7.184 15.854-16.712 15.854-27.471zm-50.928-5.97c-2.254 0-4.53-2.362-4.53-4.773 0-2.378 2.276-4.771 4.53-4.771 3.422 0 5.665 2.393 5.665 4.771 0 2.41-2.243 4.773-5.665 4.773zm24.897 0c-2.24 0-4.498-2.362-4.498-4.773 0-2.378 2.258-4.771 4.498-4.771 3.392 0 5.665 2.393 5.665 4.771 0 2.41-2.273 4.773-5.665 4.773z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"2fb0\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-edit\",use:\"icon-edit-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-edit\"><path d=\"M106.133 67.2a4.797 4.797 0 0 0-4.8 4.8c0 .187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654 0 4.8-2.147 4.8-4.8 0-2.654-2.146-4.8-4.8-4.8H9.6a9.594 9.594 0 0 0-9.6 9.6V118.4c0 5.307 4.293 9.6 9.6 9.6h91.733c5.307 0 9.6-4.293 9.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533 0-2.653-2.146-4.8-4.8-4.8z\" /><path d=\"M125.16 13.373L114.587 2.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96 52.96a4.264 4.264 0 0 0-.907 1.36L33.813 88.533c-.746 1.76-.226 3.534.907 4.68 1.133 1.147 2.92 1.667 4.693.92l31.4-13.293c.507-.213.96-.52 1.36-.907l52.96-52.96c3.747-3.746 3.774-9.853.027-13.6zM66.107 72.4l-18.32 7.76 7.76-18.32L92.72 24.667l10.56 10.56L66.107 72.4zm52.226-52.227l-8.266 8.267-10.56-10.56 8.266-8.267.027-.026 10.56 10.56-.027.026z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"30a1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-nacos\",use:\"icon-nacos-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-nacos\"><defs><style type=\"text/css\"></style></defs><path d=\"M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z\" fill=\"#F4F5F9\" p-id=\"718\" /><path d=\"M695.04 258.2784H328.96a35.9296 35.9296 0 0 0-36.0448 36.0448v435.6352a35.9296 35.9296 0 0 0 36.0448 36.0448h366.08a35.9296 35.9296 0 0 0 36.0448-36.0448V294.3232a35.9296 35.9296 0 0 0-36.0448-36.0448z m-187.5456 39.424v183.6032L461.312 452.864a17.472 17.472 0 0 0-9.0112-2.5344c-3.0976 0-6.1952 0.8448-9.0112 2.5344l-45.6192 28.4416V297.7024h109.824z m-178.5344-5.632h34.9184v219.648c0 6.1952 3.3792 11.8272 8.7296 14.6432 5.3504 3.0976 11.8272 2.816 17.1776-0.2816l62.7968-38.8608 62.7968 38.8608c2.816 1.6896 5.9136 2.5344 9.0112 2.5344 2.816 0 5.632-0.8448 8.1664-2.2528 5.3504-3.0976 8.7296-8.7296 8.7296-14.6432v-219.648H695.04a2.432 2.432 0 0 1 2.2528 2.2528v351.7184H326.7072V294.3232c0-1.408 1.1264-2.2528 2.2528-2.2528z m366.08 439.8592H328.96a2.432 2.432 0 0 1-2.2528-2.2528V679.552h370.5856v50.1248c0 1.408-1.1264 2.2528-2.2528 2.2528z\" fill=\"#3A7FF6\" p-id=\"719\" /><path d=\"M378.3552 317.7344v-9.6768 423.872h318.9376V317.7344z\" fill=\"#3A7FF6\" fill-opacity=\".15\" p-id=\"720\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"324e\":function(t,e,i){\"use strict\";i(\"0b8d\")},\"34db\":function(t,e,i){},3561:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-list\",use:\"icon-list-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-list\"><path d=\"M1.585 12.087c0 6.616 3.974 11.98 8.877 11.98 4.902 0 8.877-5.364 8.877-11.98 0-6.616-3.975-11.98-8.877-11.98-4.903 0-8.877 5.364-8.877 11.98zM125.86.107H35.613c-1.268 0-2.114 1.426-2.114 2.852v18.255c0 1.712 1.057 2.853 2.114 2.853h90.247c1.268 0 2.114-1.426 2.114-2.853V2.96c0-1.711-1.057-2.852-2.114-2.852zM.106 62.86c0 6.615 3.974 11.979 8.876 11.979 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zM124.17 50.88H33.921c-1.268 0-2.114 1.425-2.114 2.851v18.256c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852V53.73c0-1.426-.846-2.852-2.114-2.852zM.106 115.913c0 6.616 3.974 11.98 8.876 11.98 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zm124.064-11.98H33.921c-1.268 0-2.114 1.426-2.114 2.853v18.255c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852v-18.255c0-1.427-.846-2.853-2.114-2.853z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"39e1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-qq\",use:\"icon-qq-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-qq\"><path d=\"M18.448 57.545l-.244-.744-.198-.968-.132-.53v-2.181l.236-.859.24-.908.317-.953.428-1.06.561-1.103.794-1.104v-.773l.077-.724.123-.984.34-1.106.313-1.194.25-.548.289-.511.371-.569.405-.423v-2.73l.234-1.407.236-1.633.42-1.955.577-2.035.43-1.118.426-1.217.468-1.135.559-1.216.57-1.332.655-1.247.737-1.331.929-1.33.43-.762.457-.624.995-1.406 1.025-1.403 1.163-1.444 1.246-1.405 1.352-1.384 1.41-1.423 1.708-1.536 1.083-.934 1.322-1.008 1.34-.89 1.448-.855 1.392-.76 1.57-.63 1.667-.775 1.657-.532 1.653-.552 1.787-.548 1.785-.417 1.876-.347L59.128.68l1.879-.245 1.876-.252 2.002-.106h5.912l1.97.243 1.981.231 2.019.207 1.874.441 1.979.413 1.857.475 2.035.53 1.862.646 1.782.738 1.904.78 1.736.853 1.689.95 1.655 1.044 1.425.971.662.548.693.401 1.323 1.1 1.115 1.064 1.112 1.1 1.083 1.214.894 1.178 1.064 1.217.74 1.306.752 1.162.798 1.352.661 1.175 1.113 2.489.546 1.286.428 1.192.428 1.294.384 1.217.267 1.047.347 1.231.607 2.198.388 1.924.253 1.861.217 1.497.342 2.28.077.362.274.41.737 1.18.473.8.42.832.534.892.472 1.07.307 1.093.334 1.2.252 1.232.115.605.106.746v.648l-.106.643v.8l-.192.774-.35 1.5-.403.76-.299.852v.213l.142.264.4.623 1.746 2.53 1.377 1.9.66 1.267.889 1.389.774 1.52.893 1.627.894 1.828 1.006 2.069.567 1.268.518 1.239.447 1.307.44 1.175.336 1.235.342 1.16.432 2.261.343 2.31.235 2.05v2.891l-.158 1.025-.226 1.768-.308 1.59-.48 1.44-.18.588-.336.707-.28.493-.375.607-.33.383-.42.494-.375.4-.401.34-.48.207-.432.207-.355.114h-.543l-.346-.114-.66-.32-.302-.212-.317-.223-.347-.304-.35-.342-.579-.63-.684-.89-.539-.917-.538-.734-.526-.855-.741-1.517-.833-1.579-.098-.055h-.138l-.338.247-.196.415-.326.516-.567 1.533-.856 2.182-1.096 2.626-.824 1.308-.864 1.366-1.027 1.536-1.09 1.503-.557.68-.676.743-1.555 1.497.136.135.21.214.777.446 3.235 1.524 1.41.779 1.347.756 1.332.953 1.187.982.574.443.432.511.445.593.367.643.198.533.242.64.105.554.115.647-.115.433v.44l-.105.454-.242.415-.092.325-.22.394-.587.784-.543.627-.42.47-.35.348-.893.638-1.01.556-1.077.532-1.155.511-1.287.495-.693.207-.608.167-1.496.342-1.545.325-1.552.323-1.689.27-1.74.072-1.785.21h-5.539l-1.998-.114-1.86-.168-2.005-.27-1.99-.209-2.095-.286-2.03-.495-1.981-.374-1.968-.552-2.019-.707-1.98-.585-1.044-.342-.927-.323-.586-.223-.582-.12h-1.647l-1.904-.131-.962-.096-1.24-.135-.795.705-1.085.665-1.471.701-1.628.875-.99.475-1.033.376-2.281.914-1.24.305-1.3.343-1.803.344-1.13.086-1.193.1-1.246.135-1.45.053h-5.926l-3.346-.053-3.25-.321-1.644-.23-1.589-.23-1.546-.227-1.547-.305-1.442-.456-1.434-.325-1.294-.51-1.223-.474-1.142-.533-.99-.583-.984-.71-.336-.343-.44-.415-.334-.362-.3-.417-.278-.415-.215-.42-.311-.89-.109-.46-.138-.51v-.473l.138-.533v-.53l.109-.53v-1.069l.052-.564.259-.647.215-.646.39-.779.286-.3.236-.348.615-.738.49-.38.464-.266.428-.338.676-.21.543-.324.676-.341.77-.227.775-.231.897-.192.85-.11 1.008-.13 1.093-.081.284-.092h.063l.137-.115v-.13l-.2-.266-.58-.27-1.45-1.231-.975-.761-1.127-.967-1.136-1.082-1.181-1.382-1.36-1.558-.508-.843-.672-.87-.58-1.007-.522-1.1-.704-1.047-.459-1.194-.547-1.192-.546-1.33-.397-1.273-.378-1.575-.112-.057h-.115l-.059-.113h-.14l-.23.113-.114.057-.158.264-.057.321-.119.286-.206.477-.664 1.157-.345.701-.546.612-.58.736-.641.816-.677.724-.795.701-.734.658-.814.524-.89.546-.855.325-1.008.247-.99.095h-.233l-.228-.095-.18-.384-.29-.188-.38-.912-.237-.493-.255-.707-.21-.734-.113-.724-.313-1.648-.12-.972v-3.185l.12-2.379.196-1.214.23-1.252.21-1.347.374-1.254.42-1.443.431-1.407.578-1.448.545-1.38.754-1.4.699-1.52.855-1.425 1.006-1.538 1.023-1.382 1.069-1.538.891-1.071 1.142-1.227 1.202-1.237.56-.59.678-.662.985-.836 1.012-.853 1.647-1.446 1.242-.889z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"3b39\":function(t,e,i){},\"3c06\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-addy\",use:\"icon-addy-usage\",viewBox:\"0 0 1025 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1025 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-addy\"><defs><style type=\"text/css\"></style></defs><path d=\"M852.812 166.713c-92.715-89.28-212.9-140.789-339.954-140.789s-250.672 51.509-339.953 140.79c-188.863 188.862-188.863 491.043 0 679.906 89.28 89.28 212.9 140.789 339.953 140.789S763.531 935.9 852.812 846.62c188.863-188.863 188.863-491.044 0-679.907m-48.074 631.833c-78.98 78.979-181.996 120.185-291.88 120.185s-212.9-41.206-291.879-120.185c-161.392-161.392-161.392-422.367 0-583.759 78.98-78.979 181.996-120.185 291.88-120.185s212.9 41.206 291.879 120.185c161.392 161.392 161.392 422.367 0 583.759\" fill=\"#515151\" p-id=\"2900\" /><path d=\"M547.197 472.328V297.2c0-20.603-13.735-34.338-34.339-34.338S478.52 276.597 478.52 297.2v175.128H303.392c-20.603 0-34.339 13.735-34.339 34.339 0 10.301 3.434 17.169 10.302 24.037s13.736 10.301 24.037 10.301H478.52v175.128c0 10.302 3.434 17.17 10.301 24.037 6.868 6.868 13.736 10.302 24.037 10.302 20.604 0 34.34-13.736 34.34-34.34V541.006h175.127c20.603 0 34.338-13.735 34.338-34.338s-13.735-34.34-34.338-34.34H547.197z\" fill=\"#515151\" p-id=\"2901\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"3f4d\":function(t,e,i){},4360:function(t,e,i){\"use strict\";var n=i(\"2b0e\"),o=i(\"2f62\"),r=i(\"a78e\"),s=i.n(r),a={sidebar:{opened:!s.a.get(\"sidebarStatus\")||!!+s.a.get(\"sidebarStatus\"),withoutAnimation:!1},device:\"desktop\",size:s.a.get(\"size\")||\"medium\"},l={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?s.a.set(\"sidebarStatus\",1):s.a.set(\"sidebarStatus\",0)},TOGGLE_SIDEBARTWO:function(t){t.sidebar.opened=!0,t.sidebar.withoutAnimation=!1,t.sidebar.opened?s.a.set(\"sidebarStatus\",1):s.a.set(\"sidebarStatus\",0)},CLOSE_SIDEBAR:function(t,e){s.a.set(\"sidebarStatus\",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e},SET_SIZE:function(t,e){t.size=e,s.a.set(\"size\",e)}},h={toggleSideBar:function(t){var e=t.commit;e(\"TOGGLE_SIDEBAR\")},toggleSideBartwo:function(t){var e=t.commit;e(\"TOGGLE_SIDEBARTWO\")},closeSideBar:function(t,e){var i=t.commit,n=e.withoutAnimation;i(\"CLOSE_SIDEBAR\",n)},toggleDevice:function(t,e){var i=t.commit;i(\"TOGGLE_DEVICE\",e)},setSize:function(t,e){var i=t.commit;i(\"SET_SIZE\",e)}},u={namespaced:!0,state:a,mutations:l,actions:h},c=(i(\"b0c0\"),i(\"498a\"),i(\"d3b7\"),i(\"7ded\")),f=i(\"5f87\"),d={state:{token:Object(f[\"a\"])(),name:\"\",userId:\"\",avatar:\"\",roles:[],permissions:[]},mutations:{SET_TOKEN:function(t,e){t.token=e},SET_EXPIRES_IN:function(t,e){t.expires_in=e},SET_NAME:function(t,e){t.name=e},SET_USERID:function(t,e){t.userId=e},SET_AVATAR:function(t,e){t.avatar=e},SET_ROLES:function(t,e){t.roles=e},SET_PERMISSIONS:function(t,e){t.permissions=e}},actions:{Login:function(t,e){var i=t.commit,n=e.username.trim(),o=e.password,r=e.code,s=e.uuid;return new Promise((function(t,e){Object(c[\"c\"])(n,o,r,s).then((function(e){var n=e.data;Object(f[\"d\"])(n.access_token),i(\"SET_TOKEN\",n.access_token),Object(f[\"c\"])(n.expires_in),i(\"SET_EXPIRES_IN\",n.expires_in),t()})).catch((function(t){e(t)}))}))},GetInfo:function(t){var e=t.commit;t.state;return new Promise((function(t,n){Object(c[\"b\"])().then((function(n){var o=n.user,r=\"\"==o.avatar?i(\"4b94\"):o.avatar;n.roles&&n.roles.length>0?(e(\"SET_ROLES\",n.roles),e(\"SET_PERMISSIONS\",n.permissions)):e(\"SET_ROLES\",[\"ROLE_DEFAULT\"]),e(\"SET_NAME\",o.userName),e(\"SET_USERID\",o.id),e(\"SET_AVATAR\",r),t(n)})).catch((function(t){n(t)}))}))},RefreshToken:function(t){var e=t.commit,i=t.state;return new Promise((function(t,n){Object(c[\"e\"])(i.token).then((function(i){Object(f[\"c\"])(i.data),e(\"SET_EXPIRES_IN\",i.data),t()})).catch((function(t){n(t)}))}))},LogOut:function(t){var e=t.commit,i=t.state;return new Promise((function(t,n){Object(c[\"d\"])(i.token).then((function(){e(\"SET_TOKEN\",\"\"),e(\"SET_ROLES\",[]),e(\"SET_PERMISSIONS\",[]),Object(f[\"b\"])(),t()})).catch((function(t){n(t)}))}))},FedLogOut:function(t){var e=t.commit;return new Promise((function(t){e(\"SET_TOKEN\",\"\"),Object(f[\"b\"])(),t()}))}}},p=d,g=i(\"2909\"),m=i(\"3835\"),v=i(\"b85c\"),y=(i(\"caad\"),i(\"2532\"),i(\"ddb0\"),i(\"a434\"),i(\"4de4\"),i(\"fb6a\"),{visitedViews:[],cachedViews:[]}),b={ADD_VISITED_VIEW:function(t,e){t.visitedViews.some((function(t){return t.path===e.path}))||t.visitedViews.push(Object.assign({},e,{title:e.meta.title||\"no-name\"}))},ADD_CACHED_VIEW:function(t,e){t.cachedViews.includes(e.name)||e.meta.noCache||t.cachedViews.push(e.name)},DEL_VISITED_VIEW:function(t,e){var i,n=Object(v[\"a\"])(t.visitedViews.entries());try{for(n.s();!(i=n.n()).done;){var o=Object(m[\"a\"])(i.value,2),r=o[0],s=o[1];if(s.path===e.path){t.visitedViews.splice(r,1);break}}}catch(a){n.e(a)}finally{n.f()}},DEL_CACHED_VIEW:function(t,e){var i=t.cachedViews.indexOf(e.name);i>-1&&t.cachedViews.splice(i,1)},DEL_OTHERS_VISITED_VIEWS:function(t,e){t.visitedViews=t.visitedViews.filter((function(t){return t.meta.affix||t.path===e.path}))},DEL_OTHERS_CACHED_VIEWS:function(t,e){var i=t.cachedViews.indexOf(e.name);t.cachedViews=i>-1?t.cachedViews.slice(i,i+1):[]},DEL_ALL_VISITED_VIEWS:function(t){var e=t.visitedViews.filter((function(t){return t.meta.affix}));t.visitedViews=e},DEL_ALL_CACHED_VIEWS:function(t){t.cachedViews=[]},UPDATE_VISITED_VIEW:function(t,e){var i,n=Object(v[\"a\"])(t.visitedViews);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.path===e.path){o=Object.assign(o,e);break}}}catch(r){n.e(r)}finally{n.f()}}},w={addView:function(t,e){var i=t.dispatch;i(\"addVisitedView\",e),i(\"addCachedView\",e)},addVisitedView:function(t,e){var i=t.commit;i(\"ADD_VISITED_VIEW\",e)},addCachedView:function(t,e){var i=t.commit;i(\"ADD_CACHED_VIEW\",e)},delView:function(t,e){var i=t.dispatch,n=t.state;return new Promise((function(t){i(\"delVisitedView\",e),i(\"delCachedView\",e),t({visitedViews:Object(g[\"a\"])(n.visitedViews),cachedViews:Object(g[\"a\"])(n.cachedViews)})}))},delVisitedView:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_VISITED_VIEW\",e),t(Object(g[\"a\"])(n.visitedViews))}))},delCachedView:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_CACHED_VIEW\",e),t(Object(g[\"a\"])(n.cachedViews))}))},delOthersViews:function(t,e){var i=t.dispatch,n=t.state;return new Promise((function(t){i(\"delOthersVisitedViews\",e),i(\"delOthersCachedViews\",e),t({visitedViews:Object(g[\"a\"])(n.visitedViews),cachedViews:Object(g[\"a\"])(n.cachedViews)})}))},delOthersVisitedViews:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_OTHERS_VISITED_VIEWS\",e),t(Object(g[\"a\"])(n.visitedViews))}))},delOthersCachedViews:function(t,e){var i=t.commit,n=t.state;return new Promise((function(t){i(\"DEL_OTHERS_CACHED_VIEWS\",e),t(Object(g[\"a\"])(n.cachedViews))}))},delAllViews:function(t,e){var i=t.dispatch,n=t.state;return new Promise((function(t){i(\"delAllVisitedViews\",e),i(\"delAllCachedViews\",e),t({visitedViews:Object(g[\"a\"])(n.visitedViews),cachedViews:Object(g[\"a\"])(n.cachedViews)})}))},delAllVisitedViews:function(t){var e=t.commit,i=t.state;return new Promise((function(t){e(\"DEL_ALL_VISITED_VIEWS\"),t(Object(g[\"a\"])(i.visitedViews))}))},delAllCachedViews:function(t){var e=t.commit,i=t.state;return new Promise((function(t){e(\"DEL_ALL_CACHED_VIEWS\"),t(Object(g[\"a\"])(i.cachedViews))}))},updateVisitedView:function(t,e){var i=t.commit;i(\"UPDATE_VISITED_VIEW\",e)}},x={namespaced:!0,state:y,mutations:b,actions:w},k=(i(\"99af\"),i(\"159b\"),i(\"a18c\")),M=i(\"b775\"),C=function(){return Object(M[\"a\"])({url:\"/system/menu/getRouters\",method:\"get\"})},S=i(\"c1f7\"),N=i(\"74a1\"),P={state:{routes:[],addRoutes:[],sidebarRouters:[],tabIndex:\"\"},mutations:{SET_TABINDEX:function(t,e){t.tabIndex=e},SET_ROUTES:function(t,e){t.addRoutes=e,t.routes=k[\"a\"].concat(e)},SET_SIDEBAR_ROUTERS:function(t,e){t.sidebarRouters=k[\"a\"].concat(e)}},actions:{TabFn:function(t,e){var i=t.commit;t.state;return new Promise((function(t){i(\"SET_TABINDEX\",e),t()}))},GenerateRoutes:function(t){var e=t.commit;return new Promise((function(t){C().then((function(i){var n=JSON.parse(JSON.stringify(i.data)),o=JSON.parse(JSON.stringify(i.data)),r=T(n),s=T(o,!1,!0);s.push({path:\"*\",redirect:\"/404\",hidden:!0}),e(\"SET_ROUTES\",s),e(\"SET_SIDEBAR_ROUTERS\",r),t(s)}))}))}}};function T(t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter((function(t){return e&&t.children&&(t.children=L(t.children)),t.component&&(\"Layout\"===t.component?t.component=S[\"a\"]:\"ParentView\"===t.component?t.component=N[\"a\"]:t.component=O(t.component)),null!=t.children&&t.children&&t.children.length?t.children=T(t.children,t,e):(delete t[\"children\"],delete t[\"redirect\"]),!0}))}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[];return t.forEach((function(t,n){t.children&&t.children.length&&\"ParentView\"===t.component?t.children.forEach((function(e){e.path=t.path+\"/\"+e.path,e.children&&e.children.length?i=i.concat(L(e.children,e)):i.push(e)})):(e&&(t.path=e.path+\"/\"+t.path),i=i.concat(t))})),i}var O=function(t){return function(e){return Promise.all([i.e(\"chunk-3bded899\"),i.e(\"chunk-2d0b2b28\"),i.e(\"chunk-2d0e2366\"),i.e(\"chunk-c7ba20dc\"),i.e(\"chunk-36c8c066\")]).then(function(){var n=[i(\"4b3b\")(\"./\".concat(t))];e.apply(null,n)}.bind(this)).catch(i.oe)}},D=P,j=i(\"49f4\"),A=i.n(j),B=i(\"83d6\"),z=i.n(B),F=z.a.sideTheme,I=z.a.showSettings,E=z.a.tagsView,R=z.a.fixedHeader,V=z.a.sidebarLogo,_={theme:A.a.theme,sideTheme:F,showSettings:I,tagsView:E,fixedHeader:R,keepAliveArray:[\"TemplateManagementLists\"],sidebarLogo:V},H={CHANGE_SETTING:function(t,e){var i=e.key,n=e.value;t.hasOwnProperty(i)&&(t[i]=n)},changeKeepAliveArray:function(t,e){t.keepAliveArray=e}},Y={changeSetting:function(t,e){var i=t.commit;i(\"CHANGE_SETTING\",e)}},q={namespaced:!0,state:_,mutations:H,actions:Y},G={sidebar:function(t){return t.app.sidebar},size:function(t){return t.app.size},device:function(t){return t.app.device},visitedViews:function(t){return t.tagsView.visitedViews},cachedViews:function(t){return t.tagsView.cachedViews},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},userId:function(t){return t.user.userId},introduction:function(t){return t.user.introduction},roles:function(t){return t.user.roles},permissions:function(t){return t.user.permissions},permission_routes:function(t){return t.permission.routes},sidebarRouters:function(t){return t.permission.sidebarRouters},tabIndex:function(t){return t.permission.tabIndex}},X=G,U=(i(\"5319\"),i(\"ac1f\"),i(\"25f0\"),i(\"2b3d\"),i(\"3ca3\"),i(\"b64b\"),i(\"bc3a\")),K=i.n(U);function $(){var t=\"xxxxxxxxxxxxxxxx\",e=\"0123456789abcdef\",i=e.length;return t.replace(/x/g,(function(t){return e.charAt(Math.floor(Math.random()*i))}))}K.a.interceptors.request.use((function(t){if(t.headers.accessToken=localStorage.getItem(\"accesstoken\"),t.headers[\"Content-Type\"]=\"application/json\",t.url=\"/jflow\".concat(t.url),store.state.encrypt){var e=$(),i=CryptoJS.enc.Utf8.parse(e),n=CryptoJS.AES.encrypt(JSON.stringify(t.data),i,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});t.data=n.toString();var o=new JSEncrypt;o.setPublicKey(\"\\n -----BEGIN PUBLIC KEY-----\\n \".concat(store.state.PUBLIC_KEY,\"\\n -----END PUBLIC KEY-----\")),t.headers[\"encrypt_key\"]=o.encrypt(e),t.headers[\"encrypt_type\"]=\"RSA\"}return t})),K.a.interceptors.response.use((function(t){return-1===t.data.resultCode&&window.vm.$Modal.fcError({title:\"错误\",content:t.data.resultMsg,mask:!0}),t}),(function(t){if(t.response){var e=t.response.status;403===e&&window.vm.$Modal.fcError({title:\"错误\",content:t.response.data.resultMsg,mask:!0,onOk:function(){router.push(\"/Login\"),localStorage.setItem(\"accesstoken\",null),localStorage.removeItem(\"username\",null)}})}Promise.reject(t)}));var W=K.a;n[\"default\"].use(o[\"a\"]);var J=new o[\"a\"].Store({modules:{app:u,user:p,tagsView:x,permission:D,settings:q},getters:X,network:W});e[\"a\"]=J},\"43c3\":function(t,e,i){},4446:function(t,e){},4575:function(t,e,i){\"use strict\";i(\"00a3\")},4576:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-form\",use:\"icon-form-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-form\"><path d=\"M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063l1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"469f\":function(t,e,i){\"use strict\";i(\"5c04\")},4738:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-server\",use:\"icon-server-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-server\"><defs><style type=\"text/css\"></style></defs><path d=\"M890 120H134a70 70 0 0 0-70 70v500a70 70 0 0 0 70 70h756a70 70 0 0 0 70-70V190a70 70 0 0 0-70-70z m-10 520a40 40 0 0 1-40 40H712V448a40 40 0 0 0-80 0v232h-80V368a40 40 0 0 0-80 0v312h-80V512a40 40 0 0 0-80 0v168H184a40 40 0 0 1-40-40V240a40 40 0 0 1 40-40h656a40 40 0 0 1 40 40zM696 824H328a40 40 0 0 0 0 80h368a40 40 0 0 0 0-80z\" fill=\"#bfbfbf\" p-id=\"6718\" /></symbol>'});s.a.add(a);e[\"default\"]=a},4800:function(t,e,i){},\"482c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-post\",use:\"icon-post-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-post\"><defs><style type=\"text/css\"></style></defs><path d=\"M136.4 434.3h77.7c21.5 0 38.9-17.4 38.9-38.9s-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9zM252.9 628.6c0-21.5-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9H214c21.5-0.1 38.9-17.5 38.9-38.9z\" p-id=\"3999\" /><path d=\"M874.7 97.5H227c-28.6 0-51.8 23.2-51.8 51.8v194.3h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v129.5h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v194.3c0 28.6 23.2 51.8 51.8 51.8h647.7c28.6 0 51.8-23.2 51.8-51.8V149.3c0-28.6-23.2-51.8-51.8-51.8z m-311.3 723c-15.6 0-146.7-71.6-146.7-91 0-19.4 102-368.6 102-368.6l-83.6-104s-12.3-23.1 24.6-23.1h208.9c36.9 0 18.4 23.1 18.4 23.1l-79 104s102 351.3 102 368.6c0.1 17.3-131 91-146.6 91z m169.2-253.6l-27.9 40.2-74.5-240 103.4 171.7c4.6 7.9 4.2 20.6-1 28.1z\" p-id=\"4000\" /></symbol>'});s.a.add(a);e[\"default\"]=a},4955:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-money\",use:\"icon-money-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-money\"><path d=\"M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"49be\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-404\",use:\"icon-404-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-404\"><path d=\"M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"49c8\":function(t,e,i){},\"49f4\":function(t,e,i){t.exports={theme:\"#1890ff\"}},\"4b72\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return o})),i.d(e,\"t\",(function(){return r})),i.d(e,\"d\",(function(){return s})),i.d(e,\"s\",(function(){return a})),i.d(e,\"w\",(function(){return l})),i.d(e,\"q\",(function(){return h})),i.d(e,\"o\",(function(){return u})),i.d(e,\"c\",(function(){return c})),i.d(e,\"j\",(function(){return f})),i.d(e,\"n\",(function(){return d})),i.d(e,\"h\",(function(){return p})),i.d(e,\"z\",(function(){return g})),i.d(e,\"m\",(function(){return m})),i.d(e,\"r\",(function(){return v})),i.d(e,\"f\",(function(){return y})),i.d(e,\"g\",(function(){return b})),i.d(e,\"v\",(function(){return w})),i.d(e,\"y\",(function(){return x})),i.d(e,\"A\",(function(){return k})),i.d(e,\"l\",(function(){return M})),i.d(e,\"b\",(function(){return C})),i.d(e,\"e\",(function(){return S})),i.d(e,\"u\",(function(){return N})),i.d(e,\"i\",(function(){return P})),i.d(e,\"k\",(function(){return T})),i.d(e,\"x\",(function(){return L})),i.d(e,\"p\",(function(){return O}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation\",method:\"post\",data:t})}function r(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation\",method:\"put\",data:t})}function s(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation/\"+t,method:\"delete\"})}function a(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation/\"+t,method:\"get\"})}function l(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableRelation/list\",method:\"get\",params:t})}function h(t){return Object(n[\"a\"])({url:\"/code/gen/list\",method:\"get\",params:t})}function u(t){return Object(n[\"a\"])({url:\"/code/gen/db/list\",method:\"get\",params:t})}function c(t){return Object(n[\"a\"])({url:\"/boman-gen/gen/addTable\",method:\"post\",data:t})}function f(t){return Object(n[\"a\"])({url:\"/code/gen/\"+t,method:\"get\"})}function d(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/table/listAllColumnsByTableId\",method:\"post\",data:t})}function p(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn/list\",method:\"get\",params:t})}function g(t){return Object(n[\"a\"])({url:\"/code/gen\",method:\"put\",data:t})}function m(t){return Object(n[\"a\"])({url:\"/code/gen/importTable\",method:\"post\",params:t})}function v(t){return Object(n[\"a\"])({url:\"/code/gen/preview/\"+t,method:\"get\"})}function y(t){return Object(n[\"a\"])({url:\"/code/gen/\"+t,method:\"delete\"})}function b(t){return Object(n[\"a\"])({url:\"/code/gen/genCode/\"+t,method:\"get\"})}function w(t){return Object(n[\"a\"])({url:\"/code/gen/synchDb/\"+t,method:\"get\"})}function x(t){return Object(n[\"a\"])({url:\"/boman-gen/tableSql/\"+t,method:\"get\"})}function k(t){return Object(n[\"a\"])({url:\"/boman-gen/tableSql/implement\",method:\"post\",data:t})}function M(t){return Object(n[\"a\"])({url:\"/boman-gen/tableSql/reload\",method:\"POST\",data:t})}function C(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn\",method:\"POST\",data:t})}function S(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn/\"+t,method:\"delete\"})}function N(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn\",method:\"put\",data:t})}function P(t){return Object(n[\"a\"])({url:\"/boman-gen/genTableColumn/getByIdWithForeignKey/\"+t,method:\"get\"})}function T(){return Object(n[\"a\"])({url:\"boman-gen/init/loadTable\",method:\"get\"})}function L(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/getTableQuery\",method:\"POST\",data:t})}function O(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}},\"4b94\":function(t,e,i){t.exports=i.p+\"static/img/profile.473f5971.jpg\"},\"4c5b\":function(t,e,i){},\"4d24\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-tree-table\",use:\"icon-tree-table-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-tree-table\"><path d=\"M44.8 0h79.543C126.78 0 128 1.422 128 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H44.8c-2.438 0-3.657-1.422-3.657-4.267V4.267C41.143 1.422 42.362 0 44.8 0zm22.857 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 80 64 78.578 64 75.733V52.267C64 49.422 65.219 48 67.657 48zm0 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 128 64 126.578 64 123.733v-23.466C64 97.422 65.219 96 67.657 96zM50.286 68.267c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V32h6.4c2.02 0 3.658-1.91 3.658-4.267V4.267C27.429 1.91 25.79 0 23.77 0H3.657C1.637 0 0 1.91 0 4.267v23.466C0 30.09 1.637 32 3.657 32h6.4v80c0 2.356 1.638 4.267 3.657 4.267h36.572c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V68.267h32.915z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"4e5a\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-star\",use:\"icon-star-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-star\"><path d=\"M70.66 4.328l14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"4ff4\":function(t,e,i){\"use strict\";i(\"8243\")},\"50a6\":function(t,e,i){\"use strict\";i(\"afbd\")},\"542a\":function(t,e,i){},5600:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-sentinel\",use:\"icon-sentinel-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-sentinel\"><defs><style type=\"text/css\"></style></defs><path d=\"M178.730368 448.278738v226.23413c0 175.689587-9.325063 154.471691 187.85271199 264.615547l145.95750301 84.466147v-108.116668l-229.747921-131.091461c-17.163521-11.487396-13.51458399-7.973604-13.514584-55.004356l241.775901 137.30817 1.081167-331.242444L269.818662 676.675201l0.810875-179.743962c81.087502-44.057543 160.01267-91.493731 240.965025-135.145836v-104.738023z\" fill=\"#33E7D8\" p-id=\"562\" /><path d=\"M511.594562 361.379966l244.208526 140.551669v43.787251l-243.938234-136.49729401v77.70885501l242.992213 138.524482v148.66042l-243.262505 141.767982v108.116669l216.233338-124.334169c130.550878-71.221856 116.360565-67.572918 116.360565-224.747526v-229.747921L511.459417 257.04738zM511.864854 211.503233l333.404778 189.204171V190.420483l-95.277815-51.490564v99.061898l-142.849148-79.330605V51.625709L512.135146 0l-0.270292 211.503233z\" fill=\"#246ADF\" p-id=\"563\" /><path d=\"M178.460077 402.329154l333.404777-190.825921L512.135146 0l-95.548106 55.544939v103.116273L277.65712 237.991817v-99.061898L178.460077 190.420483v211.908671z\" fill=\"#33E7D8\" p-id=\"564\" /><path d=\"M511.189125 866.690247l-0.135146 1.351458 202.583608-113.522502-0.405437-102.845981-201.097004-116.225419-0.946021 331.242444z\" fill=\"#246ADF\" p-id=\"565\" /><path d=\"M178.460077 402.329154l23.24508301 32.705292 309.75425699-177.987066 310.700277 174.338129 23.109938-30.678105-333.404778-189.204171L178.460077 402.329154zM512.135146 535.447803l201.097004 116.225419 0.405437 102.845981-202.583608 113.522502 0.675729 47.436189 243.262505-141.76798201V625.725221L511.594562 487.200739l0.540584 48.247064z\" p-id=\"566\" /><path d=\"M512.135146 535.447803l-0.675729-48.247064-200.421275 114.468523c2.027188-97.710439-11.892834-71.221856 51.490563-108.116669l148.66042-84.06071v-48.111917c-81.087502 44.057543-159.336941 91.493731-240.965026 135.145836l-0.81087499 179.743962z\" fill=\"#FFFFFF\" p-id=\"567\" /><path d=\"M511.459417 487.200739V409.491883l-148.66042 84.06071c-63.383397 36.894813-49.463376 10.406229-51.490564 108.116669z\" fill=\"#33E7D8\" p-id=\"568\" /><path d=\"M511.729708 915.477894l-0.675729-46.76046L269.683516 729.382077c0 47.030751-4.054375 43.516959 13.514584 55.004356z\" fill=\"#FFFFFF\" p-id=\"569\" /><path d=\"M511.864854 409.627029l244.07338 136.091857v-43.787251l-244.343672-140.551669 0.270292 48.247063z\" p-id=\"570\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"56d7\":function(t,e,i){\"use strict\";i.r(e);i(\"e260\"),i(\"e6cf\"),i(\"cca6\"),i(\"a79d\");var n=i(\"2b0e\"),o=i(\"a78e\"),r=i.n(o),s=i(\"1f94\"),a=i.n(s),l=i(\"5c96\"),h=i.n(l),u=(i(\"49f4\"),i(\"5eef\"),i(\"6861\"),i(\"b34b\"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{attrs:{id:\"app\"}},[t.isRouterAlive?i(\"router-view\"):t._e()],1)}),c=[],f={name:\"App\",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}},d=f,p=(i(\"034f\"),i(\"2877\")),g=Object(p[\"a\"])(d,u,c,!1,null,null,null),m=g.exports,v=i(\"4360\"),y=i(\"a18c\"),b=(i(\"caad\"),i(\"2532\"),{inserted:function(t,e,i){var n=e.value,o=\"admin\",r=v[\"a\"].getters&&v[\"a\"].getters.roles;if(!(n&&n instanceof Array&&n.length>0))throw new Error('请设置角色权限标签值\"');var s=n,a=r.some((function(t){return o===t||s.includes(t)}));a||t.parentNode&&t.parentNode.removeChild(t)}}),w={inserted:function(t,e,i){var n=e.value,o=\"*:*:*\",r=v[\"a\"].getters&&v[\"a\"].getters.permissions;if(!(n&&n instanceof Array&&n.length>0))throw new Error(\"请设置操作权限标签值\");var s=n,a=r.some((function(t){return o===t||s.includes(t)}));a||t.parentNode&&t.parentNode.removeChild(t)}},x=function(t){t.directive(\"hasRole\",b),t.directive(\"hasPermi\",w)};window.Vue&&(window[\"hasRole\"]=b,window[\"hasPermi\"]=w,Vue.use(x));var k=x,M=i(\"b775\"),C=i(\"b85c\");i(\"5319\"),i(\"ac1f\"),i(\"a9e3\");function S(t,e,i){var n,o=i,r=!0,s=\"\",a=Object(C[\"a\"])(e);try{for(a.s();!(n=a.n()).done;){var l,h=n.value,u=Object(C[\"a\"])(h.hrChildren);try{for(u.s();!(l=u.n()).done;){var c,f=l.value,d=Object(C[\"a\"])(t);try{for(d.s();!(c=d.n()).done;){var p=c.value;f.columnValue&&(r=!1),p==f.columnName&&(\"input\"==f.htmlType?(s=1,o=o.replace(f.columnName,f.columnValue)):\"datetime\"==f.htmlType&&(s=2,T(f.columnValue)?o=o.replace(f.columnName,T(f.columnValue)):r=!0))}}catch(g){d.e(g)}finally{d.f()}}}catch(g){u.e(g)}finally{u.f()}}}catch(g){a.e(g)}finally{a.f()}if(!r)return 2==s?P(N(o)):N(o)}function N(t){var e=new Function(\"return \".concat(t))();return e}function P(t){return Math.round(Number(t)/864e5)}function T(t){var e=new Date(t);return e.getTime()}i(\"63b0\"),i(\"d81d\"),i(\"d3b7\"),i(\"ddb0\");var L=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isExternal?i(\"div\",t._g({staticClass:\"svg-external-icon svg-icon\",style:t.styleExternalIcon},t.$listeners)):i(\"svg\",t._g({class:t.svgClass,attrs:{\"aria-hidden\":\"true\"}},t.$listeners),[i(\"use\",{attrs:{\"xlink:href\":t.iconName}})])},O=[],D=i(\"61f7\"),j={name:\"SvgIcon\",props:{iconClass:{type:String,required:!0},className:{type:String,default:\"\"}},computed:{isExternal:function(){return Object(D[\"a\"])(this.iconClass)},iconName:function(){return\"#icon-\".concat(this.iconClass)},svgClass:function(){return this.className?\"svg-icon \"+this.className:\"svg-icon\"},styleExternalIcon:function(){return{mask:\"url(\".concat(this.iconClass,\") no-repeat 50% 50%\"),\"-webkit-mask\":\"url(\".concat(this.iconClass,\") no-repeat 50% 50%\")}}}},A=j,B=(i(\"95cd\"),Object(p[\"a\"])(A,L,O,!1,null,\"248913c8\",null)),z=B.exports;n[\"default\"].component(\"svg-icon\",z);var F=i(\"23f1\"),I=function(t){return t.keys().map(t)};I(F);var E=i(\"5530\"),R=i(\"323e\"),V=i.n(R),_=(i(\"a5d8\"),i(\"5f87\"));V.a.configure({showSpinner:!1});var H=[\"/login\",\"/auth-redirect\",\"/bind\",\"/register\"];y[\"b\"].beforeEach((function(t,e,i){V.a.start(),Object(_[\"a\"])()?\"/login\"===t.path?(i({path:\"/\"}),V.a.done()):0===v[\"a\"].getters.roles.length?v[\"a\"].dispatch(\"GetInfo\").then((function(){v[\"a\"].dispatch(\"GenerateRoutes\").then((function(e){y[\"b\"].addRoutes(e),i(Object(E[\"a\"])(Object(E[\"a\"])({},t),{},{replace:!0}))}))})).catch((function(t){v[\"a\"].dispatch(\"LogOut\").then((function(){l[\"Message\"].error(t),i({path:\"/\"})}))})):i():-1!==H.indexOf(t.path)?i():(i(\"/login?redirect=\".concat(t.fullPath)),V.a.done())})),y[\"b\"].afterEach((function(){V.a.done()}));var Y=i(\"aa3a\"),q=i(\"c0c3\"),G=i(\"c38a\"),X=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"pagination-container\",class:{hidden:t.hidden}},[i(\"el-pagination\",t._b({attrs:{background:t.background,\"current-page\":t.currentPage,\"page-size\":t.pageSize,layout:t.layout,\"page-sizes\":t.pageSizes,total:t.total},on:{\"update:currentPage\":function(e){t.currentPage=e},\"update:current-page\":function(e){t.currentPage=e},\"update:pageSize\":function(e){t.pageSize=e},\"update:page-size\":function(e){t.pageSize=e},\"size-change\":t.handleSizeChange,\"current-change\":t.handleCurrentChange}},\"el-pagination\",t.$attrs,!1))],1)},U=[];Math.easeInOutQuad=function(t,e,i,n){return t/=n/2,t<1?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e)};var K=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function $(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function W(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function J(t,e,i){var n=W(),o=t-n,r=20,s=0;e=\"undefined\"===typeof e?500:e;var a=function t(){s+=r;var a=Math.easeInOutQuad(s,n,o,e);$(a),s<e?K(t):i&&\"function\"===typeof i&&i()};a()}var Z={name:\"Pagination\",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:\"total, sizes, prev, pager, next, jumper\"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit(\"update:page\",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit(\"update:limit\",t)}}},methods:{handleSizeChange:function(t){this.$emit(\"pagination\",{page:this.currentPage,limit:t}),this.autoScroll&&J(0,800)},handleCurrentChange:function(t){this.$emit(\"pagination\",{page:t,limit:this.pageSize}),this.autoScroll&&J(0,800)}}},Q=Z,tt=(i(\"e498\"),Object(p[\"a\"])(Q,X,U,!1,null,\"6af373ef\",null)),et=tt.exports,it=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"top-right-btn\"},[i(\"el-row\",[i(\"el-tooltip\",{staticClass:\"item\",attrs:{effect:\"dark\",content:t.showSearch?\"隐藏搜索\":\"显示搜索\",placement:\"top\"}},[i(\"el-button\",{attrs:{size:\"mini\",circle:\"\",icon:\"el-icon-search\"},on:{click:function(e){return t.toggleSearch()}}})],1),i(\"el-tooltip\",{staticClass:\"item\",attrs:{effect:\"dark\",content:\"刷新\",placement:\"top\"}},[i(\"el-button\",{attrs:{size:\"mini\",circle:\"\",icon:\"el-icon-refresh\"},on:{click:function(e){return t.refresh()}}})],1),t.columns?i(\"el-tooltip\",{staticClass:\"item\",attrs:{effect:\"dark\",content:\"显隐列\",placement:\"top\"}},[i(\"el-button\",{attrs:{size:\"mini\",circle:\"\",icon:\"el-icon-menu\"},on:{click:function(e){return t.showColumn()}}})],1):t._e()],1),i(\"el-dialog\",{attrs:{title:t.title,visible:t.open,\"append-to-body\":\"\"},on:{\"update:visible\":function(e){t.open=e}}},[i(\"el-transfer\",{attrs:{titles:[\"显示\",\"隐藏\"],data:t.columns},on:{change:t.dataChange},model:{value:t.value,callback:function(e){t.value=e},expression:\"value\"}})],1)],1)},nt=[],ot={name:\"RightToolbar\",data:function(){return{value:[],title:\"显示/隐藏\",open:!1}},props:{showSearch:{type:Boolean,default:!0},columns:{type:Array}},methods:{toggleSearch:function(){this.$emit(\"update:showSearch\",!this.showSearch)},refresh:function(){this.$emit(\"queryTable\")},dataChange:function(t){for(var e in this.columns){var i=this.columns[e].key;this.columns[e].visible=!t.includes(i)}},showColumn:function(){this.open=!0}}},rt=ot,st=(i(\"d3b2\"),Object(p[\"a\"])(rt,it,nt,!1,null,\"f3e855ec\",null)),at=st.exports,lt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{\"label-width\":\"120px\",label:t.formConfig.columnComment,prop:t.formConfig.columnName}},[\"input\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"textarea\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"select\"!=t.formConfig.htmlType||t.formConfig.fkInfo?t._e():i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+t.formConfig.columnComment,disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(t){return i(\"el-option\",{key:t.dictValue,attrs:{label:t.dictLabel,value:t.dictValue}})})),1),\"select\"==t.formConfig.htmlType&&t.formConfig.fkInfo?i(\"el-select\",{attrs:{disabled:t.formConfig.disabshow,filterable:\"\",remote:\"\",\"remote-method\":t.remoteMethod,loading:t.loading,placeholder:\"请输入\"+t.formConfig.columnComment},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.filterList,(function(e){return i(\"el-option\",{key:e[t.formConfig.fkInfo.fkColumnName],attrs:{label:e[t.formConfig.fkInfo.dkColumnName],value:e[t.formConfig.fkInfo.fkColumnName]}})})),1):t._e(),\"checkbox\"==t.formConfig.htmlType?i(\"el-checkbox-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.handleCheckedCitiesChange}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==t.formConfig.htmlType?i(\"el-radio-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictValue}},[t._v(t._s(e.dictLabel))])})),1):t._e(),\"datetime\"==t.formConfig.htmlType?i(\"el-date-picker\",{attrs:{disabled:t.formConfig.disabshow,type:\"date\",placeholder:\"请输入\"+t.formConfig.columnComment},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-upload\",{attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"file-list\":t.config,\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-dialog\",{attrs:{disabled:t.formConfig.disabshow,visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==t.formConfig.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage,\"file-list\":t.config}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==t.formConfig.htmlType?i(\"editor\",{attrs:{disabled:t.formConfig.disabshow,\"min-height\":192},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e()],1)},ht=[],ut=(i(\"fb6a\"),i(\"a434\"),i(\"095c\")),ct=i(\"4b72\"),ft=i(\"83d6\"),dt={data:function(){return{fileList:[],defaultSettings:ft,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,loading:!1,filterList:[],config:{},aliemg:{table:\"\",orderBy:\"create_time desc\",pageNo:1,pageSize:10,fixedData:{condition:{}}}}},components:{Editor:ut[\"a\"]},props:{formConfig:{type:Object,required:!0,default:{sysDictData:[]}},type:{type:Number,default:1}},created:function(){this.config={},this.type&&(1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(3,4)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1)),this.init()},watch:{config:{handler:function(){this.$emit(\"modelFn\",this.formConfig.columnName,this.config[this.formConfig.columnName])},deep:!0}},mounted:function(){},methods:{listIndexfouFn:function(){var t=this;Object(ct[\"p\"])(this.aliemg).then((function(e){e.data&&(t.filterList=e.data.rows),t.loading=!1}))},remoteMethod:function(t){\"\"!==t?(this.loading=!0,this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=t,this.listIndexfouFn()):this.filterList=[]},upImageFn:function(t,e){this.config.push(t.data)},init:function(){\"checkbox\"==this.formConfig.htmlType||\"imageUpload\"==this.formConfig.htmlType||\"fileUpload\"==this.formConfig.htmlType?this.config=[]:this.$set(this.config,this.formConfig.columnName,(this.formConfig.columnValue?this.formConfig.columnValue:this.formConfig.defaultValue)||\"\"),this.formConfig.fkInfo&&(this.aliemg.table=this.formConfig.fkInfo.fkTableName,this.formConfig.fkInfo.value&&(this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=this.formConfig.fkInfo.value),this.listIndexfouFn())},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},reseImage:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},reseImage1:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},handlePictureCardPreview:function(t){console.log(t),this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},handleCheckedCitiesChange:function(t){console.log(this.config)}}},pt=dt,gt=Object(p[\"a\"])(pt,lt,ht,!1,null,null,null),mt=gt.exports,vt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{\"label-width\":\"120px\",label:t.formConfig.columnComment,prop:t.formConfig.columnName}},[\"input\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"textarea\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"select\"!=t.formConfig.htmlType||t.formConfig.fkInfo?t._e():i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+t.formConfig.columnComment,disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(t){return i(\"el-option\",{key:t.dictValue,attrs:{label:t.dictLabel,value:t.dictValue}})})),1),\"select\"==t.formConfig.htmlType&&t.formConfig.fkInfo?i(\"el-select\",{attrs:{disabled:t.formConfig.disabshow,filterable:\"\",remote:\"\",\"remote-method\":t.remoteMethod,loading:t.loading,placeholder:\"请输入\"+t.formConfig.columnComment},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.filterList,(function(e){return i(\"el-option\",{key:e[t.formConfig.fkInfo.fkColumnName],attrs:{label:e[t.formConfig.fkInfo.dkColumnName],value:e[t.formConfig.fkInfo.fkColumnName]}})})),1):t._e(),\"checkbox\"==t.formConfig.htmlType?i(\"el-checkbox-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.handleCheckedCitiesChange}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==t.formConfig.htmlType?i(\"el-radio-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictValue}},[t._v(t._s(e.dictLabel))])})),1):t._e(),\"datetime\"==t.formConfig.htmlType?i(\"el-date-picker\",{attrs:{disabled:t.formConfig.disabshow,type:\"date\",placeholder:\"请输入\"+t.formConfig.columnComment},on:{change:t.iChange},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-upload\",{attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"file-list\":t.config,\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-dialog\",{attrs:{disabled:t.formConfig.disabshow,visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==t.formConfig.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage,\"file-list\":t.config}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==t.formConfig.htmlType?i(\"editor\",{attrs:{disabled:t.formConfig.disabshow,\"min-height\":192},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e()],1)},yt=[],bt=i(\"83d6\"),wt={data:function(){return{fileList:[],defaultSettings:bt,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,loading:!1,filterList:[],config:{},aliemg:{table:\"\",orderBy:\"create_time desc\",pageNo:1,pageSize:10,fixedData:{condition:{}}}}},components:{Editor:ut[\"a\"]},props:{queryData:{type:Object,default:function(t){return{showData:[]}}},formConfig:{type:Object,required:!0,default:function(t){return{sysDictData:[]}}},type:{type:Number,default:1}},created:function(){if(this.config={},this.type&&(1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(3,4)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1)),this.init(),this.formConfig.extendedAttributes){var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},watch:{config:{handler:function(){this.$emit(\"modelFn\",this.formConfig.columnName,this.config[this.formConfig.columnName])},deep:!0},queryData:{handler:function(){if(this.formConfig.extendedAttributes){console.log(this.formConfig,222);var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},deep:!0}},mounted:function(){},methods:{iChange:function(t){this.formConfig.isUseExtend&&(console.log(this.formConfig.columnName),this.$emit(\"iChange\",this.formConfig.columnName,t))},extFn:function(t,e){var i=this.getDyn(t,this.queryData.showData,e);this.config[this.formConfig.columnName]=i},eval:function(t){var e=new Function(\"return \".concat(t))();return e},listIndexfouFn:function(){var t=this;Object(ct[\"p\"])(this.aliemg).then((function(e){e.data&&(t.filterList=e.data.rows),t.loading=!1}))},remoteMethod:function(t){\"\"!==t?(this.loading=!0,this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=t,this.listIndexfouFn()):this.filterList=[]},upImageFn:function(t,e){this.config.push(t.data)},init:function(){\"checkbox\"==this.formConfig.htmlType||\"imageUpload\"==this.formConfig.htmlType||\"fileUpload\"==this.formConfig.htmlType?this.config=[]:this.$set(this.config,this.formConfig.columnName,(this.formConfig.columnValue?this.formConfig.columnValue:this.formConfig.defaultValue)||\"\"),this.formConfig.fkInfo&&(this.aliemg.table=this.formConfig.fkInfo.fkTableName,this.formConfig.fkInfo.value&&(this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=this.formConfig.fkInfo.value),this.listIndexfouFn())},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},reseImage:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},reseImage1:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},handlePictureCardPreview:function(t){console.log(t),this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},handleCheckedCitiesChange:function(t){console.log(this.config)}}},xt=wt,kt=Object(p[\"a\"])(xt,vt,yt,!1,null,null,null),Mt=kt.exports,Ct=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-col\",{attrs:{span:null!==t.ieug?t.ieug:8}},[i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{\"label-width\":\"120px\",label:t.formConfig.columnComment,prop:t.formConfig.columnName}},[\"input\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"textarea\"==t.formConfig.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+t.formConfig.columnComment,clearable:\"\",disabled:t.formConfig.disabshow},on:{change:t.iChange},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.handleQuery(e)}},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"select\"!=t.formConfig.htmlType||t.formConfig.fkInfo?t._e():i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+t.formConfig.columnComment,disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(t){return i(\"el-option\",{key:t.dictValue,attrs:{label:t.dictLabel,value:t.dictValue}})})),1),\"select\"==t.formConfig.htmlType&&t.formConfig.fkInfo?i(\"el-select\",{attrs:{disabled:t.formConfig.disabshow,filterable:\"\",remote:\"\",\"remote-method\":t.remoteMethod,loading:t.loading,placeholder:\"请输入\"+t.formConfig.columnComment},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.filterList,(function(e){return i(\"el-option\",{key:e[t.formConfig.fkInfo.fkColumnName],attrs:{label:e[t.formConfig.fkInfo.dkColumnName],value:e[t.formConfig.fkInfo.fkColumnName]}})})),1):t._e(),\"checkbox\"==t.formConfig.htmlType?i(\"el-checkbox-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.handleCheckedCitiesChange}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==t.formConfig.htmlType?i(\"el-radio-group\",{attrs:{disabled:t.formConfig.disabshow},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}},t._l(t.formConfig.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictValue}},[t._v(t._s(e.dictLabel))])})),1):t._e(),\"datetime\"==t.formConfig.htmlType?i(\"el-date-picker\",{attrs:{disabled:t.formConfig.disabshow,type:\"date\",placeholder:\"请输入\"+t.formConfig.columnComment},on:{change:t.iChange},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-upload\",{attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"file-list\":t.config,\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==t.formConfig.htmlType?i(\"el-dialog\",{attrs:{disabled:t.formConfig.disabshow,visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==t.formConfig.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{disabled:t.formConfig.disabshow,headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"on-success\":t.upImageFn,\"on-remove\":t.reseImage,\"file-list\":t.config}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==t.formConfig.htmlType?i(\"editor\",{attrs:{disabled:t.formConfig.disabshow,\"min-height\":192},model:{value:t.config[t.formConfig.columnName],callback:function(e){t.$set(t.config,t.formConfig.columnName,e)},expression:\"config[formConfig.columnName]\"}}):t._e()],1)],1)},St=[],Nt=i(\"83d6\"),Pt={data:function(){return{fileList:[],defaultSettings:Nt,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,loading:!1,filterList:[],config:{},aliemg:{table:\"\",orderBy:\"create_time desc\",pageNo:1,pageSize:10,fixedData:{condition:{}},ieug:8}}},components:{Editor:ut[\"a\"]},props:{queryData:{type:Object,default:function(t){return{showData:[]}}},formConfig:{type:Object,required:!0,default:{sysDictData:[]}},type:{type:Number,default:1}},created:function(){if(this.config={},this.type&&(-1==this.formConfig.tableid?(1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(1,2)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1)):(console.log(0),1==this.formConfig.readonly||\"0\"==this.formConfig.mask.slice(3,4)||1==this.formConfig.isonliy?this.formConfig.disabshow=!0:this.formConfig.disabshow=!1,null==this.formConfig.fkInfo&&(this.formConfig.fkInfo=!1))),null==this.formConfig.tableColumnuy?this.ieug=null:this.ieug=24/(this.formConfig.tableColumnuy-0),this.init(),this.formConfig.extendedAttributes){var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},watch:{config:{handler:function(){this.$emit(\"modelFn\",this.formConfig.columnName,this.config[this.formConfig.columnName])},deep:!0},queryData:{handler:function(){if(this.formConfig.extendedAttributes){console.log(this.formConfig,222);var t=JSON.parse(this.formConfig.extendedAttributes);this.extFn(t.col,t.comp)}},deep:!0}},mounted:function(){console.log(this.formConfig)},methods:{iChange:function(t){this.formConfig.isUseExtend&&this.$emit(\"iChange\",this.formConfig.columnName,t)},extFn:function(t,e){var i=this.getDyn(t,this.queryData.showData,e);this.config[this.formConfig.columnName]=i},eval:function(t){var e=new Function(\"return \".concat(t))();return e},listIndexfouFn:function(){var t=this;Object(ct[\"p\"])(this.aliemg).then((function(e){e.data&&(t.filterList=e.data.rows),t.loading=!1}))},remoteMethod:function(t){\"\"!==t?(this.loading=!0,this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=t,this.listIndexfouFn()):this.filterList=[]},upImageFn:function(t,e){this.config.push(t.data)},init:function(){\"checkbox\"==this.formConfig.htmlType||\"imageUpload\"==this.formConfig.htmlType||\"fileUpload\"==this.formConfig.htmlType?this.config=[]:this.$set(this.config,this.formConfig.columnName,(this.formConfig.columnValue?this.formConfig.columnValue:this.formConfig.defaultValue)||\"\"),this.formConfig.fkInfo&&(this.aliemg.table=this.formConfig.fkInfo.fkTableName,this.formConfig.fkInfo.value&&(this.aliemg.fixedData.condition[this.formConfig.fkInfo.dkColumnName]=this.formConfig.fkInfo.value),this.listIndexfouFn())},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},reseImage:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},reseImage1:function(t,e){var i=\"\";i=t.response?t.response.url:t.url;for(var n=this.config.length-1;n>=0;n--)this.config[n].url==i&&this.config.splice(n,1)},handlePictureCardPreview:function(t){console.log(t),this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},handleCheckedCitiesChange:function(t){console.log(this.config)}}},Tt=Pt,Lt=Object(p[\"a\"])(Tt,Ct,St,!1,null,null,null),Ot=Lt.exports,Dt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"el-form\",{ref:\"form\",staticClass:\"from_index\",attrs:{model:t.form,rules:t.rules,\"label-width\":\"160px\"}},[i(\"el-row\",t._l(t.formConfig.columns,(function(e,n){return i(\"el-col\",{key:n,attrs:{span:24}},[1==e.isEdit?i(\"el-form-item\",{staticStyle:{display:\"inline-block\"},attrs:{label:e.columnComment,prop:e.columnName}},[\"input\"==e.htmlType?i(\"el-input\",{attrs:{placeholder:\"请输入\"+e.columnComment,clearable:\"\"},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.submitForm(e)}},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e(),\"textarea\"==e.htmlType?i(\"el-input\",{attrs:{type:\"textarea\",placeholder:\"请输入\"+e.columnComment,clearable:\"\"},on:{change:t.submitForm},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.submitForm(e)}},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e(),\"select\"==e.htmlType?i(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请输入\"+e.columnComment},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}},t._l(e.sysDictData,(function(e){return i(\"el-option\",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue},on:{change:t.submitForm}})})),1):t._e(),\"checkbox\"==e.htmlType?i(\"el-checkbox-group\",{model:{value:t.config,callback:function(e){t.config=e},expression:\"config\"}},t._l(e.sysDictData,(function(e){return i(\"el-checkbox\",{key:e.dictLabel,attrs:{label:e.dictValue},on:{change:t.submitForm}},[t._v(\" \"+t._s(e.dictLabel)+\" \")])})),1):t._e(),\"radio\"==e.htmlType?i(\"el-radio-group\",{model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}},t._l(e.sysDictData,(function(e){return i(\"el-radio\",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue},on:{change:t.submitForm}})})),1):t._e(),\"datetime\"==e.htmlType?i(\"el-date-picker\",{attrs:{type:\"date\",placeholder:\"请输入\"+e.columnComment},on:{change:t.submitForm},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e(),\"imageUpload\"==e.htmlType?i(\"el-upload\",{attrs:{headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"list-type\":\"picture-card\",\"on-preview\":t.handlePictureCardPreview,\"on-remove\":t.handleRemove}},[i(\"i\",{staticClass:\"el-icon-plus\"})]):t._e(),\"imageUpload\"==e.htmlType?i(\"el-dialog\",{attrs:{visible:t.dialogVisible},on:{\"update:visible\":function(e){t.dialogVisible=e}}},[i(\"img\",{attrs:{width:\"100%\",src:t.dialogImageUrl,alt:\"\"}})]):t._e(),\"fileUpload\"==e.htmlType?i(\"el-upload\",{staticClass:\"upload-demo\",attrs:{headers:{Authorization:\"Bearer \"+t.getToken()},action:t.process+\"/boman-file/upload\",\"on-change\":t.handleChange,\"file-list\":t.fileList}},[i(\"el-button\",{attrs:{size:\"small\",type:\"primary\"}},[t._v(\"点击上传\")]),i(\"div\",{staticClass:\"el-upload__tip\",attrs:{slot:\"tip\"},slot:\"tip\"},[t._v(\"只能上传jpg/png文件,且不超过500kb\")])],1):t._e(),\"editor\"==e.htmlType?i(\"editor\",{attrs:{\"min-height\":192},model:{value:t.config[e.columnName],callback:function(i){t.$set(t.config,e.columnName,i)},expression:\"config[item.columnName]\"}}):t._e()],1):t._e()],1)})),1)],1),i(\"div\",{staticClass:\"dialog-footer\",attrs:{slot:\"footer\"},slot:\"footer\"},[i(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.submitForm}},[t._v(\"确 定\")]),i(\"el-button\",{on:{click:t.cancel}},[t._v(\"取 消\")])],1)],1)},jt=[],At=i(\"83d6\"),Bt={data:function(){return{fileList:[],defaultSettings:At,dialogImageUrl:\"\",process:\"/prod-api\",dialogVisible:!1,disabled:!1,config:{},form:{},rules:{},open:!1}},components:{Editor:ut[\"a\"]},props:{formConfig:{},nummer:0},created:function(){this.init()},mounted:function(){},methods:{init:function(){console.log(this.config,99888),console.log(this.nummer)},handleChange:function(t,e){this.fileList=e.slice(-3)},getToken:function(){return Object(_[\"a\"])()},handleRemove:function(t,e){console.log(t,e)},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleDownload:function(t){console.log(t)},handleQuery:function(){this.$emit(\"btns\")},submitForm:function(t){var e=this;console.log(1243),console.log(this.config,t),this.form.fixedData=this.config,this.form.table=\"sys_memorandum\",this.form.objId=-1,this.$refs[\"form\"].validate((function(t){t&&Object(q[\"b\"])(e.form).then((function(t){e.msgSuccess(\"新增成功\"),e.cancel()}))}))},cancel:function(){this.$emit(\"cancel\",this.config)},handleCheckedCitiesChange:function(t){console.log(this.config)}}},zt=Bt,Ft=(i(\"e24c\"),i(\"4575\"),Object(p[\"a\"])(zt,Dt,jt,!1,null,\"415e8658\",null)),It=Ft.exports,Et=(i(\"bbb2\"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"heibox\",class:{hidden:!t.hidden.status},on:{click:function(e){t.hidden.status=!1}}},[i(\"div\",{staticClass:\"imgs\",on:{click:function(t){t.stopPropagation()}}},[i(\"img\",{staticClass:\"img\",attrs:{src:t.urls,alt:\"\"}})])])}),Rt=[],Vt={name:\"BigPicture\",props:{urls:{default:\"\",type:String},hidden:{type:Object,default:function(){return{status:\"\"}}}},methods:{}},_t=Vt,Ht=(i(\"469f\"),Object(p[\"a\"])(_t,Et,Rt,!1,null,\"b8cd9dd4\",null)),Yt=Ht.exports,qt=i(\"27d8\"),Gt=i.n(qt),Xt=i(\"4446\"),Ut=i.n(Xt);n[\"default\"].use(a.a),n[\"default\"].component(\"BigPicture\",Yt),n[\"default\"].prototype.getDicts=Y[\"d\"],n[\"default\"].prototype.getConfigKey=q[\"g\"],n[\"default\"].prototype.parseTime=G[\"c\"],n[\"default\"].prototype.resetForm=G[\"e\"],n[\"default\"].prototype.addDateRange=G[\"a\"],n[\"default\"].prototype.selectDictLabel=G[\"f\"],n[\"default\"].prototype.selectDictLabels=G[\"g\"],n[\"default\"].prototype.download=M[\"b\"],n[\"default\"].prototype.getDyn=S,n[\"default\"].prototype.handleTree=G[\"b\"],n[\"default\"].prototype.msgSuccess=function(t){this.$message({showClose:!0,message:t,type:\"success\"})},n[\"default\"].prototype.msgError=function(t){this.$message({showClose:!0,message:t,type:\"error\"})},n[\"default\"].prototype.msgInfo=function(t){this.$message.info(t)},n[\"default\"].use(Ut.a),n[\"default\"].component(\"Pagination\",et),n[\"default\"].component(\"RightToolbar\",at),n[\"default\"].component(\"DynamicForm\",mt),n[\"default\"].component(\"DynamicForms\",Mt),n[\"default\"].component(\"DynamicFormsteo\",Ot),n[\"default\"].component(\"MemoranDum\",It),n[\"default\"].use(k),n[\"default\"].use(h.a,{size:r.a.get(\"size\")||\"medium\"}),n[\"default\"].use(Gt.a),n[\"default\"].config.productionTip=!1,new n[\"default\"]({el:\"#app\",router:y[\"b\"],store:v[\"a\"],render:function(t){return t(m)}})},\"575e\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-online\",use:\"icon-online-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-online\"><defs><style type=\"text/css\"></style></defs><path d=\"M356.246145 681.56286c-68.156286-41.949414-107.246583-103.84102-107.246583-169.805384 0-65.966411 39.090297-127.860063 107.246583-169.809477 12.046361-7.414877 15.800871-23.190165 8.385994-35.236526-7.413853-12.046361-23.191188-15.801894-35.236526-8.387018-39.640836 24.399713-72.539106 56.044434-95.137801 91.515297-23.86657 37.461193-36.481889 79.620385-36.481889 121.917724 0 42.297338 12.615319 84.454484 36.481889 121.914654 22.598694 35.469839 55.496965 67.11456 95.137801 91.51325 4.185322 2.576685 8.821923 3.804652 13.400195 3.804652 8.598842 0 16.998139-4.329609 21.836331-12.190647C372.047016 704.752002 368.291482 688.976714 356.246145 681.56286zM263.943926 754.580874c-92.603071-61.111846-145.713686-149.623739-145.713686-242.840794 0-93.195565 53.094242-181.682899 145.667637-242.774279 11.805884-7.79043 15.061021-23.677259 7.269567-35.483142-7.79043-11.805884-23.677259-15.062044-35.483142-7.269567C128.487861 296.954249 67.006602 401.024489 67.006602 511.74008c0 110.73708 61.496609 214.830857 168.721703 285.593504 4.343935 2.867304 9.240455 4.238534 14.08274 4.238534 8.317433 0 16.476253-4.046153 21.400403-11.507078C279.003923 778.258133 275.748786 762.372328 263.943926 754.580874zM788.660552 226.213092c-11.80486-7.791453-27.692712-4.536316-35.483142 7.269567-7.79043 11.805884-4.536316 27.692712 7.269567 35.483142 92.575442 61.092403 145.670707 149.579737 145.670707 242.774279 0 93.216032-53.111638 181.727924-145.715733 242.840794-11.805884 7.79043-15.059997 23.678282-7.269567 35.484166 4.925173 7.461949 13.081946 11.507078 21.400403 11.507078 4.841262 0 9.739828-1.37123 14.083763-4.238534 107.22714-70.761624 168.724773-174.857447 168.724773-285.593504C957.341323 401.025513 895.860063 296.955272 788.660552 226.213092zM790.090111 633.67213c23.865547-37.459147 36.480866-79.617315 36.480866-121.914654 0-42.298362-12.615319-84.45653-36.480866-121.917724-22.598694-35.470863-55.496965-67.115584-95.139847-91.515297-12.047384-7.413853-27.821649-3.659343-35.236526 8.387018-7.414877 12.045337-3.659343 27.821649 8.385994 35.236526 68.156286 41.949414 107.247606 103.842043 107.247606 169.809477 0 65.964364-39.090297 127.85597-107.247606 169.804361-12.045337 7.414877-15.800871 23.190165-8.385994 35.237549 4.838192 7.861038 13.236466 12.190647 21.835308 12.190647 4.579295 0 9.215896-1.227967 13.400195-3.804652C734.591099 700.786691 767.490394 669.142993 790.090111 633.67213zM567.129086 518.274914c24.12342-17.150612 39.887452-45.305859 39.887452-77.07133 0-52.128241-42.452881-94.538143-94.634334-94.538143-52.18043 0-94.633311 42.408879-94.633311 94.538143 0 31.695886 15.696494 59.797921 39.730886 76.958766-49.875944 21.128203-84.917018 70.234621-84.917018 127.301338 0 2.366907 0.061398 4.762467 0.182149 7.119141l1.249457 24.296359 276.373515 0 1.238201-24.308639c0.119727-2.358721 0.181125-4.750187 0.181125-7.106862C651.786185 588.497255 616.865861 539.465538 567.129086 518.274914zM512.381182 397.889079c23.937179 0 43.411719 19.430538 43.411719 43.314505 0 23.882943-19.47454 43.313481-43.411719 43.313481-23.936155 0-43.409672-19.430538-43.409672-43.313481C468.971509 417.320641 488.445026 397.889079 512.381182 397.889079zM426.08884 625.656573c9.119705-38.542828 44.254923-67.337641 86.085634-67.337641s76.966952 28.794813 86.085634 67.337641L426.08884 625.656573z\" p-id=\"536\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"57fa\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-eye\",use:\"icon-eye-usage\",viewBox:\"0 0 128 64\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 64\" id=\"icon-eye\"><path d=\"M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"58f1\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"TodoProcess\"},[i(\"div\",{staticClass:\"btnArea\"},[i(\"el-button\",{attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-search\",size:\"mini\"},on:{click:function(e){t.searchData.page=1,t.queryLists()}}},[t._v(\"查询\")]),i(\"el-button\",{attrs:{type:\"primary\",icon:\"el-icon-refresh-left\",size:\"mini\",ghost:\"\"},on:{click:function(e){return t.openModal(2)}}},[t._v(\"转派\")])],1),i(\"FormItemComponent\",{staticClass:\"form\",attrs:{formItemLists:t.formLists,buttonType:!1},on:{formChange:t.formChange}}),i(\"StandardTabletwo\",{staticClass:\"table tabgeu\",staticStyle:{height:\"400px\"},attrs:{currentPage:t.searchData.page,pageSize:t.searchData.pageSize,total:t.total,columns:t.columns,data:t.data,standardTableEvent:t.standardTableEvent}}),i(\"Modal\",{attrs:{title:t.modaltitle,mask:!0,\"mask-closable\":!1,width:852},on:{\"on-ok\":t.ok,\"on-cancel\":t.cancel},model:{value:t.openControl,callback:function(e){t.openControl=e},expression:\"openControl\"}},[i(\"div\",{staticClass:\"modalCotent\"},[i(\"mutipleSelectPop\",{ref:\"dialogtest\",attrs:{loading:t.loading,resultData:t.resultData,isUse:!1,isMutiple:!1,isCallInterface:t.openControl},on:{getResult:t.getResult}})],1)]),i(\"Modal\",{attrs:{title:\"流程详情\",width:861,closable:!0,mask:!0,\"footer-hide\":!0,\"mask-closable\":!1},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:\"modalShow\"}},[t.modalShow?i(\"FlowChartShow\",{attrs:{instanceId:t.instanceId}}):t._e()],1)],1)},o=[],r=(i(\"a9e3\"),i(\"a15b\"),i(\"d81d\"),i(\"159b\"),i(\"d3b7\"),i(\"ddfb\")),s=i(\"b895\"),a=i(\"a237\"),l=i(\"b0b2\"),h=i(\"6fb6\"),u=i(\"4360\"),c=i(\"ff02\"),f={name:\"TodoProcess\",components:{FormItemComponent:r[\"a\"],StandardTabletwo:a[\"a\"],mutipleSelectPop:l[\"a\"],FlowChartShow:h[\"a\"]},props:{falg:{type:Number,default:null},tabalive:{type:String,default:\"\"}},data:function(){var t=this;return{modaltype:0,openControl:!1,modaltitle:\"\",agree:\"\",ApprovalData:[],selectValue:\"\",formLists:[{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"工作流编号\",filed:\"instanceId\",props:{regx:/^[0-9]*$/},event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"查询索引\",filed:\"businessNumber\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"select\",title:\"单据类型\",filed:\"businessType\",options:[{value:0,label:\"发送成功\"},{value:1,label:\"发送失败(待发送)\"},{value:2,label:\"消费成功\"},{value:3,label:\"消费失败(待消费)\"}]}},{row:1,col:1,component:s[\"a\"],item:{type:\"DatePicker\",title:\"开始时间\",filed:\"createTime\"}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"节点名称\",filed:\"nodeName\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}}],searchData:{page:1,pageSize:10,searchType:\"0,1\",excuStatus:0,userId:null,createTime:[]},total:0,columns:[{type:\"selection\",width:60,align:\"center\"},{title:\"工作流编号\",key:\"instanceId\"},{title:\"查询索引\",key:\"businessNumber\"},{title:\"单据类型\",key:\"businessName\"},{title:\"模板名称\",key:\"moduleName\"},{title:\"节点名称\",key:\"nodeName\"},{title:\"审批人\",key:\"approverValue\",render:function(t,e){return t(\"p\",{style:{maxWidth:\"160px\",overflow:\"hidden\",\"text-overflow\":\"ellipsis\",\"white-space\":\"nowrap\"}},e.row.approvers.join(\",\"))}},{title:\"发起人\",key:\"initiatorName\"},{title:\"开始时间\",key:\"createTime\"},{title:\"消耗时长\",key:\"durationTime\"},{title:\"流程状态\",key:\"processStatusName\"},{title:\"详情\",fixed:\"right\",render:function(e,i){return e(\"span\",{style:{color:\"rgba(16, 142, 233, 1)\",cursor:\"pointer\"},on:{click:function(){console.log(i.row.instanceId),t.modalShow=!0,t.instanceId=i.row.instanceId}}},\"流程进度\")}}],data:[],standardTableEvent:{\"on-change\":function(e){t.searchData.page=e,t.queryLists()},\"on-page-size-change\":function(e){t.searchData.page=1,t.searchData.pageSize=e},\"on-select\":function(e,i){var n=t;n.data.map((function(t){t.id===i.id&&(t._check=!0)}))},\"on-select-cancel\":function(e,i){var n=t;n.data.map((function(t){t.id===i.id&&(t._check=!1)}))},\"on-select-all\":function(e){var i=t;i.data.map((function(t){t._check=!0}))},\"on-select-all-cancel\":function(e){var i=t;i.data.map((function(t){t._check=!1}))}},loading:!1,resultData:{},open:!1,selectRow:{},obj:{},modalShow:!1,instanceId:null}},computed:{},watch:{tabalive:function(t,e){\"待办流程\"===t&&(this.getselectOption(),this.queryLists())}},methods:{getselectOption:function(){var t=this;Object(c[\"a\"])().then((function(e){0===e.resultCode&&t.formLists.forEach((function(t){\"businessType\"===t.item.filed&&(t.item.options=e.data.relations.map((function(t){return t.value=t.businesskey,t.label=t.businessName,t})))}))}))},queryLists:function(){var t=this;this.searchData.createTime&&this.searchData.createTime[0]&&this.searchData.createTime[1]?(this.searchData.startTime=new Date(this.searchData.createTime[0]).format(\"yyyy-MM-dd hh:mm\"),this.searchData.endTime=new Date(this.searchData.createTime[1]).format(\"yyyy-MM-dd hh:mm\"),console.log(this.searchData)):(this.searchData.startTime=\"\",this.searchData.endTime=\"\");var e=Object.assign({},this.searchData);delete e.createTime;Object(c[\"c\"])(e).then((function(e){0===e.resultCode?(console.log(1),t.total=e.total,t.data=e.data.records,console.log(e.data.records,23456)):t.$message({message:e.resultMsg,type:\"warning\"}),console.log(t.data,2345)}))},formChange:function(t){this.searchData=Object.assign({},this.searchData,t),\"[object Array]\"===Object.prototype.toString.call(this.searchData.businessType)&&0===this.searchData.businessType.length&&delete this.searchData.businessType},batchoperate:function(){var t=this,e=this,i={ids:\"\"};e.data.map((function(t){t._check&&(i.ids+=t.id+\",\")})),i.ids=i.ids.substring(0,i.ids.length-1),this.resultData.list.length>0?(i.delegateId=this.resultData.list[0].ID,Object(c[\"b\"])(i).then((function(e){var i=e;0===i.resultCode?(t.queryLists(),t.msgSuccess(i.resultMsg)):t.$message({message:i.resultMsg,type:\"warning\"})}))):this.$message({message:\"请选择转派人员\",type:\"warning\"})},getResult:function(t){this.resultData=Object.assign({},t)},ok:function(){this.batchoperate()},cancel:function(){this.resultData.list&&(this.resultData.list=[],this.resultData.total=0),this.openControl=!1},openModal:function(t){this.modaltype=t,this.modaltitle=2===t||3===t?\"选择转派人\":\"选择审批人\";var e=[];this.data.map((function(t){t._check&&e.push(t)})),e.length>0?(this.openControl=!0,this.resultData.list&&(this.resultData.list=[],this.resultData.total=0)):this.$message({message:\"请选择单据\",type:\"warning\"})},onRowClick:function(t,e,i){this.selectRow=Object.assign(this.selectRow,t)}},created:function(){this.falg&&(this.searchData.userId=u[\"a\"].getters.userId),this.getselectOption(),this.queryLists()},mounted:function(){console.log(this.searchData,8765)}},d=f,p=(i(\"bfe9\"),i(\"2877\")),g=Object(p[\"a\"])(d,n,o,!1,null,null,null);e[\"a\"]=g.exports},\"5aa7\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-clipboard\",use:\"icon-clipboard-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-clipboard\"><path d=\"M54.857 118.857h64V73.143H89.143c-1.902 0-3.52-.668-4.855-2.002-1.335-1.335-2.002-2.954-2.002-4.855V36.57H54.857v82.286zM73.143 16v-4.571a2.2 2.2 0 0 0-.677-1.61 2.198 2.198 0 0 0-1.609-.676H20.571c-.621 0-1.158.225-1.609.676a2.198 2.198 0 0 0-.676 1.61V16a2.2 2.2 0 0 0 .676 1.61c.451.45.988.676 1.61.676h50.285c.622 0 1.158-.226 1.61-.677.45-.45.676-.987.676-1.609zm18.286 48h21.357L91.43 42.642V64zM128 73.143v48c0 1.902-.667 3.52-2.002 4.855-1.335 1.335-2.953 2.002-4.855 2.002H52.57c-1.901 0-3.52-.667-4.854-2.002-1.335-1.335-2.003-2.953-2.003-4.855v-11.429H6.857c-1.902 0-3.52-.667-4.855-2.002C.667 106.377 0 104.759 0 102.857v-96c0-1.902.667-3.52 2.002-4.855C3.337.667 4.955 0 6.857 0h77.714c1.902 0 3.52.667 4.855 2.002 1.335 1.335 2.003 2.953 2.003 4.855V30.29c1 .622 1.856 1.29 2.569 2.003l29.147 29.147c1.335 1.335 2.478 3.145 3.429 5.43.95 2.287 1.426 4.383 1.426 6.291v-.018z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"5ad5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-spot\",use:\"icon-spot-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-spot\"><defs><style type=\"text/css\"></style></defs><path d=\"M512 320a192.064 192.064 0 0 1 0 384 192 192 0 0 1 0-384z\" fill=\"\" p-id=\"2163\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"5c04\":function(t,e,i){},\"5d9e\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-question\",use:\"icon-question-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-question\"><defs><style type=\"text/css\"></style></defs><path d=\"M512 0C229.233778 0 0 229.233778 0 512s229.233778 512 512 512 512-229.233778 512-512A512 512 0 0 0 512 0z m0 938.666667C276.366222 938.666667 85.333333 747.633778 85.333333 512 85.333333 276.366222 276.366222 85.333333 512 85.333333c235.633778 0 426.666667 191.032889 426.666667 426.666667a426.666667 426.666667 0 0 1-426.666667 426.666667z m0-717.653334a170.666667 170.666667 0 0 0-170.666667 170.666667 42.666667 42.666667 0 0 0 85.333334 0 85.333333 85.333333 0 1 1 85.333333 85.333333 42.666667 42.666667 0 0 0-42.666667 42.666667v111.36a42.666667 42.666667 0 0 0 85.333334 0v-74.24A170.666667 170.666667 0 0 0 512 221.013333z m-42.666667 542.293334a42.666667 42.666667 0 1 0 85.333334 0 42.666667 42.666667 0 0 0-85.333334 0z\" p-id=\"1410\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"5de0\":function(t,e,i){(function(e){var n=i(\"7037\").default;i(\"a4d3\"),i(\"e01a\"),i(\"d3b7\"),i(\"d28b\"),i(\"3ca3\"),i(\"ddb0\"),i(\"131a\"),i(\"e439\"),i(\"a9e3\"),i(\"130f\"),i(\"25f0\"),i(\"fb6a\"),i(\"a434\"),i(\"b0c0\"),i(\"498a\"),i(\"3410\"),i(\"a15b\"),i(\"466d\"),i(\"ac1f\"),i(\"dca8\"),i(\"d81d\"),i(\"4de4\"),i(\"e21d\"),i(\"1276\"),i(\"b680\"),i(\"5319\"),i(\"cb29\"),i(\"9911\"),i(\"159b\"),i(\"4d63\"),i(\"bf19\"),function(){var i;function o(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function r(t){var e=\"undefined\"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:o(t)}}function s(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}var a,l=\"function\"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};if(\"function\"==typeof Object.setPrototypeOf)a=Object.setPrototypeOf;else{var h;t:{var u={a:!0},c={};try{c.__proto__=u,h=c.a;break t}catch(Lm){}h=!1}a=h?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+\" is not extensible\");return t}:null}var f=a;function d(t,e){if(t.prototype=l(e.prototype),t.prototype.constructor=t,f)f(t,e);else for(var i in e)if(\"prototype\"!=i)if(Object.defineProperties){var n=Object.getOwnPropertyDescriptor(e,i);n&&Object.defineProperty(t,i,n)}else t[i]=e[i];t.kA=e.prototype}var p=\"undefined\"!=typeof window&&window===self?self:\"undefined\"!=typeof e&&null!=e?e:self,g=\"function\"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)};function m(t){if(t){for(var e=p,i=[\"Array\",\"prototype\",\"fill\"],n=0;n<i.length-1;n++){var o=i[n];o in e||(e[o]={}),e=e[o]}i=i[i.length-1],n=e[i],t=t(n),t!=n&&null!=t&&g(e,i,{writable:!0,value:t})}}m((function(t){return t||function(t,e,i){var n=this.length||0;for(0>e&&(e=Math.max(0,n+e)),(null==i||i>n)&&(i=n),i=Number(i),0>i&&(i=Math.max(0,n+i)),e=Number(e||0);e<i;e++)this[e]=t;return this}}));var v=\"object\"===(\"undefined\"===typeof self?\"undefined\":n(self))&&self.self===self&&self||\"object\"===(\"undefined\"===typeof e?\"undefined\":n(e))&&e.global===e&&e||\"object\"===(\"undefined\"===typeof window?\"undefined\":n(window))&&window.window===window&&window||{};function y(){}function b(t,e){var i=-1;return function(){var n=this,o=arguments;-1!==i&&v.clearTimeout(i),i=w((function(){i=-1,t.apply(n,o)}),e)}}function w(t,e){return v.setTimeout(t,e)}function x(t){return v.document.createElement(t)}function k(t){throw Error(t)}function M(t,e){t=\"The object is frozen, so its properties cannot be set: \"+t.toString(),void 0!==e&&(t+=\" to value: \"+e),k(t)}function C(t,e,i,n){i=null===i?\"*\":\"string\"===typeof i?i:\"function\"===typeof i&&\"string\"===typeof i.className?i.className:\"\",void 0!==n&&(i+=\".\"+n),k(i+\" is not in the range \"+e+\": \"+t)}function S(t){v.console&&v.console.log(t)}function N(){v.console&&v.console.log(\"Warning: List/Map/Set constructors no longer take an argument that enforces type.Instead they take an optional collection of Values to add to the collection. See 2.0 changelog for details.\")}function P(t){return\"object\"===n(t)&&null!==t}function T(t){return Array.isArray(t)||v.NodeList&&t instanceof v.NodeList||v.HTMLCollection&&t instanceof v.HTMLCollection}function L(t){return Array.prototype.slice.call(t)}function O(t,e,i){Array.isArray(t)?e>=t.length?t.push(i):t.splice(e,0,i):k(\"Cannot insert an object into an HTMLCollection or NodeList: \"+i+\" at \"+e)}function D(t,e){Array.isArray(t)?e>=t.length?t.pop():t.splice(e,1):k(\"Cannot remove an object from an HTMLCollection or NodeList at \"+e)}function j(){var t=X.pop();return void 0===t?[]:t}function A(t){t.length=0,X.push(t)}function B(t){if(\"function\"===typeof t){if(t.className)return t.className;if(t.name)return t.name;var e=t.toString();if(e=e.substring(9,e.indexOf(\"(\")).trim(),\"\"!==e)return t._className=e}else if(P(t)&&t.constructor)return B(t.constructor);return n(t)}function z(t){var e=t;return P(t)&&(t.text?e=t.text:t.name?e=t.name:void 0!==t.key?e=t.key:void 0!==t.id?e=t.id:t.constructor===Object&&(t.Text?e=t.Text:t.Name?e=t.Name:void 0!==t.Key?e=t.Key:void 0!==t.Id?e=t.Id:void 0!==t.ID&&(e=t.ID))),void 0===e?\"undefined\":null===e?\"null\":e.toString()}function F(t,e){if(t.hasOwnProperty(e))return!0;for(t=Object.getPrototypeOf(t);t&&t!==Function;){if(t.hasOwnProperty(e))return!0;var i=t.bA;if(i&&i[e])return!0;t=Object.getPrototypeOf(t)}return!1}function I(t,e,i){Object.defineProperty(Ai.prototype,t,{get:e,set:i})}function E(){var t=U;if(0===t.length)for(var e=v.document.getElementsByTagName(\"canvas\"),i=e.length,n=0;n<i;n++){var o=e[n];o.parentElement&&o.parentElement.C&&t.push(o.parentElement.C)}return t}function R(t){for(var e=[],i=0;256>i;i++)e[\"0123456789abcdef\".charAt(i>>4)+\"0123456789abcdef\".charAt(15&i)]=String.fromCharCode(i);t.length%2&&(t=\"0\"+t),i=[];for(var n=0,o=0;o<t.length;o+=2)i[n++]=e[t.substr(o,2)];for(t=i.join(\"\"),t=\"\"===t?\"0\":t,e=[],i=0;256>i;i++)e[i]=i;for(i=n=0;256>i;i++)n=(n+e[i]+119)%256,o=e[i],e[i]=e[n],e[n]=o;n=i=0;for(var r=\"\",s=0;s<t.length;s++)i=(i+1)%256,n=(n+e[i])%256,o=e[i],e[i]=e[n],e[n]=o,r+=String.fromCharCode(t.charCodeAt(s)^e[(e[i]+e[n])%256]);return r}void 0===v.requestAnimationFrame&&(v.requestAnimationFrame=v.setImmediate);var V=void 0!==v.navigator&&0<v.navigator.userAgent.indexOf(\"MSIE 9.0\"),_=void 0!==v.navigator&&0<v.navigator.userAgent.indexOf(\"MSIE 10.0\"),H=void 0!==v.navigator&&0<v.navigator.userAgent.indexOf(\"Trident/7\"),Y=void 0!==v.navigator&&0<v.navigator.userAgent.indexOf(\"Edge/\"),q=void 0!==v.navigator&&void 0!==v.navigator.platform&&0<=v.navigator.platform.toUpperCase().indexOf(\"MAC\"),G=void 0!==v.navigator&&void 0!==v.navigator.platform&&null!==v.navigator.platform.match(/(iPhone|iPod|iPad)/i),X=[];Object.freeze([]);var U=[];function K(t,e,i){st(this),this.l=t,this.Ua=e,this.u=i}function $(t,e){return void 0===e||null===e||\"\"===e?null:t[e]}function W(){this.mw=[]}function J(){}function Z(){}y.className=\"Util\",y.Dx=\"32ab5ff3b26f42dc0ed90f224d2913b5\",y.adym=\"gojs.net\",y.vfo=\"28e646fdba\",y.className=\"Util\",K.prototype.toString=function(){return\"EnumValue.\"+this.Ua},p.Object.defineProperties(K.prototype,{classType:{get:function(){return this.l}},name:{get:function(){return this.Ua}},value:{get:function(){return this.u}}}),K.className=\"EnumValue\",W.prototype.toString=function(){return this.mw.join(\"\")},W.prototype.add=function(t){\"\"!==t&&this.mw.push(t)},W.className=\"StringBuilder\",J.className=\"PropertyCollection\",Z.prototype.reset=function(){},Z.prototype.next=function(){return!1},Z.prototype.dd=function(){return!1},Z.prototype.first=function(){return null},Z.prototype.any=function(){return!1},Z.prototype.all=function(){return!0},Z.prototype.each=function(){return this},Z.prototype.map=function(){return this},Z.prototype.filter=function(){return this},Z.prototype.xd=function(){},Z.prototype.toString=function(){return\"EmptyIterator\"},p.Object.defineProperties(Z.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Z.prototype.first=Z.prototype.first,Z.prototype.hasNext=Z.prototype.dd,Z.prototype.next=Z.prototype.next,Z.prototype.reset=Z.prototype.reset;var Q=null;function tt(t){this.key=-1,this.value=t}function et(t){this.pb=t,this.We=null,t.Ja=null,this.la=t.Ba,this.Sa=-1}function it(t){this.pb=t,t.Qg=null,this.la=t.Ba,this.Sa=t.j.length}function nt(t){st(this),this.v=!1,this.j=[],this.Ba=0,this.Qg=this.Ja=null,void 0!==t&&(\"function\"===typeof t||\"string\"===typeof t?N():this.addAll(t))}function ot(t){this.eg=t,t.Ja=null,this.la=t.Ba,this.na=null}function rt(t){st(this),this.v=!1,this.Db={},this.Cb=0,this.Ja=null,this.Ba=0,this.Se=this.fa=null,void 0!==t&&(\"function\"===typeof t||\"string\"===typeof t?N():this.addAll(t))}function st(t){t.__gohashid=ht++}function at(t){var e=t.__gohashid;return void 0===e&&(e=ht++,t.__gohashid=e),e}function lt(t){return t.__gohashid}Z.className=\"EmptyIterator\",Q=new Z,tt.prototype.reset=function(){this.key=-1},tt.prototype.next=function(){return-1===this.key&&(this.key=0,!0)},tt.prototype.dd=function(){return this.next()},tt.prototype.first=function(){return this.key=0,this.value},tt.prototype.any=function(t){return this.key=-1,t(this.value)},tt.prototype.all=function(t){return this.key=-1,t(this.value)},tt.prototype.each=function(t){return this.key=-1,t(this.value),this},tt.prototype.map=function(t){return new tt(t(this.value))},tt.prototype.filter=function(t){return t(this.value)?new tt(this.value):Q},tt.prototype.xd=function(){this.value=null},tt.prototype.toString=function(){return\"SingletonIterator(\"+this.value+\")\"},p.Object.defineProperties(tt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),tt.prototype.first=tt.prototype.first,tt.prototype.hasNext=tt.prototype.dd,tt.prototype.next=tt.prototype.next,tt.prototype.reset=tt.prototype.reset,tt.className=\"SingletonIterator\",et.prototype.reset=function(){var t=this.pb;t.Ja=null,this.la=t.Ba,this.Sa=-1},et.prototype.next=function(){var t=this.pb;if(t.Ba!==this.la&&0>this.key)return!1;t=t.j;var e=t.length,i=++this.Sa,n=this.We;if(null!==n)for(;i<e;){var o=t[i];if(n(o))return this.key=this.Sa=i,this.value=o,!0;i++}else{if(i<e)return this.key=i,this.value=t[i],!0;this.xd()}return!1},et.prototype.dd=function(){return this.next()},et.prototype.first=function(){var t=this.pb;this.la=t.Ba,this.Sa=0,t=t.j;var e=t.length,i=this.We;if(null!==i){for(var n=0;n<e;){var o=t[n];if(i(o))return this.key=this.Sa=n,this.value=o;n++}return null}return 0<e?(t=t[0],this.key=0,this.value=t):null},et.prototype.any=function(t){var e=this.pb;e.Ja=null,this.Sa=-1,e=e.j;for(var i=e.length,n=this.We,o=0;o<i;o++){var r=e[o];if((null===n||n(r))&&t(r))return!0}return!1},et.prototype.all=function(t){var e=this.pb;e.Ja=null,this.Sa=-1,e=e.j;for(var i=e.length,n=this.We,o=0;o<i;o++){var r=e[o];if((null===n||n(r))&&!t(r))return!1}return!0},et.prototype.each=function(t){var e=this.pb;e.Ja=null,this.Sa=-1,e=e.j;for(var i=e.length,n=this.We,o=0;o<i;o++){var r=e[o];(null===n||n(r))&&t(r)}return this},et.prototype.map=function(t){var e=this.pb;e.Ja=null,this.Sa=-1;var i=[];e=e.j;for(var n=e.length,o=this.We,r=0;r<n;r++){var s=e[r];(null===o||o(s))&&i.push(t(s))}return t=new nt,t.j=i,t.kb(),t.iterator},et.prototype.filter=function(t){var e=this.pb;e.Ja=null,this.Sa=-1;var i=[];e=e.j;for(var n=e.length,o=this.We,r=0;r<n;r++){var s=e[r];(null===o||o(s))&&t(s)&&i.push(s)}return t=new nt,t.j=i,t.kb(),t.iterator},et.prototype.xd=function(){this.key=-1,this.value=null,this.la=-1,this.We=null,this.pb.Ja=this},et.prototype.toString=function(){return\"ListIterator@\"+this.Sa+\"/\"+this.pb.count},p.Object.defineProperties(et.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.We},set:function(t){this.We=t}},count:{get:function(){var t=this.We;if(null!==t){for(var e=0,i=this.pb.j,n=i.length,o=0;o<n;o++)t(i[o])&&e++;return e}return this.pb.j.length}}}),et.prototype.first=et.prototype.first,et.prototype.hasNext=et.prototype.dd,et.prototype.next=et.prototype.next,et.prototype.reset=et.prototype.reset,et.className=\"ListIterator\",it.prototype.reset=function(){var t=this.pb;t.Qg=null,this.la=t.Ba,this.Sa=t.j.length},it.prototype.next=function(){var t=this.pb;if(t.Ba!==this.la&&0>this.key)return!1;var e=--this.Sa;return 0<=e?(this.key=e,this.value=t.j[e],!0):(this.xd(),!1)},it.prototype.dd=function(){return this.next()},it.prototype.first=function(){var t=this.pb;this.la=t.Ba;var e=t.j;return this.Sa=t=e.length-1,0<=t?(e=e[t],this.key=t,this.value=e):null},it.prototype.any=function(t){var e=this.pb;e.Qg=null,e=e.j;var i=e.length;for(this.Sa=i,--i;0<=i;i--)if(t(e[i]))return!0;return!1},it.prototype.all=function(t){var e=this.pb;e.Qg=null,e=e.j;var i=e.length;for(this.Sa=i,--i;0<=i;i--)if(!t(e[i]))return!1;return!0},it.prototype.each=function(t){var e=this.pb;e.Qg=null,e=e.j;var i=e.length;for(this.Sa=i,--i;0<=i;i--)t(e[i]);return this},it.prototype.map=function(t){var e=this.pb;e.Qg=null;var i=[];e=e.j;var n=e.length;for(this.Sa=n,--n;0<=n;n--)i.push(t(e[n]));return t=new nt,t.j=i,t.kb(),t.iterator},it.prototype.filter=function(t){var e=this.pb;e.Qg=null;var i=[];e=e.j;var n=e.length;for(this.Sa=n,--n;0<=n;n--){var o=e[n];t(o)&&i.push(o)}return t=new nt,t.j=i,t.kb(),t.iterator},it.prototype.xd=function(){this.key=-1,this.value=null,this.la=-1,this.pb.Qg=this},it.prototype.toString=function(){return\"ListIteratorBackwards(\"+this.Sa+\"/\"+this.pb.count+\")\"},p.Object.defineProperties(it.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.pb.j.length}}}),it.prototype.first=it.prototype.first,it.prototype.hasNext=it.prototype.dd,it.prototype.next=it.prototype.next,it.prototype.reset=it.prototype.reset,it.className=\"ListIteratorBackwards\",i=nt.prototype,i.kb=function(){var t=this.Ba;t++,999999999<t&&(t=0),this.Ba=t},i.freeze=function(){return this.v=!0,this},i.ha=function(){return this.v=!1,this},i.toString=function(){return\"List()#\"+lt(this)},i.add=function(t){return null===t||(this.v&&M(this,t),this.j.push(t),this.kb()),this},i.push=function(t){this.add(t)},i.addAll=function(t){if(null===t)return this;this.v&&M(this);var e=this.j;if(T(t))for(var i=t.length,n=0;n<i;n++)e.push(t[n]);else for(t=t.iterator;t.next();)e.push(t.value);return this.kb(),this},i.clear=function(){this.v&&M(this),this.j.length=0,this.kb()},i.contains=function(t){return null!==t&&-1!==this.j.indexOf(t)},i.has=function(t){return this.contains(t)},i.indexOf=function(t){return null===t?-1:this.j.indexOf(t)},i.N=function(t){var e=this.j;return(0>t||t>=e.length)&&C(t,\"0 <= i < length\",nt,\"elt:i\"),e[t]},i.get=function(t){return this.N(t)},i.gd=function(t,e){var i=this.j;(0>t||t>=i.length)&&C(t,\"0 <= i < length\",nt,\"setElt:i\"),this.v&&M(this,t),i[t]=e},i.set=function(t,e){this.gd(t,e)},i.first=function(){var t=this.j;return 0===t.length?null:t[0]},i.Tb=function(){var t=this.j,e=t.length;return 0<e?t[e-1]:null},i.pop=function(){this.v&&M(this);var t=this.j;return 0<t.length?t.pop():null},nt.prototype.any=function(t){for(var e=this.j,i=e.length,n=0;n<i;n++)if(t(e[n]))return!0;return!1},nt.prototype.all=function(t){for(var e=this.j,i=e.length,n=0;n<i;n++)if(!t(e[n]))return!1;return!0},nt.prototype.each=function(t){for(var e=this.j,i=e.length,n=0;n<i;n++)t(e[n]);return this},nt.prototype.map=function(t){for(var e=new nt,i=[],n=this.j,o=n.length,r=0;r<o;r++)i.push(t(n[r]));return e.j=i,e.kb(),e},nt.prototype.filter=function(t){for(var e=new nt,i=[],n=this.j,o=n.length,r=0;r<o;r++){var s=n[r];t(s)&&i.push(s)}return e.j=i,e.kb(),e},i=nt.prototype,i.Ib=function(t,e){0>t&&C(t,\">= 0\",nt,\"insertAt:i\"),this.v&&M(this,t);var i=this.j;t>=i.length?i.push(e):i.splice(t,0,e),this.kb()},i.remove=function(t){if(null===t)return!1;this.v&&M(this,t);var e=this.j;return t=e.indexOf(t),-1!==t&&(t===e.length-1?e.pop():e.splice(t,1),this.kb(),!0)},i.delete=function(t){return this.remove(t)},i.mb=function(t){var e=this.j;(0>t||t>=e.length)&&C(t,\"0 <= i < length\",nt,\"removeAt:i\"),this.v&&M(this,t),t===e.length-1?e.pop():e.splice(t,1),this.kb()},i.removeRange=function(t,e){var i=this.j,n=i.length;if(0>t)t=0;else if(t>=n)return this;if(0>e)return this;if(e>=n&&(e=n-1),t>e)return this;this.v&&M(this);for(var o=t,r=e+1;r<n;)i[o++]=i[r++];return i.length=n-(e-t+1),this.kb(),this},nt.prototype.copy=function(){var t=new nt,e=this.j;return 0<e.length&&(t.j=Array.prototype.slice.call(e)),t},i=nt.prototype,i.Na=function(){for(var t=this.j,e=this.count,i=Array(e),n=0;n<e;n++)i[n]=t[n];return i},i.Qv=function(){for(var t=new rt,e=this.j,i=this.count,n=0;n<i;n++)t.add(e[n]);return t},i.sort=function(t){return this.v&&M(this),this.j.sort(t),this.kb(),this},i.Vi=function(t,e,i){var n=this.j,o=n.length;void 0===e&&(e=0),void 0===i&&(i=o),this.v&&M(this);var r=i-e;if(1>=r)return this;if((0>e||e>=o-1)&&C(e,\"0 <= from < length\",nt,\"sortRange:from\"),2===r)return i=n[e],o=n[e+1],0<t(i,o)&&(n[e]=o,n[e+1]=i,this.kb()),this;if(0===e)if(i>=o)n.sort(t);else for(e=n.slice(0,i),e.sort(t),t=0;t<i;t++)n[t]=e[t];else if(i>=o)for(i=n.slice(e),i.sort(t),t=e;t<o;t++)n[t]=i[t-e];else for(o=n.slice(e,i),o.sort(t),t=e;t<i;t++)n[t]=o[t-e];return this.kb(),this},i.reverse=function(){return this.v&&M(this),this.j.reverse(),this.kb(),this},p.Object.defineProperties(nt.prototype,{_dataArray:{get:function(){return this.j}},count:{get:function(){return this.j.length}},size:{get:function(){return this.j.length}},length:{get:function(){return this.j.length}},iterator:{get:function(){if(0>=this.j.length)return Q;var t=this.Ja;return null!==t?(t.reset(),t):new et(this)}},iteratorBackwards:{get:function(){if(0>=this.j.length)return Q;var t=this.Qg;return null!==t?(t.reset(),t):new it(this)}}}),nt.prototype.reverse=nt.prototype.reverse,nt.prototype.sortRange=nt.prototype.Vi,nt.prototype.sort=nt.prototype.sort,nt.prototype.toSet=nt.prototype.Qv,nt.prototype.toArray=nt.prototype.Na,nt.prototype.removeRange=nt.prototype.removeRange,nt.prototype.removeAt=nt.prototype.mb,nt.prototype[\"delete\"]=nt.prototype.delete,nt.prototype.remove=nt.prototype.remove,nt.prototype.insertAt=nt.prototype.Ib,nt.prototype.pop=nt.prototype.pop,nt.prototype.last=nt.prototype.Tb,nt.prototype.first=nt.prototype.first,nt.prototype.set=nt.prototype.set,nt.prototype.setElt=nt.prototype.gd,nt.prototype.get=nt.prototype.get,nt.prototype.elt=nt.prototype.N,nt.prototype.indexOf=nt.prototype.indexOf,nt.prototype.has=nt.prototype.has,nt.prototype.contains=nt.prototype.contains,nt.prototype.clear=nt.prototype.clear,nt.prototype.addAll=nt.prototype.addAll,nt.prototype.push=nt.prototype.push,nt.prototype.add=nt.prototype.add,nt.prototype.thaw=nt.prototype.ha,nt.prototype.freeze=nt.prototype.freeze,nt.className=\"List\",ot.prototype.reset=function(){var t=this.eg;t.Ja=null,this.la=t.Ba,this.na=null},ot.prototype.next=function(){var t=this.eg;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.value=e.value,this.key=e.key,!0):(this.xd(),!1)},ot.prototype.dd=function(){return this.next()},ot.prototype.first=function(){var t=this.eg;if(this.la=t.Ba,t=t.fa,null!==t){this.na=t;var e=t.value;return this.key=t.key,this.value=e}return null},ot.prototype.any=function(t){var e=this.eg;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(t(e.value))return!0;e=e.oa}return!1},ot.prototype.all=function(t){var e=this.eg;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(!t(e.value))return!1;e=e.oa}return!0},ot.prototype.each=function(t){var e=this.eg;for(this.na=e.Ja=null,e=e.fa;null!==e;)t(e.value),e=e.oa;return this},ot.prototype.map=function(t){var e=this.eg;e.Ja=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e.value)),e=e.oa;return i.iterator},ot.prototype.filter=function(t){var e=this.eg;e.Ja=null;var i=new nt;for(e=e.fa;null!==e;){var n=e.value;t(n)&&i.add(n),e=e.oa}return i.iterator},ot.prototype.xd=function(){this.value=this.key=null,this.la=-1,this.eg.Ja=this},ot.prototype.toString=function(){return null!==this.na?\"SetIterator@\"+this.na.value:\"SetIterator\"},p.Object.defineProperties(ot.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Cb}}}),ot.prototype.first=ot.prototype.first,ot.prototype.hasNext=ot.prototype.dd,ot.prototype.next=ot.prototype.next,ot.prototype.reset=ot.prototype.reset,ot.className=\"SetIterator\",i=rt.prototype,i.kb=function(){var t=this.Ba;t++,999999999<t&&(t=0),this.Ba=t},i.freeze=function(){return this.v=!0,this},i.ha=function(){return this.v=!1,this},i.toString=function(){return\"Set()#\"+lt(this)},i.add=function(t){if(null===t)return this;this.v&&M(this,t);var e=t;return P(t)&&(e=at(t)),void 0===this.Db[e]&&(this.Cb++,t=new dt(t,t),this.Db[e]=t,e=this.Se,null===e?this.fa=t:(t.wl=e,e.oa=t),this.Se=t,this.kb()),this},i.addAll=function(t){if(null===t)return this;if(this.v&&M(this),T(t))for(var e=t.length,i=0;i<e;i++)this.add(t[i]);else for(t=t.iterator;t.next();)this.add(t.value);return this},i.contains=function(t){if(null===t)return!1;var e=t;return(!P(t)||(e=lt(t),void 0!==e))&&void 0!==this.Db[e]},i.has=function(t){return this.contains(t)},i.vy=function(t){if(null===t)return!0;for(t=t.iterator;t.next();)if(!this.contains(t.value))return!1;return!0},i.wy=function(t){if(null===t)return!0;for(t=t.iterator;t.next();)if(this.contains(t.value))return!0;return!1},i.first=function(){var t=this.fa;return null===t?null:t.value},rt.prototype.any=function(t){for(var e=this.fa;null!==e;){if(t(e.value))return!0;e=e.oa}return!1},rt.prototype.all=function(t){for(var e=this.fa;null!==e;){if(!t(e.value))return!1;e=e.oa}return!0},rt.prototype.each=function(t){for(var e=this.fa;null!==e;)t(e.value),e=e.oa;return this},rt.prototype.map=function(t){for(var e=new rt,i=this.fa;null!==i;)e.add(t(i.value)),i=i.oa;return e},rt.prototype.filter=function(t){for(var e=new rt,i=this.fa;null!==i;){var n=i.value;t(n)&&e.add(n),i=i.oa}return e},i=rt.prototype,i.remove=function(t){if(null===t)return!1;this.v&&M(this,t);var e=t;if(P(t)&&(e=lt(t),void 0===e))return!1;if(t=this.Db[e],void 0===t)return!1;var i=t.oa,n=t.wl;return null!==i&&(i.wl=n),null!==n&&(n.oa=i),this.fa===t&&(this.fa=i),this.Se===t&&(this.Se=n),delete this.Db[e],this.Cb--,this.kb(),!0},i.delete=function(t){return this.remove(t)},i.lq=function(t){if(null===t)return this;if(this.v&&M(this),T(t))for(var e=t.length,i=0;i<e;i++)this.remove(t[i]);else for(t=t.iterator;t.next();)this.remove(t.value);return this},i.Pz=function(t){if(null===t||0===this.count)return this;this.v&&M(this);var e=new rt;e.addAll(t),t=[];for(var i=this.iterator;i.next();){var n=i.value;e.contains(n)||t.push(n)}return this.lq(t),this},i.clear=function(){this.v&&M(this),this.Db={},this.Cb=0,null!==this.Ja&&this.Ja.reset(),this.Se=this.fa=null,this.kb()},rt.prototype.copy=function(){var t,e=new rt,i=this.Db;for(t in i)e.add(i[t].value);return e},rt.prototype.Na=function(){var t,e=Array(this.Cb),i=this.Db,n=0;for(t in i)e[n]=i[t].value,n++;return e},rt.prototype.Pv=function(){var t,e=new nt,i=this.Db;for(t in i)e.add(i[t].value);return e},p.Object.defineProperties(rt.prototype,{count:{get:function(){return this.Cb}},size:{get:function(){return this.Cb}},iterator:{get:function(){if(0>=this.Cb)return Q;var t=this.Ja;return null!==t?(t.reset(),t):new ot(this)}}}),rt.prototype.toList=rt.prototype.Pv,rt.prototype.toArray=rt.prototype.Na,rt.prototype.clear=rt.prototype.clear,rt.prototype.retainAll=rt.prototype.Pz,rt.prototype.removeAll=rt.prototype.lq,rt.prototype[\"delete\"]=rt.prototype.delete,rt.prototype.remove=rt.prototype.remove,rt.prototype.first=rt.prototype.first,rt.prototype.containsAny=rt.prototype.wy,rt.prototype.containsAll=rt.prototype.vy,rt.prototype.has=rt.prototype.has,rt.prototype.contains=rt.prototype.contains,rt.prototype.addAll=rt.prototype.addAll,rt.prototype.add=rt.prototype.add,rt.prototype.thaw=rt.prototype.ha,rt.prototype.freeze=rt.prototype.freeze;var ht=1;function ut(t){this.ja=t,this.la=t.Ba,this.na=null}function ct(t){rt.call(this),st(this),this.v=!0,this.ja=t}function ft(t){this.ja=t,t.Re=null,this.la=t.Ba,this.na=null}function dt(t,e){this.key=t,this.value=e,this.wl=this.oa=null}function pt(t){this.ja=t,t.Ja=null,this.la=t.Ba,this.na=null}function gt(t){st(this),this.v=!1,this.Db={},this.Cb=0,this.Re=this.Ja=null,this.Ba=0,this.Se=this.fa=null,void 0!==t&&(\"function\"===typeof t||\"string\"===typeof t?N():this.addAll(t))}function mt(t,e){void 0===t?this.G=this.F=0:\"number\"===typeof t&&\"number\"===typeof e?(this.F=t,this.G=e):k(\"Invalid arguments to Point constructor: \"+t+\", \"+e),this.v=!1}function vt(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];n&&(i=parseFloat(n));for(var o=0;\"\"===t[e];)e++;return(n=t[e++])&&(o=parseFloat(n)),new mt(i,o)}return new mt}function yt(t){return t.x.toString()+\" \"+t.y.toString()}function bt(t,e){if(0===t)return 0<e?90:0>e?270:0;if(0===e)return 0<t?0:180;if(isNaN(t)||isNaN(e))return 0;var i=180*Math.atan(Math.abs(e/t))/Math.PI;return 0>t?i=0>e?i+180:180-i:0>e&&(i=360-i),i}function wt(t,e){return e.Ud(t),t}function xt(t,e,i,n,o,r){var s=o-i,a=r-n,l=s*s+a*a;i-=t,n-=e;var h=-i*s-n*a;return 0>=h||h>=l?(s=o-t,a=r-e,Math.min(i*i+n*n,s*s+a*a)):(t=s*n-a*i,t*t/l)}function kt(t,e,i,n){return t=i-t,e=n-e,t*t+e*e}function Mt(t,e,i,n){return t=i-t,e=n-e,0===t?0<e?90:0>e?270:0:0===e?0<t?0:180:isNaN(t)||isNaN(e)?0:(n=180*Math.atan(Math.abs(e/t))/Math.PI,0>t?n=0>e?n+180:180-n:0>e&&(n=360-n),n)}rt.className=\"Set\",rt.uniqueHash=st,rt.hashIdUnique=at,rt.hashId=lt,ut.prototype.reset=function(){this.la=this.ja.Ba,this.na=null},ut.prototype.next=function(){var t=this.ja;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.value=this.key=t=e.key,!0):(this.xd(),!1)},ut.prototype.dd=function(){return this.next()},ut.prototype.first=function(){var t=this.ja;return this.la=t.Ba,t=t.fa,null!==t?(this.na=t,this.value=this.key=t=t.key):null},ut.prototype.any=function(t){var e=this.ja;for(this.na=null,e=e.fa;null!==e;){if(t(e.key))return!0;e=e.oa}return!1},ut.prototype.all=function(t){var e=this.ja;for(this.na=null,e=e.fa;null!==e;){if(!t(e.key))return!1;e=e.oa}return!0},ut.prototype.each=function(t){var e=this.ja;for(this.na=null,e=e.fa;null!==e;)t(e.key),e=e.oa;return this},ut.prototype.map=function(t){var e=this.ja;this.na=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e.key)),e=e.oa;return i.iterator},ut.prototype.filter=function(t){var e=this.ja;this.na=null;var i=new nt;for(e=e.fa;null!==e;){var n=e.key;t(n)&&i.add(n),e=e.oa}return i.iterator},ut.prototype.xd=function(){this.value=this.key=null,this.la=-1},ut.prototype.toString=function(){return null!==this.na?\"MapKeySetIterator@\"+this.na.value:\"MapKeySetIterator\"},p.Object.defineProperties(ut.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ja.Cb}}}),ut.prototype.first=ut.prototype.first,ut.prototype.hasNext=ut.prototype.dd,ut.prototype.next=ut.prototype.next,ut.prototype.reset=ut.prototype.reset,ut.className=\"MapKeySetIterator\",d(ct,rt),i=ct.prototype,i.freeze=function(){return this},i.ha=function(){return this},i.toString=function(){return\"MapKeySet(\"+this.ja.toString()+\")\"},i.add=function(){return k(\"This Set is read-only: \"+this.toString()),this},i.contains=function(t){return this.ja.contains(t)},i.has=function(t){return this.contains(t)},i.remove=function(){return k(\"This Set is read-only: \"+this.toString()),!1},i.delete=function(t){return this.remove(t)},i.clear=function(){k(\"This Set is read-only: \"+this.toString())},i.first=function(){var t=this.ja.fa;return null!==t?t.key:null},ct.prototype.any=function(t){for(var e=this.ja.fa;null!==e;){if(t(e.key))return!0;e=e.oa}return!1},ct.prototype.all=function(t){for(var e=this.ja.fa;null!==e;){if(!t(e.key))return!1;e=e.oa}return!0},ct.prototype.each=function(t){for(var e=this.ja.fa;null!==e;)t(e.key),e=e.oa;return this},ct.prototype.map=function(t){for(var e=new rt,i=this.ja.fa;null!==i;)e.add(t(i.key)),i=i.oa;return e},ct.prototype.filter=function(t){for(var e=new rt,i=this.ja.fa;null!==i;){var n=i.key;t(n)&&e.add(n),i=i.oa}return e},ct.prototype.copy=function(){return new ct(this.ja)},ct.prototype.Qv=function(){var t,e=new rt,i=this.ja.Db;for(t in i)e.add(i[t].key);return e},ct.prototype.Na=function(){var t,e=this.ja.Db,i=Array(this.ja.Cb),n=0;for(t in e)i[n]=e[t].key,n++;return i},ct.prototype.Pv=function(){var t,e=new nt,i=this.ja.Db;for(t in i)e.add(i[t].key);return e},p.Object.defineProperties(ct.prototype,{count:{get:function(){return this.ja.Cb}},size:{get:function(){return this.ja.Cb}},iterator:{get:function(){return 0>=this.ja.Cb?Q:new ut(this.ja)}}}),ct.prototype.toList=ct.prototype.Pv,ct.prototype.toArray=ct.prototype.Na,ct.prototype.toSet=ct.prototype.Qv,ct.prototype.first=ct.prototype.first,ct.prototype.clear=ct.prototype.clear,ct.prototype[\"delete\"]=ct.prototype.delete,ct.prototype.remove=ct.prototype.remove,ct.prototype.has=ct.prototype.has,ct.prototype.contains=ct.prototype.contains,ct.prototype.add=ct.prototype.add,ct.prototype.thaw=ct.prototype.ha,ct.prototype.freeze=ct.prototype.freeze,ct.className=\"MapKeySet\",ft.prototype.reset=function(){var t=this.ja;t.Re=null,this.la=t.Ba,this.na=null},ft.prototype.next=function(){var t=this.ja;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.value=e.value,this.key=e.key,!0):(this.xd(),!1)},ft.prototype.dd=function(){return this.next()},ft.prototype.first=function(){var t=this.ja;if(this.la=t.Ba,t=t.fa,null!==t){this.na=t;var e=t.value;return this.key=t.key,this.value=e}return null},ft.prototype.any=function(t){var e=this.ja;for(this.na=e.Re=null,e=e.fa;null!==e;){if(t(e.value))return!0;e=e.oa}return!1},ft.prototype.all=function(t){var e=this.ja;for(this.na=e.Re=null,e=e.fa;null!==e;){if(!t(e.value))return!1;e=e.oa}return!0},ft.prototype.each=function(t){var e=this.ja;for(this.na=e.Re=null,e=e.fa;null!==e;)t(e.value),e=e.oa;return this},ft.prototype.map=function(t){var e=this.ja;this.na=e.Re=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e.value)),e=e.oa;return i.iterator},ft.prototype.filter=function(t){var e=this.ja;this.na=e.Re=null;var i=new nt;for(e=e.fa;null!==e;){var n=e.value;t(n)&&i.add(n),e=e.oa}return i.iterator},ft.prototype.xd=function(){this.value=this.key=null,this.la=-1,this.ja.Re=this},ft.prototype.toString=function(){return null!==this.na?\"MapValueSetIterator@\"+this.na.value:\"MapValueSetIterator\"},p.Object.defineProperties(ft.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ja.Cb}}}),ft.prototype.first=ft.prototype.first,ft.prototype.hasNext=ft.prototype.dd,ft.prototype.next=ft.prototype.next,ft.prototype.reset=ft.prototype.reset,ft.className=\"MapValueSetIterator\",dt.prototype.toString=function(){return\"{\"+this.key+\":\"+this.value+\"}\"},dt.className=\"KeyValuePair\",pt.prototype.reset=function(){var t=this.ja;t.Ja=null,this.la=t.Ba,this.na=null},pt.prototype.next=function(){var t=this.ja;if(t.Ba!==this.la&&null===this.key)return!1;var e=this.na;return e=null===e?t.fa:e.oa,null!==e?(this.na=e,this.key=e.key,this.value=e.value,!0):(this.xd(),!1)},pt.prototype.dd=function(){return this.next()},pt.prototype.first=function(){var t=this.ja;return this.la=t.Ba,t=t.fa,null!==t?(this.na=t,this.key=t.key,this.value=t.value,t):null},pt.prototype.any=function(t){var e=this.ja;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(t(e))return!0;e=e.oa}return!1},pt.prototype.all=function(t){var e=this.ja;for(this.na=e.Ja=null,e=e.fa;null!==e;){if(!t(e))return!1;e=e.oa}return!0},pt.prototype.each=function(t){var e=this.ja;for(this.na=e.Ja=null,e=e.fa;null!==e;)t(e),e=e.oa;return this},pt.prototype.map=function(t){var e=this.ja;this.na=e.Ja=null;var i=new nt;for(e=e.fa;null!==e;)i.add(t(e)),e=e.oa;return i.iterator},pt.prototype.filter=function(t){var e=this.ja;this.na=e.Ja=null;var i=new nt;for(e=e.fa;null!==e;)t(e)&&i.add(e),e=e.oa;return i.iterator},pt.prototype.xd=function(){this.value=this.key=null,this.la=-1,this.ja.Ja=this},pt.prototype.toString=function(){return null!==this.na?\"MapIterator@\"+this.na:\"MapIterator\"},p.Object.defineProperties(pt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ja.Cb}}}),pt.prototype.first=pt.prototype.first,pt.prototype.hasNext=pt.prototype.dd,pt.prototype.next=pt.prototype.next,pt.prototype.reset=pt.prototype.reset,pt.className=\"MapIterator\",i=gt.prototype,i.kb=function(){var t=this.Ba;t++,999999999<t&&(t=0),this.Ba=t},i.freeze=function(){return this.v=!0,this},i.ha=function(){return this.v=!1,this},i.toString=function(){return\"Map()#\"+lt(this)},i.add=function(t,e){this.v&&M(this,t);var i=t;P(t)&&(i=at(t));var n=this.Db[i];return void 0===n?(this.Cb++,t=new dt(t,e),this.Db[i]=t,i=this.Se,null===i?this.fa=t:(t.wl=i,i.oa=t),this.Se=t,this.kb()):n.value=e,this},i.set=function(t,e){return this.add(t,e)},i.addAll=function(t){if(null===t)return this;if(T(t))for(var e=t.length,i=0;i<e;i++){var n=t[i];this.add(n.key,n.value)}else for(t=t.iterator;t.next();)e=t.value,this.add(e.key,e.value);return this},i.first=function(){return this.fa},gt.prototype.any=function(t){for(var e=this.fa;null!==e;){if(t(e))return!0;e=e.oa}return!1},gt.prototype.all=function(t){for(var e=this.fa;null!==e;){if(!t(e))return!1;e=e.oa}return!0},gt.prototype.each=function(t){for(var e=this.fa;null!==e;)t(e),e=e.oa;return this},gt.prototype.map=function(t){for(var e=new gt,i=this.fa;null!==i;)e.add(i.key,t(i)),i=i.oa;return e},gt.prototype.filter=function(t){for(var e=new gt,i=this.fa;null!==i;)t(i)&&e.add(i.key,i.value),i=i.oa;return e},i=gt.prototype,i.contains=function(t){var e=t;return(!P(t)||(e=lt(t),void 0!==e))&&void 0!==this.Db[e]},i.has=function(t){return this.contains(t)},i.J=function(t){var e=t;return P(t)&&(e=lt(t),void 0===e)?null:(t=this.Db[e],void 0===t?null:t.value)},i.get=function(t){return this.J(t)},i.remove=function(t){if(null===t)return!1;this.v&&M(this,t);var e=t;if(P(t)&&(e=lt(t),void 0===e))return!1;if(t=this.Db[e],void 0===t)return!1;var i=t.oa,n=t.wl;return null!==i&&(i.wl=n),null!==n&&(n.oa=i),this.fa===t&&(this.fa=i),this.Se===t&&(this.Se=n),delete this.Db[e],this.Cb--,this.kb(),!0},i.delete=function(t){return this.remove(t)},i.clear=function(){this.v&&M(this),this.Db={},this.Cb=0,null!==this.Ja&&this.Ja.reset(),null!==this.Re&&this.Re.reset(),this.Se=this.fa=null,this.kb()},gt.prototype.copy=function(){var t,e=new gt,i=this.Db;for(t in i){var n=i[t];e.add(n.key,n.value)}return e},gt.prototype.Na=function(){var t,e=this.Db,i=Array(this.Cb),n=0;for(t in e){var o=e[t];i[n]=new dt(o.key,o.value),n++}return i},gt.prototype.Yd=function(){return new ct(this)},p.Object.defineProperties(gt.prototype,{count:{get:function(){return this.Cb}},size:{get:function(){return this.Cb}},iterator:{get:function(){if(0>=this.count)return Q;var t=this.Ja;return null!==t?(t.reset(),t):new pt(this)}},iteratorKeys:{get:function(){return 0>=this.count?Q:new ut(this)}},iteratorValues:{get:function(){if(0>=this.count)return Q;var t=this.Re;return null!==t?(t.reset(),t):new ft(this)}}}),gt.prototype.toKeySet=gt.prototype.Yd,gt.prototype.toArray=gt.prototype.Na,gt.prototype.clear=gt.prototype.clear,gt.prototype[\"delete\"]=gt.prototype.delete,gt.prototype.remove=gt.prototype.remove,gt.prototype.get=gt.prototype.get,gt.prototype.getValue=gt.prototype.J,gt.prototype.has=gt.prototype.has,gt.prototype.contains=gt.prototype.contains,gt.prototype.first=gt.prototype.first,gt.prototype.addAll=gt.prototype.addAll,gt.prototype.set=gt.prototype.set,gt.prototype.add=gt.prototype.add,gt.prototype.thaw=gt.prototype.ha,gt.prototype.freeze=gt.prototype.freeze,gt.className=\"Map\",mt.prototype.assign=function(t){return this.F=t.F,this.G=t.G,this},mt.prototype.h=function(t,e){return this.F=t,this.G=e,this},mt.prototype.tg=function(t,e){return this.F=t,this.G=e,this},mt.prototype.set=function(t){return this.F=t.F,this.G=t.G,this},mt.prototype.copy=function(){var t=new mt;return t.F=this.F,t.G=this.G,t},i=mt.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Point(\"+this.x+\",\"+this.y+\")\"},i.A=function(t){return t instanceof mt&&(this.F===t.x&&this.G===t.y)},i.Di=function(t,e){return this.F===t&&this.G===e},i.Qa=function(t){return We.w(this.F,t.x)&&We.w(this.G,t.y)},i.add=function(t){return this.F+=t.x,this.G+=t.y,this},i.Xd=function(t){return this.F-=t.x,this.G-=t.y,this},i.offset=function(t,e){return this.F+=t,this.G+=e,this},mt.prototype.rotate=function(t){if(0===t)return this;var e=this.F,i=this.G;if(0===e&&0===i)return this;if(360<=t?t-=360:0>t&&(t+=360),90===t){t=0;var n=1}else 180===t?(t=-1,n=0):270===t?(t=0,n=-1):(n=t*Math.PI/180,t=Math.cos(n),n=Math.sin(n));return this.F=t*e-n*i,this.G=n*e+t*i,this},i=mt.prototype,i.scale=function(t,e){return this.F*=t,this.G*=e,this},i.Be=function(t){var e=t.x-this.F;return t=t.y-this.G,e*e+t*t},i.cd=function(t,e){return t-=this.F,e-=this.G,t*t+e*e},i.normalize=function(){var t=this.F,e=this.G,i=Math.sqrt(t*t+e*e);return 0<i&&(this.F=t/i,this.G=e/i),this},i.Wa=function(t){return bt(t.x-this.F,t.y-this.G)},i.direction=function(t,e){return bt(t-this.F,e-this.G)},i.Iz=function(t,e,i,n){return We.Qi(t,e,i,n,this.F,this.G,this),this},i.Jz=function(t,e){return We.Qi(t.x,t.y,e.x,e.y,this.F,this.G,this),this},i.Uz=function(t,e,i,n){return We.Tp(this.F,this.G,t,e,i,n,this),this},i.Vz=function(t,e){return We.Tp(this.F,this.G,t.x,t.y,e.width,e.height,this),this},i.Ti=function(t,e){return this.F=t.x+e.x*t.width+e.offsetX,this.G=t.y+e.y*t.height+e.offsetY,this},i.qk=function(t,e,i,n,o){return this.F=t+o.x*i+o.offsetX,this.G=e+o.y*n+o.offsetY,this},i.transform=function(t){return t.ta(this),this},i.o=function(){return isFinite(this.x)&&isFinite(this.y)},mt.alloc=function(){var t=Ft.pop();return void 0===t?new mt:t},mt.allocAt=function(t,e){var i=Ft.pop();return void 0===i?new mt(t,e):(i.x=t,i.y=e,i)},mt.free=function(t){Ft.push(t)},p.Object.defineProperties(mt.prototype,{x:{get:function(){return this.F},set:function(t){this.F=t}},y:{get:function(){return this.G},set:function(t){this.G=t}}}),mt.prototype.isReal=mt.prototype.o,mt.prototype.setSpot=mt.prototype.qk,mt.prototype.setRectSpot=mt.prototype.Ti,mt.prototype.snapToGridPoint=mt.prototype.Vz,mt.prototype.snapToGrid=mt.prototype.Uz,mt.prototype.projectOntoLineSegmentPoint=mt.prototype.Jz,mt.prototype.projectOntoLineSegment=mt.prototype.Iz,mt.prototype.direction=mt.prototype.direction,mt.prototype.directionPoint=mt.prototype.Wa,mt.prototype.normalize=mt.prototype.normalize,mt.prototype.distanceSquared=mt.prototype.cd,mt.prototype.distanceSquaredPoint=mt.prototype.Be,mt.prototype.scale=mt.prototype.scale,mt.prototype.rotate=mt.prototype.rotate,mt.prototype.offset=mt.prototype.offset,mt.prototype.subtract=mt.prototype.Xd,mt.prototype.add=mt.prototype.add,mt.prototype.equalsApprox=mt.prototype.Qa,mt.prototype.equalTo=mt.prototype.Di,mt.prototype.equals=mt.prototype.A,mt.prototype.set=mt.prototype.set,mt.prototype.setTo=mt.prototype.tg;var Ct,St,Nt,Pt,Tt,Lt,Ot,Dt=null,jt=null,At=null,Bt=null,zt=null,Ft=[];function It(t,e){void 0===t?this.Z=this.$=0:\"number\"===typeof t&&(0<=t||isNaN(t))&&\"number\"===typeof e&&(0<=e||isNaN(e))?(this.$=t,this.Z=e):k(\"Invalid arguments to Size constructor: \"+t+\", \"+e),this.v=!1}function Et(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];n&&(i=parseFloat(n));for(var o=0;\"\"===t[e];)e++;return(n=t[e++])&&(o=parseFloat(n)),new It(i,o)}return new It}function Rt(t){return t.width.toString()+\" \"+t.height.toString()}mt.className=\"Point\",mt.parse=vt,mt.stringify=yt,mt.distanceLineSegmentSquared=xt,mt.distanceSquared=kt,mt.direction=Mt,mt.Origin=Dt=new mt(0,0).ga(),mt.InfiniteTopLeft=jt=new mt(-1/0,-1/0).ga(),mt.InfiniteBottomRight=At=new mt(1/0,1/0).ga(),mt.SixPoint=Bt=new mt(6,6).ga(),mt.NoPoint=zt=new mt(NaN,NaN).ga(),mt.parse=vt,mt.stringify=yt,mt.distanceLineSegmentSquared=xt,mt.distanceSquared=kt,mt.direction=Mt,It.prototype.assign=function(t){return this.$=t.$,this.Z=t.Z,this},It.prototype.h=function(t,e){return this.$=t,this.Z=e,this},It.prototype.tg=function(t,e){return this.$=t,this.Z=e,this},It.prototype.set=function(t){return this.$=t.$,this.Z=t.Z,this},It.prototype.copy=function(){var t=new It;return t.$=this.$,t.Z=this.Z,t},i=It.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Size(\"+this.width+\",\"+this.height+\")\"},i.A=function(t){return t instanceof It&&(this.$===t.width&&this.Z===t.height)},i.Di=function(t,e){return this.$===t&&this.Z===e},i.Qa=function(t){return We.w(this.$,t.width)&&We.w(this.Z,t.height)},i.o=function(){return isFinite(this.width)&&isFinite(this.height)},It.alloc=function(){var t=Vt.pop();return void 0===t?new It:t},It.free=function(t){Vt.push(t)},p.Object.defineProperties(It.prototype,{width:{get:function(){return this.$},set:function(t){0>t&&C(t,\">= 0\",It,\"width\"),this.$=t}},height:{get:function(){return this.Z},set:function(t){0>t&&C(t,\">= 0\",It,\"height\"),this.Z=t}}}),It.prototype.isReal=It.prototype.o,It.prototype.equalsApprox=It.prototype.Qa,It.prototype.equalTo=It.prototype.Di,It.prototype.equals=It.prototype.A,It.prototype.set=It.prototype.set,It.prototype.setTo=It.prototype.tg;var Vt=[];function _t(t,e,i,n){void 0===t?this.Z=this.$=this.G=this.F=0:t instanceof mt?(i=t.x,t=t.y,e instanceof mt?(n=e.x,e=e.y,this.F=Math.min(i,n),this.G=Math.min(t,e),this.$=Math.abs(i-n),this.Z=Math.abs(t-e)):e instanceof It?(this.F=i,this.G=t,this.$=e.$,this.Z=e.Z):k(\"Incorrect arguments supplied to Rect constructor\")):\"number\"===typeof t&&\"number\"===typeof e&&\"number\"===typeof i&&(0<=i||isNaN(i))&&\"number\"===typeof n&&(0<=n||isNaN(n))?(this.F=t,this.G=e,this.$=i,this.Z=n):k(\"Invalid arguments to Rect constructor: \"+t+\", \"+e+\", \"+i+\", \"+n),this.v=!1}function Ht(t,e,i){t.$=e,t.Z=i}function Yt(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];n&&(i=parseFloat(n));for(var o=0;\"\"===t[e];)e++;(n=t[e++])&&(o=parseFloat(n));for(var r=0;\"\"===t[e];)e++;(n=t[e++])&&(r=parseFloat(n));for(var s=0;\"\"===t[e];)e++;return(n=t[e++])&&(s=parseFloat(n)),new _t(i,o,r,s)}return new _t}function qt(t){return t.x.toString()+\" \"+t.y.toString()+\" \"+t.width.toString()+\" \"+t.height.toString()}function Gt(t,e){return We.ca(t.F,e.x)&&We.ca(t.G,e.y)&&We.ca(t.$,e.width)&&We.ca(t.Z,e.height)}function Xt(t,e,i,n,o){var r=t.$;return i+o<=-r?(t.F+=r/2,t.$=0):(t.F-=o,t.$+=i+o),i=t.Z,e+n<=-i?(t.G+=i/2,t.Z=0):(t.G-=e,t.Z+=e+n),t}function Ut(t,e,i,n,o){var r=Math.max(t.F,e),s=Math.max(t.G,i);return e=Math.min(t.F+t.$,e+n),i=Math.min(t.G+t.Z,i+o),t.F=r,t.G=s,t.$=Math.max(0,e-r),t.Z=Math.max(0,i-s),t}function Kt(t,e,i){var n=t.$,o=t.F,r=e.x-i;return!(o>e.width+i+i+r||r>n+o)&&(n=t.Z,t=t.G,o=e.y-i,!(t>e.height+i+i+o||o>n+t))}function $t(t,e,i,n,o){var r=Math.min(t.F,e),s=Math.min(t.G,i);return e=Math.max(t.F+t.$,e+n),i=Math.max(t.G+t.Z,i+o),t.F=r,t.G=s,t.$=e-r,t.Z=i-s,t}function Wt(t,e,i,n,o,r,s,a){return void 0===s&&(s=0),void 0===a&&(a=0),t<=o&&o+s<=t+i&&e<=r&&r+a<=e+n}function Jt(t,e,i,n,o,r,s,a){return!(t>s+o||o>i+t)&&!(e>a+r||r>n+e)}It.className=\"Size\",It.parse=Et,It.stringify=Rt,It.ZeroSize=Ct=new It(0,0).ga(),It.OneSize=St=new It(1,1).ga(),It.SixSize=Nt=new It(6,6).ga(),It.EightSize=Pt=new It(8,8).ga(),It.TenSize=Tt=new It(10,10).ga(),It.InfiniteSize=Lt=new It(1/0,1/0).ga(),It.NoSize=Ot=new It(NaN,NaN).ga(),It.parse=Et,It.stringify=Rt,i=_t.prototype,i.assign=function(t){return this.F=t.F,this.G=t.G,this.$=t.$,this.Z=t.Z,this},i.h=function(t,e,i,n){return this.F=t,this.G=e,this.$=i,this.Z=n,this},i.tg=function(t,e,i,n){return this.F=t,this.G=e,this.$=i,this.Z=n,this},i.set=function(t){return this.F=t.F,this.G=t.G,this.$=t.$,this.Z=t.Z,this},i.jd=function(t){return this.F=t.x,this.G=t.y,this},i.Sz=function(t){return this.$=t.$,this.Z=t.Z,this},_t.prototype.copy=function(){var t=new _t;return t.F=this.F,t.G=this.G,t.$=this.$,t.Z=this.Z,t},i=_t.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Rect(\"+this.x+\",\"+this.y+\",\"+this.width+\",\"+this.height+\")\"},i.A=function(t){return t instanceof _t&&(this.F===t.x&&this.G===t.y&&this.$===t.width&&this.Z===t.height)},i.Di=function(t,e,i,n){return this.F===t&&this.G===e&&this.$===i&&this.Z===n},i.Qa=function(t){return We.w(this.F,t.x)&&We.w(this.G,t.y)&&We.w(this.$,t.width)&&We.w(this.Z,t.height)},i.ea=function(t){return this.F<=t.x&&this.F+this.$>=t.x&&this.G<=t.y&&this.G+this.Z>=t.y},i.lf=function(t){return this.F<=t.x&&t.x+t.width<=this.F+this.$&&this.G<=t.y&&t.y+t.height<=this.G+this.Z},i.contains=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),this.F<=t&&t+i<=this.F+this.$&&this.G<=e&&e+n<=this.G+this.Z},i.reset=function(){this.Z=this.$=this.G=this.F=0},i.offset=function(t,e){return this.F+=t,this.G+=e,this},i.Uc=function(t,e){return Xt(this,e,t,e,t)},i.Lp=function(t){return Xt(this,t.top,t.right,t.bottom,t.left)},i.Ov=function(t){return Xt(this,-t.top,-t.right,-t.bottom,-t.left)},i.lz=function(t,e,i,n){return Xt(this,t,e,i,n)},i.pz=function(t){return Ut(this,t.x,t.y,t.width,t.height)},i.gv=function(t,e,i,n){return Ut(this,t,e,i,n)},i.Ic=function(t){return this.hv(t.x,t.y,t.width,t.height)},i.hv=function(t,e,i,n){var o=this.$,r=this.F;return!(1/0!==o&&1/0!==i&&(o+=r,i+=t,isNaN(i)||isNaN(o)||r>i||t>o))&&(t=this.Z,i=this.G,!(1/0!==t&&1/0!==n&&(t+=i,n+=e,isNaN(n)||isNaN(t)||i>n||e>t)))},i.Ie=function(t){return $t(this,t.x,t.y,0,0)},i.Jc=function(t){return $t(this,t.F,t.G,t.$,t.Z)},i.Vv=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),$t(this,t,e,i,n)},i.qk=function(t,e,i){return this.F=t-i.offsetX-i.x*this.$,this.G=e-i.offsetY-i.y*this.Z,this},i.o=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},i.rz=function(){return 0===this.width&&0===this.height},_t.alloc=function(){var t=te.pop();return void 0===t?new _t:t},_t.allocAt=function(t,e,i,n){var o=te.pop();return void 0===o?new _t(t,e,i,n):o.h(t,e,i,n)},_t.free=function(t){te.push(t)},p.Object.defineProperties(_t.prototype,{x:{get:function(){return this.F},set:function(t){this.F=t}},y:{get:function(){return this.G},set:function(t){this.G=t}},width:{get:function(){return this.$},set:function(t){0>t&&C(t,\">= 0\",_t,\"width\"),this.$=t}},height:{get:function(){return this.Z},set:function(t){0>t&&C(t,\">= 0\",_t,\"height\"),this.Z=t}},left:{get:function(){return this.F},set:function(t){this.F=t}},top:{get:function(){return this.G},set:function(t){this.G=t}},right:{get:function(){return this.F+this.$},set:function(t){this.F+=t-(this.F+this.$)}},bottom:{get:function(){return this.G+this.Z},set:function(t){this.G+=t-(this.G+this.Z)}},position:{get:function(){return new mt(this.F,this.G)},set:function(t){this.F=t.x,this.G=t.y}},size:{get:function(){return new It(this.$,this.Z)},set:function(t){this.$=t.width,this.Z=t.height}},center:{get:function(){return new mt(this.F+this.$/2,this.G+this.Z/2)},set:function(t){this.F=t.x-this.$/2,this.G=t.y-this.Z/2}},centerX:{get:function(){return this.F+this.$/2},set:function(t){this.F=t-this.$/2}},centerY:{get:function(){return this.G+this.Z/2},set:function(t){this.G=t-this.Z/2}}}),_t.prototype.isEmpty=_t.prototype.rz,_t.prototype.isReal=_t.prototype.o,_t.prototype.setSpot=_t.prototype.qk,_t.prototype.union=_t.prototype.Vv,_t.prototype.unionRect=_t.prototype.Jc,_t.prototype.unionPoint=_t.prototype.Ie,_t.prototype.intersects=_t.prototype.hv,_t.prototype.intersectsRect=_t.prototype.Ic,_t.prototype.intersect=_t.prototype.gv,_t.prototype.intersectRect=_t.prototype.pz,_t.prototype.grow=_t.prototype.lz,_t.prototype.subtractMargin=_t.prototype.Ov,_t.prototype.addMargin=_t.prototype.Lp,_t.prototype.inflate=_t.prototype.Uc,_t.prototype.offset=_t.prototype.offset,_t.prototype.contains=_t.prototype.contains,_t.prototype.containsRect=_t.prototype.lf,_t.prototype.containsPoint=_t.prototype.ea,_t.prototype.equalsApprox=_t.prototype.Qa,_t.prototype.equalTo=_t.prototype.Di,_t.prototype.equals=_t.prototype.A,_t.prototype.setSize=_t.prototype.Sz,_t.prototype.setPoint=_t.prototype.jd,_t.prototype.set=_t.prototype.set,_t.prototype.setTo=_t.prototype.tg;var Zt=null,Qt=null,te=[];function ee(t,e,i,n){void 0===t?this.le=this.ae=this.te=this.ve=0:void 0===e?this.left=this.bottom=this.right=this.top=t:void 0===i?(this.top=t,this.right=e,this.bottom=t,this.left=e):void 0!==n?(this.top=t,this.right=e,this.bottom=i,this.left=n):k(\"Invalid arguments to Margin constructor: \"+t+\", \"+e+\", \"+i+\", \"+n),this.v=!1}function ie(t){if(\"string\"===typeof t){t=t.split(\" \");for(var e=0,i=NaN;\"\"===t[e];)e++;var n=t[e++];if(n&&(i=parseFloat(n)),isNaN(i))return new ee;for(var o=NaN;\"\"===t[e];)e++;if((n=t[e++])&&(o=parseFloat(n)),isNaN(o))return new ee(i);for(var r=NaN;\"\"===t[e];)e++;if((n=t[e++])&&(r=parseFloat(n)),isNaN(r))return new ee(i,o);for(var s=NaN;\"\"===t[e];)e++;return(n=t[e++])&&(s=parseFloat(n)),isNaN(s)?new ee(i,o):new ee(i,o,r,s)}return new ee}function ne(t){return t.top.toString()+\" \"+t.right.toString()+\" \"+t.bottom.toString()+\" \"+t.left.toString()}_t.className=\"Rect\",_t.parse=Yt,_t.stringify=qt,_t.contains=Wt,_t.intersects=Jt,_t.ZeroRect=Zt=new _t(0,0,0,0).ga(),_t.NoRect=Qt=new _t(NaN,NaN,NaN,NaN).ga(),_t.parse=Yt,_t.stringify=qt,_t.contains=Wt,_t.intersects=Jt,ee.prototype.assign=function(t){return this.ve=t.ve,this.te=t.te,this.ae=t.ae,this.le=t.le,this},ee.prototype.tg=function(t,e,i,n){return this.ve=t,this.te=e,this.ae=i,this.le=n,this},ee.prototype.set=function(t){return this.ve=t.ve,this.te=t.te,this.ae=t.ae,this.le=t.le,this},ee.prototype.copy=function(){var t=new ee;return t.ve=this.ve,t.te=this.te,t.ae=this.ae,t.le=this.le,t},i=ee.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return\"Margin(\"+this.top+\",\"+this.right+\",\"+this.bottom+\",\"+this.left+\")\"},i.A=function(t){return t instanceof ee&&(this.ve===t.top&&this.te===t.right&&this.ae===t.bottom&&this.le===t.left)},i.Di=function(t,e,i,n){return this.ve===t&&this.te===e&&this.ae===i&&this.le===n},i.Qa=function(t){return We.w(this.ve,t.top)&&We.w(this.te,t.right)&&We.w(this.ae,t.bottom)&&We.w(this.le,t.left)},i.o=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ee.alloc=function(){var t=se.pop();return void 0===t?new ee:t},ee.free=function(t){se.push(t)},p.Object.defineProperties(ee.prototype,{top:{get:function(){return this.ve},set:function(t){this.ve=t}},right:{get:function(){return this.te},set:function(t){this.te=t}},bottom:{get:function(){return this.ae},set:function(t){this.ae=t}},left:{get:function(){return this.le},set:function(t){this.le=t}}}),ee.prototype.isReal=ee.prototype.o,ee.prototype.equalsApprox=ee.prototype.Qa,ee.prototype.equalTo=ee.prototype.Di,ee.prototype.equals=ee.prototype.A,ee.prototype.set=ee.prototype.set,ee.prototype.setTo=ee.prototype.tg;var oe=null,re=null,se=[];function ae(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}ee.className=\"Margin\",ee.parse=ie,ee.stringify=ne,ee.ZeroMargin=oe=new ee(0,0,0,0).ga(),ee.TwoMargin=re=new ee(2,2,2,2).ga(),ee.parse=ie,ee.stringify=ne,ae.prototype.set=function(t){return this.m11=t.m11,this.m12=t.m12,this.m21=t.m21,this.m22=t.m22,this.dx=t.dx,this.dy=t.dy,this},ae.prototype.copy=function(){var t=new ae;return t.m11=this.m11,t.m12=this.m12,t.m21=this.m21,t.m22=this.m22,t.dx=this.dx,t.dy=this.dy,t},i=ae.prototype,i.toString=function(){return\"Transform(\"+this.m11+\",\"+this.m12+\",\"+this.m21+\",\"+this.m22+\",\"+this.dx+\",\"+this.dy+\")\"},i.A=function(t){return t instanceof ae&&(this.m11===t.m11&&this.m12===t.m12&&this.m21===t.m21&&this.m22===t.m22&&this.dx===t.dx&&this.dy===t.dy)},i.ct=function(){return 0===this.dx&&0===this.dy&&1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22},i.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},i.multiply=function(t){var e=this.m12*t.m11+this.m22*t.m12,i=this.m11*t.m21+this.m21*t.m22,n=this.m12*t.m21+this.m22*t.m22,o=this.m11*t.dx+this.m21*t.dy+this.dx,r=this.m12*t.dx+this.m22*t.dy+this.dy;return this.m11=this.m11*t.m11+this.m21*t.m12,this.m12=e,this.m21=i,this.m22=n,this.dx=o,this.dy=r,this},i.nv=function(t){var e=1/(t.m11*t.m22-t.m12*t.m21),i=t.m22*e,n=-t.m12*e,o=-t.m21*e,r=t.m11*e,s=e*(t.m21*t.dy-t.m22*t.dx);return t=e*(t.m12*t.dx-t.m11*t.dy),e=this.m11*i+this.m21*n,i=this.m12*i+this.m22*n,n=this.m11*o+this.m21*r,o=this.m12*o+this.m22*r,this.dx=this.m11*s+this.m21*t+this.dx,this.dy=this.m12*s+this.m22*t+this.dy,this.m11=e,this.m12=i,this.m21=n,this.m22=o,this},i.bt=function(){var t=1/(this.m11*this.m22-this.m12*this.m21),e=-this.m12*t,i=-this.m21*t,n=this.m11*t,o=t*(this.m21*this.dy-this.m22*this.dx),r=t*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*t,this.m12=e,this.m21=i,this.m22=n,this.dx=o,this.dy=r,this},ae.prototype.rotate=function(t,e,i){if(360<=t?t-=360:0>t&&(t+=360),0===t)return this;if(this.translate(e,i),90===t){t=0;var n=1}else 180===t?(t=-1,n=0):270===t?(t=0,n=-1):(n=t*Math.PI/180,t=Math.cos(n),n=Math.sin(n));var o=this.m12*t+this.m22*n,r=this.m11*-n+this.m21*t,s=this.m12*-n+this.m22*t;return this.m11=this.m11*t+this.m21*n,this.m12=o,this.m21=r,this.m22=s,this.translate(-e,-i),this},i=ae.prototype,i.translate=function(t,e){return this.dx+=this.m11*t+this.m21*e,this.dy+=this.m12*t+this.m22*e,this},i.scale=function(t,e){return void 0===e&&(e=t),this.m11*=t,this.m12*=t,this.m21*=e,this.m22*=e,this},i.ta=function(t){var e=t.x,i=t.y;return t.h(e*this.m11+i*this.m21+this.dx,e*this.m12+i*this.m22+this.dy)},i.Ud=function(t){var e=1/(this.m11*this.m22-this.m12*this.m21),i=t.x,n=t.y;return t.h(i*this.m22*e+n*-this.m21*e+e*(this.m21*this.dy-this.m22*this.dx),i*-this.m12*e+n*this.m11*e+e*(this.m12*this.dx-this.m11*this.dy))},i.Uv=function(t){var e=t.F,i=t.G,n=e+t.$,o=i+t.Z,r=this.m11,s=this.m12,a=this.m21,l=this.m22,h=this.dx,u=this.dy,c=e*r+i*a+h,f=e*s+i*l+u,d=n*r+i*a+h,p=n*s+i*l+u;return i=e*r+o*a+h,e=e*s+o*l+u,r=n*r+o*a+h,n=n*s+o*l+u,o=Math.min(c,d),c=Math.max(c,d),d=Math.min(f,p),f=Math.max(f,p),o=Math.min(o,i),c=Math.max(c,i),d=Math.min(d,e),f=Math.max(f,e),o=Math.min(o,r),c=Math.max(c,r),d=Math.min(d,n),f=Math.max(f,n),t.F=o,t.G=d,t.$=c-o,t.Z=f-d,t},ae.alloc=function(){var t=qe.pop();return void 0===t?new ae:t},ae.free=function(t){qe.push(t)},ae.prototype.transformRect=ae.prototype.Uv,ae.prototype.invertedTransformPoint=ae.prototype.Ud,ae.prototype.transformPoint=ae.prototype.ta,ae.prototype.scale=ae.prototype.scale,ae.prototype.translate=ae.prototype.translate,ae.prototype.rotate=ae.prototype.rotate,ae.prototype.invert=ae.prototype.bt,ae.prototype.multiplyInverted=ae.prototype.nv,ae.prototype.multiply=ae.prototype.multiply,ae.prototype.reset=ae.prototype.reset,ae.prototype.isIdentity=ae.prototype.ct,ae.prototype.equals=ae.prototype.A,ae.prototype.set=ae.prototype.set;var le,he,ue,ce,fe,de,pe,ge,me,ve,ye,be,we,xe,ke,Me,Ce,Se,Ne,Pe,Te,Le,Oe,De,je,Ae,Be,ze,Fe,Ie,Ee,Re,Ve,_e,He,Ye,qe=[];function Ge(t,e,i,n){void 0===t?this.Nd=this.Md=this.G=this.F=0:(void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.offsetX=i,this.offsetY=n),this.v=!1}function Xe(t,e){return t.F=NaN,t.G=NaN,t.Md=e,t}function Ue(t){if(\"string\"===typeof t){if(t=t.trim(),\"None\"===t)return le;if(\"TopLeft\"===t)return he;if(\"Top\"===t||\"TopCenter\"===t||\"MiddleTop\"===t)return ue;if(\"TopRight\"===t)return ce;if(\"Left\"===t||\"LeftCenter\"===t||\"MiddleLeft\"===t)return fe;if(\"Center\"===t)return de;if(\"Right\"===t||\"RightCenter\"===t||\"MiddleRight\"===t)return pe;if(\"BottomLeft\"===t)return ge;if(\"Bottom\"===t||\"BottomCenter\"===t||\"MiddleBottom\"===t)return me;if(\"BottomRight\"===t)return ve;if(\"TopSide\"===t)return ye;if(\"LeftSide\"===t)return be;if(\"RightSide\"===t)return we;if(\"BottomSide\"===t)return xe;if(\"TopBottomSides\"===t)return ke;if(\"LeftRightSides\"===t)return Me;if(\"TopLeftSides\"===t)return Ce;if(\"TopRightSides\"===t)return Se;if(\"BottomLeftSides\"===t)return Ne;if(\"BottomRightSides\"===t)return Pe;if(\"NotTopSide\"===t)return Te;if(\"NotLeftSide\"===t)return Le;if(\"NotRightSide\"===t)return Oe;if(\"NotBottomSide\"===t)return De;if(\"AllSides\"===t)return je;if(\"Default\"===t)return Ae;t=t.split(\" \");for(var e=0,i=0;\"\"===t[e];)e++;var n=t[e++];void 0!==n&&0<n.length&&(i=parseFloat(n));for(var o=0;\"\"===t[e];)e++;n=t[e++],void 0!==n&&0<n.length&&(o=parseFloat(n));for(var r=0;\"\"===t[e];)e++;n=t[e++],void 0!==n&&0<n.length&&(r=parseFloat(n));for(var s=0;\"\"===t[e];)e++;return n=t[e++],void 0!==n&&0<n.length&&(s=parseFloat(n)),new Ge(i,o,r,s)}return new Ge}function Ke(t){return t.gb()?t.x.toString()+\" \"+t.y.toString()+\" \"+t.offsetX.toString()+\" \"+t.offsetY.toString():t.toString()}ae.className=\"Transform\",ae.xF=\"54a702f3e53909c447824c6706603faf4c\",Ge.prototype.assign=function(t){return this.F=t.F,this.G=t.G,this.Md=t.Md,this.Nd=t.Nd,this},Ge.prototype.tg=function(t,e,i,n){return this.F=t,this.G=e,this.Md=i,this.Nd=n,this},Ge.prototype.set=function(t){return this.F=t.F,this.G=t.G,this.Md=t.Md,this.Nd=t.Nd,this},Ge.prototype.copy=function(){var t=new Ge;return t.F=this.F,t.G=this.G,t.Md=this.Md,t.Nd=this.Nd,t},i=Ge.prototype,i.ga=function(){return this.v=!0,Object.freeze(this),this},i.I=function(){return Object.isFrozen(this)?this:this.copy().freeze()},i.freeze=function(){return this.v=!0,this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,this},i.toString=function(){return this.gb()?0===this.Md&&0===this.Nd?\"Spot(\"+this.x+\",\"+this.y+\")\":\"Spot(\"+this.x+\",\"+this.y+\",\"+this.offsetX+\",\"+this.offsetY+\")\":this.A(le)?\"None\":this.A(he)?\"TopLeft\":this.A(ue)?\"Top\":this.A(ce)?\"TopRight\":this.A(fe)?\"Left\":this.A(de)?\"Center\":this.A(pe)?\"Right\":this.A(ge)?\"BottomLeft\":this.A(me)?\"Bottom\":this.A(ve)?\"BottomRight\":this.A(ye)?\"TopSide\":this.A(be)?\"LeftSide\":this.A(we)?\"RightSide\":this.A(xe)?\"BottomSide\":this.A(ke)?\"TopBottomSides\":this.A(Me)?\"LeftRightSides\":this.A(Ce)?\"TopLeftSides\":this.A(Se)?\"TopRightSides\":this.A(Ne)?\"BottomLeftSides\":this.A(Pe)?\"BottomRightSides\":this.A(Te)?\"NotTopSide\":this.A(Le)?\"NotLeftSide\":this.A(Oe)?\"NotRightSide\":this.A(De)?\"NotBottomSide\":this.A(je)?\"AllSides\":this.A(Ae)?\"Default\":\"None\"},i.A=function(t){return t instanceof Ge&&((this.F===t.x||isNaN(this.F)&&isNaN(t.x))&&(this.G===t.y||isNaN(this.G)&&isNaN(t.y))&&this.Md===t.offsetX&&this.Nd===t.offsetY)},i.rv=function(){return new Ge(.5-(this.F-.5),.5-(this.G-.5),-this.Md,-this.Nd)},i.pf=function(t){if(!this.qf())return!1;if(!t.qf())if(t.A(Be))t=be;else if(t.A(ze))t=we;else if(t.A(Fe))t=ye;else{if(!t.A(Ie))return!1;t=xe}return t=t.offsetY,(this.Nd&t)===t},i.gb=function(){return!isNaN(this.x)&&!isNaN(this.y)},i.jc=function(){return isNaN(this.x)||isNaN(this.y)},i.qf=function(){return isNaN(this.x)&&isNaN(this.y)&&1===this.offsetX&&0!==this.offsetY},i.et=function(){return isNaN(this.x)&&isNaN(this.y)&&0===this.offsetX&&0===this.offsetY},i.Kb=function(){return isNaN(this.x)&&isNaN(this.y)&&-1===this.offsetX&&0===this.offsetY},Ge.alloc=function(){var t=$e.pop();return void 0===t?new Ge:t},Ge.free=function(t){$e.push(t)},p.Object.defineProperties(Ge.prototype,{x:{get:function(){return this.F},set:function(t){this.F=t}},y:{get:function(){return this.G},set:function(t){this.G=t}},offsetX:{get:function(){return this.Md},set:function(t){this.Md=t}},offsetY:{get:function(){return this.Nd},set:function(t){this.Nd=t}}}),Ge.prototype.isDefault=Ge.prototype.Kb,Ge.prototype.isNone=Ge.prototype.et,Ge.prototype.isSide=Ge.prototype.qf,Ge.prototype.isNoSpot=Ge.prototype.jc,Ge.prototype.isSpot=Ge.prototype.gb,Ge.prototype.includesSide=Ge.prototype.pf,Ge.prototype.opposite=Ge.prototype.rv,Ge.prototype.equals=Ge.prototype.A,Ge.prototype.set=Ge.prototype.set,Ge.prototype.setTo=Ge.prototype.tg;var $e=[];Ge.className=\"Spot\",Ge.parse=Ue,Ge.stringify=Ke,Ge.None=le=Xe(new Ge(0,0,0,0),0).ga(),Ge.Default=Ae=Xe(new Ge(0,0,-1,0),-1).ga(),Ge.TopLeft=he=new Ge(0,0,0,0).ga(),Ge.TopCenter=ue=new Ge(.5,0,0,0).ga(),Ge.TopRight=ce=new Ge(1,0,0,0).ga(),Ge.LeftCenter=fe=new Ge(0,.5,0,0).ga(),Ge.Center=de=new Ge(.5,.5,0,0).ga(),Ge.RightCenter=pe=new Ge(1,.5,0,0).ga(),Ge.BottomLeft=ge=new Ge(0,1,0,0).ga(),Ge.BottomCenter=me=new Ge(.5,1,0,0).ga(),Ge.BottomRight=ve=new Ge(1,1,0,0).ga(),Ge.MiddleTop=Ee=ue,Ge.MiddleLeft=Re=fe,Ge.MiddleRight=Ve=pe,Ge.MiddleBottom=_e=me,Ge.Top=Fe=ue,Ge.Left=Be=fe,Ge.Right=ze=pe,Ge.Bottom=Ie=me,Ge.TopSide=ye=Xe(new Ge(0,0,1,1),1).ga(),Ge.LeftSide=be=Xe(new Ge(0,0,1,2),1).ga(),Ge.RightSide=we=Xe(new Ge(0,0,1,4),1).ga(),Ge.BottomSide=xe=Xe(new Ge(0,0,1,8),1).ga(),Ge.TopBottomSides=ke=Xe(new Ge(0,0,1,9),1).ga(),Ge.LeftRightSides=Me=Xe(new Ge(0,0,1,6),1).ga(),Ge.TopLeftSides=Ce=Xe(new Ge(0,0,1,3),1).ga(),Ge.TopRightSides=Se=Xe(new Ge(0,0,1,5),1).ga(),Ge.BottomLeftSides=Ne=Xe(new Ge(0,0,1,10),1).ga(),Ge.BottomRightSides=Pe=Xe(new Ge(0,0,1,12),1).ga(),Ge.NotTopSide=Te=Xe(new Ge(0,0,1,14),1).ga(),Ge.NotLeftSide=Le=Xe(new Ge(0,0,1,13),1).ga(),Ge.NotRightSide=Oe=Xe(new Ge(0,0,1,11),1).ga(),Ge.NotBottomSide=De=Xe(new Ge(0,0,1,7),1).ga(),Ge.AllSides=je=Xe(new Ge(0,0,1,15),1).ga(),He=new Ge(.156,.156).ga(),Ye=new Ge(.844,.844).ga(),Ge.parse=Ue,Ge.stringify=Ke;var We={$z:\"7da71ca0ad381e90\",xg:(Math.sqrt(2)-1)/3*4,ew:null,sqrt:function(t){if(0>=t)return 0;var e=We.ew;if(null===e){e=[];for(var i=0;2e3>=i;i++)e[i]=Math.sqrt(i);We.ew=e}return 1>t?(i=1/t,2e3>=i?1/e[0|i]:Math.sqrt(t)):2e3>=t?e[0|t]:Math.sqrt(t)},w:function(t,e){return t-=e,.5>t&&-.5<t},ca:function(t,e){return t-=e,5e-8>t&&-5e-8<t},Ub:function(t,e,i,n,o,r,s){if(0>=o&&(o=1e-6),t<i)var a=t,l=i;else a=i,l=t;if(e<n)var h=e,u=n;else h=n,u=e;if(t===i)return h<=s&&s<=u&&t-o<=r&&r<=t+o;if(e===n)return a<=r&&r<=l&&e-o<=s&&s<=e+o;if(l+=o,a-=o,a<=r&&r<=l&&(u+=o,h-=o,h<=s&&s<=u))if(l-a>u-h){if(!(t-i>o||i-t>o))return!0;if(r=(n-e)/(i-t)*(r-t)+e,r-o<=s&&s<=r+o)return!0}else{if(!(e-n>o||n-e>o))return!0;if(s=(i-t)/(n-e)*(s-e)+t,s-o<=r&&r<=s+o)return!0}return!1},Js:function(t,e,i,n,o,r,s,a,l,h,u,c){if(We.Ub(t,e,s,a,c,i,n)&&We.Ub(t,e,s,a,c,o,r))return We.Ub(t,e,s,a,c,h,u);var f=(t+i)/2,d=(e+n)/2,p=(i+o)/2,g=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(f+p)/2,i=(d+g)/2,p=(p+o)/2,g=(g+r)/2;var m=(n+p)/2,v=(i+g)/2;return We.Js(t,e,f,d,n,i,m,v,l,h,u,c)||We.Js(m,v,p,g,o,r,s,a,l,h,u,c)},qy:function(t,e,i,n,o,r,s,a,l){var h=(i+o)/2,u=(n+r)/2;return l.h((((t+i)/2+h)/2+(h+(o+s)/2)/2)/2,(((e+n)/2+u)/2+(u+(r+a)/2)/2)/2),l},py:function(t,e,i,n,o,r,s,a){var l=(i+o)/2,h=(n+r)/2;return Mt(((t+i)/2+l)/2,((e+n)/2+h)/2,(l+(o+s)/2)/2,(h+(r+a)/2)/2)},Sl:function(t,e,i,n,o,r,s,a,l,h){if(We.Ub(t,e,s,a,l,i,n)&&We.Ub(t,e,s,a,l,o,r))$t(h,t,e,0,0),$t(h,s,a,0,0);else{var u=(t+i)/2,c=(e+n)/2,f=(i+o)/2,d=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(u+f)/2,i=(c+d)/2,f=(f+o)/2,d=(d+r)/2;var p=(n+f)/2,g=(i+d)/2;We.Sl(t,e,u,c,n,i,p,g,l,h),We.Sl(p,g,f,d,o,r,s,a,l,h)}return h},ze:function(t,e,i,n,o,r,s,a,l,h){if(We.Ub(t,e,s,a,l,i,n)&&We.Ub(t,e,s,a,l,o,r))0===h.length&&(h.push(t),h.push(e)),h.push(s),h.push(a);else{var u=(t+i)/2,c=(e+n)/2,f=(i+o)/2,d=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(u+f)/2,i=(c+d)/2,f=(f+o)/2,d=(d+r)/2;var p=(n+f)/2,g=(i+d)/2;We.ze(t,e,u,c,n,i,p,g,l,h),We.ze(p,g,f,d,o,r,s,a,l,h)}return h},uv:function(t,e,i,n,o,r,s,a,l,h){if(We.Ub(t,e,o,r,h,i,n))return We.Ub(t,e,o,r,h,a,l);var u=(t+i)/2,c=(e+n)/2;i=(i+o)/2,n=(n+r)/2;var f=(u+i)/2,d=(c+n)/2;return We.uv(t,e,u,c,f,d,s,a,l,h)||We.uv(f,d,i,n,o,r,s,a,l,h)},iA:function(t,e,i,n,o,r,s){return s.h(((t+i)/2+(i+o)/2)/2,((e+n)/2+(n+r)/2)/2),s},tv:function(t,e,i,n,o,r,s,a){if(We.Ub(t,e,o,r,s,i,n))$t(a,t,e,0,0),$t(a,o,r,0,0);else{var l=(t+i)/2,h=(e+n)/2;i=(i+o)/2,n=(n+r)/2;var u=(l+i)/2,c=(h+n)/2;We.tv(t,e,l,h,u,c,s,a),We.tv(u,c,i,n,o,r,s,a)}return a},jq:function(t,e,i,n,o,r,s,a){if(We.Ub(t,e,o,r,s,i,n))0===a.length&&(a.push(t),a.push(e)),a.push(o),a.push(r);else{var l=(t+i)/2,h=(e+n)/2;i=(i+o)/2,n=(n+r)/2;var u=(l+i)/2,c=(h+n)/2;We.jq(t,e,l,h,u,c,s,a),We.jq(u,c,i,n,o,r,s,a)}return a},Mp:function(t,e,i,n,o,r,s,a,l,h,u,c,f,d){if(We.Ub(t,e,s,a,f,i,n)&&We.Ub(t,e,s,a,f,o,r)){var p=(t-s)*(h-c)-(e-a)*(l-u);if(0===p)return!1;if(f=((t*a-e*s)*(l-u)-(t-s)*(l*c-h*u))/p,p=((t*a-e*s)*(h-c)-(e-a)*(l*c-h*u))/p,(l>u?l-u:u-l)<(h>c?h-c:c-h)){if(e<a?s=e:(s=a,a=e),p<s||p>a)return!1}else if(t<s?a=t:(a=s,s=t),f<a||f>s)return!1;return d.h(f,p),!0}p=(t+i)/2;var g=(e+n)/2;i=(i+o)/2,n=(n+r)/2,o=(o+s)/2,r=(r+a)/2;var m=(p+i)/2,v=(g+n)/2;i=(i+o)/2,n=(n+r)/2;var y=(m+i)/2,b=(v+n)/2,w=(u-l)*(u-l)+(c-h)*(c-h),x=!1;return We.Mp(t,e,p,g,m,v,y,b,l,h,u,c,f,d)&&(t=(d.x-l)*(d.x-l)+(d.y-h)*(d.y-h),t<w&&(w=t,x=!0)),t=d.x,e=d.y,We.Mp(y,b,i,n,o,r,s,a,l,h,u,c,f,d)&&((d.x-l)*(d.x-l)+(d.y-h)*(d.y-h)<w?x=!0:d.h(t,e)),x},Np:function(t,e,i,n,o,r,s,a,l,h,u,c,f){var d=0;if(We.Ub(t,e,s,a,f,i,n)&&We.Ub(t,e,s,a,f,o,r)){if(f=(t-s)*(h-c)-(e-a)*(l-u),0===f)return d;var p=((t*a-e*s)*(l-u)-(t-s)*(l*c-h*u))/f,g=((t*a-e*s)*(h-c)-(e-a)*(l*c-h*u))/f;if(p>=u)return d;if((l>u?l-u:u-l)<(h>c?h-c:c-h)){if(e<a?(t=e,e=a):t=a,g<t||g>e)return d}else if(t<s?(e=t,t=s):e=s,p<e||p>t)return d;0<f?d++:0>f&&d--}else{p=(t+i)/2,g=(e+n)/2;var m=(i+o)/2,v=(n+r)/2;o=(o+s)/2,r=(r+a)/2,n=(p+m)/2,i=(g+v)/2,m=(m+o)/2,v=(v+r)/2;var y=(n+m)/2,b=(i+v)/2;d+=We.Np(t,e,p,g,n,i,y,b,l,h,u,c,f),d+=We.Np(y,b,m,v,o,r,s,a,l,h,u,c,f)}return d},Qi:function(t,e,i,n,o,r,s){return We.ca(t,i)?(e<n?(i=e,e=n):i=n,r<i?(s.h(t,i),!1):r>e?(s.h(t,e),!1):(s.h(t,r),!0)):We.ca(e,n)?(t<i?(n=t,t=i):n=i,o<n?(s.h(n,e),!1):o>t?(s.h(t,e),!1):(s.h(o,e),!0)):(o=((t-o)*(t-i)+(e-r)*(e-n))/((i-t)*(i-t)+(n-e)*(n-e)),-5e-6>o?(s.h(t,e),!1):1.000005<o?(s.h(i,n),!1):(s.h(t+o*(i-t),e+o*(n-e)),!0))},Fe:function(t,e,i,n,o,r,s,a,l){return We.w(t,i)&&We.w(e,n)?(l.h(t,e),!1):We.ca(o,s)?We.ca(t,i)?(We.Qi(t,e,i,n,o,r,l),!1):We.Qi(t,e,i,n,o,(n-e)/(i-t)*(o-t)+e,l):(a=(a-r)/(s-o),We.ca(t,i)?(i=a*(t-o)+r,e<n?(o=e,e=n):o=n,i<o?(l.h(t,o),!1):i>e?(l.h(t,e),!1):(l.h(t,i),!0)):(s=(n-e)/(i-t),We.ca(a,s)?(We.Qi(t,e,i,n,o,r,l),!1):(o=(s*t-a*o+r-e)/(s-a),We.ca(s,0)?(t<i?(n=t,t=i):n=i,o<n?(l.h(n,e),!1):o>t?(l.h(t,e),!1):(l.h(o,e),!0)):We.Qi(t,e,i,n,o,s*(o-t)+e,l))))},fA:function(t,e,i,n,o){return We.Fe(i.x,i.y,n.x,n.y,t.x,t.y,e.x,e.y,o)},eA:function(t,e,i,n,o,r,s,a,l,h){function u(i,n){var o=(i-t)*(i-t)+(n-e)*(n-e);o<c&&(c=o,l.h(i,n))}var c=1/0;u(l.x,l.y);var f=0,d=0,p=0,g=0;if(o<s?(f=o,d=s):(f=s,d=o),r<a?(p=o,g=s):(p=s,g=o),f=(d-f)/2+h,h=(g-p)/2+h,o=(o+s)/2,r=(r+a)/2,0===f||0===h)return l;if(.5>(i>t?i-t:t-i)){if(f=1-(i-o)*(i-o)/(f*f),0>f)return l;f=Math.sqrt(f),n=-h*f+r,u(i,h*f+r),u(i,n)}else{if(i=(n-e)/(i-t),n=1/(f*f)+i*i/(h*h),a=2*i*(e-i*t)/(h*h)-2*i*r/(h*h)-2*o/(f*f),f=a*a-4*n*(2*i*t*r/(h*h)-2*e*r/(h*h)+r*r/(h*h)+o*o/(f*f)-1+(e-i*t)*(e-i*t)/(h*h)),0>f)return l;f=Math.sqrt(f),h=(-a+f)/(2*n),u(h,i*h-i*t+e),f=(-a-f)/(2*n),u(f,i*f-i*t+e)}return l},Tc:function(t,e,i,n,o,r,s,a,l){var h=1e21,u=t,c=e;if(We.Fe(t,e,t,n,o,r,s,a,l)){var f=(l.x-o)*(l.x-o)+(l.y-r)*(l.y-r);f<h&&(h=f,u=l.x,c=l.y)}return We.Fe(i,e,i,n,o,r,s,a,l)&&(f=(l.x-o)*(l.x-o)+(l.y-r)*(l.y-r),f<h&&(h=f,u=l.x,c=l.y)),We.Fe(t,e,i,e,o,r,s,a,l)&&(e=(l.x-o)*(l.x-o)+(l.y-r)*(l.y-r),e<h&&(h=e,u=l.x,c=l.y)),We.Fe(t,n,i,n,o,r,s,a,l)&&(t=(l.x-o)*(l.x-o)+(l.y-r)*(l.y-r),t<h&&(h=t,u=l.x,c=l.y)),l.h(u,c),1e21>h},dA:function(t,e,i,n,o,r,s,a,l){return i=t-i,s=o-s,0===i||0===s?0===i?(e=(r-a)/s,a=t,o=e*a+(r-e*o)):(r=(e-n)/i,a=o,o=r*a+(e-r*t)):(n=(e-n)/i,a=(r-a)/s,t=e-n*t,a=(r-a*o-t)/(n-a),o=n*a+t),l.h(a,o),l},$s:function(t,e,i){var n=e.x,o=e.y,r=i.x,s=i.y,a=t.left,l=t.right,h=t.top,u=t.bottom;return n===r?(o<s?(r=o,o=s):r=s,a<=n&&n<=l&&r<=u&&o>=h):o===s?(n<r?(s=n,n=r):s=r,h<=o&&o<=u&&s<=l&&n>=a):!!(t.ea(e)||t.ea(i)||We.Zs(a,h,l,h,n,o,r,s)||We.Zs(l,h,l,u,n,o,r,s)||We.Zs(l,u,a,u,n,o,r,s)||We.Zs(a,u,a,h,n,o,r,s))},Zs:function(t,e,i,n,o,r,s,a){return 0>=We.Ms(t,e,i,n,o,r)*We.Ms(t,e,i,n,s,a)&&0>=We.Ms(o,r,s,a,t,e)*We.Ms(o,r,s,a,i,n)},Ms:function(t,e,i,n,o,r){return i-=t,n-=e,t=o-t,e=r-e,r=t*n-e*i,0===r&&(r=t*i+e*n,0<r&&(r=(t-i)*i+(e-n)*n,0>r&&(r=0))),0>r?-1:0<r?1:0},gq:function(t){return 0>t&&(t+=360),360<=t&&(t-=360),t},ax:function(t,e,i,n,o,r){var s=Math.PI;r||(n*=s/180,o*=s/180);var a=n>o?-1:1;r=[];var l=s/2,h=n;if(n=Math.min(2*s,Math.abs(o-n)),1e-5>n)return l=h+a*Math.min(n,l),a=t+i*Math.cos(h),h=e+i*Math.sin(h),t+=i*Math.cos(l),e+=i*Math.sin(l),i=(a+t)/2,l=(h+e)/2,r.push([a,h,i,l,i,l,t,e]),r;for(;1e-5<n;)o=h+a*Math.min(n,l),r.push(We.yy(i,h,o,t,e)),n-=Math.abs(o-h),h=o;return r},yy:function(t,e,i,n,o){var r=(i-e)/2,s=t*Math.cos(r),a=t*Math.sin(r),l=-a,h=s*s+l*l,u=h+s*s+l*a;return h=4/3*(Math.sqrt(2*h*u)-u)/(s*a-l*s),a=s-h*l,s=l+h*s,l=-s,h=r+e,r=Math.cos(h),h=Math.sin(h),[n+t*Math.cos(e),o+t*Math.sin(e),n+a*r-s*h,o+a*h+s*r,n+a*r-l*h,o+a*h+l*r,n+t*Math.cos(i),o+t*Math.sin(i)]},Tp:function(t,e,i,n,o,r,s){i=Math.floor((t-i)/o)*o+i,n=Math.floor((e-n)/r)*r+n;var a=i;return i+o-t<o/2&&(a=i+o),t=n,n+r-e<r/2&&(t=n+r),s.h(a,t),s},lx:function(t,e){var i,n=Math.max(t,e);t=Math.min(t,e);do{e=n%t,n=i=t,t=e}while(0<e);return i},Dy:function(t,e,i,n){var o=0>i,r=0>n;if(t<e)var s=1,a=0;else s=0,a=1;var l=0===s?t:e,h=0===s?i:n;return(0===s?o:r)&&(h=-h),s=a,i=0===s?i:n,(0===s?o:r)&&(i=-i),We.Ey(l,0===s?t:e,h,i,0,0)},Ey:function(t,e,i,n,o,r){if(0<n)if(0<i){o=t*t,r=e*e,t*=i;var s=e*n,a=-r+s,l=-r+Math.sqrt(t*t+s*s);e=a;for(var h=0;9999999999>h;++h){if(e=.5*(a+l),e===a||e===l)break;var u=t/(e+o),c=s/(e+r);if(u=u*u+c*c-1,0<u)a=e;else{if(!(0>u))break;l=e}}i=o*i/(e+o)-i,n=r*n/(e+r)-n,i=Math.sqrt(i*i+n*n)}else i=Math.abs(n-e);else n=t*t-e*e,r=t*i,r<n?(n=r/n,r=e*Math.sqrt(Math.abs(1-n*n)),i=t*n-i,i=Math.sqrt(i*i+r*r)):i=Math.abs(i-t);return i},Je:new J,Bm:new J};function Je(t){st(this),this.v=!1,void 0===t&&(t=ui),this.va=t,this.Bc=this.mc=this.bd=this.ad=0,this.gj=new nt,this.hr=this.gj.Ba,this.Qq=(new _t).freeze(),this.ra=!0,this.Nm=this.xk=null,this.Om=NaN,this.bf=he,this.cf=ve,this.cl=this.el=NaN,this.Df=Qr}function Ze(t,e){return t.type===ai&&e.type===ui&&!!(1===e.figures.count&&(e=e.figures.N(0),1===e.segments.count&&We.w(t.startX,e.startX)&&We.w(t.startY,e.startY)&&(e=e.segments.N(0),e.type===mi&&We.w(t.endX,e.endX)&&We.w(t.endY,e.endY))))}function Qe(t){return t.toString()}function ti(t,e){function i(){return g>=w-1||null!==l[g+1].match(/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/)}function n(){return g++,l[g]}function o(){var t=new mt(parseFloat(n()),parseFloat(n()));return m===m.toLowerCase()&&(t.x=b.x+t.x,t.y=b.y+t.y),t}function r(){return b=o()}function s(){return y=o()}function a(){var t=v.toLowerCase();return\"c\"!==t&&\"s\"!==t&&\"q\"!==t&&\"t\"!==t?b:new mt(2*b.x-y.x,2*b.y-y.y)}void 0===e&&(e=!1),t=t.replace(/,/gm,\" \"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,\"$1 $2\"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,\"$1 $2\"),t=t.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^\\s])/gm,\"$1 $2\"),t=t.replace(/([^\\s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,\"$1 $2\"),t=t.replace(/([0-9])([+\\-])/gm,\"$1 $2\"),t=t.replace(/([Aa](\\s+[0-9]+){3})\\s+([01])\\s*([01])/gm,\"$1 $3 $4 \"),t=t.replace(/[\\s\\r\\t\\n]+/gm,\" \"),t=t.replace(/^\\s+|\\s+$/g,\"\");var l=t.split(\" \");for(t=0;t<l.length;t++){var h=l[t];if(null!==h.match(/(\\.[0-9]*)(\\.)/gm)){for(var u=j(),c=\"\",f=!1,d=0;d<h.length;d++){var p=h[d];\".\"!==p||f?\".\"===p?(u.push(c),c=\".\"):c+=p:(f=!0,c+=p)}for(u.push(c),l.splice(t,1),h=0;h<u.length;h++)l.splice(t+h,0,u[h]);t+=u.length-1,A(u)}}var g=-1,m=\"\",v=\"\";u=new mt(0,0);var y=new mt(0,0),b=new mt(0,0),w=l.length;for(t=ru(null),c=h=!1,f=!0,d=null;!(g>=w-1);)if(v=m,m=n(),\"\"!==m)switch(m.toUpperCase()){case\"X\":f=!0,c=h=!1;break;case\"M\":for(d=r(),null===t.ec||!0===f?(tu(t,d.x,d.y,h,!c),f=!1):t.moveTo(d.x,d.y),u=b;!i();)d=r(),t.lineTo(d.x,d.y);break;case\"L\":for(;!i();)d=r(),t.lineTo(d.x,d.y);break;case\"H\":for(;!i();)b=new mt((m===m.toLowerCase()?b.x:0)+parseFloat(n()),b.y),t.lineTo(b.x,b.y);break;case\"V\":for(;!i();)b=new mt(b.x,(m===m.toLowerCase()?b.y:0)+parseFloat(n())),t.lineTo(b.x,b.y);break;case\"C\":for(;!i();){d=o(),p=s();var x=r();iu(t,d.x,d.y,p.x,p.y,x.x,x.y)}break;case\"S\":for(;!i();)d=a(),p=s(),x=r(),iu(t,d.x,d.y,p.x,p.y,x.x,x.y);break;case\"Q\":for(;!i();)d=s(),p=r(),nu(t,d.x,d.y,p.x,p.y);break;case\"T\":for(;!i();)y=d=a(),p=r(),nu(t,d.x,d.y,p.x,p.y);break;case\"B\":for(;!i();){d=parseFloat(n()),p=parseFloat(n()),x=parseFloat(n());var k=parseFloat(n()),M=parseFloat(n()),C=M,S=!1;i()||(C=parseFloat(n()),i()||(S=0!==parseFloat(n()))),m===m.toLowerCase()&&(x+=b.x,k+=b.y),t.arcTo(d,p,x,k,M,C,S)}break;case\"A\":for(;!i();)d=Math.abs(parseFloat(n())),p=Math.abs(parseFloat(n())),x=parseFloat(n()),k=!!parseFloat(n()),M=!!parseFloat(n()),C=r(),ou(t,d,p,x,k,M,C.x,C.y);break;case\"Z\":eu(t),b=u;break;case\"F\":for(d=\"\",p=1;l[g+p];)if(null!==l[g+p].match(/[Uu]/))p++;else{if(null!==l[g+p].match(/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/)){d=l[g+p];break}p++}d.match(/[Mm]/)?h=!0:0<t.ec.segments.length&&(t.ec.isFilled=!0);break;case\"U\":for(d=\"\",p=1;l[g+p];)if(null!==l[g+p].match(/[Ff]/))p++;else{if(null!==l[g+p].match(/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/)){d=l[g+p];break}p++}d.match(/[Mm]/)?c=!0:t.qq(!1)}if(u=t.Us,su=t,e)for(e=u.figures.iterator;e.next();)e.value.isFilled=!0;return u}function ei(t,e){for(var i=t.length,n=mt.alloc(),o=0;o<i;o++){var r=t[o];n.x=r[0],n.y=r[1],e.ta(n),r[0]=n.x,r[1]=n.y,n.x=r[2],n.y=r[3],e.ta(n),r[2]=n.x,r[3]=n.y,n.x=r[4],n.y=r[5],e.ta(n),r[4]=n.x,r[5]=n.y,n.x=r[6],n.y=r[7],e.ta(n),r[6]=n.x,r[7]=n.y}mt.free(n)}function ii(t,e,i){switch(t.type){case ai:case li:case hi:i?e.h(t.ad,t.bd,0,0):$t(e,t.ad,t.bd,0,0),$t(e,t.mc,t.Bc,0,0);break;case ui:var n=t.figures;t=n.j,n=n.length;for(var o=0;o<n;o++){var r=t[o];i&&0===o?e.h(r.startX,r.startY,0,0):$t(e,r.startX,r.startY,0,0);for(var s=r.segments.j,a=s.length,l=r.startX,h=r.startY,u=0;u<a;u++){var c=s[u];switch(c.type){case mi:case gi:l=c.endX,h=c.endY,$t(e,l,h,0,0);break;case vi:We.Sl(l,h,c.point1X,c.point1Y,c.point2X,c.point2Y,c.endX,c.endY,.5,e),l=c.endX,h=c.endY;break;case yi:We.tv(l,h,c.point1X,c.point1Y,c.endX,c.endY,.5,e),l=c.endX,h=c.endY;break;case bi:case wi:var f=c.type===bi?di(c,r):pi(c,r,l,h),d=f.length;if(0===d){l=c.centerX,h=c.centerY,$t(e,l,h,0,0);break}c=null;for(var p=0;p<d;p++)c=f[p],We.Sl(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],.5,e);null!==c&&(l=c[6],h=c[7]);break;default:k(\"Unknown Segment type: \"+c.type)}}}break;default:k(\"Unknown Geometry type: \"+t.type)}}function ni(t,e,i,n,o,r,s,a){if(We.Ub(o,r,s,a,.05,t,e))return NaN;var l=(t-i)*(r-a);if(0===l)return 0;var h=((t*n-e*i)*(o-s)-(t-i)*(o*a-r*s))/l;if(e=(t*n-e*i)*(r-a)/l,h>=t)return 0;if((o>s?o-s:s-o)<(r>a?r-a:a-r)){if(r<a){if(e<r||e>a)return 0}else if(e<a||e>r)return 0}else if(o<s){if(h<o||h>s)return 0}else if(h<s||h>o)return 0;return 0<l?1:-1}function oi(t,e,i,n){t=t.figures.j;for(var o=t.length,r=0;r<o;r++)if(t[r].ea(e,i,n))return!0;return!1}function ri(t){if(null===t.xk){var e=t.xk=[],i=t.Nm=[],n=[],o=[];if(t.type===ai)n.push(t.startX),n.push(t.startY),n.push(t.endX),n.push(t.endY),e.push(n),o.push(Math.sqrt((t.startX-t.endX)*(t.startX-t.endX)+(t.startY-t.endY)*(t.startY-t.endY))),i.push(o);else if(t.type===li)n.push(t.startX),n.push(t.startY),n.push(t.endX),n.push(t.startY),n.push(t.endX),n.push(t.endY),n.push(t.startX),n.push(t.endY),n.push(t.startX),n.push(t.startY),e.push(n),o.push(Math.abs(t.startX-t.endX)),o.push(Math.abs(t.startY-t.endY)),o.push(Math.abs(t.startX-t.endX)),o.push(Math.abs(t.startY-t.endY)),i.push(o);else if(t.type===hi){var r=new ci;r.startX=t.endX,r.startY=(t.startY+t.endY)/2;var s=new fi(bi);if(s.startAngle=0,s.sweepAngle=360,s.centerX=(t.startX+t.endX)/2,s.centerY=(t.startY+t.endY)/2,s.radiusX=Math.abs(t.startX-t.endX)/2,s.radiusY=Math.abs(t.startY-t.endY)/2,r.add(s),t=di(s,r),o=t.length,0===o)n.push(s.centerX),n.push(s.centerY);else{s=r.startX,r=r.startY;for(var a=0;a<o;a++){var l=t[a];We.ze(s,r,l[2],l[3],l[4],l[5],l[6],l[7],.5,n),s=l[6],r=l[7]}}e.push(n),i.push(si(n))}else for(t=t.figures.iterator;t.next();){o=t.value,n=[],n.push(o.startX),n.push(o.startY),s=o.startX,r=o.startY,a=s,l=r;for(var h=o.segments.j,u=h.length,c=0;c<u;c++){var f=h[c];switch(f.type){case gi:4<=n.length&&(e.push(n),i.push(si(n))),n=[],n.push(f.endX),n.push(f.endY),s=f.endX,r=f.endY,a=s,l=r;break;case mi:n.push(f.endX),n.push(f.endY),s=f.endX,r=f.endY;break;case vi:We.ze(s,r,f.point1X,f.point1Y,f.point2X,f.point2Y,f.endX,f.endY,.5,n),s=f.endX,r=f.endY;break;case yi:We.jq(s,r,f.point1X,f.point1Y,f.endX,f.endY,.5,n),s=f.endX,r=f.endY;break;case bi:var d=di(f,o),p=d.length;if(0===p){n.push(f.centerX),n.push(f.centerY),s=f.centerX,r=f.centerY;break}for(var g=0;g<p;g++){var m=d[g];We.ze(s,r,m[2],m[3],m[4],m[5],m[6],m[7],.5,n),s=m[6],r=m[7]}break;case wi:if(d=pi(f,o,s,r),p=d.length,0===p){n.push(f.centerX),n.push(f.centerY),s=f.centerX,r=f.centerY;break}for(g=0;g<p;g++)m=d[g],We.ze(s,r,m[2],m[3],m[4],m[5],m[6],m[7],.5,n),s=m[6],r=m[7];break;default:k(\"Segment not of valid type: \"+f.type)}f.isClosed&&(n.push(a),n.push(l))}4<=n.length&&(e.push(n),i.push(si(n)))}}}function si(t){for(var e=[],i=0,n=0,o=t.length,r=0;r<o;r+=2){var s=t[r],a=t[r+1];0!==r&&e.push(Math.sqrt(kt(i,n,s,a))),i=s,n=a}return e}We.za=We.$z,Je.prototype.copy=function(){var t=new Je;t.va=this.va,t.ad=this.ad,t.bd=this.bd,t.mc=this.mc,t.Bc=this.Bc;for(var e=this.gj.j,i=e.length,n=t.gj,o=0;o<i;o++){var r=e[o].copy();n.add(r)}return t.hr=this.hr,t.Qq.assign(this.Qq),t.ra=this.ra,t.xk=this.xk,t.Nm=this.Nm,t.Om=this.Om,t.bf=this.bf.I(),t.cf=this.cf.I(),t.el=this.el,t.cl=this.cl,t.Df=this.Df,t},i=Je.prototype,i.ga=function(){return this.freeze(),Object.freeze(this),this},i.freeze=function(){this.v=!0;var t=this.figures;t.freeze(),t=t.j;for(var e=t.length,i=0;i<e;i++)t[i].freeze();return this},i.ha=function(){Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1;var t=this.figures;t.ha(),t=t.j;for(var e=t.length,i=0;i<e;i++)t[i].ha();return this},i.Qa=function(t){if(!(t instanceof Je))return!1;if(this.type!==t.type)return this.type===ai&&t.type===ui?Ze(this,t):t.type===ai&&this.type===ui&&Ze(t,this);if(this.type===ui){var e=this.figures.j;t=t.figures.j;var i=e.length;if(i!==t.length)return!1;for(var n=0;n<i;n++)if(!e[n].Qa(t[n]))return!1;return!0}return We.w(this.startX,t.startX)&&We.w(this.startY,t.startY)&&We.w(this.endX,t.endX)&&We.w(this.endY,t.endY)},i.fb=function(t){t.classType===Je&&(this.type=t)},i.toString=function(t){switch(void 0===t&&(t=-1),this.type){case ai:return 0>t?\"M\"+this.startX.toString()+\" \"+this.startY.toString()+\"L\"+this.endX.toString()+\" \"+this.endY.toString():\"M\"+this.startX.toFixed(t)+\" \"+this.startY.toFixed(t)+\"L\"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);case li:var e=new _t(this.startX,this.startY,0,0);return e.Vv(this.endX,this.endY,0,0),0>t?\"M\"+e.x.toString()+\" \"+e.y.toString()+\"H\"+e.right.toString()+\"V\"+e.bottom.toString()+\"H\"+e.left.toString()+\"z\":\"M\"+e.x.toFixed(t)+\" \"+e.y.toFixed(t)+\"H\"+e.right.toFixed(t)+\"V\"+e.bottom.toFixed(t)+\"H\"+e.left.toFixed(t)+\"z\";case hi:if(e=new _t(this.startX,this.startY,0,0),e.Vv(this.endX,this.endY,0,0),0>t)return t=e.left.toString()+\" \"+(e.y+e.height/2).toString(),\"M\"+t+\"A\"+(e.width/2).toString()+\" \"+(e.height/2).toString()+\" 0 0 1 \"+e.right.toString()+\" \"+(e.y+e.height/2).toString()+\"A\"+(e.width/2).toString()+\" \"+(e.height/2).toString()+\" 0 0 1 \"+t;var i=e.left.toFixed(t)+\" \"+(e.y+e.height/2).toFixed(t);return\"M\"+i+\"A\"+(e.width/2).toFixed(t)+\" \"+(e.height/2).toFixed(t)+\" 0 0 1 \"+e.right.toFixed(t)+\" \"+(e.y+e.height/2).toFixed(t)+\"A\"+(e.width/2).toFixed(t)+\" \"+(e.height/2).toFixed(t)+\" 0 0 1 \"+i;case ui:e=\"\",i=this.figures.j;for(var n=i.length,o=0;o<n;o++){var r=i[o];0<o&&(e+=\" x \"),r.isFilled&&(e+=\"F \"),e+=r.toString(t)}return e;default:return this.type.toString()}},i.lv=function(){if(this.ra||this.hr!==this.figures.Ba)return!0;for(var t=this.figures.j,e=t.length,i=0;i<e;i++)if(t[i].lv())return!0;return!1},Je.prototype.computeBounds=function(){this.ra=!1,this.Nm=this.xk=null,this.Om=NaN,this.hr=this.figures.Ba;for(var t=this.figures.j,e=t.length,i=0;i<e;i++){var n=t[i];n.ra=!1;var o=n.segments;n.ss=o.Ba,n=o.j,o=n.length;for(var r=0;r<o;r++){var s=n[r];s.ra=!1,s.Ke=null}}t=this.Qq,t.ha(),isNaN(this.el)||isNaN(this.cl)?t.h(0,0,0,0):t.h(0,0,this.el,this.cl),ii(this,t,!1),$t(t,0,0,0,0),t.freeze()},Je.prototype.$w=function(){var t=new _t;return ii(this,t,!0),t},Je.prototype.normalize=function(){this.v&&M(this);var t=this.$w();return this.offset(-t.x,-t.y),new mt(-t.x,-t.y)},Je.prototype.offset=function(t,e){return this.v&&M(this),this.transform(1,0,0,1,t,e),this},Je.prototype.scale=function(t,e){return this.v&&M(this),this.transform(t,0,0,e,0,0),this},Je.prototype.rotate=function(t,e,i){this.v&&M(this),void 0===e&&(e=0),void 0===i&&(i=0);var n=ae.alloc();return n.reset(),n.rotate(t,e,i),this.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),ae.free(n),this},i=Je.prototype,i.transform=function(t,e,i,n,o,r){switch(this.type){case ai:case li:case hi:var s=this.ad,a=this.bd;this.ad=s*t+a*i+o,this.bd=s*e+a*n+r,s=this.mc,a=this.Bc,this.mc=s*t+a*i+o,this.Bc=s*e+a*n+r;break;case ui:for(var l=this.figures.j,h=l.length,u=0;u<h;u++){var c=l[u];s=c.startX,a=c.startY,c.startX=s*t+a*i+o,c.startY=s*e+a*n+r,c=c.segments.j;for(var f=c.length,d=0;d<f;d++){var p=c[d];switch(p.type){case mi:case gi:s=p.endX,a=p.endY,p.endX=s*t+a*i+o,p.endY=s*e+a*n+r;break;case vi:s=p.point1X,a=p.point1Y,p.point1X=s*t+a*i+o,p.point1Y=s*e+a*n+r,s=p.point2X,a=p.point2Y,p.point2X=s*t+a*i+o,p.point2Y=s*e+a*n+r,s=p.endX,a=p.endY,p.endX=s*t+a*i+o,p.endY=s*e+a*n+r;break;case yi:s=p.point1X,a=p.point1Y,p.point1X=s*t+a*i+o,p.point1Y=s*e+a*n+r,s=p.endX,a=p.endY,p.endX=s*t+a*i+o,p.endY=s*e+a*n+r;break;case bi:s=p.centerX,a=p.centerY,p.centerX=s*t+a*i+o,p.centerY=s*e+a*n+r,0!==e&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),p.startAngle+=s),0>t&&(p.startAngle=180-p.startAngle,p.sweepAngle=-p.sweepAngle),0>n&&(p.startAngle=-p.startAngle,p.sweepAngle=-p.sweepAngle),p.radiusX*=Math.sqrt(t*t+i*i),void 0!==p.radiusY&&(p.radiusY*=Math.sqrt(e*e+n*n));break;case wi:s=p.endX,a=p.endY,p.endX=s*t+a*i+o,p.endY=s*e+a*n+r,0!==e&&(s=180*Math.atan2(e,t)/Math.PI,0>s&&(s+=360),p.xAxisRotation+=s),0>t&&(p.xAxisRotation=180-p.xAxisRotation,p.isClockwiseArc=!p.isClockwiseArc),0>n&&(p.xAxisRotation=-p.xAxisRotation,p.isClockwiseArc=!p.isClockwiseArc),p.radiusX*=Math.sqrt(t*t+i*i),p.radiusY*=Math.sqrt(e*e+n*n);break;default:k(\"Unknown Segment type: \"+p.type)}}}}return this.ra=!0,this},i.ea=function(t,e,i,n){var o=t.x;t=t.y;for(var r,s,a,l,h,u=this.bounds.x-20,c=0,f=this.figures.j,d=f.length,p=0;p<d;p++){var g=f[p];if(g.isFilled){if(i&&g.ea(o,t,e))return!0;var m=g.segments;r=g.startX,s=g.startY;for(var v=r,y=s,b=m.j,w=0;w<=m.length;w++){var x=void 0;if(w!==m.length){x=b[w];var M=x.type;l=x.endX,h=x.endY}else M=mi,l=v,h=y;switch(M){case gi:if(v=ni(o,t,u,t,r,s,v,y),isNaN(v))return!0;c+=v,v=l,y=h;break;case mi:if(r=ni(o,t,u,t,r,s,l,h),isNaN(r))return!0;c+=r;break;case vi:a=We.Np(r,s,x.point1X,x.point1Y,x.point2X,x.point2Y,l,h,u,t,o,t,.5),c+=a;break;case yi:a=We.Np(r,s,(r+2*x.point1X)/3,(s+2*x.point1Y)/3,(2*x.point1X+l)/3,(2*x.point1Y+h)/3,l,h,u,t,o,t,.5),c+=a;break;case bi:case wi:M=x.type===bi?di(x,g):pi(x,g,r,s);var C=M.length;if(0===C){if(r=ni(o,t,u,t,r,s,x.centerX,x.centerY),isNaN(r))return!0;c+=r;break}x=null;for(var S=0;S<C;S++){if(x=M[S],0===S){if(a=ni(o,t,u,t,r,s,x[0],x[1]),isNaN(a))return!0;c+=a}a=We.Np(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],u,t,o,t,.5),c+=a}null!==x&&(l=x[6],h=x[7]);break;default:k(\"Unknown Segment type: \"+x.type)}r=l,s=h}if(0!==c)return!0;c=0}else if(g.ea(o,t,n?e:e+2))return!0}return 0!==c},i.cv=function(t,e){if(0>t?t=0:1<t&&(t=1),void 0===e&&(e=new mt),this.type===ai)return e.h(this.startX+t*(this.endX-this.startX),this.startY+t*(this.endY-this.startY)),e;for(var i=this.flattenedSegments,n=this.flattenedLengths,o=i.length,r=this.flattenedTotalLength*t,s=0,a=0;a<o;a++){var l=n[a],h=l.length;for(t=0;t<h;t++){var u=l[t];if(s+u>=r)return n=(r-s)/u,i=i[a],o=i[2*t],a=i[2*t+1],e.h(o+(i[2*t+2]-o)*n,a+(i[2*t+3]-a)*n),e;s+=u}}return e.h(NaN,NaN),e},i.mx=function(t){if(this.type===ai){var e=this.startX,i=this.startY,n=this.endX,o=this.endY;if(e!==n||i!==o){var r=t.x;if(t=t.y,e===n){if(i<o){var s=i;n=o}else s=o,n=i;return t<=s?s===i?0:1:t>=n?n===i?0:1:Math.abs(t-i)/(n-s)}return i===o?(e<n?s=e:(s=n,n=e),r<=s?s===e?0:1:r>=n?n===e?0:1:Math.abs(r-e)/(n-s)):((r-e)*(r-e)+(t-i)*(t-i))/((n-e)*(n-e)+(o-i)*(o-i))}}else{if(this.type!==li){e=this.flattenedSegments,i=this.flattenedLengths,r=this.flattenedTotalLength,n=mt.alloc(),o=1/0,m=s=0,v=e.length;for(var a=y=0,l=0;l<v;l++)for(var h=e[l],u=i[l],c=h.length,f=0;f<c;f+=2){var d=h[f],p=h[f+1];if(0!==f){We.Qi(y,a,d,p,t.x,t.y,n);var g=(n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y);g<o&&(o=g,s=m,s+=Math.sqrt((n.x-y)*(n.x-y)+(n.y-a)*(n.y-a))),m+=u[(f-2)/2]}y=d,a=p}return mt.free(n),t=s/r,0>t?0:1<t?1:t}s=this.startX;var m=this.startY,v=this.endX;if(o=this.endY,s!==v||m!==o){e=v-s,i=o-m,r=2*e+2*i,n=t.x,t=t.y,n=Math.min(Math.max(n,s),v),t=Math.min(Math.max(t,m),o),s=Math.abs(n-s),v=Math.abs(n-v),m=Math.abs(t-m),o=Math.abs(t-o);var y=Math.min(s,v,m,o);if(y===m)return n/r;if(y===v)return(e+t)/r;if(y===o)return(2*e+i-n)/r;if(y===s)return(2*e+2*i-t)/r}}return 0},i.add=function(t){return this.gj.add(t),this},i.xm=function(t,e,i,n,o,r,s,a){return this.v&&M(this),this.bf=new Ge(t,e,o,r).freeze(),this.cf=new Ge(i,n,s,a).freeze(),this},p.Object.defineProperties(Je.prototype,{flattenedSegments:{get:function(){return ri(this),this.xk}},flattenedLengths:{get:function(){return ri(this),this.Nm}},flattenedTotalLength:{get:function(){var t=this.Om;if(isNaN(t)){if(this.type===ai){t=Math.abs(this.endX-this.startX);var e=Math.abs(this.endY-this.startY);t=Math.sqrt(t*t+e*e)}else if(this.type===li)t=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{e=this.flattenedLengths;for(var i=e.length,n=t=0;n<i;n++)for(var o=e[n],r=o.length,s=0;s<r;s++)t+=o[s]}this.Om=t}return t}},type:{get:function(){return this.va},set:function(t){this.va!==t&&(this.v&&M(this,t),this.va=t,this.ra=!0)}},startX:{get:function(){return this.ad},set:function(t){this.ad!==t&&(this.v&&M(this,t),this.ad=t,this.ra=!0)}},startY:{get:function(){return this.bd},set:function(t){this.bd!==t&&(this.v&&M(this,t),this.bd=t,this.ra=!0)}},endX:{get:function(){return this.mc},set:function(t){this.mc!==t&&(this.v&&M(this,t),this.mc=t,this.ra=!0)}},endY:{get:function(){return this.Bc},set:function(t){this.Bc!==t&&(this.v&&M(this,t),this.Bc=t,this.ra=!0)}},figures:{get:function(){return this.gj},set:function(t){this.gj!==t&&(this.v&&M(this,t),this.gj=t,this.ra=!0)}},spot1:{get:function(){return this.bf},set:function(t){this.v&&M(this,t),this.bf=t.I()}},spot2:{get:function(){return this.cf},set:function(t){this.v&&M(this,t),this.cf=t.I()}},defaultStretch:{get:function(){return this.Df},set:function(t){this.v&&M(this,t),this.Df=t}},bounds:{get:function(){return this.lv()&&this.computeBounds(),this.Qq}}}),Je.prototype.setSpots=Je.prototype.xm,Je.prototype.add=Je.prototype.add,Je.prototype.getFractionForPoint=Je.prototype.mx,Je.prototype.getPointAlongPath=Je.prototype.cv,Je.prototype.transform=Je.prototype.transform,Je.prototype.rotate=Je.prototype.rotate,Je.prototype.scale=Je.prototype.scale,Je.prototype.offset=Je.prototype.offset,Je.prototype.normalize=Je.prototype.normalize,Je.prototype.computeBoundsWithoutOrigin=Je.prototype.$w,Je.prototype.equalsApprox=Je.prototype.Qa;var ai=new K(Je,\"Line\",0),li=new K(Je,\"Rectangle\",1),hi=new K(Je,\"Ellipse\",2),ui=new K(Je,\"Path\",3);function ci(t,e,i,n){st(this),this.v=!1,void 0===i&&(i=!0),this.yr=i,void 0===n&&(n=!0),this.Cr=n,this.ad=void 0!==t?t:0,this.bd=void 0!==e?e:0,this.Bl=new nt,this.ss=this.Bl.Ba,this.ra=!0}function fi(t,e,i,n,o,r,s,a){st(this),this.v=!1,void 0===t&&(t=mi),this.va=t,this.mc=void 0!==e?e:0,this.Bc=void 0!==i?i:0,void 0===n&&(n=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0),t===wi?(t=r%360,0>t&&(t+=360),this.se=t,this.mi=0,this.ni=Math.max(n,0),this.Zg=Math.max(o,0),this.il=\"boolean\"===typeof s&&!!s,this.Ek=!!a):(this.se=n,this.mi=o,t===bi&&(r=Math.max(r,0)),this.ni=r,\"number\"===typeof s?(t===bi&&(s=Math.max(s,0)),this.Zg=s):this.Zg=0,this.Ek=this.il=!1),this.lj=!1,this.ra=!0,this.Ke=null}function di(t,e){if(null!==t.Ke&&!1===e.ra)return t.Ke;var i=t.radiusX,n=t.radiusY;if(void 0===n&&(n=i),0===i||0===n)return t.Ke=[],t.Ke;e=t.se;var o=t.mi,r=We.ax(0,0,i<n?i:n,t.startAngle,t.startAngle+t.sweepAngle,!1);if(i!==n){var s=ae.alloc();s.reset(),i<n?s.scale(1,n/i):s.scale(i/n,1),ei(r,s),ae.free(s)}for(i=r.length,n=0;n<i;n++)s=r[n],s[0]+=e,s[1]+=o,s[2]+=e,s[3]+=o,s[4]+=e,s[5]+=o,s[6]+=e,s[7]+=o;return t.Ke=r,t.Ke}function pi(t,e,i,n){function o(t,e,i,n){return(t*n<e*i?-1:1)*Math.acos((t*i+e*n)/(Math.sqrt(t*t+e*e)*Math.sqrt(i*i+n*n)))}if(null!==t.Ke&&!1===e.ra)return t.Ke;e=t.ni;var r=t.Zg;0===e&&(e=1e-4),0===r&&(r=1e-4);var s=Math.PI/180*t.se,a=t.il,l=t.Ek,h=t.mc,u=t.Bc,c=Math.cos(s),f=Math.sin(s),d=c*(i-h)/2+f*(n-u)/2;s=-f*(i-h)/2+c*(n-u)/2;var p=d*d/(e*e)+s*s/(r*r);return 1<p&&(e*=Math.sqrt(p),r*=Math.sqrt(p)),p=(a===l?-1:1)*Math.sqrt((e*e*r*r-e*e*s*s-r*r*d*d)/(e*e*s*s+r*r*d*d)),isNaN(p)&&(p=0),a=p*e*s/r,p=p*-r*d/e,isNaN(a)&&(a=0),isNaN(p)&&(p=0),i=(i+h)/2+c*a-f*p,n=(n+u)/2+f*a+c*p,u=o(1,0,(d-a)/e,(s-p)/r),c=(d-a)/e,h=(s-p)/r,d=(-d-a)/e,a=(-s-p)/r,s=o(c,h,d,a),d=(c*d+h*a)/(Math.sqrt(c*c+h*h)*Math.sqrt(d*d+a*a)),-1>=d?s=Math.PI:1<=d&&(s=0),!l&&0<s&&(s-=2*Math.PI),l&&0>s&&(s+=2*Math.PI),l=e>r?1:e/r,d=e>r?r/e:1,e=We.ax(0,0,e>r?e:r,u,u+s,!0),r=ae.alloc(),r.reset(),r.translate(i,n),r.rotate(t.se,0,0),r.scale(l,d),ei(e,r),ae.free(r),t.Ke=e,t.Ke}Je.className=\"Geometry\",Je.stringify=Qe,Je.fillPath=function(t){t=t.split(/[Xx]/);for(var e=t.length,i=\"\",n=0;n<e;n++){var o=t[n];i=null!==o.match(/[Ff]/)?0===n?i+o:i+\"X\"+(\" \"===o[0]?\"\":\" \")+o:i+(0===n?\"\":\"X \")+\"F\"+(\" \"===o[0]?\"\":\" \")+o}return i},Je.parse=ti,Je.Line=ai,Je.Rectangle=li,Je.Ellipse=hi,Je.Path=ui,ci.prototype.copy=function(){var t=new ci;t.yr=this.yr,t.Cr=this.Cr,t.ad=this.ad,t.bd=this.bd;for(var e=this.Bl.j,i=e.length,n=t.Bl,o=0;o<i;o++){var r=e[o].copy();n.add(r)}return t.ss=this.ss,t.ra=this.ra,t},i=ci.prototype,i.Qa=function(t){if(!(t instanceof ci&&We.w(this.startX,t.startX)&&We.w(this.startY,t.startY)))return!1;var e=this.segments.j;t=t.segments.j;var i=e.length;if(i!==t.length)return!1;for(var n=0;n<i;n++)if(!e[n].Qa(t[n]))return!1;return!0},i.toString=function(t){void 0===t&&(t=-1);for(var e=0>t?\"M\"+this.startX.toString()+\" \"+this.startY.toString():\"M\"+this.startX.toFixed(t)+\" \"+this.startY.toFixed(t),i=this.segments.j,n=i.length,o=0;o<n;o++)e+=\" \"+i[o].toString(t);return e},i.freeze=function(){this.v=!0;var t=this.segments;t.freeze();var e=t.j;t=t.length;for(var i=0;i<t;i++)e[i].freeze();return this},i.ha=function(){this.v=!1;var t=this.segments;t.ha(),t=t.j;for(var e=t.length,i=0;i<e;i++)t[i].ha();return this},i.lv=function(){if(this.ra)return!0;var t=this.segments;if(this.ss!==t.Ba)return!0;t=t.j;for(var e=t.length,i=0;i<e;i++)if(t[i].ra)return!0;return!1},i.add=function(t){return this.Bl.add(t),this},i.ea=function(t,e,i){for(var n=this.startX,o=this.startY,r=n,s=o,a=this.segments.j,l=a.length,h=0;h<l;h++){var u=a[h];switch(u.type){case gi:r=u.endX,s=u.endY,n=u.endX,o=u.endY;break;case mi:if(We.Ub(n,o,u.endX,u.endY,i,t,e))return!0;n=u.endX,o=u.endY;break;case vi:if(We.Js(n,o,u.point1X,u.point1Y,u.point2X,u.point2Y,u.endX,u.endY,.5,t,e,i))return!0;n=u.endX,o=u.endY;break;case yi:if(We.uv(n,o,u.point1X,u.point1Y,u.endX,u.endY,.5,t,e,i))return!0;n=u.endX,o=u.endY;break;case bi:case wi:var c=u.type===bi?di(u,this):pi(u,this,n,o),f=c.length;if(0===f){if(We.Ub(n,o,u.centerX,u.centerY,i,t,e))return!0;n=u.centerX,o=u.centerY;break}for(var d=null,p=0;p<f;p++)if(d=c[p],0===p&&We.Ub(n,o,d[0],d[1],i,t,e)||We.Js(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],.5,t,e,i))return!0;null!==d&&(n=d[6],o=d[7]);break;default:k(\"Unknown Segment type: \"+u.type)}if(u.isClosed&&(n!==r||o!==s)&&We.Ub(n,o,r,s,i,t,e))return!0}return!1},p.Object.defineProperties(ci.prototype,{isFilled:{get:function(){return this.yr},set:function(t){this.v&&M(this,t),this.yr=t}},isShadowed:{get:function(){return this.Cr},set:function(t){this.v&&M(this,t),this.Cr=t}},startX:{get:function(){return this.ad},set:function(t){this.v&&M(this,t),this.ad=t,this.ra=!0}},startY:{get:function(){return this.bd},set:function(t){this.v&&M(this,t),this.bd=t,this.ra=!0}},segments:{get:function(){return this.Bl},set:function(t){this.v&&M(this,t),this.Bl=t,this.ra=!0}}}),ci.prototype.add=ci.prototype.add,ci.prototype.equalsApprox=ci.prototype.Qa,ci.className=\"PathFigure\",fi.prototype.copy=function(){var t=new fi;return t.va=this.va,t.mc=this.mc,t.Bc=this.Bc,t.se=this.se,t.mi=this.mi,t.ni=this.ni,t.Zg=this.Zg,t.il=this.il,t.Ek=this.Ek,t.lj=this.lj,t.ra=this.ra,t},i=fi.prototype,i.Qa=function(t){if(!(t instanceof fi)||this.type!==t.type||this.isClosed!==t.isClosed)return!1;switch(this.type){case gi:case mi:return We.w(this.endX,t.endX)&&We.w(this.endY,t.endY);case vi:return We.w(this.endX,t.endX)&&We.w(this.endY,t.endY)&&We.w(this.point1X,t.point1X)&&We.w(this.point1Y,t.point1Y)&&We.w(this.point2X,t.point2X)&&We.w(this.point2Y,t.point2Y);case yi:return We.w(this.endX,t.endX)&&We.w(this.endY,t.endY)&&We.w(this.point1X,t.point1X)&&We.w(this.point1Y,t.point1Y);case bi:return We.w(this.startAngle,t.startAngle)&&We.w(this.sweepAngle,t.sweepAngle)&&We.w(this.centerX,t.centerX)&&We.w(this.centerY,t.centerY)&&We.w(this.radiusX,t.radiusX)&&We.w(this.radiusY,t.radiusY);case wi:return this.isClockwiseArc===t.isClockwiseArc&&this.isLargeArc===t.isLargeArc&&We.w(this.xAxisRotation,t.xAxisRotation)&&We.w(this.endX,t.endX)&&We.w(this.endY,t.endY)&&We.w(this.radiusX,t.radiusX)&&We.w(this.radiusY,t.radiusY);default:return!1}},i.fb=function(t){t.classType===fi&&(this.type=t)},i.toString=function(t){switch(void 0===t&&(t=-1),this.type){case gi:t=0>t?\"M\"+this.endX.toString()+\" \"+this.endY.toString():\"M\"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case mi:t=0>t?\"L\"+this.endX.toString()+\" \"+this.endY.toString():\"L\"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case vi:t=0>t?\"C\"+this.point1X.toString()+\" \"+this.point1Y.toString()+\" \"+this.point2X.toString()+\" \"+this.point2Y.toString()+\" \"+this.endX.toString()+\" \"+this.endY.toString():\"C\"+this.point1X.toFixed(t)+\" \"+this.point1Y.toFixed(t)+\" \"+this.point2X.toFixed(t)+\" \"+this.point2Y.toFixed(t)+\" \"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case yi:t=0>t?\"Q\"+this.point1X.toString()+\" \"+this.point1Y.toString()+\" \"+this.endX.toString()+\" \"+this.endY.toString():\"Q\"+this.point1X.toFixed(t)+\" \"+this.point1Y.toFixed(t)+\" \"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;case bi:t=0>t?\"B\"+this.startAngle.toString()+\" \"+this.sweepAngle.toString()+\" \"+this.centerX.toString()+\" \"+this.centerY.toString()+\" \"+this.radiusX.toString()+\" \"+this.radiusY.toString():\"B\"+this.startAngle.toFixed(t)+\" \"+this.sweepAngle.toFixed(t)+\" \"+this.centerX.toFixed(t)+\" \"+this.centerY.toFixed(t)+\" \"+this.radiusX.toFixed(t)+\" \"+this.radiusY.toFixed(t);break;case wi:t=0>t?\"A\"+this.radiusX.toString()+\" \"+this.radiusY.toString()+\" \"+this.xAxisRotation.toString()+\" \"+(this.isLargeArc?1:0)+\" \"+(this.isClockwiseArc?1:0)+\" \"+this.endX.toString()+\" \"+this.endY.toString():\"A\"+this.radiusX.toFixed(t)+\" \"+this.radiusY.toFixed(t)+\" \"+this.xAxisRotation.toFixed(t)+\" \"+(this.isLargeArc?1:0)+\" \"+(this.isClockwiseArc?1:0)+\" \"+this.endX.toFixed(t)+\" \"+this.endY.toFixed(t);break;default:t=this.type.toString()}return t+(this.lj?\"z\":\"\")},i.freeze=function(){return this.v=!0,this},i.ha=function(){return this.v=!1,this},i.close=function(){return this.lj=!0,this},p.Object.defineProperties(fi.prototype,{isClosed:{get:function(){return this.lj},set:function(t){this.lj!==t&&(this.lj=t,this.ra=!0)}},type:{get:function(){return this.va},set:function(t){this.v&&M(this,t),this.va=t,this.ra=!0}},endX:{get:function(){return this.mc},set:function(t){this.v&&M(this,t),this.mc=t,this.ra=!0}},endY:{get:function(){return this.Bc},set:function(t){this.v&&M(this,t),this.Bc=t,this.ra=!0}},point1X:{get:function(){return this.se},set:function(t){this.v&&M(this,t),this.se=t,this.ra=!0}},point1Y:{get:function(){return this.mi},set:function(t){this.v&&M(this,t),this.mi=t,this.ra=!0}},point2X:{get:function(){return this.ni},set:function(t){this.v&&M(this,t),this.ni=t,this.ra=!0}},point2Y:{get:function(){return this.Zg},set:function(t){this.v&&M(this,t),this.Zg=t,this.ra=!0}},centerX:{get:function(){return this.se},set:function(t){this.v&&M(this,t),this.se=t,this.ra=!0}},centerY:{get:function(){return this.mi},set:function(t){this.v&&M(this,t),this.mi=t,this.ra=!0}},radiusX:{get:function(){return this.ni},set:function(t){0>t&&C(t,\">= zero\",fi,\"radiusX\"),this.v&&M(this,t),this.ni=t,this.ra=!0}},radiusY:{get:function(){return this.Zg},set:function(t){0>t&&C(t,\">= zero\",fi,\"radiusY\"),this.v&&M(this,t),this.Zg=t,this.ra=!0}},startAngle:{get:function(){return this.mc},set:function(t){this.mc!==t&&(this.v&&M(this,t),t%=360,0>t&&(t+=360),this.mc=t,this.ra=!0)}},sweepAngle:{get:function(){return this.Bc},set:function(t){this.v&&M(this,t),360<t&&(t=360),-360>t&&(t=-360),this.Bc=t,this.ra=!0}},isClockwiseArc:{get:function(){return this.Ek},set:function(t){this.v&&M(this,t),this.Ek=t,this.ra=!0}},isLargeArc:{get:function(){return this.il},set:function(t){this.v&&M(this,t),this.il=t,this.ra=!0}},xAxisRotation:{get:function(){return this.se},set:function(t){t%=360,0>t&&(t+=360),this.v&&M(this,t),this.se=t,this.ra=!0}}}),fi.prototype.equalsApprox=fi.prototype.Qa;var gi=new K(fi,\"Move\",0),mi=new K(fi,\"Line\",1),vi=new K(fi,\"Bezier\",2),yi=new K(fi,\"QuadraticBezier\",3),bi=new K(fi,\"Arc\",4),wi=new K(fi,\"SvgArc\",4);function xi(){this.C=null,this.Cu=new mt(0,0).freeze(),this.Tt=new mt(0,0).freeze(),this.Jq=this.Rr=0,this.Kq=1,this.Gr=\"\",this.Es=this.ar=!1,this.$q=this.Mq=0,this.Ag=this.nr=this.Ar=!1,this.gr=null,this.Cs=0,this.Qd=this.Bs=null}function ki(){this.C=null,this.Ua=\"\",this.es=this.zs=null}function Mi(){this.Wm=Si,this.Dj=this.Qr=\"\",this.zo=this.Ao=this.Fo=this.Go=this.Eo=this.C=this.$b=null}fi.className=\"PathSegment\",fi.Move=gi,fi.Line=mi,fi.Bezier=vi,fi.QuadraticBezier=yi,fi.Arc=bi,fi.SvgArc=wi,xi.prototype.copy=function(){var t=new xi;return this.clone(t)},xi.prototype.clone=function(t){return t.C=this.C,t.Cu.assign(this.viewPoint),t.Tt.assign(this.documentPoint),t.Rr=this.Rr,t.Jq=this.Jq,t.Kq=this.Kq,t.Gr=this.Gr,t.ar=this.ar,t.Es=this.Es,t.Mq=this.Mq,t.$q=this.$q,t.Ar=this.Ar,t.nr=this.nr,t.Ag=this.Ag,t.gr=this.gr,t.Cs=this.Cs,t.Bs=this.Bs,t.Qd=this.Qd,t},xi.prototype.toString=function(){var t=\"^\";return 0!==this.modifiers&&(t+=\"M:\"+this.modifiers),0!==this.button&&(t+=\"B:\"+this.button),\"\"!==this.key&&(t+=\"K:\"+this.key),0!==this.clickCount&&(t+=\"C:\"+this.clickCount),0!==this.delta&&(t+=\"D:\"+this.delta),this.handled&&(t+=\"h\"),this.bubbles&&(t+=\"b\"),null!==this.documentPoint&&(t+=\"@\"+this.documentPoint.toString()),t},xi.prototype.Wp=function(t,e){var i=this.diagram;return null===i||or(i,this.event,t,e),e},xi.prototype.dz=function(t,e){var i=this.diagram;return null===i||(or(i,this.event,t,e),e.assign(i.yt(e))),e},p.Object.defineProperties(xi.prototype,{diagram:{get:function(){return this.C},set:function(t){this.C=t}},viewPoint:{get:function(){return this.Cu},set:function(t){this.Cu.assign(t)}},documentPoint:{get:function(){return this.Tt},set:function(t){this.Tt.assign(t)}},modifiers:{get:function(){return this.Rr},set:function(t){this.Rr=t}},button:{get:function(){return this.Jq},set:function(t){if(this.Jq=t,null===this.event)switch(t){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Kq},set:function(t){this.Kq=t}},key:{get:function(){return this.Gr},set:function(t){this.Gr=t}},down:{get:function(){return this.ar},set:function(t){this.ar=t}},up:{get:function(){return this.Es},set:function(t){this.Es=t}},clickCount:{get:function(){return this.Mq},set:function(t){this.Mq=t}},delta:{get:function(){return this.$q},set:function(t){this.$q=t}},isMultiTouch:{get:function(){return this.Ar},set:function(t){this.Ar=t}},handled:{get:function(){return this.nr},set:function(t){this.nr=t}},bubbles:{get:function(){return this.Ag},set:function(t){this.Ag=t}},event:{get:function(){return this.gr},set:function(t){this.gr=t}},isTouchEvent:{get:function(){var t=v.TouchEvent,e=this.event;return!!(t&&e instanceof t)||(t=v.PointerEvent)&&e instanceof t&&(\"touch\"===e.pointerType||\"pen\"===e.pointerType)}},timestamp:{get:function(){return this.Cs},set:function(t){this.Cs=t}},targetDiagram:{get:function(){return this.Bs},set:function(t){this.Bs=t}},targetObject:{get:function(){return this.Qd},set:function(t){this.Qd=t}},control:{get:function(){return 0!==(1&this.modifiers)},set:function(t){this.modifiers=t?1|this.modifiers:-2&this.modifiers}},shift:{get:function(){return 0!==(4&this.modifiers)},set:function(t){this.modifiers=t?4|this.modifiers:-5&this.modifiers}},alt:{get:function(){return 0!==(2&this.modifiers)},set:function(t){this.modifiers=t?2|this.modifiers:-3&this.modifiers}},meta:{get:function(){return 0!==(8&this.modifiers)},set:function(t){this.modifiers=t?8|this.modifiers:-9&this.modifiers}},left:{get:function(){var t=this.event;return null===t||\"mousedown\"!==t.type&&\"mouseup\"!==t.type&&\"pointerdown\"!==t.type&&\"pointerup\"!==t.type?0!==(1&this.buttons):0===this.button},set:function(t){this.buttons=t?1|this.buttons:-2&this.buttons}},right:{get:function(){var t=this.event;return null===t||\"mousedown\"!==t.type&&\"mouseup\"!==t.type&&\"pointerdown\"!==t.type&&\"pointerup\"!==t.type?0!==(2&this.buttons):2===this.button},set:function(t){this.buttons=t?2|this.buttons:-3&this.buttons}},middle:{get:function(){var t=this.event;return null===t||\"mousedown\"!==t.type&&\"mouseup\"!==t.type&&\"pointerdown\"!==t.type&&\"pointerup\"!==t.type?0!==(4&this.buttons):1===this.button},set:function(t){this.buttons=t?4|this.buttons:-5&this.buttons}}}),xi.prototype.getMultiTouchDocumentPoint=xi.prototype.dz,xi.prototype.getMultiTouchViewPoint=xi.prototype.Wp,xi.className=\"InputEvent\",ki.prototype.copy=function(){var t=new ki;return t.C=this.C,t.Ua=this.Ua,t.zs=this.zs,t.es=this.es,t},ki.prototype.toString=function(){var t=\"*\"+this.name;return null!==this.subject&&(t+=\":\"+this.subject.toString()),null!==this.parameter&&(t+=\"(\"+this.parameter.toString()+\")\"),t},p.Object.defineProperties(ki.prototype,{diagram:{get:function(){return this.C},set:function(t){this.C=t}},name:{get:function(){return this.Ua},set:function(t){this.Ua=t}},subject:{get:function(){return this.zs},set:function(t){this.zs=t}},parameter:{get:function(){return this.es},set:function(t){this.es=t}}}),ki.className=\"DiagramEvent\",Mi.prototype.clear=function(){this.zo=this.Ao=this.Fo=this.Go=this.Eo=this.C=this.$b=null},Mi.prototype.copy=function(){var t=new Mi;t.Wm=this.Wm,t.Qr=this.Qr,t.Dj=this.Dj,t.$b=this.$b,t.C=this.C,t.Eo=this.Eo;var e=this.Go;return t.Go=P(e)&&\"function\"===typeof e.I?e.I():e,e=this.Fo,t.Fo=P(e)&&\"function\"===typeof e.I?e.I():e,e=this.Ao,t.Ao=P(e)&&\"function\"===typeof e.I?e.I():e,e=this.zo,t.zo=P(e)&&\"function\"===typeof e.I?e.I():e,t},Mi.prototype.fb=function(t){t.classType===Mi&&(this.change=t)},Mi.prototype.toString=function(){var t=\"\";return t=this.change===Ci?t+\"* \":this.change===Si?t+(null!==this.model?\"!m\":\"!d\"):t+(null!==this.model?\"!m\":\"!d\")+this.change,this.propertyName&&\"string\"===typeof this.propertyName&&(t+=\" \"+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(t+=\" \"+this.modelChange),t+=\": \",this.change===Ci?null!==this.oldValue&&(t+=\" \"+this.oldValue):(null!==this.object&&(t+=z(this.object)),null!==this.oldValue&&(t+=\" old: \"+z(this.oldValue)),null!==this.oldParam&&(t+=\" \"+this.oldParam),null!==this.newValue&&(t+=\" new: \"+z(this.newValue)),null!==this.newParam&&(t+=\" \"+this.newParam)),t},Mi.prototype.J=function(t){return t?this.oldValue:this.newValue},Mi.prototype.fz=function(t){return t?this.oldParam:this.newParam},Mi.prototype.canUndo=function(){return null!==this.model||null!==this.diagram},Mi.prototype.undo=function(){this.canUndo()&&(null!==this.model?this.model.Rj(this,!0):null!==this.diagram&&this.diagram.Rj(this,!0))},Mi.prototype.canRedo=function(){return null!==this.model||null!==this.diagram},Mi.prototype.redo=function(){this.canRedo()&&(null!==this.model?this.model.Rj(this,!1):null!==this.diagram&&this.diagram.Rj(this,!1))},p.Object.defineProperties(Mi.prototype,{model:{get:function(){return this.$b},set:function(t){this.$b=t}},diagram:{get:function(){return this.C},set:function(t){this.C=t}},change:{get:function(){return this.Wm},set:function(t){this.Wm=t}},modelChange:{get:function(){return this.Qr},set:function(t){this.Qr=t}},propertyName:{get:function(){return this.Dj},set:function(t){this.Dj=t}},isTransactionFinished:{get:function(){return this.Wm===Ci&&(\"CommittedTransaction\"===this.Dj||\"FinishedUndo\"===this.Dj||\"FinishedRedo\"===this.Dj)}},object:{get:function(){return this.Eo},set:function(t){this.Eo=t}},oldValue:{get:function(){return this.Go},set:function(t){this.Go=t}},oldParam:{get:function(){return this.Fo},set:function(t){this.Fo=t}},newValue:{get:function(){return this.Ao},set:function(t){this.Ao=t}},newParam:{get:function(){return this.zo},set:function(t){this.zo=t}}}),Mi.prototype.redo=Mi.prototype.redo,Mi.prototype.canRedo=Mi.prototype.canRedo,Mi.prototype.undo=Mi.prototype.undo,Mi.prototype.canUndo=Mi.prototype.canUndo,Mi.prototype.getParam=Mi.prototype.fz,Mi.prototype.getValue=Mi.prototype.J,Mi.prototype.clear=Mi.prototype.clear;var Ci=new K(Mi,\"Transaction\",-1),Si=new K(Mi,\"Property\",0),Ni=new K(Mi,\"Insert\",1),Pi=new K(Mi,\"Remove\",2);function Ti(){this.u=(new nt).freeze(),this.Ua=\"\",this.l=!1}function Li(){this.ju=new rt,this.Dc=!1,this.K=(new nt).freeze(),this.fe=-1,this.u=999,this.ie=!1,this.Yq=null,this.yi=0,this.l=!1,this.pe=(new nt).freeze(),this.sl=new nt,this.$t=!0,this.du=!1}function Oi(t,e,i){if(t.isUndoingRedoing)return!1;t.checksTransactionLevel&&1>t.transactionLevel&&S(\"Ending transaction without having started a transaction: \"+i);var n=1===t.transactionLevel;n&&e&&t.yb(\"CommittingTransaction\",i,t.currentTransaction);var o=0;if(0<t.transactionLevel&&(t.yi--,t.isEnabled)){var r=t.pe.count;0<r&&(\"\"===i&&(i=t.pe.N(0)),t.pe.ha(),t.pe.mb(r-1),t.pe.freeze()),r=t.sl.count,0<r&&(o=t.sl.N(r-1),t.sl.mb(r-1))}if(r=t.currentTransaction,n){if(e){if(t.du=!1,t.isEnabled&&null!==r){for(e=r,e.isComplete=!0,e.name=i,n=t.history,n.ha(),o=n.count-1;o>t.historyIndex;o--)r=n.N(o),null!==r&&r.clear(),n.mb(o),t.du=!0;o=t.maxHistoryLength,0<=o&&(0===o?n.clear():n.count>=o&&(r=n.N(0),null!==r&&r.clear(),n.mb(0),t.fe--)),0!==o&&(n.add(e),t.fe++),n.freeze(),r=e}t.yb(\"CommittedTransaction\",i,r)}else{t.ie=!0;try{t.isEnabled&&null!==r&&(r.isComplete=!0,r.undo())}finally{t.yb(\"RolledBackTransaction\",i,r),t.ie=!1}null!==r&&r.clear()}return t.Yq=null,!0}if(t.isEnabled&&!e&&null!==r){for(t=o,i=r.changes,e=i.count-1;e>=t;e--)n=i.N(e),null!==n&&n.undo(),i.ha(),i.mb(e);i.freeze()}return!1}function Di(){st(this),this.C=hs,this.Ua=\"\",this.Dc=!0,this.Vb=!1,this.dw=null,this.ey=new xi,this.Hs=-1}function ji(t,e,i){if(e.handled=!1,null===t||t.rg()){var n=0;e.left?n=1===e.clickCount?1:2===e.clickCount?2:1:e.right&&1===e.clickCount&&(n=3);var o=\"ObjectSingleClicked\";if(null!==t){switch(n){case 1:o=\"ObjectSingleClicked\";break;case 2:o=\"ObjectDoubleClicked\";break;case 3:o=\"ObjectContextClicked\"}0!==n&&i.aa(o,t)}else{switch(n){case 1:o=\"BackgroundSingleClicked\";break;case 2:o=\"BackgroundDoubleClicked\";break;case 3:o=\"BackgroundContextClicked\"}0!==n&&i.aa(o)}if(null!==t)for(;null!==t;){switch(i=null,n){case 1:i=t.click;break;case 2:i=t.doubleClick?t.doubleClick:t.click;break;case 3:i=t.contextClick}if(null!==i&&(i(e,t),e.handled))break;t=t.panel}else{switch(t=null,n){case 1:t=i.click;break;case 2:t=i.doubleClick?i.doubleClick:i.click;break;case 3:t=i.contextClick}null!==t&&t(e)}}}function Ai(){Di.call(this),this.name=\"ToolManager\",this.Kc=new nt,this.Vc=new nt,this.wg=new nt,this.ba=this.La=850,this.u=new It(2,2).ga(),this.Wb=5e3,this.Ma=Fi,this.K=Ri,this.Xq=this.l=null,this.Kj=-1}function Bi(t,e){t.standardMouseOver(),t.isBeyondDragSize()&&t.standardWaitAfter(t.isActive?t.holdDelay:t.hoverDelay,e.lastInput)}function zi(t,e,i,n){null!==i&&(i.name=e,i.hb(t.diagram)),t.findTool(e)?t.replaceTool(e,i):null!==i&&n.add(i)}Mi.className=\"ChangedEvent\",Mi.Transaction=Ci,Mi.Property=Si,Mi.Insert=Ni,Mi.Remove=Pi,Ti.prototype.toString=function(t){var e=\"Transaction: \"+this.name+\" \"+this.changes.count.toString()+(this.isComplete?\"\":\", incomplete\");if(void 0!==t&&0<t){t=this.changes.count;for(var i=0;i<t;i++){var n=this.changes.N(i);null!==n&&(e+=\"\\n \"+n.toString())}}return e},Ti.prototype.clear=function(){var t=this.changes;t.ha();for(var e=t.count-1;0<=e;e--){var i=t.N(e);null!==i&&i.clear()}t.clear(),t.freeze()},Ti.prototype.canUndo=function(){return this.isComplete},Ti.prototype.undo=function(){if(this.canUndo())for(var t=this.changes.count-1;0<=t;t--){var e=this.changes.N(t);null!==e&&e.undo()}},Ti.prototype.canRedo=function(){return this.isComplete},Ti.prototype.redo=function(){if(this.canRedo())for(var t=this.changes.count,e=0;e<t;e++){var i=this.changes.N(e);null!==i&&i.redo()}},p.Object.defineProperties(Ti.prototype,{changes:{get:function(){return this.u}},name:{get:function(){return this.Ua},set:function(t){this.Ua=t}},isComplete:{get:function(){return this.l},set:function(t){this.l=t}}}),Ti.prototype.redo=Ti.prototype.redo,Ti.prototype.canRedo=Ti.prototype.canRedo,Ti.prototype.undo=Ti.prototype.undo,Ti.prototype.canUndo=Ti.prototype.canUndo,Ti.prototype.clear=Ti.prototype.clear,Ti.className=\"Transaction\",Li.prototype.toString=function(t){var e=\"UndoManager \"+this.historyIndex+\"<\"+this.history.count+\"<=\"+this.maxHistoryLength;e+=\"[\";for(var i=this.nestedTransactionNames.count,n=0;n<i;n++)0<n&&(e+=\" \"),e+=this.nestedTransactionNames.N(n);if(e+=\"]\",void 0!==t&&0<t)for(i=this.history.count,n=0;n<i;n++)e+=\"\\n \"+this.history.N(n).toString(t-1);return e},Li.prototype.clear=function(){var t=this.history;t.ha();for(var e=t.count-1;0<=e;e--){var i=t.N(e);null!==i&&i.clear()}t.clear(),this.fe=-1,t.freeze(),this.ie=!1,this.Yq=null,this.yi=0,this.pe.ha(),this.pe.clear(),this.pe.freeze(),this.sl.clear()},Li.prototype.copyProperties=function(t){this.isEnabled=t.isEnabled,this.maxHistoryLength=t.maxHistoryLength,this.checksTransactionLevel=t.checksTransactionLevel},i=Li.prototype,i.Sw=function(t){this.ju.add(t)},i.Bx=function(t){this.ju.remove(t)},i.Aa=function(t){if(void 0===t&&(t=\"\"),null===t&&(t=\"\"),this.isUndoingRedoing)return!1;!0===this.$t&&(this.$t=!1,this.yi++,this.yb(\"StartingFirstTransaction\",t,this.currentTransaction),0<this.yi&&this.yi--),this.isEnabled&&(this.pe.ha(),this.pe.add(t),this.pe.freeze(),null===this.currentTransaction?this.sl.add(0):this.sl.add(this.currentTransaction.changes.count)),this.yi++;var e=1===this.transactionLevel;return e&&this.yb(\"StartedTransaction\",t,this.currentTransaction),e},i.Za=function(t){return void 0===t&&(t=\"\"),Oi(this,!0,t)},i.uf=function(){return Oi(this,!1,\"\")},Li.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToUndo;return!(null===t||!t.canUndo())},Li.prototype.undo=function(){if(this.canUndo()){var t=this.transactionToUndo;try{this.ie=!0,this.yb(\"StartingUndo\",\"Undo\",t),this.fe--,t.undo()}catch(e){S(\"undo error: \"+e.toString())}finally{this.yb(\"FinishedUndo\",\"Undo\",t),this.ie=!1}}},Li.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var t=this.transactionToRedo;return!(null===t||!t.canRedo())},Li.prototype.redo=function(){if(this.canRedo()){var t=this.transactionToRedo;try{this.ie=!0,this.yb(\"StartingRedo\",\"Redo\",t),this.fe++,t.redo()}catch(e){S(\"redo error: \"+e.toString())}finally{this.yb(\"FinishedRedo\",\"Redo\",t),this.ie=!1}}},Li.prototype.yb=function(t,e,i){void 0===i&&(i=null);var n=new Mi;for(n.change=Ci,n.propertyName=t,n.object=i,n.oldValue=e,t=this.models;t.next();)e=t.value,n.model=e,e.Ks(n)},Li.prototype.fv=function(t){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(t)){var e=this.currentTransaction;null===e&&(this.Yq=e=new Ti);var i=t.copy();e=e.changes,e.ha(),e.add(i),e.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.$t&&(t=t.diagram,null!==t&&!1===t.Oi||S(\"Change not within a transaction: \"+i.toString()))}},Li.prototype.skipsEvent=function(t){if(null===t||0>t.change.value)return!0;if(t=t.object,void 0!==t.layer){if(t=t.layer,null!==t&&t.isTemporary)return!0}else if(t.isTemporary)return!0;return!1},p.Object.defineProperties(Li.prototype,{models:{get:function(){return this.ju.iterator}},isEnabled:{get:function(){return this.Dc},set:function(t){this.Dc=t}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.N(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.N(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.ie}},history:{get:function(){return this.K}},maxHistoryLength:{get:function(){return this.u},set:function(t){this.u=t}},historyIndex:{get:function(){return this.fe}},currentTransaction:{get:function(){return this.Yq}},transactionLevel:{get:function(){return this.yi}},isInTransaction:{get:function(){return 0<this.yi}},checksTransactionLevel:{get:function(){return this.l},set:function(t){this.l=t}},nestedTransactionNames:{get:function(){return this.pe}}}),Li.prototype.handleChanged=Li.prototype.fv,Li.prototype.redo=Li.prototype.redo,Li.prototype.undo=Li.prototype.undo,Li.prototype.canUndo=Li.prototype.canUndo,Li.prototype.rollbackTransaction=Li.prototype.uf,Li.prototype.commitTransaction=Li.prototype.Za,Li.prototype.startTransaction=Li.prototype.Aa,Li.prototype.removeModel=Li.prototype.Bx,Li.prototype.addModel=Li.prototype.Sw,Li.prototype.clear=Li.prototype.clear,Li.className=\"UndoManager\",Di.prototype.hb=function(t){this.C=t},Di.prototype.toString=function(){return\"\"!==this.name?this.name+\" Tool\":B(this.constructor)},Di.prototype.updateAdornments=function(){},Di.prototype.canStart=function(){return this.isEnabled},Di.prototype.doStart=function(){},Di.prototype.doActivate=function(){this.isActive=!0},Di.prototype.doDeactivate=function(){this.isActive=!1},Di.prototype.doStop=function(){},Di.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Di.prototype.stopTool=function(){var t=this.diagram;t.currentTool===this&&(t.currentTool=null,t.currentCursor=\"\")},Di.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Di.prototype.doMouseMove=function(){},Di.prototype.doMouseUp=function(){this.stopTool()},Di.prototype.doMouseWheel=function(){},Di.prototype.canStartMultiTouch=function(){return!0},Di.prototype.standardPinchZoomStart=function(){var t=this.diagram,e=t.lastInput,i=e.Wp(0,mt.allocAt(NaN,NaN)),n=e.Wp(1,mt.allocAt(NaN,NaN));if(i.o()&&n.o()&&(this.doCancel(),t.bm(\"hasGestureZoom\"))){t.Ho=t.scale;var o=n.x-i.x,r=n.y-i.y;t.Iw=Math.sqrt(o*o+r*r),e.bubbles=!1}mt.free(i),mt.free(n)},Di.prototype.standardPinchZoomMove=function(){var t=this.diagram,e=t.lastInput,i=e.Wp(0,mt.allocAt(NaN,NaN)),n=e.Wp(1,mt.allocAt(NaN,NaN));if(i.o()&&n.o()&&(this.doCancel(),t.bm(\"hasGestureZoom\"))){var o=n.x-i.x,r=n.y-i.y;r=Math.sqrt(o*o+r*r)/t.Iw,o=new mt((Math.min(n.x,i.x)+Math.max(n.x,i.x))/2,(Math.min(n.y,i.y)+Math.max(n.y,i.y))/2),r*=t.Ho;var s=t.commandHandler;if(r!==t.scale&&s.canResetZoom(r)){var a=t.zoomPoint;t.zoomPoint=o,s.resetZoom(r),t.zoomPoint=a}e.bubbles=!1}mt.free(i),mt.free(n)},Di.prototype.doKeyDown=function(){\"Esc\"===this.diagram.lastInput.key&&this.doCancel()},Di.prototype.doKeyUp=function(){},Di.prototype.Aa=function(t){return void 0===t&&(t=this.name),this.transactionResult=null,this.diagram.Aa(t)},Di.prototype.vg=function(){var t=this.diagram;return null===this.transactionResult?t.uf():t.Za(this.transactionResult)},Di.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.lastInput,i=t.$l(e.documentPoint,!1);if(null!==i){if(q?e.meta:e.control){for(t.aa(\"ChangingSelection\",t.selection),e=i;null!==e&&!e.canSelect();)e=e.containingGroup;null!==e&&(e.isSelected=!e.isSelected),t.aa(\"ChangedSelection\",t.selection)}else if(e.shift){if(!i.isSelected){for(t.aa(\"ChangingSelection\",t.selection),e=i;null!==e&&!e.canSelect();)e=e.containingGroup;null!==e&&(e.isSelected=!0),t.aa(\"ChangedSelection\",t.selection)}}else if(!i.isSelected){for(e=i;null!==e&&!e.canSelect();)e=e.containingGroup;null!==e&&t.select(e)}}else!e.left||(q?e.meta:e.control)||e.shift||t.Ls()}},Di.prototype.standardMouseClick=function(t,e){void 0===t&&(t=null),void 0===e&&(e=function(t){return!t.layer.isTemporary});var i=this.diagram,n=i.lastInput;return t=i.Sb(n.documentPoint,t,e),n.targetObject=t,ji(t,n,i),n.handled},Di.prototype.standardMouseOver=function(){var t=this.diagram,e=t.lastInput;if(!0!==t.animationManager.rb){var i=t.skipsUndoManager;t.skipsUndoManager=!0;var n=t.he?t.Sb(e.documentPoint,null,null):null;e.targetObject=n;var o=!1;if(n!==t.Jk){var r=t.Jk,s=r;for(t.Jk=n,this.doCurrentObjectChanged(r,n),e.handled=!1;null!==r;){var a=r.mouseLeave;if(null!==a){if(n===r)break;if(null!==n&&n.qg(r))break;if(a(e,r,n),o=!0,e.handled)break}r=r.panel}for(r=s,e.handled=!1;null!==n;){if(s=n.mouseEnter,null!==s){if(r===n)break;if(null!==r&&r.qg(n))break;if(s(e,n,r),o=!0,e.handled)break}n=n.panel}n=t.Jk}if(null!==n){for(r=n,s=\"\";null!==r;){if(s=r.cursor,\"\"!==s)break;r=r.panel}for(t.currentCursor=s,e.handled=!1,r=n;null!==r;){if(n=r.mouseOver,null!==n&&(n(e,r),o=!0,e.handled))break;r=r.panel}}else t.currentCursor=\"\",n=t.mouseOver,null!==n&&(n(e),o=!0);o&&t.cc(),t.skipsUndoManager=i}},Di.prototype.doCurrentObjectChanged=function(){},Di.prototype.standardMouseWheel=function(){var t=this.diagram,e=t.lastInput,i=e.delta;if(0!==i&&t.documentBounds.o()){var n=t.commandHandler,o=t.toolManager.mouseWheelBehavior;if(null!==n&&(o===Ii&&!e.shift||o===Fi&&e.control)&&(0<i?n.canIncreaseZoom():n.canDecreaseZoom()))o=t.zoomPoint,t.zoomPoint=e.viewPoint,0<i?n.increaseZoom():n.decreaseZoom(),t.zoomPoint=o,e.bubbles=!1;else if(o===Ii&&e.shift||o===Fi&&!e.control){n=t.position.copy();var r=0<i?i:-i,s=e.event,a=s.deltaMode;if(o=s.deltaX,s=s.deltaY,(_||H||Y)&&(a=1,0<o&&(o=3),0>o&&(o=-3),0<s&&(s=3),0>s&&(s=-3)),void 0===a||void 0===o||void 0===s||0===o&&0===s||e.shift)!e.shift&&t.allowVerticalScroll?(r=3*r*t.scrollVerticalLineChange,0<i?t.scroll(\"pixel\",\"up\",r):t.scroll(\"pixel\",\"down\",r)):e.shift&&t.allowHorizontalScroll&&(r=3*r*t.scrollHorizontalLineChange,0<i?t.scroll(\"pixel\",\"left\",r):t.scroll(\"pixel\",\"right\",r));else{switch(a){case 0:i=\"pixel\";break;case 1:i=\"line\";break;case 2:i=\"page\";break;default:i=\"pixel\"}0!==o&&t.allowHorizontalScroll&&(0<o?t.scroll(i,\"left\",-o):t.scroll(i,\"right\",o)),0!==s&&t.allowVerticalScroll&&(0<s?t.scroll(i,\"up\",-s):t.scroll(i,\"down\",s))}t.position.A(n)||(e.bubbles=!1)}}},Di.prototype.standardWaitAfter=function(t,e){void 0===e&&(e=this.diagram.lastInput),this.cancelWaitAfter();var i=this,n=e.clone(this.ey);this.Hs=w((function(){i.doWaitAfter(n)}),t)},Di.prototype.cancelWaitAfter=function(){-1!==this.Hs&&v.clearTimeout(this.Hs),this.Hs=-1},Di.prototype.doWaitAfter=function(){},Di.prototype.findToolHandleAt=function(t,e){return t=this.diagram.Sb(t,(function(t){for(;null!==t&&!(t.panel instanceof ju);)t=t.panel;return t})),null===t?null:t.part.category===e?t:null},Di.prototype.isBeyondDragSize=function(t,e){var i=this.diagram;void 0===t&&(t=i.firstInput.viewPoint),void 0===e&&(e=i.lastInput.viewPoint);var n=i.toolManager.dragSize,o=n.width;return n=n.height,i.firstInput.isTouchEvent&&(o+=6,n+=6),Math.abs(e.x-t.x)>o||Math.abs(e.y-t.y)>n},p.Object.defineProperties(Di.prototype,{diagram:{get:function(){return this.C},set:function(t){t instanceof Do&&(this.C=t)}},name:{get:function(){return this.Ua},set:function(t){this.Ua=t}},isEnabled:{get:function(){return this.Dc},set:function(t){this.Dc=t}},isActive:{get:function(){return this.Vb},set:function(t){this.Vb=t}},transactionResult:{get:function(){return this.dw},set:function(t){this.dw=t}}}),Di.prototype.stopTransaction=Di.prototype.vg,Di.prototype.startTransaction=Di.prototype.Aa,Di.className=\"Tool\",d(Ai,Di),Ai.prototype.initializeStandardTools=function(){},Ai.prototype.updateAdornments=function(t){var e=this.currentToolTip;if(e instanceof ju&&this.Xq===t){var i=e.adornedObject;(null!==t?i.part===t:null===i)?this.showToolTip(e,i):this.hideToolTip()}},Ai.prototype.doMouseDown=function(){var t=this.diagram,e=t.lastInput;if(e.isTouchEvent&&this.gestureBehavior===Vi&&(e.bubbles=!1),e.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===_i)return void(e.bubbles=!0);if(this.gestureBehavior===Vi)return;if(t.currentTool.canStartMultiTouch())return void t.currentTool.standardPinchZoomStart()}for(var i=this.mouseDownTools.length,n=0;n<i;n++){var o=this.mouseDownTools.N(n);if(o.hb(this.diagram),o.canStart())return t.doFocus(),t.currentTool=o,void(t.currentTool===o&&(o.isActive||o.doActivate(),o.doMouseDown()))}1===t.lastInput.button&&(this.mouseWheelBehavior===Fi?this.mouseWheelBehavior=Ii:this.mouseWheelBehavior===Ii&&(this.mouseWheelBehavior=Fi)),this.doActivate(),this.standardWaitAfter(this.holdDelay,e)},Ai.prototype.doMouseMove=function(){var t=this.diagram,e=t.lastInput;if(e.isMultiTouch){if(this.gestureBehavior===_i)return void(e.bubbles=!0);if(this.gestureBehavior===Vi)return;if(t.currentTool.canStartMultiTouch())return void t.currentTool.standardPinchZoomMove()}if(this.isActive)for(var i=this.mouseMoveTools.length,n=0;n<i;n++){var o=this.mouseMoveTools.N(n);if(o.hb(this.diagram),o.canStart())return t.doFocus(),t.currentTool=o,void(t.currentTool===o&&(o.isActive||o.doActivate(),o.doMouseMove()))}Bi(this,t),t=e.event,null===t||\"mousemove\"!==t.type&&\"pointermove\"!==t.type&&t.cancelable||(e.bubbles=!0)},Ai.prototype.doCurrentObjectChanged=function(t,e){t=this.currentToolTip,null===t||null!==e&&t instanceof ju&&(e===t||e.qg(t))||this.hideToolTip()},Ai.prototype.doWaitAfter=function(t){var e=this.diagram;e.Da&&(this.doMouseHover(),this.isActive||this.doToolTip(),t.isTouchEvent&&!e.lastInput.handled&&(t=t.copy(),t.button=2,t.buttons=2,e.lastInput=t,e.Ml=!0,e.doMouseUp()))},Ai.prototype.doMouseHover=function(){var t=this.diagram,e=t.lastInput;null===e.targetObject&&(e.targetObject=t.Sb(e.documentPoint,null,null));var i=e.targetObject;if(null!==i)for(e.handled=!1;null!==i;){if(t=this.isActive?i.mouseHold:i.mouseHover,null!==t&&(t(e,i),e.handled))break;i=i.panel}else i=this.isActive?t.mouseHold:t.mouseHover,null!==i&&i(e)},Ai.prototype.doToolTip=function(){var t=this.diagram,e=t.lastInput;if(null===e.targetObject&&(e.targetObject=t.Sb(e.documentPoint,null,null)),e=e.targetObject,null!==e){if(t=this.currentToolTip,!(t instanceof ju)||e!==t&&!e.qg(t)){for(;null!==e;){if(t=e.toolTip,null!==t)return void this.showToolTip(t,e);e=e.panel}this.hideToolTip()}}else e=t.toolTip,null!==e?this.showToolTip(e,null):this.hideToolTip()},Ai.prototype.showToolTip=function(t,e){var i=this.diagram;if(t!==this.currentToolTip&&this.hideToolTip(),t instanceof ju){t.layerName=\"Tool\",t.selectable=!1,t.scale=1/i.scale,t.category=\"ToolTip\",null!==t.placeholder&&(t.placeholder.scale=i.scale);var n=t.diagram;null!==n&&n!==i&&n.remove(t),i.add(t),null!==e?t.adornedObject=e:t.data=i.model,t.ac(),this.positionToolTip(t,e)}else t instanceof Fn&&t!==this.currentToolTip&&t.show(e,i,this);if(this.currentToolTip=t,-1!==this.Kj&&(v.clearTimeout(this.Kj),this.Kj=-1),t=this.toolTipDuration,0<t&&1/0!==t){var o=this;this.Kj=w((function(){o.hideToolTip()}),t)}},Ai.prototype.positionToolTip=function(t){if(null===t.placeholder){var e=this.diagram,i=e.lastInput.documentPoint.copy(),n=t.measuredBounds,o=e.viewportBounds;e.lastInput.isTouchEvent&&(i.x-=n.width),i.x+n.width>o.right&&(i.x-=n.width+5/e.scale),i.x<o.x&&(i.x=o.x),i.y=i.y+20/e.scale+n.height>o.bottom?i.y-(n.height+5/e.scale):i.y+20/e.scale,i.y<o.y&&(i.y=o.y),t.position=i}},Ai.prototype.hideToolTip=function(){-1!==this.Kj&&(v.clearTimeout(this.Kj),this.Kj=-1);var t=this.diagram,e=this.currentToolTip;null!==e&&(e instanceof ju?(t.remove(e),null!==this.Xq&&this.Xq.tf(e.category),e.data=null,e.adornedObject=null):e instanceof Fn&&null!==e.hide&&e.hide(t,this),this.currentToolTip=null)},Ai.prototype.doMouseUp=function(){this.cancelWaitAfter();var t=this.diagram;if(this.isActive)for(var e=this.mouseUpTools.length,i=0;i<e;i++){var n=this.mouseUpTools.N(i);if(n.hb(this.diagram),n.canStart())return t.doFocus(),t.currentTool=n,void(t.currentTool===n&&(n.isActive||n.doActivate(),n.doMouseUp()))}t.doFocus(),this.doDeactivate()},Ai.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ai.prototype.doKeyDown=function(){var t=this.diagram;null!==t.commandHandler&&t.commandHandler.doKeyDown()},Ai.prototype.doKeyUp=function(){var t=this.diagram;null!==t.commandHandler&&t.commandHandler.doKeyUp()},Ai.prototype.findTool=function(t){for(var e=this.mouseDownTools.length,i=0;i<e;i++){var n=this.mouseDownTools.N(i);if(n.name===t)return n}for(e=this.mouseMoveTools.length,i=0;i<e;i++)if(n=this.mouseMoveTools.N(i),n.name===t)return n;for(e=this.mouseUpTools.length,i=0;i<e;i++)if(n=this.mouseUpTools.N(i),n.name===t)return n;return null},Ai.prototype.replaceTool=function(t,e){null!==e&&e.hb(this.diagram);for(var i=this.mouseDownTools.length,n=0;n<i;n++){var o=this.mouseDownTools.N(n);if(o.name===t)return null!==e?this.mouseDownTools.gd(n,e):this.mouseDownTools.mb(n),o}for(i=this.mouseMoveTools.length,n=0;n<i;n++)if(o=this.mouseMoveTools.N(n),o.name===t)return null!==e?this.mouseMoveTools.gd(n,e):this.mouseMoveTools.mb(n),o;for(i=this.mouseUpTools.length,n=0;n<i;n++)if(o=this.mouseUpTools.N(n),o.name===t)return null!==e?this.mouseUpTools.gd(n,e):this.mouseUpTools.mb(n),o;return null},p.Object.defineProperties(Ai.prototype,{mouseWheelBehavior:{get:function(){return this.Ma},set:function(t){this.Ma=t}},gestureBehavior:{get:function(){return this.K},set:function(t){this.K=t}},currentToolTip:{get:function(){return this.l},set:function(t){this.l=t,this.Xq=null!==t&&t instanceof ju?t.adornedPart:null}},mouseDownTools:{get:function(){return this.Kc}},mouseMoveTools:{get:function(){return this.Vc}},mouseUpTools:{get:function(){return this.wg}},hoverDelay:{get:function(){return this.La},set:function(t){this.La=t}},holdDelay:{get:function(){return this.ba},set:function(t){this.ba=t}},dragSize:{get:function(){return this.u},set:function(t){this.u=t.I()}},toolTipDuration:{get:function(){return this.Wb},set:function(t){this.Wb=t}}});var Fi=new K(Ai,\"WheelScroll\",0),Ii=new K(Ai,\"WheelZoom\",1),Ei=new K(Ai,\"WheelNone\",2),Ri=new K(Ai,\"GestureZoom\",3),Vi=new K(Ai,\"GestureCancel\",4),_i=new K(Ai,\"GestureNone\",5);function Hi(){Di.call(this),this.name=\"Dragging\",this.K=this.Kc=!0,this.u=this.Ma=this.ba=this.bg=null,this.yn=this.Vc=!1,this.Hl=new mt(NaN,NaN),this.xs=new mt,this.Wb=!0,this.Qk=100,this.Hg=[],this.wg=(new rt).freeze(),this.La=new Rs}function Yi(t,e){if(t.dragsLink){var i=t.diagram;i.allowRelink&&(i.model.ck()&&1===e.count&&e.first()instanceof nc?(t.draggedLink=e.first(),t.draggedLink.canRelinkFrom()&&t.draggedLink.canRelinkTo()&&t.draggedLink.Sj(),t.bg=i.toolManager.findTool(\"Relinking\"),null===t.bg&&(t.bg=new xn,t.bg.hb(i))):(t.draggedLink=null,t.bg=null))}}function qi(t){var e=t.diagram,i=e.skipsUndoManager;e.skipsUndoManager=!0,tn(t,e.lastInput,null),e.skipsUndoManager=i,t.Hg.length=0}function Gi(){var t=un;Ki(t),Ji(t);var e=t.diagram;t.Hl.o()&&(e.position=t.Hl),e.vf()}function Xi(t,e){var i=1/0,n=1/0,o=-1/0,r=-1/0;for(t=t.iterator;t.next();){var s=t.value;if(s.Lb()&&s.isVisible()){var a=s.location;s=a.x,a=a.y,isNaN(s)||isNaN(a)||(s<i&&(i=s),a<n&&(n=a),s>o&&(o=s),a>r&&(r=a))}}1/0===i?e.h(0,0,0,0):e.h(i,n,o-i,r-n)}function Ui(t,e){if(null===t.copiedParts){var i=t.diagram;if((!e||!i.isReadOnly&&!i.isModelReadOnly)&&null!==t.draggedParts){var n=i.undoManager;for(n.isEnabled&&n.isInTransaction?null!==n.currentTransaction&&0<n.currentTransaction.changes.count&&(i.undoManager.uf(),i.Aa(\"Drag\")):Ji(t),i.skipsUndoManager=!e,i.partManager.addsToTemporaryLayer=!e,t.startPoint=i.firstInput.documentPoint,e=t.copiesEffectiveCollection?t.draggedParts.Yd():i.selection,i=i.Xj(e,i,!0),e=i.iterator;e.next();)e.value.location=e.key.location;for(e=_t.alloc(),Xi(i,e),_t.free(e),e=new gt,n=t.draggedParts.iterator;n.next();){var o=n.key;o.Lb()&&o.canCopy()&&(o=i.J(o),null!==o&&(o.ac(),e.add(o,t.pd(o.location))))}for(i=i.iterator;i.next();)n=i.value,n instanceof nc&&n.canCopy()&&e.add(n,t.pd());t.copiedParts=e,Yi(t,e.Yd()),null!==t.draggedLink&&(i=t.draggedLink,e=i.routeBounds,sc(i,t.startPoint.x-(e.x+e.width/2),t.startPoint.y-(e.y+e.height/2)))}}}function Ki(t){var e=t.diagram;if(null!==t.copiedParts&&(e.rt(t.copiedParts.Yd(),!1),t.copiedParts=null,null!==t.draggedParts))for(var i=t.draggedParts.iterator;i.next();)i.key instanceof nc&&(i.value.point=new mt(0,0));e.skipsUndoManager=!1,e.partManager.addsToTemporaryLayer=!1,t.startPoint=e.firstInput.documentPoint}function $i(t){if(null!==t.draggedLink){if(t.dragsLink&&null!==t.bg){var e=t.bg;e.diagram.remove(e.temporaryFromNode),e.diagram.remove(e.temporaryToNode)}t.draggedLink=null,t.bg=null}}function Wi(t,e,i){var n=t.diagram,o=t.startPoint,r=mt.alloc();r.assign(n.lastInput.documentPoint),t.moveParts(e,r.Xd(o),i),mt.free(r),!0===n.De(\"temporaryPixelRatio\")&&null===n.jh&&30<n.Vw&&(Fo(n),n.ot())}function Ji(t){if(null!==t.draggedParts){for(var e=t.diagram,i=t.draggedParts.iterator;i.next();){var n=i.key;n.Lb()&&(n.location=i.value.point)}for(i=t.draggedParts.iterator;i.next();)if(n=i.key,n instanceof nc&&n.suspendsRouting){var o=i.value.point;t.draggedParts.add(n,t.pd()),sc(n,-o.x,-o.y)}e.fd()}}function Zi(t,e){return null===e||(e=e.part,!!(null===e||e instanceof ju||e.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(e)||t.copiedParts&&t.copiedParts.contains(e)))}function Qi(t,e){var i=t.diagram;t.dragsLink&&(null!==t.draggedLink&&(t.draggedLink.fromNode=null,t.draggedLink.toNode=null),on(t,!1));var n=Uo(i,e,null,(function(e){return!Zi(t,e)})),o=i.lastInput;o.targetObject=n;var r=i.skipsUndoManager,s=!1;try{if(i.skipsUndoManager=!0,s=tn(t,o,n),!t.isActive&&null===un)return;if(null===n||i.handlesDragDropForTopLevelParts){var a=i.mouseDragOver;null!==a&&(a(o),s=!0)}if(!t.isActive&&null===un)return;if(t.doDragOver(e,n),!t.isActive&&null===un)return}finally{i.skipsUndoManager=r,s&&i.fd()}(i.allowHorizontalScroll||i.allowVerticalScroll)&&i.Os(o.viewPoint)}function tn(t,e,i){var n=!1,o=t.Hg.length,r=0<o?t.Hg[0]:null;if(i===r)return!1;e.handled=!1;for(var s=0;s<o;s++){var a=t.Hg[s],l=a.mouseDragLeave;if(null!==l&&(l(e,a,i),n=!0,e.handled))break}if(t.Hg.length=0,!t.isActive&&null===un||null===i)return n;for(e.handled=!1,o=i;null!==o;)t.Hg.push(o),o=en(o);for(o=t.Hg.length,i=0;i<o&&(s=t.Hg[i],a=s.mouseDragEnter,null===a||(a(e,s,r),n=!0,!e.handled));i++);return n}function en(t){var e=t.panel;return null!==e?e:t instanceof lu&&!(t instanceof Ju)&&(t=t.containingGroup,null!==t&&t.handlesDragDropForMembers)?t:null}function nn(t,e,i){var n=t.bg;if(null===n)return null;var o=t.diagram.ng(e,n.portGravity,(function(t){return n.findValidLinkablePort(t,i)}));t=mt.alloc();var r=1/0,s=null;for(o=o.iterator;o.next();){var a=o.value;if(null!==a.part){var l=a.ma(de,t);l=e.Be(l),l<r&&(s=a,r=l)}}return mt.free(t),s}function on(t,e){var i=t.draggedLink;if(null!==i&&!(2>i.pointsCount)){var n=t.diagram;if(!n.isReadOnly){var o=t.bg;if(null!==o){var r=null,s=null;null===i.fromNode&&(r=nn(t,i.i(0),!1),null!==r&&(s=r.part));var a=null,l=null;null===i.toNode&&(a=nn(t,i.i(i.pointsCount-1),!0),null!==a&&(l=a.part)),o.isValidLink(s,r,l,a)?e?(i.defaultFromPoint=i.i(0),i.defaultToPoint=i.i(i.pointsCount-1),i.suspendsRouting=!1,i.fromNode=s,null!==r&&(i.fromPortId=r.portId),i.toNode=l,null!==a&&(i.toPortId=a.portId),i.fromPort!==n.vx&&n.aa(\"LinkRelinked\",i,n.vx),i.toPort!==n.wx&&n.aa(\"LinkRelinked\",i,n.wx)):kn(o,s,r,l,a):kn(o,null,null,null,null)}}}}function rn(t,e){var i=t.diagram;t.dragsLink&&on(t,!0),qi(t);var n=Uo(i,e,null,(function(e){return!Zi(t,e)})),o=i.lastInput;if(o.targetObject=n,null!==n){o.handled=!1;for(var r=n;null!==r;){var s=r.mouseDrop;if(null!==s&&(s(o,r),o.handled))break;sn(t,o,r),r=en(r)}}else r=i.mouseDrop,null!==r&&r(o);if(t.isActive||null!==un){for(o=(t.copiedParts||t.draggedParts).iterator;o.next();)r=o.key,r instanceof Au&&r.linksConnected.each((function(t){t.suspendsRouting=!1}));if(t.doDropOnto(e,n),t.isActive||null!==un){for(e=_t.alloc(),n=i.selection.iterator;n.next();)o=n.value,o instanceof Au&&an(t,i,o,e);_t.free(e)}}}function sn(t,e,i){t=t.diagram,i instanceof lu&&null===i.containingGroup&&!(i instanceof Ju)&&t.handlesDragDropForTopLevelParts&&(i=t.mouseDrop,null!==i&&i(e))}function an(t,e,i,n){var o=!1;for(i.getAvoidableRect(n),e.viewportBounds.lf(n)&&(o=!0),e=e.links,t=t.copiedParts||t.draggedParts;e.next();){var r=e.value;o&&!Cu(r)||t.contains(r)&&t.contains(i)||!r.Vd(i)&&r.isAvoiding&&Kt(r.actualBounds,n,0)&&r.Ra()}}function ln(t,e,i,n){if(null===t.copiedParts){var o=t.diagram;if(!o.isReadOnly&&!o.isModelReadOnly){o.skipsUndoManager=!i,o.partManager.addsToTemporaryLayer=!i,t.startPoint=n.documentPoint,i=o.Xj(e,o,!0);var r=_t.alloc();Xi(e,r),n=r.x+r.width/2,o=r.y+r.height/2,_t.free(r),r=t.xs;var s=new gt,a=mt.alloc();for(e=e.iterator;e.next();){var l=e.value,h=i.J(l);l.Lb()&&l.canCopy()?(l=l.location,a.h(r.x-(n-l.x),r.y-(o-l.y)),h.location=a,h.ac(),s.add(h,t.pd(a))):h instanceof nc&&l.canCopy()&&(sc(h,r.x-n,r.y-o),s.add(h,t.pd()))}mt.free(a),t.copiedParts=s,Yi(t,s.Yd()),null!==t.draggedLink&&(i=t.draggedLink,n=i.routeBounds,sc(i,t.startPoint.x-(n.x+n.width/2),t.startPoint.y-(n.y+n.height/2)))}}}Ai.className=\"ToolManager\",Ai.WheelScroll=Fi,Ai.WheelZoom=Ii,Ai.WheelNone=Ei,Ai.GestureZoom=Ri,Ai.GestureCancel=Vi,Ai.GestureNone=_i,d(Hi,Di),Hi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly&&!t.allowDragOut||!t.allowMove&&!t.allowCopy&&!t.allowDragOut||!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.isTouchEvent&&e.timestamp-t.firstInput.timestamp<this.Qk))&&null!==this.findDraggablePart()},Hi.prototype.findDraggablePart=function(){var t=this.diagram;if(t=t.$l(t.firstInput.documentPoint,!1),null===t)return null;for(;null!==t&&!t.canSelect();)t=t.containingGroup;return null!==t&&(t.canMove()||t.canCopy())?t:null},Hi.prototype.standardMouseSelect=function(){var t=this.diagram;if(t.allowSelect){var e=t.$l(t.firstInput.documentPoint,!1);if(null!==e){for(;null!==e&&!e.canSelect();)e=e.containingGroup;this.currentPart=e,null===this.currentPart||this.currentPart.isSelected||(t.aa(\"ChangingSelection\",t.selection),e=t.lastInput,(q?e.meta:e.control)||e.shift||Or(t),this.currentPart.isSelected=!0,t.aa(\"ChangedSelection\",t.selection))}}},Hi.prototype.doActivate=function(){var t=this.diagram;null===this.currentPart&&this.standardMouseSelect();var e=this.currentPart;null!==e&&(e.canMove()||e.canCopy())&&(un=null,this.isActive=!0,this.Hl.set(t.position),Yi(this,t.selection),this.Hg.length=0,this.draggedParts=this.computeEffectiveCollection(t.selection,this.dragOptions),t.Ui=!0,!0===t.De(\"temporaryPixelRatio\")&&30<t.Vw&&Fo(t),Cr(t,this.draggedParts),this.Aa(\"Drag\"),this.startPoint=t.firstInput.documentPoint,t.isMouseCaptured=!0,t.allowDragOut&&(this.isDragOutStarted=!0,this.yn=!1,un=this,cn=this.diagram,this.doSimulatedDragOut()))},Hi.prototype.computeEffectiveCollection=function(t,e){return this.diagram.commandHandler.computeEffectiveCollection(t,e)},Hi.prototype.pd=function(t){return void 0===t?new Is(Dt):this.isGridSnapEnabled?new Is(new mt(Math.round(t.x),Math.round(t.y))):new Is(t.copy())},Hi.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;if(t.vf(),qi(this),Sr(t,this.draggedParts),this.draggedParts=this.currentPart=null,this.yn=this.isDragOutStarted=!1,0<hn.count){for(var e=hn,i=e.length,n=0;n<i;n++){var o=e.N(n);$i(o),Ki(o),qi(o),o.diagram.vf()}e.clear()}$i(this),this.Hl.h(NaN,NaN),un=cn=null,Ki(this),t.isMouseCaptured=!1,t.currentCursor=\"\",t.Ui=!1,this.vg(),Io(t,!0)},Hi.prototype.doCancel=function(){Ki(this),Ji(this);var t=this.diagram;this.Hl.o()&&(t.position=this.Hl),this.stopTool()},Hi.prototype.doKeyDown=function(){this.isActive&&(\"Esc\"===this.diagram.lastInput.key?this.doCancel():this.doMouseMove())},Hi.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()},Hi.prototype.moveParts=function(t,e,i){var n=this.diagram;null!==n&&xr(n,t,e,this.dragOptions,i)},Hi.prototype.doDragOver=function(){},Hi.prototype.doDropOnto=function(){},Hi.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;this.simulatedMouseMove(e.event,null,e.targetDiagram||null)||null===this.currentPart||null===this.draggedParts||(this.mayCopy()?(t.currentCursor=\"copy\",Ui(this,!1),Cr(t,this.copiedParts),Wi(this,this.copiedParts,!1),Sr(t,this.copiedParts)):this.mayMove()?(Ki(this),Wi(this,this.draggedParts,!0)):this.mayDragOut()?(t.currentCursor=\"no-drop\",Ui(this,!1),Wi(this,this.copiedParts,!1)):Ki(this),Qi(this,t.lastInput.documentPoint))}},Hi.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=t.lastInput;if(!this.simulatedMouseUp(e.event,null,e.documentPoint,e.targetDiagram)){var i=!1;if((e=this.mayCopy())&&null!==this.copiedParts?(Ki(this),Ui(this,!0),Cr(t,this.copiedParts),Wi(this,this.copiedParts,!1),Sr(t,this.copiedParts),null!==this.copiedParts&&t.Gv(this.copiedParts.Yd())):(i=!0,Ki(this),this.mayMove()&&(Wi(this,this.draggedParts,!0),Qi(this,t.lastInput.documentPoint))),this.yn=!0,rn(this,t.lastInput.documentPoint),this.isActive){var n=e?this.copiedParts.Yd():this.draggedParts.Yd();if(this.copiedParts=null,i&&null!==this.draggedParts)for(i=this.draggedParts.iterator;i.next();){var o=i.key;o instanceof Au&&(o=o.containingGroup,null===o||null===o.placeholder||this.draggedParts.contains(o)||o.placeholder.s())}t.Xa(),Sr(t,this.draggedParts),this.transactionResult=e?\"Copy\":\"Move\",t.aa(e?\"SelectionCopied\":\"SelectionMoved\",n)}this.stopTool()}}},Hi.prototype.simulatedMouseMove=function(t,e,i){if(null===un)return!1;var n=un.diagram;i instanceof Do||(i=null);var o=cn;return i!==o&&(null!==o&&o!==n&&(o.vf(),un.isDragOutStarted=!1,o=o.toolManager.findTool(\"Dragging\"),null!==o&&o.doSimulatedDragLeave()),cn=i,null!==i&&i!==n&&(Gi(),o=i.toolManager.findTool(\"Dragging\"),null!==o&&(hn.contains(o)||hn.add(o),o.doSimulatedDragEnter()))),!(null===i||i===n||!i.allowDrop||i.isReadOnly||!i.allowInsert)&&(n=i.toolManager.findTool(\"Dragging\"),null!==n&&(null!==t?(void 0!==t.targetTouches&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),e=i.getMouse(t)):null===e&&(e=new mt),i.lastInput.documentPoint=e,i.lastInput.viewPoint=i.xt(e),i.lastInput.down=!1,i.lastInput.up=!1,n.doSimulatedDragOver()),!0)},Hi.prototype.simulatedMouseUp=function(t,e,i,n){if(null===un)return!1;null===n&&(n=e),e=cn;var o=un.diagram;if(n!==e){var r=e.toolManager.findTool(\"Dragging\");if(null!==e&&e!==o&&null!==r)return e.vf(),un.isDragOutStarted=!1,r.doSimulatedDragLeave(),!1;cn=n,e=n.toolManager.findTool(\"Dragging\"),null!==n&&null!==e&&(Gi(),hn.contains(e)||hn.add(e),e.doSimulatedDragEnter())}return null===n?(un.doCancel(),!0):n!==this.diagram&&(null!==t?(void 0!==t.targetTouches&&(0<t.targetTouches.length?t=t.targetTouches[0]:0<t.changedTouches.length&&(t=t.changedTouches[0])),i=n.getMouse(t)):null===i&&(i=new mt),n.lastInput.documentPoint=i,n.lastInput.viewPoint=n.xt(i),n.lastInput.down=!1,n.lastInput.up=!0,t=n.toolManager.findTool(\"Dragging\"),null!==t&&t.doSimulatedDrop(),t=un,null!==t&&(n=t.mayCopy(),t.transactionResult=n?\"Copy\":\"Move\",t.stopTool()),!0)},Hi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowCopy||(q?!t.lastInput.alt:!t.lastInput.control))return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Lb()&&e.canCopy())return!0}return!(null===this.draggedLink||!this.dragsLink||!this.draggedLink.canCopy())},Hi.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var t=this.diagram;if(!t.allowDragOut||!t.allowCopy||t.allowMove)return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Lb()&&e.canCopy())return!0}return!(null===this.draggedLink||!this.dragsLink||!this.draggedLink.canCopy())},Hi.prototype.mayMove=function(){var t=this.diagram;if(t.isReadOnly||!t.allowMove)return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Lb()&&e.canMove())return!0}return!(null===this.draggedLink||!this.dragsLink||!this.draggedLink.canMove())},Hi.prototype.computeBorder=function(t,e,i){return this.yn||null===this.draggedParts||this.draggedParts.contains(t)?null:i.assign(e)},Hi.prototype.az=function(){return un},Hi.prototype.mayDragIn=function(){var t=this.diagram;if(!t.allowDrop||t.isReadOnly||t.isModelReadOnly||!t.allowInsert)return!1;var e=un;return null!==e&&e.diagram.model.dataFormat===t.model.dataFormat},Hi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var t=this.diagram;t.animationManager.vd(),ar(t),t.animationManager.vd(),t=un,null!==t&&(t.diagram.currentCursor=\"copy\",t.diagram.Ui=!1)}},Hi.prototype.doSimulatedDragLeave=function(){var t=un;null!==t&&t.doSimulatedDragOut(),this.doCancel()},Hi.prototype.doSimulatedDragOver=function(){var t=this.diagram,e=un;null!==e&&null!==e.draggedParts&&this.mayDragIn()&&(t.currentCursor=\"copy\",ln(this,e.draggedParts.Yd(),!1,t.firstInput),Wi(this,this.copiedParts,!1),Qi(this,t.lastInput.documentPoint))},Hi.prototype.doSimulatedDrop=function(){var t=this.diagram,e=un;if(null!==e){var i=e.diagram;e.yn=!0,Ki(this),this.mayDragIn()&&(this.Aa(\"Drop\"),ln(this,e.draggedParts.Yd(),!0,t.lastInput),Wi(this,this.copiedParts,!1),null!==this.copiedParts&&t.Gv(this.copiedParts.Yd()),rn(this,t.lastInput.documentPoint),t.Xa(),e=t.selection,null!==this.copiedParts?this.transactionResult=\"ExternalCopy\":e=new rt,this.copiedParts=null,t.doFocus(),t.aa(\"ExternalObjectsDropped\",e,i),this.vg())}},Hi.prototype.doSimulatedDragOut=function(){var t=this.diagram;t.Ui=!1,this.mayCopy()||this.mayMove()?t.currentCursor=\"\":t.currentCursor=\"no-drop\"},Hi.prototype.computeMove=function(t,e,i,n){return i=this.diagram,null!==i?i.computeMove(t,e,this.dragOptions,n):new mt},p.Object.defineProperties(Hi.prototype,{isCopyEnabled:{get:function(){return this.Kc},set:function(t){this.Kc=t}},copiesEffectiveCollection:{get:function(){return this.K},set:function(t){this.K=t}},dragOptions:{get:function(){return this.La},set:function(t){this.La=t}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(t){this.dragOptions.isGridSnapEnabled=t}},isComplexRoutingRealtime:{get:function(){return this.Wb},set:function(t){this.Wb=t}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(t){this.dragOptions.isGridSnapRealtime=t}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(t){null===this.diagram||this.dragOptions.gridSnapCellSize.A(t)||(t=t.I(),this.dragOptions.gridSnapCellSize=t)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(t){this.dragOptions.gridSnapCellSpot.A(t)||(t=t.I(),this.dragOptions.gridSnapCellSpot=t)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(t){this.dragOptions.gridSnapOrigin.A(t)||(t=t.I(),this.dragOptions.gridSnapOrigin=t)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(t){this.dragOptions.dragsLink=t}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(t){this.dragOptions.dragsTree=t}},currentPart:{get:function(){return this.ba},set:function(t){this.ba=t}},copiedParts:{get:function(){return this.u},set:function(t){this.u=t}},draggedParts:{get:function(){return this.Ma},set:function(t){this.Ma=t}},draggingParts:{get:function(){return null!==this.copiedParts?this.copiedParts.Yd():null!==this.draggedParts?this.draggedParts.Yd():this.wg}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(t){this.diagram.draggedLink=t}},isDragOutStarted:{get:function(){return this.Vc},set:function(t){this.Vc=t}},startPoint:{get:function(){return this.xs},set:function(t){this.xs.A(t)||this.xs.assign(t)}},delay:{get:function(){return this.Qk},set:function(t){this.Qk=t}}}),Hi.prototype.getDraggingSource=Hi.prototype.az;var hn=null,un=null,cn=null;function fn(){Di.call(this),this.wg=100,this.ba=!1;var t=new nc,e=new sh;e.isPanelMain=!0,e.stroke=\"blue\",t.add(e),e=new sh,e.toArrow=\"Standard\",e.fill=\"blue\",e.stroke=\"blue\",t.add(e),t.layerName=\"Tool\",this.Gm=t,t=new Au,e=new sh,e.portId=\"\",e.figure=\"Rectangle\",e.fill=null,e.stroke=\"magenta\",e.strokeWidth=2,e.desiredSize=St,t.add(e),t.selectable=!1,t.layerName=\"Tool\",this.Em=t,this.Fm=e,t=new Au,e=new sh,e.portId=\"\",e.figure=\"Rectangle\",e.fill=null,e.stroke=\"magenta\",e.strokeWidth=2,e.desiredSize=St,t.add(e),t.selectable=!1,t.layerName=\"Tool\",this.wq=t,this.cw=e,this.Vc=this.Kc=this.Ma=this.La=this.Wb=null,this.K=!0,this.Sx=new gt,this.Cm=this.ii=this.Dm=null}function dn(t,e,i,n){if(e===i)return!0;var o=e.fromNode;return!(null===o||!o.isLinkLabel||(n.add(o),!dn(t,o.labeledLink,i,n)))||(e=e.toNode,!(null===e||!e.isLinkLabel||(n.add(e),!dn(t,e.labeledLink,i,n))))}function pn(t,e,i,n,o){if(e===i)return!0;if(null===e||null===i)return!1;for(var r=e.linksConnected;r.next();){var s=r.value;if(s!==n&&(!o||s.isTreeLink)&&s.toNode===e&&(s=s.fromNode,s!==e&&pn(t,s,i,n,o)))return!0}return!1}function gn(t,e,i,n,o){if(i===n)return!0;if(null===i||null===n||e.contains(i))return!1;e.add(i);for(var r=i.linksConnected;r.next();){var s=r.value;if(s!==o&&s.toNode===i&&(s=s.fromNode,s!==i&&gn(t,e,s,n,o)))return!0}return!1}function mn(t,e,i,n,o){if(i===n)return!0;if(null===i||null===n||e.contains(i))return!1;e.add(i);for(var r=i.linksConnected;r.next();){var s=r.value;if(s!==o){var a=s.fromNode;if(s=s.toNode,a=a===i?s:a,a!==i&&mn(t,e,a,n,o))return!0}}return!1}function vn(){fn.call(this),this.name=\"Linking\",this.u={},this.l=null,this.L=yn,this.Ch=null}Hi.className=\"DraggingTool\",hn=new nt,I(\"draggingTool\",(function(){return this.findTool(\"Dragging\")}),(function(t){zi(this,\"Dragging\",t,this.mouseMoveTools)})),Ai.prototype.doCancel=function(){null!==un&&un.doCancel(),Di.prototype.doCancel.call(this)},d(fn,Di),fn.prototype.doStop=function(){this.diagram.vf(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},fn.prototype.copyPortProperties=function(t,e,i,n,o){if(null!==t&&null!==e&&null!==i&&null!==n){var r=e.Ce(),s=It.alloc();s.width=e.naturalBounds.width*r,s.height=e.naturalBounds.height*r,n.desiredSize=s,It.free(s),o?(n.toSpot=e.toSpot,n.toEndSegmentLength=e.toEndSegmentLength):(n.fromSpot=e.fromSpot,n.fromEndSegmentLength=e.fromEndSegmentLength),i.locationSpot=de,r=mt.alloc(),i.location=e.ma(de,r),mt.free(r),n.angle=e.Ji(),null!==this.portTargeted&&this.portTargeted(t,e,i,n,o)}},fn.prototype.setNoTargetPortProperties=function(t,e,i){null!==e&&(e.desiredSize=St,e.fromSpot=le,e.toSpot=le),null!==t&&(t.location=this.diagram.lastInput.documentPoint),null!==this.portTargeted&&this.portTargeted(null,null,t,e,i)},fn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},fn.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),null!==this.targetPort&&this.targetPort.part instanceof Au){var e=this.targetPort.part;this.isForwards?this.copyPortProperties(e,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(e,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.Os(t.lastInput.viewPoint)}},fn.prototype.findValidLinkablePort=function(t,e){if(null===t)return null;var i=t.part;if(!(i instanceof Au))return null;for(;null!==t;){var n=e?t.toLinkable:t.fromLinkable;if(!0===n&&(null!==t.portId||t instanceof Au)&&(e?this.isValidTo(i,t):this.isValidFrom(i,t)))return t;if(!1===n)break;t=t.panel}return null},fn.prototype.findTargetPort=function(t){var e=this.diagram,i=e.lastInput.documentPoint,n=this.portGravity;0>=n&&(n=.1);var o=this,r=e.ng(i,n,(function(e){return o.findValidLinkablePort(e,t)}),null,!0);for(n=1/0,e=null,r=r.iterator;r.next();){var s=r.value,a=s.part;if(a instanceof Au){var l=s.ma(de,mt.alloc()),h=i.x-l.x,u=i.y-l.y;mt.free(l),l=h*h+u*u,l<n&&(h=this.validPortsCache.J(s),null!==h?h&&(e=s,n=l):t&&this.isValidLink(this.originalFromNode,this.originalFromPort,a,s)||!t&&this.isValidLink(a,s,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(s,!0),e=s,n=l):this.validPortsCache.add(s,!1))}}return null!==e&&(i=e.part,i instanceof Au&&(null===i.layer||i.layer.allowLink))?e:null},fn.prototype.isValidFrom=function(t,e){if(null===t||null===e)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==t.layer&&!t.layer.allowLink||!0!==e.fromLinkable))return!1;var i=e.fromMaxLinks;if(1/0>i){if(null!==this.originalLink&&t===this.originalFromNode&&e===this.originalFromPort)return!0;if(e=e.portId,null===e&&(e=\"\"),t.Sp(e).count>=i)return!1}return!0},fn.prototype.isValidTo=function(t,e){if(null===t||null===e)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(null!==t.layer&&!t.layer.allowLink||!0!==e.toLinkable))return!1;var i=e.toMaxLinks;if(1/0>i){if(null!==this.originalLink&&t===this.originalToNode&&e===this.originalToPort)return!0;if(e=e.portId,null===e&&(e=\"\"),t.sd(e).count>=i)return!1}return!0},fn.prototype.isInSameNode=function(t,e){return null!==t&&null!==e&&(t===e||(t=t.part,e=e.part,null!==t&&t===e))},fn.prototype.isLinked=function(t,e){if(null===t||null===e)return!1;var i=t.part;if(!(i instanceof Au))return!1;t=t.portId,null===t&&(t=\"\");var n=e.part;if(!(n instanceof Au))return!1;for(e=e.portId,null===e&&(e=\"\"),e=n.sd(e);e.next();)if(n=e.value,n.fromNode===i&&n.fromPortId===t)return!0;return!1},fn.prototype.isValidLink=function(t,e,i,n){if(!this.isValidFrom(t,e)||!this.isValidTo(i,n)||!(null===e||null===n||(e.fromLinkableSelfNode&&n.toLinkableSelfNode||!this.isInSameNode(e,n))&&(e.fromLinkableDuplicates&&n.toLinkableDuplicates||!this.isLinked(e,n)))||null!==this.originalLink&&(null!==t&&this.isLabelDependentOnLink(t,this.originalLink)||null!==i&&this.isLabelDependentOnLink(i,this.originalLink))||null!==t&&null!==i&&(null===t.data&&null!==i.data||null!==t.data&&null===i.data)||!this.isValidCycle(t,i,this.originalLink))return!1;if(null!==t){var o=t.linkValidation;if(null!==o&&!o(t,e,i,n,this.originalLink))return!1}return!(null!==i&&(o=i.linkValidation,null!==o&&!o(t,e,i,n,this.originalLink)))&&(o=this.linkValidation,null===o||o(t,e,i,n,this.originalLink))},fn.prototype.isLabelDependentOnLink=function(t,e){if(null===t)return!1;var i=t.labeledLink;if(null===i)return!1;if(i===e)return!0;var n=new rt;return n.add(t),dn(this,i,e,n)},fn.prototype.isValidCycle=function(t,e,i){if(void 0===i&&(i=null),null===t||null===e)return this.isUnconnectedLinkValid;var n=this.diagram.validCycle;if(n!==bs){if(n===Ms){if(n=i||this.temporaryLink,null!==n&&!n.isTreeLink)return!0;for(n=e.linksConnected;n.next();){var o=n.value;if(o!==i&&o.isTreeLink&&o.toNode===e)return!1}return!pn(this,t,e,i,!0)}if(n===Cs){if(n=i||this.temporaryLink,null!==n&&!n.isTreeLink)return!0;for(n=t.linksConnected;n.next();)if(o=n.value,o!==i&&o.isTreeLink&&o.fromNode===t)return!1;return!pn(this,t,e,i,!0)}if(n===ws)return t===e?t=!0:(n=new rt,n.add(e),t=gn(this,n,t,e,i)),!t;if(n===xs)return!pn(this,t,e,i,!1);if(n===ks)return t===e?t=!0:(n=new rt,n.add(e),t=mn(this,n,t,e,i)),!t}return!0},p.Object.defineProperties(fn.prototype,{portGravity:{get:function(){return this.wg},set:function(t){0<=t&&(this.wg=t)}},isUnconnectedLinkValid:{get:function(){return this.ba},set:function(t){this.ba=t}},temporaryLink:{get:function(){return this.Gm},set:function(t){this.Gm=t}},temporaryFromNode:{get:function(){return this.Em},set:function(t){this.Em=t}},temporaryFromPort:{get:function(){return this.Fm},set:function(t){this.Fm=t}},temporaryToNode:{get:function(){return this.wq},set:function(t){this.wq=t}},temporaryToPort:{get:function(){return this.cw},set:function(t){this.cw=t}},originalLink:{get:function(){return this.Wb},set:function(t){this.Wb=t}},originalFromNode:{get:function(){return this.La},set:function(t){this.La=t}},originalFromPort:{get:function(){return this.Ma},set:function(t){this.Ma=t}},originalToNode:{get:function(){return this.Kc},set:function(t){this.Kc=t}},originalToPort:{get:function(){return this.Vc},set:function(t){this.Vc=t}},isForwards:{get:function(){return this.K},set:function(t){this.K=t}},validPortsCache:{get:function(){return this.Sx}},targetPort:{get:function(){return this.Dm},set:function(t){this.Dm=t}},linkValidation:{get:function(){return this.ii},set:function(t){this.ii=t}},portTargeted:{get:function(){return this.Cm},set:function(t){this.Cm=t}}}),fn.className=\"LinkingBaseTool\",d(vn,fn),vn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowLink||!t.model.dt()||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())&&null!==this.findLinkablePort()},vn.prototype.findLinkablePort=function(){var t=this.diagram,e=this.startObject;if(null===e&&(e=t.Sb(t.firstInput.documentPoint,null,null)),null===e||!(e.part instanceof Au))return null;if(t=this.direction,t===yn||t===bn){var i=this.findValidLinkablePort(e,!1);if(null!==i)return this.isForwards=!0,i}return t!==yn&&t!==wn||(e=this.findValidLinkablePort(e,!0),null===e)?null:(this.isForwards=!1,e)},vn.prototype.doActivate=function(){var t=this.diagram,e=this.findLinkablePort();null!==e&&(this.Aa(this.name),t.isMouseCaptured=!0,t.currentCursor=\"pointer\",this.isForwards?(null===this.temporaryToNode||this.temporaryToNode.location.o()||(this.temporaryToNode.location=t.lastInput.documentPoint),this.originalFromPort=e,e=this.originalFromPort.part,e instanceof Au&&(this.originalFromNode=e),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(null===this.temporaryFromNode||this.temporaryFromNode.location.o()||(this.temporaryFromNode.location=t.lastInput.documentPoint),this.originalToPort=e,e=this.originalToPort.part,e instanceof Au&&(this.originalToNode=e),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),t.add(this.temporaryFromNode),t.add(this.temporaryToNode),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.Ra(),t.add(this.temporaryLink)),this.isActive=!0)},vn.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor=\"\",this.vg()},vn.prototype.doStop=function(){fn.prototype.doStop.call(this),this.startObject=null},vn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram,e=this.transactionResult=null,i=null,n=null,o=null,r=this.targetPort=this.findTargetPort(this.isForwards);if(null!==r){var s=r.part;s instanceof Au&&(this.isForwards?(null!==this.originalFromNode&&(e=this.originalFromNode,i=this.originalFromPort),n=s,o=r):(e=s,i=r,null!==this.originalToNode&&(n=this.originalToNode,o=this.originalToPort)))}else this.isForwards?null!==this.originalFromNode&&this.isUnconnectedLinkValid&&(e=this.originalFromNode,i=this.originalFromPort):null!==this.originalToNode&&this.isUnconnectedLinkValid&&(n=this.originalToNode,o=this.originalToPort);null!==e||null!==n?(s=this.insertLink(e,i,n,o),null!==s?(null===r&&(this.isForwards?s.defaultToPoint=t.lastInput.documentPoint:s.defaultFromPoint=t.lastInput.documentPoint),t.allowSelect&&t.select(s),this.transactionResult=this.name,t.aa(\"LinkDrawn\",s)):(t.model.Lu(),this.doNoLink(e,i,n,o))):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}this.stopTool()},vn.prototype.isNewTreeLink=function(){var t=this.archetypeLinkData;if(null===t)return!0;if(t instanceof nc)return t.isTreeLink;var e=this.diagram;return null===e||(t=e.partManager.getLinkCategoryForData(t),e=e.partManager.findLinkTemplateForCategory(t),null===e||e.isTreeLink)},vn.prototype.insertLink=function(t,e,i,n){return this.diagram.partManager.insertLink(t,e,i,n)},vn.prototype.doNoLink=function(){},p.Object.defineProperties(vn.prototype,{archetypeLinkData:{get:function(){return this.u},set:function(t){this.u=t}},archetypeLabelNodeData:{get:function(){return this.l},set:function(t){this.l=t}},direction:{get:function(){return this.L},set:function(t){this.L=t}},startObject:{get:function(){return this.Ch},set:function(t){this.Ch=t}}});var yn=new K(vn,\"Either\",0),bn=new K(vn,\"ForwardsOnly\",0),wn=new K(vn,\"BackwardsOnly\",0);function xn(){fn.call(this),this.name=\"Relinking\";var t=new sh;t.figure=\"Diamond\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.cursor=\"pointer\",t.segmentIndex=0,this.u=t,t=new sh,t.figure=\"Diamond\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.cursor=\"pointer\",t.segmentIndex=-1,this.Ch=t,this.l=null,this.Hw=new _t}function kn(t,e,i,n,o){null!==e?(t.copyPortProperties(e,i,t.temporaryFromNode,t.temporaryFromPort,!1),t.diagram.add(t.temporaryFromNode)):t.diagram.remove(t.temporaryFromNode),null!==n?(t.copyPortProperties(n,o,t.temporaryToNode,t.temporaryToPort,!0),t.diagram.add(t.temporaryToNode)):t.diagram.remove(t.temporaryToNode)}function Mn(){Di.call(this),this.name=\"LinkReshaping\";var t=new sh;t.figure=\"Rectangle\",t.desiredSize=Nt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",this.u=t,t=new sh,t.figure=\"Diamond\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.cursor=\"move\",this.K=t,this.ba=3,this.Ht=this.l=null,this.ul=new mt,this.ds=new nt}function Cn(t,e,i,n,o,r){return r?Math.abs(e.y-i.y)<t.resegmentingDistance&&Math.abs(i.y-n.y)<t.resegmentingDistance&&Math.abs(n.y-o.y)<t.resegmentingDistance:Math.abs(e.x-i.x)<t.resegmentingDistance&&Math.abs(i.x-n.x)<t.resegmentingDistance&&Math.abs(n.x-o.x)<t.resegmentingDistance}vn.className=\"LinkingTool\",vn.Either=yn,vn.ForwardsOnly=bn,vn.BackwardsOnly=wn,d(xn,fn),xn.prototype.updateAdornments=function(t){if(null!==t&&t instanceof nc){var e=\"RelinkFrom\",i=null;if(t.isSelected&&!this.diagram.isReadOnly){var n=t.selectionObject;null!==n&&t.canRelinkFrom()&&t.actualBounds.o()&&t.isVisible()&&n.actualBounds.o()&&n.rf()&&(i=t.$j(e),null===i&&(i=this.makeAdornment(n,!1),t.qh(e,i)))}null===i&&t.tf(e),e=\"RelinkTo\",i=null,t.isSelected&&!this.diagram.isReadOnly&&(n=t.selectionObject,null!==n&&t.canRelinkTo()&&t.actualBounds.o()&&t.isVisible()&&n.actualBounds.o()&&n.rf()&&(i=t.$j(e),null===i?(i=this.makeAdornment(n,!0),t.qh(e,i)):i.s())),null===i&&t.tf(e)}},xn.prototype.makeAdornment=function(t,e){var i=new ju;return i.type=Nl.Link,e=e?this.toHandleArchetype:this.fromHandleArchetype,null!==e&&i.add(e.copy()),i.adornedObject=t,i},xn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowRelink||!t.model.dt()||!t.lastInput.left)return!1;var e=this.findToolHandleAt(t.firstInput.documentPoint,\"RelinkFrom\");return null===e&&(e=this.findToolHandleAt(t.firstInput.documentPoint,\"RelinkTo\")),null!==e},xn.prototype.doActivate=function(){var t=this.diagram;if(null===this.originalLink){var e=this.handle;if(null===e&&(e=this.findToolHandleAt(t.firstInput.documentPoint,\"RelinkFrom\"),null===e&&(e=this.findToolHandleAt(t.firstInput.documentPoint,\"RelinkTo\"))),null===e)return;var i=e.part;if(!(i instanceof ju&&i.adornedPart instanceof nc))return;this.handle=e,this.isForwards=null===i||\"RelinkTo\"===i.category,this.originalLink=i.adornedPart}this.Aa(this.name),t.isMouseCaptured=!0,t.currentCursor=\"pointer\",this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Hw.set(this.originalLink.actualBounds),null!==this.originalLink&&0<this.originalLink.pointsCount&&(null===this.originalLink.fromNode&&(null!==this.temporaryFromPort&&(this.temporaryFromPort.desiredSize=Ct),null!==this.temporaryFromNode&&(this.temporaryFromNode.location=this.originalLink.i(0))),null===this.originalLink.toNode&&(null!==this.temporaryToPort&&(this.temporaryToPort.desiredSize=Ct),null!==this.temporaryToNode&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),t.add(this.temporaryFromNode),t.add(this.temporaryToNode),null!==this.temporaryLink&&(null!==this.temporaryFromNode&&(this.temporaryLink.fromNode=this.temporaryFromNode),null!==this.temporaryToNode&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.Ra(),t.add(this.temporaryLink)),this.isActive=!0},xn.prototype.copyLinkProperties=function(t,e){if(null!==t&&null!==e){e.adjusting=t.adjusting,e.corner=t.corner;var i=t.curve;i!==Dc&&i!==Oc||(i=Tc),e.curve=i,e.curviness=t.curviness,e.isTreeLink=t.isTreeLink,e.points=t.points,e.routing=t.routing,e.smoothness=t.smoothness,e.fromSpot=t.fromSpot,e.fromEndSegmentLength=t.fromEndSegmentLength,e.fromShortLength=t.fromShortLength,e.toSpot=t.toSpot,e.toEndSegmentLength=t.toEndSegmentLength,e.toShortLength=t.toShortLength}},xn.prototype.doDeactivate=function(){this.isActive=!1;var t=this.diagram;t.remove(this.temporaryLink),t.remove(this.temporaryFromNode),t.remove(this.temporaryToNode),t.isMouseCaptured=!1,t.currentCursor=\"\",this.vg()},xn.prototype.doStop=function(){fn.prototype.doStop.call(this),this.handle=null},xn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;this.transactionResult=null;var e=this.originalFromNode,i=this.originalFromPort,n=this.originalToNode,o=this.originalToPort,r=this.originalLink;if(this.targetPort=this.findTargetPort(this.isForwards),null!==this.targetPort){var s=this.targetPort.part;s instanceof Au&&(this.isForwards?(n=s,o=this.targetPort):(e=s,i=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?o=n=null:i=e=null:r=null;null!==r?(this.reconnectLink(r,this.isForwards?n:e,this.isForwards?o:i,this.isForwards),null===this.targetPort&&(this.isForwards?r.defaultToPoint=t.lastInput.documentPoint:r.defaultFromPoint=t.lastInput.documentPoint,r.Ra()),t.allowSelect&&(r.isSelected=!0),this.transactionResult=this.name,t.aa(\"LinkRelinked\",r,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.$p(this.Hw)}this.stopTool()},xn.prototype.reconnectLink=function(t,e,i,n){return i=null!==i&&null!==i.portId?i.portId:\"\",n?(t.toNode=e,t.toPortId=i):(t.fromNode=e,t.fromPortId=i),!0},xn.prototype.doNoRelink=function(){},p.Object.defineProperties(xn.prototype,{fromHandleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},toHandleArchetype:{get:function(){return this.Ch},set:function(t){this.Ch=t}},handle:{get:function(){return this.l},set:function(t){if(null!==t&&!(t.part instanceof ju))throw Error(\"new handle is not in an Adornment: \"+t);this.l=t}}}),xn.className=\"RelinkingTool\",I(\"linkingTool\",(function(){return this.findTool(\"Linking\")}),(function(t){zi(this,\"Linking\",t,this.mouseMoveTools)})),I(\"relinkingTool\",(function(){return this.findTool(\"Relinking\")}),(function(t){zi(this,\"Relinking\",t,this.mouseDownTools)})),d(Mn,Di),Mn.prototype.dv=function(t){return t&&t.js&&0!==t.js.value?t.js:Sn},Mn.prototype.wm=function(t,e){t.js=e},Mn.prototype.updateAdornments=function(t){if(null!==t&&t instanceof nc){var e=null;if(t.isSelected&&!this.diagram.isReadOnly){var i=t.path;null!==i&&t.canReshape()&&t.actualBounds.o()&&t.isVisible()&&i.actualBounds.o()&&i.rf()&&(e=t.$j(this.name),null===e||e.Ew!==t.pointsCount||e.Pw!==t.resegmentable)&&(e=this.makeAdornment(i),null!==e&&(e.Ew=t.pointsCount,e.Pw=t.resegmentable,t.qh(this.name,e)))}null===e&&t.tf(this.name)}},Mn.prototype.makeAdornment=function(t){var e=t.part,i=e.pointsCount,n=e.isOrthogonal,o=null;if(null!==e.points&&1<i){o=new ju,o.type=Nl.Link,i=e.firstPickIndex;var r=e.lastPickIndex,s=n?1:0;if(e.resegmentable&&e.computeCurve()!==Lc)for(var a=i+s;a<r-s;a++){var l=this.makeResegmentHandle(t,a);null!==l&&(l.segmentIndex=a,l.segmentFraction=.5,l.fromMaxLinks=999,o.add(l))}for(s=i+1;s<r;s++)if(a=this.makeHandle(t,s),null!==a){if(a.segmentIndex=s,s!==i)if(s===i+1&&n){l=e.i(i);var h=e.i(i+1);We.w(l.x,h.x)&&We.w(l.y,h.y)&&(h=e.i(i-1)),We.w(l.x,h.x)?(this.wm(a,Pn),a.cursor=\"n-resize\"):We.w(l.y,h.y)&&(this.wm(a,Nn),a.cursor=\"w-resize\")}else s===r-1&&n?(l=e.i(r-1),h=e.i(r),We.w(l.x,h.x)&&We.w(l.y,h.y)&&(l=e.i(r+1)),We.w(l.x,h.x)?(this.wm(a,Pn),a.cursor=\"n-resize\"):We.w(l.y,h.y)&&(this.wm(a,Nn),a.cursor=\"w-resize\")):s!==r&&(this.wm(a,Tn),a.cursor=\"move\");o.add(a)}o.adornedObject=t}return o},Mn.prototype.makeHandle=function(){var t=this.handleArchetype;return null===t?null:t.copy()},Mn.prototype.makeResegmentHandle=function(){var t=this.midHandleArchetype;return null===t?null:t.copy()},Mn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowReshape||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},Mn.prototype.doActivate=function(){var t=this.diagram;if(null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null!==this.handle){var e=this.handle.part.adornedPart;if(e instanceof nc){if(this.Ht=e,t.isMouseCaptured=!0,this.Aa(this.name),e.resegmentable&&999===this.handle.fromMaxLinks){var i=e.points.copy(),n=this.getResegmentingPoint();if(i.Ib(this.handle.segmentIndex+1,n),e.isOrthogonal&&i.Ib(this.handle.segmentIndex+1,n),e.points=i,e.Jb(),e.updateAdornments(),this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name),null===this.handle)return void this.doDeactivate()}this.ul=e.i(this.handle.segmentIndex),this.ds=e.points.copy(),this.isActive=!0}}},Mn.prototype.doDeactivate=function(){this.vg(),this.Ht=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Mn.prototype.doCancel=function(){var t=this.adornedLink;null!==t&&(t.points=this.ds),this.stopTool()},Mn.prototype.getResegmentingPoint=function(){return this.handle.ma(de)},Mn.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeReshape(t.lastInput.documentPoint),this.reshape(t))},Mn.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.computeReshape(t.lastInput.documentPoint);if(this.reshape(e),e=this.adornedLink,null!==e&&e.resegmentable){var i=this.handle.segmentIndex,n=e.i(i-1),o=e.i(i),r=e.i(i+1);if(e.isOrthogonal){if(i>e.firstPickIndex+1&&i<e.lastPickIndex-1){var s=e.i(i-2);if(Math.abs(n.x-o.x)<this.resegmentingDistance&&Math.abs(n.y-o.y)<this.resegmentingDistance&&(Cn(this,s,n,o,r,!0)||Cn(this,s,n,o,r,!1))){var a=e.points.copy();Cn(this,s,n,o,r,!0)?(a.gd(i-2,new mt(s.x,(r.y+s.y)/2)),a.gd(i+1,new mt(r.x,(r.y+s.y)/2))):(a.gd(i-2,new mt((r.x+s.x)/2,s.y)),a.gd(i+1,new mt((r.x+s.x)/2,r.y))),a.mb(i),a.mb(i-1),e.points=a,e.Jb()}else s=e.i(i+2),Math.abs(o.x-r.x)<this.resegmentingDistance&&Math.abs(o.y-r.y)<this.resegmentingDistance&&(Cn(this,n,o,r,s,!0)||Cn(this,n,o,r,s,!1))&&(a=e.points.copy(),Cn(this,n,o,r,s,!0)?(a.gd(i-1,new mt(n.x,(n.y+s.y)/2)),a.gd(i+2,new mt(s.x,(n.y+s.y)/2))):(a.gd(i-1,new mt((n.x+s.x)/2,n.y)),a.gd(i+2,new mt((n.x+s.x)/2,s.y))),a.mb(i+1),a.mb(i),e.points=a,e.Jb())}}else s=mt.alloc(),We.Qi(n.x,n.y,r.x,r.y,o.x,o.y,s)&&s.Be(o)<this.resegmentingDistance*this.resegmentingDistance&&(n=e.points.copy(),n.mb(i),e.points=n,e.Jb()),mt.free(s)}t.Xa(),this.transactionResult=this.name,t.aa(\"LinkReshaped\",this.adornedLink,this.ds)}this.stopTool()},Mn.prototype.reshape=function(t){var e=this.adornedLink;e.Bh();var i=this.handle.segmentIndex,n=this.dv(this.handle);if(e.isOrthogonal)if(i===e.firstPickIndex+1)i=e.firstPickIndex+1,n===Pn?(e.M(i,e.i(i-1).x,t.y),e.M(i+1,e.i(i+2).x,t.y)):n===Nn&&(e.M(i,t.x,e.i(i-1).y),e.M(i+1,t.x,e.i(i+2).y));else if(i===e.lastPickIndex-1)i=e.lastPickIndex-1,n===Pn?(e.M(i-1,e.i(i-2).x,t.y),e.M(i,e.i(i+1).x,t.y)):n===Nn&&(e.M(i-1,t.x,e.i(i-2).y),e.M(i,t.x,e.i(i+1).y));else{n=i;var o=e.i(n),r=e.i(n-1),s=e.i(n+1);We.w(r.x,o.x)&&We.w(o.y,s.y)?(We.w(r.x,e.i(n-2).x)&&!We.w(r.y,e.i(n-2).y)?(e.m(n,t.x,r.y),i++,n++):e.M(n-1,t.x,r.y),We.w(s.y,e.i(n+2).y)&&!We.w(s.x,e.i(n+2).x)?e.m(n+1,s.x,t.y):e.M(n+1,s.x,t.y)):We.w(r.y,o.y)&&We.w(o.x,s.x)?(We.w(r.y,e.i(n-2).y)&&!We.w(r.x,e.i(n-2).x)?(e.m(n,r.x,t.y),i++,n++):e.M(n-1,r.x,t.y),We.w(s.x,e.i(n+2).x)&&!We.w(s.y,e.i(n+2).y)?e.m(n+1,t.x,s.y):e.M(n+1,t.x,s.y)):We.w(r.x,o.x)&&We.w(o.x,s.x)?(We.w(r.x,e.i(n-2).x)&&!We.w(r.y,e.i(n-2).y)?(e.m(n,t.x,r.y),i++,n++):e.M(n-1,t.x,r.y),We.w(s.x,e.i(n+2).x)&&!We.w(s.y,e.i(n+2).y)?e.m(n+1,t.x,s.y):e.M(n+1,t.x,s.y)):We.w(r.y,o.y)&&We.w(o.y,s.y)&&(We.w(r.y,e.i(n-2).y)&&!We.w(r.x,e.i(n-2).x)?(e.m(n,r.x,t.y),i++,n++):e.M(n-1,r.x,t.y),We.w(s.y,e.i(n+2).y)&&!We.w(s.x,e.i(n+2).x)?e.m(n+1,s.x,t.y):e.M(n+1,s.x,t.y)),e.M(i,t.x,t.y)}else e.M(i,t.x,t.y),n=e.fromNode,o=e.fromPort,null!==n&&(r=n.findVisibleNode(),null!==r&&r!==n&&(n=r,o=n.port)),1===i&&e.computeSpot(!0,o).jc()&&(r=o.ma(de,mt.alloc()),n=e.getLinkPointFromPoint(n,o,r,t,!0,mt.alloc()),e.M(0,n.x,n.y),mt.free(r),mt.free(n)),n=e.toNode,o=e.toPort,null!==n&&(r=n.findVisibleNode(),null!==r&&r!==n&&(n=r,o=n.port)),i===e.pointsCount-2&&e.computeSpot(!1,o).jc()&&(i=o.ma(de,mt.alloc()),t=e.getLinkPointFromPoint(n,o,i,t,!1,mt.alloc()),e.M(e.pointsCount-1,t.x,t.y),mt.free(i),mt.free(t));e.kf()},Mn.prototype.computeReshape=function(t){var e=this.adornedLink,i=this.handle.segmentIndex;switch(this.dv(this.handle)){case Tn:return t;case Pn:return new mt(e.i(i).x,t.y);case Nn:return new mt(t.x,e.i(i).y);default:case Sn:return e.i(i)}},p.Object.defineProperties(Mn.prototype,{handleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},midHandleArchetype:{get:function(){return this.K},set:function(t){this.K=t}},handle:{get:function(){return this.l},set:function(t){if(null!==t&&!(t.part instanceof ju))throw Error(\"new handle is not in an Adornment: \"+t);this.l=t}},adornedLink:{get:function(){return this.Ht}},resegmentingDistance:{get:function(){return this.ba},set:function(t){this.ba=t}},originalPoint:{get:function(){return this.ul}},originalPoints:{get:function(){return this.ds}}}),Mn.prototype.setReshapingBehavior=Mn.prototype.wm,Mn.prototype.getReshapingBehavior=Mn.prototype.dv;var Sn=new K(Mn,\"None\",0),Nn=new K(Mn,\"Horizontal\",1),Pn=new K(Mn,\"Vertical\",2),Tn=new K(Mn,\"All\",3);function Ln(){Di.call(this),this.name=\"Resizing\",this.Qf=new It(1,1).freeze(),this.Pf=new It(9999,9999).freeze(),this.Bg=new It(NaN,NaN).freeze(),this.K=!1,this.$d=null;var t=new sh;t.alignmentFocus=de,t.figure=\"Rectangle\",t.desiredSize=Nt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.strokeWidth=1,t.cursor=\"pointer\",this.u=t,this.l=null,this.ul=new mt,this.Gw=new It,this.Io=new mt,this.Yt=new It(0,0),this.Xt=new It(1/0,1/0),this.Wt=new It(1,1),this.Dw=!0}function On(){Di.call(this),this.name=\"Rotating\",this.Ma=45,this.La=2,this.Io=new mt,this.$d=null;var t=new sh;t.figure=\"Ellipse\",t.desiredSize=Pt,t.fill=\"lightblue\",t.stroke=\"dodgerblue\",t.strokeWidth=1,t.cursor=\"pointer\",this.u=t,this.l=null,this.Fw=0,this.qu=new mt(NaN,NaN),this.K=0,this.ba=50}function Dn(){Di.call(this),this.name=\"ClickSelecting\"}function jn(){Di.call(this),this.name=\"Action\",this.uk=null}function An(){Di.call(this),this.name=\"ClickCreating\",this.$i=null,this.u=!0,this.l=!1,this.xw=new mt(0,0)}function Bn(){Di.call(this),this.name=\"DragSelecting\",this.Qk=175,this.u=!1;var t=new lu;t.layerName=\"Tool\",t.selectable=!1;var e=new sh;e.name=\"SHAPE\",e.figure=\"Rectangle\",e.fill=null,e.stroke=\"magenta\",t.add(e),this.l=t}function zn(){Di.call(this),this.name=\"Panning\",this.lu=new mt,this.by=new mt,this.Ag=!1;var t=this;this.Jw=function(){v.document.removeEventListener(\"scroll\",t.Jw,!1),t.stopTool()}}function Fn(){this.ba=this.K=this.l=this.u=null}function In(t,e,i){this.text=t,this.Zw=e,this.visible=i}function En(){Di.call(this),this.name=\"ContextMenu\",this.u=this.Nt=this.l=null,this.Cw=new mt,this.Ot=null;var t=this;this.Au=function(){t.stopTool()}}function Rn(t){var e=new Fn;e.show=function(t,e,i){i.showDefaultContextMenu()},e.hide=function(t,e){e.hideDefaultContextMenu()},qn=e,t.Au=function(){t.stopTool()},e=x(\"div\");var i=x(\"div\");e.style.cssText=\"top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px\",i.style.cssText=\"z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;\";var n=x(\"style\");v.document.getElementsByTagName(\"head\")[0].appendChild(n),n.sheet.insertRule(\".goCXul { list-style: none; }\",0),n.sheet.insertRule(\".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }\",0),n.sheet.insertRule(\".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }\",0),e.addEventListener(\"contextmenu\",Vn,!1),e.addEventListener(\"selectstart\",Vn,!1),i.addEventListener(\"contextmenu\",Vn,!1),e.className=\"goCXforeground\",i.className=\"goCXbackground\",v.document.body&&(v.document.body.appendChild(e),v.document.body.appendChild(i)),Un=e,Xn=i,Gn=!0}function Vn(t){return t.preventDefault(),!1}function _n(t){var e=t.diagram;if(t.isActive){var i=t.currentContextMenu;if(null!==i){if(!(i instanceof Fn)){var n=e.Sb(e.lastInput.documentPoint,null,null);null!==n&&n.qg(i)&&t.standardMouseClick(null,null)}t.stopTool(),t.canStart()&&(e.currentTool=t,t.doMouseUp())}}else t.canStart()&&(Hn(t,!0),t.isActive||t.stopTool())}function Hn(t,e,i){if(void 0===i&&(i=null),e&&t.standardMouseSelect(),!t.standardMouseClick())if(t.isActive=!0,e=qn,null===i&&(i=t.findObjectWithContextMenu()),null!==i){var n=i.contextMenu;null!==n?(t.currentObject=i instanceof Ks?i:null,t.showContextMenu(n,t.currentObject)):null!==e&&t.showContextMenu(e,t.currentObject)}else null!==e&&t.showContextMenu(e,null)}function Yn(){var t=new nt;return t.add(new In(\"Copy\",(function(t){t.commandHandler.copySelection()}),(function(t){return t.commandHandler.canCopySelection()}))),t.add(new In(\"Cut\",(function(t){t.commandHandler.cutSelection()}),(function(t){return t.commandHandler.canCutSelection()}))),t.add(new In(\"Delete\",(function(t){t.commandHandler.deleteSelection()}),(function(t){return t.commandHandler.canDeleteSelection()}))),t.add(new In(\"Paste\",(function(t){t.commandHandler.pasteSelection(t.lastInput.documentPoint)}),(function(t){return t.commandHandler.canPasteSelection()}))),t.add(new In(\"Select All\",(function(t){t.commandHandler.selectAll()}),(function(t){return t.commandHandler.canSelectAll()}))),t.add(new In(\"Undo\",(function(t){t.commandHandler.undo()}),(function(t){return t.commandHandler.canUndo()}))),t.add(new In(\"Redo\",(function(t){t.commandHandler.redo()}),(function(t){return t.commandHandler.canRedo()}))),t.add(new In(\"Scroll To Part\",(function(t){t.commandHandler.scrollToPart()}),(function(t){return t.commandHandler.canScrollToPart()}))),t.add(new In(\"Zoom To Fit\",(function(t){t.commandHandler.zoomToFit()}),(function(t){return t.commandHandler.canZoomToFit()}))),t.add(new In(\"Reset Zoom\",(function(t){t.commandHandler.resetZoom()}),(function(t){return t.commandHandler.canResetZoom()}))),t.add(new In(\"Group Selection\",(function(t){t.commandHandler.groupSelection()}),(function(t){return t.commandHandler.canGroupSelection()}))),t.add(new In(\"Ungroup Selection\",(function(t){t.commandHandler.ungroupSelection()}),(function(t){return t.commandHandler.canUngroupSelection()}))),t.add(new In(\"Edit Text\",(function(t){t.commandHandler.editTextBlock()}),(function(t){return t.commandHandler.canEditTextBlock()}))),t}Mn.className=\"LinkReshapingTool\",Mn.None=Sn,Mn.Horizontal=Nn,Mn.Vertical=Pn,Mn.All=Tn,I(\"linkReshapingTool\",(function(){return this.findTool(\"LinkReshaping\")}),(function(t){zi(this,\"LinkReshaping\",t,this.mouseDownTools)})),d(Ln,Di),Ln.prototype.updateAdornments=function(t){if(!(null===t||t instanceof nc)){if(t.isSelected&&!this.diagram.isReadOnly){var e=t.resizeObject,i=t.$j(this.name);if(null!==e&&t.canResize()&&t.actualBounds.o()&&t.isVisible()&&e.actualBounds.o()&&e.rf()&&(null!==i&&i.adornedObject===e||(i=this.makeAdornment(e)),null!==i))return e=e.Ji(),Cu(t)&&this.updateResizeHandles(i,e),void t.qh(this.name,i)}t.tf(this.name)}},Ln.prototype.makeAdornment=function(t){var e=t.part.resizeAdornmentTemplate;if(null===e){e=new ju,e.type=Nl.Spot,e.locationSpot=de;var i=new ic;i.isPanelMain=!0,e.add(i),e.add(this.makeHandle(t,he)),e.add(this.makeHandle(t,ce)),e.add(this.makeHandle(t,ve)),e.add(this.makeHandle(t,ge)),e.add(this.makeHandle(t,Ee)),e.add(this.makeHandle(t,Ve)),e.add(this.makeHandle(t,_e)),e.add(this.makeHandle(t,Re))}else if(ql(e),e=e.copy(),null===e)return null;return e.adornedObject=t,e},Ln.prototype.makeHandle=function(t,e){return t=this.handleArchetype,null===t?null:(t=t.copy(),t.alignment=e,t)},Ln.prototype.updateResizeHandles=function(t,e){if(null!==t)if(!t.alignment.Kb()&&(\"pointer\"===t.cursor||0<t.cursor.indexOf(\"resize\")))t:{var i=t.alignment;if(i.jc()&&(i=de),0>=i.x)e=0>=i.y?e+225:1<=i.y?e+135:e+180;else if(1<=i.x)0>=i.y?e+=315:1<=i.y&&(e+=45);else if(0>=i.y)e+=270;else{if(!(1<=i.y))break t;e+=90}0>e?e+=360:360<=e&&(e-=360),t.cursor=22.5>e?\"e-resize\":67.5>e?\"se-resize\":112.5>e?\"s-resize\":157.5>e?\"sw-resize\":202.5>e?\"w-resize\":247.5>e?\"nw-resize\":292.5>e?\"n-resize\":337.5>e?\"ne-resize\":\"e-resize\"}else if(t instanceof Nl)for(t=t.elements;t.next();)this.updateResizeHandles(t.value,e)},Ln.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowResize||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},Ln.prototype.doActivate=function(){var t=this.diagram;null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null!==this.handle&&(this.adornedObject=this.handle.part.adornedObject,null!==this.adornedObject&&(this.ul.set(this.adornedObject.ma(this.handle.alignment.rv())),this.Io.set(this.adornedObject.part.location),this.Gw.set(this.adornedObject.desiredSize),this.Wt=this.computeCellSize(),this.Yt=this.computeMinSize(),this.Xt=this.computeMaxSize(),t.isMouseCaptured=!0,this.Dw=t.animationManager.isEnabled,t.animationManager.isEnabled=!1,this.Aa(this.name),this.isActive=!0))},Ln.prototype.doDeactivate=function(){var t=this.diagram;this.vg(),this.$d=this.handle=null,this.isActive=t.isMouseCaptured=!1,t.animationManager.isEnabled=this.Dw},Ln.prototype.doCancel=function(){null!==this.adornedObject&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ln.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive){var e=this.Yt,i=this.Xt,n=this.Wt,o=this.adornedObject.Ws(t.lastInput.documentPoint,mt.alloc()),r=this.computeReshape();e=this.computeResize(o,this.handle.alignment,e,i,n,r),this.resize(e),t.fd(),mt.free(o)}},Ln.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){var e=this.Yt,i=this.Xt,n=this.Wt,o=this.adornedObject.Ws(t.lastInput.documentPoint,mt.alloc()),r=this.computeReshape();e=this.computeResize(o,this.handle.alignment,e,i,n,r),this.resize(e),mt.free(o),t.Xa(),this.transactionResult=this.name,t.aa(\"PartResized\",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ln.prototype.resize=function(t){var e=this.diagram,i=this.adornedObject,n=i.part;i.desiredSize=t.size,n.ac(),t=this.adornedObject.ma(this.handle.alignment.rv()),n instanceof Ju?(i=new nt,i.add(n),e.moveParts(i,this.ul.copy().Xd(t),!0)):n.location=n.location.copy().Xd(t).add(this.ul)},Ln.prototype.computeResize=function(t,e,i,n,o,r){e.jc()&&(e=de);var s=this.adornedObject.naturalBounds,a=s.x,l=s.y,h=s.x+s.width,u=s.y+s.height,c=1;if(!r){c=s.width;var f=s.height;0>=c&&(c=1),0>=f&&(f=1),c=f/c}return f=mt.alloc(),We.Tp(t.x,t.y,a,l,o.width,o.height,f),t=s.copy(),0>=e.x?0>=e.y?(t.x=Math.max(f.x,h-n.width),t.x=Math.min(t.x,h-i.width),t.width=Math.max(h-t.x,i.width),t.y=Math.max(f.y,u-n.height),t.y=Math.min(t.y,u-i.height),t.height=Math.max(u-t.y,i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width),t.x=h-t.width,t.y=u-t.height)):1<=e.y?(t.x=Math.max(f.x,h-n.width),t.x=Math.min(t.x,h-i.width),t.width=Math.max(h-t.x,i.width),t.height=Math.max(Math.min(f.y-l,n.height),i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width),t.x=h-t.width)):(t.x=Math.max(f.x,h-n.width),t.x=Math.min(t.x,h-i.width),t.width=h-t.x,r||(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c,t.y=l+.5*(u-l-t.height))):1<=e.x?0>=e.y?(t.width=Math.max(Math.min(f.x-a,n.width),i.width),t.y=Math.max(f.y,u-n.height),t.y=Math.min(t.y,u-i.height),t.height=Math.max(u-t.y,i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width),t.y=u-t.height)):1<=e.y?(t.width=Math.max(Math.min(f.x-a,n.width),i.width),t.height=Math.max(Math.min(f.y-l,n.height),i.height),r||(1<=t.height/t.width?(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c):(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width))):(t.width=Math.max(Math.min(f.x-a,n.width),i.width),r||(t.height=Math.max(Math.min(c*t.width,n.height),i.height),t.width=t.height/c,t.y=l+.5*(u-l-t.height))):0>=e.y?(t.y=Math.max(f.y,u-n.height),t.y=Math.min(t.y,u-i.height),t.height=u-t.y,r||(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width,t.x=a+.5*(h-a-t.width))):1<=e.y&&(t.height=Math.max(Math.min(f.y-l,n.height),i.height),r||(t.width=Math.max(Math.min(t.height/c,n.width),i.width),t.height=c*t.width,t.x=a+.5*(h-a-t.width))),mt.free(f),t},Ln.prototype.computeReshape=function(){var t=ts;return this.adornedObject instanceof sh&&(t=lh(this.adornedObject)),!(t===es||this.diagram.lastInput.shift)},Ln.prototype.computeMinSize=function(){var t=this.adornedObject.minSize.copy(),e=this.minSize;return!isNaN(e.width)&&e.width>t.width&&(t.width=e.width),!isNaN(e.height)&&e.height>t.height&&(t.height=e.height),t},Ln.prototype.computeMaxSize=function(){var t=this.adornedObject.maxSize.copy(),e=this.maxSize;return!isNaN(e.width)&&e.width<t.width&&(t.width=e.width),!isNaN(e.height)&&e.height<t.height&&(t.height=e.height),t},Ln.prototype.computeCellSize=function(){var t=new It(NaN,NaN),e=this.adornedObject.part;return null!==e&&(e=e.resizeCellSize,!isNaN(e.width)&&0<e.width&&(t.width=e.width),!isNaN(e.height)&&0<e.height&&(t.height=e.height)),e=this.cellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height),e=this.diagram,(isNaN(t.width)||isNaN(t.height))&&e&&(e=e.grid,null!==e&&e.visible&&this.isGridSnapEnabled&&(e=e.gridCellSize,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height))),(isNaN(t.width)||0===t.width||1/0===t.width)&&(t.width=1),(isNaN(t.height)||0===t.height||1/0===t.height)&&(t.height=1),t},p.Object.defineProperties(Ln.prototype,{handleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},handle:{get:function(){return this.l},set:function(t){if(null!==t&&!(t.part instanceof ju))throw Error(\"new handle is not in an Adornment: \"+t);this.l=t}},adornedObject:{get:function(){return this.$d},set:function(t){if(null!==t&&t.part instanceof ju)throw Error(\"new handle must not be in an Adornment: \"+t);this.$d=t}},minSize:{get:function(){return this.Qf},set:function(t){if(!this.Qf.A(t)){var e=t.width;isNaN(e)&&(e=0),t=t.height,isNaN(t)&&(t=0),this.Qf.h(e,t)}}},maxSize:{get:function(){return this.Pf},set:function(t){if(!this.Pf.A(t)){var e=t.width;isNaN(e)&&(e=1/0),t=t.height,isNaN(t)&&(t=1/0),this.Pf.h(e,t)}}},cellSize:{get:function(){return this.Bg},set:function(t){this.Bg.A(t)||this.Bg.assign(t)}},isGridSnapEnabled:{get:function(){return this.K},set:function(t){this.K=t}},originalDesiredSize:{get:function(){return this.Gw}},originalLocation:{get:function(){return this.Io}}}),Ln.className=\"ResizingTool\",I(\"resizingTool\",(function(){return this.findTool(\"Resizing\")}),(function(t){zi(this,\"Resizing\",t,this.mouseDownTools)})),d(On,Di),On.prototype.updateAdornments=function(t){if(null!==t){if(t.zh()){var e=t.rotateObject;if(e===t||e===t.path||e.isPanelMain)return}if(t.isSelected&&!this.diagram.isReadOnly&&(e=t.rotateObject,null!==e&&t.canRotate()&&t.actualBounds.o()&&t.isVisible()&&e.actualBounds.o()&&e.rf())){var i=t.$j(this.name);if(null!==i&&i.adornedObject===e||(i=this.makeAdornment(e)),null!==i)return i.angle=e.Ji(),null===i.placeholder&&(i.location=this.computeAdornmentLocation(e)),void t.qh(this.name,i)}t.tf(this.name)}},On.prototype.makeAdornment=function(t){var e=t.part.rotateAdornmentTemplate;if(null===e){e=new ju,e.type=Nl.Position,e.locationSpot=de;var i=this.handleArchetype;null!==i&&e.add(i.copy())}else if(ql(e),e=e.copy(),null===e)return null;return e.adornedObject=t,e},On.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(t.isReadOnly||!t.allowRotate||!t.lastInput.left)&&null!==this.findToolHandleAt(t.firstInput.documentPoint,this.name)},On.prototype.doActivate=function(){var t=this.diagram;if(null===this.adornedObject){if(null===this.handle&&(this.handle=this.findToolHandleAt(t.firstInput.documentPoint,this.name)),null===this.handle)return;this.adornedObject=this.handle.part.adornedObject}null!==this.adornedObject&&(this.Fw=this.adornedObject.angle,this.qu=this.computeRotationPoint(this.adornedObject),this.Io=this.adornedObject.part.location.copy(),t.isMouseCaptured=!0,t.delaysLayout=!0,this.Aa(this.name),this.isActive=!0)},On.prototype.computeRotationPoint=function(t){var e=t.part,i=e.locationObject;return e.rotationSpot.gb()?t.ma(e.rotationSpot):t===e||t===i?i.ma(e.locationSpot):t.ma(de)},On.prototype.computeAdornmentLocation=function(t){var e=this.rotationPoint;e.o()||(e=this.computeRotationPoint(t)),e=t.Ws(e);var i=this.handleAngle;0>i?i+=360:360<=i&&(i-=360),i=Math.round(45*Math.round(i/45));var n=this.handleDistance;return 0===i?e.x=t.naturalBounds.width+n:45===i?(e.x=t.naturalBounds.width+n,e.y=t.naturalBounds.height+n):90===i?e.y=t.naturalBounds.height+n:135===i?(e.x=-n,e.y=t.naturalBounds.height+n):180===i?e.x=-n:225===i?(e.x=-n,e.y=-n):270===i?e.y=-n:315===i&&(e.x=t.naturalBounds.width+n,e.y=-n),t.ma(e)},On.prototype.doDeactivate=function(){var t=this.diagram;this.vg(),this.$d=this.handle=null,this.qu=new mt(NaN,NaN),this.isActive=t.isMouseCaptured=!1},On.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},On.prototype.doMouseMove=function(){var t=this.diagram;this.isActive&&(t=this.computeRotate(t.lastInput.documentPoint),this.rotate(t))},On.prototype.doMouseUp=function(){var t=this.diagram;if(this.isActive){t.delaysLayout=!1;var e=this.computeRotate(t.lastInput.documentPoint);this.rotate(e),t.Xa(),this.transactionResult=this.name,t.aa(\"PartRotated\",this.adornedObject,this.originalAngle)}this.stopTool()},On.prototype.rotate=function(t){var e=this.adornedObject;if(null!==e){e.angle=t,e=e.part,e.ac();var i=e.locationObject,n=e.rotateObject;(i===n||i.qg(n))&&(i=this.Io.copy(),e.location=i.Xd(this.rotationPoint).rotate(t-this.originalAngle).add(this.rotationPoint))}},On.prototype.computeRotate=function(t){t=this.rotationPoint.Wa(t)-this.handleAngle;var e=this.adornedObject.panel;null!==e&&(t-=e.Ji()),360<=t?t-=360:0>t&&(t+=360),e=Math.min(Math.abs(this.snapAngleMultiple),180);var i=Math.min(Math.abs(this.snapAngleEpsilon),e/2);return!this.diagram.lastInput.shift&&0<e&&0<i&&(t%e<i?t=Math.floor(t/e)*e:t%e>e-i&&(t=(Math.floor(t/e)+1)*e)),360<=t?t-=360:0>t&&(t+=360),t},p.Object.defineProperties(On.prototype,{handleArchetype:{get:function(){return this.u},set:function(t){this.u=t}},handle:{get:function(){return this.l},set:function(t){if(null!==t&&!(t.part instanceof ju))throw Error(\"new handle is not in an Adornment: \"+t);this.l=t}},adornedObject:{get:function(){return this.$d},set:function(t){if(null!==t&&t.part instanceof ju)throw Error(\"new handle must not be in an Adornment: \"+t);this.$d=t}},snapAngleMultiple:{get:function(){return this.Ma},set:function(t){this.Ma=t}},snapAngleEpsilon:{get:function(){return this.La},set:function(t){this.La=t}},originalAngle:{get:function(){return this.Fw}},rotationPoint:{get:function(){return this.qu}},handleAngle:{get:function(){return this.K},set:function(t){this.K=t}},handleDistance:{get:function(){return this.ba},set:function(t){this.ba=t}}}),On.className=\"RotatingTool\",I(\"rotatingTool\",(function(){return this.findTool(\"Rotating\")}),(function(t){zi(this,\"Rotating\",t,this.mouseDownTools)})),d(Dn,Di),Dn.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Dn.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Dn.className=\"ClickSelectingTool\",d(jn,Di),jn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram,e=t.lastInput,i=t.Sb(e.documentPoint,(function(t){for(;null!==t.panel&&!t.isActionable;)t=t.panel;return t}));return null!==i&&(!!i.isActionable&&(this.uk=i,t.Jk=t.Sb(e.documentPoint,null,null),!0))},jn.prototype.doMouseDown=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.uk;null!==e&&(t.targetObject=e,null!==e.actionDown&&e.actionDown(t,e))}else this.canStart()&&this.doActivate()},jn.prototype.doMouseMove=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.uk;null!==e&&(t.targetObject=e,null!==e.actionMove&&e.actionMove(t,e))}},jn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram.lastInput,e=this.uk;if(null===e)return;t.targetObject=e,null!==e.actionUp&&e.actionUp(t,e),this.standardMouseClick((function(t){for(;null!==t.panel&&(!t.isActionable||t!==e);)t=t.panel;return t}),(function(t){return t===e}))}this.stopTool()},jn.prototype.doCancel=function(){var t=this.diagram.lastInput,e=this.uk;null!==e&&(t.targetObject=e,null!==e.actionCancel&&e.actionCancel(t,e),this.stopTool())},jn.prototype.doStop=function(){this.uk=null},jn.className=\"ActionTool\",d(An,Di),An.prototype.canStart=function(){if(!this.isEnabled||null===this.archetypeNodeData)return!1;var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(1===t.lastInput.clickCount&&(this.xw=t.lastInput.viewPoint.copy()),2!==t.lastInput.clickCount||this.isBeyondDragSize(this.xw))return!1}else if(1!==t.lastInput.clickCount)return!1;return t.currentTool===this||null===t.$l(t.lastInput.documentPoint,!0)},An.prototype.doMouseUp=function(){var t=this.diagram;this.isActive&&this.insertPart(t.lastInput.documentPoint),this.stopTool()},An.prototype.insertPart=function(t){var e=this.diagram,i=this.archetypeNodeData;if(null===i)return null;this.Aa(this.name);var n=null;return i instanceof lu?i.Lb()&&(ql(i),n=i.copy(),null!==n&&e.add(n)):null!==i&&(i=e.model.copyNodeData(i),P(i)&&(e.model.hf(i),n=e.vc(i))),null!==n&&(i=mt.allocAt(t.x,t.y),this.isGridSnapEnabled&&Mr(this.diagram,n,t,i),n.location=i,e.allowSelect&&e.select(n),mt.free(i)),e.Xa(),this.transactionResult=this.name,e.aa(\"PartCreated\",n),this.vg(),n},p.Object.defineProperties(An.prototype,{archetypeNodeData:{get:function(){return this.$i},set:function(t){this.$i=t}},isDoubleClick:{get:function(){return this.u},set:function(t){this.u=t}},isGridSnapEnabled:{get:function(){return this.l},set:function(t){this.l=t}}}),An.className=\"ClickCreatingTool\",d(Bn,Di),Bn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(!t.allowSelect)return!1;var e=t.lastInput;return!(!e.left||t.currentTool!==this&&(!this.isBeyondDragSize()||e.timestamp-t.firstInput.timestamp<this.delay||null!==t.$l(e.documentPoint,!0)))},Bn.prototype.doActivate=function(){var t=this.diagram;this.isActive=!0,t.isMouseCaptured=!0,t.skipsUndoManager=!0,t.add(this.box),this.doMouseMove()},Bn.prototype.doDeactivate=function(){var t=this.diagram;t.vf(),t.remove(this.box),t.skipsUndoManager=!1,this.isActive=t.isMouseCaptured=!1},Bn.prototype.doMouseMove=function(){var t=this.diagram;if(this.isActive&&null!==this.box){var e=this.computeBoxBounds(),i=this.box.$a(\"SHAPE\");null===i&&(i=this.box.zb());var n=It.alloc().h(e.width,e.height);e=mt.alloc().h(e.x,e.y),i.desiredSize=n,this.box.position=e,It.free(n),mt.free(e),(t.allowHorizontalScroll||t.allowVerticalScroll)&&t.Os(t.lastInput.viewPoint)}},Bn.prototype.doMouseUp=function(){if(this.isActive){var t=this.diagram;t.remove(this.box);try{t.currentCursor=\"wait\",t.aa(\"ChangingSelection\",t.selection),this.selectInRect(this.computeBoxBounds()),t.aa(\"ChangedSelection\",t.selection)}finally{t.currentCursor=\"\"}}this.stopTool()},Bn.prototype.computeBoxBounds=function(){var t=this.diagram;return new _t(t.firstInput.documentPoint,t.lastInput.documentPoint)},Bn.prototype.selectInRect=function(t){var e=this.diagram,i=e.lastInput;if(t=e.kx(t,this.isPartialInclusion),q?i.meta:i.control)if(i.shift)for(t=t.iterator;t.next();)e=t.value,e.isSelected&&(e.isSelected=!1);else for(t=t.iterator;t.next();)e=t.value,e.isSelected=!e.isSelected;else if(i.shift)for(t=t.iterator;t.next();)e=t.value,e.isSelected||(e.isSelected=!0);else{for(i=new nt,e=e.selection.iterator;e.next();){var n=e.value;t.contains(n)||i.add(n)}for(e=i.iterator;e.next();)e.value.isSelected=!1;for(t=t.iterator;t.next();)e=t.value,e.isSelected||(e.isSelected=!0)}},p.Object.defineProperties(Bn.prototype,{delay:{get:function(){return this.Qk},set:function(t){this.Qk=t}},isPartialInclusion:{get:function(){return this.u},set:function(t){this.u=t}},box:{get:function(){return this.l},set:function(t){this.l=t}}}),Bn.className=\"DragSelectingTool\",d(zn,Di),zn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(!t.allowHorizontalScroll&&!t.allowVerticalScroll||!t.lastInput.left||t.currentTool!==this&&!this.isBeyondDragSize())},zn.prototype.doActivate=function(){var t=this.diagram;this.Ag?(t.lastInput.bubbles=!0,v.document.addEventListener(\"scroll\",this.Jw,!1)):(t.currentCursor=\"move\",t.isMouseCaptured=!0,this.lu.assign(t.position)),this.isActive=!0},zn.prototype.doDeactivate=function(){var t=this.diagram;t.currentCursor=\"\",this.isActive=t.isMouseCaptured=!1},zn.prototype.doCancel=function(){var t=this.diagram;t.position=this.lu,t.isMouseCaptured=!1,this.stopTool()},zn.prototype.doMouseMove=function(){this.move()},zn.prototype.doMouseUp=function(){this.move(),this.stopTool()},zn.prototype.move=function(){var t=this.diagram;if(this.isActive&&t)if(this.Ag)t.lastInput.bubbles=!0;else{var e=t.position,i=t.firstInput.documentPoint,n=t.lastInput.documentPoint,o=e.x+i.x-n.x;i=e.y+i.y-n.y,t.allowHorizontalScroll||(o=e.x),t.allowVerticalScroll||(i=e.y),t.position=this.by.h(o,i)}},p.Object.defineProperties(zn.prototype,{bubbles:{get:function(){return this.Ag},set:function(t){this.Ag=t}},originalPosition:{get:function(){return this.lu}}}),zn.className=\"PanningTool\",I(\"clickCreatingTool\",(function(){return this.findTool(\"ClickCreating\")}),(function(t){zi(this,\"ClickCreating\",t,this.mouseUpTools)})),I(\"clickSelectingTool\",(function(){return this.findTool(\"ClickSelecting\")}),(function(t){zi(this,\"ClickSelecting\",t,this.mouseUpTools)})),I(\"panningTool\",(function(){return this.findTool(\"Panning\")}),(function(t){zi(this,\"Panning\",t,this.mouseMoveTools)})),I(\"dragSelectingTool\",(function(){return this.findTool(\"DragSelecting\")}),(function(t){zi(this,\"DragSelecting\",t,this.mouseMoveTools)})),I(\"actionTool\",(function(){return this.findTool(\"Action\")}),(function(t){zi(this,\"Action\",t,this.mouseDownTools)})),p.Object.defineProperties(Fn.prototype,{mainElement:{get:function(){return this.K},set:function(t){this.K=t}},show:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},hide:{get:function(){return this.l},set:function(t){this.l!==t&&(this.l=t)}},valueFunction:{get:function(){return this.ba},set:function(t){this.ba=t}}}),Fn.className=\"HTMLInfo\",In.className=\"ContextMenuButtonInfo\",d(En,Di),En.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;return!(this.isBeyondDragSize()||!t.lastInput.right)&&!!(t.lastInput.isTouchEvent&&null!==this.defaultTouchContextMenu||null!==this.findObjectWithContextMenu())},En.prototype.doStart=function(){this.Cw.set(this.diagram.firstInput.documentPoint)},En.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},En.prototype.findObjectWithContextMenu=function(t){void 0===t&&(t=null);var e=this.diagram,i=e.lastInput,n=null;if(t instanceof Do||(n=t instanceof Ks?t:e.Sb(i.documentPoint,null,(function(t){return!t.layer.isTemporary}))),null!==n){for(t=n;null!==t;){if(null!==t.contextMenu)return t;t=t.panel}if(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return n.part}else if(null!==e.contextMenu)return e;return null},En.prototype.doActivate=function(){},En.prototype.doMouseDown=function(){if(Di.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof ju){var t=this.diagram.toolManager.findTool(\"Action\");null!==t&&t.canStart()&&(t.doActivate(),t.doMouseDown(),t.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&_n(this)},En.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof ju){var t=this.diagram.toolManager.findTool(\"Action\");null!==t&&t.canStart()&&(t.doActivate(),t.doCancel(),t.doDeactivate())}_n(this)},En.prototype.doMouseMove=function(){var t=this.diagram.toolManager.findTool(\"Action\");null!==t&&t.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},En.prototype.showContextMenu=function(t,e){var i=this.diagram;if(t!==this.currentContextMenu&&this.hideContextMenu(),t instanceof ju){t.layerName=\"Tool\",t.selectable=!1,t.scale=1/i.scale,t.category=this.name,null!==t.placeholder&&(t.placeholder.scale=i.scale);var n=t.diagram;null!==n&&n!==i&&n.remove(t),i.add(t),null!==e?t.adornedObject=e:t.data=i.model,t.ac(),this.positionContextMenu(t,e)}else t instanceof Fn&&t.show(e,i,this);this.currentContextMenu=t},En.prototype.positionContextMenu=function(t){if(null===t.placeholder){var e=this.diagram,i=e.lastInput.documentPoint.copy(),n=t.measuredBounds,o=e.viewportBounds;e.lastInput.isTouchEvent&&(i.x-=n.width),i.x+n.width>o.right&&(i.x-=n.width+5/e.scale),i.x<o.x&&(i.x=o.x),i.y+n.height>o.bottom&&(i.y-=n.height+5/e.scale),i.y<o.y&&(i.y=o.y),t.position=i}},En.prototype.hideContextMenu=function(){var t=this.diagram,e=this.currentContextMenu;null!==e&&(e instanceof ju?(t.remove(e),null!==this.Nt&&this.Nt.tf(e.category),e.data=null,e.adornedObject=null):e instanceof Fn&&(null!==e.hide?e.hide(t,this):null!==e.mainElement&&(e.mainElement.style.display=\"none\")),this.currentContextMenu=null,this.standardMouseOver())},En.prototype.showDefaultContextMenu=function(){var t=this.diagram;null===this.Ot&&(this.Ot=Yn()),Un.innerHTML=\"\",Xn.addEventListener(\"click\",this.Au,!1);var e=this,i=x(\"ul\");i.className=\"goCXul\",Un.appendChild(i),i.innerHTML=\"\";for(var n=this.Ot.iterator;n.next();){var o=n.value,r=o.visible;if(\"function\"===typeof o.Zw&&(\"function\"!==typeof r||r(t))){r=x(\"li\"),r.className=\"goCXli\";var s=x(\"a\");s.className=\"goCXa\",s.href=\"#\",s.Ux=o.Zw,s.addEventListener(\"click\",(function(i){return this.Ux(t),e.stopTool(),i.preventDefault(),!1}),!1),s.textContent=o.text,r.appendChild(s),i.appendChild(r)}}Un.style.display=\"block\",Xn.style.display=\"block\"},En.prototype.hideDefaultContextMenu=function(){null!==this.currentContextMenu&&this.currentContextMenu===qn&&(Un.style.display=\"none\",Xn.style.display=\"none\",Xn.removeEventListener(\"click\",this.Au,!1),this.currentContextMenu=null)},p.Object.defineProperties(En.prototype,{currentContextMenu:{get:function(){return this.l},set:function(t){this.l=t,this.Nt=t instanceof ju?t.adornedPart:null}},defaultTouchContextMenu:{get:function(){return!1===Gn&&null===qn&&ds&&Rn(this),qn},set:function(t){null===t&&(Gn=!0),qn=t}},currentObject:{get:function(){return this.u},set:function(t){this.u=t}},mouseDownPoint:{get:function(){return this.Cw}}});var qn=null,Gn=!1,Xn=null,Un=null;function Kn(){Di.call(this),this.name=\"TextEditing\",this.kh=new mh,this.Ma=null,this.La=io,this.vi=null,this.la=oo,this.K=1,this.ba=!0,this.u=null,this.l=new Fn,this.Pt=null,$n(this,this.l)}function $n(t,e){if(ds){var i=x(\"textarea\");t.Pt=i,i.addEventListener(\"input\",(function(){if(null!==t.textBlock){var e=t.ux(this.value);this.style.width=20+e.measuredBounds.width*this.Wz+\"px\",this.rows=e.lineCount}}),!1),i.addEventListener(\"keydown\",(function(e){if(null!==t.textBlock){var i=e.which;13===i?(!1===t.textBlock.isMultiline&&e.preventDefault(),t.acceptText(to)):9===i?(t.acceptText(Qn),e.preventDefault()):27===i&&(t.doCancel(),null!==t.diagram&&t.diagram.doFocus())}}),!1),i.addEventListener(\"focus\",(function(){if(null!==t.currentTextEditor&&t.state!==oo){var e=t.Pt;t.la===ro&&(t.la=so),\"function\"===typeof e.select&&t.selectsTextOnActivate&&(e.select(),e.setSelectionRange(0,9999))}}),!1),i.addEventListener(\"blur\",(function(){if(null!==t.currentTextEditor&&t.state!==oo){var e=t.Pt;\"function\"===typeof e.focus&&e.focus(),\"function\"===typeof e.select&&t.selectsTextOnActivate&&(e.select(),e.setSelectionRange(0,9999))}}),!1),e.valueFunction=function(){return i.value},e.mainElement=i,e.show=function(t,e,n){if(t instanceof mh&&n instanceof Kn)if(n.state===lo)i.style.border=\"3px solid red\",i.focus();else{var o=t.ma(de),r=e.position,s=e.scale,a=t.Ce()*s;a<n.minimumEditorScale&&(a=n.minimumEditorScale);var l=t.naturalBounds.width*a+6,h=t.naturalBounds.height*a+2,u=(o.x-r.x)*s;o=(o.y-r.y)*s,i.value=t.text,e.div.style.font=t.font,i.style.position=\"absolute\",i.style.zIndex=\"100\",i.style.font=\"inherit\",i.style.fontSize=100*a+\"%\",i.style.lineHeight=\"normal\",i.style.width=l+\"px\",i.style.left=(u-l/2|0)-1+\"px\",i.style.top=(o-h/2|0)-1+\"px\",i.style.textAlign=t.textAlign,i.style.margin=\"0\",i.style.padding=\"1px\",i.style.border=\"0\",i.style.outline=\"none\",i.style.whiteSpace=\"pre-wrap\",i.style.overflow=\"hidden\",i.rows=t.lineCount,i.Wz=a,i.className=\"goTXarea\",e.div.appendChild(i),i.focus(),n.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},e.hide=function(t){t.div.removeChild(i)}}}function Wn(t){var e=t.textBlock,i=t.diagram,n=t.currentTextEditor;if(null!==e&&null!==n){var o=e.text,r=\"\";null!==n.valueFunction&&(r=n.valueFunction()),t.isValidText(e,o,r)?(t.Aa(t.name),t.la=ho,t.transactionResult=t.name,e.text=r,null!==e.textEdited&&e.textEdited(e,o,r),null!==i&&i.aa(\"TextEdited\",e,o),t.vg(),t.stopTool(),null!==i&&i.doFocus()):(t.la=lo,null!==e.errorFunction&&e.errorFunction(t,o,r),n.show(e,i,t))}}En.className=\"ContextMenuTool\",I(\"contextMenuTool\",(function(){return this.findTool(\"ContextMenu\")}),(function(t){zi(this,\"ContextMenu\",t,this.mouseUpTools)})),d(Kn,Di),Kn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(null===t||t.isReadOnly||!t.lastInput.left||this.isBeyondDragSize())return!1;var e=t.Sb(t.lastInput.documentPoint);return!!(null!==e&&e instanceof mh&&e.editable&&e.part.canEdit())&&(e=e.part,!(null===e||this.starting===io&&!e.isSelected||this.starting===no&&2>t.lastInput.clickCount))},Kn.prototype.doStart=function(){this.isActive||null===this.textBlock||this.doActivate()},Kn.prototype.doActivate=function(){if(!this.isActive){var t=this.diagram;if(null!==t){var e=this.textBlock;if(null===e&&(e=t.Sb(t.lastInput.documentPoint)),null!==e&&e instanceof mh&&(this.textBlock=e,null!==e.part)){this.isActive=!0,this.la=ro;var i=this.defaultTextEditor;null!==e.textEditor&&(i=e.textEditor),this.kh=this.textBlock.copy();var n=new _t(this.textBlock.ma(he),this.textBlock.ma(ve));t.Fv(n),i.show(e,t,this),this.currentTextEditor=i}}}},Kn.prototype.doCancel=function(){this.stopTool()},Kn.prototype.doMouseUp=function(){!this.isActive&&this.canStart()&&this.doActivate()},Kn.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Zn)},Kn.prototype.acceptText=function(t){switch(t){case Zn:this.la===ho?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():this.la!==ro&&this.la!==lo&&this.la!==so||(this.la=ao,Wn(this));break;case Jn:case to:case Qn:to===t&&!0===this.textBlock.isMultiline||this.la!==ro&&this.la!==lo&&this.la!==so||(this.la=ao,Wn(this))}},Kn.prototype.doDeactivate=function(){var t=this.diagram;null!==t&&(this.la=oo,this.textBlock=null,null!==this.currentTextEditor&&this.currentTextEditor.hide(t,this),this.isActive=!1)},Kn.prototype.isValidText=function(t,e,i){var n=this.textValidation;return!(null!==n&&!n(t,e,i))&&(n=t.textValidation,!(null!==n&&!n(t,e,i)))},Kn.prototype.ux=function(t){var e=this.kh;return e.text=t,e.measure(this.textBlock.jl,1/0),e},p.Object.defineProperties(Kn.prototype,{textBlock:{get:function(){return this.Ma},set:function(t){this.Ma=t}},currentTextEditor:{get:function(){return this.u},set:function(t){this.u=t}},defaultTextEditor:{get:function(){return this.l},set:function(t){this.l=t}},starting:{get:function(){return this.La},set:function(t){this.La=t}},textValidation:{get:function(){return this.vi},set:function(t){this.vi=t}},minimumEditorScale:{get:function(){return this.K},set:function(t){this.K=t}},selectsTextOnActivate:{get:function(){return this.ba},set:function(t){this.ba=t}},state:{get:function(){return this.la},set:function(t){this.la!==t&&(this.la=t)}}}),Kn.prototype.measureTemporaryTextBlock=Kn.prototype.ux;var Jn=new K(Kn,\"LostFocus\",0),Zn=new K(Kn,\"MouseDown\",1),Qn=new K(Kn,\"Tab\",2),to=new K(Kn,\"Enter\",3),eo=new K(Kn,\"SingleClick\",0),io=new K(Kn,\"SingleClickSelected\",1),no=new K(Kn,\"DoubleClick\",2),oo=new K(Kn,\"StateNone\",0),ro=new K(Kn,\"StateActive\",1),so=new K(Kn,\"StateEditing\",2),ao=new K(Kn,\"StateValidating\",3),lo=new K(Kn,\"StateInvalid\",4),ho=new K(Kn,\"StateValidated\",5);function uo(){So||(Mo(),So=!0),this.pw=co,this.C=hs,this.rn=this.sn=null,this.Zi=this.tn=this.un=0,this.Ak=this.Yg=this.rb=this.Dr=this.Kf=!1,this.Pg=this.Dc=!0,this.Uq=this.Tq=this.ow=null,this.nw=0,this.Wq=new gt,this.Vt=600,this.Wx=new mt(0,0),this.lw=this.kw=this.Mw=!1,this.zk=new rt,this.xj=new gt,this.Uk=new gt,this.$r=new rt,this.Vq=null}function co(t,e,i,n){return t/=n/2,1>t?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e}function fo(t){if(t.Dc&&(t.zk.clear(),t.rb))if(t.Ak){if(0===t.Zi){var e=+new Date;t.Zi=e,v.requestAnimationFrame((function(){if(!1!==t.rb&&!t.Kf&&t.Zi===e){var i=t.C;i.De(\"temporaryPixelRatio\")&&Fo(i),Eo(i),t.rb=!1,t.Yg=!1,i.aa(\"AnimationStarting\"),mo(t,e)}}))}}else t.rb=!1,t.Yg=!1}function po(t){return t instanceof mt||t instanceof It?t.copy():t}function go(t,e){return!!t.Kf&&(t=t.xj.J(e),null!==t&&t.pt)}function mo(t,e){function i(){if(!1!==o.Kf&&o.Zi===e){var t=+new Date,r=t>p?h:t-d;vo(o),bo(o,n,f,s,r,h),o.Tq&&o.Tq(),ar(n),yo(o),t>p?wo(o):v.requestAnimationFrame(i)}}var n=t.C;if(null!==n){var o=t,r=t.Vq||{},s=r.cA||t.pw,a=r.gA||null,l=r.hA||null,h=r.duration||t.Vt,u=t.Wx;for(r=t.xj.iterator;r.next();){var c=r.value.start.position;c instanceof mt&&(c.o()||c.assign(u))}t.ow=s,t.Tq=a,t.Uq=l,t.nw=h,t.Wq=t.xj;var f=t.Wq;for(r=f.iterator;r.next();)a=r.value.end,a[\"position:placeholder\"]&&(l=r.key.findVisibleNode(),l instanceof Ju&&null!==l.placeholder&&(u=l.placeholder,l=u.ma(he),u=u.padding,l.x+=u.left,l.y+=u.top,a[\"position:placeholder\"]=l));t.Kf=!0,vo(t),bo(t,n,f,s,0,h),ar(t.C,!0),yo(t);var d=+new Date,p=d+h;o.Zi===e&&v.requestAnimationFrame((function(){i()}))}}function vo(t){if(!t.Dr){var e=t.C;t.Mw=e.skipsUndoManager,t.kw=e.skipsModelSourceBindings,t.lw=e.Ui,e.skipsUndoManager=!0,e.skipsModelSourceBindings=!0,e.Ui=!0,t.Dr=!0}}function yo(t){var e=t.C;e.skipsUndoManager=t.Mw,e.skipsModelSourceBindings=t.kw,e.Ui=t.lw,t.Dr=!1}function bo(t,e,i,n,o,r){for(i=i.iterator;i.next();){var s=i.key,a=i.value,l=a.start,h=a.end,u=Co;for(c in h)\"position\"===c&&(h[\"position:placeholder\"]||h[\"position:node\"])||null===u.get(c)||u.get(c)(s,l[c],h[c],n,o,r,a)}n=e.jv,e.jv=!0;var c=t.pw;0!==t.un&&0!==t.tn&&(i=t.un,e.Ca=c(o,i,t.tn-i,r)),null!==t.sn&&null!==t.rn&&(i=t.sn,t=t.rn,e.sa=new mt(c(o,i.x,t.x-i.x,r),c(o,i.y,t.y-i.y,r))),e.jv=n}function wo(t){t.Kf=!1,t.Ak=!1,vo(t);for(var e=t.C,i=t.ow,n=t.nw,o=t.Wq,r=t.Uk.iterator;r.next();)e.remove(r.value);for(r=t.$r.iterator;r.next();)r.value.s();for(o=o.iterator,r=Co;o.next();){var s,a=o.key,l=o.value,h=l.start,u=l.end,c=l.Uu;for(s in u)if(null!==r.get(s)){var f=s;!l.Pu||\"position:node\"!==f&&\"position:placeholder\"!==f||(f=\"position\"),r.get(f)(a,h[s],void 0!==c[s]?c[s]:l.Pu?h[s]:u[s],i,n,n)}l.Pu&&void 0!==c.location&&a instanceof lu&&(a.location=c.location),l.pt&&a instanceof lu&&a.Mb(!1)}for(i=t.C.links;i.next();)n=i.value,null!==n.bh&&(n.points=n.bh,n.bh=null);e.gt.clear(),Io(e,!1),e.Xa(),e.R(),e.fd(),rr(e),yo(t),t.Uq&&t.Uq(),t.Zi=0,t.Wq.clear(),t.Uq=null,t.Tq=null,t.sn=null,t.rn=null,t.un=0,t.tn=0,t.xj.clear(),0<t.Uk.count&&t.Uk.clear(),0<t.$r.count&&t.$r.clear(),t.Vq=null,e.aa(\"AnimationFinished\"),e.cc()}function xo(t,e,i){t.rb&&!e.A(i)&&(null===t.sn&&e.o()&&null===t.rn&&(t.sn=e.copy()),t.rn=i.copy(),t.Ak=!0)}function ko(t,e,i){t.rb&&t.C.Oi&&(0===t.un&&0===t.tn&&(t.un=e),t.tn=i,t.Ak=!0)}function Mo(){var t=new gt;t.add(\"position\",(function(t,e,i,n,o,r){o!==r?t.wt(n(o,e.x,i.x-e.x,r),n(o,e.y,i.y-e.y,r)):t.position=new mt(n(o,e.x,i.x-e.x,r),n(o,e.y,i.y-e.y,r))})),t.add(\"position:placeholder\",(function(t,e,i,n,o,r){o!==r?t.wt(n(o,e.x,i.x-e.x,r),n(o,e.y,i.y-e.y,r)):t.position=new mt(n(o,e.x,i.x-e.x,r),n(o,e.y,i.y-e.y,r))})),t.add(\"position:node\",(function(t,e,i,n,o,r){var s=t.actualBounds,a=i.actualBounds;i=a.x+a.width/2-s.width/2,s=a.y+a.height/2-s.height/2,o!==r?t.wt(n(o,e.x,i-e.x,r),n(o,e.y,s-e.y,r)):t.position=new mt(n(o,e.x,i-e.x,r),n(o,e.y,s-e.y,r))})),t.add(\"opacity\",(function(t,e,i,n,o,r){t.opacity=n(o,e,i-e,r)})),t.add(\"scale\",(function(t,e,i,n,o,r){t.scale=n(o,e,i-e,r)})),t.add(\"angle\",(function(t,e,i,n,o,r){t.angle=n(o,e,i-e,r)})),t.add(\"visible\",(function(t,e,i,n,o,r){t.visible=o!==r?e:i})),Co=t}Kn.className=\"TextEditingTool\",Kn.LostFocus=Jn,Kn.MouseDown=Zn,Kn.Tab=Qn,Kn.Enter=to,Kn.SingleClick=eo,Kn.SingleClickSelected=io,Kn.DoubleClick=no,Kn.StateNone=oo,Kn.StateActive=ro,Kn.StateEditing=so,Kn.StateValidating=ao,Kn.StateInvalid=lo,Kn.StateValidated=ho,I(\"textEditingTool\",(function(){return this.findTool(\"TextEditing\")}),(function(t){zi(this,\"TextEditing\",t,this.mouseUpTools)})),uo.prototype.hb=function(t){this.C=t},uo.prototype.canStart=function(){return!0},i=uo.prototype,i.Ri=function(t,e){this.Dc&&(void 0!==e&&(this.Vq=e),this.Pg||this.C.Oi)&&(this.zk.add(t),this.canStart(t)&&(this.Kf&&this.vd(),this.Yg=this.rb=!0))},i.zx=function(t,e){this.Dc&&(void 0!==e&&(this.Vq=e),this.Pg||this.C.Oi)&&(this.zk.add(t),this.canStart(t)&&(this.Kf&&this.vd(),this.rb=!0))},i.ye=function(t,e,i,n,o,r){if(!(!this.rb||\"position\"===e&&i.A(n)||t instanceof lu&&!t.isAnimated)){if(this.zk.contains(\"Remove\")&&t instanceof lu&&t.Lb()){var s=this.C,a=t.key;this.Uk.contains(a)?t=this.Uk.get(a):(t=t.copy(),t.data=null,s.add(t),this.Uk.add(a,t))}if(s=this.xj,s.contains(t)){a=s.J(t),s=a.start;var l=a.end;void 0===s[e]&&(s[e]=po(i)),o||(a.Uu[e]=po(n)),l[e]=po(n)}else a={},l={},a[e]=po(i),l[e]=po(n),i=a.position,i instanceof mt&&!i.o()&&this.zk.contains(\"Expand SubGraph\")&&i.assign(l.position),a=new No(a,l,o),s.add(t,a);o&&0===e.indexOf(\"position:\")&&t instanceof lu&&(a.Uu.location=po(t.location)),r&&(a.pt=!0),this.Ak=!0}},i.vd=function(){!0===this.rb&&(this.Yg=this.rb=!1,this.Zi=0,this.Ak&&this.C.cc()),this.Kf&&this.Dc&&wo(this)},i.Kp=function(t,e){if(this.Yg){var i=e.actualBounds,n=null;if(e instanceof Ju&&(n=e.placeholder),null!==n?(i=n.ma(he),n=n.padding,i.x+=n.left,i.y+=n.top,this.ye(t,\"position\",i,t.position,!1)):this.ye(t,\"position\",new mt(i.x+i.width/2,i.y+i.height/2),t.position,!1),this.ye(t,\"scale\",.01,t.scale,!1),t instanceof Ju)for(t=t.memberParts;t.next();)n=t.value,n instanceof Au&&this.Kp(n,e)}},i.Jp=function(t,e){if(t.isVisible()&&this.Yg){var i=null;if(e instanceof Ju&&(i=e.placeholder),null!==i?this.ye(t,\"position:placeholder\",t.position,i,!0):this.ye(t,\"position:node\",t.position,e,!0),this.ye(t,\"scale\",t.scale,.01,!0),this.rb&&(i=this.xj,i.contains(t)&&(i.J(t).pt=!0)),t instanceof Ju)for(t=t.memberParts;t.next();)i=t.value,i instanceof Au&&this.Jp(i,e)}},p.Object.defineProperties(uo.prototype,{animationReasons:{get:function(){return this.zk}},isEnabled:{get:function(){return this.Dc},set:function(t){this.Dc=t}},duration:{get:function(){return this.Vt},set:function(t){1>t&&C(t,\">= 1\",uo,\"duration\"),this.Vt=t}},isAnimating:{get:function(){return this.Kf}},isTicking:{get:function(){return this.Dr}},isInitial:{get:function(){return this.Pg},set:function(t){this.Pg=t}}}),uo.prototype.stopAnimation=uo.prototype.vd,uo.prototype.addToAnimation=uo.prototype.ye,uo.prototype.prepareAnimation=uo.prototype.zx,uo.prototype.prepareAutomaticAnimation=uo.prototype.Ri;var Co=null,So=!1;function No(t,e,i){this.start=t,this.end=e,this.Uu={},this.Pu=i,this.pt=!1}function Po(){st(this),this.C=null,this.Fa=new nt,this.Ua=\"\",this.lb=1,this.u=!1,this.Bj=this.K=this.Nh=this.Mh=this.Lh=this.Kh=this.Ih=this.Jh=this.Hh=this.Ph=this.Gh=this.Oh=this.Fh=this.Eh=!0,this.l=!1,this.Jo=[]}function To(t,e){var i=e.actualBounds,n=e.naturalBounds;if(0!==i.width&&0!==i.height&&!isNaN(i.x)&&!isNaN(i.y)&&e.isVisible()){var o=e.transform;null!==e.areaBackground&&(ia(e,t,e.areaBackground,!0,!0,n,i),t.fillRect(i.x,i.y,i.width,i.height)),null===e.areaBackground&&null===e.background&&(ia(e,t,\"rgba(0,0,0,0.4)\",!0,!1,n,i),t.fillRect(i.x,i.y,i.width,i.height)),null!==e.background&&(t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),ia(e,t,e.background,!0,!1,n,i),t.fillRect(0,0,n.width,n.height),o.ct()||(e=1/(o.m11*o.m22-o.m12*o.m21),t.transform(o.m22*e,-o.m12*e,-o.m21*e,o.m11*e,e*(o.m21*o.dy-o.m22*o.dx),e*(o.m12*o.dx-o.m11*o.dy))))}}function Lo(t,e,i){if(e=Oo(t,e,i),i instanceof Ju&&null!==i&&isNaN(i.zOrder)){if(0!==i.memberParts.count){for(var n=-1,o=t.Fa.j,r=o.length,s=0;s<r;s++){var a=o[s];if(a===i&&(e=s,0<=n))break;if(0>n&&a.containingGroup===i&&(n=s,0<=e))break}!(0>n)&&n<e&&(o=t.Fa,o.mb(e),o.Ib(n,i))}i=i.containingGroup,null!==i&&Lo(t,-1,i)}}function Oo(t,e,i){var n=i.zOrder;if(isNaN(n))return e;t=t.Fa;var o=t.count;if(1>=o)return e;if(0>e&&(e=t.indexOf(i)),0>e)return-1;for(var r=e-1,s=NaN;0<=r;){if(s=t.N(r).zOrder,!isNaN(s))break;r--}for(var a=e+1,l=NaN;a<o;){if(l=t.N(a).zOrder,!isNaN(l))break;a++}if(!isNaN(s)&&s>n)for(;;){if(-1===r||s<=n){if(r++,r===e)break;return t.mb(e),t.Ib(r,i),r}for(s=NaN;0<=--r&&(s=t.N(r).zOrder,isNaN(s)););}else if(!isNaN(l)&&l<n)for(;;){if(a===o||l>=n){if(a--,a===e)break;return t.mb(e),t.Ib(a,i),a}for(l=NaN;++a<o&&(l=t.N(a).zOrder,isNaN(l)););}return e}function Do(t){function e(){i.removeEventListener(v.document,\"DOMContentLoaded\",e,!1),i.setRTL()}1<arguments.length&&k(\"Diagram constructor can only take one optional argument, the DIV HTML element or its id.\"),js||(As(),js=!0),st(this),hs=this,U=[],this.ob=!0,this.yk=new uo,this.yk.hb(this),this.Gb=17,this.Tn=!1,this.ru=\"default\",this.Ia=null;var i=this;ds&&(null!==v.document.body?this.setRTL():i.addEventListener(v.document,\"DOMContentLoaded\",e,!1)),this.Pa=new nt,this.wa=this.xa=0,this.Da=null,this.pu=new gt,this.$g=this.Yc=null,this.Dv(),this.dl=null,this.Cv(),this.sa=new mt(NaN,NaN).freeze(),this.Zq=this.Ca=1,this.ur=new mt(NaN,NaN).freeze(),this.vr=NaN,this.Pr=1e-4,this.Nr=100,this.tb=new ae,this.Is=new mt(NaN,NaN).freeze(),this.jr=new _t(NaN,NaN,NaN,NaN).freeze(),this.ri=new ee(0,0,0,0).freeze(),this.Gj=Ss,this.rs=!1,this.ms=this.hs=null,this.aj=ms,this.cj=Ae,this.ai=ms,this.On=Ae,this.wr=this.tr=he,this.nc=!0,this.Pn=!1,this.Dd=new rt,this.Wh=new gt,this.xn=!0,this.Tm=250,this.Bk=-1,this.Um=new ee(16,16,16,16).freeze(),this.Rk=this.qd=!1,this.Xk=!0,this.Xh=new xi,this.Xh.diagram=this,this.Xe=new xi,this.Xe.diagram=this,this.qj=new xi,this.qj.diagram=this,this.ne=this.zf=null,this.Ml=!1,this.Rt=this.St=null,this.Gq=v.PointerEvent&&(_||H||Y)&&v.navigator&&!1!==v.navigator.msPointerEnabled,Hr(this),this.xi=new rt,this.Er=!0,this.Ds=Ps,this.Wb=!1,this.Fs=bs,this.Ma=null,us.add(\"Model\",Of),this.ba=this.La=this.Vb=null,this.Sq=\"\",this.qn=\"auto\",this.Rf=this.Sr=this.Tf=this.Uf=this.Wf=this.Bf=this.Ff=this.Af=null,this.pr=!1,this.Cf=this.gg=this.Vf=this.Sf=null,this.ku=!1,this.nu={},this.vl=[null,null],this.K=null,this.Qt=this.wu=this.Ch=this.eh=!1,this.Vc=!0,this.mj=this.Zb=!1,this.$b=null;var n=this;this.wg=function(t){var e=n.partManager;if(t.model===e.diagram.model&&e.diagram.da){e.diagram.da=!1;try{var i=t.change;\"\"===t.modelChange&&i===Si&&e.updateDataBindings(t.object,t.propertyName)}finally{e.diagram.da=!0}}},this.Cm=function(t){n.partManager.doModelChanged(t)},this.Ow=!0,this.fe=-2,this.Cj=new gt,this.mu=new nt,this.Lf=!1,this.Fh=this.Eh=this.yq=this.Dc=!0,this.zq=!1,this.Fq=this.Dq=this.Nh=this.Mh=this.Lh=this.Kh=this.Ih=this.Jh=this.Hh=this.Cq=this.Ph=this.Gh=this.Oh=this.Aq=!0,this.he=this.Kc=!1,this.Eq=this.Bq=this.rr=this.qr=!0,this.qs=this.os=16,this.tu=this.ns=!1,this.fp=this.ps=null,this.uu=this.vu=0,this.eb=new ee(5).freeze(),this.ts=(new rt).freeze(),this.Or=999999999,this.sr=(new rt).freeze(),this.bi=this.kj=this.Og=!0,this.Zh=this.Ng=!1,this.gc=null,this.zg=!0,this.ge=!1,this.wq=new rt,this.zw=new rt,this.Ob=null,this.Ho=1,this.Iw=0,this.we={scale:1,position:new mt,bounds:new _t,qx:!1},this.Nw=new _t(NaN,NaN,NaN,NaN).freeze(),this.Ep=new It(NaN,NaN).freeze(),this.vn=new _t(NaN,NaN,NaN,NaN).freeze(),this.Fr=!1,this.cr=null,Ro(this),this.Kr=this.mr=this.Yr=this.rw=this.qw=this.sw=this.Sg=this.Yh=this.Xf=null,Bo(this),this.Eb=null,this.lr=!1,this.Jk=null,this.partManager=new Of,this.toolManager=new Ai,this.toolManager.initializeStandardTools(),this.currentTool=this.defaultTool=this.toolManager,this.br=null,this.Lk=new Rs,this.cs=this.bs=null,this.vp=!1,this.commandHandler=Ao(),this.model=cd(),this.eh=!0,this.layout=new hf,this.eh=!1,this.uw=this.Ut=null,this.Nb=1,this.jh=null,this.Tr=0,this.Ur=[0,0,0,0,0],this.Vr=0,this.Fd=1,this.kl=0,this.Hr=new mt,this.Bu=500,this.Hq=new mt,this.Qe=!1,this.preventDefault=this.ot=this.km=this.lm=this.jm=this.im=this.jk=this.lk=this.kk=this.hk=this.ik=this.Zv=this.Rv=this.Sv=this.Tv=this.pi=this.$o=this.oi=this.Zo=null,this.u=!1,this.$h=new Bs,this.As=!1,void 0!==t&&Fs(this,t),this.ob=!1}function jo(t,e){var i=null;null!==t.Eb&&(i=t.Eb.part),t.animationManager.vd();for(var n=[],o=t.Pa.length,r=0;r<o;r++){var s=t.Pa.j[r];if(e)for(var a=s.parts;a.next();){var l=a.value;l!==i&&null===l.data&&n.push(l)}s.clear()}if(t.partManager.clear(),t.Dd.clear(),t.Wh.clear(),t.xi.clear(),t.ts.ha(),t.ts.clear(),t.ts.freeze(),t.sr.ha(),t.sr.clear(),t.sr.freeze(),t.Jk=null,X=[],null!==i&&(t.add(i),t.partManager.parts.remove(i)),e)for(e=0;e<n.length;e++)t.add(n[e])}function Ao(){return null}function Bo(t){t.Xf=new gt;var e=new Au,i=new mh;i.bind(new vd(\"text\",\"\",z)),e.add(i),t.sw=e,t.Xf.add(\"\",e),e=new Au,i=new mh,i.stroke=\"brown\",i.bind(new vd(\"text\",\"\",z)),e.add(i),t.Xf.add(\"Comment\",e),e=new Au,e.selectable=!1,e.avoidable=!1,i=new sh,i.figure=\"Ellipse\",i.fill=\"black\",i.stroke=null,i.desiredSize=new It(3,3).ga(),e.add(i),t.Xf.add(\"LinkLabel\",e),t.Yh=new gt,e=new Ju,e.selectionObjectName=\"GROUPPANEL\",e.type=Nl.Vertical,i=new mh,i.font=\"bold 12pt sans-serif\",i.bind(new vd(\"text\",\"\",z)),e.add(i),i=new Nl(Nl.Auto),i.name=\"GROUPPANEL\";var n=new sh;n.figure=\"Rectangle\",n.fill=\"rgba(128,128,128,0.2)\",n.stroke=\"black\",i.add(n),n=new ic,n.padding=new ee(5,5,5,5).ga(),i.add(n),e.add(i),t.qw=e,t.Yh.add(\"\",e),t.Sg=new gt,e=new nc,i=new sh,i.isPanelMain=!0,e.add(i),i=new sh,i.toArrow=\"Standard\",i.fill=\"black\",i.stroke=null,i.strokeWidth=0,e.add(i),t.rw=e,t.Sg.add(\"\",e),e=new nc,i=new sh,i.isPanelMain=!0,i.stroke=\"brown\",e.add(i),t.Sg.add(\"Comment\",e),e=new ju,e.type=Nl.Auto,i=new sh,i.fill=null,i.stroke=\"dodgerblue\",i.strokeWidth=3,e.add(i),i=new ic,i.margin=new ee(1.5,1.5,1.5,1.5).ga(),e.add(i),t.Yr=e,t.mr=e,e=new ju,e.type=Nl.Link,i=new sh,i.isPanelMain=!0,i.fill=null,i.stroke=\"dodgerblue\",i.strokeWidth=3,e.add(i),t.Kr=e}function zo(t){var e=t.Da.Ga;e instanceof HTMLCanvasElement&&(t.Gq?(t.addEventListener(e,\"pointerdown\",t.im,!1),t.addEventListener(e,\"pointermove\",t.jm,!1),t.addEventListener(e,\"pointerup\",t.lm,!1),t.addEventListener(e,\"pointerout\",t.km,!1)):(t.addEventListener(e,\"touchstart\",t.Tv,!1),t.addEventListener(e,\"touchmove\",t.Sv,!1),t.addEventListener(e,\"touchend\",t.Rv,!1),t.addEventListener(e,\"mousemove\",t.ik,!1),t.addEventListener(e,\"mousedown\",t.hk,!1),t.addEventListener(e,\"mouseup\",t.kk,!1),t.addEventListener(e,\"mouseout\",t.jk,!1)),t.addEventListener(e,\"mouseenter\",t.Fy,!1),t.addEventListener(e,\"mouseleave\",t.Gy,!1),t.addEventListener(e,\"wheel\",t.lk,!1),t.addEventListener(e,\"keydown\",t.vz,!1),t.addEventListener(e,\"keyup\",t.wz,!1),t.addEventListener(e,\"blur\",t.sy,!1),t.addEventListener(e,\"focus\",t.ty,!1),t.addEventListener(e,\"selectstart\",(function(t){return t.preventDefault(),!1}),!1),t.addEventListener(e,\"contextmenu\",(function(t){return t.preventDefault(),!1}),!1),t.addEventListener(e,\"gesturestart\",(function(e){t.toolManager.gestureBehavior!==_i&&(t.toolManager.gestureBehavior===Vi?e.preventDefault():t.Qe&&t.lastInput.handled||(e.preventDefault(),t.Ho=t.scale,t.currentTool.doCancel()))}),!1),t.addEventListener(e,\"gesturechange\",(function(e){if(t.toolManager.gestureBehavior!==_i)if(t.toolManager.gestureBehavior===Vi)e.preventDefault();else if(!t.Qe||!t.lastInput.handled){e.preventDefault();var i=e.scale;if(null!==t.Ho){var n=t.Da.getBoundingClientRect();if(e=new mt(e.pageX-window.scrollX-t.xa/n.width*n.left,e.pageY-window.scrollY-t.wa/n.height*n.top),i=t.Ho*i,n=t.commandHandler,i!==t.scale&&n.canResetZoom(i)){var o=t.zoomPoint;t.zoomPoint=e,n.resetZoom(i),t.zoomPoint=o}}}}),!1),t.addEventListener(v,\"resize\",t.Zv,!1))}function Fo(t){30<t.Tr&&(t.jh=1)}function Io(t,e){null!==t.jh&&(t.jh=null,e&&t.ot())}function Eo(t){if(null!==t.Da){var e=t.Ia;if(0!==e.clientWidth&&0!==e.clientHeight){t.setScrollWidth();var i=t.Zh?t.Gb:0,n=t.Ng?t.Gb:0,o=t.Nb;t.Nb=t.computePixelRatio(),t.Nb!==o&&(t.Pn=!0,t.cc()),e.clientWidth===t.xa+i&&e.clientHeight===t.wa+n||(t.kj=!0,t.nc=!0,e=t.layout,null!==e&&e.isViewportSized&&t.autoScale===ms&&(t.Rk=!0,e.B()),t.Zb||t.cc())}}}function Ro(t){var e=new Po;e.name=\"Background\",t.Ql(e),e=new Po,e.name=\"\",t.Ql(e),e=new Po,e.name=\"Foreground\",t.Ql(e),e=new Po,e.name=\"Adornment\",e.isTemporary=!0,t.Ql(e),e=new Po,e.name=\"Tool\",e.isTemporary=!0,e.isBoundsIncluded=!0,t.Ql(e),e=new Po,e.name=\"Grid\",e.allowSelect=!1,e.pickable=!1,e.isTemporary=!0,t.Rw(e,t.Zl(\"Background\"))}function Vo(t){t.Eb=new Nl(Nl.Grid),t.Eb.name=\"GRID\";var e=new sh;e.figure=\"LineH\",e.stroke=\"lightgray\",e.strokeWidth=.5,e.interval=1,t.Eb.add(e),e=new sh,e.figure=\"LineH\",e.stroke=\"gray\",e.strokeWidth=.5,e.interval=5,t.Eb.add(e),e=new sh,e.figure=\"LineH\",e.stroke=\"gray\",e.strokeWidth=1,e.interval=10,t.Eb.add(e),e=new sh,e.figure=\"LineV\",e.stroke=\"lightgray\",e.strokeWidth=.5,e.interval=1,t.Eb.add(e),e=new sh,e.figure=\"LineV\",e.stroke=\"gray\",e.strokeWidth=.5,e.interval=5,t.Eb.add(e),e=new sh,e.figure=\"LineV\",e.stroke=\"gray\",e.strokeWidth=1,e.interval=10,t.Eb.add(e),e=new lu,e.add(t.Eb),e.layerName=\"Grid\",e.zOrder=0,e.isInDocumentBounds=!1,e.isAnimated=!1,e.pickable=!1,e.locationObjectName=\"GRID\",t.add(e),t.partManager.parts.remove(e),t.Eb.visible=!1}function _o(){this.C.tu?this.C.tu=!1:this.C.isEnabled?this.C.bx(this):yr(this.C)}function Ho(t){this.C.isEnabled?(this.C.vu=t.target.scrollTop,this.C.uu=t.target.scrollLeft):yr(this.C)}function Yo(t){if(t.fixedBounds.o()){var e=t.fixedBounds.copy();return e.Lp(t.eb),e}for(var i=!0,n=t.Pa.j,o=n.length,r=0;r<o;r++){var s=n[r];if(s.visible&&(!s.isTemporary||s.isBoundsIncluded)){s=s.Fa.j;for(var a=s.length,l=0;l<a;l++){var h=s[l];h.isInDocumentBounds&&h.isVisible()&&(h=h.actualBounds,h.o()&&(i?(i=!1,e=h.copy()):e.Jc(h)))}}}return i&&(e=new _t(0,0,0,0)),e.Lp(t.eb),e}function qo(t,e){if((e||t.ge)&&!t.ob&&null!==t.Da&&!t.animationManager.isAnimating&&t.documentBounds.o()){t.ob=!0;var i=t.aj;e&&t.ai!==ms&&(i=t.ai);var n=i!==ms?Go(t,i):t.scale;i=t.viewportBounds.copy();var o=t.xa/n,r=t.wa/n,s=null,a=t.animationManager;a.rb&&(s=t.sa.copy());var l=t.cj,h=t.On;e&&!l.gb()&&(h.gb()||h.Kb())&&(l=h.Kb()?de:h),Xo(t,t.documentBounds,o,r,l,e),null!==s&&xo(a,s,t.sa),e=t.scale,t.scale=n,t.ob=!1,n=t.viewportBounds,n.Qa(i)||t.iq(i,n,e,!1)}}function Go(t,e){var i=t.Zq;if(null===t.Da)return i;t.Og&&Ir(t,t.computeBounds());var n=t.documentBounds;if(!n.o())return i;var o=n.width;n=n.height;var r=t.xa,s=t.wa,a=r/o,l=s/n;return e===vs?(e=Math.min(l,a),e>i&&(e=i),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):e===ys?(e=l>a?(s-t.Gb)/n:(r-t.Gb)/o,e>i&&(e=i),e<t.minScale&&(e=t.minScale),e>t.maxScale&&(e=t.maxScale),e):t.scale}function Xo(t,e,i,n,o,r){t.sa.ha();var s=t.sa,a=s.x,l=s.y;(r||t.scrollMode===Ss)&&(o.gb()&&(i>e.width&&(a=e.x+(o.x*e.width+o.offsetX)-(o.x*i-o.offsetX)),n>e.height&&(l=e.y+(o.y*e.height+o.offsetY)-(o.y*n-o.offsetY))),o=t.ri,r=i-e.width,i<e.width+o.left+o.right?(a=Math.min(a+i/2,e.right+Math.max(r,o.right)-i/2),a=Math.max(a,e.left-Math.max(r,o.left)+i/2),a-=i/2):a>e.left?a=e.left:a<e.right-i&&(a=e.right-i),i=n-e.height,n<e.height+o.top+o.bottom?(l=Math.min(l+n/2,e.bottom+Math.max(i,o.bottom)-n/2),l=Math.max(l,e.top-Math.max(i,o.top)+n/2),l-=n/2):l>e.top?l=e.top:l<e.bottom-n&&(l=e.bottom-n)),s.x=isFinite(a)?a:-t.eb.left,s.y=isFinite(l)?l:-t.eb.top,null!==t.positionComputation&&(e=t.positionComputation(t,s),s.x=e.x,s.y=e.y),t.sa.freeze()}function Uo(t,e,i,n){for(void 0===i&&(i=null),void 0===n&&(n=null),hr(t),t=t.Pa.iteratorBackwards;t.next();){var o=t.value;if(o.visible&&!o.isTemporary&&(o=o.Sb(e,i,n),null!==o))return o}return null}function Ko(t,e,i,n,o){for(void 0===i&&(i=null),void 0===n&&(n=null),o instanceof nt||o instanceof rt||(o=new rt),hr(t),t=t.Pa.iteratorBackwards;t.next();){var r=t.value;r.visible&&!r.isTemporary&&r.Fi(e,i,n,o)}return o}function $o(t,e,i,n,o){var r=null;for(void 0===r&&(r=null),void 0===i&&(i=null),void 0===n&&(n=!1),o instanceof nt||o instanceof rt||(o=new rt),hr(t),t=t.Pa.iteratorBackwards;t.next();){var s=t.value;s.visible&&!s.isTemporary&&s.mg(e,r,i,n,o)}return o}function Wo(t,e,i,n,o,r){var s=null;for(void 0===s&&(s=null),void 0===n&&(n=null),void 0===o&&(o=!0),!1!==o&&!0!==o&&((o instanceof nt||o instanceof rt)&&(r=o),o=!0),r instanceof nt||r instanceof rt||(r=new rt),hr(t),t=t.Pa.iteratorBackwards;t.next();){var a=t.value;a.visible&&!a.isTemporary&&a.ng(e,i,s,n,o,r)}return r}function Jo(t,e,i){var n=t.Xe;return t.Xe=t.qj,t.qj=n,n.diagram=t,n.event=e,i?nr(t,e,n):(n.viewPoint=t.Xe.viewPoint,n.documentPoint=t.Xe.documentPoint),t=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),n.modifiers=t,n.button=e.button,void 0===e.buttons||V||(n.buttons=e.buttons),q&&0===e.button&&e.ctrlKey&&(n.button=2),n.down=!1,n.up=!1,n.clickCount=1,n.delta=0,n.handled=!1,n.bubbles=!1,n.timestamp=e.timeStamp,n.isMultiTouch=!1,n.targetDiagram=Zo(e),n.targetObject=null,n}function Zo(t){var e=t.target.C;if(!e){var i=t.path;i||\"function\"!==typeof t.composedPath||(i=t.composedPath()),i&&i[0]&&(e=i[0].C)}return e||null}function Qo(t,e,i,n){var o=er(t,e,!0,!1,!0,n);return nr(t,i,o),o.targetDiagram=Zo(e),o.targetObject=null,n||o.clone(t.Xh),o}function tr(t,e,i,n){var o;return n=er(t,e,!1,!1,!1,n),null!==i?((o=v.document.elementFromPoint(i.clientX,i.clientY))&&o.C?(e=i,i=o.C):(e=void 0!==e.targetTouches?e.targetTouches[0]:e,i=t),n.targetDiagram=i,nr(t,e,n)):null!==t.Xe?(n.documentPoint=t.Xe.documentPoint,n.viewPoint=t.Xe.viewPoint,n.targetDiagram=t.Xe.targetDiagram):null!==t.Xh&&(n.documentPoint=t.Xh.documentPoint,n.viewPoint=t.Xh.viewPoint,n.targetDiagram=t.Xh.targetDiagram),n.targetObject=null,n}function er(t,e,i,n,o,r){var s=t.Xe;t.Xe=t.qj,t.qj=s,s.diagram=t,s.clickCount=1;var a=s.delta=0;return e.ctrlKey&&(a+=1),e.altKey&&(a+=2),e.shiftKey&&(a+=4),e.metaKey&&(a+=8),s.modifiers=a,s.button=0,s.buttons=1,s.event=e,s.timestamp=e.timeStamp,t.Gq&&e instanceof v.PointerEvent&&\"touch\"!==e.pointerType&&(s.button=e.button,void 0===e.buttons||V||(s.buttons=e.buttons),q&&0===e.button&&e.ctrlKey&&(s.button=2)),s.down=i,s.up=n,s.handled=!1,s.bubbles=o,s.isMultiTouch=r,s}function ir(t,e){return!!t.bubbles||(void 0!==e.stopPropagation&&e.stopPropagation(),!1!==e.cancelable&&e.preventDefault(),e.cancelBubble=!0,!1)}function nr(t,e,i){var n=t.Da,o=t.xa,r=t.wa,s=0,a=0;null!==n&&(n=n.getBoundingClientRect(),s=e.clientX-o/n.width*n.left,a=e.clientY-r/n.height*n.top),i.viewPoint.h(s,a),null!==t.tb?(e=mt.allocAt(s,a),t.tb.Ud(e),i.documentPoint.assign(e),mt.free(e)):i.documentPoint.h(s,a)}function or(t,e,i,n){if(void 0!==e.targetTouches){if(2>e.targetTouches.length)return;e=e.targetTouches[i]}else{if(null===t.vl[0])return;e=t.vl[i]}i=t.Da,null!==i&&(i=i.getBoundingClientRect(),n.h(e.clientX-t.xa/i.width*i.left,e.clientY-t.wa/i.height*i.top))}function rr(t){t.Zb||hr(t),t.Og&&Ir(t,t.computeBounds())}function sr(t,e){t.animationManager.isAnimating||t.ob||!t.kj||yr(t)||(e&&hr(t),qo(t,!1))}function ar(t,e){if(!t.Zb&&(t.qd=!1,null!==t.Ia||t.Ep.o())){t.Zb=!0;var i=t.animationManager,n=t.mu;if(!i.isTicking&&0!==n.length){for(var o=n.j,r=o.length,s=0;s<r;s++){var a=o[s];ga(a,!1),a.s()}n.clear()}n=t.zw,0<n.count&&(n.each((function(t){t.Yv()})),n.clear()),o=n=!1,i.isAnimating&&(o=!0,n=t.skipsUndoManager,t.skipsUndoManager=!0),i.rb||Eo(t),sr(t,!1),null!==t.Eb&&(t.Eb.visible&&!t.lr&&(Lr(t),t.lr=!0),!t.Eb.visible&&t.lr&&(t.lr=!1)),hr(t),r=!1,t.ge&&!t.zg||(t.ge?Vr(t,!t.Rk):(t.Aa(\"Initial Layout\"),!1===i.isEnabled&&i.vd(),Vr(t,!1)),r=!0),t.Rk=!1,hr(t),t.wu||i.isAnimating||rr(t),sr(t,!0),r&&(t.ge||lr(t),t.aa(\"LayoutCompleted\")),hr(t),r&&!t.ge&&(t.ge=!0,t.Za(\"Initial Layout\"),t.skipsUndoManager||t.undoManager.clear(),w((function(){t.isModified=!1}),1)),t.Ku(),fo(i),e||t.hc(t.Yc),o&&(t.skipsUndoManager=n),t.Zb=!1}}function lr(t){var e=t.Pa.j;if(t.hd(e,e.length,t),t.ai!==ms?t.scale=Go(t,t.ai):t.aj!==ms?t.scale=Go(t,t.aj):(e=t.initialScale,isFinite(e)&&0<e&&(t.scale=e)),e=t.initialPosition,e.o())t.position=e;else{e=mt.alloc(),e.Ti(t.documentBounds,t.initialDocumentSpot);var i=t.viewportBounds;i=_t.allocAt(0,0,i.width,i.height);var n=mt.alloc();n.Ti(i,t.initialViewportSpot),n.h(e.x-n.x,e.y-n.y),t.position=n,_t.free(i),mt.free(n),mt.free(e),pr(t),sr(t,!0),qo(t,!0)}t.aa(\"InitialLayoutCompleted\"),Lr(t)}function hr(t){if((t.Zb||!t.animationManager.isAnimating)&&0!==t.Dd.count){for(var e=0;23>e;e++){var i=t.Dd.iterator;if(null===i||0===t.Dd.count)break;t.Dd=new rt,t.Yv(i,t.Dd)}t.nodes.each((function(t){t instanceof Ju&&0!==(65536&t.S)!==!1&&(t.S=65536^t.S)}))}}function ur(t,e){for(var i=j(),n=j(),o=e.memberParts;o.next();){var r=o.value;r.isVisible()&&(r instanceof Ju?(pa(r)||ma(r)||xu(r))&&ur(t,r):r instanceof nc?r.fromNode===e||r.toNode===e?n.push(r):i.push(r):(r.measure(1/0,1/0),r.arrange()))}for(t=i.length,o=0;o<t;o++)r=i[o],r.measure(1/0,1/0),r.arrange();for(A(i),e.measure(1/0,1/0),e.arrange(),t=n.length,e=0;e<t;e++)i=n[e],i.measure(1/0,1/0),i.arrange();A(n)}function cr(t,e,i,n,o,r,s,a,l,h){if(null!==t.Ia){null===t.Da&&k(\"No canvas specified\"),void 0===s&&(s=null),void 0===a&&(a=null),void 0===l&&(l=!1),void 0===h&&(h=!1),mr(t),t.Yc.Rc(!0),gr(t),t.mj=!0;var u=t.Ca;t.Ca=o;var c=t.Pa.j,f=c.length;try{var d=new _t(r.x,r.y,n.width/o,n.height/o),p=d.copy();p.Lp(i),Lr(t,p),hr(t),t.hd(c,f,t,d);var g=t.Nb;e.setTransform(1,0,0,1,0,0),e.scale(g,g),e.clearRect(0,0,n.width,n.height),null!==a&&\"\"!==a&&(e.fillStyle=a,e.fillRect(0,0,n.width,n.height));var m=ae.alloc();if(m.reset(),m.translate(i.left,i.top),m.scale(o),0===r.x&&0===r.y||m.translate(-r.x,-r.y),e.setTransform(m.m11,m.m12,m.m21,m.m22,m.dx,m.dy),ae.free(m),fr(t,e),null!==s){var v=new rt,y=s.iterator;for(y.reset();y.next();){var b=y.value;!1===h&&\"Grid\"===b.layer.name||null===b||v.add(b)}var w=function(i){var n=l;if(i.visible&&0!==i.lb&&(void 0===n&&(n=!0),n||!i.isTemporary)){n=i.Fa.j;var o=n.length;if(0!==o){1!==i.lb&&(e.globalAlpha=i.lb),i=i.Jo,i.length=0;for(var r=t.scale,s=0;s<o;s++){var a=n[s];if(Cu(a)&&v.contains(a)){if(a instanceof nc&&(a.isOrthogonal&&i.push(a),!1===a.Lc))continue;var h=a.actualBounds;1<h.width*r||1<h.height*r?a.hc(e,t):To(e,a)}}e.globalAlpha=1}}}}else if(!l&&h){var x=t.grid.part,M=x.layer;w=function(i){i===M?x.hc(e,t):i.hc(e,t,l)}}else w=function(i){i.hc(e,t,l)};for(i=0;i<f;i++)w(c[i]);t.mj=!1,t.$h&&zs(t.$h,t)&&t.cr()}finally{t.Ca=u,t.Yc.Rc(!0),gr(t),t.hd(c,f,t),Lr(t)}}}function fr(t,e){t=t.$g,null!==t&&(void 0!==t.imageSmoothingEnabled&&e.Ix(!!t.imageSmoothingEnabled),t=t.defaultFont,void 0!==t&&null!==t&&(e.font=t))}function dr(t,e){var i,n=t instanceof Nl,o=t instanceof Do;for(i in e){\"\"===i&&k(\"Setting properties requires non-empty property names\");var r=t,s=i;if(n||o){var a=i.indexOf(\".\");if(0<a){var l=i.substring(0,a);n?r=t.$a(l):(r=t[l],(void 0===r||null===r)&&(r=t.toolManager[l])),P(r)?s=i.substr(a+1):k(\"Unable to find object named: \"+l+\" in \"+t.toString()+\" when trying to set property: \"+i)}}if(\"_\"!==s[0]&&!F(r,s)){if(o&&\"ModelChanged\"===s){t.Tw(e[s]);continue}if(o&&\"Changed\"===s){t.rh(e[s]);continue}if(o&&F(t.toolManager,s))r=t.toolManager;else{if(o&&Yr(t,s)){t.Nj(s,e[s]);continue}if(t instanceof Uf&&\"Changed\"===s){t.rh(e[s]);continue}k('Trying to set undefined property \"'+s+'\" on object: '+r.toString())}}r[s]=e[i],\"_\"===s[0]&&r instanceof Ks&&r.Qw(s)}}function pr(t){!1===t.kj&&(t.kj=!0)}function gr(t){!1===t.bi&&(t.bi=!0)}function mr(t){!1!==t.Pn&&(t.Pn=!1,vr(t,t.xa,t.wa))}function vr(t,e,i){var n=t.Nb;t.Da.resize(e*n,i*n,e,i)&&(t.nc=!0,t.Yc.Rc(!0))}function yr(t){var e=t.Da;if(null===e)return!0;var i=t.Ia,n=t.xa,o=t.wa,r=t.Nw.copy();if(!r.o())return!0;var s=!1,a=t.Zh?t.Gb:0,l=t.Ng?t.Gb:0,h=i.clientWidth||n+a;i=i.clientHeight||o+l,h===n+a&&i===o+l||(t.Zh=!1,t.Ng=!1,l=a=0,t.xa=h,t.wa=i,s=t.Pn=!0),t.kj=!1;var u=t.documentBounds,c=0,f=0,d=0,p=0;h=r.width,i=r.height;var g=t.ri;t.contentAlignment.gb()?(u.width>h&&(c=g.left,f=g.right),u.height>i&&(d=g.top,p=g.bottom)):(c=g.left,f=g.right,d=g.top,p=g.bottom),g=u.width+c+f;var m=u.height+d+p;c=u.x-c;var v=r.x;f=u.right+f;var y=r.right+a;d=u.y-d;var b=r.y;p=u.bottom+p;var w=r.bottom+l,x=\"1px\",k=\"1px\";u=t.scale;var M=!(g<h+a),C=!(m<i+l);if(t.scrollMode===Ss&&(M||C)&&(M&&t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(x=1,c+1<v&&(x=Math.max((v-c)*u+t.xa,x)),f>y+1&&(x=Math.max((f-y)*u+t.xa,x)),h+a+1<g&&(x=Math.max((g-h+a)*u+t.xa,x)),x=x.toString()+\"px\"),C&&t.hasVerticalScrollbar&&t.allowVerticalScroll&&(k=1,d+1<b&&(k=Math.max((b-d)*u+t.wa,k)),p>w+1&&(k=Math.max((p-w)*u+t.wa,k)),i+l+1<m&&(k=Math.max((m-i+l)*u+t.wa,k)),k=k.toString()+\"px\")),C=\"1px\"!==x,M=\"1px\"!==k,C&&M||!C&&!M||(M&&(y-=t.Gb),C&&(w-=t.Gb),g<h+a||!t.hasHorizontalScrollbar||!t.allowHorizontalScroll||(a=1,c+1<v&&(a=Math.max((v-c)*u+t.xa,a)),f>y+1&&(a=Math.max((f-y)*u+t.xa,a)),h+1<g&&(a=Math.max((g-h)*u+t.xa,a)),x=a.toString()+\"px\"),C=\"1px\"!==x,a=t.wa,C!==t.Ng&&(a=C?t.wa-t.Gb:t.wa+t.Gb),m<i+l||!t.hasVerticalScrollbar||!t.allowVerticalScroll||(l=1,d+1<b&&(l=Math.max((b-d)*u+a,l)),p>w+1&&(l=Math.max((p-w)*u+a,l)),i+1<m&&(l=Math.max((m-i)*u+a,l)),k=l.toString()+\"px\"),M=\"1px\"!==k),t.ns&&C===t.Ng&&M===t.Zh)return n===t.xa&&o===t.wa||t.fd(),!1;if(C!==t.Ng&&(t.wa=\"1px\"===x?t.wa+t.Gb:Math.max(t.wa-t.Gb,1),s=!0),t.Ng=C,t.fp.style.width=x,M!==t.Zh&&(t.xa=\"1px\"===k?t.xa+t.Gb:Math.max(t.xa-t.Gb,1),s=!0,t.Tn&&(l=mt.alloc(),M?(e.style.left=t.Gb+\"px\",t.position=l.h(t.sa.x+t.Gb/t.scale,t.sa.y)):(e.style.left=\"0px\",t.position=l.h(t.sa.x-t.Gb/t.scale,t.sa.y)),mt.free(l))),t.Zh=M,t.fp.style.height=k,t.tu=!0,s&&(t.Pn=!0),e=t.ps,l=e.scrollLeft,t.hasHorizontalScrollbar&&t.allowHorizontalScroll&&(h+1<g?l=(t.position.x-c)*u:c+1<v?l=e.scrollWidth-e.clientWidth:f>y+1&&(l=t.position.x*u)),t.Tn)switch(t.ru){case\"negative\":l=-(e.scrollWidth-l-e.clientWidth);break;case\"reverse\":l=e.scrollWidth-l-e.clientWidth}return e.scrollLeft=l,t.hasVerticalScrollbar&&t.allowVerticalScroll&&(i+1<m?e.scrollTop=(t.position.y-d)*u:d+1<b?e.scrollTop=e.scrollHeight-e.clientHeight:p>w+1&&(e.scrollTop=t.position.y*u)),h=t.xa,i=t.wa,e.style.width=h+(t.Zh?t.Gb:0)+\"px\",e.style.height=i+(t.Ng?t.Gb:0)+\"px\",n===h&&o===i&&!t.animationManager.rb||(t.iq(r,t.viewportBounds,u,s),!1)}function br(t,e,i){var n=e.layer;if(null!==n&&n.diagram===t){e.isSelected=!1,e.isHighlighted=!1;var o=t.animationManager;o.Yg&&e.Lb()&&o.animationReasons.contains(\"Remove\")&&(o.ye(e,\"scale\",e.scale,.01,!1),o.ye(e,\"angle\",e.angle,180,!1)),e.B(2),i&&e.Yj(),i=n.xc(-1,e,!1),0<=i&&t.ab(Pi,\"parts\",n,e,null,i,null),t=e.layerChanged,null!==t&&t(e,n,null)}}function wr(t,e,i,n,o){if(void 0===o&&(o=kr(t)),!e.contains(i)&&(!n||i.canMove()||i.canCopy()))if(i instanceof Au){if(e.add(i,t.pd(o,i,i.location)),i instanceof Ju)for(var r=i.memberParts;r.next();)wr(t,e,r.value,n,o);for(r=i.linksConnected;r.next();){var s=r.value;if(!e.contains(s)){var a=s.fromNode,l=s.toNode;null!==a&&e.contains(a)&&null!==l&&e.contains(l)&&wr(t,e,s,n,o)}}if(o.dragsTree)for(i=i.$u();i.next();)wr(t,e,i.value,n,o)}else if(i instanceof nc)for(e.add(i,t.pd(o,i)),i=i.labelNodes;i.next();)wr(t,e,i.value,n,o);else i instanceof ju||e.add(i,t.pd(o,i,i.location))}function xr(t,e,i,n,o){if(null!==e&&0!==e.count){var r=mt.alloc(),s=mt.alloc();s.assign(i),isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),(i=t.vp)||Cr(t,e);for(var a=j(),l=j(),h=e.iterator,u=mt.alloc();h.next();){var c=h.key,f=h.value;if(c.Lb()){var d=Nr(t,c,e);null!==d?a.push(new Es(c,f,d)):o&&!c.canMove()||(d=f.point,r.assign(d),t.computeMove(c,r.add(s),n,u),c.location=u,void 0===f.shifted&&(f.shifted=new mt),f.shifted.assign(u.Xd(d)))}else h.key instanceof nc&&l.push(h.na)}for(mt.free(u),o=a.length,h=0;h<o;h++)c=a[h],r.assign(c.info.point),void 0===c.ev.shifted&&(c.ev.shifted=new mt),c.node.location=r.add(c.ev.shifted);for(o=mt.alloc(),h=mt.alloc(),c=l.length,f=0;f<c;f++){var p=l[f];if(d=p.key,d instanceof nc)if(d.suspendsRouting){d.bh=null,u=d.fromNode;var g=d.toNode;if(null!==t.draggedLink&&n.dragsLink)if(g=p.value.point,null===d.dragComputation)e.add(d,t.pd(n,d,s)),sc(d,s.x-g.x,s.y-g.y);else{p=mt.allocAt(0,0),(u=d.i(0))&&u.o()&&p.assign(u);var m=u=mt.alloc().assign(p).add(s);n.isGridSnapEnabled&&(n.isGridSnapRealtime||t.lastInput.up)&&(m=mt.alloc(),Mr(t,d,u,m,n)),u.assign(d.dragComputation(d,u,m)).Xd(p),e.add(d,t.pd(n,d,u)),sc(d,u.x-g.x,u.y-g.y),mt.free(p),mt.free(u),m!==u&&mt.free(m)}else null!==u&&(o.assign(u.location),m=e.J(u),null!==m&&o.Xd(m.point)),null!==g&&(h.assign(g.location),m=e.J(g),null!==m&&h.Xd(m.point)),null!==u&&null!==g?o.Qa(h)?(u=p.value.point,g=r,g.assign(o),g.Xd(u),e.add(d,t.pd(n,d,o)),sc(d,g.x,g.y)):(d.suspendsRouting=!1,d.Ra()):(p=p.value.point,u=null!==u?o:null!==g?h:s,e.add(d,t.pd(n,d,u)),sc(d,u.x-p.x,u.y-p.y))}else null!==d.fromNode&&null!==d.toNode||(u=p.value.point,e.add(d,t.pd(n,d,s)),sc(d,s.x-u.x,s.y-u.y))}mt.free(r),mt.free(s),mt.free(o),mt.free(h),A(a),A(l),i||(hr(t),Sr(t,e))}}function kr(t){var e=t.toolManager.findTool(\"Dragging\");return null!==e?e.dragOptions:t.Lk}function Mr(t,e,i,n,o){if(void 0===o&&(o=kr(t)),n.assign(i),null!==e){var r=t.grid;e=o.gridSnapCellSize,t=e.width,e=e.height;var s=o.gridSnapOrigin,a=s.x;if(s=s.y,o=o.gridSnapCellSpot,null!==r){var l=r.gridCellSize;isNaN(t)&&(t=l.width),isNaN(e)&&(e=l.height),r=r.gridOrigin,isNaN(a)&&(a=r.x),isNaN(s)&&(s=r.y)}r=mt.allocAt(0,0),r.qk(0,0,t,e,o),We.Tp(i.x,i.y,a+r.x,s+r.y,t,e,n),mt.free(r)}}function Cr(t,e){if(null!==e)for(t.vp=!0,t=e.iterator;t.next();)e=t.key,e instanceof nc&&(e.suspendsRouting=!0)}function Sr(t,e){if(null!==e){for(e=e.iterator;e.next();){var i=e.key;i instanceof nc&&(i.suspendsRouting=!1,cc(i)&&i.Ra())}t.vp=!1}}function Nr(t,e,i){if(e=e.containingGroup,null!==e){if(t=Nr(t,e,i),null!==t)return t;if(t=i.J(e),null!==t)return t}return null}function Pr(t,e,i){if(null!==e.diagram&&e.diagram!==t&&k(\"Cannot share a Layer with another Diagram: \"+e+\" of \"+e.diagram),null===i?null!==e.diagram&&k(\"Cannot add an existing Layer to this Diagram again: \"+e):(i.diagram!==t&&k(\"Existing Layer must be in this Diagram: \"+i+\" not in \"+i.diagram),e===i&&k(\"Cannot move a Layer before or after itself: \"+e)),e.diagram!==t){e=e.name,t=t.Pa,i=t.count;for(var n=0;n<i;n++)t.N(n).name===e&&k(\"Cannot add Layer with the name '\"+e+\"'; a Layer with the same name is already present in this Diagram.\")}}function Tr(t,e,i){var n=t.animationManager;if(t.ob||t.Zb)t.Ca=i,ko(n,e,t.Ca);else if(t.ob=!0,null===t.Da)t.Ca=i;else{var o=t.viewportBounds.copy(),r=t.xa,s=t.wa;o.width=t.xa/e,o.height=t.wa/e;var a=t.zoomPoint.x,l=t.zoomPoint.y,h=t.contentAlignment;isNaN(a)&&(h.qf()?h.pf(be)?a=0:h.pf(we)&&(a=r-1):a=h.gb()?h.x*(r-1):r/2),isNaN(l)&&(h.qf()?h.pf(ye)?l=0:h.pf(xe)&&(l=s-1):l=h.gb()?h.y*(s-1):s/2),null!==t.scaleComputation&&(i=t.scaleComputation(t,i)),i<t.minScale&&(i=t.minScale),i>t.maxScale&&(i=t.maxScale),r=mt.allocAt(t.sa.x+a/e-a/i,t.sa.y+l/e-l/i),t.position=r,mt.free(r),t.Ca=i,t.iq(o,t.viewportBounds,e,!1),t.ob=!1,qo(t,!1),ko(n,e,t.Ca),t.R(),pr(t)}}function Lr(t,e){void 0===e&&(e=null);var i=t.Eb;if(null!==i&&i.visible){for(var n=It.alloc(),o=1,r=1,s=i.Y.j,a=s.length,l=0;l<a;l++){var h=s[l],u=h.interval;2>u||(Dl(h.figure)?r=r*u/We.lx(r,u):o=o*u/We.lx(o,u))}if(s=i.gridCellSize,n.h(r*s.width,o*s.height),null!==e)o=e.width,r=e.height,t=e.x,s=e.y;else{if(e=_t.alloc(),t=t.viewportBounds,e.h(t.x,t.y,t.width,t.height),!e.o())return void _t.free(e);o=e.width,r=e.height,t=e.x,s=e.y,_t.free(e)}i.width=o+2*n.width,i.height=r+2*n.height,e=mt.alloc(),We.Tp(t,s,0,0,n.width,n.height,e),e.offset(-n.width,-n.height),It.free(n),i.part.location=e,mt.free(e)}}function Or(t){if(t=t.selection,0<t.count){for(var e=t.Na(),i=e.length,n=0;n<i;n++)e[n].isSelected=!1;t.ha(),t.clear(),t.freeze()}}function Dr(t){var e=t.isModified;t.Ow!==e&&(t.Ow=e,t.aa(\"Modified\"))}function jr(t){return t=us.get(t),null!==t?new t:new Of}function Ar(t,e){e=e.Y.j;for(var i=e.length,n=0;n<i;n++)Br(t,e[n])}function Br(t,e){if(e instanceof Yh){var i=e.element;if(null!==i&&i instanceof HTMLImageElement){var n=e.Ig;if(null!==n&&(n.Zk instanceof Event&&null!==e.Cc&&e.Cc(e,n.Zk),!0===n.zr&&(null!==e.df&&e.df(e,n.su),null!==e.diagram&&e.diagram.mu.add(e))),i=i.src,n=t.Cj.J(i),null===n)n=[],n.push(e),t.Cj.add(i,n);else{for(t=0;t<n.length;t++)if(n[t]===e)return;n.push(e)}}}}function zr(t,e){e=e.Y.j;for(var i=e.length,n=0;n<i;n++)Fr(t,e[n])}function Fr(t,e){if(e instanceof Yh){var i=e.element;if(null!==i&&i instanceof HTMLImageElement){i=i.src;var n=t.Cj.J(i);if(null!==n)for(var o=0;o<n.length;o++)if(n[o]===e){n.splice(o,1),0===n.length&&(t.Cj.remove(i),qh(i));break}}}}function Ir(t,e){t.Og=!1;var i=t.vn;i.A(e)||(e=e.I(),t.vn=e,qo(t,!1),t.aa(\"DocumentBoundsChanged\",null,i.copy()),pr(t))}function Er(t,e){for(var i=t.xi.iterator;i.next();)Rr(t,i.value,e);null!==t.layout&&(e?t.layout.isValidLayout=!1:t.layout.B())}function Rr(t,e,i){if(null!==e){for(var n=e.rl.iterator;n.next();)Rr(t,n.value,i);null!==e.layout&&(i?e.layout.isValidLayout=!1:e.layout.B())}}function Vr(t,e){if(t.zg&&!t.Qt){var i=t.da;t.da=!0;var n=t.undoManager.transactionLevel,o=t.layout;try{0===n&&t.Aa(\"Layout\");var r=t.animationManager;1>=n&&!r.isAnimating&&!r.rb&&(e||r.Ri(\"Layout\")),t.zg=!1;for(var s=t.xi.iterator;s.next();)_r(t,s.value,e,n);o.isValidLayout||(!e||o.isRealtime||null===o.isRealtime||0===n?(o.doLayout(t),hr(t),o.isValidLayout=!0):t.zg=!0)}finally{0===n&&t.Za(\"Layout\"),t.zg=!o.isValidLayout,t.da=i}}}function _r(t,e,i,n){if(null!==e){for(var o=e.rl.iterator;o.next();)_r(t,o.value,i,n);o=e.layout,null===o||o.isValidLayout||(!i||o.isRealtime||0===n?(e.mk=!e.location.o(),o.doLayout(e),e.B(32),ur(t,e),o.isValidLayout=!0):t.zg=!0)}}function Hr(t){function e(t){var e=t.toLowerCase(),o=new nt;i.add(t,o),i.add(e,o),n.add(t,t),n.add(e,t)}var i=new gt,n=new gt;e(\"AnimationStarting\"),e(\"AnimationFinished\"),e(\"BackgroundSingleClicked\"),e(\"BackgroundDoubleClicked\"),e(\"BackgroundContextClicked\"),e(\"ClipboardChanged\"),e(\"ClipboardPasted\"),e(\"DocumentBoundsChanged\"),e(\"ExternalObjectsDropped\"),e(\"GainedFocus\"),e(\"InitialLayoutCompleted\"),e(\"LayoutCompleted\"),e(\"LinkDrawn\"),e(\"LinkRelinked\"),e(\"LinkReshaped\"),e(\"LostFocus\"),e(\"Modified\"),e(\"ObjectSingleClicked\"),e(\"ObjectDoubleClicked\"),e(\"ObjectContextClicked\"),e(\"PartCreated\"),e(\"PartResized\"),e(\"PartRotated\"),e(\"SelectionMoved\"),e(\"SelectionCopied\"),e(\"SelectionDeleting\"),e(\"SelectionDeleted\"),e(\"SelectionGrouped\"),e(\"SelectionUngrouped\"),e(\"ChangingSelection\"),e(\"ChangedSelection\"),e(\"SubGraphCollapsed\"),e(\"SubGraphExpanded\"),e(\"TextEdited\"),e(\"TreeCollapsed\"),e(\"TreeExpanded\"),e(\"ViewportBoundsChanged\"),e(\"InvalidateDraw\"),t.St=i,t.Rt=n}function Yr(t,e){var i=t.Rt.J(e);return null!==i?i:t.Rt.J(e.toLowerCase())}function qr(t,e){var i=t.St.J(e);return null!==i?i:(i=t.St.J(e.toLowerCase()),null!==i?i:(k(\"Unknown DiagramEvent name: \"+e),null))}function Gr(t){if(t.animationManager.isAnimating)return!1;var e=t.currentTool;return e!==t.toolManager.findTool(\"Dragging\")||(!t.vp||e.isComplexRoutingRealtime)}function Xr(t,e,i,n){if(null===t.Ob&&(t.Ob=new qc),t.Ob.at||t.Ob.group!==i||t.Ob.Mx!==n){if(null===i){e=t.computeOccupiedArea(),e.Uc(100,100),t.Ob.initialize(e),e=_t.alloc();for(var o=t.nodes;o.next();){var r=o.value,s=r.layer;null!==s&&s.visible&&!s.isTemporary&&Ur(t,r,n,e)}_t.free(e)}else{for(0<i.memberParts.count&&(e=t.computePartsBounds(i.memberParts,!1),e.Uc(20,20),t.Ob.initialize(e)),e=_t.alloc(),o=i.memberParts;o.next();)r=o.value,r instanceof Au&&Ur(t,r,n,e);_t.free(e)}t.Ob.group=i,t.Ob.Mx=n,t.Ob.at=!1}else e&&Kc(t.Ob);return t.Ob}function Ur(t,e,i,n){if(e!==i)if(e.isVisible()&&e.avoidable&&!e.isLinkLabel){var o=e.getAvoidableRect(n),r=t.Ob.Ul;i=t.Ob.Tl,n=o.x+o.width,e=o.y+o.height;for(var s=o.x;s<n;s+=r){for(var a=o.y;a<e;a+=i)Uc(t.Ob,s,a);Uc(t.Ob,s,e)}for(o=o.y;o<e;o+=i)Uc(t.Ob,n,o);Uc(t.Ob,n,e)}else if(e instanceof Ju)for(e=e.memberParts;e.next();)o=e.value,o instanceof Au&&Ur(t,o,i,n)}function Kr(t,e){null!==t.Ob&&!t.Ob.at&&(void 0===e&&(e=null),null===e||e.avoidable&&!e.isLinkLabel)&&(t.Ob.at=!0)}function $r(t){-1===t.Bk&&(t.Bk=w((function(){if(-1!==t.Bk&&(t.vf(),null!==t.lastInput.event)){var e=Wr(t,t.Hq);e.Qa(t.position)||(t.position=e,t.lastInput.documentPoint=t.yt(t.Hq),t.doMouseMove(),t.Og=!0,Ir(t,t.documentBounds.copy().Jc(t.computeBounds())),t.nc=!0,t.fd(),$r(t))}}),t.Tm))}function Wr(t,e){var i=t.position,n=t.Um;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return i;var o=t.viewportBounds,r=t.scale;o=_t.allocAt(0,0,o.width*r,o.height*r);var s=mt.allocAt(0,0);if(e.x>=o.x&&e.x<o.x+n.left){var a=Math.max(t.scrollHorizontalLineChange,1);a|=0,s.x-=a,e.x<o.x+n.left/2&&(s.x-=a),e.x<o.x+n.left/4&&(s.x-=4*a)}else e.x<=o.x+o.width&&e.x>o.x+o.width-n.right&&(a=Math.max(t.scrollHorizontalLineChange,1),a|=0,s.x+=a,e.x>o.x+o.width-n.right/2&&(s.x+=a),e.x>o.x+o.width-n.right/4&&(s.x+=4*a));return e.y>=o.y&&e.y<o.y+n.top?(t=Math.max(t.scrollVerticalLineChange,1),t|=0,s.y-=t,e.y<o.y+n.top/2&&(s.y-=t),e.y<o.y+n.top/4&&(s.y-=4*t)):e.y<=o.y+o.height&&e.y>o.y+o.height-n.bottom&&(t=Math.max(t.scrollVerticalLineChange,1),t|=0,s.y+=t,e.y>o.y+o.height-n.bottom/2&&(s.y+=t),e.y>o.y+o.height-n.bottom/4&&(s.y+=4*t)),s.Qa(Dt)||(i=new mt(i.x+s.x/r,i.y+s.y/r)),_t.free(o),mt.free(s),i}function Jr(t,e,i){function n(){var t=+new Date;for(r=!0,s.reset();s.next();)if(!s.value[0].nl){r=!1;break}r||t-h>l?e(i,o,a):v.requestAnimationFrame(n)}for(var o=i.callback,r=!0,s=t.Cj.iterator;s.next();)if(!s.value[0].nl){r=!1;break}if(\"function\"!==typeof o||r)return e(i,o,t);var a=t,l=i.callbackTimeout||300,h=+new Date;return v.requestAnimationFrame((function(){n()})),null}function Zr(t,e,i,o){if(t.animationManager.vd(),t.fd(),null===t.Da)return null;\"object\"!==n(e)&&k(\"properties argument must be an Object.\");var r=e.size||null,s=e.scale||null;void 0!==e.scale&&isNaN(e.scale)&&(s=\"NaN\");var a=e.maxSize;void 0===e.maxSize&&(a=\"SVG\"===i?new It(1/0,1/0):new It(2e3,2e3));var l=e.position||null,h=e.parts||null,u=void 0===e.padding?1:e.padding,c=e.background||null,f=e.omitTemporary;void 0===f&&(f=!0);var d=e.document||document,p=e.elementFinished||null,g=e.showTemporary;void 0===g&&(g=!f),e=e.showGrid,void 0===e&&(e=g),null!==r&&isNaN(r.width)&&isNaN(r.height)&&(r=null),\"number\"===typeof u?u=new ee(u):u instanceof ee||k(\"MakeImage padding must be a Margin or a number.\"),u.left=Math.max(u.left,0),u.right=Math.max(u.right,0),u.top=Math.max(u.top,0),u.bottom=Math.max(u.bottom,0),t.Yc.Rc(!0),f=new za(null,d);var m=f.context;if(!(r||s||h||l))return f.width=t.xa+Math.ceil(u.left+u.right),f.height=t.wa+Math.ceil(u.top+u.bottom),\"SVG\"===i?null===o?null:(o.resize(f.width,f.height,f.width,f.height),o.ownerDocument=d,o.Qp=p,cr(t,o.context,u,new It(f.width,f.height),t.Ca,t.sa,h,c,g,e),o.context):(t.xn=!1,cr(t,m,u,new It(f.width,f.height),t.Ca,t.sa,h,c,g,e),t.xn=!0,f.context);var v=t.Zq,y=t.documentBounds.copy();if(y.Ov(t.eb),g)for(var b=t.Pa.j,w=b.length,x=0;x<w;x++){var M=b[x];if(M.visible&&M.isTemporary){M=M.Fa.j;for(var C=M.length,S=0;S<C;S++){var N=M[S];N.isInDocumentBounds&&N.isVisible()&&(N=N.actualBounds,N.o()&&y.Jc(N))}}}if(b=new mt(y.x,y.y),null!==h){for(w=!0,x=h.iterator,x.reset();x.next();)if(M=x.value,M instanceof lu&&(C=M.layer,(null===C||C.visible)&&(null===C||g||!C.isTemporary)&&M.isVisible()&&(M=M.actualBounds,M.o())))if(w){w=!1;var P=M.copy()}else P.Jc(M);w&&(P=new _t(0,0,0,0)),y.width=P.width,y.height=P.height,b.x=P.x,b.y=P.y}return null!==l&&l.o()&&(b=l,s||(s=v)),P=l=0,null!==u&&(l=u.left+u.right,P=u.top+u.bottom),w=x=0,null!==r&&(x=r.width,w=r.height,isFinite(x)&&(x=Math.max(0,x-l)),isFinite(w)&&(w=Math.max(0,w-P))),null!==r&&null!==s?(\"NaN\"===s&&(s=v),r.o()?(r=x,y=w):isNaN(w)?(r=x,y=y.height*s):(r=y.width*s,y=w)):null!==r?r.o()?(s=Math.min(x/y.width,w/y.height),r=x,y=w):isNaN(w)?(s=x/y.width,r=x,y=y.height*s):(s=w/y.height,r=y.width*s,y=w):null!==s?\"NaN\"===s&&a.o()?(s=Math.min((a.width-l)/y.width,(a.height-P)/y.height),s>v?(s=v,r=y.width,y=y.height):(r=a.width,y=a.height)):(r=y.width*s,y=y.height*s):(s=v,r=y.width,y=y.height),null!==u?(r+=l,y+=P):u=new ee(0),null!==a&&(v=a.width,a=a.height,isNaN(v)&&(v=2e3),isNaN(a)&&(a=2e3),isFinite(v)&&(r=Math.min(r,v)),isFinite(a)&&(y=Math.min(y,a))),f.width=Math.ceil(r),f.height=Math.ceil(y),\"SVG\"===i?null===o?null:(o.resize(f.width,f.height,f.width,f.height),o.ownerDocument=d,o.Qp=p,cr(t,o.context,u,new It(Math.ceil(r),Math.ceil(y)),s,b,h,c,g,e),o.context):(t.xn=!1,cr(t,m,u,new It(Math.ceil(r),Math.ceil(y)),s,b,h,c,g,e),t.xn=!0,f.context)}uo.className=\"AnimationManager\",No.className=\"AnimationStates\",i=Po.prototype,i.hb=function(t){this.C=t},i.toString=function(t){void 0===t&&(t=0);var e='Layer \"'+this.name+'\"';if(0>=t)return e;for(var i=0,n=0,o=0,r=0,s=0,a=this.Fa.iterator;a.next();){var l=a.value;l instanceof Ju?o++:l instanceof Au?n++:l instanceof nc?r++:l instanceof ju?s++:i++}if(a=\"\",0<i&&(a+=i+\" Parts \"),0<n&&(a+=n+\" Nodes \"),0<o&&(a+=o+\" Groups \"),0<r&&(a+=r+\" Links \"),0<s&&(a+=s+\" Adornments \"),1<t)for(t=this.Fa.iterator;t.next();)i=t.value,a+=\"\\n \"+i.toString(),n=i.data,null!==n&<(n)&&(a+=\" #\"+lt(n)),i instanceof Au?a+=\" \"+z(n):i instanceof nc&&(a+=\" \"+z(i.fromNode)+\" \"+z(i.toNode));return e+\" \"+this.Fa.count+\": \"+a},i.Sb=function(t,e,i){if(void 0===e&&(e=null),void 0===i&&(i=null),!1===this.Bj)return null;var n=!1;null!==this.diagram&&this.diagram.viewportBounds.ea(t)&&(n=!0);for(var o=mt.alloc(),r=this.Fa.j,s=r.length;s--;){var a=r[s];if((!0!==n||!1!==Cu(a))&&a.isVisible()&&(o.assign(t),wt(o,a.rd),a=a.Sb(o,e,i),null!==a&&(null!==e&&(a=e(a)),null!==a&&(null===i||i(a)))))return mt.free(o),a}return mt.free(o),null},i.Fi=function(t,e,i,n){if(void 0===e&&(e=null),void 0===i&&(i=null),n instanceof nt||n instanceof rt||(n=new rt),!1===this.Bj)return n;var o=!1;null!==this.diagram&&this.diagram.viewportBounds.ea(t)&&(o=!0);for(var r=mt.alloc(),s=this.Fa.j,a=s.length;a--;){var l=s[a];if((!0!==o||!1!==Cu(l))&&l.isVisible()){r.assign(t),wt(r,l.rd);var h=l;l.Fi(r,e,i,n)&&(null!==e&&(h=e(h)),null===h||null!==i&&!i(h)||n.add(h))}}return mt.free(r),n},i.mg=function(t,e,i,n,o){if(void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=!1),o instanceof nt||o instanceof rt||(o=new rt),!1===this.Bj)return o;var r=!1;null!==this.diagram&&this.diagram.viewportBounds.lf(t)&&(r=!0);for(var s=this.Fa.j,a=s.length;a--;){var l=s[a];if((!0!==r||!1!==Cu(l))&&l.isVisible()){var h=l;l.mg(t,e,i,n,o)&&(null!==e&&(h=e(h)),null===h||null!==i&&!i(h)||o.add(h))}}return o},i.ng=function(t,e,i,n,o,r){if(void 0===i&&(i=null),void 0===n&&(n=null),void 0===o&&(o=!0),!1!==o&&!0!==o&&((o instanceof nt||o instanceof rt)&&(r=o),o=!0),r instanceof nt||r instanceof rt||(r=new rt),!1===this.Bj)return r;var s=!1;null!==this.diagram&&this.diagram.viewportBounds.ea(t)&&(s=!0);for(var a=mt.alloc(),l=mt.alloc(),h=this.Fa.j,u=h.length;u--;){var c=h[u];if((!0!==s||!1!==Cu(c))&&c.isVisible()){a.assign(t),wt(a,c.rd),l.h(t.x+e,t.y),wt(l,c.rd);var f=c;c.ng(a,l,i,n,o,r)&&(null!==i&&(f=i(f)),null===f||null!==n&&!n(f)||r.add(f))}}return mt.free(a),mt.free(l),r},i.hd=function(t,e){if(this.visible){var i=void 0===e?t.viewportBounds:e,n=this.Fa.j,o=n.length;t=j(),e=j();for(var r=0;r<o;r++){var s=n[r];s.Bw=r,s instanceof nc&&!1===s.Lc||s instanceof ju&&null!==s.adornedPart||(Kt(s.actualBounds,i,10)?(s.hd(!0),t.push(s)):(s.hd(!1),null!==s.adornments&&0<s.adornments.count&&e.push(s)))}for(i=0;i<t.length;i++)for(n=t[i],hu(n),n=n.adornments;n.next();)o=n.value,o.measure(1/0,1/0),o.arrange(),o.hd(!0);for(i=0;i<e.length;i++)n=e[i],n.updateAdornments(),wu(n,!0);A(t),A(e)}},i.hc=function(t,e,i){if(this.visible&&0!==this.lb&&(void 0===i&&(i=!0),i||!this.isTemporary)){i=this.Fa.j;var n=i.length;if(0!==n){1!==this.lb&&(t.globalAlpha=this.lb);var o=this.Jo;o.length=0;for(var r=e.scale,s=0;s<n;s++){var a=i[s];if(Cu(a)){if(a instanceof nc&&(a.isOrthogonal&&o.push(a),!1===a.Lc))continue;var l=a.actualBounds;1<l.width*r||1<l.height*r?a.hc(t,e):To(t,a)}}t.globalAlpha=1}}},i.g=function(t,e,i,n,o){var r=this.diagram;null!==r&&r.ab(Si,t,this,e,i,n,o)},i.Ni=function(t,e,i){var n=this.Fa;if(e.fi=this,t>=n.count)t=n.count;else if(n.N(t)===e)return-1;return n.Ib(t,e),e.Yp(i),n=this.diagram,null!==n&&(i?n.R():n.Ni(e)),Lo(this,t,e),t},i.xc=function(t,e,i){if(!i&&e.layer!==this&&null!==e.layer)return e.layer.xc(t,e,i);var n=this.Fa;if(0>t||t>=n.length){if(t=n.indexOf(e),0>t)return-1}else if(n.N(t)!==e&&(t=n.indexOf(e),0>t))return-1;return e.Zp(i),n.mb(t),n=this.diagram,null!==n&&(i?n.R():n.xc(e)),e.fi=null,t},i.clear=function(){for(var t=this.Fa.Na(),e=t.length,i=0;i<e;i++)t[i].hd(!1),this.xc(-1,t[i],!1);this.Jo.length=0},p.Object.defineProperties(Po.prototype,{parts:{get:function(){return this.Fa.iterator}},partsBackwards:{get:function(){return this.Fa.iteratorBackwards}},diagram:{get:function(){return this.C}},name:{get:function(){return this.Ua},set:function(t){var e=this.Ua;if(e!==t){var i=this.diagram;if(null!==i)for(\"\"===e&&k(\"Cannot rename default Layer to: \"+t),i=i.layers;i.next();)i.value.name===t&&k(\"Layer.name is already present in this diagram: \"+t);for(this.Ua=t,this.g(\"name\",e,t),t=this.Fa.iterator;t.next();)t.value.layerName=this.Ua}}},opacity:{get:function(){return this.lb},set:function(t){var e=this.lb;e!==t&&((0>t||1<t)&&C(t,\"0 <= value <= 1\",Po,\"opacity\"),this.lb=t,this.g(\"opacity\",e,t),t=this.diagram,null!==t&&t.R())}},isTemporary:{get:function(){return this.u},set:function(t){var e=this.u;e!==t&&(this.u=t,this.g(\"isTemporary\",e,t))}},visible:{get:function(){return this.K},set:function(t){var e=this.K;if(e!==t){for(this.K=t,this.g(\"visible\",e,t),e=this.Fa.iterator;e.next();)e.value.Mb(t);t=this.diagram,null!==t&&t.R()}}},pickable:{get:function(){return this.Bj},set:function(t){var e=this.Bj;e!==t&&(this.Bj=t,this.g(\"pickable\",e,t))}},isBoundsIncluded:{get:function(){return this.l},set:function(t){this.l!==t&&(this.l=t,null!==this.diagram&&this.diagram.Xa())}},allowCopy:{get:function(){return this.Eh},set:function(t){var e=this.Eh;e!==t&&(this.Eh=t,this.g(\"allowCopy\",e,t))}},allowDelete:{get:function(){return this.Fh},set:function(t){var e=this.Fh;e!==t&&(this.Fh=t,this.g(\"allowDelete\",e,t))}},allowTextEdit:{get:function(){return this.Oh},set:function(t){var e=this.Oh;e!==t&&(this.Oh=t,this.g(\"allowTextEdit\",e,t))}},allowGroup:{get:function(){return this.Gh},set:function(t){var e=this.Gh;e!==t&&(this.Gh=t,this.g(\"allowGroup\",e,t))}},allowUngroup:{get:function(){return this.Ph},set:function(t){var e=this.Ph;e!==t&&(this.Ph=t,this.g(\"allowUngroup\",e,t))}},allowLink:{get:function(){return this.Hh},set:function(t){var e=this.Hh;e!==t&&(this.Hh=t,this.g(\"allowLink\",e,t))}},allowRelink:{get:function(){return this.Jh},set:function(t){var e=this.Jh;e!==t&&(this.Jh=t,this.g(\"allowRelink\",e,t))}},allowMove:{get:function(){return this.Ih},set:function(t){var e=this.Ih;e!==t&&(this.Ih=t,this.g(\"allowMove\",e,t))}},allowReshape:{get:function(){return this.Kh},set:function(t){var e=this.Kh;e!==t&&(this.Kh=t,this.g(\"allowReshape\",e,t))}},allowResize:{get:function(){return this.Lh},set:function(t){var e=this.Lh;e!==t&&(this.Lh=t,this.g(\"allowResize\",e,t))}},allowRotate:{get:function(){return this.Mh},set:function(t){var e=this.Mh;e!==t&&(this.Mh=t,this.g(\"allowRotate\",e,t))}},allowSelect:{get:function(){return this.Nh},set:function(t){var e=this.Nh;e!==t&&(this.Nh=t,this.g(\"allowSelect\",e,t))}}}),Po.prototype.findObjectsNear=Po.prototype.ng,Po.prototype.findObjectsIn=Po.prototype.mg,Po.prototype.findObjectsAt=Po.prototype.Fi,Po.prototype.findObjectAt=Po.prototype.Sb,Po.className=\"Layer\",Do.prototype.clear=function(){this.model.clear(),ps=null,gs=\"\",jo(this,!1),this.vn=new _t(NaN,NaN,NaN,NaN).freeze(),this.R()},Do.prototype.reset=function(){this.ob=!0,this.clear(),this.yk=new uo,this.yk.hb(this),this.Pa=new nt,this.Dv(),this.Cv(),this.sa=new mt(NaN,NaN).freeze(),this.Ca=1,this.ur=new mt(NaN,NaN).freeze(),this.vr=NaN,this.Pr=1e-4,this.Nr=100,this.Is=new mt(NaN,NaN).freeze(),this.jr=new _t(NaN,NaN,NaN,NaN).freeze(),this.ri=new ee(0,0,0,0).freeze(),this.Gj=Ss,this.rs=!1,this.ms=this.hs=null,this.aj=ms,this.cj=Ae,this.ai=ms,this.On=Ae,this.wr=this.tr=he,this.Tm=250,this.Um=new ee(16,16,16,16).freeze(),this.Er=!0,this.Ds=Ps,this.Fs=bs,this.qn=\"auto\",this.Rf=this.Sr=this.Tf=this.Uf=this.Wf=this.Bf=this.Ff=this.Af=null,this.pr=!1,this.Cf=this.gg=this.Vf=this.Sf=null,this.Lf=!1,this.Fh=this.Eh=this.yq=this.Dc=!0,this.zq=!1,this.Eq=this.Bq=this.rr=this.qr=this.Fq=this.Dq=this.Nh=this.Mh=this.Lh=this.Kh=this.Ih=this.Jh=this.Hh=this.Cq=this.Ph=this.Gh=this.Oh=this.Aq=!0,this.qs=this.os=16,this.eb=new ee(5).freeze(),this.Or=999999999,this.gc=null,this.Fr=!1,this.Nb=1,this.jh=null,this.Tr=0,this.Ur=[0,0,0,0,0],this.Vr=0,Bo(this),this.Eb=null,this.partManager=new Of,this.toolManager=new Ai,this.toolManager.initializeStandardTools(),this.cs=this.bs=this.br=null,this.vp=!1,this.Lk.reset(),this.pu=new gt,this.pu.clear(),this.currentTool=this.defaultTool=this.toolManager,this.commandHandler=Ao(),this.eh=!0,Ro(this),this.layout=new hf,this.eh=!1,this.model=cd(),this.model.undoManager=new Li,this.ge=!1,this.Xk=!0,this.ob=this.qd=!1,this.R(),this.ne=this.zf=null,Hr(this),this.Sq=\"\"},Do.prototype.setRTL=function(t){t=void 0===t?this.div:t,null===t&&(t=v.document.body);var e=x(\"div\");e.dir=\"rtl\",e.style.cssText=\"font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;\",e.textContent=\"A\",t.appendChild(e);var i=\"reverse\";0<e.scrollLeft?i=\"default\":(e.scrollLeft=1,0===e.scrollLeft&&(i=\"negative\")),t.removeChild(e),this.ru=i},Do.prototype.setScrollWidth=function(t){t=void 0===t?this.div:t,null===t&&(t=v.document.body);var e=0;if(ds){var i=fs;e=cs,null===i&&(i=fs=x(\"p\"),i.style.width=\"100%\",i.style.height=\"200px\",i.style.boxSizing=\"content-box\",e=cs=x(\"div\"),e.style.position=\"absolute\",e.style.visibility=\"hidden\",e.style.width=\"200px\",e.style.height=\"150px\",e.style.boxSizing=\"content-box\",e.appendChild(i)),e.style.overflow=\"hidden\",t.appendChild(e);var n=i.offsetWidth;e.style.overflow=\"scroll\",i=i.offsetWidth,n===i&&(i=e.clientWidth),t.removeChild(e),e=n-i,0!==e||G||(e=11)}this.Gb=e},Do.prototype.fb=function(t){t.classType===Do&&(this.autoScale=t)},Do.prototype.toString=function(t){void 0===t&&(t=0);var e=\"\";if(this.div&&this.div.id&&(e=this.div.id),e='Diagram \"'+e+'\"',0>=t)return e;for(var i=this.Pa.iterator;i.next();)e+=\"\\n \"+i.value.toString(t-1);return e},Do.prototype.addEventListener=function(t,e,i,n){t.addEventListener(e,i,n)},Do.prototype.removeEventListener=function(t,e,i,n){t.removeEventListener(e,i,n)},Do.prototype.computePixelRatio=function(){return null!==this.jh?this.jh:v.devicePixelRatio||1},Do.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Do.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Do.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Do.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Do.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Do.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Do.prototype.doFocus=function(){this.focus()},Do.prototype.focus=function(){if(this.Da)if(this.scrollsPageOnFocus)this.Da.focus();else{var t=v.scrollX||v.pageXOffset,e=v.scrollY||v.pageYOffset;this.Da.focus(),v.scrollTo(t,e)}},Do.prototype.ty=function(){this.C.aa(\"GainedFocus\")},Do.prototype.sy=function(){this.C.aa(\"LostFocus\")},Do.prototype.bx=function(t){if(null!==this.Da){this.ns=!0;var e=this.documentBounds,i=this.viewportBounds,n=this.ri,o=e.x-n.left,r=e.y-n.top,s=e.width+n.left+n.right,a=e.height+n.top+n.bottom,l=e.right+n.right;n=e.bottom+n.bottom;var h=i.x;e=i.y;var u=i.width,c=i.height,f=i.right,d=i.bottom;i=this.scale;var p=t.scrollLeft;if(this.Tn)switch(this.ru){case\"negative\":p=p+t.scrollWidth-t.clientWidth;break;case\"reverse\":p=t.scrollWidth-p-t.clientWidth}var g=p;u<s||c<a?(p=mt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.uu!==g&&(p.x=g/i+o,this.uu=g),this.allowVerticalScroll&&this.vu!==t.scrollTop&&(p.y=t.scrollTop/i+r,this.vu=t.scrollTop),this.position=p,mt.free(p),this.kj=this.ns=!1):(p=mt.alloc(),t.Yx&&this.allowHorizontalScroll&&(o<h&&(this.position=p.h(g+o,this.position.y)),l>f&&(this.position=p.h(-(this.ps.scrollWidth-this.xa)+g-this.xa/i+l,this.position.y))),t.Zx&&this.allowVerticalScroll&&(r<e&&(this.position=p.h(this.position.x,t.scrollTop+r)),n>d&&(this.position=p.h(this.position.x,-(this.ps.scrollHeight-this.wa)+t.scrollTop-this.wa/i+n))),mt.free(p),gr(this),this.kj=this.ns=!1,e=this.documentBounds,i=this.viewportBounds,l=e.right,f=i.right,n=e.bottom,d=i.bottom,o=e.x,h=i.x,r=e.y,e=i.y,u>=s&&o>=h&&l<=f&&(this.fp.style.width=\"1px\"),c>=a&&r>=e&&n<=d&&(this.fp.style.height=\"1px\"))}},Do.prototype.computeBounds=function(){return 0<this.Dd.count&&hr(this),Yo(this)},Do.prototype.computePartsBounds=function(t,e){void 0===e&&(e=!1);var i=null;if(T(t))for(var n=0;n<t.length;n++){var o=t[n];!e&&o instanceof nc||(o.ac(),null===i?i=o.actualBounds.copy():i.Jc(o.actualBounds))}else for(t=t.iterator;t.next();)n=t.value,!e&&n instanceof nc||(n.ac(),null===i?i=n.actualBounds.copy():i.Jc(n.actualBounds));return null===i?new _t(NaN,NaN,0,0):i},Do.prototype.zoomToFit=function(){var t=this.Gj;this.Gj=Ss,this.scale=Go(this,vs),t!==Ss&&(qo(this,!1),Xo(this,this.documentBounds,this.xa/this.Ca,this.wa/this.Ca,this.cj,!1)),this.Gj=t},i=Do.prototype,i.aA=function(t,e){void 0===e&&(e=vs);var i=t.width,n=t.height;if(!(0===i||0===n||isNaN(i)&&isNaN(n))){var o=1;if(e===vs||e===ys)if(isNaN(i))o=this.viewportBounds.height*this.scale/n;else if(isNaN(n))o=this.viewportBounds.width*this.scale/i;else{o=this.xa;var r=this.wa;o=e===ys?r/n>o/i?(r-(this.Ng?this.Gb:0))/n:(o-(this.Zh?this.Gb:0))/i:Math.min(r/n,o/i)}this.scale=o,this.position=new mt(t.x,t.y)}},i.my=function(t,e){this.Og&&Ir(this,this.computeBounds());var i=this.documentBounds,n=this.viewportBounds;this.position=new mt(i.x+(t.x*i.width+t.offsetX)-(e.x*n.width-e.offsetX),i.y+(t.y*i.height+t.offsetY)-(e.y*n.height-e.offsetY))},i.$l=function(t,e){if(void 0===e&&(e=!0),e){if(t=Uo(this,t,(function(t){return t.part}),(function(t){return t.canSelect()})),t instanceof lu)return t}else if(t=Uo(this,t,(function(t){return t.part})),t instanceof lu)return t;return null},i.Sb=function(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null),hr(this);for(var n=this.Pa.iteratorBackwards;n.next();){var o=n.value;if(o.visible&&(o=o.Sb(t,e,i),null!==o))return o}return null},i.Py=function(t,e,i){return void 0===e&&(e=!0),Ko(this,t,(function(t){return t.part}),e?function(t){return t instanceof lu&&t.canSelect()}:null,i)},i.Fi=function(t,e,i,n){void 0===e&&(e=null),void 0===i&&(i=null),n instanceof nt||n instanceof rt||(n=new rt),hr(this);for(var o=this.Pa.iteratorBackwards;o.next();){var r=o.value;r.visible&&r.Fi(t,e,i,n)}return n},i.kx=function(t,e,i,n){return void 0===e&&(e=!1),void 0===i&&(i=!0),$o(this,t,(function(t){return t instanceof lu&&(!i||t.canSelect())}),e,n)},i.mg=function(t,e,i,n,o){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n=!1),o instanceof nt||o instanceof rt||(o=new rt),hr(this);for(var r=this.Pa.iteratorBackwards;r.next();){var s=r.value;s.visible&&s.mg(t,e,i,n,o)}return o},i.Qy=function(t,e,i,n,o){return void 0===i&&(i=!0),void 0===n&&(n=!0),Wo(this,t,e,(function(t){return t instanceof lu&&(!n||t.canSelect())}),i,o)},i.ng=function(t,e,i,n,o,r){void 0===i&&(i=null),void 0===n&&(n=null),void 0===o&&(o=!0),!1!==o&&!0!==o&&((o instanceof nt||o instanceof rt)&&(r=o),o=!0),r instanceof nt||r instanceof rt||(r=new rt),hr(this);for(var s=this.Pa.iteratorBackwards;s.next();){var a=s.value;a.visible&&a.ng(t,e,i,n,o,r)}return r},Do.prototype.acceptEvent=function(t){return Jo(this,t,t instanceof MouseEvent)},Do.prototype.vz=function(t){var e=this.C;if(!this.C.isEnabled)return!1;var i=Jo(e,t,!1);switch(i.key=String.fromCharCode(t.which),i.down=!0,t.which){case 8:i.key=\"Backspace\";break;case 33:i.key=\"PageUp\";break;case 34:i.key=\"PageDown\";break;case 35:i.key=\"End\";break;case 36:i.key=\"Home\";break;case 37:i.key=\"Left\";break;case 38:i.key=\"Up\";break;case 39:i.key=\"Right\";break;case 40:i.key=\"Down\";break;case 45:i.key=\"Insert\";break;case 46:i.key=\"Del\";break;case 48:i.key=\"0\";break;case 187:case 61:case 107:i.key=\"Add\";break;case 189:case 173:case 109:i.key=\"Subtract\";break;case 27:i.key=\"Esc\"}return e.doKeyDown(),ir(i,t)},Do.prototype.wz=function(t){var e=this.C;if(!e.isEnabled)return!1;var i=Jo(e,t,!1);switch(i.key=String.fromCharCode(t.which),i.up=!0,t.which){case 8:i.key=\"Backspace\";break;case 33:i.key=\"PageUp\";break;case 34:i.key=\"PageDown\";break;case 35:i.key=\"End\";break;case 36:i.key=\"Home\";break;case 37:i.key=\"Left\";break;case 38:i.key=\"Up\";break;case 39:i.key=\"Right\";break;case 40:i.key=\"Down\";break;case 45:i.key=\"Insert\";break;case 46:i.key=\"Del\"}return e.doKeyUp(),ir(i,t)},Do.prototype.Fy=function(t){var e=this.C;if(!e.isEnabled)return!1;var i=Jo(e,t,!0);return null!==e.mouseEnter&&e.mouseEnter(i),ir(i,t)},Do.prototype.Gy=function(t){var e=this.C;if(!e.isEnabled)return!1;var i=Jo(e,t,!0);return null!==e.mouseLeave&&e.mouseLeave(i),ir(i,t)},Do.prototype.getMouse=function(t){var e=this.Da;if(null===e)return new mt(0,0);var i=e.getBoundingClientRect();return e=t.clientX-this.xa/i.width*i.left,t=t.clientY-this.wa/i.height*i.top,null!==this.tb?wt(new mt(e,t),this.tb):new mt(e,t)},i=Do.prototype,i.Xa=function(){this.Og||(this.Og=!0,this.cc(!0))},i.sf=function(){this.ob||this.Zb||(this.R(),pr(this),gr(this),this.Xa(),this.fd())},i.uz=function(){return this.qd},i.Ay=function(t){void 0===t&&(t=null);var e=this.animationManager,i=e.isEnabled;e.vd(),e.isEnabled=!1,ar(this),this.ge=!1,e.isEnabled=i,null!==t&&w(t,1)},i.cc=function(t){if(void 0===t&&(t=!1),!0!==this.qd&&!(this.ob||!1===t&&this.Zb)){this.qd=!0;var e=this;v.requestAnimationFrame((function(){e.qd&&e.fd()}))}},i.fd=function(){this.Xk&&!this.qd||(this.Xk&&(this.Xk=!1),ar(this))},i.Yv=function(t,e){for(t.reset();t.next();){var i=t.value;!i.Lb()||i instanceof Ju||(i.Pi()?(i.measure(1/0,1/0),i.arrange()):e.add(i))}for(t.reset();t.next();)i=t.value,i instanceof Ju&&i.isVisible()&&ur(this,i);for(t.reset();t.next();)i=t.value,i instanceof nc&&i.isVisible()&&(i.Pi()?(i.measure(1/0,1/0),i.arrange()):e.add(i));for(t.reset();t.next();)i=t.value,i instanceof ju&&i.isVisible()&&(i.Pi()?(i.measure(1/0,1/0),i.arrange()):e.add(i))},i.hd=function(t,e,i,n){if(this.bi||this.animationManager.isAnimating)for(var o=0;o<e;o++)t[o].hd(i,n)},i.hc=function(t,e){if(void 0===e&&(e=null),null!==this.Ia){null===this.Da&&k(\"No canvas specified\");var i=this.animationManager;if(!i.rb){var n=new Date;if(mr(this),\"0\"!==this.Ia.style.opacity){var o=t!==this.Yc,r=this.Pa.j,s=r.length,a=this;if(this.hd(r,s,a),o)t.Rc(!0),gr(this);else if(!this.nc&&null===e&&!i.isAnimating)return;s=this.sa;var l=this.Ca,h=Math.round(s.x*l)/l,u=Math.round(s.y*l)/l;for(i=this.tb,i.reset(),1!==l&&i.scale(l),0===s.x&&0===s.y||i.translate(-h,-u),l=this.Nb,t.setTransform(1,0,0,1,0,0),t.scale(l,l),t.clearRect(0,0,this.xa,this.wa),t.setTransform(1,0,0,1,0,0),t.scale(l,l),t.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),h=null!==e?function(i){var n=e;if(i.visible&&0!==i.lb){var o=i.Fa.j,r=o.length;if(0!==r){1!==i.lb&&(t.globalAlpha=i.lb),i=i.Jo,i.length=0;for(var s=a.scale,l=0;l<r;l++){var h=o[l];if(Cu(h)&&!n.contains(h)){if(h instanceof nc&&(h.isOrthogonal&&i.push(h),!1===h.Lc))continue;var u=h.actualBounds;1<u.width*s||1<u.height*s?h.hc(t,a):To(t,h)}}t.globalAlpha=1}}}:function(e){e.hc(t,a)},fr(this,t),s=r.length,u=0;u<s;u++)t.setTransform(1,0,0,1,0,0),t.scale(l,l),t.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),h(r[u]);if(this.$h&&zs(this.$h,this)&&this.cr(),o?(this.Yc.Rc(!0),gr(this)):this.nc=this.bi=!1,o=+new Date-+n,null===this.jh){for(n=this.Ur,n[this.Vr]=o,this.Vr=(this.Vr+1)%n.length,r=o=0;r<this.Ur.length;r++)o+=this.Ur[r];this.Tr=o/n.length}}}}},i.De=function(t){return this.$g[t]},i.Jx=function(t,e){this.$g[t]=e,this.sf()},i.Dv=function(){this.$g=new J,this.$g.drawShadows=!0,this.$g.textGreeking=!0,this.$g.viewportOptimizations=!(G||_||H),this.$g.temporaryPixelRatio=!0,this.$g.pictureRatioOptimization=!0},i.bm=function(t){return this.dl[t]},i.Rz=function(t,e){this.dl[t]=e},i.Cv=function(){this.dl=new J,this.dl.extraTouchArea=10,this.dl.extraTouchThreshold=10,this.dl.hasGestureZoom=!0},i.Mv=function(t){dr(this,t)},i.Ku=function(){if(0===this.undoManager.transactionLevel&&0!==this.Wh.count){for(;0<this.Wh.count;){var t=this.Wh;for(this.Wh=new gt,t=t.iterator;t.next();){var e=t.key;e.$p(t.value),e.bc()}}this.R()}},i.R=function(t){if(void 0===t&&(t=null),null===t)this.nc=!0,this.cc();else{var e=this.viewportBounds;null!==t&&t.o()&&e.Ic(t)&&(this.nc=!0,this.cc())}this.aa(\"InvalidateDraw\")},i.ox=function(t,e){if(!0!==this.nc){this.nc=!0;var i=!0===this.De(\"temporaryPixelRatio\");if(!0===this.De(\"viewportOptimizations\")&&this.scrollMode!==Ns&&this.ri.Di(0,0,0,0)&&e.width===t.width&&e.height===t.height){var n=this.scale,o=Math.max(t.x,e.x),r=Math.max(t.y,e.y);if(n=_t.allocAt(o,r,Math.max(0,Math.min(t.x+t.width,e.x+e.width)-o)*n,Math.max(0,Math.min(t.y+t.height,e.y+e.height)-r)*n),!this.As&&0<n.width&&0<n.height){if(!(this.Zb||(this.qd=!1,null===this.Ia||(this.Zb=!0,this.Ku(),this.documentBounds.o()||Ir(this,this.computeBounds()),o=this.Da,null===o||o instanceof Ta)))){var s=this.Nb;r=this.xa*s;var a=this.wa*s,l=this.scale*s,h=Math.round(Math.round(e.x*l)-Math.round(t.x*l));e=Math.round(Math.round(e.y*l)-Math.round(t.y*l)),l=this.Ut,t=this.uw,l.width!==r&&(l.width=r),l.height!==a&&(l.height=a),t.clearRect(0,0,r,a),l=190*s;var u=70*s,c=Math.max(h,0),f=Math.max(e,0),d=Math.floor(r-c),p=Math.floor(a-f);t.drawImage(o.Ga,c,f,d,p,0,0,d,p),zs(this.$h,this)&&t.clearRect(0,0,l,u),o=j(),t=j(),p=Math.abs(h),d=Math.abs(e);var g=0===c?0:r-p;c=mt.allocAt(g,0),p=mt.allocAt(p+g,a),t.push(new _t(Math.min(c.x,p.x),Math.min(c.y,p.y),Math.abs(c.x-p.x),Math.abs(c.y-p.y)));var m=this.tb;if(m.reset(),m.scale(s,s),1!==this.Ca&&m.scale(this.Ca),s=this.sa,(0!==s.x||0!==s.y)&&isFinite(s.x)&&isFinite(s.y)&&m.translate(-s.x,-s.y),wt(c,m),wt(p,m),o.push(new _t(Math.min(c.x,p.x),Math.min(c.y,p.y),Math.abs(c.x-p.x),Math.abs(c.y-p.y))),g=0===f?0:a-d,c.h(0,g),p.h(r,d+g),t.push(new _t(Math.min(c.x,p.x),Math.min(c.y,p.y),Math.abs(c.x-p.x),Math.abs(c.y-p.y))),wt(c,m),wt(p,m),o.push(new _t(Math.min(c.x,p.x),Math.min(c.y,p.y),Math.abs(c.x-p.x),Math.abs(c.y-p.y))),zs(this.$h,this)&&(r=0<h?0:-h,a=0<e?0:-e,c.h(r,a),p.h(l+r,u+a),t.push(new _t(Math.min(c.x,p.x),Math.min(c.y,p.y),Math.abs(c.x-p.x),Math.abs(c.y-p.y))),wt(c,m),wt(p,m),o.push(new _t(Math.min(c.x,p.x),Math.min(c.y,p.y),Math.abs(c.x-p.x),Math.abs(c.y-p.y)))),mt.free(c),mt.free(p),sr(this,!1),null===this.Ia&&k(\"No div specified\"),null===this.Da&&k(\"No canvas specified\"),!this.animationManager.rb&&(r=this.Yc,this.nc)){for(mr(this),a=this.Nb,r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.xa*a,this.wa*a),r.drawImage(this.Ut.Ga,0<h?0:Math.round(-h),0<e?0:Math.round(-e)),h=this.sa,s=this.Ca,l=Math.round(h.x*s)/s,u=Math.round(h.y*s)/s,e=this.tb,e.reset(),1!==s&&e.scale(s),0===h.x&&0===h.y||e.translate(-l,-u),r.save(),r.beginPath(),h=t.length,s=0;s<h;s++)l=t[s],0!==l.width&&0!==l.height&&r.rect(Math.floor(l.x),Math.floor(l.y),Math.ceil(l.width),Math.ceil(l.height));for(r.clip(),r.setTransform(1,0,0,1,0,0),r.scale(a,a),r.transform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy),e=this.Pa.j,h=e.length,this.hd(e,h,this),fr(this,r),a=0;a<h;a++)if(f=e[a],s=o,f.visible&&0!==f.lb){for(1!==f.lb&&(r.globalAlpha=f.lb),l=f.Jo,l.length=0,u=this.scale,f=f.Fa.j,c=f.length,d=s.length,p=0;p<c;p++)if(m=f[p],Cu(m)){if(m instanceof nc&&(m.isOrthogonal&&l.push(m),!1===m.Lc))continue;g=du(m,m.actualBounds);t:{for(var v=2/u,y=4/u,b=0;b<d;b++){var w=s[b];if(0!==w.width&&0!==w.height&&g.hv(w.x-v,w.y-v,w.width+y,w.height+y)){v=!0;break t}}v=!1}v&&(1<g.width*u||1<g.height*u?m.hc(r,this):To(r,m))}r.globalAlpha=1}r.restore(),r.Rc(!0),this.$h&&zs(this.$h,this)&&this.cr(),this.nc=this.bi=!1,this.ot()}A(o),A(t),this.Zb=!1}}else this.fd();_t.free(n),i&&(Fo(this),this.fd(),Io(this,!0))}else i?(Fo(this),this.fd(),Io(this,!0)):this.fd()}},i.add=function(t){var e=t.diagram;if(e!==this&&(null!==e&&k(\"Cannot add part \"+t.toString()+\" to \"+this.toString()+\". It is already a part of \"+e.toString()),e=this.Zl(t.layerName),null===e&&(e=this.Zl(\"\")),null===e&&k('Cannot add a Part when unable find a Layer named \"'+t.layerName+'\" and there is no default Layer'),t.layer!==e)){var i=e.Ni(99999999,t,t.diagram===this);0<=i&&this.ab(Ni,\"parts\",e,null,t,null,i),e.isTemporary||this.Xa(),t.B(1),i=t.layerChanged,null!==i&&i(t,null,e)}},i.Ni=function(t){this.partManager.Ni(t);var e=this;Al(t,(function(t){Ar(e,t)})),(t instanceof ju||t instanceof Ju&&null!==t.placeholder)&&t.s(),null!==t.data&&Al(t,(function(t){zf(e.partManager,t)})),!0!==ma(t)&&!0!==xu(t)||this.Dd.add(t),yu(t,!0,this),Lu(t)?(t.actualBounds.o()&&this.R(du(t,t.actualBounds)),this.Xa()):t.isVisible()&&t.actualBounds.o()&&this.R(du(t,t.actualBounds)),this.cc()},i.xc=function(t){t.Sj(),this.partManager.xc(t);var e=this;Al(t,(function(t){zr(e,t)})),null!==t.data&&Al(t,(function(t){Ff(e.partManager,t)})),this.Dd.remove(t),Lu(t)?(t.actualBounds.o()&&this.R(du(t,t.actualBounds)),this.Xa()):t.isVisible()&&t.actualBounds.o()&&this.R(du(t,t.actualBounds)),this.cc()},i.remove=function(t){br(this,t,!0)},i.rt=function(t,e){if(T(t))for(var i=t.length,n=0;n<i;n++){var o=t[n];e&&!o.canDelete()||this.remove(o)}else for(i=new rt,i.addAll(t),t=i.iterator;t.next();)i=t.value,e&&!i.canDelete()||this.remove(i)},i.Xj=function(t,e,i){return this.partManager.Xj(t,e,i)},Do.prototype.moveParts=function(t,e,i,n){if(void 0===n&&(n=kr(this)),null!==this.toolManager){var o=new gt;if(null!==t)if(T(t))for(var r=0;r<t.length;r++)wr(this,o,t[r],i,n);else for(t=t.iterator;t.next();)wr(this,o,t.value,i,n);else{for(t=this.parts;t.next();)wr(this,o,t.value,i,n);for(t=this.nodes;t.next();)wr(this,o,t.value,i,n);for(t=this.links;t.next();)wr(this,o,t.value,i,n)}xr(this,o,e,n,i)}},Do.prototype.computeMove=function(t,e,i,n){if(void 0===n&&(n=new mt),n.assign(e),null===t)return n;var o=e,r=i.isGridSnapEnabled;r&&(i.isGridSnapRealtime||this.lastInput.up)&&(o=mt.alloc(),Mr(this,t,e,o,i)),i=null!==t.dragComputation?t.dragComputation(t,e,o):o;var s=t.minLocation,a=s.x;isNaN(a)&&(a=r?Math.round(t.location.x):t.location.x),s=s.y,isNaN(s)&&(s=r?Math.round(t.location.y):t.location.y);var l=t.maxLocation,h=l.x;return isNaN(h)&&(h=r?Math.round(t.location.x):t.location.x),l=l.y,isNaN(l)&&(l=r?Math.round(t.location.y):t.location.y),n.h(Math.max(a,Math.min(i.x,h)),Math.max(s,Math.min(i.y,l))),o!==e&&mt.free(o),n},i=Do.prototype,i.pd=function(t,e,i){if(void 0===i)return new Is(Dt);var n=t.isGridSnapEnabled;return t.kz||null===e.containingGroup||(n=!1),new Is(n?new mt(Math.round(i.x),Math.round(i.y)):i.copy())},i.Ql=function(t){Pr(this,t,null),t.hb(this);var e=this.Pa,i=e.count-1;if(!t.isTemporary)for(;0<=i&&e.N(i).isTemporary;)i--;e.Ib(i+1,t),null!==this.$b&&this.ab(Ni,\"layers\",this,null,t,null,i+1),this.R(),this.Xa()},i.Rw=function(t,e){Pr(this,t,e),t.hb(this);var i=this.Pa,n=i.indexOf(t);0<=n&&(i.remove(t),null!==this.$b&&this.ab(Pi,\"layers\",this,t,null,n,null));var o,r=i.count;for(o=0;o<r;o++)if(i.N(o)===e){i.Ib(o,t);break}null!==this.$b&&this.ab(Ni,\"layers\",this,null,t,null,o),this.R(),0>n&&this.Xa()},i.hy=function(t,e){Pr(this,t,e),t.hb(this);var i=this.Pa,n=i.indexOf(t);0<=n&&(i.remove(t),null!==this.$b&&this.ab(Pi,\"layers\",this,t,null,n,null));var o,r=i.count;for(o=0;o<r;o++)if(i.N(o)===e){i.Ib(o+1,t);break}null!==this.$b&&this.ab(Ni,\"layers\",this,null,t,null,o+1),this.R(),0>n&&this.Xa()},i.Lz=function(t){if(t.diagram!==this&&k(\"Cannot remove a Layer from another Diagram: \"+t+\" of \"+t.diagram),\"\"!==t.name){var e=this.Pa,i=e.indexOf(t);if(e.remove(t)){for(e=t.Fa.copy().iterator;e.next();){var n=e.value,o=n.layerName;o!==t.name?n.layerName=o:n.layerName=\"\"}null!==this.$b&&this.ab(Pi,\"layers\",this,t,null,i,null),this.R(),this.Xa()}}},i.Zl=function(t){for(var e=this.layers;e.next();){var i=e.value;if(i.name===t)return i}return null},i.Tw=function(t){null===this.ne&&(this.ne=new nt),this.ne.add(t),this.model.rh(t)},i.Nz=function(t){null!==this.ne&&(this.ne.remove(t),0===this.ne.count&&(this.ne=null)),this.model.pk(t)},i.rh=function(t){null===this.zf&&(this.zf=new nt),this.zf.add(t)},i.pk=function(t){null!==this.zf&&(this.zf.remove(t),0===this.zf.count&&(this.zf=null))},i.Ks=function(t){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.fv(t),t.change!==Ci&&(this.isModified=!0),null!==this.zf)for(var e=this.zf,i=e.length,n=0;n<i;n++)e.N(n)(t)},i.ab=function(t,e,i,n,o,r,s){void 0===r&&(r=null),void 0===s&&(s=null);var a=new Mi;a.diagram=this,a.change=t,a.propertyName=e,a.object=i,a.oldValue=n,a.oldParam=r,a.newValue=o,a.newParam=s,this.Ks(a)},i.g=function(t,e,i,n,o){this.ab(Si,t,this,e,i,n,o)},i.Rj=function(t,e){if(null!==t&&t.diagram===this){var i=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var n=t.change;if(n===Si){var o=t.object;if(pd(o,t.propertyName,t.J(e)),o instanceof Ks){var r=o.part;null!==r&&r.Jb()}this.isModified=!0}else if(n===Ni){var s=t.object,a=t.newParam,l=t.newValue;if(s instanceof Nl){if(\"number\"===typeof a&&l instanceof Ks){e?s.xc(a):s.Ib(a,l);var h=s.part;null!==h&&h.Jb()}else if(\"number\"===typeof a&&l instanceof eh)if(e)l.isRow?s.Av(a):s.yv(a);else{var u=l.isRow?s.getRowDefinition(l.index):s.getColumnDefinition(l.index);u.Vl(l)}}else if(s instanceof Po){var c=!0===t.oldParam;\"number\"===typeof a&&l instanceof lu&&(e?(l.isSelected=!1,l.isHighlighted=!1,l.Jb(),s.xc(c?a:-1,l,c)):s.Ni(a,l,c))}else s instanceof Do?\"number\"===typeof a&&l instanceof Po&&(e?this.Pa.mb(a):(l.hb(this),this.Pa.Ib(a,l))):k(\"unknown ChangedEvent.Insert object: \"+t.toString());this.isModified=!0}else if(n===Pi){var f=t.object,d=t.oldParam,p=t.oldValue;if(f instanceof Nl)\"number\"===typeof d&&p instanceof Ks?e?f.Ib(d,p):f.xc(d):\"number\"===typeof d&&p instanceof eh&&(e?(u=p.isRow?f.getRowDefinition(p.index):f.getColumnDefinition(p.index),u.Vl(p)):p.isRow?f.Av(d):f.yv(d));else if(f instanceof Po){var g=!0===t.newParam;\"number\"===typeof d&&p instanceof lu&&(e?0>f.Fa.indexOf(p)&&f.Ni(d,p,g):(p.isSelected=!1,p.isHighlighted=!1,p.Jb(),f.xc(g?d:-1,p,g)))}else f instanceof Do?\"number\"===typeof d&&p instanceof Po&&(e?(p.hb(this),this.Pa.Ib(d,p)):this.Pa.mb(d)):k(\"unknown ChangedEvent.Remove object: \"+t.toString());this.isModified=!0}else n!==Ci&&k(\"unknown ChangedEvent: \"+t.toString())}finally{this.skipsModelSourceBindings=i}}},i.Aa=function(t){return this.undoManager.Aa(t)},i.Za=function(t){return this.undoManager.Za(t)},i.uf=function(){return this.undoManager.uf()},Do.prototype.commit=function(t,e){void 0===e&&(e=\"\");var i=this.skipsUndoManager;null===e&&(this.skipsUndoManager=!0,e=\"\"),this.undoManager.Aa(e);var n=!1;try{t(this),n=!0}finally{n?this.undoManager.Za(e):this.undoManager.uf(),this.skipsUndoManager=i}},Do.prototype.updateAllTargetBindings=function(t){this.partManager.updateAllTargetBindings(t)},i=Do.prototype,i.tq=function(){this.partManager.tq()},i.iq=function(t,e,i,n){if(!t.A(e)){void 0===n&&(n=!1),n||pr(this),gr(this);var o=this.layout;null===o||!o.isViewportSized||this.autoScale!==ms||n||t.width===e.width&&t.height===e.height||o.B(),o=this.currentTool,!0===this.he&&o instanceof Ai&&(this.lastInput.documentPoint=this.yt(this.lastInput.viewPoint),Bi(o,this)),this.ob||this.ox(t,e),Lr(this),this.we.scale=i,this.we.position.x=t.x,this.we.position.y=t.y,this.we.bounds.assign(t),this.we.qx=n,this.aa(\"ViewportBoundsChanged\",this.we,t),this.isVirtualized&&this.links.each((function(t){t.isAvoiding&&t.actualBounds.Ic(e)&&t.Ra()}))}},i.Ls=function(){var t=0<this.selection.count;t&&this.aa(\"ChangingSelection\",this.selection),Or(this),t&&this.aa(\"ChangedSelection\",this.selection)},i.select=function(t){null!==t&&t.layer.diagram===this&&(!t.isSelected||1<this.selection.count)&&(this.aa(\"ChangingSelection\",this.selection),Or(this),t.isSelected=!0,this.aa(\"ChangedSelection\",this.selection))},i.Gv=function(t){if(this.aa(\"ChangingSelection\",this.selection),Or(this),T(t))for(var e=t.length,i=0;i<e;i++){var n=t[i];n instanceof lu||k(\"Diagram.selectCollection given something that is not a Part: \"+n),n.isSelected=!0}else for(t=t.iterator;t.next();)e=t.value,e instanceof lu||k(\"Diagram.selectCollection given something that is not a Part: \"+e),e.isSelected=!0;this.aa(\"ChangedSelection\",this.selection)},i.Ww=function(){var t=this.highlighteds;if(0<t.count){for(var e=t.Na(),i=e.length,n=0;n<i;n++)e[n].isHighlighted=!1;t.ha(),t.clear(),t.freeze()}},i.mz=function(t){null!==t&&t.layer.diagram===this&&(!t.isHighlighted||1<this.highlighteds.count)&&(this.Ww(),t.isHighlighted=!0)},i.nz=function(t){t=(new rt).addAll(t);for(var e=this.highlighteds.copy().lq(t).iterator;e.next();)e.value.isHighlighted=!1;for(t=t.iterator;t.next();)e=t.value,e instanceof lu||k(\"Diagram.highlightCollection given something that is not a Part: \"+e),e.isHighlighted=!0},i.scroll=function(t,e,i){void 0===i&&(i=1);var n=\"up\"===e||\"down\"===e,o=0;if(\"pixel\"===t)o=i;else if(\"line\"===t)o=i*(n?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(\"page\"===t)t=n?this.viewportBounds.height:this.viewportBounds.width,t*=this.scale,0!==t&&(o=i*Math.max(t-(n?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(\"document\"===t)return o=this.documentBounds,i=this.viewportBounds,n=mt.alloc(),\"up\"===e?this.position=n.h(i.x,o.y):\"left\"===e?this.position=n.h(o.x,i.y):\"down\"===e?this.position=n.h(i.x,o.bottom-i.height):\"right\"===e&&(this.position=n.h(o.right-i.width,i.y)),void mt.free(n);k(\"scrolling unit must be 'pixel', 'line', 'page', or 'document', not: \"+t)}o/=this.scale,i=this.position.copy(),\"up\"===e?i.y=this.position.y-o:\"down\"===e?i.y=this.position.y+o:\"left\"===e?i.x=this.position.x-o:\"right\"===e?i.x=this.position.x+o:k(\"scrolling direction must be 'up', 'down', 'left', or 'right', not: \"+e),this.position=i},i.Fv=function(t){var e=this.viewportBounds;e.lf(t)||(t=t.center,t.x-=e.width/2,t.y-=e.height/2,this.position=t)},i.Ju=function(t){var e=this.viewportBounds;t=t.center,t.x-=e.width/2,t.y-=e.height/2,this.position=t},i.xt=function(t){var e=this.tb;e.reset(),1!==this.Ca&&e.scale(this.Ca);var i=this.sa;return(0!==i.x||0!==i.y)&&isFinite(i.x)&&isFinite(i.y)&&e.translate(-i.x,-i.y),t.copy().transform(this.tb)},i.Yz=function(t){var e=this.tb,i=t.x,n=t.y,o=i+t.width,r=n+t.height,s=e.m11,a=e.m12,l=e.m21,h=e.m22,u=e.dx,c=e.dy,f=i*s+n*l+u;e=i*a+n*h+c;var d=o*s+n*l+u;return t=o*a+n*h+c,n=i*s+r*l+u,i=i*a+r*h+c,s=o*s+r*l+u,o=o*a+r*h+c,r=Math.min(f,d),f=Math.max(f,d),d=Math.min(e,t),e=Math.max(e,t),r=Math.min(r,n),f=Math.max(f,n),d=Math.min(d,i),e=Math.max(e,i),r=Math.min(r,s),f=Math.max(f,s),d=Math.min(d,o),e=Math.max(e,o),new _t(r,d,f-r,e-d)},i.yt=function(t){var e=this.tb;e.reset(),1!==this.Ca&&e.scale(this.Ca);var i=this.sa;return(0!==i.x||0!==i.y)&&isFinite(i.x)&&isFinite(i.y)&&e.translate(-i.x,-i.y),wt(t.copy(),this.tb)},Do.prototype.doModelChanged=function(t){if(t.model===this.model){var e=t.change,i=t.propertyName;if(e===Ci&&\"S\"===i[0])if(\"StartingFirstTransaction\"===i){var n=this;t=this.toolManager,t.mouseDownTools.each((function(t){t.hb(n)})),t.mouseMoveTools.each((function(t){t.hb(n)})),t.mouseUpTools.each((function(t){t.hb(n)})),this.Zb||this.ge||(this.Rk=!0,this.Xk&&(this.qd=!0))}else\"StartingUndo\"===i||\"StartingRedo\"===i?(t=this.animationManager,t.isAnimating&&!this.skipsUndoManager&&t.vd(),this.aa(\"ChangingSelection\",this.selection)):\"StartedTransaction\"===i&&(t=this.animationManager,t.isAnimating&&!this.skipsUndoManager&&t.vd());else if(this.da){this.da=!1;try{if(\"\"===t.modelChange&&e===Ci){\"FinishedUndo\"!==i&&\"FinishedRedo\"!==i||(this.aa(\"ChangedSelection\",this.selection),hr(this));var o=this.animationManager;\"RolledBackTransaction\"===i&&o.vd(),this.Rk=!0,this.fd(),0===this.undoManager.transactionLevel&&fo(o),\"CommittedTransaction\"===i&&this.undoManager.du&&(this.fe=Math.min(this.fe,this.undoManager.historyIndex-1));var r=t.isTransactionFinished;if(r&&(Dr(this),this.gt.clear()),!this.ku&&r){this.ku=!0;var s=this;w((function(){s.currentTool.standardMouseOver(),s.ku=!1}),10)}}}finally{this.da=!0}}}},Do.prototype.ud=function(){this.partManager.ud()},Do.prototype.Jp=function(t,e){this.yk.Jp(t,e)},Do.prototype.Kp=function(t,e){this.yk.Kp(t,e)},Do.prototype.findPartForKey=function(t){return this.partManager.findPartForKey(t)},i=Do.prototype,i.Hb=function(t){return this.partManager.Hb(t)},i.vc=function(t){return this.partManager.vc(t)},i.Ei=function(t){return this.partManager.Ei(t)},i.uc=function(t){return this.partManager.uc(t)},i.Ss=function(t){for(var e=[],i=0;i<arguments.length;++i)e[i]=arguments[i];return this.partManager.Ss.apply(this.partManager,e instanceof Array?e:s(r(e)))},i.Rs=function(t){for(var e=[],i=0;i<arguments.length;++i)e[i]=arguments[i];return this.partManager.Rs.apply(this.partManager,e instanceof Array?e:s(r(e)))},i.Uy=function(){for(var t=new rt,e=this.nodes;e.next();){var i=e.value;i.isTopLevel&&t.add(i)}for(e=this.links;e.next();)i=e.value,i.isTopLevel&&t.add(i);return t.iterator},i.Ty=function(){return this.xi.iterator},i.yz=function(t){hr(this),t&&Er(this,!0),this.Rk=!0,ar(this)},i.$y=function(){for(var t=new nt,e=this.nodes;e.next();){var i=e.value;i.isTopLevel&&null===i.Hi()&&t.add(i)}return t.iterator},i.Nj=function(t,e){t=qr(this,t),null!==t&&t.add(e)},i.mm=function(t,e){t=qr(this,t),null!==t&&t.remove(e)},i.aa=function(t,e,i){var n=qr(this,t),o=new ki;if(o.diagram=this,t=Yr(this,t),null!==t&&(o.name=t),void 0!==e&&(o.subject=e),void 0!==i&&(o.parameter=i),e=n.length,1===e)n.N(0)(o);else if(0!==e)for(n=n.Na(),i=0;i<e;i++)(0,n[i])(o)},i.ek=function(t,e){return void 0===e&&(e=null),Xr(this,!1,null,e).ek(t.x,t.y,t.width,t.height)},Do.prototype.computeOccupiedArea=function(){return this.isVirtualized?this.viewportBounds.copy():this.Og?Yo(this):this.documentBounds.copy()},i=Do.prototype,i.Os=function(t){this.Hq.assign(t),Wr(this,this.Hq).Qa(this.position)?this.vf():$r(this)},i.vf=function(){-1!==this.Bk&&(v.clearTimeout(this.Bk),this.Bk=-1)},i.it=function(){return null},i.mv=function(){return null},i.ly=function(t,e){this.pu.add(t,e)},i.Az=function(t){return ds?(void 0===t&&(t=new J),t.returnType=\"Image\",this.sx(t)):null},i.sx=function(t){return void 0===t&&(t=new J),Jr(this,this.Bz,t)},i.Bz=function(t,e,i){var n=Zr(i,t,\"canvas\",null);if(null===n)return null;i=n.W.canvas;var o=null;if(null!==i)switch(o=t.returnType,o=void 0===o?\"string\":o.toLowerCase(),o){case\"imagedata\":o=n.getImageData(0,0,i.width,i.height);break;case\"image\":n=(t.document||document).createElement(\"img\"),n.src=i.toDataURL(t.type,t.details),o=n;break;case\"blob\":return\"function\"!==typeof e&&k('Error: Diagram.makeImageData called with \"returnType: toBlob\", but no required \"callback\" function property defined.'),\"function\"===typeof i.toBlob?(i.toBlob(e,t.type,t.details),\"toBlob\"):\"function\"===typeof i.msToBlob?(e(i.msToBlob()),\"msToBlob\"):(e(null),null);default:o=i.toDataURL(t.type,t.details)}return\"function\"===typeof e?(e(o),null):o},p.Object.defineProperties(Do.prototype,{div:{get:function(){return this.Ia},set:function(t){if(this.Ia!==t){U=[];var e=this.Ia;null!==e?(e.C=void 0,e.innerHTML=\"\",null!==this.Da&&(e=this.Da.Ga,this.removeEventListener(e,\"touchstart\",this.Tv,!1),this.removeEventListener(e,\"touchmove\",this.Sv,!1),this.removeEventListener(e,\"touchend\",this.Rv,!1),this.Da.ex()),e=this.toolManager,null!==e&&(e.mouseDownTools.each((function(t){t.cancelWaitAfter()})),e.mouseMoveTools.each((function(t){t.cancelWaitAfter()})),e.mouseUpTools.each((function(t){t.cancelWaitAfter()}))),e.cancelWaitAfter(),this.currentTool.doCancel(),this.Yc=this.Da=null,this.removeEventListener(v,\"resize\",this.Zv,!1),this.removeEventListener(v,\"mousemove\",this.ik,!0),this.removeEventListener(v,\"mousedown\",this.hk,!0),this.removeEventListener(v,\"mouseup\",this.kk,!0),this.removeEventListener(v,\"wheel\",this.lk,!0),this.removeEventListener(v,\"mouseout\",this.jk,!0),hs===this&&(hs=null)):this.ge=!1,this.Ia=null,null!==t&&((e=t.C)&&(e.div=null),Fs(this,t),this.sf())}}},Vw:{get:function(){return this.Tr}},jv:{get:function(){return this.ob},set:function(t){this.ob=t}},Oi:{get:function(){return this.ge}},draggedLink:{get:function(){return this.br},set:function(t){this.br!==t&&(this.br=t,null!==t&&(this.bs=t.fromPort,this.cs=t.toPort))}},vx:{get:function(){return this.bs},set:function(t){this.bs=t}},wx:{get:function(){return this.cs},set:function(t){this.cs=t}},animationManager:{get:function(){return this.yk}},undoManager:{get:function(){return this.$b.undoManager}},skipsUndoManager:{get:function(){return this.eh},set:function(t){this.eh=t,this.$b.skipsUndoManager=t}},delaysLayout:{get:function(){return this.Qt},set:function(t){this.Qt=t}},validCycle:{get:function(){return this.Fs},set:function(t){var e=this.Fs;e!==t&&(this.Fs=t,this.g(\"validCycle\",e,t))}},layers:{get:function(){return this.Pa.iterator}},isModelReadOnly:{get:function(){var t=this.$b;return null!==t&&t.isReadOnly},set:function(t){var e=this.$b;null!==e&&(e.isReadOnly=t)}},isReadOnly:{get:function(){return this.Lf},set:function(t){var e=this.Lf;e!==t&&(this.Lf=t,this.g(\"isReadOnly\",e,t))}},isEnabled:{get:function(){return this.Dc},set:function(t){var e=this.Dc;e!==t&&(this.Dc=t,this.g(\"isEnabled\",e,t))}},allowClipboard:{get:function(){return this.yq},set:function(t){var e=this.yq;e!==t&&(this.yq=t,this.g(\"allowClipboard\",e,t))}},allowCopy:{get:function(){return this.Eh},set:function(t){var e=this.Eh;e!==t&&(this.Eh=t,this.g(\"allowCopy\",e,t))}},allowDelete:{get:function(){return this.Fh},set:function(t){var e=this.Fh;e!==t&&(this.Fh=t,this.g(\"allowDelete\",e,t))}},allowDragOut:{get:function(){return this.zq},set:function(t){var e=this.zq;e!==t&&(this.zq=t,this.g(\"allowDragOut\",e,t))}},allowDrop:{get:function(){return this.Aq},set:function(t){var e=this.Aq;e!==t&&(this.Aq=t,this.g(\"allowDrop\",e,t))}},allowTextEdit:{get:function(){return this.Oh},set:function(t){var e=this.Oh;e!==t&&(this.Oh=t,this.g(\"allowTextEdit\",e,t))}},allowGroup:{get:function(){return this.Gh},set:function(t){var e=this.Gh;e!==t&&(this.Gh=t,this.g(\"allowGroup\",e,t))}},allowUngroup:{get:function(){return this.Ph},set:function(t){var e=this.Ph;e!==t&&(this.Ph=t,this.g(\"allowUngroup\",e,t))}},allowInsert:{get:function(){return this.Cq},set:function(t){var e=this.Cq;e!==t&&(this.Cq=t,this.g(\"allowInsert\",e,t))}},allowLink:{get:function(){return this.Hh},set:function(t){var e=this.Hh;e!==t&&(this.Hh=t,this.g(\"allowLink\",e,t))}},allowRelink:{get:function(){return this.Jh},set:function(t){var e=this.Jh;e!==t&&(this.Jh=t,this.g(\"allowRelink\",e,t))}},allowMove:{get:function(){return this.Ih},set:function(t){var e=this.Ih;e!==t&&(this.Ih=t,this.g(\"allowMove\",e,t))}},allowReshape:{get:function(){return this.Kh},set:function(t){var e=this.Kh;e!==t&&(this.Kh=t,this.g(\"allowReshape\",e,t))}},allowResize:{get:function(){return this.Lh},set:function(t){var e=this.Lh;e!==t&&(this.Lh=t,this.g(\"allowResize\",e,t))}},allowRotate:{get:function(){return this.Mh},set:function(t){var e=this.Mh;e!==t&&(this.Mh=t,this.g(\"allowRotate\",e,t))}},allowSelect:{get:function(){return this.Nh},set:function(t){var e=this.Nh;e!==t&&(this.Nh=t,this.g(\"allowSelect\",e,t))}},allowUndo:{get:function(){return this.Dq},set:function(t){var e=this.Dq;e!==t&&(this.Dq=t,this.g(\"allowUndo\",e,t))}},allowZoom:{get:function(){return this.Fq},set:function(t){var e=this.Fq;e!==t&&(this.Fq=t,this.g(\"allowZoom\",e,t))}},hasVerticalScrollbar:{get:function(){return this.rr},set:function(t){var e=this.rr;e!==t&&(this.rr=t,pr(this),this.R(),this.g(\"hasVerticalScrollbar\",e,t),qo(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.qr},set:function(t){var e=this.qr;e!==t&&(this.qr=t,pr(this),this.R(),this.g(\"hasHorizontalScrollbar\",e,t),qo(this,!1))}},allowHorizontalScroll:{get:function(){return this.Bq},set:function(t){var e=this.Bq;e!==t&&(this.Bq=t,this.g(\"allowHorizontalScroll\",e,t),qo(this,!1))}},allowVerticalScroll:{get:function(){return this.Eq},set:function(t){var e=this.Eq;e!==t&&(this.Eq=t,this.g(\"allowVerticalScroll\",e,t),qo(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.os},set:function(t){var e=this.os;e!==t&&(0>t&&C(t,\">= 0\",Do,\"scrollHorizontalLineChange\"),this.os=t,this.g(\"scrollHorizontalLineChange\",e,t))}},scrollVerticalLineChange:{get:function(){return this.qs},set:function(t){var e=this.qs;e!==t&&(0>t&&C(t,\">= 0\",Do,\"scrollVerticalLineChange\"),this.qs=t,this.g(\"scrollVerticalLineChange\",e,t))}},lastInput:{get:function(){return this.qj},set:function(t){this.qj=t}},firstInput:{get:function(){return this.Xh},set:function(t){this.Xh=t}},currentCursor:{get:function(){return this.Sq},set:function(t){if(\"\"===t&&(t=this.qn),this.Sq!==t){var e=this.Da,i=this.Ia;if(null!==e){this.Sq=t;var n=e.style.cursor;e.style.cursor=t,i.style.cursor=t,e.style.cursor===n&&(e.style.cursor=\"-webkit-\"+t,i.style.cursor=\"-webkit-\"+t,e.style.cursor===n&&(e.style.cursor=\"-moz-\"+t,i.style.cursor=\"-moz-\"+t,e.style.cursor===n&&(e.style.cursor=t,i.style.cursor=t)))}}}},defaultCursor:{get:function(){return this.qn},set:function(t){\"\"===t&&(t=\"auto\");var e=this.qn;e!==t&&(this.qn=t,this.g(\"defaultCursor\",e,t))}},click:{get:function(){return this.Af},set:function(t){var e=this.Af;e!==t&&(this.Af=t,this.g(\"click\",e,t))}},doubleClick:{get:function(){return this.Ff},set:function(t){var e=this.Ff;e!==t&&(this.Ff=t,this.g(\"doubleClick\",e,t))}},contextClick:{get:function(){return this.Bf},set:function(t){var e=this.Bf;e!==t&&(this.Bf=t,this.g(\"contextClick\",e,t))}},mouseOver:{get:function(){return this.Wf},set:function(t){var e=this.Wf;e!==t&&(this.Wf=t,this.g(\"mouseOver\",e,t))}},mouseHover:{get:function(){return this.Uf},set:function(t){var e=this.Uf;e!==t&&(this.Uf=t,this.g(\"mouseHover\",e,t))}},mouseHold:{get:function(){return this.Tf},set:function(t){var e=this.Tf;e!==t&&(this.Tf=t,this.g(\"mouseHold\",e,t))}},mouseDragOver:{get:function(){return this.Sr},set:function(t){var e=this.Sr;e!==t&&(this.Sr=t,this.g(\"mouseDragOver\",e,t))}},mouseDrop:{get:function(){return this.Rf},set:function(t){var e=this.Rf;e!==t&&(this.Rf=t,this.g(\"mouseDrop\",e,t))}},handlesDragDropForTopLevelParts:{get:function(){return this.pr},set:function(t){var e=this.pr;e!==t&&(this.pr=t,this.g(\"handlesDragDropForTopLevelParts\",e,t))}},mouseEnter:{get:function(){return this.Sf},set:function(t){var e=this.Sf;e!==t&&(this.Sf=t,this.g(\"mouseEnter\",e,t))}},mouseLeave:{get:function(){return this.Vf},set:function(t){var e=this.Vf;e!==t&&(this.Vf=t,this.g(\"mouseLeave\",e,t))}},toolTip:{get:function(){return this.gg},set:function(t){var e=this.gg;e!==t&&(this.gg=t,this.g(\"toolTip\",e,t))}},contextMenu:{get:function(){return this.Cf},set:function(t){var e=this.Cf;e!==t&&(this.Cf=t,this.g(\"contextMenu\",e,t))}},commandHandler:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t,t.hb(this))}},toolManager:{get:function(){return this.Vb},set:function(t){this.Vb!==t&&(this.Vb=t,t.hb(this))}},defaultTool:{get:function(){return this.La},set:function(t){var e=this.La;e!==t&&(this.La=t,t.hb(this),this.currentTool===e&&(this.currentTool=t))}},currentTool:{get:function(){return this.ba},set:function(t){var e=this.ba;null!==e&&(e.isActive&&e.doDeactivate(),e.cancelWaitAfter(),e.doStop()),null===t&&(t=this.defaultTool),null!==t&&(this.ba=t,t.hb(this),t.doStart())}},selection:{get:function(){return this.ts}},maxSelectionCount:{get:function(){return this.Or},set:function(t){var e=this.Or;if(e!==t)if(0<=t&&!isNaN(t)){if(this.Or=t,this.g(\"maxSelectionCount\",e,t),!this.undoManager.isUndoingRedoing&&(t=this.selection.count-t,0<t)){this.aa(\"ChangingSelection\",this.selection),e=this.selection.Na();for(var i=0;i<t;i++)e[i].isSelected=!1;this.aa(\"ChangedSelection\",this.selection)}}else C(t,\">= 0\",Do,\"maxSelectionCount\")}},nodeSelectionAdornmentTemplate:{get:function(){return this.Yr},set:function(t){var e=this.Yr;e!==t&&(this.Yr=t,this.g(\"nodeSelectionAdornmentTemplate\",e,t))}},groupSelectionAdornmentTemplate:{get:function(){return this.mr},set:function(t){var e=this.mr;e!==t&&(this.mr=t,this.g(\"groupSelectionAdornmentTemplate\",e,t))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kr},set:function(t){var e=this.Kr;e!==t&&(this.Kr=t,this.g(\"linkSelectionAdornmentTemplate\",e,t))}},highlighteds:{get:function(){return this.sr}},isModified:{get:function(){var t=this.undoManager;return t.isEnabled?null!==t.currentTransaction||this.u&&this.fe!==t.historyIndex:this.u},set:function(t){if(this.u!==t){this.u=t;var e=this.undoManager;!t&&e.isEnabled&&(this.fe=e.historyIndex),t||Dr(this)}}},model:{get:function(){return this.$b},set:function(t){var e=this.$b;if(e!==t){this.currentTool.doCancel(),null!==e&&e.undoManager!==t.undoManager&&e.undoManager.isInTransaction&&k(\"Do not replace a Diagram.model while a transaction is in progress.\"),jo(this,!0),this.ge=!1,this.Xk=!0,this.fe=-2,this.qd=!1;var i=this.Zb;this.Zb=!0,this.animationManager.Ri(\"Model\"),null!==e&&(null!==this.ne&&this.ne.each((function(t){e.pk(t)})),e.pk(this.Cm)),this.$b=t,this.partManager=jr(this.$b.constructor.type),t.rh(this.wg),this.partManager.addAllModeledParts(),t.pk(this.wg),t.rh(this.Cm),null!==this.ne&&this.ne.each((function(e){t.rh(e)})),this.Zb=i,this.ob||this.R(),null!==e&&t.undoManager.copyProperties(e.undoManager)}}},da:{get:function(){return this.Vc},set:function(t){this.Vc=t}},gt:{get:function(){return this.wq}},skipsModelSourceBindings:{get:function(){return this.Ch},set:function(t){this.Ch=t}},Ui:{get:function(){return this.wu},set:function(t){this.wu=t}},nodeTemplate:{get:function(){return this.Xf.J(\"\")},set:function(t){var e=this.Xf.J(\"\");e!==t&&(this.Xf.add(\"\",t),this.g(\"nodeTemplate\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},nodeTemplateMap:{get:function(){return this.Xf},set:function(t){var e=this.Xf;e!==t&&(this.Xf=t,this.g(\"nodeTemplateMap\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},groupTemplate:{get:function(){return this.Yh.J(\"\")},set:function(t){var e=this.Yh.J(\"\");e!==t&&(this.Yh.add(\"\",t),this.g(\"groupTemplate\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},groupTemplateMap:{get:function(){return this.Yh},set:function(t){var e=this.Yh;e!==t&&(this.Yh=t,this.g(\"groupTemplateMap\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},linkTemplate:{get:function(){return this.Sg.J(\"\")},set:function(t){var e=this.Sg.J(\"\");e!==t&&(this.Sg.add(\"\",t),this.g(\"linkTemplate\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},linkTemplateMap:{get:function(){return this.Sg},set:function(t){var e=this.Sg;e!==t&&(this.Sg=t,this.g(\"linkTemplateMap\",e,t),this.undoManager.isUndoingRedoing||this.ud())}},isMouseOverDiagram:{get:function(){return this.he},set:function(t){this.he=t}},isMouseCaptured:{get:function(){return this.Kc},set:function(t){var e=this.Da;null!==e&&(e=e.Ga,e instanceof SVGElement||(t?(this.lastInput.bubbles=!1,this.Gq?(this.removeEventListener(e,\"pointermove\",this.jm,!1),this.removeEventListener(e,\"pointerdown\",this.im,!1),this.removeEventListener(e,\"pointerup\",this.lm,!1),this.removeEventListener(e,\"pointerout\",this.km,!1),this.addEventListener(v,\"pointermove\",this.jm,!0),this.addEventListener(v,\"pointerdown\",this.im,!0),this.addEventListener(v,\"pointerup\",this.lm,!0),this.addEventListener(v,\"pointerout\",this.km,!0)):(this.removeEventListener(e,\"mousemove\",this.ik,!1),this.removeEventListener(e,\"mousedown\",this.hk,!1),this.removeEventListener(e,\"mouseup\",this.kk,!1),this.removeEventListener(e,\"mouseout\",this.jk,!1),this.addEventListener(v,\"mousemove\",this.ik,!0),this.addEventListener(v,\"mousedown\",this.hk,!0),this.addEventListener(v,\"mouseup\",this.kk,!0),this.addEventListener(v,\"mouseout\",this.jk,!0)),this.removeEventListener(e,\"wheel\",this.lk,!1),this.addEventListener(v,\"wheel\",this.lk,!0),this.addEventListener(v,\"selectstart\",this.preventDefault,!1)):(this.Gq?(this.removeEventListener(v,\"pointermove\",this.jm,!0),this.removeEventListener(v,\"pointerdown\",this.im,!0),this.removeEventListener(v,\"pointerup\",this.lm,!0),this.removeEventListener(v,\"pointerout\",this.km,!0),this.addEventListener(e,\"pointermove\",this.jm,!1),this.addEventListener(e,\"pointerdown\",this.im,!1),this.addEventListener(e,\"pointerup\",this.lm,!1),this.addEventListener(e,\"pointerout\",this.km,!1)):(this.removeEventListener(v,\"mousemove\",this.ik,!0),this.removeEventListener(v,\"mousedown\",this.hk,!0),this.removeEventListener(v,\"mouseup\",this.kk,!0),this.removeEventListener(v,\"mouseout\",this.jk,!0),this.addEventListener(e,\"mousemove\",this.ik,!1),this.addEventListener(e,\"mousedown\",this.hk,!1),this.addEventListener(e,\"mouseup\",this.kk,!1),this.addEventListener(e,\"mouseout\",this.jk,!1)),this.removeEventListener(v,\"wheel\",this.lk,!0),this.removeEventListener(v,\"selectstart\",this.preventDefault,!1),this.addEventListener(e,\"wheel\",this.lk,!1)),this.Kc=t))}},position:{get:function(){return this.sa},set:function(t){var e=mt.alloc().assign(this.sa);if(!e.A(t)){var i=this.viewportBounds.copy();this.sa.assign(t),this.ob||null===this.Da&&!this.Ep.o()||(this.ob=!0,t=this.scale,Xo(this,this.vn,this.xa/t,this.wa/t,this.cj,!1),this.ob=!1),xo(this.animationManager,e,this.sa),this.ob||this.iq(i,this.viewportBounds,this.Ca,!1)}mt.free(e)}},initialPosition:{get:function(){return this.ur},set:function(t){this.ur.A(t)||(this.ur=t.I())}},initialScale:{get:function(){return this.vr},set:function(t){this.vr!==t&&(this.vr=t)}},grid:{get:function(){return null===this.Eb&&Vo(this),this.Eb},set:function(t){var e=this.Eb;if(e!==t){null===e&&(Vo(this),e=this.Eb),t.type!==Nl.Grid&&k(\"Diagram.grid must be a Panel of type Panel.Grid\");var i=e.panel;null!==i&&i.remove(e),this.Eb=t,t.name=\"GRID\",null!==i&&i.add(t),Lr(this),this.R(),this.g(\"grid\",e,t)}}},viewportBounds:{get:function(){var t=this.Nw,e=this.sa,i=this.Ca;return null===this.Da?(this.Ep.o()&&t.h(e.x,e.y,this.xa/i,this.wa/i),t):(t.h(e.x,e.y,Math.max(this.xa,0)/i,Math.max(this.wa,0)/i),t)}},viewSize:{get:function(){return this.Ep},set:function(t){var e=this.viewSize;e.A(t)||(this.Ep=t=t.I(),this.xa=t.width,this.wa=t.height,this.Xa(),this.g(\"viewSize\",e,t))}},fixedBounds:{get:function(){return this.jr},set:function(t){var e=this.jr;e.A(t)||(-1/0!==t.width&&1/0!==t.height&&-1/0!==t.height||k(\"fixedBounds width/height must not be Infinity\"),this.jr=t=t.I(),this.Xa(),this.g(\"fixedBounds\",e,t))}},scrollMargin:{get:function(){return this.ri},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.ri;e.A(t)||(this.ri=t=t.I(),this.g(\"scrollMargin\",e,t),this.sf())}},scrollMode:{get:function(){return this.Gj},set:function(t){var e=this.Gj;e!==t&&(this.Gj=t,t===Ss&&qo(this,!1),this.g(\"scrollMode\",e,t),this.sf())}},scrollsPageOnFocus:{get:function(){return this.rs},set:function(t){var e=this.rs;e!==t&&(this.rs=t,this.g(\"scrollsPageOnFocus\",e,t))}},positionComputation:{get:function(){return this.hs},set:function(t){var e=this.hs;e!==t&&(this.hs=t,qo(this,!1),this.g(\"positionComputation\",e,t))}},scaleComputation:{get:function(){return this.ms},set:function(t){var e=this.ms;e!==t&&(this.ms=t,Tr(this,this.scale,this.scale),this.g(\"scaleComputation\",e,t))}},documentBounds:{get:function(){return this.vn}},isVirtualized:{get:function(){return this.Fr},set:function(t){var e=this.Fr;e!==t&&(this.Fr=t,this.g(\"isVirtualized\",e,t))}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&Tr(this,e,t)}},defaultScale:{get:function(){return this.Zq},set:function(t){this.Zq=t}},autoScale:{get:function(){return this.aj},set:function(t){var e=this.aj;e!==t&&(this.aj=t,this.g(\"autoScale\",e,t),t!==ms&&qo(this,!1))}},initialAutoScale:{get:function(){return this.ai},set:function(t){var e=this.ai;e!==t&&(this.ai=t,this.g(\"initialAutoScale\",e,t))}},initialViewportSpot:{get:function(){return this.wr},set:function(t){var e=this.wr;e!==t&&(t.gb()||k(\"initialViewportSpot must be a specific Spot: \"+t),this.wr=t,this.g(\"initialViewportSpot\",e,t))}},initialDocumentSpot:{get:function(){return this.tr},set:function(t){var e=this.tr;e!==t&&(t.gb()||k(\"initialViewportSpot must be a specific Spot: \"+t),this.tr=t,this.g(\"initialDocumentSpot\",e,t))}},minScale:{get:function(){return this.Pr},set:function(t){var e=this.Pr;e!==t&&(0<t?(this.Pr=t,this.g(\"minScale\",e,t),t>this.scale&&(this.scale=t)):C(t,\"> 0\",Do,\"minScale\"))}},maxScale:{get:function(){return this.Nr},set:function(t){var e=this.Nr;e!==t&&(0<t?(this.Nr=t,this.g(\"maxScale\",e,t),t<this.scale&&(this.scale=t)):C(t,\"> 0\",Do,\"maxScale\"))}},zoomPoint:{get:function(){return this.Is},set:function(t){this.Is.A(t)||(this.Is=t=t.I())}},contentAlignment:{get:function(){return this.cj},set:function(t){var e=this.cj;e.A(t)||(this.cj=t=t.I(),this.g(\"contentAlignment\",e,t),qo(this,!1))}},initialContentAlignment:{get:function(){return this.On},set:function(t){var e=this.On;e.A(t)||(this.On=t=t.I(),this.g(\"initialContentAlignment\",e,t))}},padding:{get:function(){return this.eb},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.eb;e.A(t)||(this.eb=t=t.I(),this.Xa(),this.g(\"padding\",e,t))}},partManager:{get:function(){return this.Ma},set:function(t){var e=this.Ma;e!==t&&(null!==t.diagram&&k(\"Cannot share PartManagers between Diagrams: \"+t.toString()),null!==e&&e.hb(null),this.Ma=t,t.hb(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.gc},set:function(t){var e=this.gc;e!==t&&(this.gc=t,t.diagram=this,t.group=null,this.zg=!0,this.g(\"layout\",e,t),this.cc())}},isTreePathToChildren:{get:function(){return this.Er},set:function(t){var e=this.Er;if(e!==t&&(this.Er=t,this.g(\"isTreePathToChildren\",e,t),!this.undoManager.isUndoingRedoing))for(t=this.nodes;t.next();)Vu(t.value)}},treeCollapsePolicy:{get:function(){return this.Ds},set:function(t){var e=this.Ds;e!==t&&(t!==Ps&&t!==Ts&&t!==Ls&&k(\"Unknown Diagram.treeCollapsePolicy: \"+t),this.Ds=t,this.g(\"treeCollapsePolicy\",e,t))}},Ee:{get:function(){return this.Wb},set:function(t){this.Wb=t}},autoScrollInterval:{get:function(){return this.Tm},set:function(t){var e=this.Tm;e!==t&&(this.Tm=t,this.g(\"autoScrollInterval\",e,t))}},autoScrollRegion:{get:function(){return this.Um},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.Um;e.A(t)||(this.Um=t=t.I(),this.Xa(),this.g(\"autoScrollRegion\",e,t))}}}),p.Object.defineProperties(Do,{licenseKey:{get:function(){return Os.Tb()},set:function(t){Os.add(t)}},version:{get:function(){return Ds}}}),Do.prototype.makeImageData=Do.prototype.sx,Do.prototype.makeImage=Do.prototype.Az,Do.prototype.addRenderer=Do.prototype.ly,Do.prototype.makeSVG=Do.prototype.mv,Do.prototype.makeSvg=Do.prototype.it,Do.prototype.stopAutoScroll=Do.prototype.vf,Do.prototype.doAutoScroll=Do.prototype.Os,Do.prototype.isUnoccupied=Do.prototype.ek,Do.prototype.raiseDiagramEvent=Do.prototype.aa,Do.prototype.removeDiagramListener=Do.prototype.mm,Do.prototype.addDiagramListener=Do.prototype.Nj,Do.prototype.findTreeRoots=Do.prototype.$y,Do.prototype.layoutDiagram=Do.prototype.yz,Do.prototype.findTopLevelGroups=Do.prototype.Ty,Do.prototype.findTopLevelNodesAndLinks=Do.prototype.Uy,Do.prototype.findLinksByExample=Do.prototype.Rs,Do.prototype.findNodesByExample=Do.prototype.Ss,Do.prototype.findLinkForData=Do.prototype.uc,Do.prototype.findNodeForData=Do.prototype.Ei,Do.prototype.findPartForData=Do.prototype.vc,Do.prototype.findNodeForKey=Do.prototype.Hb,Do.prototype.findPartForKey=Do.prototype.findPartForKey,Do.prototype.rebuildParts=Do.prototype.ud,Do.prototype.transformViewToDoc=Do.prototype.yt,Do.prototype.transformRectDocToView=Do.prototype.Yz,Do.prototype.transformDocToView=Do.prototype.xt,Do.prototype.centerRect=Do.prototype.Ju,Do.prototype.scrollToRect=Do.prototype.Fv,Do.prototype.scroll=Do.prototype.scroll,Do.prototype.highlightCollection=Do.prototype.nz,Do.prototype.highlight=Do.prototype.mz,Do.prototype.clearHighlighteds=Do.prototype.Ww,Do.prototype.selectCollection=Do.prototype.Gv,Do.prototype.select=Do.prototype.select,Do.prototype.clearSelection=Do.prototype.Ls,Do.prototype.updateAllRelationshipsFromData=Do.prototype.tq,Do.prototype.updateAllTargetBindings=Do.prototype.updateAllTargetBindings,Do.prototype.commit=Do.prototype.commit,Do.prototype.rollbackTransaction=Do.prototype.uf,Do.prototype.commitTransaction=Do.prototype.Za,Do.prototype.startTransaction=Do.prototype.Aa,Do.prototype.raiseChanged=Do.prototype.g,Do.prototype.raiseChangedEvent=Do.prototype.ab,Do.prototype.removeChangedListener=Do.prototype.pk,Do.prototype.addChangedListener=Do.prototype.rh,Do.prototype.removeModelChangedListener=Do.prototype.Nz,Do.prototype.addModelChangedListener=Do.prototype.Tw,Do.prototype.findLayer=Do.prototype.Zl,Do.prototype.removeLayer=Do.prototype.Lz,Do.prototype.addLayerAfter=Do.prototype.hy,Do.prototype.addLayerBefore=Do.prototype.Rw,Do.prototype.addLayer=Do.prototype.Ql,Do.prototype.moveParts=Do.prototype.moveParts,Do.prototype.copyParts=Do.prototype.Xj,Do.prototype.removeParts=Do.prototype.rt,Do.prototype.remove=Do.prototype.remove,Do.prototype.add=Do.prototype.add,Do.prototype.clearDelayedGeometries=Do.prototype.Ku,Do.prototype.setProperties=Do.prototype.Mv,Do.prototype.resetInputOptions=Do.prototype.Cv,Do.prototype.setInputOption=Do.prototype.Rz,Do.prototype.getInputOption=Do.prototype.bm,Do.prototype.resetRenderingHints=Do.prototype.Dv,Do.prototype.setRenderingHint=Do.prototype.Jx,Do.prototype.getRenderingHint=Do.prototype.De,Do.prototype.maybeUpdate=Do.prototype.fd,Do.prototype.requestUpdate=Do.prototype.cc,Do.prototype.delayInitialization=Do.prototype.Ay,Do.prototype.isUpdateRequested=Do.prototype.uz,Do.prototype.redraw=Do.prototype.sf,Do.prototype.invalidateDocumentBounds=Do.prototype.Xa,Do.prototype.findObjectsNear=Do.prototype.ng,Do.prototype.findPartsNear=Do.prototype.Qy,Do.prototype.findObjectsIn=Do.prototype.mg,Do.prototype.findPartsIn=Do.prototype.kx,Do.prototype.findObjectsAt=Do.prototype.Fi,Do.prototype.findPartsAt=Do.prototype.Py,Do.prototype.findObjectAt=Do.prototype.Sb,Do.prototype.findPartAt=Do.prototype.$l,Do.prototype.alignDocument=Do.prototype.my,Do.prototype.zoomToRect=Do.prototype.aA,Do.prototype.zoomToFit=Do.prototype.zoomToFit,Do.prototype.diagramScroll=Do.prototype.bx,Do.prototype.focus=Do.prototype.focus,Do.prototype.reset=Do.prototype.reset,Do.useDOM=function(t){ds=!!t&&void 0!==v.document},Do.isUsingDOM=function(){return ds};var Qr,ts,es,is,ns,os,rs,ss,as,ls,hs=null,us=new gt,cs=null,fs=null,ds=void 0!==v.document,ps=null,gs=\"\",ms=new K(Do,\"None\",0),vs=new K(Do,\"Uniform\",1),ys=new K(Do,\"UniformToFill\",2),bs=new K(Do,\"CycleAll\",10),ws=new K(Do,\"CycleNotDirected\",11),xs=new K(Do,\"CycleNotDirectedFast\",12),ks=new K(Do,\"CycleNotUndirected\",13),Ms=new K(Do,\"CycleDestinationTree\",14),Cs=new K(Do,\"CycleSourceTree\",15),Ss=new K(Do,\"DocumentScroll\",1),Ns=new K(Do,\"InfiniteScroll\",2),Ps=new K(Do,\"TreeParentCollapsed\",21),Ts=new K(Do,\"AllParentsCollapsed\",22),Ls=new K(Do,\"AnyParentsCollapsed\",23),Os=new nt,Ds=\"2.0.9\",js=!1;function As(){if(ds){var t=v.document.createElement(\"canvas\"),e=t.getContext(\"2d\"),i=R(\"7ca11abfd022028846\");e[i]=R(\"398c3597c01238\");for(var n=[\"5da73c80a36455d4038e4972187c3cae51fd22\",y.Dx+\"4ae6247590da4bb21c324ba3a84e385776\",ae.xF+\"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387\",We.za],o=1;5>o;o++)e[R(\"7ca11abfd7330390\")](R(n[o-1]),10,15*o);for(e[i]=R(\"39f046ebb36e4b\"),i=1;5>i;i++)e[R(\"7ca11abfd7330390\")](R(n[i-1]),10,15*i);t}}function Bs(){this.$x=null,this.l=\"zz@orderNum\",\"63ad05bbe23a1786468a4c741b6d2\"===this._tk?this.Ne=this.l=!0:this.Ne=null}function zs(t,e){if(e.Yc.setTransform(e.Nb,0,0,e.Nb,0,0),null===t.Ne){e=\"f\";var i=v[R(\"76a715b2f73f148a\")][R(\"72ba13b5\")];if(t.Ne=!0,ds){var n=Do[R(\"76a115b6ed251eaf4692\")];if(n)for(var o=Os.iterator;o.next();){if(n=o.value,n=R(n).split(R(\"39e9\")),6>n.length)break;var r=R(n[1]).split(\".\");if(\"7da71ca0\"!==n[4])break;var s=R(y[R(\"6cae19\")]).split(\".\");if(r[0]>s[0]||r[0]===s[0]&&r[1]>=s[1]){for(r=i[R(\"76ad18b4f73e\")],s=i[R(\"73a612b6fb191d\")](R(\"35e7\"))+2;s<r;s++)e+=i[s];if(r=e[R(\"73a612b6fb191d\")](R(n[2])),0>r&&R(n[2])!==R(\"7da71ca0ad381e90\")&&(r=e[R(\"73a612b6fb191d\")](R(\"76a715b2ef3e149757\"))),0>r&&(r=e[R(\"73a612b6fb191d\")](R(\"76a715b2ef3e149757\"))),t.Ne=!(0<=r&&r<e[R(\"73a612b6fb191d\")](R(\"35\"))),!t.Ne)break;if(r=R(n[2]),\"#\"!==r[0])break;s=v.document.createElement(\"div\");for(var a=n[0].replace(/[A-Za-z]/g,\"\");4>a.length;)a+=\"9\";if(a=a.substr(a.length-4),n=\"\",n+=[\"gsh\",\"gsf\"][parseInt(a.substr(0,1),10)%2],n+=[\"Header\",\"Background\",\"Display\",\"Feedback\"][parseInt(a.substr(0,1),10)%4],s[R(\"79a417a0f0181a8946\")]=n,v.document[R(\"78a712aa\")]){if(v.document[R(\"78a712aa\")][R(\"7bb806b6ed32388c4a875b\")](s),a=v.getComputedStyle(s).getPropertyValue(R(\"78a704b7e62456904c9b12701b6532a8\")),v.document[R(\"78a712aa\")][R(\"68ad1bbcf533388c4a875b\")](s),!a)break;if(-1!==a.indexOf(parseInt(r[1]+r[2],16))&&-1!==a.indexOf(parseInt(r[3]+r[4],16))){t.Ne=!1;break}if(V||_||H||Y)for(n=\".\"+n,r=0;r<document.styleSheets.length;r++)for(var l in s=document.styleSheets[r].rules||document.styleSheets[r].cssRules,s)if(n===s[l].selectorText){t.Ne=!1;break}}else t.Ne=null,t.Ne=!1}}else{for(l=i[R(\"76ad18b4f73e\")],o=i[R(\"73a612b6fb191d\")](R(\"35e7\"))+2;o<l;o++)e+=i[o];i=e[R(\"73a612b6fb191d\")](R(\"7da71ca0ad381e90\")),t.Ne=!(0<=i&&i<e[R(\"73a612b6fb191d\")](R(\"35\")))}}}return 0<t.Ne&&t!==t.$x}function Fs(t,e){if(ds){void 0!==e&&null!==e||k(\"Diagram setup requires an argument DIV.\"),null!==t.Ia&&k(\"Diagram has already completed setup.\"),\"string\"===typeof e?t.Ia=v.document.getElementById(e):e instanceof HTMLDivElement?t.Ia=e:k(\"No DIV or DIV id supplied: \"+e),null===t.Ia&&k(\"Invalid DIV id; could not get element with id: \"+e),void 0!==t.Ia.C&&k(\"Invalid div id; div already has a Diagram associated with it.\"),\"static\"===v.getComputedStyle(t.Ia,null).position&&(t.Ia.style.position=\"relative\"),t.Ia.style[\"-webkit-tap-highlight-color\"]=\"rgba(255, 255, 255, 0)\",t.Ia.style[\"-ms-touch-action\"]=\"none\",t.Ia.innerHTML=\"\",t.Ia.C=t;var i=t.As?new Ta(t):new za(t);if(void 0!==i.style&&(i.style.position=\"absolute\",i.style.top=\"0px\",i.style.left=\"0px\",\"rtl\"===v.getComputedStyle(t.Ia,null).getPropertyValue(\"direction\")&&(t.Tn=!0),i.style.zIndex=\"2\",i.style.userSelect=\"none\",i.style.webkitUserSelect=\"none\",i.style.MozUserSelect=\"none\"),t.Da=i,t.Yc=i.context,e=t.Yc,t.Nb=t.computePixelRatio(),t.xa=t.Ia.clientWidth||1,t.wa=t.Ia.clientHeight||1,vr(t,t.xa,t.wa),t.cr=function(){return!0},t.Ia.insertBefore(i.Ga,t.Ia.firstChild),i=new za(null),i.width=1,i.height=1,t.Ut=i,t.uw=i.context,ds){i=x(\"div\");var n=x(\"div\");i.style.position=\"absolute\",i.style.overflow=\"auto\",i.style.width=t.xa+\"px\",i.style.height=t.wa+\"px\",i.style.zIndex=\"1\",n.style.position=\"absolute\",n.style.width=\"1px\",n.style.height=\"1px\",t.Ia.appendChild(i),i.appendChild(n),i.onscroll=_o,i.onmousedown=Ho,i.ontouchstart=Ho,i.C=t,i.Yx=!0,i.Zx=!0,t.ps=i,t.fp=n}t.ot=b((function(){t.jh=null,t.R()}),300),t.Zv=b((function(){Eo(t)}),250),t.preventDefault=function(t){return t.preventDefault(),!1},t.ik=function(e){if(t.isEnabled){t.he=!0;var i=Jo(t,e,!0);t.doMouseMove(),t.currentTool.isBeyondDragSize()&&(t.Fd=0),ir(i,e)}},t.hk=function(e){if(t.isEnabled)if(t.he=!0,t.Qe)e.preventDefault();else{var i=Jo(t,e,!0);i.down=!0,i.clickCount=e.detail,(_||H)&&(e.timeStamp-t.kl<t.Bu&&!t.currentTool.isBeyondDragSize()?t.Fd++:t.Fd=1,t.kl=e.timeStamp,i.clickCount=t.Fd),i.clone(t.firstInput),t.doMouseDown(),1===e.button?e.preventDefault():ir(i,e)}},t.kk=function(e){if(t.isEnabled)if(t.Qe&&2===e.button)e.preventDefault();else if(t.Qe&&0===e.button&&(t.Qe=!1),t.Ml)e.preventDefault();else{t.he=!0;var i=Jo(t,e,!0);i.up=!0,i.clickCount=e.detail,(_||H)&&(i.clickCount=t.Fd),i.bubbles=e.bubbles,i.targetDiagram=Zo(e),t.doMouseUp(),t.vf(),ir(i,e)}},t.lk=function(e){if(t.isEnabled){var i=Jo(t,e,!0);i.bubbles=!0;var n=0,o=0;i.delta=0,void 0!==e.deltaX?(0!==e.deltaX&&(n=0<e.deltaX?1:-1),0!==e.deltaY&&(o=0<e.deltaY?1:-1),i.delta=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-n:-o):void 0!==e.wheelDeltaX?(0!==e.wheelDeltaX&&(n=0<e.wheelDeltaX?-1:1),0!==e.wheelDeltaY&&(o=0<e.wheelDeltaY?-1:1),i.delta=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-n:-o):void 0!==e.wheelDelta&&0!==e.wheelDelta&&(i.delta=0<e.wheelDelta?1:-1),t.doMouseWheel(),ir(i,e)}},t.jk=function(e){t.isEnabled&&(t.he=!1,Jo(t,e,!0),e=t.currentTool,e.cancelWaitAfter(),e.standardMouseOver())},t.Tv=function(e){if(t.isEnabled){t.Ml=!1,t.Qe=!0;var i=Qo(t,e,e.targetTouches[0],1<e.touches.length),n=null;if(0<e.targetTouches.length?n=e.targetTouches[0]:0<e.changedTouches.length&&(n=e.changedTouches[0]),null!==n){var o=n.screenX;n=n.screenY;var r=t.Hr;e.timeStamp-t.kl<t.Bu&&!(25<Math.abs(r.x-o)||25<Math.abs(r.y-n))?t.Fd++:t.Fd=1,i.clickCount=t.Fd,t.kl=e.timeStamp,t.Hr.h(o,n)}t.doMouseDown(),ir(i,e)}},t.Sv=function(e){if(t.isEnabled){var i=null;0<e.targetTouches.length?i=e.targetTouches[0]:0<e.changedTouches.length&&(i=e.changedTouches[0]),i=tr(t,e,i,1<e.touches.length),t.doMouseMove(),ir(i,e)}},t.Rv=function(e){if(t.isEnabled)if(t.Ml)e.preventDefault();else if(!(1<e.touches.length)){var i=null,n=null;0<e.targetTouches.length?n=e.targetTouches[0]:0<e.changedTouches.length&&(n=e.changedTouches[0]);var o=er(t,e,!1,!0,!1,!1);null!==n&&(i=v.document.elementFromPoint(n.clientX,n.clientY),null!==i&&i.C instanceof Do&&i.C!==t&&nr(i.C,n,o),nr(t,n,o),o.clickCount=t.Fd),null===i?o.targetDiagram=Zo(e):i.C?o.targetDiagram=i.C:o.targetDiagram=null,o.targetObject=null,t.doMouseUp(),ir(o,e),t.Qe=!1}},t.im=function(e){if(t.isEnabled){t.he=!0;var i=t.nu;void 0===i[e.pointerId]&&(i[e.pointerId]=e),i=t.vl;var n=!1;if(null!==i[0]&&i[0].pointerId===e.pointerId)i[0]=e;else if(null!==i[1]&&i[1].pointerId===e.pointerId)i[1]=e,n=!0;else if(null===i[0])i[0]=e;else{if(null!==i[1])return void e.preventDefault();i[1]=e,n=!0}\"touch\"!==e.pointerType&&\"pen\"!==e.pointerType||(t.Ml=!1,t.Qe=!0),i=Qo(t,e,e,n),n=t.Hr;var o=\"touch\"===e.pointerType||\"pen\"===e.pointerType?25:10;e.timeStamp-t.kl<t.Bu&&!(Math.abs(n.x-e.screenX)>o||Math.abs(n.y-e.screenY)>o)?t.Fd++:t.Fd=1,i.clickCount=t.Fd,t.kl=e.timeStamp,t.Hr.tg(e.screenX,e.screenY),t.doMouseDown(),1===e.button?e.preventDefault():ir(i,e)}},t.jm=function(e){if(t.isEnabled){t.he=!0;var i=t.vl;if(null!==i[0]&&i[0].pointerId===e.pointerId)i[0]=e;else{if(null!==i[1]&&i[1].pointerId===e.pointerId)return void(i[1]=e);if(null!==i[0])return;i[0]=e}i[0].pointerId===e.pointerId&&(i=tr(t,e,e,null!==i[1]),t.doMouseMove(),ir(i,e))}},t.lm=function(e){if(t.isEnabled){t.he=!0;var i=\"touch\"===e.pointerType||\"pen\"===e.pointerType,n=t.nu;if(i&&t.Ml)delete n[e.pointerId],e.preventDefault();else if(n=t.vl,null!==n[0]&&n[0].pointerId===e.pointerId){n[0]=null,n=er(t,e,!1,!0,!0,!1);var o=v.document.elementFromPoint(e.clientX,e.clientY);null!==o&&o.C instanceof Do&&o.C!==t&&nr(o.C,e,n),nr(t,e,n),n.clickCount=t.Fd,null===o?n.targetDiagram=Zo(e):o.C?n.targetDiagram=o.C:n.targetDiagram=null,n.targetObject=null,t.doMouseUp(),ir(n,e),i&&(t.Qe=!1)}else null!==n[1]&&n[1].pointerId===e.pointerId&&(n[1]=null)}},t.km=function(e){if(t.isEnabled){t.he=!1;var i=t.nu;i[e.pointerId]&&delete i[e.pointerId],i=t.vl,null!==i[0]&&i[0].pointerId===e.pointerId&&(i[0]=null),null!==i[1]&&i[1].pointerId===e.pointerId&&(i[1]=null),\"touch\"!==e.pointerType&&\"pen\"!==e.pointerType&&(e=t.currentTool,e.cancelWaitAfter(),e.standardMouseOver())}},e.Rc(!0),zo(t)}}function Is(t){this.l=void 0===t?new mt:t,this.u=new mt}function Es(t,e,i){this.node=t,this.info=e,this.ev=i}function Rs(){this.reset()}function Vs(t){1<arguments.length&&k(\"Palette constructor can only take one optional argument, the DIV HTML element or its id.\"),Do.call(this,t),this.allowDragOut=!0,this.allowMove=!1,this.isReadOnly=!0,this.contentAlignment=ue,this.layout=new wf}function _s(t){1<arguments.length&&k(\"Overview constructor can only take one optional argument, the DIV HTML element or its id.\"),Do.call(this,t),this.animationManager.isEnabled=!1,this.ob=!0,this.Yf=null,this.dr=!0,this.Jx(\"drawShadows\",!1);var e=new lu,i=new sh;i.stroke=\"magenta\",i.strokeWidth=2,i.fill=\"transparent\",i.name=\"BOXSHAPE\",e.selectable=!0,e.selectionAdorned=!1,e.selectionObjectName=\"BOXSHAPE\",e.locationObjectName=\"BOXSHAPE\",e.resizeObjectName=\"BOXSHAPE\",e.cursor=\"move\",e.add(i),this.l=e,this.allowDelete=this.allowCopy=!1,this.allowSelect=!0,this.autoScrollRegion=new ee(0,0,0,0),this.yu=new za(null),this.ay=this.yu.context,zi(this.toolManager,\"Dragging\",new qs,this.toolManager.mouseMoveTools);var n=this;this.click=function(){var t=n.Yf;if(null!==t){var e=t.viewportBounds,i=n.lastInput.documentPoint;t.position=new mt(i.x-e.width/2,i.y-e.height/2)}},this.Gm=function(){n.Xa(),Ys(n)},this.Em=function(){null!==n.Yf&&(n.Xa(),n.R())},this.Fm=function(){n.R()},this.Dm=function(){null!==n.Yf&&Ys(n)},this.autoScale=vs,this.ob=!1}function Hs(t){t.ob||t.Zb||!1!==t.qd||(t.qd=!0,v.requestAnimationFrame((function(){if(t.qd&&!t.Zb&&(t.qd=!1,null!==t.Ia)){if(t.Zb=!0,hr(t),t.documentBounds.o()||Ir(t,t.computeBounds()),null===t.Ia&&k(\"No div specified\"),null===t.Da&&k(\"No canvas specified\"),hu(t.box),t.nc){var e=t.Yf;if(null!==e&&!e.animationManager.isAnimating&&!e.animationManager.rb){e=t.Yc;var i=t.yu;e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.Da.width,t.Da.height),e.drawImage(i.Ga,0,0),i=t.tb,i.reset(),1!==t.scale&&i.scale(t.scale),0===t.position.x&&0===t.position.y||i.translate(-t.position.x,-t.position.y),e.scale(t.Nb,t.Nb),e.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),i=t.Pa.j;for(var n=i.length,o=0;o<n;o++)i[o].hc(e,t);t.bi=!1,t.nc=!1}}t.Zb=!1}})))}function Ys(t){var e=t.box;if(null!==e){var i=t.Yf;if(null!==i){t.nc=!0,i=i.viewportBounds;var n=e.selectionObject,o=It.alloc();o.h(i.width,i.height),n.desiredSize=o,It.free(o),t=2/t.scale,n instanceof sh&&(n.strokeWidth=t),e.location=new mt(i.x-t/2,i.y-t/2),e.isSelected=!0}}}function qs(){Hi.call(this),this.l=null}function Gs(){st(this),this.C=hs,this.Vb=this.K=this.u=!0,this.ba=this.La=this.Wb=this.Ma=!1,this.ji=this.l=null,this.Vc=1.05,this.eu=NaN,this.Aw=null,this.Eu=NaN,this.Du=Zt,this.cg=null,this.Kc=200}function Xs(t,e,i){if(e.isVisible())return i;if(e instanceof ju)Xs(t,e.adornedPart,i);else if(e instanceof nc){var n=e.fromNode;null!==n&&Xs(t,n,i),e=e.toNode,null!==e&&Xs(t,e,i)}else e instanceof Au&&(n=e.labeledLink,null!==n&&Xs(t,n,i),n=e.og(),null!==n&&(n.isTreeExpanded||n.wasTreeExpanded||i.push(n),Xs(t,n,i))),e=e.containingGroup,null!==e&&(e.isSubGraphExpanded||e.wasSubGraphExpanded||i.push(e),Xs(t,e,i));return i}function Us(t){var e=j();for(t=t.iterator;t.next();){var i=t.value;i instanceof nc||e.push(i)}t=new rt,i=e.length;for(var n=0;n<i;n++){for(var o=e[n],r=!0,s=0;s<i;s++)if(o.Vd(e[s])){r=!1;break}r&&t.add(o)}return A(e),t}function Ks(){st(this),this.H=4225027,this.lb=1,this.ag=null,this.Ua=\"\",this.dc=this.ib=null,this.sa=new mt(NaN,NaN).freeze(),this.Nc=Ot,this.Qf=Ct,this.Pf=Lt,this.tb=new ae,this.Dh=new ae,this.Nf=new ae,this.Ca=this.Sk=1,this.zc=0,this.ue=is,this.Tg=oe,this.pc=new _t(NaN,NaN,NaN,NaN).freeze(),this.vb=new _t(NaN,NaN,NaN,NaN).freeze(),this.qc=new _t(0,0,NaN,NaN).freeze(),this.P=this.Oo=this.Po=null,this.wk=this.wb=Ae,this.ap=0,this.bp=1,this.Cg=0,this.Zm=1,this.rp=null,this.gp=-1/0,this.yl=0,this.zl=Dt,this.Al=Tc,this.jn=\"\",this.bb=this.O=null,this.Dk=-1,this.Cl=this.kd=this.Sh=this.Fl=null,this.js=ts,this.Pm=this.Aj=null}function $s(t){null===t.O&&(t.O=new Sa)}function Ws(t,e,i){var n=t.Gi();if(null!==n)for(var o=t.bb.iterator;o.next();){var r=o.value,s=null;if(null!==r.sourceName){if(s=yd(r,n,t),null===s)continue;r.uq(t,s,i,null)}else if(r.isToModel){var a=e.diagram;null===a||a.skipsModelSourceBindings||r.uq(t,a.model.modelData,i,n)}else{if(a=n.data,null===a)continue;var l=e.diagram;null===l||l.skipsModelSourceBindings||r.uq(t,a,i,n)}s===t&&(a=n.Qs(r.Xi),null!==a&&r.Xv(a,s,i))}}function Js(t,e,i,n,o){null!==t.animations&&-1!==t.animations.indexOf(i)&&(e=e.diagram,null===e||e.currentTool.isActive||(e=e.animationManager,!1===e.isEnabled||e.isAnimating||e.isTicking||(e.zx(i),e.ye(t,i,n,o))))}function Zs(t,e,i,n,o){var r=t.pc,s=t.Nf;s.reset(),oa(t,s,e,i,n,o),t.Nf=s,r.h(e,i,n,o),s.ct()||s.Uv(r)}function Qs(t,e,i,n){return!1!==t.pickable&&(n.multiply(t.transform),i?t.Ic(e,n):t.uh(e,n))}function ta(t,e,i,n,o){if(t.vb.h(e,i,n,o),!t.desiredSize.o()){var r=t.pc;i=t.Tg,e=i.right+i.left;var s=i.top+i.bottom;switch(i=r.width+e,r=r.height+s,n+=e,o+=s,e=sa(t,!0),i===n&&r===o&&(e=ts),e){case ts:(i>n||r>o)&&(ga(t,!0),t.measure(i>n?n:i,r>o?o:r,0,0));break;case Qr:ga(t,!0),t.measure(n,o,0,0);break;case ns:ga(t,!0),t.measure(n,r,0,0);break;case os:ga(t,!0),t.measure(i,o,0,0)}}}function ea(t,e,i){var n=t.vb,o=t.qc;null!==t.dc&&(ia(t,e,t.dc,!0,!0,o,n),t.dc instanceof Ra&&t.dc.type===Qa?(e.beginPath(),e.rect(n.x,n.y,n.width,n.height),e.Td(t.dc)):e.fillRect(n.x,n.y,n.width,n.height)),null!==t.ib&&(ia(t,e,t.ib,!0,!1,o,n),t.ib instanceof Ra&&t.ib.type===Qa?(e.beginPath(),e.rect(n.x,n.y,n.width,n.height),e.Td(t.ib)):e.fillRect(n.x,n.y,n.width,n.height)),t.Ci(e,i)}function ia(t,e,i,n,o,r,s){if(null!==i){var a=1,l=1;if(\"string\"===typeof i)n?e.fillStyle=i:e.strokeStyle=i;else if(i.type===Ja)n?e.fillStyle=i.color:e.strokeStyle=i.color;else{if(a=r.width,l=r.height,o&&(a=s.width,l=s.height),(r=e instanceof Fa)&&i.ce&&(i.type===tl||i.Gk===a&&i.Lt===l))var h=i.ce;else{var u=0,c=0,f=0,d=0,p=0,g=0;if(g=p=0,o&&(p=s.x,g=s.y),u=i.start.x*a+i.start.offsetX,c=i.start.y*l+i.start.offsetY,f=i.end.x*a+i.end.offsetX,d=i.end.y*l+i.end.offsetY,u+=p,f+=p,c+=g,d+=g,i.type===Za)h=e.createLinearGradient(u,c,f,d);else if(i.type===Qa)g=isNaN(i.endRadius)?Math.max(a,l)/2:i.endRadius,isNaN(i.startRadius)?(p=0,g=Math.max(a,l)/2):p=i.startRadius,h=e.createRadialGradient(u,c,p,f,d,g);else if(i.type===tl)try{h=e.createPattern(i.pattern,\"repeat\")}catch(v){h=null}if(i.type!==tl&&(o=i.colorStops,null!==o))for(o=o.iterator;o.next();)h.addColorStop(o.key,o.value);if(r&&(i.ce=h,null!==h&&(i.Gk=a,i.Lt=l),null===h&&i.type===tl&&-1!==i.Gk)){i.Gk=-1;var m=t.diagram;null!==m&&-1===i.Gk&&w((function(){m.sf()}),600)}}n?e.fillStyle=h:e.strokeStyle=h}}}function na(t){if(0!==(2048&t.H)===!0){var e=t.tb;if(e.reset(),!t.vb.o()||!t.pc.o())return void fa(t,!1);if(e.translate(t.vb.x-t.pc.x,t.vb.y-t.pc.y),1!==t.scale||0!==t.angle){var i=t.naturalBounds;oa(t,e,i.x,i.y,i.width,i.height)}fa(t,!1),da(t,!0)}0!==(4096&t.H)===!0&&(e=t.panel,null===e?(t.Dh.set(t.tb),t.Sk=t.scale,da(t,!1)):null!==e.rd&&(i=t.Dh,i.reset(),e.Zd()?i.multiply(e.Dh):null!==e.panel&&i.multiply(e.panel.Dh),i.multiply(t.tb),t.Sk=t.scale*e.Sk,da(t,!1)))}function oa(t,e,i,n,o,r){if(1!==t.scale&&e.scale(t.scale),0!==t.angle){var s=de;t.sg()&&t.locationSpot.gb()&&(s=t.locationSpot);var a=mt.alloc();if(t instanceof lu&&t.locationObject!==t)for(i=t.locationObject,n=i.naturalBounds,a.qk(n.x,n.y,n.width,n.height,s),i.Nf.ta(a),a.offset(-i.measuredBounds.x,-i.measuredBounds.y),s=i.panel;null!==s&&s!==t;)s.Nf.ta(a),a.offset(-s.measuredBounds.x,-s.measuredBounds.y),s=s.panel;else a.qk(i,n,o,r,s);e.rotate(t.angle,a.x,a.y),mt.free(a)}}function ra(t){if(!1===ma(t)){var e=t.panel;null!==e?e.s():t.sg()&&(e=t.diagram,null!==e&&(e.Dd.add(t),t instanceof Au&&t.ed(),e.cc())),va(t,!0)}}function sa(t,e){var i=t.stretch,n=t.panel;return null!==n&&n.type===Nl.Table?aa(t,n.getRowDefinition(t.row),n.getColumnDefinition(t.column),e):null!==n&&n.type===Nl.Auto&&n.zb()===t?la(t,Qr,e):i===is?null!==n?n.type===Nl.Spot&&n.zb()===t?la(t,Qr,e):(i=n.defaultStretch,la(t,i===is?ts:i,e)):la(t,ts,e):la(t,i,e)}function aa(t,e,i,n){var o=t.stretch;if(o!==is)return la(t,o,n);var r=o=null;switch(e.stretch){case os:r=!0;break;case Qr:r=!0}switch(i.stretch){case ns:o=!0;break;case Qr:o=!0}return e=t.panel.defaultStretch,null===o&&(o=e===ns||e===Qr),null===r&&(r=e===os||e===Qr),la(t,!0===o&&!0===r?Qr:!0===o?ns:!0===r?os:ts,n)}function la(t,e,i){if(i)return e;if(e===ts)return ts;if(i=t.desiredSize,i.o())return ts;if(t=t.angle,!isNaN(i.width))if(90!==t&&270!==t){if(e===ns)return ts;if(e===Qr)return os}else{if(e===os)return ts;if(e===Qr)return ns}if(!isNaN(i.height))if(90!==t&&270!==t){if(e===os)return ts;if(e===Qr)return ns}else{if(e===ns)return ts;if(e===Qr)return os}return e}function ha(t,e){t.H=e?512|t.H:-513&t.H}function ua(t){return 0!==(1024&t.H)}function ca(t,e){t.H=e?1024|t.H:-1025&t.H}function fa(t,e){t.H=e?2048|t.H:-2049&t.H}function da(t,e){t.H=e?4096|t.H:-4097&t.H}function pa(t){return 0!==(8192&t.H)}function ga(t,e){t.H=e?8192|t.H:-8193&t.H}function ma(t){return 0!==(16384&t.H)}function va(t,e){t.H=e?16384|t.H:-16385&t.H}function ya(t){var e=t.part;if(e instanceof Au&&(null!==t.portId||t===e.port)){var i=e.diagram;null===i||i.undoManager.isUndoingRedoing||Fu(e,t)}}function ba(t){var e=t.diagram;null===e||e.undoManager.isUndoingRedoing||(t instanceof Nl?t instanceof Au?t.ed():t.ym(t,(function(t){ya(t)})):ya(t))}function wa(t,e){for(var i=1;i<arguments.length;++i);i=arguments;var n=null,o=null;if(\"function\"===typeof t)o=t;else if(\"string\"===typeof t){var r=Ca.J(t);\"function\"===typeof r?(i=L(arguments),n=r(i),P(n)||k('GraphObject.make invoked object builder \"'+t+'\", but it did not return an Object')):o=v.go[t]}if(null===n&&(void 0!==o&&null!==o&&o.constructor||k(\"GraphObject.make requires a class function or GoJS class name or name of an object builder, not: \"+t),n=new o),o=1,n instanceof Do&&1<i.length){r=n;var s=i[1];(\"string\"===typeof s||s instanceof HTMLDivElement)&&(Fs(r,s),o++)}for(;o<i.length;o++)r=i[o],void 0===r?k(\"Undefined value at argument \"+o+\" for object being constructed by GraphObject.make: \"+n):xa(n,r);return n}function xa(t,e){if(\"string\"===typeof e)if(t instanceof mh)t.text=e;else if(t instanceof sh)t.figure=e;else if(t instanceof Yh)t.source=e;else if(t instanceof Nl)e=th.J(e),null!==e&&(t.type=e);else if(t instanceof Ra){var i=$(Ra,e);null!==i?t.type=i:k(\"Unknown Brush type as an argument to GraphObject.make: \"+e)}else t instanceof Je?(e=$(Je,e),null!==e&&(t.type=e)):t instanceof fi&&(e=$(fi,e),null!==e&&(t.type=e));else if(e instanceof Ks)t instanceof Nl||k(\"A GraphObject can only be added to a Panel, not to: \"+t),t.add(e);else if(e instanceof eh){var o;e.isRow&&\"function\"===typeof t.getRowDefinition?o=t.getRowDefinition(e.index):e.isRow||\"function\"!==typeof t.getColumnDefinition||(o=t.getColumnDefinition(e.index)),o instanceof eh?o.Vl(e):k(\"A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: \"+t)}else if(e instanceof K)\"function\"===typeof t.fb&&t.fb(e);else if(e instanceof fl)t.type=e;else if(e instanceof vd)t instanceof Ks||t instanceof eh?t.bind(e):k(\"A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: \"+t);else if(e instanceof ci)t instanceof Je?t.figures.add(e):k(\"A PathFigure can only be added to a Geometry, not to: \"+t);else if(e instanceof fi)t instanceof ci?t.segments.add(e):k(\"A PathSegment can only be added to a PathFigure, not to: \"+t);else if(e instanceof hf)t instanceof Do||t instanceof Ju?t.layout=e:k(\"A Layout can only be assigned to a Diagram or a Group, not to: \"+t);else if(Array.isArray(e))for(i=0;i<e.length;i++)xa(t,e[i]);else if(\"object\"===n(e)&&null!==e)if(t instanceof Ra){for(var r in i=new J,e)o=parseFloat(r),isNaN(o)?i[r]=e[r]:t.addColorStop(o,e[r]);dr(t,i)}else if(t instanceof eh){for(i in void 0!==e.row?(r=e.row,(void 0===r||null===r||1/0===r||isNaN(r)||0>r)&&k(\"Must specify non-negative integer row for RowColumnDefinition \"+e+\", not: \"+r),t.isRow=!0,t.index=r):void 0!==e.column&&(r=e.column,(void 0===r||null===r||1/0===r||isNaN(r)||0>r)&&k(\"Must specify non-negative integer column for RowColumnDefinition \"+e+\", not: \"+r),t.isRow=!1,t.index=r),r=new J,e)\"row\"!==i&&\"column\"!==i&&(r[i]=e[i]);dr(t,r)}else dr(t,e);else k('Unknown initializer \"'+e+'\" for object being constructed by GraphObject.make: '+t)}function ka(t,e){Ca.add(t,e)}function Ma(t,e,i){void 0===i&&(i=null);var n=t[1];if(\"function\"===typeof i?i(n):\"string\"===typeof n)return t.splice(1,1),n;if(void 0===e)throw Error(\"no \"+(\"function\"===typeof i?\"satisfactory\":\"string\")+\" argument for GraphObject builder \"+t[0]);return e}Do.className=\"Diagram\",Do.fromDiv=function(t){var e=t;return\"string\"===typeof t&&(e=v.document.getElementById(t)),e instanceof HTMLDivElement&&e.C instanceof Do?e.C:null},Do.inherit=function(t,e){function i(){}if(Object.getPrototypeOf(t).prototype)throw Error(\"Used go.Diagram.inherit defining already defined class \\n\"+t);i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t},Do.None=ms,Do.Uniform=vs,Do.UniformToFill=ys,Do.CycleAll=bs,Do.CycleNotDirected=ws,Do.CycleNotDirectedFast=xs,Do.CycleNotUndirected=ks,Do.CycleDestinationTree=Ms,Do.CycleSourceTree=Cs,Do.DocumentScroll=Ss,Do.InfiniteScroll=Ns,Do.TreeParentCollapsed=Ps,Do.AllParentsCollapsed=Ts,Do.AnyParentsCollapsed=Ls,Bs.className=\"DiagramHelper\",p.Object.defineProperties(Is.prototype,{point:{get:function(){return this.l},set:function(t){this.l=t}},shifted:{get:function(){return this.u},set:function(t){this.u=t}}}),Is.className=\"DraggingInfo\",Es.className=\"DraggingNodeInfoPair\",Rs.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new It(NaN,NaN).freeze(),this.gridSnapCellSpot=he,this.gridSnapOrigin=new mt(NaN,NaN).freeze(),this.kz=this.dragsTree=this.dragsLink=!1},d(Vs,Do),Vs.className=\"Palette\",d(_s,Do),_s.prototype.computePixelRatio=function(){return 1},_s.prototype.hc=function(){if(null===this.Ia&&k(\"No div specified\"),null===this.Da&&k(\"No canvas specified\"),!(this.Da instanceof Ta)&&(hu(this.box),this.nc)){var t=this.Yf;if(null!==t&&!t.animationManager.isAnimating){mr(this);var e=t.grid;null===e||!e.visible||isNaN(e.width)||isNaN(e.height)||(e=_t.alloc().assign(this.viewportBounds).Jc(t.viewportBounds),Lr(t,e),_t.free(e),hr(t));var i=this.Da;e=this.Yc;var n=this.yu,o=this.ay;n.width=i.width,n.height=i.height,e.Rc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,i.width,i.height),n=this.tb,n.reset(),1!==this.scale&&n.scale(this.scale),0===this.position.x&&0===this.position.y||n.translate(-this.position.x,-this.position.y),e.scale(this.Nb,this.Nb),e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),n=this.dr;var r=this.viewportBounds;t=t.Pa.j;for(var s=t.length,a=0;a<s;a++){var l=t[a],h=n;if(l.visible&&0!==l.lb&&(void 0===h&&(h=!0),h||!l.isTemporary)){1!==l.lb&&(e.globalAlpha=l.lb),h=this.scale,l=l.Fa.j;for(var u=l.length,c=0;c<u;c++){var f=l[c],d=f.actualBounds;d.Ic(r)&&(1<d.width*h||1<d.height*h?f.hc(e,this):To(e,f))}e.globalAlpha=1}}for(o.drawImage(i.Ga,0,0),i=this.Pa.j,o=i.length,n=0;n<o;n++)i[n].hc(e,this);this.nc=this.bi=!1}}},_s.prototype.computeBounds=function(){var t=this.Yf;if(null===t)return Zt;var e=t.documentBounds.copy();return e.Jc(t.viewportBounds),e},_s.prototype.ox=function(){!0!==this.nc&&(this.nc=!0,Hs(this))},_s.prototype.iq=function(t,e,i,n){this.ob||(gr(this),this.R(),pr(this),this.Xa(),Ys(this),this.we.scale=i,this.we.position.x=t.x,this.we.position.y=t.y,this.we.bounds.assign(t),this.we.qx=n,this.aa(\"ViewportBoundsChanged\",this.we,t))},p.Object.defineProperties(_s.prototype,{observed:{get:function(){return this.Yf},set:function(t){var e=this.Yf;t instanceof _s&&k(\"Overview.observed Diagram may not be an Overview itself: \"+t),e!==t&&(null!==e&&(this.remove(this.box),e.mm(\"ViewportBoundsChanged\",this.Gm),e.mm(\"DocumentBoundsChanged\",this.Em),e.mm(\"InvalidateDraw\",this.Fm),e.mm(\"AnimationFinished\",this.Dm)),this.Yf=t,null!==t&&(t.Nj(\"ViewportBoundsChanged\",this.Gm),t.Nj(\"DocumentBoundsChanged\",this.Em),t.Nj(\"InvalidateDraw\",this.Fm),t.Nj(\"AnimationFinished\",this.Dm),this.add(this.box),Ys(this)),this.Xa(),this.g(\"observed\",e,t))}},box:{get:function(){return this.l},set:function(t){var e=this.l;e!==t&&(this.l=t,this.remove(e),this.add(this.l),Ys(this),this.g(\"box\",e,t))}},drawsTemporaryLayers:{get:function(){return this.dr},set:function(t){this.dr!==t&&(this.dr=t,this.sf())}}}),_s.className=\"Overview\",d(qs,Hi),qs.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.diagram;if(null===t||!t.allowMove||!t.allowSelect)return!1;var e=t.observed;if(null===e)return!1;var i=t.lastInput;return!(!i.left||t.currentTool!==this&&(!this.isBeyondDragSize()||i.isTouchEvent&&i.timestamp-t.firstInput.timestamp<this.delay))&&(null===this.findDraggablePart()&&(i=e.viewportBounds,this.l=new mt(i.width/2,i.height/2),t=t.firstInput.documentPoint,e.position=new mt(t.x-this.l.x,t.y-this.l.y)),!0)},qs.prototype.doActivate=function(){this.l=null,Hi.prototype.doActivate.call(this)},qs.prototype.moveParts=function(){var t=this.diagram,e=t.observed;if(null!==e){var i=t.box;if(null!==i){if(null===this.l){var n=t.firstInput.documentPoint;i=i.location,this.l=new mt(n.x-i.x,n.y-i.y)}t=t.lastInput.documentPoint,e.position=new mt(t.x-this.l.x,t.y-this.l.y)}}},qs.className=\"OverviewDraggingTool\",Gs.prototype.toString=function(){return\"CommandHandler\"},Gs.prototype.hb=function(t){this.C=t},Gs.prototype.doKeyDown=function(){var t=this.diagram,e=t.lastInput,i=q?e.meta:e.control,n=e.shift,o=e.alt,r=e.key;!i||\"C\"!==r&&\"Insert\"!==r?i&&\"X\"===r||n&&\"Del\"===r?this.canCutSelection()&&this.cutSelection():i&&\"V\"===r||n&&\"Insert\"===r?this.canPasteSelection()&&this.pasteSelection():i&&\"Y\"===r||o&&n&&\"Backspace\"===r?this.canRedo()&&this.redo():i&&\"Z\"===r||o&&\"Backspace\"===r?this.canUndo()&&this.undo():\"Del\"===r||\"Backspace\"===r?this.canDeleteSelection()&&this.deleteSelection():i&&\"A\"===r?this.canSelectAll()&&this.selectAll():\"Esc\"===r?this.canStopCommand()&&this.stopCommand():\"Up\"===r?t.allowVerticalScroll&&(i?t.scroll(\"pixel\",\"up\"):t.scroll(\"line\",\"up\")):\"Down\"===r?t.allowVerticalScroll&&(i?t.scroll(\"pixel\",\"down\"):t.scroll(\"line\",\"down\")):\"Left\"===r?t.allowHorizontalScroll&&(i?t.scroll(\"pixel\",\"left\"):t.scroll(\"line\",\"left\")):\"Right\"===r?t.allowHorizontalScroll&&(i?t.scroll(\"pixel\",\"right\"):t.scroll(\"line\",\"right\")):\"PageUp\"===r?n&&t.allowHorizontalScroll?t.scroll(\"page\",\"left\"):t.allowVerticalScroll&&t.scroll(\"page\",\"up\"):\"PageDown\"===r?n&&t.allowHorizontalScroll?t.scroll(\"page\",\"right\"):t.allowVerticalScroll&&t.scroll(\"page\",\"down\"):\"Home\"===r?i&&t.allowVerticalScroll?t.scroll(\"document\",\"up\"):!i&&t.allowHorizontalScroll&&t.scroll(\"document\",\"left\"):\"End\"===r?i&&t.allowVerticalScroll?t.scroll(\"document\",\"down\"):!i&&t.allowHorizontalScroll&&t.scroll(\"document\",\"right\"):\" \"===r?this.canScrollToPart()&&this.scrollToPart():\"Subtract\"===r?this.canDecreaseZoom()&&this.decreaseZoom():\"Add\"===r?this.canIncreaseZoom()&&this.increaseZoom():i&&\"0\"===r?this.canResetZoom()&&this.resetZoom():n&&\"Z\"===r?this.canZoomToFit()&&this.zoomToFit():i&&!n&&\"G\"===r?this.canGroupSelection()&&this.groupSelection():i&&n&&\"G\"===r?this.canUngroupSelection()&&this.ungroupSelection():e.event&&113===e.event.which?this.canEditTextBlock()&&this.editTextBlock():e.event&&93===e.event.which?this.canShowContextMenu()&&this.showContextMenu():e.bubbles=!0:this.canCopySelection()&&this.copySelection()},Gs.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Gs.prototype.stopCommand=function(){var t=this.diagram,e=t.currentTool;e instanceof Ai&&t.allowSelect&&t.Ls(),null!==e&&e.doCancel()},Gs.prototype.canStopCommand=function(){return!0},Gs.prototype.selectAll=function(){var t=this.diagram;t.R();try{t.currentCursor=\"wait\",t.aa(\"ChangingSelection\",t.selection);for(var e=t.parts;e.next();)e.value.isSelected=!0;for(var i=t.nodes;i.next();)i.value.isSelected=!0;for(var n=t.links;n.next();)n.value.isSelected=!0}finally{t.aa(\"ChangedSelection\",t.selection),t.currentCursor=\"\"}},Gs.prototype.canSelectAll=function(){return this.diagram.allowSelect},Gs.prototype.deleteSelection=function(){var t=this.diagram;try{t.currentCursor=\"wait\",t.Aa(\"Delete\"),t.aa(\"ChangingSelection\",t.selection),t.aa(\"SelectionDeleting\",t.selection);for(var e=new rt,i=t.selection.iterator;i.next();)Ou(e,i.value,!0,this.deletesTree?1/0:0,!!this.deletesConnectedLinks&&null,(function(t){return t.canDelete()}));t.rt(e,!0),t.aa(\"SelectionDeleted\",e)}finally{t.aa(\"ChangedSelection\",t.selection),t.Za(\"Delete\"),t.currentCursor=\"\"}},Gs.prototype.canDeleteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||0===t.selection.count)},Gs.prototype.copySelection=function(){var t=this.diagram,e=new rt;for(t=t.selection.iterator;t.next();)Ou(e,t.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,(function(t){return t.canCopy()}));this.copyToClipboard(e)},Gs.prototype.canCopySelection=function(){var t=this.diagram;return!(!t.allowCopy||!t.allowClipboard||0===t.selection.count)},Gs.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Gs.prototype.canCutSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowCopy||!t.allowDelete||!t.allowClipboard||0===t.selection.count)},Gs.prototype.copyToClipboard=function(t){var e=this.diagram,i=null;if(null===t)ps=null,gs=\"\";else{i=e.model;var n=!1,o=!1,r=null;try{i.fm()&&(n=i.Wj,i.Wj=this.copiesParentKey),i.ck()&&(o=i.Vj,i.Vj=this.copiesGroupKey),r=e.Xj(t,null,!0)}finally{i.fm()&&(i.Wj=n),i.ck()&&(i.Vj=o),i=new nt,i.addAll(r),ps=i,gs=e.model.dataFormat}}e.aa(\"ClipboardChanged\",i)},Gs.prototype.pasteFromClipboard=function(){var t=new rt,e=ps;if(null===e)return t;var i=this.diagram;if(gs!==i.model.dataFormat)return t;var n=i.model,o=!1,r=!1,s=null;try{n.fm()&&(o=n.Wj,n.Wj=this.copiesParentKey),n.ck()&&(r=n.Vj,n.Vj=this.copiesGroupKey),s=i.Xj(e,i,!1)}finally{for(n.fm()&&(n.Wj=o),n.ck()&&(n.Vj=r),e=s.iterator;e.next();)i=e.value,n=e.key,i.location.o()||(n.location.o()?i.location=n.location:!i.position.o()&&n.position.o()&&(i.position=n.position)),t.add(i)}return t},Gs.prototype.pasteSelection=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.currentCursor=\"wait\",e.Aa(\"Paste\"),e.aa(\"ChangingSelection\",e.selection);var i=this.pasteFromClipboard();0<i.count&&Or(e);for(var n=i.iterator;n.next();)n.value.isSelected=!0;if(e.aa(\"ChangedSelection\",e.selection),null!==t){var o=e.computePartsBounds(e.selection);if(o.o()){var r=this.computeEffectiveCollection(e.selection,e.Lk);xr(e,r,new mt(t.x-o.centerX,t.y-o.centerY),e.Lk,!1)}}e.aa(\"ClipboardPasted\",i)}finally{e.Za(\"Paste\"),e.currentCursor=\"\"}},Gs.prototype.canPasteSelection=function(){var t=this.diagram;return!(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowClipboard||null===ps||0===ps.count||gs!==t.model.dataFormat)},Gs.prototype.undo=function(){this.diagram.undoManager.undo()},Gs.prototype.canUndo=function(){var t=this.diagram;return!t.isReadOnly&&!t.isModelReadOnly&&(t.allowUndo&&t.undoManager.canUndo())},Gs.prototype.redo=function(){this.diagram.undoManager.redo()},Gs.prototype.canRedo=function(){var t=this.diagram;return!t.isReadOnly&&!t.isModelReadOnly&&(t.allowUndo&&t.undoManager.canRedo())},Gs.prototype.decreaseZoom=function(t){void 0===t&&(t=1/this.zoomFactor);var e=this.diagram;e.autoScale===ms&&(t=e.scale*t,t<e.minScale||t>e.maxScale||(e.scale=t))},Gs.prototype.canDecreaseZoom=function(t){void 0===t&&(t=1/this.zoomFactor);var e=this.diagram;return e.autoScale===ms&&(t=e.scale*t,!(t<e.minScale||t>e.maxScale)&&e.allowZoom)},Gs.prototype.increaseZoom=function(t){void 0===t&&(t=this.zoomFactor);var e=this.diagram;e.autoScale===ms&&(t=e.scale*t,t<e.minScale||t>e.maxScale||(e.scale=t))},Gs.prototype.canIncreaseZoom=function(t){void 0===t&&(t=this.zoomFactor);var e=this.diagram;return e.autoScale===ms&&(t=e.scale*t,!(t<e.minScale||t>e.maxScale)&&e.allowZoom)},Gs.prototype.resetZoom=function(t){void 0===t&&(t=this.defaultScale);var e=this.diagram;t<e.minScale||t>e.maxScale||(e.scale=t)},Gs.prototype.canResetZoom=function(t){void 0===t&&(t=this.defaultScale);var e=this.diagram;return!(t<e.minScale||t>e.maxScale)&&e.allowZoom},Gs.prototype.zoomToFit=function(){var t=this.diagram,e=t.scale,i=t.position;e===this.Eu&&!isNaN(this.eu)&&t.documentBounds.A(this.Du)?(t.scale=this.eu,t.position=this.Aw,this.Eu=NaN,this.Du=Zt):(this.eu=e,this.Aw=i.copy(),t.zoomToFit(),this.Eu=t.scale,this.Du=t.documentBounds.copy())},Gs.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Gs.prototype.scrollToPart=function(t){void 0===t&&(t=null);var e=this.diagram;if(null===t){try{null!==this.cg&&(this.cg.next()?t=this.cg.value:this.cg=null)}catch(l){this.cg=null}null===t&&(0<e.highlighteds.count?this.cg=e.highlighteds.iterator:0<e.selection.count&&(this.cg=e.selection.iterator),null!==this.cg&&this.cg.next()&&(t=this.cg.value))}if(null!==t){var i=e.animationManager;i.Ri(\"Scroll To Part\");var n=this.scrollToPartPause;if(0<n){var o=Xs(this,t,[t]),r=function(){e.Aa();for(var t=o.pop();0<o.length&&t instanceof Au&&t.isTreeExpanded&&(!(t instanceof Ju)||t.isSubGraphExpanded);)t=o.pop();0<o.length?(t instanceof lu&&e.Fv(t.actualBounds),t instanceof Au&&!t.isTreeExpanded&&(t.isTreeExpanded=!0),t instanceof Ju&&!t.isSubGraphExpanded&&(t.isSubGraphExpanded=!0)):(t instanceof lu&&e.Ju(t.actualBounds),e.mm(\"LayoutCompleted\",s)),e.Za(\"Scroll To Part\")},s=function(){w(r,(i.isEnabled?i.duration:0)+n)};e.Nj(\"LayoutCompleted\",s),r()}else{var a=e.position.copy();e.Ju(t.actualBounds),a.Qa(e.position)&&i.vd()}}},Gs.prototype.canScrollToPart=function(t){return void 0===t&&(t=null),(null===t||t instanceof lu)&&(t=this.diagram,(0!==t.selection.count||0!==t.highlighteds.count)&&(t.allowHorizontalScroll&&t.allowVerticalScroll))},Gs.prototype.collapseTree=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Aa(\"Collapse Tree\"),e.animationManager.Ri(\"Collapse Tree\");var i=new nt;if(null!==t&&t.isTreeExpanded)t.collapseTree(),i.add(t);else if(null===t)for(var n=e.selection.iterator;n.next();){var o=n.value;o instanceof Au&&o.isTreeExpanded&&(o.collapseTree(),i.add(o))}e.aa(\"TreeCollapsed\",i)}finally{e.Za(\"Collapse Tree\")}},Gs.prototype.canCollapseTree=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t){if(!(t instanceof Au&&t.isTreeExpanded))return!1;if(0<t.Up().count)return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Au&&e.isTreeExpanded&&0<e.Up().count)return!0;return!1},Gs.prototype.expandTree=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Aa(\"Expand Tree\"),e.animationManager.Ri(\"Expand Tree\");var i=new nt;if(null===t||t.isTreeExpanded){if(null===t)for(var n=e.selection.iterator;n.next();){var o=n.value;o instanceof Au&&!o.isTreeExpanded&&(o.expandTree(),i.add(o))}}else t.expandTree(),i.add(t);e.aa(\"TreeExpanded\",i)}finally{e.Za(\"Expand Tree\")}},Gs.prototype.canExpandTree=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t){if(!(t instanceof Au)||t.isTreeExpanded)return!1;if(0<t.Up().count)return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Au&&!e.isTreeExpanded&&0<e.Up().count)return!0;return!1},Gs.prototype.groupSelection=function(){var t=this.diagram,e=t.model;if(e.dk()){var i=this.archetypeGroupData;if(null!==i){var n=null;try{t.currentCursor=\"wait\",t.Aa(\"Group\"),t.aa(\"ChangingSelection\",t.selection);for(var o=new nt,r=t.selection.iterator;r.next();){var s=r.value;s.Lb()&&s.canGroup()&&o.add(s)}for(var a=new nt,l=o.iterator;l.next();){var h=l.value;r=!1;for(var u=o.iterator;u.next();)if(h.Vd(u.value)){r=!0;break}r||a.add(h)}if(0<a.count){var c=a.first().containingGroup;if(null!==c)for(;null!==c;){o=!1;for(var f=a.iterator;f.next();)if(!f.value.Vd(c)){o=!0;break}if(!o)break;c=c.containingGroup}if(i instanceof Ju)ql(i),n=i.copy(),null!==n&&t.add(n);else if(e.kv(i)){var d=e.copyNodeData(i);P(d)&&(e.hf(d),n=t.Ei(d))}if(null!==n){null!==c&&this.isValidMember(c,n)&&(n.containingGroup=c);for(var p=a.iterator;p.next();){var g=p.value;this.isValidMember(n,g)&&(g.containingGroup=n)}t.select(n)}}t.aa(\"ChangedSelection\",t.selection),t.aa(\"SelectionGrouped\",n)}finally{t.Za(\"Group\"),t.currentCursor=\"\"}}}},Gs.prototype.canGroupSelection=function(){var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowInsert||!t.allowGroup||!t.model.dk()||null===this.archetypeGroupData)return!1;for(t=t.selection.iterator;t.next();){var e=t.value;if(e.Lb()&&e.canGroup())return!0}return!1},Gs.prototype.isValidMember=function(t,e){if(null===e||t===e||e instanceof nc)return!1;if(null!==t){if(t===e||t.Vd(e))return!1;var i=t.memberValidation;if(null!==i&&!i(t,e)||null===t.data&&null!==e.data||null!==t.data&&null===e.data)return!1}return i=this.memberValidation,null===i||i(t,e)},Gs.prototype.ungroupSelection=function(t){void 0===t&&(t=null);var e=this.diagram,i=e.model;if(i.dk())try{e.currentCursor=\"wait\",e.Aa(\"Ungroup\"),e.aa(\"ChangingSelection\",e.selection);var n=new nt;if(null!==t)n.add(t);else for(var o=e.selection.iterator;o.next();){var r=o.value;r instanceof Ju&&r.canUngroup()&&n.add(r)}var s=new nt;if(0<n.count){e.Ls();for(var a=n.iterator;a.next();){var l=a.value;l.expandSubGraph();var h=l.containingGroup,u=null!==h&&null!==h.data?i.pa(h.data):void 0;s.addAll(l.memberParts);for(var c=s.iterator;c.next();){var f=c.value;if(f.isSelected=!0,!(f instanceof nc)){var d=f.data;null!==d?i.ut(d,u):f.containingGroup=h}}e.remove(l)}}e.aa(\"ChangedSelection\",e.selection),e.aa(\"SelectionUngrouped\",n,s)}finally{e.Za(\"Ungroup\"),e.currentCursor=\"\"}},Gs.prototype.canUngroupSelection=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||!e.allowUngroup||!e.model.dk())return!1;if(null!==t){if(!(t instanceof Ju))return!1;if(t.canUngroup())return!0}else for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Ju&&e.canUngroup())return!0;return!1},Gs.prototype.addTopLevelParts=function(t,e){var i=!0;for(t=Us(t).iterator;t.next();){var n=t.value;null!==n.containingGroup&&(!e||this.isValidMember(null,n)?n.containingGroup=null:i=!1)}return i},Gs.prototype.collapseSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Aa(\"Collapse SubGraph\"),e.animationManager.Ri(\"Collapse SubGraph\");var i=new nt;if(null!==t&&t.isSubGraphExpanded)t.collapseSubGraph(),i.add(t);else if(null===t)for(var n=e.selection.iterator;n.next();){var o=n.value;o instanceof Ju&&o.isSubGraphExpanded&&(o.collapseSubGraph(),i.add(o))}e.aa(\"SubGraphCollapsed\",i)}finally{e.Za(\"Collapse SubGraph\")}},Gs.prototype.canCollapseSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t)return!!(t instanceof Ju&&t.isSubGraphExpanded);for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Ju&&e.isSubGraphExpanded)return!0;return!1},Gs.prototype.expandSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;try{e.Aa(\"Expand SubGraph\"),e.animationManager.Ri(\"Expand SubGraph\");var i=new nt;if(null===t||t.isSubGraphExpanded){if(null===t)for(var n=e.selection.iterator;n.next();){var o=n.value;o instanceof Ju&&!o.isSubGraphExpanded&&(o.expandSubGraph(),i.add(o))}}else t.expandSubGraph(),i.add(t);e.aa(\"SubGraphExpanded\",i)}finally{e.Za(\"Expand SubGraph\")}},Gs.prototype.canExpandSubGraph=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly)return!1;if(null!==t)return t instanceof Ju&&!t.isSubGraphExpanded;for(t=e.selection.iterator;t.next();)if(e=t.value,e instanceof Ju&&!e.isSubGraphExpanded)return!0;return!1},Gs.prototype.editTextBlock=function(t){void 0===t&&(t=null);var e=this.diagram,i=e.toolManager.findTool(\"TextEditing\");if(null!==i){if(null===t){t=null;for(var n=e.selection.iterator;n.next();){var o=n.value;if(o.canEdit()){t=o;break}}if(null===t)return;t=t.Yl((function(t){return t instanceof mh&&t.editable}))}null!==t&&(e.currentTool=null,i.textBlock=t,e.currentTool=i)}},Gs.prototype.canEditTextBlock=function(t){void 0===t&&(t=null);var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowTextEdit||null===e.toolManager.findTool(\"TextEditing\"))return!1;if(null!==t){if(!(t instanceof mh))return!1;if(t=t.part,null!==t&&t.canEdit())return!0}else for(e=e.selection.iterator;e.next();)if(t=e.value,t.canEdit()&&(t=t.Yl((function(t){return t instanceof mh&&t.editable})),null!==t))return!0;return!1},Gs.prototype.showContextMenu=function(t){var e=this.diagram,i=e.toolManager.findTool(\"ContextMenu\");if(null!==i&&(void 0===t&&(t=0<e.selection.count?e.selection.first():e),t=i.findObjectWithContextMenu(t),null!==t)){var n=e.lastInput,o=null;t instanceof Ks?o=t.ma(de):e.isMouseOverDiagram||(o=e.viewportBounds,o=new mt(o.x+o.width/2,o.y+o.height/2)),null!==o&&(n.viewPoint=e.xt(o),n.documentPoint=o,n.left=!1,n.right=!0,n.up=!0),e.currentTool=i,Hn(i,!1,t)}},Gs.prototype.canShowContextMenu=function(t){var e=this.diagram,i=e.toolManager.findTool(\"ContextMenu\");return null!==i&&(void 0===t&&(t=0<e.selection.count?e.selection.first():e),null!==i.findObjectWithContextMenu(t))},Gs.prototype.computeEffectiveCollection=function(t,e){var i=this.diagram,n=i.toolManager.findTool(\"Dragging\"),o=i.currentTool===n;if(void 0===e&&(e=o?n.dragOptions:i.Lk),n=new gt,null===t)return n;for(var r=t.iterator;r.next();)wr(i,n,r.value,o,e);if(null!==i.draggedLink&&e.dragsLink)return n;for(r=t.iterator;r.next();)t=r.value,t instanceof nc&&(e=t.fromNode,null===e||n.contains(e)?(e=t.toNode,null===e||n.contains(e)||n.remove(t)):n.remove(t));return n},p.Object.defineProperties(Gs.prototype,{diagram:{get:function(){return this.C}},copiesClipboardData:{get:function(){return this.u},set:function(t){this.u=t}},copiesConnectedLinks:{get:function(){return this.K},set:function(t){this.K=t}},deletesConnectedLinks:{get:function(){return this.Vb},set:function(t){this.Vb=t}},copiesTree:{get:function(){return this.Ma},set:function(t){this.Ma=t}},deletesTree:{get:function(){return this.Wb},set:function(t){this.Wb=t}},copiesParentKey:{get:function(){return this.La},set:function(t){this.La=t}},copiesGroupKey:{get:function(){return this.ba},set:function(t){this.ba=t}},archetypeGroupData:{get:function(){return this.l},set:function(t){this.l=t}},memberValidation:{get:function(){return this.ji},set:function(t){this.ji=t}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(t){this.diagram.defaultScale=t}},zoomFactor:{get:function(){return this.Vc},set:function(t){1<t||k(\"zoomFactor must be larger than 1.0, not: \"+t),this.Vc=t}},scrollToPartPause:{get:function(){return this.Kc},set:function(t){this.Kc=t}}}),Gs.className=\"CommandHandler\",Ao=function(){return new Gs},Ks.prototype.cloneProtected=function(t){t.H=6144|this.H,t.lb=this.lb,t.Ua=this.Ua,t.ib=this.ib,t.dc=this.dc,t.Pm=this.Pm,t.sa.assign(this.sa),t.Nc=this.Nc.I(),t.Qf=this.Qf.I(),t.Pf=this.Pf.I(),t.Nf=this.Nf.copy(),t.Ca=this.Ca,t.zc=this.zc,t.ue=this.ue,t.Tg=this.Tg.I(),t.pc.assign(this.pc),t.vb.assign(this.vb),t.qc.assign(this.qc),t.Oo=this.Oo,null!==this.P&&(t.P=this.P.copy()),t.wb=this.wb.I(),t.wk=this.wk.I(),t.ap=this.ap,t.bp=this.bp,t.Cg=this.Cg,t.Zm=this.Zm,t.rp=this.rp,t.gp=this.gp,t.yl=this.yl,t.zl=this.zl.I(),t.Al=this.Al,t.jn=this.jn,null!==this.O&&(t.O=this.O.copy()),t.bb=this.bb,t.Dk=this.Dk,null!==this.Sh&&(t.Sh=L(this.Sh)),null!==this.kd&&(t.kd=this.kd.copy()),t.Cl=this.Cl},Ks.prototype.Qw=function(t){var e=this.Sh;if(T(e)){for(var i=0;i<e.length;i++)if(e[i]===t)return}else this.Sh=e=[];e.push(t)},Ks.prototype.mf=function(t){t.Po=null,t.Aj=null,t.s()},Ks.prototype.clone=function(){var t=new this.constructor;if(this.cloneProtected(t),null!==this.Sh)for(var e=0;e<this.Sh.length;e++){var i=this.Sh[e];t[i]=this[i]}return t},Ks.prototype.copy=function(){return this.clone()},i=Ks.prototype,i.fb=function(t){t.classType===nc?0===t.name.indexOf(\"Orient\")?this.segmentOrientation=t:k(\"Unknown Link enum value for GraphObject.segmentOrientation property: \"+t):t.classType===Ks&&(this.stretch=t)},i.toString=function(){return B(this.constructor)+\"#\"+lt(this)},i.Hc=function(){if(null===this.P){var t=new lf;t.Lg=le,t.nh=le,t.Jg=10,t.lh=10,t.Kg=0,t.mh=0,this.P=t}},i.ab=function(t,e,i,n,o,r,s){var a=this.part;if(null!==a&&(a.nk(t,e,i,n,o,r,s),i===this&&t===Si&&(ua(this)&&Ws(this,a,e),Js(this,a,e,n,o)),this instanceof Nl&&i===a&&0!==(16777216&a.H)&&null!==a.data))for(t=this.Y.j,i=t.length,n=0;n<i;n++)o=t[n],o instanceof Nl&&Al(o,(function(t){null!==t.data&&0!==(16777216&t.H)&&t.Ea(e)}))},i.Qs=function(t){return this.Dk===t?this:null},i.g=function(t,e,i){this.ab(Si,t,this,e,i)},i.jx=function(t,e,i){if(!1===this.pickable)return!1;var n=this.naturalBounds;return e=t.Be(e),i?xt(t.x,t.y,0,0,0,n.height)<=e||xt(t.x,t.y,0,n.height,n.width,n.height)<=e||xt(t.x,t.y,n.width,n.height,n.width,0)<=e||xt(t.x,t.y,n.width,0,0,0)<=e:t.cd(0,0)<=e&&t.cd(0,n.height)<=e&&t.cd(n.width,0)<=e&&t.cd(n.width,n.height)<=e},i.Zd=function(){return!0},i.ea=function(t){var e=mt.alloc();e.assign(t),this.transform.ta(e);var i=this.actualBounds;if(!i.o())return mt.free(e),!1;var n=this.diagram;if(null!==n&&n.Qe){var o=n.bm(\"extraTouchThreshold\"),r=n.bm(\"extraTouchArea\"),s=r/2,a=this.naturalBounds;n=this.Ce()*n.scale;var l=1/n;if(a.width*n<o&&a.height*n<o)return t=Wt(i.x-s*l,i.y-s*l,i.width+r*l,i.height+r*l,e.x,e.y),mt.free(e),t}return o=!1,(this instanceof ju||this instanceof sh?Wt(i.x-5,i.y-5,i.width+10,i.height+10,e.x,e.y):i.ea(e))&&(o=!(this.kd&&!this.kd.ea(e))&&(!(null===this.dc||!i.ea(e))||(!(null===this.ib||!this.qc.ea(t))||this.vh(t)))),mt.free(e),o},i.vh=function(t){var e=this.naturalBounds;return Wt(0,0,e.width,e.height,t.x,t.y)},i.lf=function(t){if(0===this.angle)return this.actualBounds.lf(t);var e=this.naturalBounds;e=_t.allocAt(0,0,e.width,e.height);var i=this.transform,n=!1,o=mt.allocAt(t.x,t.y);return e.ea(i.Ud(o))&&(o.h(t.x,t.bottom),e.ea(i.Ud(o))&&(o.h(t.right,t.bottom),e.ea(i.Ud(o))&&(o.h(t.right,t.y),e.ea(i.Ud(o))&&(n=!0)))),mt.free(o),_t.free(e),n},i.uh=function(t,e){if(void 0===e)return t.lf(this.actualBounds);var i=this.naturalBounds,n=!1,o=mt.allocAt(0,0);return t.ea(e.ta(o))&&(o.h(0,i.height),t.ea(e.ta(o))&&(o.h(i.width,i.height),t.ea(e.ta(o))&&(o.h(i.width,0),t.ea(e.ta(o))&&(n=!0)))),mt.free(o),n},i.Ic=function(t,e){if(void 0===e&&(e=this.transform,0===this.angle))return t.Ic(this.actualBounds);var i=this.naturalBounds,n=mt.allocAt(0,0),o=mt.allocAt(0,i.height),r=mt.allocAt(i.width,i.height),s=mt.allocAt(i.width,0),a=!1;if(t.ea(e.ta(n))||t.ea(e.ta(o))||t.ea(e.ta(r))||t.ea(e.ta(s)))a=!0;else{i=_t.allocAt(0,0,i.width,i.height);var l=mt.allocAt(t.x,t.y);i.ea(e.Ud(l))?a=!0:(l.h(t.x,t.bottom),i.ea(e.Ud(l))?a=!0:(l.h(t.right,t.bottom),i.ea(e.Ud(l))?a=!0:(l.h(t.right,t.y),i.ea(e.Ud(l))&&(a=!0)))),mt.free(l),_t.free(i),!a&&(We.$s(t,n,o)||We.$s(t,o,r)||We.$s(t,r,s)||We.$s(t,s,n))&&(a=!0)}return mt.free(n),mt.free(o),mt.free(r),mt.free(s),a},i.ma=function(t,e){if(void 0===e&&(e=new mt),t instanceof Ge){var i=this.naturalBounds;e.h(t.x*i.width+t.offsetX,t.y*i.height+t.offsetY)}else e.set(t);return this.rd.ta(e),e},i.Vp=function(t){void 0===t&&(t=new _t);var e=this.naturalBounds,i=this.rd,n=mt.allocAt(0,0).transform(i);return t.h(n.x,n.y,0,0),n.h(e.width,0).transform(i),$t(t,n.x,n.y,0,0),n.h(e.width,e.height).transform(i),$t(t,n.x,n.y,0,0),n.h(0,e.height).transform(i),$t(t,n.x,n.y,0,0),mt.free(n),t},i.Ji=function(){var t=this.rd;return 1===t.m11&&0===t.m12?t=0:(t=180*Math.atan2(t.m12,t.m11)/Math.PI,0>t&&(t+=360)),t},i.Ce=function(){if(0!==(4096&this.H)===!1)return this.Sk;var t=this.Ca;return null!==this.panel?t*this.panel.Ce():t},i.Ws=function(t,e){return void 0===e&&(e=new mt),e.assign(t),this.rd.Ud(e),e},i.Tc=function(t,e,i){return this.bk(t.x,t.y,e.x,e.y,i)},i.bk=function(t,e,i,n,o){var r=this.transform,s=1/(r.m11*r.m22-r.m12*r.m21),a=r.m22*s,l=-r.m12*s,h=-r.m21*s,u=r.m11*s,c=s*(r.m21*r.dy-r.m22*r.dx),f=s*(r.m12*r.dx-r.m11*r.dy);return null!==this.areaBackground?(r=this.actualBounds,We.Tc(r.left,r.top,r.right,r.bottom,t,e,i,n,o)):(s=t*a+e*h+c,t=t*l+e*u+f,e=i*a+n*h+c,i=i*l+n*u+f,o.h(0,0),n=this.naturalBounds,i=We.Tc(0,0,n.width,n.height,s,t,e,i,o),o.transform(r),i)},Ks.prototype.measure=function(t,e,i,n){if(!1!==pa(this)){var o=this.Tg,r=o.right+o.left;o=o.top+o.bottom,t=Math.max(t-r,0),e=Math.max(e-o,0),i=Math.max((i||0)-r,0),n=Math.max((n||0)-o,0),r=this.angle,o=this.desiredSize;var s=0;this instanceof sh&&(s=this.strokeWidth),90===r||270===r?(t=isFinite(o.height)?o.height+s:t,e=isFinite(o.width)?o.width+s:e):(t=isFinite(o.width)?o.width+s:t,e=isFinite(o.height)?o.height+s:e),o=i||0,s=n||0;var a=this instanceof Nl;switch(sa(this,!0)){case ts:s=o=0,a&&(e=t=1/0);break;case Qr:isFinite(t)&&t>i&&(o=t),isFinite(e)&&e>n&&(s=e);break;case ns:isFinite(t)&&t>i&&(o=t),s=0,a&&(e=1/0);break;case os:isFinite(e)&&e>n&&(s=e),o=0,a&&(t=1/0)}a=this.maxSize;var l=this.minSize;o>a.width&&l.width<a.width&&(o=a.width),s>a.height&&l.height<a.height&&(s=a.height),i=Math.max(o/this.scale,l.width),n=Math.max(s/this.scale,l.height),a.width<i&&(i=Math.min(l.width,i)),a.height<n&&(n=Math.min(l.height,n)),t=Math.min(a.width,t),e=Math.min(a.height,e),t=Math.max(i,t),e=Math.max(n,e),90!==r&&270!==r||(r=t,t=e,e=r,r=i,i=n,n=r),this.pc.ha(),this.hm(t,e,i,n),this.pc.freeze(),this.pc.o()||k(\"Non-real measuredBounds has been set. Object \"+this+\", measuredBounds: \"+this.pc.toString()),ga(this,!1)}},Ks.prototype.hm=function(){},Ks.prototype.sg=function(){return!1},Ks.prototype.arrange=function(t,e,i,n,o){this.fl();var r=_t.alloc();r.assign(this.vb),this.vb.ha(),!1===ma(this)?this.vb.h(t,e,i,n):this.th(t,e,i,n),this.vb.freeze(),this.kd=void 0===o?null:o,i=!1,void 0!==o?i=!0:(o=this.panel,null===o||o.type!==Nl.TableRow&&o.type!==Nl.TableColumn||(o=o.panel),null!==o&&(o=o.qc,n=this.measuredBounds,null!==this.areaBackground&&(n=this.vb),i=e+n.height,n=t+n.width,i=!(0<=t+.05&&n<=o.width+.05&&0<=e+.05&&i<=o.height+.05),this instanceof mh&&(t=this.naturalBounds,this.Mr>t.height||this.metrics.maxLineWidth>t.width))&&(i=!0)),this.H=i?256|this.H:-257&this.H,this.vb.o()||k(\"Non-real actualBounds has been set. Object \"+this+\", actualBounds: \"+this.vb.toString()),this.lt(r,this.vb),va(this,!1),_t.free(r)},i=Ks.prototype,i.th=function(){},i.lt=function(t,e){var i=this.part;null!==i&&null!==i.diagram&&(i.selectionObject!==this&&i.resizeObject!==this&&i.rotateObject!==this||Mu(i,!0),this.R(),Gt(t,e)||(i.yh(),this.Do(i)))},i.Do=function(t){null!==this.portId&&(Mu(t,!0),t instanceof Au&&Fu(t,this))},i.hc=function(t,e){if(this.visible){var i=this instanceof Nl&&(this.type===Nl.TableRow||this.type===Nl.TableColumn),n=this.vb;if(i||0!==n.width&&0!==n.height&&!isNaN(n.x)&&!isNaN(n.y)){var o=this.opacity;if(0!==o){var r=1;if(1!==o&&(r=t.globalAlpha,t.globalAlpha=r*o),!this.gx(t,e))if(i)ea(this,t,e);else{this instanceof nc&&this.gk(!1),i=this.transform;var s=this.panel;0!==(4096&this.H)===!0&&na(this);var a=this.part,l=!1,h=0;if(a&&e.De(\"drawShadows\")&&(l=a.isShadowed)){var u=a.si;h=Math.max(u.y,u.x)*e.scale*e.Nb}if(!(u=e.mj)){var c=this.naturalBounds;u=this.Dh;var f,d=u.m11,p=u.m21,g=u.dx,m=u.m12,v=u.m22,y=u.dy,b=f=0;u=f*d+b*p+g;var w=f*m+b*v+y;f=c.width+h,b=0;var x=f*d+b*p+g;f=f*m+b*v+y,u=Math.min(u,x),w=Math.min(w,f);var k=Math.max(u,x)-u,M=Math.max(w,f)-w;f=c.width+h,b=c.height+h,x=f*d+b*p+g,f=f*m+b*v+y,u=Math.min(u,x),w=Math.min(w,f),k=Math.max(u+k,x)-u,M=Math.max(w+M,f)-w,f=0,b=c.height+h,x=f*d+b*p+g,f=f*m+b*v+y,u=Math.min(u,x),w=Math.min(w,f),k=Math.max(u+k,x)-u,M=Math.max(w+M,f)-w,h=e.viewportBounds,c=h.x,d=h.y,u=!(u>h.$+c||c>k+u||w>h.Z+d||d>M+w)}if(u){if(u=0!==(256&this.H),t.clipInsteadOfFill&&(u=!1),this instanceof mh&&(t.font=this.font),u){if(w=s.Zd()?s.naturalBounds:s.actualBounds,null!==this.kd?(c=this.kd,k=c.x,M=c.y,h=c.width,c=c.height):(k=Math.max(n.x,w.x),M=Math.max(n.y,w.y),h=Math.min(n.right,w.right)-k,c=Math.min(n.bottom,w.bottom)-M),k>n.width+n.x||n.x>w.width+w.x)return void(1!==o&&(t.globalAlpha=r));t.save(),t.beginPath(),t.rect(k,M,h,c),t.clip()}if(this.sg()){if(!a.isVisible())return void(1!==o&&(t.globalAlpha=r));l&&(w=a.si,t.Nv(w.x*e.scale*e.Nb,w.y*e.scale*e.Nb,a.Od),Ba(t),t.shadowColor=a.Ij)}!0===this.shadowVisible?Ba(t):!1===this.shadowVisible&&Aa(t),a=this.naturalBounds,null!==this.dc&&(ia(this,t,this.dc,!0,!0,a,n),this.dc instanceof Ra&&this.dc.type===Qa?(t.beginPath(),t.rect(n.x,n.y,n.width,n.height),t.Td(this.dc)):t.fillRect(n.x,n.y,n.width,n.height)),t.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),l&&(null!==s&&0!==(512&s.H)||null!==s&&(s.type===Nl.Auto||s.type===Nl.Spot)&&s.zb()!==this)&&null===this.shadowVisible&&Aa(t),null!==this.ib&&(h=this.naturalBounds,k=w=0,M=h.width,h=h.height,c=0,this instanceof sh&&(h=this.qa.bounds,w=h.x,k=h.y,M=h.width,h=h.height,c=this.strokeWidth),ia(this,t,this.ib,!0,!1,a,n),this.ib instanceof Ra&&this.ib.type===Qa?(t.beginPath(),t.rect(w-c/2,k-c/2,M+c,h+c),t.Td(this.ib)):t.fillRect(w-c/2,k-c/2,M+c,h+c)),l&&(null!==this.ib||null!==this.dc||null!==s&&0!==(512&s.H)||null!==s&&(s.type===Nl.Auto||s.type===Nl.Spot)&&s.zb()!==this)?(ha(this,!0),null===this.shadowVisible&&Aa(t)):ha(this,!1),this.Ci(t,e),l&&0!==(512&this.H)===!0&&Ba(t),this.sg()&&l&&Aa(t),u?(t.restore(),this instanceof Nl?t.Rc(!0):t.Rc(!1)):i.ct()||(e=1/(i.m11*i.m22-i.m12*i.m21),t.transform(i.m22*e,-i.m12*e,-i.m21*e,i.m11*e,e*(i.m21*i.dy-i.m22*i.dx),e*(i.m12*i.dx-i.m11*i.dy)))}}1!==o&&(t.globalAlpha=r)}}}},i.gx=function(){return!1},i.Ci=function(){},i.qg=function(t){if(t instanceof Nl)t:{if(this!==t&&null!==t)for(var e=this.panel;null!==e;){if(e===t){t=!0;break t}e=e.panel}t=!1}else t=!1;return t},i.rf=function(){if(!this.visible)return!1;var t=this.panel;return null===t||t.rf()},i.rg=function(){for(var t=this instanceof Nl?this:this.panel;null!==t&&t.isEnabled;)t=t.panel;return null===t},i.s=function(t){if(void 0===t&&(t=!1),!0!==pa(this)){ga(this,!0),va(this,!0);var e=this.panel;null===e||t||e.s()}},i.dm=function(){!0!==pa(this)&&(ga(this,!0),va(this,!0))},i.fl=function(){0!==(2048&this.H)===!1&&(fa(this,!0),da(this,!0))},i.iv=function(){da(this,!0)},i.R=function(){var t=this.part;null!==t&&t.R()},i.Si=function(t){this.ag=t},i.Lv=function(){},i.Kv=function(t){return this.sa=t,ra(this),!0},i.wt=function(t,e){this.sa.h(t,e),this.fl()},i.bind=function(t){t.Qd=this;var e=this.Gi();null!==e&&Yl(e)&&k(\"Cannot add a Binding to a template that has already been copied: \"+t),null===this.bb&&(this.bb=new nt),this.bb.add(t)},i.Gi=function(){for(var t=this instanceof Nl?this:this.panel;null!==t;){if(null!==t.Qh)return t;t=t.panel}return null},i.Mv=function(t){dr(this,t)},p.Object.defineProperties(Ks.prototype,{shadowVisible:{get:function(){return this.Cl},set:function(t){var e=this.Cl;e!==t&&(this.Cl=t,this.R(),this.g(\"shadowVisible\",e,t))}},enabledChanged:{get:function(){return null!==this.O?this.O.Bn:null},set:function(t){$s(this);var e=this.O.Bn;e!==t&&(this.O.Bn=t,this.g(\"enabledChanged\",e,t))}},segmentOrientation:{get:function(){return this.Al},set:function(t){var e=this.Al;e!==t&&(this.Al=t,this.s(),this.g(\"segmentOrientation\",e,t),t===Tc&&(this.angle=0))}},segmentIndex:{get:function(){return this.gp},set:function(t){t=Math.round(t);var e=this.gp;e!==t&&(this.gp=t,this.s(),this.g(\"segmentIndex\",e,t))}},segmentFraction:{get:function(){return this.yl},set:function(t){isNaN(t)||0>t?t=0:1<t&&(t=1);var e=this.yl;e!==t&&(this.yl=t,this.s(),this.g(\"segmentFraction\",e,t))}},segmentOffset:{get:function(){return this.zl},set:function(t){var e=this.zl;e.A(t)||(this.zl=t=t.I(),this.s(),this.g(\"segmentOffset\",e,t))}},stretch:{get:function(){return this.ue},set:function(t){var e=this.ue;e!==t&&(this.ue=t,this.s(),this.g(\"stretch\",e,t))}},name:{get:function(){return this.Ua},set:function(t){var e=this.Ua;e!==t&&(this.Ua=t,null!==this.part&&(this.part.vj=null),this.g(\"name\",e,t))}},opacity:{get:function(){return this.lb},set:function(t){var e=this.lb;e!==t&&((0>t||1<t)&&C(t,\"0 <= value <= 1\",Ks,\"opacity\"),this.lb=t,this.g(\"opacity\",e,t),t=this.diagram,e=this.part,null!==t&&null!==e&&t.R(du(e,e.actualBounds)))}},visible:{get:function(){return 0!==(1&this.H)},set:function(t){var e=0!==(1&this.H);e!==t&&(this.H^=1,this.g(\"visible\",e,t),e=this.panel,null!==e?e.s():this.sg()&&this.Mb(t),this.R(),ba(this))}},pickable:{get:function(){return 0!==(2&this.H)},set:function(t){var e=0!==(2&this.H);e!==t&&(this.H^=2,this.g(\"pickable\",e,t))}},fromLinkableDuplicates:{get:function(){return 0!==(4&this.H)},set:function(t){var e=0!==(4&this.H);e!==t&&(this.H^=4,this.g(\"fromLinkableDuplicates\",e,t))}},fromLinkableSelfNode:{get:function(){return 0!==(8&this.H)},set:function(t){var e=0!==(8&this.H);e!==t&&(this.H^=8,this.g(\"fromLinkableSelfNode\",e,t))}},toLinkableDuplicates:{get:function(){return 0!==(16&this.H)},set:function(t){var e=0!==(16&this.H);e!==t&&(this.H^=16,this.g(\"toLinkableDuplicates\",e,t))}},toLinkableSelfNode:{get:function(){return 0!==(32&this.H)},set:function(t){var e=0!==(32&this.H);e!==t&&(this.H^=32,this.g(\"toLinkableSelfNode\",e,t))}},isPanelMain:{get:function(){return 0!==(64&this.H)},set:function(t){var e=0!==(64&this.H);e!==t&&(this.H^=64,this.s(),this.g(\"isPanelMain\",e,t))}},isActionable:{get:function(){return 0!==(128&this.H)},set:function(t){var e=0!==(128&this.H);e!==t&&(this.H^=128,this.g(\"isActionable\",e,t))}},areaBackground:{get:function(){return this.dc},set:function(t){var e=this.dc;e!==t&&(t instanceof Ra&&t.freeze(),this.dc=t,this.R(),this.g(\"areaBackground\",e,t))}},background:{get:function(){return this.ib},set:function(t){var e=this.ib;e!==t&&(t instanceof Ra&&t.freeze(),this.ib=t,this.R(),this.g(\"background\",e,t))}},part:{get:function(){if(this.sg())return this;if(null!==this.Aj)return this.Aj;var t;for(t=this.panel;t;){if(t instanceof lu)return this.Aj=t;t=t.panel}return null}},svg:{get:function(){return this.As},set:function(t){this.As=t}},panel:{get:function(){return this.ag}},layer:{get:function(){var t=this.part;return null!==t?t.layer:null}},diagram:{get:function(){var t=this.part;return null!==t?t.diagram:null}},position:{get:function(){return this.sa},set:function(t){var e=t.x,i=t.y,n=this.sa,o=n.x,r=n.y;(o===e||isNaN(o)&&isNaN(e))&&(r===i||isNaN(r)&&isNaN(i))?this.Lv():(t=t.I(),this.Kv(t,n)&&this.g(\"position\",n,t))}},actualBounds:{get:function(){return this.vb}},scale:{get:function(){return this.Ca},set:function(t){var e=this.Ca;e!==t&&(0>=t&&k(\"GraphObject.scale for \"+this+\" must be greater than zero, not: \"+t),this.Ca=t,this.s(),this.g(\"scale\",e,t))}},angle:{get:function(){return this.zc},set:function(t){var e=this.zc;e!==t&&(t%=360,0>t&&(t+=360),e!==t&&(this.zc=t,ba(this),this.s(),this.g(\"angle\",e,t)))}},desiredSize:{get:function(){return this.Nc},set:function(t){var e=t.width,i=t.height,n=this.Nc,o=n.width,r=n.height;(o===e||isNaN(o)&&isNaN(e))&&(r===i||isNaN(r)&&isNaN(i))||(this.Nc=t=t.I(),this.s(),this instanceof sh&&this.bc(),this.g(\"desiredSize\",n,t),ua(this)&&(t=this.part,null!==t&&(Ws(this,t,\"width\"),Ws(this,t,\"height\"))))}},width:{get:function(){return this.Nc.width},set:function(t){var e=this.Nc.width;e===t||isNaN(e)&&isNaN(t)||(e=this.Nc,this.Nc=t=new It(t,this.Nc.height).freeze(),this.s(),this instanceof sh&&this.bc(),this.g(\"desiredSize\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"width\")))}},height:{get:function(){return this.Nc.height},set:function(t){var e=this.Nc.height;e===t||isNaN(e)&&isNaN(t)||(e=this.Nc,this.Nc=t=new It(this.Nc.width,t).freeze(),this.s(),this instanceof sh&&this.bc(),this.g(\"desiredSize\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"height\")))}},minSize:{get:function(){return this.Qf},set:function(t){var e=this.Qf;e.A(t)||(t=t.copy(),isNaN(t.width)&&(t.width=0),isNaN(t.height)&&(t.height=0),t.freeze(),this.Qf=t,this.s(),this.g(\"minSize\",e,t))}},maxSize:{get:function(){return this.Pf},set:function(t){var e=this.Pf;e.A(t)||(t=t.copy(),isNaN(t.width)&&(t.width=1/0),isNaN(t.height)&&(t.height=1/0),t.freeze(),this.Pf=t,this.s(),this.g(\"maxSize\",e,t))}},measuredBounds:{get:function(){return this.pc}},naturalBounds:{get:function(){return this.qc}},margin:{get:function(){return this.Tg},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.Tg;e.A(t)||(this.Tg=t=t.I(),this.s(),this.g(\"margin\",e,t))}},transform:{get:function(){return 0!==(2048&this.H)===!0&&na(this),this.tb}},rd:{get:function(){return 0!==(4096&this.H)===!0&&na(this),this.Dh}},animations:{get:function(){return this.Pm},set:function(t){var e=this.Pm;e!==t&&(this.Pm=t,this.g(\"animations\",e,t))}},alignment:{get:function(){return this.wb},set:function(t){var e=this.wb;e.A(t)||(t.jc()&&!t.Kb()&&k(\"GraphObject.alignment for \"+this+\" must be a real Spot or Spot.Default, not: \"+t),this.wb=t=t.I(),ra(this),this.g(\"alignment\",e,t))}},column:{get:function(){return this.Cg},set:function(t){t=Math.round(t);var e=this.Cg;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"column\"),this.Cg=t,this.s(),this.g(\"column\",e,t))}},columnSpan:{get:function(){return this.Zm},set:function(t){t=Math.round(t);var e=this.Zm;e!==t&&(1>t&&C(t,\">= 1\",Ks,\"columnSpan\"),this.Zm=t,this.s(),this.g(\"columnSpan\",e,t))}},row:{get:function(){return this.ap},set:function(t){t=Math.round(t);var e=this.ap;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"row\"),this.ap=t,this.s(),this.g(\"row\",e,t))}},rowSpan:{get:function(){return this.bp},set:function(t){t=Math.round(t);var e=this.bp;e!==t&&(1>t&&C(t,\">= 1\",Ks,\"rowSpan\"),this.bp=t,this.s(),this.g(\"rowSpan\",e,t))}},spanAllocation:{get:function(){return this.rp},set:function(t){var e=this.rp;e!==t&&(this.rp=t,this.s(),this.g(\"spanAllocation\",e,t))}},alignmentFocus:{get:function(){return this.wk},set:function(t){var e=this.wk;e.A(t)||(this.wk=t=t.I(),this.s(),this.g(\"alignmentFocus\",e,t))}},portId:{get:function(){return this.Oo},set:function(t){var e=this.Oo;if(e!==t){var i=this.part;null===i||i instanceof Au||(k(\"Cannot set portID on a Link: \"+t),i=null),null!==e&&null!==i&&Yu(i,this),this.Oo=t,null!==t&&null!==i&&(i.xh=!0,Hu(i,this)),this.g(\"portId\",e,t)}}},toSpot:{get:function(){return null!==this.P?this.P.nh:le},set:function(t){this.Hc();var e=this.P.nh;e.A(t)||(t=t.I(),this.P.nh=t,this.g(\"toSpot\",e,t),ya(this))}},toEndSegmentLength:{get:function(){return null!==this.P?this.P.lh:10},set:function(t){this.Hc();var e=this.P.lh;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"toEndSegmentLength\"),this.P.lh=t,this.g(\"toEndSegmentLength\",e,t),ya(this))}},toShortLength:{get:function(){return null!==this.P?this.P.mh:0},set:function(t){this.Hc();var e=this.P.mh;e!==t&&(this.P.mh=t,this.g(\"toShortLength\",e,t),ya(this))}},toLinkable:{get:function(){return null!==this.P?this.P.zp:null},set:function(t){this.Hc();var e=this.P.zp;e!==t&&(this.P.zp=t,this.g(\"toLinkable\",e,t))}},toMaxLinks:{get:function(){return null!==this.P?this.P.Ap:1/0},set:function(t){this.Hc();var e=this.P.Ap;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"toMaxLinks\"),this.P.Ap=t,this.g(\"toMaxLinks\",e,t))}},fromSpot:{get:function(){return null!==this.P?this.P.Lg:le},set:function(t){this.Hc();var e=this.P.Lg;e.A(t)||(t=t.I(),this.P.Lg=t,this.g(\"fromSpot\",e,t),ya(this))}},fromEndSegmentLength:{get:function(){return null!==this.P?this.P.Jg:10},set:function(t){this.Hc();var e=this.P.Jg;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"fromEndSegmentLength\"),this.P.Jg=t,this.g(\"fromEndSegmentLength\",e,t),ya(this))}},fromShortLength:{get:function(){return null!==this.P?this.P.Kg:0},set:function(t){this.Hc();var e=this.P.Kg;e!==t&&(this.P.Kg=t,this.g(\"fromShortLength\",e,t),ya(this))}},fromLinkable:{get:function(){return null!==this.P?this.P.Dn:null},set:function(t){this.Hc();var e=this.P.Dn;e!==t&&(this.P.Dn=t,this.g(\"fromLinkable\",e,t))}},fromMaxLinks:{get:function(){return null!==this.P?this.P.En:1/0},set:function(t){this.Hc();var e=this.P.En;e!==t&&(0>t&&C(t,\">= 0\",Ks,\"fromMaxLinks\"),this.P.En=t,this.g(\"fromMaxLinks\",e,t))}},cursor:{get:function(){return this.jn},set:function(t){var e=this.jn;e!==t&&(this.jn=t,this.g(\"cursor\",e,t))}},click:{get:function(){return null!==this.O?this.O.Af:null},set:function(t){$s(this);var e=this.O.Af;e!==t&&(this.O.Af=t,this.g(\"click\",e,t))}},doubleClick:{get:function(){return null!==this.O?this.O.Ff:null},set:function(t){$s(this);var e=this.O.Ff;e!==t&&(this.O.Ff=t,this.g(\"doubleClick\",e,t))}},contextClick:{get:function(){return null!==this.O?this.O.Bf:null},set:function(t){$s(this);var e=this.O.Bf;e!==t&&(this.O.Bf=t,this.g(\"contextClick\",e,t))}},mouseEnter:{get:function(){return null!==this.O?this.O.Sf:null},set:function(t){$s(this);var e=this.O.Sf;e!==t&&(this.O.Sf=t,this.g(\"mouseEnter\",e,t))}},mouseLeave:{get:function(){return null!==this.O?this.O.Vf:null},set:function(t){$s(this);var e=this.O.Vf;e!==t&&(this.O.Vf=t,this.g(\"mouseLeave\",e,t))}},mouseOver:{get:function(){return null!==this.O?this.O.Wf:null},set:function(t){$s(this);var e=this.O.Wf;e!==t&&(this.O.Wf=t,this.g(\"mouseOver\",e,t))}},mouseHover:{get:function(){return null!==this.O?this.O.Uf:null},set:function(t){$s(this);var e=this.O.Uf;e!==t&&(this.O.Uf=t,this.g(\"mouseHover\",e,t))}},mouseHold:{get:function(){return null!==this.O?this.O.Tf:null},set:function(t){$s(this);var e=this.O.Tf;e!==t&&(this.O.Tf=t,this.g(\"mouseHold\",e,t))}},mouseDragEnter:{get:function(){return null!==this.O?this.O.to:null},set:function(t){$s(this);var e=this.O.to;e!==t&&(this.O.to=t,this.g(\"mouseDragEnter\",e,t))}},mouseDragLeave:{get:function(){return null!==this.O?this.O.uo:null},set:function(t){$s(this);var e=this.O.uo;e!==t&&(this.O.uo=t,this.g(\"mouseDragLeave\",e,t))}},mouseDrop:{get:function(){return null!==this.O?this.O.Rf:null},set:function(t){$s(this);var e=this.O.Rf;e!==t&&(this.O.Rf=t,this.g(\"mouseDrop\",e,t))}},actionDown:{get:function(){return null!==this.O?this.O.Im:null},set:function(t){$s(this);var e=this.O.Im;e!==t&&(this.O.Im=t,this.g(\"actionDown\",e,t))}},actionMove:{get:function(){return null!==this.O?this.O.Jm:null},set:function(t){$s(this);var e=this.O.Jm;e!==t&&(this.O.Jm=t,this.g(\"actionMove\",e,t))}},actionUp:{get:function(){return null!==this.O?this.O.Km:null},set:function(t){$s(this);var e=this.O.Km;e!==t&&(this.O.Km=t,this.g(\"actionUp\",e,t))}},actionCancel:{get:function(){return null!==this.O?this.O.Hm:null},set:function(t){$s(this);var e=this.O.Hm;e!==t&&(this.O.Hm=t,this.g(\"actionCancel\",e,t))}},toolTip:{get:function(){return null!==this.O?this.O.gg:null},set:function(t){$s(this);var e=this.O.gg;e!==t&&(this.O.gg=t,this.g(\"toolTip\",e,t))}},contextMenu:{get:function(){return null!==this.O?this.O.Cf:null},set:function(t){$s(this);var e=this.O.Cf;e!==t&&(this.O.Cf=t,this.g(\"contextMenu\",e,t))}}}),Ks.prototype.setProperties=Ks.prototype.Mv,Ks.prototype.findTemplateBinder=Ks.prototype.Gi,Ks.prototype.bind=Ks.prototype.bind,Ks.prototype.isEnabledObject=Ks.prototype.rg,Ks.prototype.isVisibleObject=Ks.prototype.rf,Ks.prototype.isContainedBy=Ks.prototype.qg,Ks.prototype.getNearestIntersectionPoint=Ks.prototype.Tc,Ks.prototype.getLocalPoint=Ks.prototype.Ws,Ks.prototype.getDocumentScale=Ks.prototype.Ce,Ks.prototype.getDocumentAngle=Ks.prototype.Ji,Ks.prototype.getDocumentBounds=Ks.prototype.Vp,Ks.prototype.getDocumentPoint=Ks.prototype.ma,Ks.prototype.intersectsRect=Ks.prototype.Ic,Ks.prototype.containedInRect=Ks.prototype.uh,Ks.prototype.containsRect=Ks.prototype.lf,Ks.prototype.containsPoint=Ks.prototype.ea,Ks.prototype.raiseChanged=Ks.prototype.g,Ks.prototype.raiseChangedEvent=Ks.prototype.ab,Ks.prototype.addCopyProperty=Ks.prototype.Qw;var Ca=null;function Sa(){this.Bn=this.Cf=this.gg=this.Hm=this.Km=this.Jm=this.Im=this.Rf=this.uo=this.to=this.Tf=this.Uf=this.Wf=this.Vf=this.Sf=this.Bf=this.Ff=this.Af=null}function Na(){this.Oa=[1,0,0,1,0,0]}function Pa(t){this.type=t,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.Yw=[],this.pattern=null}function Ta(t,e){this.ownerDocument=t=void 0===e?v.document:e,this.Fz=\"http://www.w3.org/2000/svg\",void 0!==t&&(this.Ga=this.ub(\"svg\",{width:\"1px\",height:\"1px\",viewBox:\"0 0 1 1\"}),this.Ga.setAttributeNS(\"http://www.w3.org/2000/xmlns/\",\"xmlns\",\"http://www.w3.org/2000/svg\"),this.Ga.setAttributeNS(\"http://www.w3.org/2000/xmlns/\",\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\")),this.Qp=null,this.context=new La(this)}function La(t){this.rk=t,this.svg=t.Ga,this.stack=[],this.wc=[],this.fillStyle=\"#000000\",this.font=\"10px sans-serif\",this.globalAlpha=1,this.lineCap=\"butt\",this.lineDashOffset=0,this.lineJoin=\"miter\",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor=\"rgba(0, 0, 0, 0)\",this.shadowOffsetY=this.shadowOffsetX=0,this.strokeStyle=\"#000000\",this.textAlign=\"start\",this.clipInsteadOfFill=!1,this.Od=this.np=this.mp=0,this.aq=null,this.path=[],this.cu=!1,this.gh=null,this.hh=0,this.Sd=new Na,ja(this,1,0,0,1,0,0);var e=ht++,i=this.ub(\"clipPath\",{id:\"mainClip\"+e});i.appendChild(this.ub(\"rect\",{x:0,y:0,width:t.width,height:t.height})),this.gu=i,this.rk.Ga.appendChild(i),this.wc[0].setAttributeNS(null,\"clip-path\",\"url(#mainClip\"+e+\")\"),this.Hz={}}function Oa(t,e,i,n,o){1!==t.globalAlpha&&(i.opacity=t.globalAlpha),\"fill\"===e?(t.fillStyle instanceof Pa?i.fill=Da(t,t.fillStyle):(/^rgba\\(/.test(t.fillStyle)&&(e=/^\\s*rgba\\s*\\(([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\)\\s*$/i.exec(t.fillStyle),i.fill=\"rgb(\"+e[1]+\",\"+e[2]+\",\"+e[3]+\")\",i[\"fill-opacity\"]=e[4]),i.fill=t.fillStyle),i.stroke=\"none\"):\"stroke\"===e&&(i.fill=\"none\",t.strokeStyle instanceof Pa?i.stroke=Da(t,t.strokeStyle):(/^rgba\\(/.test(t.strokeStyle)&&(e=/^\\s*rgba\\s*\\(([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\)\\s*$/i.exec(t.strokeStyle),i.stroke=\"rgb(\"+e[1]+\",\"+e[2]+\",\"+e[3]+\")\",i[\"stroke-opacity\"]=e[4]),i.stroke=t.strokeStyle),i[\"stroke-width\"]=t.lineWidth,i[\"stroke-linecap\"]=t.lineCap,i[\"stroke-linejoin\"]=t.lineJoin,i[\"stroke-miterlimit\"]=t.miterLimit),t=n.Oa,t=\"matrix(\"+t[0]+\", \"+t[1]+\", \"+t[2]+\", \"+t[3]+\", \"+t[4]+\", \"+t[5]+\")\",void 0!==o&&(t+=o),i.transform=t}function Da(t,e){var i=\"GRAD\"+ht++;if(\"linear\"===e.type)var n=t.ub(\"linearGradient\",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,id:i,gradientUnits:\"userSpaceOnUse\"});else{if(\"radial\"!==e.type)throw Error(\"invalid gradient\");n=t.ub(\"radialGradient\",{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,r1:e.r1,r2:e.r2,id:i})}var o=e.Yw;e=o.length;for(var r=[],s=0;s<e;s++){var a=o[s],l=a.color;a={offset:a.offset,\"stop-color\":l},/^rgba\\(/.test(l)&&(l=/^\\s*rgba\\s*\\(([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\s*,\\s*([^,\\s]+)\\)\\s*$/i.exec(l),a[\"stop-color\"]=\"rgb(\"+l[1]+\",\"+l[2]+\",\"+l[3]+\")\",a[\"stop-opacity\"]=l[4]),r.push(a)}for(r.sort((function(t,e){return t.offset>e.offset?1:-1})),o=0;o<e;o++)n.appendChild(t.ub(\"stop\",r[o]));return t.svg.appendChild(n),\"url(#\"+i+\")\"}function ja(t,e,i,n,o,r,s){var a=new Na;a.Oa=[e,i,n,o,r,s],e={},Oa(t,\"g\",e,a),a=t.addElement(\"g\",e),t.wc.push(a)}function Aa(t){t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0}function Ba(t){t.shadowOffsetX=t.mp,t.shadowOffsetY=t.np,t.shadowBlur=t.Od}function za(t,e){this.ownerDocument=e=void 0===e?v.document:e,this.Qp=null,e=e.createElement(\"canvas\"),e.tabIndex=0,this.Ga=e,this.Ga.innerHTML=\"This text is displayed if your browser does not support the Canvas HTML element.\",this.context=new Fa(e),e.C=t}function Fa(t){t.getContext&&t.getContext(\"2d\")||k(\"Browser does not support HTML Canvas Element\"),this.W=t.getContext(\"2d\"),this.It=this.Kt=this.Jt=\"\",this.Ym=!1,this.Od=this.np=this.mp=0}Ks.className=\"GraphObject\",Ca=new gt,ka(\"Button\",(function(){function t(t,e){return null!==t.diagram.Sb(t.documentPoint,(function(t){for(;null!==t.panel&&!t.isActionable;)t=t.panel;return t}),(function(t){return t===e}))}var e=wa(Nl,Nl.Auto,{isActionable:!0,enabledChanged:function(t,e){if(t instanceof Nl){var i=t.$a(\"ButtonBorder\");null!==i&&(i.fill=e?t._buttonFillNormal:t._buttonFillDisabled)}},cursor:\"pointer\",_buttonFillNormal:\"#F5F5F5\",_buttonStrokeNormal:\"#BDBDBD\",_buttonFillOver:\"#E0E0E0\",_buttonStrokeOver:\"#9E9E9E\",_buttonFillPressed:\"#BDBDBD\",_buttonStrokePressed:\"#9E9E9E\",_buttonFillDisabled:\"#E5E5E5\"},wa(sh,{name:\"ButtonBorder\",figure:\"RoundedRectangle\",spot1:new Ge(0,0,2.76142374915397,2.761423749153969),spot2:new Ge(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:\"#F5F5F5\",stroke:\"#BDBDBD\"}));return e.mouseEnter=function(t,e){if(e.rg()&&e instanceof Nl&&(t=e.$a(\"ButtonBorder\"),t instanceof sh)){var i=e._buttonFillOver;e._buttonFillNormal=t.fill,t.fill=i,i=e._buttonStrokeOver,e._buttonStrokeNormal=t.stroke,t.stroke=i}},e.mouseLeave=function(t,e){e.rg()&&e instanceof Nl&&(t=e.$a(\"ButtonBorder\"),t instanceof sh&&(t.fill=e._buttonFillNormal,t.stroke=e._buttonStrokeNormal))},e.actionDown=function(t,e){if(e.rg()&&e instanceof Nl&&null!==e._buttonFillPressed&&0===t.button){var i=e.$a(\"ButtonBorder\");if(i instanceof sh){t=t.diagram;var n=t.skipsUndoManager;t.skipsUndoManager=!0;var o=e._buttonFillPressed;e._buttonFillOver=i.fill,i.fill=o,o=e._buttonStrokePressed,e._buttonStrokeOver=i.stroke,i.stroke=o,t.skipsUndoManager=n}}},e.actionUp=function(e,i){if(i.rg()&&i instanceof Nl&&null!==i._buttonFillPressed&&0===e.button){var n=i.$a(\"ButtonBorder\");if(n instanceof sh){var o=e.diagram,r=o.skipsUndoManager;o.skipsUndoManager=!0,t(e,i)?(n.fill=i._buttonFillOver,n.stroke=i._buttonStrokeOver):(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal),o.skipsUndoManager=r}}},e.actionCancel=function(e,i){if(i.rg()&&i instanceof Nl&&null!==i._buttonFillPressed){var n=i.$a(\"ButtonBorder\");if(n instanceof sh){var o=e.diagram,r=o.skipsUndoManager;o.skipsUndoManager=!0,t(e,i)?(n.fill=i._buttonFillOver,n.stroke=i._buttonStrokeOver):(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal),o.skipsUndoManager=r}}},e.actionMove=function(e,i){if(i.rg()&&i instanceof Nl&&null!==i._buttonFillPressed){var n=e.diagram;if(0===n.firstInput.button&&(n.currentTool.standardMouseOver(),t(e,i)&&(e=i.$a(\"ButtonBorder\"),e instanceof sh))){var o=n.skipsUndoManager;n.skipsUndoManager=!0;var r=i._buttonFillPressed;e.fill!==r&&(e.fill=r),r=i._buttonStrokePressed,e.stroke!==r&&(e.stroke=r),n.skipsUndoManager=o}}},e})),ka(\"TreeExpanderButton\",(function(){var t=wa(\"Button\",{_treeExpandedFigure:\"MinusLine\",_treeCollapsedFigure:\"PlusLine\"},wa(sh,{name:\"ButtonIcon\",figure:\"MinusLine\",stroke:\"#424242\",strokeWidth:2,desiredSize:Pt},new vd(\"figure\",\"isTreeExpanded\",(function(t,e){return e=e.panel,t?e._treeExpandedFigure:e._treeCollapsedFigure})).hq()),{visible:!1},new vd(\"visible\",\"isTreeLeaf\",(function(t){return!t})).hq());return t.click=function(t,e){if(e=e.part,e instanceof ju&&(e=e.adornedPart),e instanceof Au){var i=e.diagram;if(null!==i){if(i=i.commandHandler,e.isTreeExpanded){if(!i.canCollapseTree(e))return}else if(!i.canExpandTree(e))return;t.handled=!0,e.isTreeExpanded?i.collapseTree(e):i.expandTree(e)}}},t})),ka(\"SubGraphExpanderButton\",(function(){var t=wa(\"Button\",{_subGraphExpandedFigure:\"MinusLine\",_subGraphCollapsedFigure:\"PlusLine\"},wa(sh,{name:\"ButtonIcon\",figure:\"MinusLine\",stroke:\"#424242\",strokeWidth:2,desiredSize:Pt},new vd(\"figure\",\"isSubGraphExpanded\",(function(t,e){return e=e.panel,t?e._subGraphExpandedFigure:e._subGraphCollapsedFigure})).hq()));return t.click=function(t,e){if(e=e.part,e instanceof ju&&(e=e.adornedPart),e instanceof Ju){var i=e.diagram;if(null!==i){if(i=i.commandHandler,e.isSubGraphExpanded){if(!i.canCollapseSubGraph(e))return}else if(!i.canExpandSubGraph(e))return;t.handled=!0,e.isSubGraphExpanded?i.collapseSubGraph(e):i.expandSubGraph(e)}}},t})),ka(\"ToolTip\",(function(){return wa(ju,Nl.Auto,{isShadowed:!0,shadowColor:\"rgba(0, 0, 0, .4)\",shadowOffset:new mt(0,3),shadowBlur:5},wa(sh,{name:\"Border\",figure:\"RoundedRectangle\",parameter1:1,parameter2:1,fill:\"#F5F5F5\",stroke:\"#F0F0F0\",spot1:new Ge(0,0,4,6),spot2:new Ge(1,1,-4,-4)}))})),ka(\"ContextMenu\",(function(){return wa(ju,Nl.Vertical,{background:\"#F5F5F5\",isShadowed:!0,shadowColor:\"rgba(0, 0, 0, .4)\",shadowOffset:new mt(0,3),shadowBlur:5},new vd(\"background\",\"\",(function(t){return null!==t.adornedPart&&null!==t.placeholder?null:\"#F5F5F5\"})))})),ka(\"ContextMenuButton\",(function(){var t=wa(\"Button\");t.stretch=ns;var e=t.$a(\"ButtonBorder\");return e instanceof sh&&(e.figure=\"Rectangle\",e.strokeWidth=0,e.spot1=new Ge(0,0,2,3),e.spot2=new Ge(1,1,-2,-2)),t})),ka(\"PanelExpanderButton\",(function(t){var e=Ma(t,\"COLLAPSIBLE\"),i=wa(\"Button\",{_buttonExpandedFigure:\"M0 0 M0 6 L4 2 8 6 M8 8\",_buttonCollapsedFigure:\"M0 0 M0 2 L4 6 8 2 M8 8\",_buttonFillNormal:\"rgba(0, 0, 0, 0)\",_buttonStrokeNormal:null,_buttonFillOver:\"rgba(0, 0, 0, .2)\",_buttonStrokeOver:null,_buttonFillPressed:\"rgba(0, 0, 0, .4)\",_buttonStrokePressed:null},wa(sh,{name:\"ButtonIcon\",strokeWidth:2},new vd(\"geometryString\",\"visible\",(function(t){return t?i._buttonExpandedFigure:i._buttonCollapsedFigure})).hq(e)));return t=i.$a(\"ButtonBorder\"),t instanceof sh&&(t.stroke=null,t.fill=\"rgba(0, 0, 0, 0)\"),i.click=function(t,i){if(t=i.diagram,null!==t&&!t.isReadOnly){var n=i.Gi();null===n&&(n=i.part),null!==n&&(i=n.$a(e),null!==i&&(t.Aa(\"Collapse/Expand Panel\"),i.visible=!i.visible,t.Za(\"Collapse/Expand Panel\")))}},i})),ka(\"CheckBoxButton\",(function(t){var e=Ma(t);return t=wa(\"Button\",{desiredSize:new It(14,14)},wa(sh,{name:\"ButtonIcon\",geometryString:\"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2\",strokeWidth:2,stretch:Qr,geometryStretch:es,visible:!1},\"\"!==e?new vd(\"visible\",e).tx():[])),t.click=function(t,i){if(i instanceof Nl){var n=t.diagram;if(!(null===n||n.isReadOnly||\"\"!==e&&n.model.isReadOnly)){t.handled=!0;var o=i.$a(\"ButtonIcon\");n.Aa(\"checkbox\"),o.visible=!o.visible,\"function\"===typeof i._doClick&&i._doClick(t,i),n.Za(\"checkbox\")}}},t})),ka(\"CheckBox\",(function(t){t=Ma(t),t=wa(\"CheckBoxButton\",t,{name:\"Button\",isActionable:!1,margin:new ee(0,1,0,0)});var e=wa(Nl,\"Horizontal\",t,{isActionable:!0,cursor:t.cursor,margin:1,_buttonFillNormal:t._buttonFillNormal,_buttonStrokeNormal:t._buttonStrokeNormal,_buttonFillOver:t._buttonFillOver,_buttonStrokeOver:t._buttonStrokeOver,_buttonFillPressed:t._buttonFillPressed,_buttonStrokePressed:t._buttonStrokePressed,_buttonFillDisabled:t._buttonFillDisabled,mouseEnter:t.mouseEnter,mouseLeave:t.mouseLeave,actionDown:t.actionDown,actionUp:t.actionUp,actionCancel:t.actionCancel,actionMove:t.actionMove,click:t.click,_buttonClick:t.click});return t.mouseEnter=null,t.mouseLeave=null,t.actionDown=null,t.actionUp=null,t.actionCancel=null,t.actionMove=null,t.click=null,e})),Ks.None=ts=new K(Ks,\"None\",0),Ks.Default=is=new K(Ks,\"Default\",0),Ks.Vertical=os=new K(Ks,\"Vertical\",4),Ks.Horizontal=ns=new K(Ks,\"Horizontal\",5),Ks.Fill=Qr=new K(Ks,\"Fill\",3),Ks.Uniform=es=new K(Ks,\"Uniform\",1),Ks.UniformToFill=rs=new K(Ks,\"UniformToFill\",2),Ks.FlipVertical=ss=new K(Ks,\"FlipVertical\",1),Ks.FlipHorizontal=as=new K(Ks,\"FlipHorizontal\",2),Ks.FlipBoth=ls=new K(Ks,\"FlipBoth\",3),Ks.make=wa,Ks.getBuilders=function(){var t,e=new gt;for(t in Ca)if(t!==t.toLowerCase()){var i=Ca.J(t);\"function\"===typeof i&&e.add(t,i)}return e.freeze(),e},Ks.defineBuilder=ka,Ks.takeBuilderArgument=Ma,Sa.prototype.copy=function(){var t=new Sa;return t.Af=this.Af,t.Ff=this.Ff,t.Bf=this.Bf,t.Sf=this.Sf,t.Vf=this.Vf,t.Wf=this.Wf,t.Uf=this.Uf,t.Tf=this.Tf,t.to=this.to,t.uo=this.uo,t.Rf=this.Rf,t.Im=this.Im,t.Jm=this.Jm,t.Km=this.Km,t.Hm=this.Hm,t.gg=this.gg,t.Cf=this.Cf,t.Bn=this.Bn,t},Sa.className=\"GraphObjectEventHandlers\",Na.prototype.copy=function(){var t=new Na;return t.Oa[0]=this.Oa[0],t.Oa[1]=this.Oa[1],t.Oa[2]=this.Oa[2],t.Oa[3]=this.Oa[3],t.Oa[4]=this.Oa[4],t.Oa[5]=this.Oa[5],t},Na.prototype.translate=function(t,e){this.Oa[4]+=this.Oa[0]*t+this.Oa[2]*e,this.Oa[5]+=this.Oa[1]*t+this.Oa[3]*e},Na.prototype.scale=function(t,e){this.Oa[0]*=t,this.Oa[1]*=t,this.Oa[2]*=e,this.Oa[3]*=e},Na.className=\"STransform\",Pa.prototype.addColorStop=function(t,e){this.Yw.push({offset:t,color:e})},Pa.className=\"SGradient\",Ta.prototype.resize=function(t,e,i,n){return(this.width!==t||this.height!==e)&&(this.style.width=i+\"px\",this.style.height=n+\"px\",this.Ga.setAttributeNS(null,\"width\",i+\"px\"),this.Ga.setAttributeNS(null,\"height\",n+\"px\"),this.Ga.setAttributeNS(null,\"viewBox\",\"0 0 \"+i+\" \"+n),this.context.gu.firstElementChild.setAttributeNS(null,\"width\",i+\"px\"),this.context.gu.firstElementChild.setAttributeNS(null,\"height\",n+\"px\"),!0)},Ta.prototype.ub=function(t,e,i){if(t=this.ownerDocument.createElementNS(this.Fz,t),P(e))for(var n in e)t.setAttributeNS(\"href\"===n?\"http://www.w3.org/1999/xlink\":\"\",n,e[n]);return void 0!==i&&(t.textContent=i),t},Ta.prototype.getBoundingClientRect=function(){return this.Ga.getBoundingClientRect()},Ta.prototype.focus=function(){this.Ga.focus()},Ta.prototype.ex=function(){this.ownerDocument=null},p.Object.defineProperties(Ta.prototype,{width:{get:function(){return this.Ga.width.baseVal.value},set:function(t){this.Ga.width=t}},height:{get:function(){return this.Ga.height.baseVal.value},set:function(t){this.Ga.height=t}},style:{get:function(){return this.Ga.style}}}),Ta.className=\"SVGSurface\",i=La.prototype,i.reset=function(){this.stack=[],this.wc=[],this.fillStyle=\"#000000\",this.font=\"10px sans-serif\",this.globalAlpha=1,this.lineCap=\"butt\",this.lineDashOffset=0,this.lineJoin=\"miter\",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor=\"rgba(0, 0, 0, 0)\",this.shadowOffsetY=this.shadowOffsetX=0,this.strokeStyle=\"#000000\",this.textAlign=\"start\",this.clipInsteadOfFill=!1,this.Od=this.np=this.mp=0,this.aq=null,this.path=[],this.Sd=new Na,ja(this,1,0,0,1,0,0);var t=ht++,e=this.ub(\"clipPath\",{id:\"mainClip\"+t});e.appendChild(this.ub(\"rect\",{x:0,y:0,width:this.rk.width,height:this.rk.height})),this.gu=e,this.rk.Ga.appendChild(e),this.wc[0].setAttributeNS(null,\"clip-path\",\"url(#mainClip\"+t+\")\")},i.arc=function(t,e,i,n,o,r,s,a){var l=2*Math.PI,h=l-1e-6,u=i*Math.cos(n),c=i*Math.sin(n),f=t+u,d=e+c,p=r?0:1;n=r?n-o:o-n,(1e-6<Math.abs(s-f)||1e-6<Math.abs(a-d))&&this.path.push([\"L\",f,+d]),0>n&&(n=n%l+l),n>h?(this.path.push([\"A\",i,i,0,1,p,t-u,e-c]),this.path.push([\"A\",i,i,0,1,p,f,d])):1e-6<n&&this.path.push([\"A\",i,i,0,+(n>=Math.PI),p,t+i*Math.cos(o),e+i*Math.sin(o)])},i.beginPath=function(){this.path=[]},i.bezierCurveTo=function(t,e,i,n,o,r){this.path.push([\"C\",t,e,i,n,o,r])},i.clearRect=function(){},i.clip=function(){this.addPath(\"clipPath\",this.path,this.Sd),this.addPath(\"clipPath\",this.path,new Na)},i.closePath=function(){this.path.push([\"z\"])},i.createLinearGradient=function(t,e,i,n){var o=new Pa(\"linear\");return o.x1=t,o.y1=e,o.x2=i,o.y2=n,o},i.createPattern=function(t){var e=\"\";t instanceof HTMLCanvasElement&&(e=t.toDataURL()),t instanceof HTMLImageElement&&(e=t.src);var i=this.Hz;if(i[e])return\"url(#\"+i[e]+\")\";var n=\"PATTERN\"+ht++,o={x:0,y:0,width:t.width,height:t.height,href:e};return t=this.ub(\"pattern\",{width:t.width,height:t.height,id:n,patternUnits:\"userSpaceOnUse\"}),t.appendChild(this.ub(\"image\",o)),this.svg.appendChild(t),i[e]=n,\"url(#\"+n+\")\"},i.createRadialGradient=function(t,e,i,n,o,r){var s=new Pa(\"radial\");return s.x1=t,s.y1=e,s.r1=i,s.x2=n,s.y2=o,s.r2=r,s},i.drawImage=function(t,e,i,n,o,r,s,a,l){var h=\"\";t instanceof HTMLCanvasElement&&(h=t.toDataURL()),t instanceof HTMLImageElement&&(h=t.src);var u=t instanceof HTMLImageElement?t.naturalWidth:t.width,c=t instanceof HTMLImageElement?t.naturalHeight:t.height;void 0===n&&(r=e,s=i,a=n=u,l=o=c),n=n||0,o=o||0,r=r||0,s=s||0,a=a||0,l=l||0,h={x:0,y:0,width:u||n,height:c||o,href:h,preserveAspectRatio:\"xMidYMid slice\"},We.ca(n,a)&&We.ca(o,l)||(h.preserveAspectRatio=\"none\"),t=\"\",a/=n,l/=o,0===r&&0===s||(t+=\" translate(\"+r+\", \"+s+\")\"),1===a&&1===l||(t+=\" scale(\"+a+\", \"+l+\")\"),0===e&&0===i||(t+=\" translate(\"+-e+\", \"+-i+\")\"),0===e&&0===i&&n===u&&o===c||(r=\"CLIP\"+ht++,s=this.ub(\"clipPath\",{id:r}),s.appendChild(this.ub(\"rect\",{x:e,y:i,width:n,height:o})),this.svg.appendChild(s),h[\"clip-path\"]=\"url(#\"+r+\")\"),Oa(this,\"image\",h,this.Sd,t),this.addElement(\"image\",h)},i.fill=function(){this.addPath(\"fill\",this.path,this.Sd)},i.Td=function(){this.clipInsteadOfFill?this.clip():this.fill()},i.fillRect=function(t,e,i,n){t=[t,e,i,n],t={x:t[0],y:t[1],width:t[2],height:t[3]},Oa(this,\"fill\",t,this.Sd),this.addElement(\"rect\",t)},i.fillText=function(t,e,i){t=[t,e,i],e=this.textAlign,\"left\"===e?e=\"start\":\"right\"===e?e=\"end\":\"center\"===e&&(e=\"middle\"),e={x:t[1],y:t[2],style:\"font: \"+this.font,\"text-anchor\":e},Oa(this,\"fill\",e,this.Sd),this.addElement(\"text\",e,t[0])},i.lineTo=function(t,e){this.path.push([\"L\",t,e])},i.moveTo=function(t,e){this.path.push([\"M\",t,e])},i.quadraticCurveTo=function(t,e,i,n){this.path.push([\"Q\",t,e,i,n])},i.rect=function(t,e,i,n){this.path.push([\"M\",t,e],[\"L\",t+i,e],[\"L\",t+i,e+n],[\"L\",t,e+n],[\"z\"])},i.restore=function(){this.Sd=this.stack.pop(),this.path=this.stack.pop();var t=this.stack.pop();this.fillStyle=t.fillStyle,this.font=t.font,this.globalAlpha=t.globalAlpha,this.lineCap=t.lineCap,this.lineDashOffset=t.lineDashOffset,this.lineJoin=t.lineJoin,this.lineWidth=t.lineWidth,this.miterLimit=t.miterLimit,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.shadowOffsetX=t.shadowOffsetX,this.shadowOffsetY=t.shadowOffsetY,this.strokeStyle=t.strokeStyle,this.textAlign=t.textAlign},i.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign});for(var t=[],e=0;e<this.path.length;e++)t.push(this.path[e]);this.stack.push(t),this.stack.push(this.Sd.copy())},i.setTransform=function(t,e,i,n,o,r){1===t&&0===e&&0===i&&1===n&&0===o&&0===r||ja(this,t,e,i,n,o,r)},i.scale=function(t,e){this.Sd.scale(t,e)},i.translate=function(t,e){this.Sd.translate(t,e)},i.transform=function(){},i.stroke=function(){this.addPath(\"stroke\",this.path,this.Sd)},i.Wi=function(){this.clipInsteadOfFill||this.stroke()},i.ub=function(t,e,i){return this.rk.ub(t,e,i)},i.addElement=function(t,e,i){return t=this.ub(t,e,i),0<this.wc.length?this.wc[this.wc.length-1].appendChild(t):this.svg.appendChild(t),this.aq=t},i.addPath=function(t,e,i){for(var n=[],o=0;o<e.length;o++){var r=L(e[o]),s=[r.shift()];if(\"A\"===s[0])s.push(r.shift()+\",\"+r.shift(),r.shift(),r.shift()+\",\"+r.shift(),r.shift()+\",\"+r.shift());else for(;r.length;)s.push(r.shift()+\",\"+r.shift());n.push(s.join(\" \"))}e={d:n.join(\" \")},\"stroke\"===t&&this.cu&&(e[\"stroke-dasharray\"]=this.gh.toString(),e[\"stroke-dashoffset\"]=this.hh),Oa(this,t,e,i),\"clipPath\"===t?(t=\"CLIP\"+ht++,i=this.ub(\"clipPath\",{id:t}),i.appendChild(this.ub(\"path\",e)),this.svg.appendChild(i),0<this.wc.length&&this.wc[this.wc.length-1].setAttributeNS(null,\"clip-path\",\"url(#\"+t+\")\")):this.addElement(\"path\",e)},i.qq=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var t=\"SHADOW\"+ht++,e=this.addElement(\"filter\",{id:t,x:\"-100%\",y:\"-100%\",width:\"300%\",height:\"300%\"},null),i=this.ub(\"feGaussianBlur\",{in:\"SourceAlpha\",result:\"blur\",jA:this.shadowBlur/2}),n=this.ub(\"feFlood\",{in:\"blur\",result:\"flood\",\"flood-color\":this.shadowColor}),o=this.ub(\"feComposite\",{in:\"flood\",in2:\"blur\",operator:\"in\",result:\"comp\"}),r=this.ub(\"feOffset\",{in:\"comp\",result:\"offsetBlur\",dx:this.shadowOffsetX,dy:this.shadowOffsetY}),s=this.ub(\"feMerge\",{});s.appendChild(this.ub(\"feMergeNode\",{in:\"offsetBlur\"})),s.appendChild(this.ub(\"feMergeNode\",{in:\"SourceGraphic\"})),e.appendChild(i),e.appendChild(n),e.appendChild(o),e.appendChild(r),e.appendChild(s),0<this.wc.length&&this.wc[this.wc.length-1].setAttributeNS(null,\"filter\",\"url(#\"+t+\")\")}},i.Nv=function(t,e,i){this.mp=t,this.np=e,this.Od=i},i.Ps=function(t,e){this.cu=!0,this.gh=t,this.hh=e},i.Ns=function(){this.cu=!1},i.Rc=function(){},i.Ix=function(){},La.prototype.rotate=function(){},La.prototype.getImageData=function(){return null},La.prototype.measureText=function(){return null},La.className=\"SVGContext\",Do.prototype.it=function(t){var e=new Ta(this,v.document);void 0===t&&(t=new J);var i=this;return Jr(this,(function(t,n){return t=Zr(i,t,\"SVG\",e),t=null!==t?t.svg:null,\"function\"===typeof n?(n(t),null):t}),t)},Do.prototype.makeSvg=Do.prototype.it,Do.prototype.mv=function(t){return this.it(t)},Do.prototype.makeSVG=Do.prototype.mv,Ks.prototype.gx=function(t,e){if(!(t instanceof La))return!1;if(!this.visible)return!0;var i=null,n=t.aq;if(this instanceof Nl&&(this.type===Nl.TableRow||this.type===Nl.TableColumn))return ea(this,t,e),!0;var o=this.vb;if(0===o.width||0===o.height||isNaN(o.x)||isNaN(o.y))return!0;var r=this.transform,s=this.panel;0!==(4096&this.H)===!0&&na(this);var a=0!==(256&this.H),l=!1;if(this instanceof mh&&(t.font=this.font),a){if(l=s.Zd()?s.naturalBounds:s.actualBounds,null!==this.kd){var h=this.kd,u=h.x,c=h.y,f=h.width;h=h.height}else u=Math.max(o.x,l.x),c=Math.max(o.y,l.y),f=Math.min(o.right,l.right)-u,h=Math.min(o.bottom,l.bottom)-c;if(u>o.width+o.x||o.x>l.width+l.x||c>o.height+o.y||o.y>l.height+l.y)return!0;l=!0,ja(t,1,0,0,1,0,0),t.save(),t.beginPath(),t.rect(u,c,f,h),t.clip()}if(this.sg()&&!this.isVisible())return!0;if(t.Sd.Oa=[1,0,0,1,0,0],this instanceof mh&&1<this.lineCount&&ja(t,1,0,0,1,0,0),u=!1,this.sg()&&this.isShadowed&&e.De(\"drawShadows\")&&(c=this.si,t.Nv(c.x*e.scale*e.Nb,c.y*e.scale*e.Nb,this.Od),Ba(t),t.shadowColor=this.Ij),c=!1,this.part&&e.De(\"drawShadows\")&&(c=this.part.isShadowed),!0===this.shadowVisible?(Ba(t),!1===u&&c&&(ja(t,1,0,0,1,0,0),t.qq(),u=!0)):!1===this.shadowVisible&&Aa(t),f=this.naturalBounds,null!==this.areaBackground&&(ia(this,t,this.areaBackground,!0,!0,f,o),!1===u&&c&&(ja(t,1,0,0,1,0,0),t.qq(),u=!0),this.areaBackground instanceof Ra&&this.areaBackground.type===Qa?(t.beginPath(),t.rect(o.x,o.y,o.width,o.height),t.Td(this.areaBackground)):t.fillRect(o.x,o.y,o.width,o.height)),this instanceof Nl?ja(t,r.m11,r.m12,r.m21,r.m22,r.dx,r.dy):t.Sd.Oa=[r.m11,r.m12,r.m21,r.m22,r.dx,r.dy],null!==this.background){!1===u&&c&&(ja(t,1,0,0,1,0,0),t.qq(),u=!0);var d=this.naturalBounds;h=r=0;var p=d.width;d=d.height;var g=0;this instanceof sh&&(d=this.geometry.bounds,r=d.x,h=d.y,p=d.width,d=d.height,g=this.strokeWidth),ia(this,t,this.background,!0,!1,f,o),this.background instanceof Ra&&this.background.type===Qa?(t.beginPath(),t.rect(r-g/2,h-g/2,p+g,d+g),t.Td(this.background)):t.fillRect(r-g/2,h-g/2,p+g,d+g)}return c&&(null!==this.background||null!==this.areaBackground||null!==s&&0!==(512&s.H)||null!==s&&(s.type===Nl.Auto||s.type===Nl.Spot)&&s.zb()!==this)?(ha(this,!0),null===this.shadowVisible&&Aa(t)):ha(this,!1),this.Ci(t,e),c&&0!==(512&this.H)===!0&&Ba(t),this.sg()&&c&&Aa(t),a&&(t.restore(),l&&t.wc.pop()),this instanceof Nl&&(i=t.wc.pop()),!0===u&&t.wc.pop(),this instanceof mh&&1<this.lineCount&&(i=t.wc.pop()),null!==t.rk.Qp&&(null===i&&(n===t.aq?(ja(t,1,0,0,1,0,0),i=t.wc.pop()):i=t.aq),t.rk.Qp(this,i)),this.svg=i,!0},za.prototype.resize=function(t,e,i,n){return(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.style.width=i+\"px\",this.style.height=n+\"px\",!0)},za.prototype.toDataURL=function(t,e){return this.Ga.toDataURL(t,e)},za.prototype.getBoundingClientRect=function(){return this.Ga.getBoundingClientRect()},za.prototype.focus=function(){this.Ga.focus()},za.prototype.ex=function(){this.ownerDocument=this.Ga.C=null},p.Object.defineProperties(za.prototype,{width:{get:function(){return this.Ga.width},set:function(t){this.Ga.width=t}},height:{get:function(){return this.Ga.height},set:function(t){this.Ga.height=t}},style:{get:function(){return this.Ga.style}}}),za.className=\"CanvasSurface\",i=Fa.prototype,i.Ix=function(t){this.W.imageSmoothingEnabled=t},i.arc=function(t,e,i,n,o,r){this.W.arc(t,e,i,n,o,r)},i.beginPath=function(){this.W.beginPath()},i.bezierCurveTo=function(t,e,i,n,o,r){this.W.bezierCurveTo(t,e,i,n,o,r)},i.clearRect=function(t,e,i,n){this.W.clearRect(t,e,i,n)},i.clip=function(){this.W.clip()},i.closePath=function(){this.W.closePath()},i.createLinearGradient=function(t,e,i,n){return this.W.createLinearGradient(t,e,i,n)},i.createPattern=function(t,e){return this.W.createPattern(t,e)},i.createRadialGradient=function(t,e,i,n,o,r){return this.W.createRadialGradient(t,e,i,n,o,r)},i.drawImage=function(t,e,i,n,o,r,s,a,l){void 0===n?this.W.drawImage(t,e,i):this.W.drawImage(t,e,i,n,o,r,s,a,l)},i.fill=function(){this.W.fill()},i.fillRect=function(t,e,i,n){this.W.fillRect(t,e,i,n)},i.fillText=function(t,e,i){this.W.fillText(t,e,i)},i.getImageData=function(t,e,i,n){return this.W.getImageData(t,e,i,n)},i.lineTo=function(t,e){this.W.lineTo(t,e)},i.measureText=function(t){return this.W.measureText(t)},i.moveTo=function(t,e){this.W.moveTo(t,e)},i.quadraticCurveTo=function(t,e,i,n){this.W.quadraticCurveTo(t,e,i,n)},i.rect=function(t,e,i,n){this.W.rect(t,e,i,n)},i.restore=function(){this.W.restore()},Fa.prototype.rotate=function(t){this.W.rotate(t)},i=Fa.prototype,i.save=function(){this.W.save()},i.setTransform=function(t,e,i,n,o,r){this.W.setTransform(t,e,i,n,o,r)},i.scale=function(t,e){this.W.scale(t,e)},i.stroke=function(){this.W.stroke()},i.transform=function(t,e,i,n,o,r){1===t&&0===e&&0===i&&1===n&&0===o&&0===r||this.W.transform(t,e,i,n,o,r)},i.translate=function(t,e){this.W.translate(t,e)},i.Td=function(t){if(t instanceof Ra&&t.type===Qa){var e=t.Gk;t=t.Lt,t>e?(this.scale(e/t,1),this.translate((t-e)/2,0)):e>t&&(this.scale(1,t/e),this.translate(0,(e-t)/2)),this.Ym?this.clip():this.fill(),t>e?(this.translate(-(t-e)/2,0),this.scale(1/(e/t),1)):e>t&&(this.translate(0,-(e-t)/2),this.scale(1,1/(t/e)))}else this.Ym?this.clip():this.fill()},i.Wi=function(){this.Ym||this.stroke()},i.Nv=function(t,e,i){this.mp=t,this.np=e,this.Od=i},i.Ps=function(t,e){var i=this.W;void 0!==i.setLineDash&&(i.setLineDash(t),i.lineDashOffset=e)},i.Ns=function(){var t=this.W;void 0!==t.setLineDash&&(t.setLineDash(Ia),t.lineDashOffset=0)},i.Rc=function(t){t&&(this.Jt=\"\"),this.It=this.Kt=\"\"},p.Object.defineProperties(Fa.prototype,{fillStyle:{get:function(){return this.W.fillStyle},set:function(t){this.It!==t&&(this.It=this.W.fillStyle=t)}},font:{get:function(){return this.W.font},set:function(t){this.Jt!==t&&(this.Jt=this.W.font=t)}},globalAlpha:{get:function(){return this.W.globalAlpha},set:function(t){this.W.globalAlpha=t}},lineCap:{get:function(){return this.W.lineCap},set:function(t){this.W.lineCap=t}},lineDashOffset:{get:function(){return this.W.lineDashOffset},set:function(t){this.W.lineDashOffset=t}},lineJoin:{get:function(){return this.W.lineJoin},set:function(t){this.W.lineJoin=t}},lineWidth:{get:function(){return this.W.lineWidth},set:function(t){this.W.lineWidth=t}},miterLimit:{get:function(){return this.W.miterLimit},set:function(t){this.W.miterLimit=t}},shadowBlur:{get:function(){return this.W.shadowBlur},set:function(t){this.W.shadowBlur=t}},shadowColor:{get:function(){return this.W.shadowColor},set:function(t){this.W.shadowColor=t}},shadowOffsetX:{get:function(){return this.W.shadowOffsetX},set:function(t){this.W.shadowOffsetX=t}},shadowOffsetY:{get:function(){return this.W.shadowOffsetY},set:function(t){this.W.shadowOffsetY=t}},strokeStyle:{get:function(){return this.W.strokeStyle},set:function(t){this.Kt!==t&&(this.Kt=this.W.strokeStyle=t)}},textAlign:{get:function(){return this.W.textAlign},set:function(t){this.W.textAlign=t}},imageSmoothingEnabled:{get:function(){return this.W.imageSmoothingEnabled},set:function(t){this.W.imageSmoothingEnabled=t}},clipInsteadOfFill:{get:function(){return this.Ym},set:function(t){this.Ym=t}}});var Ia=Object.freeze([]);function Ea(){this.ba=this.u=this.K=this.l=0}function Ra(t){cl||(Wa(),cl=!0),st(this),this.v=!1,void 0===t?(this.va=Ja,this.Fk=\"black\"):\"string\"===typeof t?(this.va=Ja,this.Fk=t):(this.va=t,this.Fk=\"black\"),t=this.va,t===Za?(this.Gl=ue,this.Tk=me):this.Tk=this.Gl=t===Qa?de:le,this.ys=0,this.fr=NaN,this.ce=this.fs=this.be=null,this.Lt=this.Gk=0}function Va(t,e,i){return e=void 0===e||\"number\"!==typeof e?.2:e,i=void 0===i?el:i,Ga(t),qa(e,i)}function _a(t,e,i){return e=void 0===e||\"number\"!==typeof e?.2:e,i=void 0===i?el:i,Ga(t),qa(-e,i)}function Ha(t,e,i){Ga(t),t=al.l;var n=al.K,o=al.u,r=al.ba;return Ga(e),void 0===i&&(i=.5),\"rgba(\"+Math.round((al.l-t)*i+t)+\", \"+Math.round((al.K-n)*i+n)+\", \"+Math.round((al.u-o)*i+o)+\", \"+Math.round((al.ba-r)*i+r)+\")\"}function Ya(t){return null===t?null:t instanceof Ra?t.px():(Ga(t),128>(299*al.l+587*al.K+114*al.u)/1e3)}function qa(t,e){switch(e){case el:var i=100*Xa(al.l);e=100*Xa(al.K);var n=100*Xa(al.u);return hl.l=.4124564*i+.3575761*e+.1804375*n,hl.K=.2126729*i+.7151522*e+.072175*n,hl.u=.0193339*i+.119192*e+.9503041*n,hl.ba=al.ba,i=Ka(hl.l/rl[0]),e=Ka(hl.K/rl[1]),n=Ka(hl.u/rl[2]),ul.l=116*e-16,ul.K=500*(i-e),ul.u=200*(e-n),ul.ba=hl.ba,ul.l=Math.min(100,Math.max(0,ul.l+100*t)),t=(ul.l+16)/116,i=t-ul.u/200,hl.l=rl[0]*$a(ul.K/500+t),hl.K=rl[1]*(ul.l>ol*nl?Math.pow(t,3):ul.l/ol),hl.u=rl[2]*$a(i),hl.ba=ul.ba,t=-.969266*hl.l+1.8760108*hl.K+.041556*hl.u,i=.0556434*hl.l+-.2040259*hl.K+1.0572252*hl.u,al.l=255*Ua((3.2404542*hl.l+-1.5371385*hl.K+-.4985314*hl.u)/100),al.K=255*Ua(t/100),al.u=255*Ua(i/100),al.ba=hl.ba,al.l=Math.round(al.l),255<al.l?al.l=255:0>al.l&&(al.l=0),al.K=Math.round(al.K),255<al.K?al.K=255:0>al.K&&(al.K=0),al.u=Math.round(al.u),255<al.u?al.u=255:0>al.u&&(al.u=0),\"rgba(\"+al.l+\", \"+al.K+\", \"+al.u+\", \"+al.ba+\")\";case il:e=al.l/255,n=al.K/255;var o=al.u/255,r=Math.max(e,n,o),s=Math.min(e,n,o),a=r-s;if(s=(r+s)/2,0===a)i=e=0;else{switch(r){case e:i=(n-o)/a%6;break;case n:i=(o-e)/a+2;break;case o:i=(e-n)/a+4}i*=60,0>i&&(i+=360),e=a/(1-Math.abs(2*s-1))}return ll.l=Math.round(i),ll.K=Math.round(100*e),ll.u=Math.round(100*s),ll.ba=al.ba,ll.u=Math.min(100,Math.max(0,ll.u+100*t)),\"hsla(\"+ll.l+\", \"+ll.K+\"%, \"+ll.u+\"%, \"+ll.ba+\")\";default:return k(\"Unknown color space: \"+e),\"rgba(0, 0, 0, 1)\"}}function Ga(t){cl||(Wa(),cl=!0);var e=sl;if(null!==e){e.clearRect(0,0,1,1),e.fillStyle=\"#000000\";var i=e.fillStyle;e.fillStyle=t,e.fillStyle!==i?(e.fillRect(0,0,1,1),t=e.getImageData(0,0,1,1).data,al.l=t[0],al.K=t[1],al.u=t[2],al.ba=t[3]/255):(e.fillStyle=\"#FFFFFF\",e.fillStyle=t,al.l=0,al.K=0,al.u=0,al.ba=1)}}function Xa(t){return t/=255,.04045>=t?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ua(t){return.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function Ka(t){return t>nl?Math.pow(t,1/3):(ol*t+16)/116}function $a(t){var e=t*t*t;return e>nl?e:(116*t-16)/ol}function Wa(){sl=ds?new za(null).context:null}Fa.className=\"CanvasSurfaceContext\",Ea.className=\"ColorNumbers\",Ra.prototype.copy=function(){var t=new Ra;return t.va=this.va,t.Fk=this.Fk,t.Gl=this.Gl.I(),t.Tk=this.Tk.I(),t.ys=this.ys,t.fr=this.fr,null!==this.be&&(t.be=this.be.copy()),t.fs=this.fs,t},i=Ra.prototype,i.freeze=function(){return this.v=!0,null!==this.be&&this.be.freeze(),this},i.ha=function(){return Object.isFrozen(this)&&k(\"cannot thaw constant: \"+this),this.v=!1,null!==this.be&&this.be.ha(),this},i.fb=function(t){t.classType===Ra&&(this.type=t)},i.toString=function(){var t=\"Brush(\";if(this.type===Ja)t+=this.color;else if(t=this.type===Za?t+\"Linear \":this.type===Qa?t+\"Radial \":this.type===tl?t+\"Pattern \":t+\"(unknown) \",t+=this.start+\" \"+this.end,null!==this.colorStops)for(var e=this.colorStops.iterator;e.next();)t+=\" \"+e.key+\":\"+e.value;return t+\")\"},i.addColorStop=function(t,e){return this.v&&M(this),(\"number\"!==typeof t||!isFinite(t)||1<t||0>t)&&C(t,\"0 <= loc <= 1\",Ra,\"addColorStop:loc\"),null===this.be&&(this.be=new gt),this.be.add(t,e),this.va===Ja&&(this.type=Za),this.ce=null,this},i.zz=function(t,e){if(this.v&&M(this),t=void 0===t||\"number\"!==typeof t?.2:t,e=void 0===e?el:e,this.type===Ja)Ga(this.color),this.color=qa(t,e);else if((this.type===Za||this.type===Qa)&&null!==this.colorStops)for(var i=this.colorStops.iterator;i.next();)Ga(i.value),this.addColorStop(i.key,qa(t,e));return this},i.zy=function(t,e){if(this.v&&M(this),t=void 0===t||\"number\"!==typeof t?.2:t,e=void 0===e?el:e,this.type===Ja)Ga(this.color),this.color=qa(-t,e);else if((this.type===Za||this.type===Qa)&&null!==this.colorStops)for(var i=this.colorStops.iterator;i.next();)Ga(i.value),this.addColorStop(i.key,qa(-t,e));return this},i.px=function(){if(this.type===Ja)return Ya(this.color);if((this.type===Za||this.type===Qa)&&null!==this.colorStops){var t=this.colorStops;if(this.type===Qa)return Ya(t.first().value);if(null!==t.get(.5))return Ya(t.get(.5));if(2===t.count)return t=t.Na(),Ya(Ha(t[0].value,t[1].value));for(var e=t.iterator,i=-1,n=-1,o=1,r=1;e.next();){var s=e.key,a=Math.abs(.5-e.key);o>r&&a<o?(i=s,o=a):r>=o&&a<r&&(n=s,r=a)}return i>n&&(i=[n,n=i][0]),e=n-i,Ya(Ha(t.get(i),t.get(n),1-o/e))}return!1},p.Object.defineProperties(Ra.prototype,{type:{get:function(){return this.va},set:function(t){this.v&&M(this,t),this.va=t,this.start.jc()&&(t===Za?this.start=ue:t===Qa&&(this.start=de)),this.end.jc()&&(t===Za?this.end=me:t===Qa&&(this.end=de)),this.ce=null}},color:{get:function(){return this.Fk},set:function(t){this.v&&M(this,t),this.Fk=t,this.ce=null}},start:{get:function(){return this.Gl},set:function(t){this.v&&M(this,t),this.Gl=t.I(),this.ce=null}},end:{get:function(){return this.Tk},set:function(t){this.v&&M(this,t),this.Tk=t.I(),this.ce=null}},startRadius:{get:function(){return this.ys},set:function(t){this.v&&M(this,t),0>t&&C(t,\">= zero\",Ra,\"startRadius\"),this.ys=t,this.ce=null}},endRadius:{get:function(){return this.fr},set:function(t){this.v&&M(this,t),0>t&&C(t,\">= zero\",Ra,\"endRadius\"),this.fr=t,this.ce=null}},colorStops:{get:function(){return this.be},set:function(t){this.v&&M(this,t),this.be=t,this.ce=null}},pattern:{get:function(){return this.fs},set:function(t){this.v&&M(this,t),this.fs=t,this.ce=null}}}),Ra.prototype.isDark=Ra.prototype.px,Ra.prototype.darkenBy=Ra.prototype.zy,Ra.prototype.lightenBy=Ra.prototype.zz,Ra.prototype.addColorStop=Ra.prototype.addColorStop;var Ja,Za,Qa,tl,el,il,nl=216/24389,ol=24389/27,rl=[95.047,100,108.883],sl=null,al=new Ea,ll=new Ea,hl=new Ea,ul=new Ea,cl=!1;function fl(){this.name=\"Base\"}function dl(){this.name=\"Base\",this.name=\"Position\"}function pl(){this.name=\"Base\",this.name=\"Horizontal\"}function gl(){this.name=\"Base\",this.name=\"Vertical\"}function ml(){this.name=\"Base\",this.name=\"Spot\"}function vl(){this.name=\"Base\",this.name=\"Auto\"}function yl(){this.name=\"Base\",this.name=\"Table\"}function bl(){this.name=\"Base\",this.name=\"TableRow\"}function wl(){this.name=\"Base\",this.name=\"TableColumn\"}function xl(){this.name=\"Base\",this.name=\"Viewbox\"}function kl(){this.name=\"Base\",this.name=\"Grid\"}function Ml(){this.name=\"Base\",this.name=\"Link\"}function Cl(t,e,i,n){if(!1!==pa(n)){var o=n.strokeWidth;0===o&&t instanceof ju&&t.type===Nl.Link&&t.adornedObject instanceof sh&&(o=t.adornedObject.strokeWidth),o*=n.Ca,t instanceof nc&&null!==t.qa?(t=t.qa.bounds,Zs(n,t.x-o/2,t.y-o/2,t.width+o,t.height+o)):t instanceof ju&&null!==t.adornedPart.qa?(t=t.adornedPart.qa.bounds,Zs(n,t.x-o/2,t.y-o/2,t.width+o,t.height+o)):Zs(n,-o/2,-o/2,e+o,i+o),ga(n,!1)}}function Sl(){this.name=\"Base\",this.name=\"Graduated\"}function Nl(t){Ks.call(this),this.va=void 0===t?Nl.Position:t,null===this.va&&k(\"Panel type not specified or PanelLayout not loaded: \"+t),this.Y=new nt,this.eb=oe,this.va===Nl.Grid&&(this.isAtomic=!0),this.nn=Ae,this.Df=is,this.va===Nl.Table&&Pl(this),this.Fp=es,this.Ln=Tt,this.Mn=Dt,this.In=0,this.Hn=100,this.Kn=10,this.Jn=0,this.Qh=this.jb=this.Mg=this.hj=this.jj=null,this.Zn=NaN,this.je=this.ei=null,this.gl=\"category\",this.Ed=null,this.hg=new _t(NaN,NaN,NaN,NaN),this.kh=this.cp=this.ti=null,this.yg=\"\"}function Pl(t){t.dj=oe,t.Gg=1,t.Vh=null,t.Uh=null,t.Fg=1,t.Eg=null,t.Th=null,t.sb=[],t.nb=[],t.Fj=rh,t.bj=rh,t.wi=0,t.gi=0}function Tl(t,e,i,n){for(var o=n.length,r=t.actualBounds,s=t.naturalBounds,a=!0,l=0;l<o;l++){var h=n[l];if(void 0!==h)if(a)a=!1;else if(0!==h.actual){if(i){if(h.position>r.height)continue}else if(h.position>r.width)continue;var u=h.separatorStrokeWidth;isNaN(u)&&(u=i?t.Gg:t.Fg);var c=h.separatorStroke;if(null===c&&(c=i?t.Vh:t.Eg),0!==u&&null!==c){ia(t,e,c,!1,!1,s,r),c=!1;var f=h.separatorDashArray;null===f&&(f=i?t.Uh:t.Th),null!==f&&(c=!0,e.Ps(f,0)),e.beginPath(),f=h.position+u,i?f>r.height&&(u-=f-r.height):f>r.width&&(u-=f-r.width),h=h.position+u/2,e.lineWidth=u,u=t.eb,i?(h+=u.top,f=r.width-u.right,e.moveTo(u.left,h),e.lineTo(f,h)):(h+=u.left,f=r.height-u.bottom,e.moveTo(h,u.top),e.lineTo(h,f)),e.stroke(),c&&e.Ns()}}}}function Ll(t,e,i,n,o){for(var r=n.length,s=t.actualBounds,a=t.naturalBounds,l=0;l<r;l++){var h=n[l];if(void 0!==h&&null!==h.background&&h.coversSeparators!==o&&0!==h.actual){var u=i?s.height:s.width;if(!(h.position>u)){var c=h.tc(),f=h.separatorStrokeWidth;isNaN(f)&&(f=i?t.Gg:t.Fg);var d=h.separatorStroke;null===d&&(d=i?t.Vh:t.Eg),null===d&&(f=0),c-=f,f=h.position+f,c+=h.actual,f+c>u&&(c=u-f),0>=c||(u=t.eb,ia(t,e,h.background,!0,!1,a,s),i?e.fillRect(u.left,f+u.top,s.width-(u.left+u.right),c):e.fillRect(f+u.left,u.top,c,s.height-(u.top+u.bottom)))}}}}function Ol(t,e,i){if(0!==t%e)return!1;e=i.length;for(var n=0;n<e;n++)if(0===t%i[n])return!1;return!0}function Dl(t){return\"LineV\"===t||\"BarV\"===t}function jl(t){return null!==t.part?t.part.locationObject:null}function Al(t,e){Bl(t,t,e)}function Bl(t,e,i){i(e),e=e.Y.j;for(var n=e.length,o=0;o<n;o++){var r=e[o];r instanceof Nl&&Bl(t,r,i)}}function zl(t,e){Fl(t,t,e)}function Fl(t,e,i){if(i(e),e instanceof Nl){e=e.Y.j;for(var n=e.length,o=0;o<n;o++)Fl(t,e[o],i)}}function Il(t,e,i){if(i(e))return e;if(e instanceof Nl){e=e.Y.j;for(var n=e.length,o=0;o<n;o++){var r=Il(t,e[o],i);if(null!==r)return r}}return null}function El(t){t=t.Y.j;for(var e=t.length,i=0,n=0;n<e;n++){var o=t[n];if(o instanceof Nl)i=Math.max(i,El(o));else if(o instanceof sh){t:{switch(o.Vk){case\"None\":case\"Square\":case\"Ellipse\":case\"Circle\":case\"LineH\":case\"LineV\":case\"FramedRectangle\":case\"RoundedRectangle\":case\"Line1\":case\"Line2\":case\"Border\":case\"Cube1\":case\"Cube2\":case\"Junction\":case\"Cylinder1\":case\"Cylinder2\":case\"Cylinder3\":case\"Cylinder4\":case\"PlusLine\":case\"XLine\":case\"ThinCross\":case\"ThickCross\":o=0;break t}o=o.ih/2*o.Jj*o.Ce()}i=Math.max(i,o)}}return i}function Rl(t,e,i,n){for(var o=t.Y.j,r=o.length;r--;){var s=o[r];if(s.visible){var a=s.actualBounds,l=t.naturalBounds;a.x>l.width||a.y>l.height||0>a.x+a.width||0>a.y+a.height||(s instanceof Nl&&Rl(s,e,i,n),null!==e&&(s=e(s)),null===s||null!==i&&!i(s)||n.add(s))}}}function Vl(t){var e=null;return t instanceof sh&&(e=t.spot1,e===Ae&&(e=null),t=t.geometry,null!==t&&null===e&&(e=t.spot1)),null===e&&(e=he),e}function _l(t){var e=null;return t instanceof sh&&(e=t.spot2,e===Ae&&(e=null),t=t.geometry,null!==t&&null===e&&(e=t.spot2)),null===e&&(e=ve),e}function Hl(t,e){t.H=e?16777216|t.H:-16777217&t.H}function Yl(t){return t=t.Qh,null!==t&&t.v}function ql(t){var e=t.Qh;if(null===e)null!==t.data&&k(\"Template cannot have .data be non-null: \"+t),t.Qh=e=new nt;else if(e.v)return;var i=new nt;Hl(t,!1),t.ym(t,(function(t,n){var o=n.bb;if(null!==o)for(ca(n,!1),o=o.iterator;o.next();){var r=o.value;r.mode===wd&&ca(n,!0);var s=r.sourceName;null!==s&&(\"/\"===s&&Hl(t,!0),s=yd(r,t,n),null!==s&&(i.add(s),null===s.Fl&&(s.Fl=new nt),s.Fl.add(r))),e.add(r)}if(n instanceof Nl&&n.type===Nl.Table){if(0<n.sb.length)for(t=n.sb,o=t.length,r=0;r<o;r++)if(s=t[r],void 0!==s&&null!==s.bb)for(var a=s.bb.iterator;a.next();){var l=a.value;l.Qd=s,l.wp=2,l.Nl=s.index,e.add(l)}if(0<n.nb.length)for(n=n.nb,t=n.length,o=0;o<t;o++)if(r=n[o],void 0!==r&&null!==r.bb)for(s=r.bb.iterator;s.next();)a=s.value,a.Qd=r,a.wp=1,a.Nl=r.index,e.add(a)}}));for(var n=i.iterator;n.next();){var o=n.value;if(null!==o.Fl){ca(o,!0);for(var r=o.Fl.iterator;r.next();){var s=r.value;null===o.bb&&(o.bb=new nt),o.bb.add(s)}}o.Fl=null}for(n=e.iterator;n.next();)if(o=n.value,r=o.Qd,null!==r){o.Qd=null;var a=o.targetProperty,l=a.indexOf(\".\");0<l&&r instanceof Nl&&(s=a.substring(0,l),a=a.substr(l+1),l=r.$a(s),null!==l?(r=l,o.targetProperty=a):S('Warning: unable to find GraphObject named \"'+s+'\" for Binding: '+o.toString())),r instanceof eh?(s=lt(r.panel),o.Xi=void 0===s?-1:s,r.panel.Dk=o.Xi):r instanceof Ks?(s=lt(r),o.Xi=void 0===s?-1:s,r.Dk=o.Xi):k(\"Unknown type of binding target: \"+r)}e.freeze(),t instanceof lu&&t.Lb()&&t.ac()}function Gl(t,e){t=t.Y.j;for(var i=t.length,n=e.length,o=0,r=null;o<i&&(r=t[o],!(r instanceof Nl&&null!==r.data));)o++,r=t[o];if(i-o!==n)return!0;if(null===r)return 0<n;for(var s=0;o<i&&s<n;){if(r=t[o],!(r instanceof Nl)||r.data!==e[s])return!0;o++,s++}return!1}function Xl(t){if(t.type===Nl.Spot||t.type===Nl.Auto)return Math.min(t.Y.length,1);if(t.type===Nl.Link){t=t.Y;for(var e=t.length,i=0;i<e;i++){var n=t.N(i);if(!(n instanceof sh&&n.isPanelMain))break}return i}return t.type===Nl.Table&&0<t.Y.length&&(t=t.Y.N(0),t.isPanelMain&&t instanceof Nl&&(t.type===Nl.TableRow||t.type===Nl.TableColumn))?1:0}function Ul(t,e,i){if(!(void 0===e||null===e||0>i)){var o=$l(t,e),r=t.itemTemplateMap,s=null;null!==r&&(s=r.J(o)),null===s&&(Zl||(Zl=!0,S('No item template Panel found for category \"'+o+'\" on '+t),S(\" Using default item template.\"),o=new Nl,r=new mh,r.bind(new vd(\"text\",\"\",z)),o.add(r),Ql=o),s=Ql),o=s,null!==o&&(ql(o),o=o.copy(),0!==(16777216&o.H)&&(r=t.Gi(),null!==r&&Hl(r,!0)),\"object\"===n(e)&&(null===t.Ed&&(t.Ed=new gt),t.Ed.add(e,o)),r=i+Xl(t),t.Ib(r,o),o.jb=e,Kl(t,r,i),o.jb=null,o.data=e)}}function Kl(t,e,i){for(t=t.Y;e<t.length;){var n=t.N(e);if(n instanceof Nl){var o=e,r=i;n.type===Nl.TableRow?n.row=o:n.type===Nl.TableColumn&&(n.column=o),n.itemIndex=r}e++,i++}}function $l(t,e){if(null===e)return\"\";if(t=t.gl,\"function\"===typeof t)t=t(e);else{if(\"string\"!==typeof t||\"object\"!==n(e))return\"\";if(\"\"===t)return\"\";t=dd(e,t)}return void 0===t?\"\":\"string\"===typeof t?t:(k(\"Panel.getCategoryForItemData found a non-string category for \"+e+\": \"+t),\"\")}function Wl(t,e,i){var n=e.enabledChanged;if(null!==n&&n(e,i),e instanceof Nl){e=e.Y.j,n=e.length;for(var o=0;o<n;o++){var r=e[o];i&&r instanceof Nl&&!r.isEnabled||Wl(t,r,i)}}}function Jl(t,e){th.add(t,e)}Ra.className=\"Brush\",Ra.Solid=Ja=new K(Ra,\"Solid\",0),Ra.Linear=Za=new K(Ra,\"Linear\",1),Ra.Radial=Qa=new K(Ra,\"Radial\",2),Ra.Pattern=tl=new K(Ra,\"Pattern\",4),Ra.Lab=el=new K(Ra,\"Lab\",5),Ra.HSL=il=new K(Ra,\"HSL\",6),Ra.randomColor=function(t,e){void 0===t&&(t=128),void 0===e&&(e=Math.max(t,255));var i=Math.abs(e-t);e=Math.floor(t+Math.random()*i).toString(16);var n=Math.floor(t+Math.random()*i).toString(16);return t=Math.floor(t+Math.random()*i).toString(16),2>e.length&&(e=\"0\"+e),2>n.length&&(n=\"0\"+n),2>t.length&&(t=\"0\"+t),\"#\"+e+n+t},Ra.isValidColor=function(t){if(\"black\"===t)return!0;if(\"\"===t)return!1;cl||(Wa(),cl=!0);var e=sl;if(null===e)return!0;e.fillStyle=\"#000000\";var i=e.fillStyle;return e.fillStyle=t,e.fillStyle!==i||(e.fillStyle=\"#FFFFFF\",i=e.fillStyle,e.fillStyle=t,e.fillStyle!==i)},Ra.lighten=function(t){return Va(t)},Ra.lightenBy=Va,Ra.darken=function(t){return _a(t)},Ra.darkenBy=_a,Ra.mix=Ha,Ra.isDark=Ya,fl.prototype.measure=function(){},fl.prototype.Cz=function(t,e,i,n,o){t.measure(e,i,n,o)},fl.prototype.arrange=function(){},fl.prototype.oy=function(t,e,i,n,o,r){t.arrange(e,i,n,o,r)},p.Object.defineProperties(fl.prototype,{classType:{get:function(){return Nl}}}),fl.prototype.arrangeElement=fl.prototype.oy,fl.prototype.measureElement=fl.prototype.Cz,fl.className=\"PanelLayout\",d(dl,fl),dl.prototype.measure=function(t,e,i,n,o,r,s){var a=n.length;t=jl(t);for(var l=0;l<a;l++){var h=n[l];if(h.visible||h===t){var u=h.margin,c=u.right+u.left;u=u.top+u.bottom,h.measure(e,i,r,s);var f=h.measuredBounds;c=Math.max(f.width+c,0),u=Math.max(f.height+u,0),f=h.position.x;var d=h.position.y;isFinite(f)||(f=0),isFinite(d)||(d=0),h instanceof sh&&h.isGeometryPositioned&&(h=h.strokeWidth/2,f-=h,d-=h),$t(o,f,d,c,u)}}},dl.prototype.arrange=function(t,e,i){var n=e.length,o=t.padding;for(t=i.x-o.left,i=i.y-o.top,o=0;o<n;o++){var r=e[o],s=r.measuredBounds,a=r.margin,l=r.position.x,h=r.position.y;if(l=isNaN(l)?-t:l-t,h=isNaN(h)?-i:h-i,r instanceof sh&&r.isGeometryPositioned){var u=r.strokeWidth/2;l-=u,h-=u}r.visible&&r.arrange(l+a.left,h+a.top,s.width,s.height)}},d(pl,fl),pl.prototype.measure=function(t,e,i,n,o,r,s){var a=n.length;e=j(),r=jl(t);for(var l=0;l<a;l++){var h=n[l];if(h.visible||h===r){var u=sa(h,!1);if(u!==ts&&u!==ns)e.push(h);else{h.measure(1/0,i,0,s),u=h.margin,h=h.measuredBounds;var c=Math.max(h.height+u.top+u.bottom,0);o.width+=Math.max(h.width+u.right+u.left,0),o.height=Math.max(o.height,c)}}}for(n=e.length,t.desiredSize.height?i=Math.min(t.desiredSize.height,t.maxSize.height):0!==o.height&&(i=Math.min(o.height,t.maxSize.height)),t=0;t<n;t++)l=e[t],(l.visible||l===r)&&(u=l.margin,a=u.right+u.left,u=u.top+u.bottom,l.measure(1/0,i,0,s),l=l.measuredBounds,u=Math.max(l.height+u,0),o.width+=Math.max(l.width+a,0),o.height=Math.max(o.height,u));A(e)},pl.prototype.arrange=function(t,e,i){for(var n=e.length,o=t.padding,r=o.top,s=t.isOpposite,a=s?i.width:o.left,l=0;l<n;l++){var h=r,u=e[l];if(u.visible){var c=u.measuredBounds,f=u.margin,d=f.top+f.bottom,p=r+o.bottom,g=c.height,m=sa(u,!1);(isNaN(u.desiredSize.height)&&m===Qr||m===os)&&(g=Math.max(i.height-d-p,0)),d=g+d+p,p=u.alignment,p.Kb()&&(p=t.defaultAlignment),p.gb()||(p=de),s&&(a-=c.width+f.left+f.right),u.arrange(a+p.offsetX+f.left,h+p.offsetY+f.top+(i.height*p.y-d*p.y),c.width,g),s||(a+=c.width+f.left+f.right)}}},d(gl,fl),gl.prototype.measure=function(t,e,i,n,o,r){var s=n.length;i=j();for(var a=jl(t),l=0;l<s;l++){var h=n[l];if(h.visible||h===a){var u=sa(h,!1);if(u!==ts&&u!==os)i.push(h);else{var c=h.margin;u=c.right+c.left,c=c.top+c.bottom,h.measure(e,1/0,r,0),h=h.measuredBounds,Ht(o,Math.max(o.width,Math.max(h.width+u,0)),o.height+Math.max(h.height+c,0))}}}if(n=i.length,0!==n){for(t.desiredSize.width?e=Math.min(t.desiredSize.width,t.maxSize.width):0!==o.width&&(e=Math.min(o.width,t.maxSize.width)),t=0;t<n;t++)l=i[t],(l.visible||l===a)&&(h=l.margin,s=h.right+h.left,h=h.top+h.bottom,l.measure(e,1/0,r,0),l=l.measuredBounds,h=Math.max(l.height+h,0),o.width=Math.max(o.width,Math.max(l.width+s,0)),o.height+=h);A(i)}},gl.prototype.arrange=function(t,e,i){for(var n=e.length,o=t.padding,r=o.left,s=t.isOpposite,a=s?i.height:o.top,l=0;l<n;l++){var h=r,u=e[l];if(u.visible){var c=u.measuredBounds,f=u.margin,d=f.left+f.right,p=r+o.right,g=c.width,m=sa(u,!1);(isNaN(u.desiredSize.width)&&m===Qr||m===ns)&&(g=Math.max(i.width-d-p,0)),d=g+d+p,p=u.alignment,p.Kb()&&(p=t.defaultAlignment),p.gb()||(p=de),s&&(a-=c.height+f.bottom+f.top),u.arrange(h+p.offsetX+f.left+(i.width*p.x-d*p.x),a+p.offsetY+f.top,g,c.height),s||(a+=c.height+f.bottom+f.top)}}},d(ml,fl),ml.prototype.measure=function(t,e,i,n,o,r,s){var a=n.length,l=t.zb(),h=l.margin,u=h.right+h.left,c=h.top+h.bottom;l.measure(e,i,r,s);var f=l.measuredBounds;r=f.width,s=f.height;for(var d=Math.max(r+u,0),p=Math.max(s+c,0),g=t.isClipping,m=_t.allocAt(-h.left,-h.top,d,p),v=!0,y=jl(t),b=0;b<a;b++){var w=n[b];if(w!==l&&(w.visible||w===y)){switch(h=w.margin,d=h.right+h.left,p=h.top+h.bottom,f=sa(w,!1),f){case Qr:e=r,i=s;break;case ns:e=r;break;case os:i=s}w.measure(e,i,0,0),f=w.measuredBounds,d=Math.max(f.width+d,0),p=Math.max(f.height+p,0);var x=w.alignment;x.Kb()&&(x=t.defaultAlignment),x.gb()||(x=de);var k=w.alignmentFocus;k.Kb()&&(k=de);var M=null;if(w instanceof Nl&&\"\"!==w.yg&&(w.arrange(0,0,f.width,f.height),M=w.$a(w.yg),M===w&&(M=null)),null!==M){for(h=M.naturalBounds,f=M.margin,h=mt.allocAt(k.x*h.width-k.offsetX-f.left,k.y*h.height-k.offsetY-f.top);M!==w;)M.transform.ta(h),M=M.panel;w=x.x*r+x.offsetX-h.x,f=x.y*s+x.offsetY-h.y,mt.free(h)}else w=x.x*r+x.offsetX-(k.x*f.width+k.offsetX)-h.left,f=x.y*s+x.offsetY-(k.y*f.height+k.offsetY)-h.top;v?(v=!1,o.h(w,f,d,p)):$t(o,w,f,d,p)}}switch(v?o.assign(m):g?o.gv(m.x,m.y,m.width,m.height):$t(o,m.x,m.y,m.width,m.height),_t.free(m),f=l.stretch,f===is&&(f=sa(l,!1)),f){case ts:return;case Qr:if(!isFinite(e)&&!isFinite(i))return;break;case ns:if(!isFinite(e))return;break;case os:if(!isFinite(i))return}for(f=l.measuredBounds,r=f.width,s=f.height,d=Math.max(r+u,0),p=Math.max(s+c,0),h=l.margin,m=_t.allocAt(-h.left,-h.top,d,p),e=0;e<a;e++)i=n[e],i===l||!i.visible&&i!==y||(h=i.margin,d=h.right+h.left,p=h.top+h.bottom,f=i.measuredBounds,d=Math.max(f.width+d,0),p=Math.max(f.height+p,0),u=i.alignment,u.Kb()&&(u=t.defaultAlignment),u.gb()||(u=de),i=i.alignmentFocus,i.Kb()&&(i=de),v?(v=!1,o.h(u.x*r+u.offsetX-(i.x*f.width+i.offsetX)-h.left,u.y*s+u.offsetY-(i.y*f.height+i.offsetY)-h.top,d,p)):$t(o,u.x*r+u.offsetX-(i.x*f.width+i.offsetX)-h.left,u.y*s+u.offsetY-(i.y*f.height+i.offsetY)-h.top,d,p));v?o.assign(m):g?o.gv(m.x,m.y,m.width,m.height):$t(o,m.x,m.y,m.width,m.height),_t.free(m)},ml.prototype.arrange=function(t,e,i){var n=e.length,o=t.zb(),r=o.measuredBounds,s=r.width;r=r.height;var a=t.padding,l=a.left;a=a.top;var h=l-i.x,u=a-i.y;o.arrange(h,u,s,r);for(var c=0;c<n;c++){var f=e[c];if(f!==o){var d=f.measuredBounds,p=d.width;d=d.height,u=f.alignment,u.Kb()&&(u=t.defaultAlignment),u.gb()||(u=de);var g=f.alignmentFocus;if(g.Kb()&&(g=de),h=null,f instanceof Nl&&\"\"!==f.yg&&(h=f.$a(f.yg),h===f&&(h=null)),null!==h){var m=h.naturalBounds;for(g=mt.allocAt(g.x*m.width-g.offsetX,g.y*m.height-g.offsetY);h!==f;)h.transform.ta(g),h=h.panel;h=u.x*s+u.offsetX-g.x,u=u.y*r+u.offsetY-g.y,mt.free(g)}else h=u.x*s+u.offsetX-(g.x*p+g.offsetX),u=u.y*r+u.offsetY-(g.y*d+g.offsetY);h-=i.x,u-=i.y,f.visible&&f.arrange(l+h,a+u,p,d)}}},d(vl,fl),vl.prototype.measure=function(t,e,i,n,o,r,s){var a=n.length,l=t.zb(),h=l.margin,u=e,c=i,f=h.right+h.left,d=h.top+h.bottom;l.measure(e,i,r,s),h=l.measuredBounds;var p=0,g=null;l instanceof sh&&(g=l,p=g.strokeWidth*g.scale);var m=Math.max(h.width+f,0);h=Math.max(h.height+d,0);var v=Vl(l),y=v.x*m+v.offsetX;v=v.y*h+v.offsetY;var b=_l(l),w=b.x*m+b.offsetX;for(b=b.y*h+b.offsetY,isFinite(e)&&(u=Math.max(Math.abs(y-w)-p,0)),isFinite(i)&&(c=Math.max(Math.abs(v-b)-p,0)),p=It.alloc(),p.h(0,0),t=jl(t),b=0;b<a;b++)v=n[b],v===l||!v.visible&&v!==t||(h=v.margin,m=h.right+h.left,y=h.top+h.bottom,v.measure(u,c,0,0),h=v.measuredBounds,m=Math.max(h.width+m,0),h=Math.max(h.height+y,0),p.h(Math.max(m,p.width),Math.max(h,p.height)));if(1===a)o.width=m,o.height=h,It.free(p);else{switch(v=Vl(l),b=_l(l),a=n=0,b.x!==v.x&&b.y!==v.y&&(n=p.width/Math.abs(b.x-v.x),a=p.height/Math.abs(b.y-v.y)),It.free(p),p=0,null!==g&&(p=g.strokeWidth*g.scale,lh(g)===es&&(n=a=Math.max(n,a))),n+=Math.abs(v.offsetX)+Math.abs(b.offsetX)+p,a+=Math.abs(v.offsetY)+Math.abs(b.offsetY)+p,g=l.stretch,g===is&&(g=sa(l,!1)),g){case ts:s=r=0;break;case Qr:isFinite(e)&&(n=e),isFinite(i)&&(a=i);break;case ns:isFinite(e)&&(n=e),s=0;break;case os:r=0,isFinite(i)&&(a=i)}l.dm(),l.measure(n,a,r,s),o.width=l.measuredBounds.width+f,o.height=l.measuredBounds.height+d}},vl.prototype.arrange=function(t,e){var i=e.length,n=t.zb(),o=n.measuredBounds,r=_t.alloc();r.h(0,0,1,1);var s=n.margin,a=s.left;s=s.top;var l=t.padding,h=l.left;l=l.top,n.arrange(h+a,l+s,o.width,o.height);var u=Vl(n),c=_l(n),f=u.y*o.height+u.offsetY,d=c.x*o.width+c.offsetX;for(c=c.y*o.height+c.offsetY,r.x=u.x*o.width+u.offsetX,r.y=f,$t(r,d,c,0,0),r.x+=a+h,r.y+=s+l,o=0;o<i;o++)a=e[o],a!==n&&(h=a.measuredBounds,s=a.margin,l=Math.max(h.width+s.right+s.left,0),u=Math.max(h.height+s.top+s.bottom,0),f=a.alignment,f.Kb()&&(f=t.defaultAlignment),f.gb()||(f=de),l=r.width*f.x+f.offsetX-l*f.x+s.left+r.x,s=r.height*f.y+f.offsetY-u*f.y+s.top+r.y,a.visible&&(Wt(r.x,r.y,r.width,r.height,l,s,h.width,h.height)?a.arrange(l,s,h.width,h.height):a.arrange(l,s,h.width,h.height,new _t(r.x,r.y,r.width,r.height))));_t.free(r)},d(yl,fl),yl.prototype.measure=function(t,e,i,n,o,r,s){for(var a=n.length,l=j(),h=j(),u=0;u<a;u++){var c=n[u],f=c instanceof Nl?c:null;if(null===f||f.type!==Nl.TableRow&&f.type!==Nl.TableColumn||!c.visible)l.push(c);else{h.push(f);for(var d=f.Y.j,p=d.length,g=0;g<p;g++){var m=d[g];f.type===Nl.TableRow?m.row=c.row:f.type===Nl.TableColumn&&(m.column=c.column),l.push(m)}}}a=l.length,0===a&&(t.getRowDefinition(0),t.getColumnDefinition(0));for(var v=[],y=0;y<a;y++){var b=l[y];ga(b,!0),va(b,!0),v[b.row]||(v[b.row]=[]),v[b.row][b.column]||(v[b.row][b.column]=[]),v[b.row][b.column].push(b)}A(l);var w=j(),x=j(),k=j(),M={count:0},C={count:0},S=e,N=i,P=t.sb;a=P.length;for(var T=0;T<a;T++){var L=P[T];void 0!==L&&(L.actual=0)}P=t.nb,a=P.length;for(var O=0;O<a;O++)L=P[O],void 0!==L&&(L.actual=0);for(var D=v.length,B=0,z=0;z<D;z++)v[z]&&(B=Math.max(B,v[z].length));var F=Math.min(t.topIndex,D-1),I=Math.min(t.leftIndex,B-1),E=0;D=v.length;for(var R=jl(t),V=0;V<D;V++)if(v[V]){B=v[V].length;for(var _=t.getRowDefinition(V),H=_.actual=0;H<B;H++)if(v[V][H]){var Y=t.getColumnDefinition(H);void 0===w[H]&&(Y.actual=0,w[H]=!0);for(var q=v[V][H],G=q.length,X=0;X<G;X++){var U=q[X];if(U.visible||U===R){var K=1<U.rowSpan||1<U.columnSpan;K&&(V<F||H<I||x.push(U));var $=U.margin,W=$.right+$.left,J=$.top+$.bottom,Z=aa(U,_,Y,!1),Q=U.desiredSize,tt=!isNaN(Q.height),et=!isNaN(Q.width)&&tt;if(K||Z===ts||et||V<F||H<I||(void 0!==M[H]||Z!==Qr&&Z!==ns||(M[H]=-1,M.count++),void 0!==C[V]||Z!==Qr&&Z!==os||(C[V]=-1,C.count++),k.push(U)),U.measure(1/0,1/0,0,0),!(V<F||H<I)){var it=U.measuredBounds,nt=Math.max(it.width+W,0),ot=Math.max(it.height+J,0);if(1===U.rowSpan&&(Z===ts||Z===ns)){L=t.getRowDefinition(V);var rt=L.tc();E=Math.max(ot-L.actual,0),E+rt>N&&(E=Math.max(N-rt,0));var st=0===L.actual;L.actual=L.actual+E,N=Math.max(N-(E+(st?rt:0)),0)}if(1===U.columnSpan&&(Z===ts||Z===os)){L=t.getColumnDefinition(H);var at=L.tc();E=Math.max(nt-L.actual,0),E+at>S&&(E=Math.max(S-at,0));var lt=0===L.actual;L.actual=L.actual+E,S=Math.max(S-(E+(lt?at:0)),0)}K&&U.dm()}}}}}A(w);var ht=0,ut=0;a=t.columnCount;for(var ct=0;ct<a;ct++){var ft=t.nb[ct];void 0!==ft&&(ht+=ft.ka,0!==ft.ka&&(ht+=ft.tc()))}a=t.rowCount;for(var dt=0;dt<a;dt++){var pt=t.sb[dt];void 0!==pt&&(ut+=pt.ka,0!==pt.ka&&(ut+=pt.tc()))}S=Math.max(e-ht,0);var gt=N=Math.max(i-ut,0),mt=S;a=k.length;for(var vt=0;vt<a;vt++){var yt=k[vt],bt=t.getRowDefinition(yt.row),wt=t.getColumnDefinition(yt.column),xt=yt.measuredBounds,kt=yt.margin,Mt=kt.right+kt.left,Ct=kt.top+kt.bottom;M[yt.column]=0===wt.actual&&void 0!==M[yt.column]?Math.max(xt.width+Mt,M[yt.column]):null,C[yt.row]=0===bt.actual&&void 0!==C[yt.row]?Math.max(xt.height+Ct,C[yt.row]):null}var St,Nt=0,Pt=0;for(St in C)\"count\"!==St&&(Nt+=C[St]);for(St in M)\"count\"!==St&&(Pt+=M[St]);for(var Tt=It.alloc(),Lt=0;Lt<a;Lt++){var Ot=k[Lt];if(Ot.visible||Ot===R){var Dt=t.getRowDefinition(Ot.row),jt=t.getColumnDefinition(Ot.column),At=0;isFinite(jt.width)?At=jt.width:(At=isFinite(S)&&null!==M[Ot.column]?0===Pt?jt.actual+S:M[Ot.column]/Pt*mt:null!==M[Ot.column]?S:jt.actual||S,At=Math.max(0,At-jt.tc()));var Bt=0;switch(isFinite(Dt.height)?Bt=Dt.height:(Bt=isFinite(N)&&null!==C[Ot.row]?0===Nt?Dt.actual+N:C[Ot.row]/Nt*gt:null!==C[Ot.row]?N:Dt.actual||N,Bt=Math.max(0,Bt-Dt.tc())),Tt.h(Math.max(jt.minimum,Math.min(At,jt.maximum)),Math.max(Dt.minimum,Math.min(Bt,Dt.maximum))),Z=aa(Ot,Dt,jt,!1),Z){case ns:Tt.height=Math.max(Tt.height,Dt.actual+N);break;case os:Tt.width=Math.max(Tt.width,jt.actual+S)}var zt=Ot.margin,Ft=zt.right+zt.left,Et=zt.top+zt.bottom;Ot.dm(),Ot.measure(Tt.width,Tt.height,jt.minimum,Dt.minimum);var Rt=Ot.measuredBounds,Vt=Math.max(Rt.width+Ft,0),_t=Math.max(Rt.height+Et,0);isFinite(S)&&(Vt=Math.min(Vt,Tt.width)),isFinite(N)&&(_t=Math.min(_t,Tt.height));var Ht=0;Ht=Dt.actual,Dt.actual=Math.max(Dt.actual,_t),E=Dt.actual-Ht,N=Math.max(N-E,0),Ht=jt.actual,jt.actual=Math.max(jt.actual,Vt),E=jt.actual-Ht,S=Math.max(S-E,0)}}A(k);var Yt=It.alloc(),qt=j(),Gt=j();if(a=x.length,0!==a)for(var Xt=0;Xt<D;Xt++)if(v[Xt]){B=v[Xt].length;var Ut=t.getRowDefinition(Xt);qt[Xt]=Ut.actual;for(var Kt=0;Kt<B;Kt++)if(v[Xt][Kt]){var $t=t.getColumnDefinition(Kt);Gt[Kt]=$t.actual}}for(var Wt=0;Wt<a;Wt++){var Jt=x[Wt];if(Jt.visible||Jt===R){var Zt=t.getRowDefinition(Jt.row),Qt=t.getColumnDefinition(Jt.column);switch(Tt.h(Math.max(Qt.minimum,Math.min(e,Qt.maximum)),Math.max(Zt.minimum,Math.min(i,Zt.maximum))),Z=aa(Jt,Zt,Qt,!1),Z){case Qr:0!==Gt[Qt.index]&&(Tt.width=Math.min(Tt.width,Gt[Qt.index])),0!==qt[Zt.index]&&(Tt.height=Math.min(Tt.height,qt[Zt.index]));break;case ns:0!==Gt[Qt.index]&&(Tt.width=Math.min(Tt.width,Gt[Qt.index]));break;case os:0!==qt[Zt.index]&&(Tt.height=Math.min(Tt.height,qt[Zt.index]))}isFinite(Qt.width)&&(Tt.width=Qt.width),isFinite(Zt.height)&&(Tt.height=Zt.height),Yt.h(0,0);for(var te=1;te<Jt.rowSpan&&!(Jt.row+te>=t.rowCount);te++)L=t.getRowDefinition(Jt.row+te),E=0,E=Z===Qr||Z===os?Math.max(L.minimum,0===qt[Jt.row+te]?L.maximum:Math.min(qt[Jt.row+te],L.maximum)):Math.max(L.minimum,isNaN(L.Pc)?L.maximum:Math.min(L.Pc,L.maximum)),Yt.height+=E;for(var ee=1;ee<Jt.columnSpan&&!(Jt.column+ee>=t.columnCount);ee++)L=t.getColumnDefinition(Jt.column+ee),E=0,E=Z===Qr||Z===ns?Math.max(L.minimum,0===Gt[Jt.column+ee]?L.maximum:Math.min(Gt[Jt.column+ee],L.maximum)):Math.max(L.minimum,isNaN(L.Pc)?L.maximum:Math.min(L.Pc,L.maximum)),Yt.width+=E;Tt.width+=Yt.width,Tt.height+=Yt.height;var ie=Jt.margin,ne=ie.right+ie.left,oe=ie.top+ie.bottom;Jt.measure(Tt.width,Tt.height,r,s);for(var re=Jt.measuredBounds,se=Math.max(re.width+ne,0),ae=Math.max(re.height+oe,0),le=0,he=0;he<Jt.rowSpan&&!(Jt.row+he>=t.rowCount);he++)L=t.getRowDefinition(Jt.row+he),le+=L.total||0;if(le<ae){var ue=ae-le,ce=ae-le;if(null!==Jt.spanAllocation)for(var fe=Jt.spanAllocation,de=0;de<Jt.rowSpan&&!(0>=ue)&&!(Jt.row+de>=t.rowCount);de++){L=t.getRowDefinition(Jt.row+de);var pe=L.ka||0,ge=fe(Jt,L,ce);L.actual=Math.min(L.maximum,pe+ge),L.ka!==pe&&(ue-=L.ka-pe)}for(;0<ue;){var me=L.ka||0;if(isNaN(L.height)&&L.maximum>me&&(L.actual=Math.min(L.maximum,me+ue),L.ka!==me&&(ue-=L.ka-me)),0===L.index)break;L=t.getRowDefinition(L.index-1)}}for(var ve=0,ye=0;ye<Jt.columnSpan&&!(Jt.column+ye>=t.columnCount);ye++)L=t.getColumnDefinition(Jt.column+ye),ve+=L.total||0;if(ve<se){var be=se-ve,we=se-ve;if(null!==Jt.spanAllocation)for(var xe=Jt.spanAllocation,ke=0;ke<Jt.columnSpan&&!(0>=be)&&!(Jt.column+ke>=t.columnCount);ke++){L=t.getColumnDefinition(Jt.column+ke);var Me=L.ka||0,Ce=xe(Jt,L,we);L.actual=Math.min(L.maximum,Me+Ce),L.ka!==Me&&(be-=L.ka-Me)}for(;0<be;){var Se=L.ka||0;if(isNaN(L.width)&&L.maximum>Se&&(L.actual=Math.min(L.maximum,Se+be),L.ka!==Se&&(be-=L.ka-Se)),0===L.index)break;L=t.getColumnDefinition(L.index-1)}}}}A(x),It.free(Yt),It.free(Tt),void 0!==qt&&A(qt),void 0!==Gt&&A(Gt);var Ne=0,Pe=0,Te=t.desiredSize,Le=t.maxSize;Z=sa(t,!0);var Oe=ut=ht=0,De=0;a=t.columnCount;for(var je=0;je<a;je++)void 0!==t.nb[je]&&(L=t.getColumnDefinition(je),isFinite(L.width)?(Oe+=L.width,Oe+=L.tc()):ih(L)===oh?(Oe+=L.ka,Oe+=L.tc()):0!==L.ka&&(ht+=L.ka,ht+=L.tc()));Ne=isFinite(Te.width)?Math.min(Te.width,Le.width):Z!==ts&&isFinite(e)?e:ht,Ne=Math.max(Ne,t.minSize.width),Ne=Math.max(Ne-Oe,0);for(var Ae=0===ht?1:Math.max(Ne/ht,1),Be=0;Be<a;Be++)void 0!==t.nb[Be]&&(L=t.getColumnDefinition(Be),isFinite(L.width)||ih(L)===oh||(L.actual=L.ka*Ae),L.position=o.width,0!==L.ka&&(o.width+=L.ka,o.width+=L.tc()));a=t.rowCount;for(var ze=0;ze<a;ze++)void 0!==t.sb[ze]&&(L=t.getRowDefinition(ze),isFinite(L.height)?(De+=L.height,De+=L.tc()):ih(L)===oh?(De+=L.ka,De+=L.tc()):0!==L.ka&&(ut+=L.ka,0!==L.ka&&(ut+=L.tc())));Pe=isFinite(Te.height)?Math.min(Te.height,Le.height):Z!==ts&&isFinite(i)?i:ut,Pe=Math.max(Pe,t.minSize.height),Pe=Math.max(Pe-De,0);for(var Fe=0===ut?1:Math.max(Pe/ut,1),Ie=0;Ie<a;Ie++)void 0!==t.sb[Ie]&&(L=t.getRowDefinition(Ie),isFinite(L.height)||ih(L)===oh||(L.actual=L.ka*Fe),L.position=o.height,0!==L.ka&&(o.height+=L.ka,0!==L.ka&&(o.height+=L.tc())));a=h.length;for(var Ee=0;Ee<a;Ee++){var Re=h[Ee],Ve=0,_e=0;Re.type===Nl.TableRow?(Ve=o.width,L=t.getRowDefinition(Re.row),_e=L.actual):(L=t.getColumnDefinition(Re.column),Ve=L.actual,_e=o.height),Re.measuredBounds.h(0,0,Ve,_e),ga(Re,!1),v[Re.row]||(v[Re.row]=[]),v[Re.row][Re.column]||(v[Re.row][Re.column]=[]),v[Re.row][Re.column].push(Re)}A(h),t.cp=v},yl.prototype.arrange=function(t,e,i){var n=e.length,o=t.padding,r=o.left;o=o.top;for(var s,a,l=t.cp,h=l.length,u=0,c=0;c<h;c++)l[c]&&(u=Math.max(u,l[c].length));for(c=Math.min(t.topIndex,h-1);c!==h&&(void 0===t.sb[c]||0===t.sb[c].ka);)c++;for(c=Math.min(c,h-1),c=-t.sb[c].position,s=Math.min(t.leftIndex,u-1);s!==u&&(void 0===t.nb[s]||0===t.nb[s].ka);)s++;s=Math.min(s,u-1);for(var f=-t.nb[s].position,d=It.alloc(),p=0;p<h;p++)if(l[p]){u=l[p].length;var g=t.getRowDefinition(p);a=g.position+c+o,0!==g.ka&&(a+=g.Nu());for(var m=0;m<u;m++)if(l[p][m]){var v=t.getColumnDefinition(m);s=v.position+f+r,0!==v.ka&&(s+=v.Nu());for(var y=l[p][m],b=y.length,w=0;w<b;w++){var x=y[w],k=x.measuredBounds,M=x instanceof Nl?x:null;if(null===M||M.type!==Nl.TableRow&&M.type!==Nl.TableColumn){d.h(0,0);for(var C=1;C<x.rowSpan&&!(p+C>=t.rowCount);C++)M=t.getRowDefinition(p+C),d.height+=M.total;for(C=1;C<x.columnSpan&&!(m+C>=t.columnCount);C++)M=t.getColumnDefinition(m+C),d.width+=M.total;var S=v.ka+d.width,N=g.ka+d.height;C=s,M=a;var P=S,T=N,L=s,O=a,D=S,j=N;s+S>i.width&&(D=Math.max(i.width-s,0)),a+N>i.height&&(j=Math.max(i.height-a,0));var A=x.alignment;if(A.Kb()){A=t.defaultAlignment,A.gb()||(A=de);var B=A.x,z=A.y,F=A.offsetX;A=A.offsetY;var I=v.alignment,E=g.alignment;I.gb()&&(B=I.x,F=I.offsetX),E.gb()&&(z=E.y,A=E.offsetY)}else B=A.x,z=A.y,F=A.offsetX,A=A.offsetY;(isNaN(B)||isNaN(z))&&(z=B=.5,A=F=0),I=k.width,E=k.height;var R=x.margin,V=R.left+R.right,_=R.top+R.bottom,H=aa(x,g,v,!1);!isNaN(x.desiredSize.width)||H!==Qr&&H!==ns||(I=Math.max(S-V,0)),!isNaN(x.desiredSize.height)||H!==Qr&&H!==os||(E=Math.max(N-_,0)),S=x.maxSize,N=x.minSize,I=Math.min(S.width,I),E=Math.min(S.height,E),I=Math.max(N.width,I),E=Math.max(N.height,E),S=E+_,C+=P*B-(I+V)*B+F+R.left,M+=T*z-S*z+A+R.top,x.visible&&(Wt(L,O,D,j,C,M,k.width,k.height)?x.arrange(C,M,I,E):x.arrange(C,M,I,E,new _t(L,O,D,j)))}else x.fl(),x.actualBounds.ha(),P=x.actualBounds,C=_t.allocAt(P.x,P.y,P.width,P.height),P.x=M.type===Nl.TableRow?r:s,P.y=M.type===Nl.TableColumn?o:a,P.width=k.width,P.height=k.height,x.actualBounds.freeze(),va(x,!1),Gt(C,P)||(k=x.part,null!==k&&(k.yh(),x.Do(k))),_t.free(C)}}}for(It.free(d),t=0;t<n;t++)i=e[t],r=i instanceof Nl?i:null,null===r||r.type!==Nl.TableRow&&r.type!==Nl.TableColumn||(r=i.actualBounds,i.naturalBounds.ha(),i.naturalBounds.h(0,0,r.width,r.height),i.naturalBounds.freeze())},d(bl,fl),bl.prototype.measure=function(){},bl.prototype.arrange=function(){},d(wl,fl),wl.prototype.measure=function(){},wl.prototype.arrange=function(){},d(xl,fl),xl.prototype.measure=function(t,e,i,n,o,r,s){1<n.length&&k(\"Viewbox Panel cannot contain more than one GraphObject.\"),n=n[0],n.Ca=1,n.dm(),n.measure(1/0,1/0,r,s);var a=n.measuredBounds,l=n.margin,h=l.right+l.left;if(l=l.top+l.bottom,isFinite(e)||isFinite(i)){var u=n.scale,c=a.width;a=a.height;var f=Math.max(e-h,0),d=Math.max(i-l,0),p=1;t.viewboxStretch===es?0!==c&&0!==a&&(p=Math.min(f/c,d/a)):0!==c&&0!==a&&(p=Math.max(f/c,d/a)),0===p&&(p=1e-4),n.Ca*=p,u!==n.scale&&(ga(n,!0),n.measure(1/0,1/0,r,s))}a=n.measuredBounds,o.width=isFinite(e)?e:Math.max(a.width+h,0),o.height=isFinite(i)?i:Math.max(a.height+l,0)},xl.prototype.arrange=function(t,e,i){e=e[0];var n=e.measuredBounds,o=e.margin,r=Math.max(n.width+(o.right+o.left),0);o=Math.max(n.height+(o.top+o.bottom),0);var s=e.alignment;s.Kb()&&(s=t.defaultAlignment),s.gb()||(s=de),e.arrange(i.width*s.x-r*s.x+s.offsetX,i.height*s.y-o*s.y+s.offsetY,n.width,n.height)},d(kl,fl),kl.prototype.measure=function(){},kl.prototype.arrange=function(){},d(Ml,fl),Ml.prototype.measure=function(t,e,i,n,o){if(i=n.length,t instanceof ju||t instanceof nc){var r=null,s=null,a=null;if(t instanceof nc&&(s=r=t),t instanceof ju&&(a=t,r=a.adornedPart),r instanceof nc){var l=r;if(0===i)Ht(t.naturalBounds,0,0),t.measuredBounds.h(0,0,0,0);else{var h=t instanceof ju?null:r.path,u=r.routeBounds;e=t.hg,e.h(0,0,u.width,u.height);var c=l.points;r=r.pointsCount,null!==a?a.gk(!1):null!==s&&s.gk(!1);var f=u.width,d=u.height;t.location.h(u.x,u.y),t.l.length=0,null!==h&&(Cl(t,f,d,h),a=h.measuredBounds,e.Jc(a),t.l.push(a)),a=ae.alloc();for(var p=mt.alloc(),g=mt.alloc(),m=0;m<i;m++){var v=n[m];if(v!==h)if(v.isPanelMain&&v instanceof sh){Cl(t,f,d,v);var y=v.measuredBounds;e.Jc(y),t.l.push(y)}else if(2>r)v.measure(1/0,1/0,0,0),y=v.measuredBounds,e.Jc(y),t.l.push(y);else{var b=v.segmentIndex;y=v.segmentFraction;var w=v.alignmentFocus;w.jc()&&(w=de);var x=v.segmentOrientation,k=v.segmentOffset;if(b<-r||b>=r){y=l.midPoint;var M=l.midAngle;if(x!==Tc){var C=l.computeAngle(v,x,M);v.zc=C}C=y.x-u.x;var S=y.y-u.y}else{if(C=0,0<=b){S=c.N(b);var N=b<r-1?c.N(b+1):S}else C=r+b,S=c.N(C),N=0<C?c.N(C-1):S;if(S.Qa(N)){0<=b?(M=0<b?c.N(b-1):S,C=b<r-2?c.N(b+2):N):(M=C<r-1?c.N(C+1):S,C=1<C?c.N(C-2):N);var P=M.Be(S),T=N.Be(C);M=P>T+10?0<=b?M.Wa(S):S.Wa(M):T>P+10?0<=b?N.Wa(C):C.Wa(N):0<=b?M.Wa(C):C.Wa(M)}else M=0<=b?S.Wa(N):N.Wa(S);x!==Tc&&(C=l.computeAngle(v,x,M),v.zc=C),C=S.x+(N.x-S.x)*y-u.x,S=S.y+(N.y-S.y)*y-u.y}v.measure(1/0,1/0,0,0),y=v.measuredBounds,T=v.naturalBounds,P=0,v instanceof sh&&(P=v.strokeWidth),N=T.width+P,T=T.height+P,a.reset(),a.translate(-y.x,-y.y),a.scale(v.scale,v.scale),a.rotate(x===Tc?v.angle:M,N/2,T/2),x!==Fc&&x!==Vc||a.rotate(90,N/2,T/2),x!==Ic&&x!==_c||a.rotate(-90,N/2,T/2),x===Hc&&(45<M&&135>M||225<M&&315>M)&&a.rotate(-M,N/2,T/2),x=new _t(0,0,N,T),p.Ti(x,w),a.ta(p),w=-p.x+P/2*v.scale,v=-p.y+P/2*v.scale,g.assign(k),isNaN(g.x)&&(g.x=0<=b?N/2+3:-(N/2+3)),isNaN(g.y)&&(g.y=-(T/2+3)),g.rotate(M),C+=g.x,S+=g.y,x.set(y),x.h(C+w,S+v,y.width,y.height),t.l.push(x),e.Jc(x)}}if(null!==s)for(n=s.labelNodes;n.next();)n.value.measure(1/0,1/0);t.hg=e,t=t.location,t.h(t.x+e.x,t.y+e.y),Ht(o,e.width||0,e.height||0),ae.free(a),mt.free(p),mt.free(g)}}}},Ml.prototype.arrange=function(t,e){var i=e.length;if(t instanceof ju||t instanceof nc){var n=null,o=null,r=null;t instanceof nc&&(o=n=t),t instanceof ju&&(r=t,n=r.adornedPart);var s=t instanceof ju?null:n.path;if(0!==t.l.length){var a=t.l,l=0;if(null!==s&&l<t.l.length){var h=a[l];l++,s.arrange(h.x-t.hg.x,h.y-t.hg.y,h.width,h.height)}for(h=0;h<i;h++){var u=e[h];if(u!==s&&l<t.l.length){var c=a[l];l++,u.arrange(c.x-t.hg.x,c.y-t.hg.y,c.width,c.height)}}}if(e=n.points,i=e.count,2<=i&&t instanceof nc)for(n=t.labelNodes;n.next();){c=t,s=n.value,a=s.segmentIndex;var f=s.segmentFraction;h=s.alignmentFocus;var d=s.segmentOrientation;if(l=s.segmentOffset,a<-i||a>=i){var p=c.midPoint;u=c.midAngle,d!==Tc&&(c=c.computeAngle(s,d,u),s.angle=c),c=p.x;var g=p.y}else{var m=0;if(0<=a?(g=e.j[a],p=a<i-1?e.j[a+1]:g):(m=i+a,g=e.j[m],p=0<m?e.j[m-1]:g),g.Qa(p)){0<=a?(u=0<a?e.j[a-1]:g,m=a<i-2?e.j[a+2]:p):(u=m<i-1?e.j[m+1]:g,m=1<m?e.j[m-2]:p);var v=u.Be(g),y=p.Be(m);u=v>y+10?0<=a?u.Wa(g):g.Wa(u):y>v+10?0<=a?p.Wa(m):m.Wa(p):0<=a?u.Wa(m):m.Wa(u)}else u=0<=a?g.Wa(p):p.Wa(g);d!==Tc&&(c=c.computeAngle(s,d,u),s.angle=c),c=g.x+(p.x-g.x)*f,g=g.y+(p.y-g.y)*f}h.et()?s.location=new mt(c,g):(h.jc()&&(h=de),p=ae.alloc(),p.reset(),p.scale(s.scale,s.scale),p.rotate(s.angle,0,0),f=s.naturalBounds,f=_t.allocAt(0,0,f.width,f.height),d=mt.alloc(),d.Ti(f,h),p.ta(d),h=-d.x,m=-d.y,l=l.copy(),isNaN(l.x)&&(l.x=0<=a?d.x+3:-(d.x+3)),isNaN(l.y)&&(l.y=-(d.y+3)),l.rotate(u),c+=l.x,g+=l.y,p.Uv(f),h+=f.x,m+=f.y,a=mt.allocAt(c+h,g+m),s.move(a),mt.free(a),mt.free(d),_t.free(f),ae.free(p))}null!==r?r.gk(!1):null!==o&&o.gk(!1)}},d(Sl,fl),Sl.prototype.measure=function(t,e,i,n,o,r,s){var a=t.zb();t.hj=[];var l=a.margin,h=l.right+l.left,u=l.top+l.bottom;a.measure(e,i,r,s);var c=a.measuredBounds,f=new _t(-l.left,-l.top,Math.max(c.width+h,0),Math.max(c.height+u,0));t.hj.push(f),o.assign(f);for(var d=a.geometry,p=a.strokeWidth,g=d.flattenedSegments,m=d.flattenedLengths,v=d.flattenedTotalLength,y=g.length,b=0,w=0,x=j(),k=0;k<y;k++){var M=g[k],C=[];w=b=0;for(var S=M.length,N=0;N<S;N+=2){var P=M[N],T=M[N+1];if(0!==N){var L=180*Math.atan2(T-w,P-b)/Math.PI;0>L&&(L+=360),C.push(L)}b=P,w=T}x.push(C)}if(null===t.Mg){for(var O=[],D=t.Y.j,B=D.length,z=0;z<B;z++){var F=D[z],I=[];if(O.push(I),F.visible)for(var E=F.interval,R=0;R<B;R++){var V=D[R];if(V.visible&&F!==V&&!(F instanceof sh&&!(V instanceof sh)||F instanceof mh&&!(V instanceof mh))){var _=V.interval;_>E&&I.push(_)}}}t.Mg=O}var H=t.Mg,Y=t.Y.j,q=Y.length,G=0,X=0,U=v;t.jj=[];for(var K,$=0;$<q;$++){var W=Y[$];if(K=[],W.visible&&W!==a){var J=W.interval,Z=t.graduatedTickUnit;if(!(2>Z*J*v/t.graduatedRange)){var Q=m[0][0],tt=0,et=0;X=v*W.graduatedStart-1e-4,U=v*W.graduatedEnd+1e-4;var it=Z*J,nt=t.graduatedTickBase;if(nt<t.graduatedMin){var ot=(t.graduatedMin-nt)/it;ot=0===ot%1?ot:Math.floor(ot+1),nt+=ot*it}else nt>t.graduatedMin+it&&(nt-=Math.floor((nt-t.graduatedMin)/it)*it);for(var rt=H[$];nt<=t.graduatedMax;){t:{for(var st=rt.length,at=0;at<st;at++)if(We.ca((nt-t.graduatedTickBase)%(rt[at]*t.graduatedTickUnit),0)){var lt=!1;break t}lt=!0}if(lt&&(null===W.graduatedSkip||!W.graduatedSkip(nt))&&(G=(nt-t.graduatedMin)*v/t.graduatedRange,G>v&&(G=v),X<=G&&G<=U)){for(var ht=x[tt][et],ut=m[tt][et];tt<m.length;){for(;G>Q&&et<m[tt].length-1;)et++,ht=x[tt][et],ut=m[tt][et],Q+=ut;if(G<=Q)break;tt++,et=0,ht=x[tt][et],ut=m[tt][et],Q+=ut}var ct=g[tt],ft=ct[2*et],dt=ct[2*et+1],pt=(G-(Q-ut))/ut,gt=new mt(ft+(ct[2*et+2]-ft)*pt+p/2-d.bounds.x,dt+(ct[2*et+3]-dt)*pt+p/2-d.bounds.y);gt.scale(a.scale,a.scale);var vt=ht,yt=x[tt];if(1e-4>pt?0<et?vt=yt[et-1]:We.ca(ct[0],ct[ct.length-2])&&We.ca(ct[1],ct[ct.length-1])&&(vt=yt[yt.length-1]):.9999<pt&&(et+1<yt.length?vt=yt[et+1]:We.ca(ct[0],ct[ct.length-2])&&We.ca(ct[1],ct[ct.length-1])&&(vt=yt[0])),ht!==vt&&(180<Math.abs(ht-vt)&&(ht<vt?ht+=360:vt+=360),ht=(ht+vt)/2%360),W instanceof mh){var bt=\"\";null!==W.graduatedFunction?(bt=W.graduatedFunction(nt),bt=null!==bt&&void 0!==bt?bt.toString():\"\"):bt=(+nt.toFixed(2)).toString(),\"\"!==bt&&K.push([gt,ht,bt])}else K.push([gt,ht])}nt+=it}}}t.jj.push(K)}A(x);for(var wt=t.jj,xt=n.length,kt=0;kt<xt;kt++){var Mt=n[kt],Ct=wt[kt];if(Mt.visible&&Mt!==a&&0!==Ct.length){if(Mt instanceof sh){var St=t,Nt=o,Pt=Mt.alignmentFocus;Pt.jc()&&(Pt=ue);var Tt=Mt.angle;Mt.zc=0,Mt.measure(1/0,1/0,0,0),Mt.zc=Tt;var Lt=Mt.measuredBounds,Ot=Lt.width,Dt=Lt.height,jt=_t.allocAt(0,0,Ot,Dt),At=mt.alloc();At.Ti(jt,Pt),_t.free(jt);for(var Bt=-At.x,zt=-At.y,Ft=new _t,It=Ct.length,Et=0;Et<It;Et++)for(var Rt=Ct[Et],Vt=Rt[0].x,Ht=Rt[0].y,Yt=Rt[1],qt=0;4>qt;qt++){switch(qt){case 0:At.h(Bt,zt);break;case 1:At.h(Bt+Ot,zt);break;case 2:At.h(Bt,zt+Dt);break;case 3:At.h(Bt+Ot,zt+Dt)}At.rotate(Yt+Mt.angle),At.offset(Vt,Ht),0===Et&&0===qt?Ft.h(At.x,At.y,0,0):Ft.Ie(At),At.offset(-Vt,-Ht),At.rotate(-Yt-Mt.angle)}mt.free(At),St.hj.push(Ft),$t(Nt,Ft.x,Ft.y,Ft.width,Ft.height)}else if(Mt instanceof mh){var Gt=t,Xt=o;null===Gt.kh&&(Gt.kh=new mh);var Ut=Gt.kh;vh(Ut,Mt);var Kt=Mt.alignmentFocus;Kt.jc()&&(Kt=ue);for(var Wt=Mt.segmentOrientation,Jt=Mt.segmentOffset,Zt=null,Qt=0,te=0,ee=0,ie=0,ne=Ct.length,oe=0;oe<ne;oe++){var re=Ct[oe];Qt=re[0].x,te=re[0].y,ee=re[1],Wt!==Tc&&(ie=nc.computeAngle(Wt,ee),Ut.zc=ie),Ut.text=re[2],Ut.measure(1/0,1/0,0,0);var se=Ut.measuredBounds,le=Ut.naturalBounds,he=le.width,ce=le.height,fe=ae.alloc();fe.reset(),fe.translate(-se.x,-se.y),fe.scale(Ut.scale,Ut.scale),fe.rotate(Wt===Tc?Ut.angle:ee,he/2,ce/2),Wt!==Fc&&Wt!==Vc||fe.rotate(90,he/2,ce/2),Wt!==Ic&&Wt!==_c||fe.rotate(-90,he/2,ce/2),Wt===Hc&&(45<ee&&135>ee||225<ee&&315>ee)&&fe.rotate(-ee,he/2,ce/2);var de=_t.allocAt(0,0,he,ce),pe=mt.alloc();pe.Ti(de,Kt),fe.ta(pe);var ge=-pe.x,me=-pe.y,ve=mt.alloc();ve.assign(Jt),isNaN(ve.x)&&(ve.x=he/2+3),isNaN(ve.y)&&(ve.y=-(ce/2+3)),ve.rotate(ee),Qt+=ve.x+ge,te+=ve.y+me;var ye=new _t(Qt,te,se.width,se.height),be=new _t(se.x,se.y,se.width,se.height),we=new _t(le.x,le.y,le.width,le.height),xe=new Hh;xe.Vl(Ut.metrics),re.push(ie),re.push(Ut.lineCount),re.push(xe),re.push(ye),re.push(be),re.push(we),0===oe?Zt=ye.copy():Zt.Jc(ye),mt.free(ve),mt.free(pe),_t.free(de),ae.free(fe)}Gt.hj.push(Zt),$t(Xt,Zt.x,Zt.y,Zt.width,Zt.height)}ga(Mt,!1)}}},Sl.prototype.arrange=function(t,e,i){if(null!==t.hj){var n=t.zb(),o=t.jj,r=t.hj,s=0,a=r[s];s++,n.arrange(a.x-i.x,a.y-i.y,a.width,a.height);for(var l=e.length,h=0;h<l;h++){var u=e[h];a=o[h],u.visible&&u!==n&&0!==a.length&&(a=r[s],s++,u.arrange(a.x-i.x,a.y-i.y,a.width,a.height))}t.hj=null}},d(Nl,Ks),Nl.prototype.cloneProtected=function(t){if(Ks.prototype.cloneProtected.call(this,t),t.va=this.va,t.eb=this.eb.I(),t.nn=this.nn.I(),t.Df=this.Df,t.va===Nl.Table){t.dj=this.dj.I(),t.Gg=this.Gg,t.Vh=this.Vh,t.Uh=this.Uh,t.Fg=this.Fg,t.Eg=this.Eg,t.Th=this.Th;var e=[];if(0<this.sb.length)for(var i=this.sb,n=i.length,o=0;o<n;o++)if(void 0!==i[o]){var r=i[o].copy();r.Si(t),e[o]=r}if(t.sb=e,e=[],0<this.nb.length)for(i=this.nb,n=i.length,o=0;o<n;o++)void 0!==i[o]&&(r=i[o].copy(),r.Si(t),e[o]=r);t.nb=e,t.Fj=this.Fj,t.bj=this.bj,t.wi=this.wi,t.gi=this.gi}t.Fp=this.Fp,t.Ln=this.Ln.I(),t.Mn=this.Mn.I(),t.In=this.In,t.Hn=this.Hn,t.Kn=this.Kn,t.Jn=this.Jn,t.jj=this.jj,t.Mg=this.Mg,t.jb=this.jb,t.Qh=this.Qh,t.Zn=this.Zn,t.ei=this.ei,t.je=this.je,t.gl=this.gl,t.hg.assign(this.hg),t.yg=this.yg,null!==this.cp&&(t.cp=this.cp)},Nl.prototype.mf=function(t){Ks.prototype.mf.call(this,t),t.Y=this.Y;for(var e=t.Y.j,i=e.length,n=0;n<i;n++)e[n].ag=t;t.ti=null},Nl.prototype.copy=function(){var t=Ks.prototype.copy.call(this);if(null!==t){for(var e=this.Y.j,i=e.length,n=0;n<i;n++){var o=e[n].copy();o.Si(t),o.Aj=null;var r=t.Y,s=r.count;if(r.Ib(s,o),r=t.part,null!==r){r.vj=null,null!==o.portId&&r instanceof Au&&(r.xh=!0);var a=t.diagram;null!==a&&a.undoManager.isUndoingRedoing||r.ab(Ni,\"elements\",t,null,o,null,s)}}return t}return null},i=Nl.prototype,i.toString=function(){return\"Panel(\"+this.type+\")#\"+lt(this)},i.Do=function(t){Ks.prototype.Do.call(this,t);for(var e=this.Y.j,i=e.length,n=0;n<i;n++)e[n].Do(t)},i.Ci=function(t,e){if(this.va===Nl.Grid){e=this.Ce()*e.scale,0>=e&&(e=1);var i=this.gridCellSize,n=i.width;i=i.height;var o=this.naturalBounds,r=this.actualBounds,s=o.width,a=o.height,l=Math.ceil(s/n),h=Math.ceil(a/i),u=this.gridOrigin;t.save(),t.beginPath(),t.rect(0,0,s,a),t.clip();for(var c=[],f=this.Y.j,d=f.length,p=0;p<d;p++){var g=f[p],m=[];if(c.push(m),g.visible){g=Dl(g.figure);for(var v=p+1;v<d;v++){var y=f[v];y.visible&&Dl(y.figure)===g&&(y=y.interval,2<=y&&m.push(y))}}}for(f=this.Y.j,d=f.length,p=0;p<d;p++){var b=f[p];if(b.visible&&(m=b.interval,!(2>n*m*e))){if(g=b.opacity,v=1,1!==g){if(0===g)continue;v=t.globalAlpha,t.globalAlpha=v*g}y=c[p];var w=!1,x=b.strokeDashArray;if(null!==x&&(w=!0,t.Ps(x,b.strokeDashOffset)),\"LineV\"===b.figure&&null!==b.stroke){for(t.lineWidth=b.strokeWidth,ia(this,t,b.stroke,!1,!1,o,r),t.beginPath(),x=b=Math.floor(-u.x/n);x<=b+l;x++){var k=x*n+u.x;0<=k&&k<=s&&Ol(x,m,y)&&(t.moveTo(k,0),t.lineTo(k,a))}t.stroke()}else if(\"LineH\"===b.figure&&null!==b.stroke){for(t.lineWidth=b.strokeWidth,ia(this,t,b.stroke,!1,!1,o,r),t.beginPath(),x=b=Math.floor(-u.y/i);x<=b+h;x++)k=x*i+u.y,0<=k&&k<=a&&Ol(x,m,y)&&(t.moveTo(0,k),t.lineTo(s,k));t.stroke()}else if(\"BarV\"===b.figure&&null!==b.fill)for(ia(this,t,b.fill,!0,!1,o,r),b=b.width,isNaN(b)&&(b=n),k=x=Math.floor(-u.x/n);k<=x+l;k++){var M=k*n+u.x;0<=M&&M<=s&&Ol(k,m,y)&&t.fillRect(M,0,b,a)}else if(\"BarH\"===b.figure&&null!==b.fill)for(ia(this,t,b.fill,!0,!1,o,r),b=b.height,isNaN(b)&&(b=i),k=x=Math.floor(-u.y/i);k<=x+h;k++)M=k*i+u.y,0<=M&&M<=a&&Ol(k,m,y)&&t.fillRect(0,M,s,b);w&&t.Ns(),1!==g&&(t.globalAlpha=v)}}t.restore(),t.Rc(!1)}else if(this.va===Nl.Graduated){for(n=e.mj,e.mj=!0,o=this.naturalBounds,i=o.width,o=o.height,t.save(),t.beginPath(),t.rect(-1,-1,i+1,o+1),t.clip(),i=this.zb(),i.hc(t,e),o=this.Ce()*e.scale,0>=o&&(o=1),r=i.actualBounds,s=this.Y.j,a=this.jj,l=s.length,h=0;h<l;h++)if(f=s[h],u=a[h],c=u.length,f.visible&&f!==i&&0!==u.length)if(f instanceof sh){if(!(2>this.graduatedTickUnit*f.interval*o))for(d=f.measuredBounds,p=f.strokeWidth*f.scale,m=f.alignmentFocus,m.jc()&&(m=ue),g=0;g<c;g++)v=u[g][0],y=u[g][1],w=m,b=f.tb,b.reset(),b.translate(v.x+r.x,v.y+r.y),b.rotate(y+f.angle,0,0),b.translate(-d.width*w.x+w.offsetX+p/2,-d.height*w.y+w.offsetY+p/2),b.scale(f.scale,f.scale),fa(f,!1),f.Dh.set(f.tb),f.Sk=f.scale,da(f,!1),f.hc(t,e),f.tb.reset()}else if(f instanceof mh)for(null===this.kh&&(this.kh=new mh),d=this.kh,vh(d,f),f=0;f<c;f++)g=u[f],3<g.length&&(p=g[6],d.Pb=g[2],d.zc=g[3],d.oc=g[4],d.nd=g[5],d.qc=g[8],d.arrange(p.x,p.y,p.width,p.height),p=g[6],d.arrange(p.x,p.y,p.width,p.height),m=g[7],g=g[8],v=d.tb,v.reset(),v.translate(p.x+r.x,p.y+r.y),v.translate(-m.x,-m.y),oa(d,v,g.x,g.y,g.width,g.height),fa(d,!1),d.Dh.set(d.tb),d.Sk=d.scale,da(d,!1),d.hc(t,e));e.mj=n,t.restore(),t.Rc(!0)}else{for(this.va===Nl.Table&&(t.lineCap=\"butt\",Ll(this,t,!0,this.sb,!0),Ll(this,t,!1,this.nb,!0),Tl(this,t,!0,this.sb),Tl(this,t,!1,this.nb),Ll(this,t,!0,this.sb,!1),Ll(this,t,!1,this.nb,!1)),(n=this.isClipping)&&t.save(),i=this.zb(),o=this.Y.j,r=o.length,s=0;s<r;s++)a=o[s],n&&a===i&&(t.clipInsteadOfFill=!0),a.hc(t,e),n&&a===i&&(t.clipInsteadOfFill=!1);n&&(t.restore(),t.Rc(!0))}},i.bk=function(t,e,i,n,o){var r=this.Zd(),s=this.transform,a=1/(s.m11*s.m22-s.m12*s.m21),l=s.m22*a,h=-s.m12*a,u=-s.m21*a,c=s.m11*a,f=a*(s.m21*s.dy-s.m22*s.dx),d=a*(s.m12*s.dx-s.m11*s.dy);if(null!==this.areaBackground)return s=this.actualBounds,We.Tc(s.left,s.top,s.right,s.bottom,t,e,i,n,o);if(null!==this.background)return r=t*l+e*u+f,a=t*h+e*c+d,t=i*l+n*u+f,l=i*h+n*c+d,o.h(0,0),i=this.naturalBounds,r=We.Tc(0,0,i.width,i.height,r,a,t,l,o),o.transform(s),r;r||(l=1,u=h=0,c=1,d=f=0),a=t*l+e*u+f,t=t*h+e*c+d,l=i*l+n*u+f,i=i*h+n*c+d,o.h(l,i),n=(l-a)*(l-a)+(i-t)*(i-t),h=!1,c=this.Y.j,d=c.length,u=mt.alloc(),f=null,e=1/0;var p=null;this.isClipping&&(p=mt.alloc(),f=this.zb(),(h=f.bk(a,t,l,i,p))&&(e=(a-p.x)*(a-p.x)+(t-p.y)*(t-p.y)));for(var g=0;g<d;g++){var m=c[g];m.visible&&m!==f&&m.bk(a,t,l,i,u)&&(h=!0,m=(a-u.x)*(a-u.x)+(t-u.y)*(t-u.y),m<n&&(n=m,o.set(u)))}return this.isClipping&&(e>n&&o.set(p),mt.free(p)),mt.free(u),r&&o.transform(s),h},i.s=function(t){Ks.prototype.s.call(this,t),t=null,this.va!==Nl.Auto&&this.va!==Nl.Link||(t=this.zb());for(var e=this.Y.j,i=e.length,n=0;n<i;n++){var o=e[n];if((o===t||o.isPanelMain)&&o.s(!0),!o.desiredSize.o()){var r=sa(o,!1);(o instanceof ic||o instanceof Nl||o instanceof mh||r!==ts)&&o.s(!0)}}},i.dm=function(){if(!1===pa(this)){ga(this,!0),va(this,!0);for(var t=this.Y.j,e=t.length,i=0;i<e;i++)t[i].dm()}},i.fl=function(){if(0!==(2048&this.H)===!1){fa(this,!0),da(this,!0);for(var t=this.Y.j,e=t.length,i=0;i<e;i++)t[i].iv()}},i.iv=function(){da(this,!0);for(var t=this.Y.j,e=t.length,i=0;i<e;i++)t[i].iv()},i.hm=function(t,e,i,n){var o=this.hg;o.h(0,0,0,0);var r=this.desiredSize,s=this.minSize;void 0===i&&(i=s.width,n=s.height),i=Math.max(i,s.width),n=Math.max(n,s.height);var a=this.maxSize;isNaN(r.width)||(t=Math.min(r.width,a.width)),isNaN(r.height)||(e=Math.min(r.height,a.height)),t=Math.max(i,t),e=Math.max(n,e);var l=this.eb;t=Math.max(t-l.left-l.right,0),e=Math.max(e-l.top-l.bottom,0);var h=this.Y.j;0!==h.length&&this.va.measure(this,t,e,h,o,i,n),t=o.width+l.left+l.right,l=o.height+l.top+l.bottom,isFinite(r.width)&&(t=r.width),isFinite(r.height)&&(l=r.height),t=Math.min(a.width,t),l=Math.min(a.height,l),t=Math.max(s.width,t),l=Math.max(s.height,l),t=Math.max(i,t),l=Math.max(n,l),Ht(o,t,l),Ht(this.naturalBounds,t,l),Zs(this,0,0,t,l)},i.zb=function(){if(null===this.ti){var t=this.Y.j,e=t.length;if(0===e)return null;for(var i=0;i<e;i++){var n=t[i];if(!0===n.isPanelMain)return this.ti=n}this.ti=t[0]}return this.ti},i.th=function(t,e,i,n){var o=this.Y.j;if(this.actualBounds.h(t,e,i,n),0!==o.length){if(!this.desiredSize.o()){t=sa(this,!0);var r=this.measuredBounds;e=r.width,r=r.height;var s=this.Tg,a=s.left+s.right;switch(s=s.top+s.bottom,e===i&&r===n&&(t=ts),t){case ts:(e>i||r>n)&&(this.s(),this.measure(e>i?i:e,r>n?n:r,0,0));break;case Qr:this.s(!0),this.measure(i+a,n+s,0,0);break;case ns:this.s(!0),this.measure(i+a,r+s,0,0);break;case os:this.s(!0),this.measure(e+a,n+s,0,0)}}this.va.arrange(this,o,this.hg)}},i.vh=function(t){var e=this.naturalBounds,i=jl(this);if(Wt(0,0,e.width,e.height,t.x,t.y)){e=this.Y.j;for(var n=e.length,o=mt.allocAt(0,0);n--;){var r=e[n];if((r.visible||r===i)&&(wt(o.set(t),r.transform),r.ea(o)))return mt.free(o),!0}return mt.free(o),null!==this.ib||null!==this.dc}return!1},i.Qs=function(t){if(this.Dk===t)return this;for(var e=this.Y.j,i=e.length,n=0;n<i;n++){var o=e[n].Qs(t);if(null!==o)return o}return null},i.ym=function(t,e){if(e(this,t),t instanceof Nl){t=t.Y.j;for(var i=t.length,n=0;n<i;n++)this.ym(t[n],e)}},i.Yl=function(t){return Il(this,this,t)},i.$a=function(t){if(this.name===t)return this;var e=this.Y.j,i=e.length;null===this.ei&&null===this.je||(i=Xl(this));for(var n=0;n<i;n++){var o=e[n];if(o instanceof Nl){var r=o.$a(t);if(null!==r)return r}if(o.name===t)return o}return null},i.Zd=function(){return!(this.type===Nl.TableRow||this.type===Nl.TableColumn)},i.Sb=function(t,e,i){if(!1===this.pickable)return null;if(void 0===e&&(e=null),void 0===i&&(i=null),ma(this))return null;var n=this.naturalBounds,o=1/this.Ce(),r=this.Zd(),s=r?t:wt(mt.allocAt(t.x,t.y),this.transform),a=this.diagram,l=10,h=5;if(null!==a&&(l=a.bm(\"extraTouchArea\"),h=l/2),Wt(-h*o,-h*o,n.width+l*o,n.height+l*o,s.x,s.y)){if(!this.isAtomic){o=this.Y.j;var u=o.length;if(a=mt.alloc(),h=(l=this.isClipping)?this.zb():null,l&&(h.Zd()?wt(a.set(t),h.transform):a.set(t),!h.ea(a)))return mt.free(a),r||mt.free(s),null;for(var c=jl(this);u--;){var f=o[u];if((f.visible||f===c)&&(f.Zd()?wt(a.set(t),f.transform):a.set(t),!l||f!==h)){var d=null;if(f instanceof Nl?d=f.Sb(a,e,i):!0===f.pickable&&f.ea(a)&&(d=f),null!==d&&(null!==e&&(d=e(d)),null!==d&&(null===i||i(d))))return mt.free(a),r||mt.free(s),d}}mt.free(a)}return null===this.background&&null===this.areaBackground?(r||mt.free(s),null):(t=Wt(0,0,n.width,n.height,s.x,s.y)?this:null,r||mt.free(s),t)}return r||mt.free(s),null},i.Fi=function(t,e,i,n){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===i&&(i=null);var o=this.naturalBounds,r=this.Zd(),s=r?t:wt(mt.allocAt(t.x,t.y),this.transform);if(o=Wt(0,0,o.width,o.height,s.x,s.y),this.type===Nl.TableRow||this.type===Nl.TableColumn||o){if(!this.isAtomic){for(var a=this.Y.j,l=a.length,h=mt.alloc(),u=jl(this);l--;){var c=a[l];if(c.visible||c===u){c.Zd()?wt(h.set(t),c.transform):h.set(t);var f=c;c=c instanceof Nl?c:null,(null!==c?c.Fi(h,e,i,n):f.ea(h))&&!1!==f.pickable&&(null!==e&&(f=e(f)),null===f||null!==i&&!i(f)||n.add(f))}}mt.free(h)}return r||mt.free(s),o&&(null!==this.background||null!==this.areaBackground)}return r||mt.free(s),!1},i.mg=function(t,e,i,n,o,r){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===i&&(i=null);var s=r;if(void 0===r&&(s=ae.alloc(),s.reset()),s.multiply(this.transform),this.uh(t,s))return Rl(this,e,i,o),void 0===r&&ae.free(s),!0;if(this.Ic(t,s)){if(!this.isAtomic)for(var a=jl(this),l=this.Y.j,h=l.length;h--;){var u=l[h];if(u.visible||u===a){var c=u.actualBounds,f=this.naturalBounds;c.x>f.width||c.y>f.height||0>c.x+c.width||0>c.y+c.height||(c=u,u=u instanceof Nl?u:null,f=ae.alloc(),f.set(s),(null!==u?u.mg(t,e,i,n,o,f):Qs(c,t,n,f))&&(null!==e&&(c=e(c)),null===c||null!==i&&!i(c)||o.add(c)),ae.free(f))}}return void 0===r&&ae.free(s),n}return void 0===r&&ae.free(s),!1},i.ng=function(t,e,i,n,o,r){if(!1===this.pickable)return!1;void 0===i&&(i=null),void 0===n&&(n=null);var s=this.naturalBounds,a=this.Zd(),l=a?t:wt(mt.allocAt(t.x,t.y),this.transform),h=a?e:wt(mt.allocAt(e.x,e.y),this.transform),u=l.Be(h),c=0<l.x&&l.x<s.width&&0<l.y&&l.y<s.height||xt(l.x,l.y,0,0,0,s.height)<=u||xt(l.x,l.y,0,s.height,s.width,s.height)<=u||xt(l.x,l.y,s.width,s.height,s.width,0)<=u||xt(l.x,l.y,s.width,0,0,0)<=u;if(s=l.cd(0,0)<=u&&l.cd(0,s.height)<=u&&l.cd(s.width,0)<=u&&l.cd(s.width,s.height)<=u,a||(mt.free(l),mt.free(h)),c){if(!this.isAtomic){l=mt.alloc(),h=mt.alloc(),u=jl(this);for(var f=this.Y.j,d=f.length;d--;){var p=f[d];if(p.visible||p===u){var g=p.actualBounds,m=this.naturalBounds;a&&(g.x>m.width||g.y>m.height||0>g.x+g.width||0>g.y+g.height)||(p.Zd()?(g=p.transform,wt(l.set(t),g),wt(h.set(e),g)):(l.set(t),h.set(e)),g=p,p=p instanceof Nl?p:null,(null!==p?p.ng(l,h,i,n,o,r):g.jx(l,h,o))&&(null!==i&&(g=i(g)),null===g||null!==n&&!n(g)||r.add(g)))}}mt.free(l),mt.free(h)}return o?c:s}return!1},i.add=function(t){this.Ib(this.Y.count,t)},i.N=function(t){return this.Y.N(t)},i.Ib=function(t,e){e instanceof lu&&k(\"Cannot add a Part to a Panel: \"+e+\"; use a Panel instead\"),(this===e||this.qg(e))&&(this===e&&k(\"Cannot make a Panel contain itself: \"+this.toString()),k(\"Cannot make a Panel indirectly contain itself: \"+this.toString()+\" already contains \"+e.toString()));var i=e.panel;if(null!==i&&i!==this&&k(\"Cannot add a GraphObject that already belongs to another Panel to this Panel: \"+e.toString()+\", already contained by \"+i.toString()+\", cannot be shared by this Panel: \"+this.toString()),this.va!==Nl.Grid||e instanceof sh||k(\"Can only add Shapes to a Grid Panel, not: \"+e),this.va!==Nl.Graduated||e instanceof sh||e instanceof mh||k(\"Can only add Shapes or TextBlocks to a Graduated Panel, not: \"+e),e.Si(this),e.Aj=null,null!==this.itemArray){var o=e.data;null!==o&&\"object\"===n(o)&&(null===this.Ed&&(this.Ed=new gt),this.Ed.add(o,e))}var r=this.Y;if(o=-1,i===this){for(var s=-1,a=this.Y.j,l=a.length,h=0;h<l;h++)if(a[h]===e){s=h;break}if(-1!==s){if(s===t||s+1>=r.count&&t>=r.count)return;r.mb(s),o=s}else k(\"element \"+e.toString()+\" has panel \"+i.toString()+\" but is not contained by it.\")}(0>t||t>r.count)&&(t=r.count),r.Ib(t,e),(0===t||e.isPanelMain)&&(this.ti=null),pa(this)||this.s(),e.s(!1),(null!==e.portId||e instanceof Nl&&!0===e.xh)&&(this.xh=!0),this.Mg=null,i=this.part,null!==i&&(i.vj=null,i.Ug=NaN,this.xh&&i instanceof Au&&(i.xh=!0),i.xh&&i instanceof Au&&(i.rc=null),r=this.diagram,null!==r&&r.undoManager.isUndoingRedoing||(-1!==o&&i.ab(Pi,\"elements\",this,e,null,o,null),i.ab(Ni,\"elements\",this,null,e,null,t),this.rg()||Wl(this,e,!1)))},i.remove=function(t){for(var e=this.Y.j,i=e.length,n=-1,o=0;o<i;o++)if(e[o]===t){n=o;break}-1!==n&&this.xc(n,!0)},i.mb=function(t){0<=t&&this.xc(t,!0)},i.xc=function(t,e){var i=this.Y,o=i.N(t);if(o.Aj=null,o.Si(null),null!==this.Ed){var r=o.data;\"object\"===n(r)&&this.Ed.remove(r)}i.mb(t),ga(this,!1),this.s(),this.ti===o&&(this.ti=null),this.Mg=null;var s=this.part;null!==s&&(s.vj=null,s.Ug=NaN,s.Jb(),s instanceof Au&&(o instanceof Nl?o.ym(o,(function(t,i){Yu(s,i,e)})):Yu(s,o,e)),i=this.diagram,null!==i&&i.undoManager.isUndoingRedoing||s.ab(Pi,\"elements\",this,o,null,t,null))},Nl.prototype.getRowDefinition=function(t){0>t&&C(t,\">= 0\",Nl,\"getRowDefinition:idx\"),t=Math.round(t);var e=this.sb;if(void 0===e)return null;if(void 0===e[t]){var i=new eh;i.Si(this),i.isRow=!0,i.index=t,e[t]=i}return e[t]},Nl.prototype.Av=function(t){0>t&&C(t,\">= 0\",Nl,\"removeRowDefinition:idx\"),t=Math.round(t);var e=this.sb;void 0!==e&&(this.ab(Pi,\"coldefs\",this,e[t],null,t,null),e[t]&&delete e[t],this.s())},Nl.prototype.getColumnDefinition=function(t){0>t&&C(t,\">= 0\",Nl,\"getColumnDefinition:idx\"),t=Math.round(t);var e=this.nb;if(void 0===e)return null;if(void 0===e[t]){var i=new eh;i.Si(this),i.isRow=!1,i.index=t,e[t]=i}return e[t]},i=Nl.prototype,i.yv=function(t){0>t&&C(t,\">= 0\",Nl,\"removeColumnDefinition:idx\"),t=Math.round(t);var e=this.nb;void 0!==e&&(this.ab(Pi,\"coldefs\",this,e[t],null,t,null),e[t]&&delete e[t],this.s())},i.Ry=function(t){if(0>t||this.type!==Nl.Table)return-1;for(var e=0,i=this.sb,n=i.length,o=this.wi;o<n;o++){var r=i[o];if(void 0!==r&&(e+=r.total,t<e))break}return o},i.Jy=function(t){if(0>t||this.type!==Nl.Table)return-1;for(var e=0,i=this.nb,n=i.length,o=this.gi;o<n;o++){var r=i[o];if(void 0!==r&&(e+=r.total,t<e))break}return o},i.iz=function(t,e){if(void 0===e&&(e=new mt(NaN,NaN)),this.type!==Nl.Graduated)return e.h(NaN,NaN),e;t=Math.min(Math.max(t,this.graduatedMin),this.graduatedMax);var i=this.zb();return i.geometry.cv((t-this.graduatedMin)/this.graduatedRange,e),i.transform.ta(e)},i.jz=function(t){if(this.type!==Nl.Graduated)return NaN;var e=this.zb();return e.transform.Ud(t),e.geometry.mx(t)*this.graduatedRange+this.graduatedMin},i.xy=function(){var t=this.copy();return zl(t,(function(t){t instanceof Nl&&(t.Qh=null,t.jb=null);var e=t.bb;null!==e&&(t.bb=null,e.each((function(e){t.bind(e.copy())})))})),t},i.Ea=function(t){var e=this.Qh;if(null!==e)for(void 0===t&&(t=\"\"),e=e.iterator;e.next();){var i=e.value,n=i.sourceProperty;if((\"\"===t||\"\"===n||n===t)&&(n=i.targetProperty,null!==i.converter||\"\"!==n)){n=this.data;var o=i.sourceName;if(null!==o)n=\"\"===o||\"/\"===o||\".\"===o||\"..\"===o?this:this.$a(o);else{var r=this.diagram;null!==r&&i.isToModel&&(n=r.model.modelData)}if(null!==n){r=this;var s=i.Xi;if(-1!==s){if(r=this.Qs(s),null===r)continue}else null!==i.Qd&&(r=i.Qd);if(\"/\"===o?n=r.part:\".\"===o?n=r:\"..\"===o&&(n=r.panel),o=i.wp,0!==o){if(!(r instanceof Nl))continue;1===o?r=r.getColumnDefinition(i.Nl):2===o&&(r=r.getRowDefinition(i.Nl))}void 0!==r&&i.Xv(r,n)}}}},i.nt=function(){for(var t=Xl(this);this.Y.length>t;)this.xc(this.Y.length-1,!1);if(t=this.itemArray,null!==t)for(var e=t.length,i=0;i<e;i++)Ul(this,t[i],i)},i.ix=function(t){return void 0===t||null===t||null===this.Ed?null:this.Ed.J(t)},p.Object.defineProperties(Nl.prototype,{type:{get:function(){return this.va},set:function(t){var e=this.va;e!==t&&(this.va=t,this.va===Nl.Grid?this.isAtomic=!0:this.va===Nl.Table&&Pl(this),this.s(),this.g(\"type\",e,t))}},elements:{get:function(){return this.Y.iterator}},naturalBounds:{get:function(){return this.qc}},padding:{get:function(){return this.eb},set:function(t){\"number\"===typeof t?(0>t&&C(t,\">= 0\",Nl,\"padding\"),t=new ee(t)):(0>t.left&&C(t.left,\">= 0\",Nl,\"padding:value.left\"),0>t.right&&C(t.right,\">= 0\",Nl,\"padding:value.right\"),0>t.top&&C(t.top,\">= 0\",Nl,\"padding:value.top\"),0>t.bottom&&C(t.bottom,\">= 0\",Nl,\"padding:value.bottom\"));var e=this.eb;e.A(t)||(this.eb=t=t.I(),this.s(),this.g(\"padding\",e,t))}},defaultAlignment:{get:function(){return this.nn},set:function(t){var e=this.nn;e.A(t)||(this.nn=t=t.I(),this.s(),this.g(\"defaultAlignment\",e,t))}},defaultStretch:{get:function(){return this.Df},set:function(t){var e=this.Df;e!==t&&(this.Df=t,this.s(),this.g(\"defaultStretch\",e,t))}},defaultSeparatorPadding:{get:function(){return void 0===this.dj?oe:this.dj},set:function(t){if(void 0!==this.dj){\"number\"===typeof t&&(t=new ee(t));var e=this.dj;e.A(t)||(this.dj=t=t.I(),this.s(),this.g(\"defaultSeparatorPadding\",e,t))}}},defaultRowSeparatorStroke:{get:function(){return void 0===this.Vh?null:this.Vh},set:function(t){var e=this.Vh;e!==t&&(null===t||\"string\"===typeof t||t instanceof Ra)&&(t instanceof Ra&&t.freeze(),this.Vh=t,this.R(),this.g(\"defaultRowSeparatorStroke\",e,t))}},defaultRowSeparatorStrokeWidth:{get:function(){return void 0===this.Gg?1:this.Gg},set:function(t){if(void 0!==this.Gg){var e=this.Gg;e!==t&&isFinite(t)&&0<=t&&(this.Gg=t,this.s(),this.g(\"defaultRowSeparatorStrokeWidth\",e,t))}}},defaultRowSeparatorDashArray:{get:function(){return void 0===this.Uh?null:this.Uh},set:function(t){if(void 0!==this.Uh){var e=this.Uh;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;o<i;o++){var r=t[o];\"number\"===typeof r&&0<=r&&isFinite(r)||k(\"defaultRowSeparatorDashArray value \"+r+\" at index \"+o+\" must be a positive number or zero.\"),n+=r}if(0===n){if(null===e)return;t=null}}this.Uh=t,this.R(),this.g(\"defaultRowSeparatorDashArray\",e,t)}}}},defaultColumnSeparatorStroke:{get:function(){return void 0===this.Eg?null:this.Eg},set:function(t){if(void 0!==this.Eg){var e=this.Eg;e!==t&&(null===t||\"string\"===typeof t||t instanceof Ra)&&(t instanceof Ra&&t.freeze(),this.Eg=t,this.R(),this.g(\"defaultColumnSeparatorStroke\",e,t))}}},defaultColumnSeparatorStrokeWidth:{get:function(){return void 0===this.Fg?1:this.Fg},set:function(t){if(void 0!==this.Fg){var e=this.Fg;e!==t&&isFinite(t)&&0<=t&&(this.Fg=t,this.s(),this.g(\"defaultColumnSeparatorStrokeWidth\",e,t))}}},defaultColumnSeparatorDashArray:{get:function(){return void 0===this.Th?null:this.Th},set:function(t){if(void 0!==this.Th){var e=this.Th;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;o<i;o++){var r=t[o];\"number\"===typeof r&&0<=r&&isFinite(r)||k(\"defaultColumnSeparatorDashArray value \"+r+\" at index \"+o+\" must be a positive number or zero.\"),n+=r}if(0===n){if(null===e)return;t=null}}this.Th=t,this.R(),this.g(\"defaultColumnSeparatorDashArray\",e,t)}}}},viewboxStretch:{get:function(){return this.Fp},set:function(t){var e=this.Fp;e!==t&&(this.Fp=t,this.s(),this.g(\"viewboxStretch\",e,t))}},gridCellSize:{get:function(){return this.Ln},set:function(t){var e=this.Ln;if(!e.A(t)){t.o()&&0!==t.width&&0!==t.height||k(\"Invalid Panel.gridCellSize: \"+t),this.Ln=t.I();var i=this.diagram;null!==i&&this===i.grid&&Lr(i),this.R(),this.g(\"gridCellSize\",e,t)}}},gridOrigin:{get:function(){return this.Mn},set:function(t){var e=this.Mn;if(!e.A(t)){t.o()||k(\"Invalid Panel.gridOrigin: \"+t),this.Mn=t.I();var i=this.diagram;null!==i&&this===i.grid&&Lr(i),this.R(),this.g(\"gridOrigin\",e,t)}}},graduatedMin:{get:function(){return this.In},set:function(t){var e=this.In;e!==t&&(this.In=t,this.s(),this.g(\"graduatedMin\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"graduatedRange\")))}},graduatedMax:{get:function(){return this.Hn},set:function(t){var e=this.Hn;e!==t&&(this.Hn=t,this.s(),this.g(\"graduatedMax\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"graduatedRange\")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.Kn},set:function(t){var e=this.Kn;e!==t&&0<t&&(this.Kn=t,this.s(),this.g(\"graduatedTickUnit\",e,t))}},graduatedTickBase:{get:function(){return this.Jn},set:function(t){var e=this.Jn;e!==t&&(this.Jn=t,this.s(),this.g(\"graduatedTickBase\",e,t))}},xh:{get:function(){return 0!==(8388608&this.H)},set:function(t){0!==(8388608&this.H)!==t&&(this.H^=8388608)}},rowCount:{get:function(){return void 0===this.sb?0:this.sb.length}},columnCount:{get:function(){return void 0===this.nb?0:this.nb.length}},rowSizing:{get:function(){return void 0===this.Fj?rh:this.Fj},set:function(t){if(void 0!==this.Fj){var e=this.Fj;e!==t&&(this.Fj=t,this.s(),this.g(\"rowSizing\",e,t))}}},columnSizing:{get:function(){return void 0===this.bj?rh:this.bj},set:function(t){if(void 0!==this.bj){var e=this.bj;e!==t&&(this.bj=t,this.s(),this.g(\"columnSizing\",e,t))}}},topIndex:{get:function(){return void 0===this.wi?0:this.wi},set:function(t){if(void 0!==this.wi){var e=this.wi;e!==t&&((!isFinite(t)||0>t)&&k(\"Panel.topIndex must be greater than zero and a real number, not: \"+t),this.wi=t,this.s(),this.g(\"topIndex\",e,t))}}},leftIndex:{get:function(){return void 0===this.gi?0:this.gi},set:function(t){if(void 0!==this.gi){var e=this.gi;e!==t&&((!isFinite(t)||0>t)&&k(\"Panel.leftIndex must be greater than zero and a real number, not: \"+t),this.gi=t,this.s(),this.g(\"leftIndex\",e,t))}}},data:{get:function(){return this.jb},set:function(t){var e=this.jb;if(e!==t){var i=this instanceof lu&&!(this instanceof ju);ql(this),this.jb=t;var n=this.diagram;null!==n&&(i?(i=n.partManager,this instanceof nc?(null!==e&&i.Dg.remove(e),null!==t&&i.Dg.add(t,this)):this instanceof lu&&(null!==e&&i.Me.remove(e),null!==t&&i.Me.add(t,this))):(i=this.panel,null!==i&&null!==i.Ed&&(null!==e&&i.Ed.remove(e),null!==t&&i.Ed.add(t,this)))),this.g(\"data\",e,t),null!==n&&n.undoManager.isUndoingRedoing||null!==t&&this.Ea()}}},itemIndex:{get:function(){return this.Zn},set:function(t){var e=this.Zn;e!==t&&(this.Zn=t,this.g(\"itemIndex\",e,t))}},itemArray:{get:function(){return this.ei},set:function(t){var e=this.ei;if(e!==t||null!==t&&Gl(this,t)){var i=this.diagram;e!==t&&(null!==i&&null!==e&&Ff(i.partManager,this),this.ei=t,null!==i&&null!==t&&zf(i.partManager,this)),this.g(\"itemArray\",e,t),null!==i&&i.undoManager.isUndoingRedoing||this.nt()}}},itemTemplate:{get:function(){return null===this.je?null:this.je.J(\"\")},set:function(t){if(null===this.je){if(null===t)return;this.je=new gt}var e=this.je.J(\"\");e!==t&&((t instanceof lu||t.isPanelMain)&&k(\"Panel.itemTemplate must not be a Part or be Panel.isPanelMain: \"+t),this.je.add(\"\",t),this.g(\"itemTemplate\",e,t),t=this.diagram,null!==t&&t.undoManager.isUndoingRedoing||this.nt())}},itemTemplateMap:{get:function(){return this.je},set:function(t){var e=this.je;if(e!==t){for(var i=t.iterator;i.next(););this.je=t,this.g(\"itemTemplateMap\",e,t),t=this.diagram,null!==t&&t.undoManager.isUndoingRedoing||this.nt()}}},itemCategoryProperty:{get:function(){return this.gl},set:function(t){var e=this.gl;e!==t&&(this.gl=t,this.g(\"itemCategoryProperty\",e,t))}},isAtomic:{get:function(){return 0!==(1048576&this.H)},set:function(t){var e=0!==(1048576&this.H);e!==t&&(this.H^=1048576,this.g(\"isAtomic\",e,t))}},isClipping:{get:function(){return 0!==(2097152&this.H)},set:function(t){var e=0!==(2097152&this.H);e!==t&&(this.H^=2097152,this.s(),this.g(\"isClipping\",e,t))}},isOpposite:{get:function(){return 0!==(33554432&this.H)},set:function(t){var e=0!==(33554432&this.H);e!==t&&(this.H^=33554432,this.s(),this.g(\"isOpposite\",e,t))}},isEnabled:{get:function(){return 0!==(4194304&this.H)},set:function(t){var e=0!==(4194304&this.H);if(e!==t){var i=null===this.panel||this.panel.rg();this.H^=4194304,this.g(\"isEnabled\",e,t),e=this.diagram,null!==e&&e.undoManager.isUndoingRedoing||i&&Wl(this,this,t)}}},alignmentFocusName:{get:function(){return this.yg},set:function(t){var e=this.yg;e!==t&&(this.yg=t,this.s(),this.g(\"alignmentFocusName\",e,t))}}}),p.Object.defineProperties(Nl,{Position:{get:function(){return th.J(\"Position\")}},Horizontal:{get:function(){return th.J(\"Horizontal\")}},Vertical:{get:function(){return th.J(\"Vertical\")}},Spot:{get:function(){return th.J(\"Spot\")}},Auto:{get:function(){return th.J(\"Auto\")}},Table:{get:function(){return th.J(\"Table\")}},Viewbox:{get:function(){return th.J(\"Viewbox\")}},TableRow:{get:function(){return th.J(\"TableRow\")}},TableColumn:{get:function(){return th.J(\"TableColumn\")}},Link:{get:function(){return th.J(\"Link\")}},Grid:{get:function(){return th.J(\"Grid\")}},Graduated:{get:function(){return th.J(\"Graduated\")}}}),Nl.prototype.findItemPanelForData=Nl.prototype.ix,Nl.prototype.rebuildItemElements=Nl.prototype.nt,Nl.prototype.updateTargetBindings=Nl.prototype.Ea,Nl.prototype.copyTemplate=Nl.prototype.xy,Nl.prototype.graduatedValueForPoint=Nl.prototype.jz,Nl.prototype.graduatedPointForValue=Nl.prototype.iz,Nl.prototype.findColumnForLocalX=Nl.prototype.Jy,Nl.prototype.findRowForLocalY=Nl.prototype.Ry,Nl.prototype.removeColumnDefinition=Nl.prototype.yv,Nl.prototype.removeRowDefinition=Nl.prototype.Av,Nl.prototype.removeAt=Nl.prototype.mb,Nl.prototype.remove=Nl.prototype.remove,Nl.prototype.insertAt=Nl.prototype.Ib,Nl.prototype.elt=Nl.prototype.N,Nl.prototype.add=Nl.prototype.add,Nl.prototype.findObject=Nl.prototype.$a,Nl.prototype.findInVisualTree=Nl.prototype.Yl,Nl.prototype.walkVisualTreeFrom=Nl.prototype.ym,Nl.prototype.findMainElement=Nl.prototype.zb;var Zl=!1,Ql=null,th=new gt;function eh(){st(this),this.ag=null,this.Br=!0,this.Sa=0,this.Pc=NaN,this.Wg=0,this.Vg=1/0,this.wb=Ae,this.sa=this.ka=0,this.bb=null,this.op=nh,this.ue=is,this.kp=this.dg=null,this.lp=NaN,this.ib=this.Hj=null,this.hn=!1}function ih(t){if(t.sizing===nh){var e=t.ag;return t.isRow?e.rowSizing:e.columnSizing}return t.sizing}Nl.className=\"Panel\",Nl.definePanelLayout=Jl,Jl(\"Position\",new dl),Jl(\"Vertical\",new gl),Jl(\"Auto\",new vl),Jl(\"Link\",new Ml),Jl(\"Grid\",new kl),eh.prototype.copy=function(){var t=new eh;return t.Br=this.Br,t.Sa=this.Sa,t.Pc=this.Pc,t.Wg=this.Wg,t.Vg=this.Vg,t.wb=this.wb,t.ka=this.ka,t.sa=this.sa,t.ue=this.ue,t.op=this.op,null===this.dg?t.dg=null:t.dg=this.dg.I(),t.kp=this.kp,t.lp=this.lp,t.Hj=null,null!==this.Hj&&(t.separatorDashArray=L(this.separatorDashArray)),t.ib=this.ib,t.hn=this.hn,t.bb=this.bb,t},i=eh.prototype,i.Vl=function(t){t.isRow?this.height=t.height:this.width=t.width,this.minimum=t.minimum,this.maximum=t.maximum,this.alignment=t.alignment,this.stretch=t.stretch,this.sizing=t.sizing,this.dg=null===t.separatorPadding?null:t.separatorPadding.I(),this.separatorStroke=t.separatorStroke,this.separatorStrokeWidth=t.separatorStrokeWidth,this.Hj=null,t.separatorDashArray&&(this.Hj=L(t.separatorDashArray)),this.background=t.background,this.coversSeparators=t.coversSeparators,this.bb=t.bb},i.fb=function(t){t.classType===eh&&(this.sizing=t)},i.toString=function(){return\"RowColumnDefinition \"+(this.isRow?\"(Row \":\"(Column \")+this.index+\") #\"+lt(this)},i.Si=function(t){this.ag=t},i.Nu=function(){var t=0,e=0,i=this.ag,n=this.isRow;if(null!==i&&i.type===Nl.Table)for(var o=n?i.sb.length:i.nb.length,r=0;r<o;r++){var s=n?i.sb[r]:i.nb[r];if(void 0!==s){e=s.index;break}}if(this.index!==e&&(e=this.separatorStroke,null===e&&null!==i&&(e=this.isRow?i.defaultRowSeparatorStroke:i.defaultColumnSeparatorStroke),null!==e&&(t=this.separatorStrokeWidth,isNaN(t)&&(t=null!==i?this.isRow?i.defaultRowSeparatorStrokeWidth:i.defaultColumnSeparatorStrokeWidth:0))),e=this.dg,null===e){if(null===i)return t;e=i.defaultSeparatorPadding}return t+(this.isRow?e.top:e.left)},i.tc=function(){var t=0,e=this.ag,i=0,n=this.isRow;if(null!==e&&e.type===Nl.Table)for(var o=n?e.sb.length:e.nb.length,r=0;r<o;r++){var s=n?e.sb[r]:e.nb[r];if(void 0!==s){i=s.index;break}}if(this.index!==i&&(i=this.separatorStroke,null===i&&null!==e&&(i=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),null!==i&&(t=this.separatorStrokeWidth,isNaN(t)&&(t=null!==e?n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth:0))),n=this.dg,null===n){if(null===e)return t;n=e.defaultSeparatorPadding}return t+(this.isRow?n.top+n.bottom:n.left+n.right)},i.yb=function(t,e,i){var n=this.ag;if(null!==n&&(n.ab(Si,t,this,e,i,void 0,void 0),null!==this.bb&&(e=n.diagram,null!==e&&!e.skipsModelSourceBindings&&(n=n.Gi(),null!==n&&(e=n.data,null!==e)))))for(i=this.bb.iterator;i.next();)i.value.uq(this,e,t,n)},i.bind=function(t){t.Qd=this;var e=this.panel;if(null!==e){var i=e.Gi();null!==i&&Yl(i)&&k(\"Cannot add a Binding to a RowColumnDefinition that is already frozen: \"+t+\" on \"+e)}null===this.bb&&(this.bb=new nt),this.bb.add(t)},p.Object.defineProperties(eh.prototype,{panel:{get:function(){return this.ag}},isRow:{get:function(){return this.Br},set:function(t){this.Br=t}},index:{get:function(){return this.Sa},set:function(t){this.Sa=t}},height:{get:function(){return this.Pc},set:function(t){var e=this.Pc;e!==t&&(0>t&&C(t,\">= 0\",eh,\"height\"),this.Pc=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"height\",e,t))}},width:{get:function(){return this.Pc},set:function(t){var e=this.Pc;e!==t&&(0>t&&C(t,\">= 0\",eh,\"width\"),this.Pc=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"width\",e,t))}},minimum:{get:function(){return this.Wg},set:function(t){var e=this.Wg;e!==t&&((0>t||!isFinite(t))&&C(t,\">= 0\",eh,\"minimum\"),this.Wg=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"minimum\",e,t))}},maximum:{get:function(){return this.Vg},set:function(t){var e=this.Vg;e!==t&&(0>t&&C(t,\">= 0\",eh,\"maximum\"),this.Vg=t,this.actual=this.ka,null!==this.panel&&this.panel.s(),this.yb(\"maximum\",e,t))}},alignment:{get:function(){return this.wb},set:function(t){var e=this.wb;e.A(t)||(this.wb=t.I(),null!==this.panel&&this.panel.s(),this.yb(\"alignment\",e,t))}},stretch:{get:function(){return this.ue},set:function(t){var e=this.ue;e!==t&&(this.ue=t,null!==this.panel&&this.panel.s(),this.yb(\"stretch\",e,t))}},separatorPadding:{get:function(){return this.dg},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.dg;null!==t&&null!==e&&e.A(t)||(null!==t&&(t=t.I()),this.dg=t,null!==this.panel&&this.panel.s(),this.yb(\"separatorPadding\",e,t))}},separatorStroke:{get:function(){return this.kp},set:function(t){var e=this.kp;e!==t&&(null===t||\"string\"===typeof t||t instanceof Ra)&&(t instanceof Ra&&t.freeze(),this.kp=t,null!==this.panel&&this.panel.s(),this.yb(\"separatorStroke\",e,t))}},separatorStrokeWidth:{get:function(){return this.lp},set:function(t){var e=this.lp;e!==t&&(this.lp=t,null!==this.panel&&this.panel.s(),this.yb(\"separatorStrokeWidth\",e,t))}},separatorDashArray:{get:function(){return this.Hj},set:function(t){var e=this.Hj;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;o<i;o++){var r=t[o];\"number\"===typeof r&&0<=r&&isFinite(r)||k(\"separatorDashArray value \"+r+\" at index \"+o+\" must be a positive number or zero.\"),n+=r}if(0===n){if(null===e)return;t=null}}this.Hj=t,null!==this.panel&&this.panel.R(),this.yb(\"separatorDashArray\",e,t)}}},background:{get:function(){return this.ib},set:function(t){var e=this.ib;e!==t&&(null===t||\"string\"===typeof t||t instanceof Ra)&&(t instanceof Ra&&t.freeze(),this.ib=t,null!==this.panel&&this.panel.R(),this.yb(\"background\",e,t))}},coversSeparators:{get:function(){return this.hn},set:function(t){var e=this.hn;e!==t&&(this.hn=t,null!==this.panel&&this.panel.R(),this.yb(\"coversSeparators\",e,t))}},sizing:{get:function(){return this.op},set:function(t){var e=this.op;e!==t&&(this.op=t,null!==this.panel&&this.panel.s(),this.yb(\"sizing\",e,t))}},actual:{get:function(){return this.ka},set:function(t){this.ka=isNaN(this.Pc)?Math.max(Math.min(this.Vg,t),this.Wg):Math.max(Math.min(this.Vg,this.Pc),this.Wg)}},total:{get:function(){return this.ka+this.tc()},set:function(t){this.ka=isNaN(this.Pc)?Math.max(Math.min(this.Vg,t),this.Wg):Math.max(Math.min(this.Vg,this.Pc),this.Wg),this.ka=Math.max(0,this.ka-this.tc())}},position:{get:function(){return this.sa},set:function(t){this.sa=t}}}),eh.prototype.bind=eh.prototype.bind,eh.prototype.computeEffectiveSpacing=eh.prototype.tc,eh.prototype.computeEffectiveSpacingTop=eh.prototype.Nu;var nh=new K(eh,\"Default\",0),oh=new K(eh,\"None\",1),rh=new K(eh,\"ProportionalExtra\",2);function sh(){Ks.call(this),this.Pd=this.qa=null,this.Vk=\"None\",this.Gn=is,this.Gc=this.Wk=\"black\",this.ih=1,this.Il=\"butt\",this.Jl=\"miter\",this.Jj=10,this.gh=null,this.hh=0,this.cf=this.bf=Ae,this.Lo=this.Ko=NaN,this.Rn=!1,this.No=null,this.Yk=this.Pl=\"None\",this.Cd=1,this.Bd=0,this.zd=1,this.Ad=null}function ah(t,e,i,n){var o=i.length;if(!(4>o)){var r=n.measuredBounds,s=Math.max(1,r.width);r=r.height;for(var a,l,h,u,c,f,d=i[0],p=i[1],g=0,m=j(),v=2;v<o;v+=2)a=i[v],l=i[v+1],h=a-d,d=l-p,0===h&&(h=.001),u=d/h,c=Math.atan2(d,h),f=Math.sqrt(h*h+d*d),m.push([h,c,u,f]),g+=f,d=a,p=l;d=i[0],p=i[1],h=n.measuredBounds.width,n instanceof sh&&(h-=n.strokeWidth),1>h&&(h=1),o=i=h,a=s/2,l=0!==a,v=0,f=m[v],h=f[0],c=f[1],u=f[2],f=f[3];for(var y=0;.1<=g;){if(0===y&&(l?(o=i,o-=a,g-=a,l=!1):o=i,0===o&&(o=1)),o>g)return void A(m);o>f?(y=o-f,o=f):y=0;var b=Math.sqrt(o*o/(1+u*u));if(0>h&&(b=-b),d+=b,p+=u*b,t.translate(d,p),t.rotate(c),t.translate(-s/2,-r/2),0===y&&n.Ci(t,e),t.translate(s/2,r/2),t.rotate(-c),t.translate(-d,-p),g-=o,f-=o,0!==y){if(v++,v===m.length)return void A(m);f=m[v],h=f[0],c=f[1],u=f[2],f=f[3],o=y}}A(m)}}function lh(t){var e=t.geometryStretch;return null!==t.Pd?e===is?Qr:e:e===is?gh[t.figure].defaultStretch:e}function hh(t,e,i,n,o){return t=i.x-t,e=i.y-e,e=t*t+e*e,e<n?(o.x=i.x,o.y=i.y,e):n}function uh(t,e,i,n,o,r,s,a,l){var h=!1,u=(o-s)*(e-n)-(r-a)*(t-i);return 0!==u&&(l.x=((o*a-r*s)*(t-i)-(o-s)*(t*n-e*i))/u,l.y=((o*a-r*s)*(e-n)-(r-a)*(t*n-e*i))/u,(t>i?t-i:i-t)<(e>n?e-n:n-e)?(t=e<n?e:n,e=e<n?n:e,(l.y>t||We.ca(l.y,t))&&(l.y<e||We.ca(l.y,e))&&(h=!0)):(e=t<i?t:i,t=t<i?i:t,(l.x>e||We.ca(l.x,e))&&(l.x<t||We.ca(l.x,t))&&(h=!0)),h)}function ch(t,e,i,n){if(!t.Tc(e,i,n))return!1;t=e.x,e=e.y;var o=i.x,r=i.y;return i=n.x,n=n.y,t===o?(e<r?(t=e,e=r):t=r,n>=t&&n<=e):(t<o?(n=t,t=o):n=o,i>=n&&i<=t)}function fh(t){var e=t.diagram;null!==e&&e.undoManager.isUndoingRedoing||(t.segmentOrientation=zc,\"None\"!==t.Pl?(t.segmentIndex=-1,t.alignmentFocus=Ve):\"None\"!==t.Yk&&(t.segmentIndex=0,t.alignmentFocus=new Ge(1-Ve.x,Ve.y)))}function dh(t){var e=ph[t];if(void 0===e){var i=t.toLowerCase();if(\"none\"===i)return\"None\";if(e=ph[i],void 0===e){var n,o=null;for(n in We.Bm)if(n.toLowerCase()===i){o=n;break}if(null!==o)return t=ti(We.Bm[o],!1),ph[o]=t,i!==o&&(ph[i]=o),o}}return\"string\"===typeof e?e:e instanceof Je?t:null}eh.className=\"RowColumnDefinition\",eh.Default=nh,eh.None=oh,eh.ProportionalExtra=rh,d(sh,Ks),sh.prototype.cloneProtected=function(t){Ks.prototype.cloneProtected.call(this,t),t.qa=this.qa,t.Vk=this.Vk,t.Gn=this.Gn,t.Pd=this.Pd,t.Wk=this.Wk,t.Gc=this.Gc,t.ih=this.ih,t.Il=this.Il,t.Jl=this.Jl,t.Jj=this.Jj,null!==this.gh&&(t.gh=L(this.gh)),t.hh=this.hh,t.bf=this.bf.I(),t.cf=this.cf.I(),t.Ko=this.Ko,t.Lo=this.Lo,t.Rn=this.Rn,t.No=this.No,t.Pl=this.Pl,t.Yk=this.Yk,t.Cd=this.Cd,t.Bd=this.Bd,t.zd=this.zd,t.Ad=this.Ad},i=sh.prototype,i.fb=function(t){t===ts||t===es||t===rs||t===is?this.geometryStretch=t:Ks.prototype.fb.call(this,t)},i.toString=function(){return\"Shape(\"+(\"None\"!==this.figure?this.figure:\"None\"!==this.toArrow?this.toArrow:this.fromArrow)+\")#\"+lt(this)},i.Ci=function(t,e){var i=this.Gc,n=this.Wk;if(null!==i||null!==n){var o=this.actualBounds,r=this.naturalBounds;null!==n&&ia(this,t,n,!0,!1,r,o),null!==i&&ia(this,t,i,!1,!1,r,o),o=this.part,r=this.ih,0===r&&null!==o&&(r=o instanceof ju&&o.type===Nl.Link&&\"Selection\"===o.category&&o.adornedObject instanceof sh&&o.adornedPart.zb()===o.adornedObject?o.adornedObject.strokeWidth:0),t.lineWidth=r,t.lineJoin=this.Jl,t.lineCap=this.Il,t.miterLimit=this.Jj;var s=!1;o&&e.De(\"drawShadows\")&&(s=o.isShadowed);var a=!0;null!==i&&null===n&&(a=!1),o=!1;var l=this.strokeDashArray;null!==l&&(o=!0,t.Ps(l,this.hh));var h=this.qa;if(null!==h){if(h.type===ai)t.beginPath(),t.moveTo(h.startX,h.startY),t.lineTo(h.endX,h.endY),null!==n&&t.Td(n),0!==r&&null!==i&&t.Wi();else if(h.type===li){var u=h.startX,c=h.startY,f=h.endX,d=h.endY;l=Math.min(u,f),h=Math.min(c,d),u=Math.abs(f-u),c=Math.abs(d-c),null!==n&&(t.beginPath(),t.rect(l,h,u,c),t.Td(n)),null!==i&&(f=n=i=0,a&&s&&(i=t.shadowOffsetX,n=t.shadowOffsetY,f=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),0!==r&&(t.beginPath(),t.rect(l,h,u,c),t.Wi()),a&&s&&(t.shadowOffsetX=i,t.shadowOffsetY=n,t.shadowBlur=f))}else if(h.type===hi)c=h.startX,l=h.startY,f=h.endX,d=h.endY,h=Math.abs(f-c)/2,u=Math.abs(d-l)/2,c=Math.min(c,f)+h,l=Math.min(l,d)+u,t.beginPath(),t.moveTo(c,l-u),t.bezierCurveTo(c+We.xg*h,l-u,c+h,l-We.xg*u,c+h,l),t.bezierCurveTo(c+h,l+We.xg*u,c+We.xg*h,l+u,c,l+u),t.bezierCurveTo(c-We.xg*h,l+u,c-h,l+We.xg*u,c-h,l),t.bezierCurveTo(c-h,l-We.xg*u,c-We.xg*h,l-u,c,l-u),t.closePath(),null!==n&&t.Td(n),0!==r&&null!==i&&(a&&s?(r=t.shadowOffsetX,s=t.shadowOffsetY,i=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0,t.Wi(),t.shadowOffsetX=r,t.shadowOffsetY=s,t.shadowBlur=i):t.Wi());else if(h.type===ui)for(l=h.figures,h=l.length,u=0;u<h;u++){c=l.j[u],t.beginPath(),t.moveTo(c.startX,c.startY),f=c.segments.j,d=f.length;for(var p=null,g=0;g<d;g++){var m=f[g];switch(m.type){case gi:t.moveTo(m.endX,m.endY);break;case mi:t.lineTo(m.endX,m.endY);break;case vi:t.bezierCurveTo(m.point1X,m.point1Y,m.point2X,m.point2Y,m.endX,m.endY);break;case yi:t.quadraticCurveTo(m.point1X,m.point1Y,m.endX,m.endY);break;case bi:if(m.radiusX===m.radiusY){var v=Math.PI/180;t.arc(m.point1X,m.point1Y,m.radiusX,m.startAngle*v,(m.startAngle+m.sweepAngle)*v,0>m.sweepAngle,null!==p?p.endX:c.startX,null!==p?p.endY:c.startY)}else if(p=di(m,c),v=p.length,0===v)t.lineTo(m.centerX,m.centerY);else for(var y=0;y<v;y++){var b=p[y];0===y&&t.lineTo(b[0],b[1]),t.bezierCurveTo(b[2],b[3],b[4],b[5],b[6],b[7])}break;case wi:if(y=v=0,null!==p&&p.type===bi){if(p=di(p,c),b=p.length,0===b){t.lineTo(m.centerX,m.centerY);break}p=p[b-1]||null,null!==p&&(v=p[6],y=p[7])}else v=null!==p?p.endX:c.startX,y=null!==p?p.endY:c.startY;if(p=pi(m,c,v,y),v=p.length,0===v){t.lineTo(m.centerX,m.centerY);break}for(y=0;y<v;y++)b=p[y],t.bezierCurveTo(b[2],b[3],b[4],b[5],b[6],b[7]);break;default:k(\"Segment not of valid type: \"+m.type)}m.isClosed&&t.closePath(),p=m}s?(g=d=f=0,c.isShadowed?(!0===c.isFilled&&null!==n?(t.Td(n),a=!0):a=!1,0!==r&&null!==i&&(a&&(f=t.shadowOffsetX,d=t.shadowOffsetY,g=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),t.Wi(),a&&(t.shadowOffsetX=f,t.shadowOffsetY=d,t.shadowBlur=g))):(a&&(f=t.shadowOffsetX,d=t.shadowOffsetY,g=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),!0===c.isFilled&&null!==n&&t.Td(n),0!==r&&null!==i&&t.Wi(),a&&(t.shadowOffsetX=f,t.shadowOffsetY=d,t.shadowBlur=g))):(!0===c.isFilled&&null!==n&&t.Td(n),0!==r&&null!==i&&t.Wi())}if(o&&t.Ns(),null!==this.pathPattern){if(o=this.pathPattern,o.measure(1/0,1/0),r=o.measuredBounds,o.arrange(0,0,r.width,r.height),s=this.geometry,t.save(),t.beginPath(),r=j(),s.type===ai)r.push(s.startX),r.push(s.startY),r.push(s.endX),r.push(s.endY),ah(t,e,r,o);else if(s.type===ui)for(s=s.figures.iterator;s.next();){for(i=s.value,r.length=0,r.push(i.startX),r.push(i.startY),n=i.startX,a=i.startY,l=n,h=a,u=i.segments.j,c=u.length,f=0;f<c;f++){switch(d=u[f],d.type){case gi:ah(t,e,r,o),r.length=0,r.push(d.endX),r.push(d.endY),n=d.endX,a=d.endY,l=n,h=a;break;case mi:r.push(d.endX),r.push(d.endY),n=d.endX,a=d.endY;break;case vi:We.ze(n,a,d.point1X,d.point1Y,d.point2X,d.point2Y,d.endX,d.endY,.5,r),n=d.endX,a=d.endY;break;case yi:We.jq(n,a,d.point1X,d.point1Y,d.endX,d.endY,.5,r),n=d.endX,a=d.endY;break;case bi:if(g=di(d,i),m=g.length,0===m){r.push(d.centerX),r.push(d.centerY),n=d.centerX,a=d.centerY;break}for(p=0;p<m;p++)v=g[p],We.ze(n,a,v[2],v[3],v[4],v[5],v[6],v[7],.5,r),n=v[6],a=v[7];break;case wi:if(g=pi(d,i,n,a),m=g.length,0===m){r.push(d.centerX),r.push(d.centerY),n=d.centerX,a=d.centerY;break}for(p=0;p<m;p++)v=g[p],We.ze(n,a,v[2],v[3],v[4],v[5],v[6],v[7],.5,r),n=v[6],a=v[7];break;default:k(\"Segment not of valid type: \"+d.type)}d.isClosed&&(r.push(l),r.push(h),ah(t,e,r,o))}ah(t,e,r,o)}else if(s.type===li)r.push(s.startX),r.push(s.startY),r.push(s.endX),r.push(s.startY),r.push(s.endX),r.push(s.endY),r.push(s.startX),r.push(s.endY),r.push(s.startX),r.push(s.startY),ah(t,e,r,o);else if(s.type===hi){if(a=new ci,a.startX=s.endX,a.startY=(s.startY+s.endY)/2,n=new fi(bi),n.startAngle=0,n.sweepAngle=360,n.centerX=(s.startX+s.endX)/2,n.centerY=(s.startY+s.endY)/2,n.radiusX=Math.abs(s.startX-s.endX)/2,n.radiusY=Math.abs(s.startY-s.endY)/2,a.add(n),s=di(n,a),i=s.length,0===i)r.push(n.centerX),r.push(n.centerY);else for(n=a.startX,a=a.startY,l=0;l<i;l++)h=s[l],We.ze(n,a,h[2],h[3],h[4],h[5],h[6],h[7],.5,r),n=h[6],a=h[7];ah(t,e,r,o)}A(r),t.restore(),t.Rc(!1)}}}},i.ma=function(t,e){if(void 0===e&&(e=new mt),t instanceof Ge){t.jc()&&k(\"getDocumentPoint Spot must be a real, specific Spot, not: \"+t.toString());var i=this.naturalBounds,n=this.strokeWidth;e.h(t.x*(i.width+n)-n/2+i.x+t.offsetX,t.y*(i.height+n)-n/2+i.y+t.offsetY)}else e.set(t);return this.rd.ta(e),e},i.Vp=function(t){void 0===t&&(t=new _t);var e=this.naturalBounds,i=this.rd;e=_t.allocAt(e.x,e.y,e.width,e.height);var n=this.strokeWidth;return e.Uc(n/2,n/2),n=mt.allocAt(e.x,e.y).transform(i),t.h(n.x,n.y,0,0),n.h(e.right,e.y).transform(i),$t(t,n.x,n.y,0,0),n.h(e.right,e.bottom).transform(i),$t(t,n.x,n.y,0,0),n.h(e.x,e.bottom).transform(i),$t(t,n.x,n.y,0,0),_t.free(e),mt.free(n),t},i.vh=function(t,e){var i=this.geometry;if(null===i||null===this.fill&&null===this.stroke)return!1;var n=i.bounds,o=this.strokeWidth/2;i.type!==ai||e||(o+=2);var r=_t.alloc();if(r.assign(n),r.Uc(o+2,o+2),!r.ea(t))return _t.free(r),!1;if(n=o+1e-4,i.type===ai)return null!==this.stroke&&(n=(i.endX-i.startX)*(t.x-i.startX)+(i.endY-i.startY)*(t.y-i.startY),!(0>(i.startX-i.endX)*(t.x-i.endX)+(i.startY-i.endY)*(t.y-i.endY)||0>n)&&(_t.free(r),We.Ub(i.startX,i.startY,i.endX,i.endY,o,t.x,t.y)));if(i.type===li){e=i.startX;var s=i.startY,a=i.endX;if(i=i.endY,r.x=Math.min(e,a),r.y=Math.min(s,i),r.width=Math.abs(a-e),r.height=Math.abs(i-s),null===this.fill){if(r.Uc(-n,-n),r.ea(t))return _t.free(r),!1;r.Uc(n,n)}return null!==this.stroke&&r.Uc(o,o),t=r.ea(t),_t.free(r),t}if(i.type===hi){s=i.startX,o=i.startY,a=i.endX;var l=i.endY;if(i=Math.min(s,a),e=Math.min(o,l),s=Math.abs(a-s)/2,o=Math.abs(l-o)/2,i=t.x-(i+s),e=t.y-(e+o),null===this.fill){if(s-=n,o-=n,0>=s||0>=o||1>=i*i/(s*s)+e*e/(o*o))return _t.free(r),!1;s+=n,o+=n}return null!==this.stroke&&(s+=n,o+=n),_t.free(r),!(0>=s||0>=o)&&1>=i*i/(s*s)+e*e/(o*o)}return i.type===ui?(_t.free(r),null===this.fill?oi(i,t.x,t.y,o):i.ea(t,o,1<this.strokeWidth,e)):(k(\"Unknown Geometry type: \"+i.type),!1)},i.hm=function(t,e,i,n){var o=this.desiredSize,r=this.ih;if(t=Math.max(t,0),e=Math.max(e,0),null!==this.Pd)var s=this.geometry.bounds;else{var a=this.figure,l=gh[a];if(void 0===l){var h=We.Je[a];\"string\"===typeof h&&(h=We.Je[h]),\"function\"===typeof h?(l=h(null,100,100),gh[a]=l):k(\"Unsupported Figure: \"+a)}s=l.bounds}a=s.width,l=s.height,h=s.width;var u=s.height;switch(sa(this,!0)){case ts:n=i=0;break;case Qr:h=Math.max(t-r,0),u=Math.max(e-r,0);break;case ns:h=Math.max(t-r,0),n=0;break;case os:i=0,u=Math.max(e-r,0)}switch(isFinite(o.width)&&(h=o.width),isFinite(o.height)&&(u=o.height),o=this.maxSize,s=this.minSize,i=Math.max(i-r,s.width),n=Math.max(n-r,s.height),h=Math.min(o.width,h),u=Math.min(o.height,u),h=isFinite(h)?Math.max(i,h):Math.max(a,i),u=isFinite(u)?Math.max(n,u):Math.max(l,n),i=lh(this),i){case ts:break;case Qr:a=h,l=u;break;case es:i=Math.min(h/a,u/l),isFinite(i)||(i=1),a*=i,l*=i;break;default:k(i+\" is not a valid geometryStretch.\")}null!==this.Pd?(a=Math.max(a,.01),l=Math.max(l,.01),s=null!==this.Pd?this.Pd:this.qa,o=a,n=l,i=s.copy(),s=s.bounds,o/=s.width,n/=s.height,isFinite(o)||(o=1),isFinite(n)||(n=1),1===o&&1===n||i.scale(o,n),this.qa=i):null!==this.qa&&We.ca(this.qa.el,t-r)&&We.ca(this.qa.cl,e-r)||(this.qa=sh.makeGeometry(this,a,l)),s=this.qa.bounds,1/0===t||1/0===e?Zs(this,s.x-r/2,s.y-r/2,0===t&&0===a?0:s.width+r,0===e&&0===l?0:s.height+r):Zs(this,-r/2,-r/2,h+r,u+r)},i.th=function(t,e,i,n){ta(this,t,e,i,n)},i.Tc=function(t,e,i){return this.bk(t.x,t.y,e.x,e.y,i)},i.bk=function(t,e,i,n,o){var r=this.transform,s=1/(r.m11*r.m22-r.m12*r.m21),a=r.m22*s,l=-r.m12*s,h=-r.m21*s,u=r.m11*s,c=s*(r.m21*r.dy-r.m22*r.dx),f=s*(r.m12*r.dx-r.m11*r.dy);if(r=t*a+e*h+c,s=t*l+e*u+f,a=i*a+n*h+c,l=i*l+n*u+f,c=this.ih/2,h=this.qa,null===h&&(this.measure(1/0,1/0),h=this.qa),f=h.bounds,u=!1,h.type===ai)if(1.5>=this.strokeWidth)u=We.Fe(h.startX,h.startY,h.endX,h.endY,r,s,a,l,o);else{if(h.startX===h.endX?(n=c,u=0):(e=(h.endY-h.startY)/(h.endX-h.startX),u=c/Math.sqrt(1+e*e),n=u*e),e=j(),t=new mt,We.Fe(h.startX+n,h.startY+u,h.endX+n,h.endY+u,r,s,a,l,t)&&e.push(t),t=new mt,We.Fe(h.startX-n,h.startY-u,h.endX-n,h.endY-u,r,s,a,l,t)&&e.push(t),t=new mt,We.Fe(h.startX+n,h.startY+u,h.startX-n,h.startY-u,r,s,a,l,t)&&e.push(t),t=new mt,We.Fe(h.endX+n,h.endY+u,h.endX-n,h.endY-u,r,s,a,l,t)&&e.push(t),a=e.length,0===a)return A(e),!1;for(u=!0,l=1/0,n=0;n<a;n++)t=e[n],i=(t.x-r)*(t.x-r)+(t.y-s)*(t.y-s),i<l&&(l=i,o.x=t.x,o.y=t.y);A(e)}else if(h.type===li)u=We.Tc(f.x-c,f.y-c,f.x+f.width+c,f.y+f.height+c,r,s,a,l,o);else if(h.type===hi){e=_t.allocAt(f.x,f.y,f.width,f.height).Uc(c,c);t:if(0===e.width)u=We.Fe(e.x,e.y,e.x,e.y+e.height,r,s,a,l,o);else if(0===e.height)u=We.Fe(e.x,e.y,e.x+e.width,e.y,r,s,a,l,o);else{if(t=e.width/2,h=e.height/2,n=e.x+t,u=e.y+h,i=9999,r!==a&&(i=(s-l)/(r-a)),9999>Math.abs(i)){if(l=s-u-i*(r-n),0>t*t*i*i+h*h-l*l){o.x=NaN,o.y=NaN,u=!1;break t}c=Math.sqrt(t*t*i*i+h*h-l*l),a=(-t*t*i*l+t*h*c)/(h*h+t*t*i*i)+n,t=(-t*t*i*l-t*h*c)/(h*h+t*t*i*i)+n,h=i*(a-n)+l+u,l=i*(t-n)+l+u,Math.abs((r-a)*(r-a))+Math.abs((s-h)*(s-h))<Math.abs((r-t)*(r-t))+Math.abs((s-l)*(s-l))?(o.x=a,o.y=h):(o.x=t,o.y=l)}else{if(a=h*h,l=r-n,a-=a/(t*t)*l*l,0>a){o.x=NaN,o.y=NaN,u=!1;break t}l=Math.sqrt(a),a=u+l,l=u-l,Math.abs(a-s)<Math.abs(l-s)?(o.x=r,o.y=a):(o.x=r,o.y=l)}u=!0}_t.free(e)}else if(h.type===ui){f=mt.alloc();var d=a-r,p=l-s,g=d*d+p*p;o.x=a,o.y=l;for(var m=0;m<h.figures.count;m++){var v=h.figures.j[m],y=v.segments;d=v.startX,p=v.startY;for(var b=d,w=p,x=0;x<y.count;x++){var M=y.j[x],C=M.type,S=M.endX,N=M.endY,P=!1;switch(C){case gi:b=S,w=N;break;case mi:P=uh(d,p,S,N,r,s,a,l,f);break;case vi:P=We.Mp(d,p,M.point1X,M.point1Y,M.point2X,M.point2Y,S,N,r,s,a,l,.6,f);break;case yi:P=We.Mp(d,p,(d+2*M.point1X)/3,(p+2*M.point1Y)/3,(2*M.point1X+S)/3,(2*M.point1X+S)/3,S,N,r,s,a,l,.6,f);break;case bi:case wi:C=M.type===bi?di(M,v):pi(M,v,d,p);var T=C.length;if(0===T){P=uh(d,p,M.centerX,M.centerY,r,s,a,l,f);break}for(N=null,S=0;S<T;S++){if(N=C[S],0===S&&uh(d,p,N[0],N[1],r,s,a,l,f)){var L=hh(r,s,f,g,o);L<g&&(g=L,u=!0)}We.Mp(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],r,s,a,l,.6,f)&&(L=hh(r,s,f,g,o),L<g&&(g=L,u=!0))}S=N[6],N=N[7];break;default:k(\"Unknown Segment type: \"+C)}d=S,p=N,P&&(P=hh(r,s,f,g,o),P<g&&(g=P,u=!0)),M.isClosed&&(S=b,N=w,uh(d,p,S,N,r,s,a,l,f)&&(M=hh(r,s,f,g,o),M<g&&(g=M,u=!0)))}}r=i-t,s=n-e,a=Math.sqrt(r*r+s*s),0!==a&&(r/=a,s/=a),o.x-=r*c,o.y-=s*c,mt.free(f)}else k(\"Unknown Geometry type: \"+h.type);return!!u&&(this.transform.ta(o),!0)},i.uh=function(t,e){if(void 0===e)return t.lf(this.actualBounds);var i=this.qa;null===i&&(this.measure(1/0,1/0),i=this.qa),i=i.bounds;var n=this.strokeWidth/2,o=!1,r=mt.alloc();return r.h(i.x-n,i.y-n),t.ea(e.ta(r))&&(r.h(i.x-n,i.bottom+n),t.ea(e.ta(r))&&(r.h(i.right+n,i.bottom+n),t.ea(e.ta(r))&&(r.h(i.right+n,i.y-n),t.ea(e.ta(r))&&(o=!0)))),mt.free(r),o},i.Ic=function(t,e){if(this.uh(t,e)||void 0===e&&(e=this.transform,t.lf(this.actualBounds)))return!0;var i=ae.alloc();i.set(e),i.bt();var n=t.left,o=t.right,r=t.top;t=t.bottom;var s=mt.alloc();if(s.h(n,r),i.ta(s),this.vh(s,!0))return mt.free(s),!0;if(s.h(o,r),i.ta(s),this.vh(s,!0))return mt.free(s),!0;if(s.h(n,t),i.ta(s),this.vh(s,!0))return mt.free(s),!0;if(s.h(o,t),i.ta(s),this.vh(s,!0))return mt.free(s),!0;var a=mt.alloc(),l=mt.alloc();return i.set(e),i.nv(this.transform),i.bt(),a.x=o,a.y=r,a.transform(i),s.x=n,s.y=r,s.transform(i),e=!1,ch(this,s,a,l)?e=!0:(s.x=o,s.y=t,s.transform(i),ch(this,s,a,l)?e=!0:(a.x=n,a.y=t,a.transform(i),ch(this,s,a,l)?e=!0:(s.x=n,s.y=r,s.transform(i),ch(this,s,a,l)&&(e=!0)))),mt.free(s),ae.free(i),mt.free(a),mt.free(l),e},i.jx=function(t,e,i){function n(t,e){for(var i=t.length,n=0;n<i;n+=2)if(e.cd(t[n],t[n+1])>o)return!0;return!1}if(i&&null!==this.fill&&this.vh(t,!0))return!0;var o=t.Be(e),r=o;if(1.5<this.strokeWidth&&(o=this.strokeWidth/2+Math.sqrt(o),o*=o),e=this.qa,null===e&&(this.measure(1/0,1/0),e=this.qa,null===e))return!1;if(!i){var s=e.bounds,a=s.x,l=s.y,h=s.x+s.width;if(s=s.y+s.height,kt(t.x,t.y,a,l)<=o&&kt(t.x,t.y,h,l)<=o&&kt(t.x,t.y,a,s)<=o&&kt(t.x,t.y,h,s)<=o)return!0}if(a=e.startX,l=e.startY,h=e.endX,s=e.endY,e.type===ai){if(i=(a-h)*(t.x-h)+(l-s)*(t.y-s),xt(t.x,t.y,a,l,h,s)<=(0<=(h-a)*(t.x-a)+(s-l)*(t.y-l)&&0<=i?o:r))return!0}else{if(e.type===li)return e=!1,i&&(e=xt(t.x,t.y,a,l,a,s)<=o||xt(t.x,t.y,a,l,h,l)<=o||xt(t.x,t.y,h,l,h,s)<=o||xt(t.x,t.y,a,s,h,s)<=o),e;if(e.type===hi){e=t.x-(a+h)/2,r=t.y-(l+s)/2;var u=Math.abs(h-a)/2,c=Math.abs(s-l)/2;if(0===u||0===c)return xt(t.x,t.y,a,l,h,s)<=o;if(!i)return!(kt(e,r,-u,0)>=o||kt(e,r,0,-c)>=o||kt(e,r,0,c)>=o||kt(e,r,u,0)>=o);if(t=We.Dy(u,c,e,r),t*t<=o)return!0}else if(e.type===ui){if(h=e.bounds,r=h.x,a=h.y,l=h.x+h.width,h=h.y+h.height,t.x>l&&t.x<r&&t.y>h&&t.y<a&&xt(t.x,t.y,r,a,r,h)>o&&xt(t.x,t.y,r,a,l,a)>o&&xt(t.x,t.y,l,h,r,h)>o&&xt(t.x,t.y,l,h,l,a)>o)return!1;if(r=Math.sqrt(o),!i){for(i=e.figures,e=0;e<i.count;e++){if(r=i.j[e],s=r.startX,u=r.startY,t.cd(s,u)>o)return!1;for(a=r.segments.j,l=a.length,h=0;h<l;h++)switch(c=a[h],c.type){case gi:case mi:if(s=c.endX,u=c.endY,t.cd(s,u)>o)return!1;break;case vi:var f=j();if(We.ze(s,u,c.point1X,c.point1Y,c.point2X,c.point2Y,c.endX,c.endY,.8,f),s=n(f,t),A(f),s)return!1;if(s=c.endX,u=c.endY,t.cd(s,u)>o)return!1;break;case yi:if(f=j(),We.jq(s,u,c.point1X,c.point1Y,c.endX,c.endY,.8,f),s=n(f,t),A(f),s)return!1;if(s=c.endX,u=c.endY,t.cd(s,u)>o)return!1;break;case bi:case wi:f=c.type===bi?di(c,r):pi(c,r,s,u);var d=f.length;if(0===d){if(s=c.centerX,u=c.centerY,t.cd(s,u)>o)return!1;break}c=null;for(var p=j(),g=0;g<d;g++)if(c=f[g],p.length=0,We.ze(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],.8,p),n(p,t))return A(p),!1;A(p),null!==c&&(s=c[6],u=c[7]);break;default:k(\"Unknown Segment type: \"+c.type)}}return!0}if(null===this.fill?oi(e,t.x,t.y,r):e.ea(t,r,!0))return!0}}return!1},i.bc=function(){this.qa=null},sh.makeGeometry=function(t,e,i){if(\"None\"!==t.toArrow)var n=ph[t.toArrow];else\"None\"!==t.fromArrow?n=ph[t.fromArrow]:(n=We.Je[t.figure],\"string\"===typeof n&&(n=We.Je[n]),void 0===n&&k(\"Unknown Shape.figure: \"+t.figure),n=n(t,e,i),n.el=e,n.cl=i);if(null===n){var o=We.Je.Rectangle;\"function\"===typeof o&&(n=o(t,e,i))}return n},p.Object.defineProperties(sh.prototype,{geometry:{get:function(){return null!==this.qa?this.qa:this.Pd},set:function(t){var e=this.qa;if(e!==t){this.Pd=this.qa=null!==t?t.freeze():null;var i=this.part;null!==i&&(i.Ug=NaN),this.s(),this.g(\"geometry\",e,t),ua(this)&&(t=this.part,null!==t&&Ws(this,t,\"geometryString\"))}}},geometryString:{get:function(){return null===this.geometry?\"\":this.geometry.toString()},set:function(t){t=ti(t);var e=t.normalize();this.geometry=t,this.position=t=mt.allocAt(-e.x,-e.y),mt.free(t)}},isGeometryPositioned:{get:function(){return this.Rn},set:function(t){var e=this.Rn;e!==t&&(this.Rn=t,this.s(),this.g(\"isGeometryPositioned\",e,t))}},fill:{get:function(){return this.Wk},set:function(t){var e=this.Wk;e!==t&&(t instanceof Ra&&t.freeze(),this.Wk=t,this.R(),this.g(\"fill\",e,t))}},stroke:{get:function(){return this.Gc},set:function(t){var e=this.Gc;e!==t&&(t instanceof Ra&&t.freeze(),this.Gc=t,this.R(),this.g(\"stroke\",e,t))}},strokeWidth:{get:function(){return this.ih},set:function(t){var e=this.ih;if(e!==t)if(0<=t){this.ih=t,this.s();var i=this.part;null!==i&&(i.Ug=NaN),this.g(\"strokeWidth\",e,t)}else C(t,\"value >= 0\",sh,\"strokeWidth:value\")}},strokeCap:{get:function(){return this.Il},set:function(t){var e=this.Il;e!==t&&(\"string\"!==typeof t||\"butt\"!==t&&\"round\"!==t&&\"square\"!==t?C(t,'\"butt\", \"round\", or \"square\"',sh,\"strokeCap\"):(this.Il=t,this.R(),this.g(\"strokeCap\",e,t)))}},strokeJoin:{get:function(){return this.Jl},set:function(t){var e=this.Jl;e!==t&&(\"string\"!==typeof t||\"miter\"!==t&&\"bevel\"!==t&&\"round\"!==t?C(t,'\"miter\", \"bevel\", or \"round\"',sh,\"strokeJoin\"):(this.Jl=t,this.R(),this.g(\"strokeJoin\",e,t)))}},strokeMiterLimit:{get:function(){return this.Jj},set:function(t){var e=this.Jj;if(e!==t&&1<=t){this.Jj=t,this.R();var i=this.part;null!==i&&(i.Ug=NaN),this.g(\"strokeMiterLimit\",e,t)}}},strokeDashArray:{get:function(){return this.gh},set:function(t){var e=this.gh;if(e!==t){if(null!==t){for(var i=t.length,n=0,o=0;o<i;o++){var r=t[o];0<=r&&isFinite(r)||k(\"strokeDashArray:value \"+r+\" at index \"+o+\" must be a positive number or zero.\"),n+=r}if(0===n){if(null===e)return;t=null}}this.gh=t,this.R(),this.g(\"strokeDashArray\",e,t)}}},strokeDashOffset:{get:function(){return this.hh},set:function(t){var e=this.hh;e!==t&&0<=t&&(this.hh=t,this.R(),this.g(\"strokeDashOffset\",e,t))}},figure:{get:function(){return this.Vk},set:function(t){var e=this.Vk;if(e!==t){var i=We.Je[t];\"function\"===typeof i?i=t:(i=We.Je[t.toLowerCase()])||k(\"Unknown Shape.figure: \"+t),e!==i&&(t=this.part,null!==t&&(t.Ug=NaN),this.Vk=i,this.Pd=null,this.bc(),this.s(),this.g(\"figure\",e,i))}}},toArrow:{get:function(){return this.Pl},set:function(t){var e=this.Pl;if(!0===t?t=\"Standard\":!1===t&&(t=\"\"),e!==t){var i=dh(t);null===i?k(\"Unknown Shape.toArrow: \"+t):e!==i&&(this.Pl=i,this.Pd=null,this.bc(),this.s(),fh(this),this.g(\"toArrow\",e,i))}}},fromArrow:{get:function(){return this.Yk},set:function(t){var e=this.Yk;if(!0===t?t=\"Standard\":!1===t&&(t=\"\"),e!==t){var i=dh(t);null===i?k(\"Unknown Shape.fromArrow: \"+t):e!==i&&(this.Yk=i,this.Pd=null,this.bc(),this.s(),fh(this),this.g(\"fromArrow\",e,i))}}},spot1:{get:function(){return this.bf},set:function(t){var e=this.bf;e.A(t)||(this.bf=t=t.I(),this.s(),this.g(\"spot1\",e,t))}},spot2:{get:function(){return this.cf},set:function(t){var e=this.cf;e.A(t)||(this.cf=t=t.I(),this.s(),this.g(\"spot2\",e,t))}},parameter1:{get:function(){return this.Ko},set:function(t){var e=this.Ko;e!==t&&(this.Ko=t,this.bc(),this.s(),this.g(\"parameter1\",e,t))}},parameter2:{get:function(){return this.Lo},set:function(t){var e=this.Lo;e!==t&&(this.Lo=t,this.bc(),this.s(),this.g(\"parameter2\",e,t))}},naturalBounds:{get:function(){if(null!==this.qa)return this.qc.assign(this.qa.bounds),this.qc;var t=this.desiredSize;return new _t(0,0,t.width,t.height)}},pathPattern:{get:function(){return this.No},set:function(t){var e=this.No;e!==t&&(this.No=t,this.R(),this.g(\"pathPattern\",e,t))}},geometryStretch:{get:function(){return this.Gn},set:function(t){var e=this.Gn;e!==t&&(this.Gn=t,this.g(\"geometryStretch\",e,t))}},interval:{get:function(){return this.Cd},set:function(t){var e=this.Cd;if(t=Math.floor(t),e!==t&&0<=t){this.Cd=t;var i=this.diagram;null!==i&&this.panel===i.grid&&Lr(i),this.s(),i=this.panel,null!==i&&(i.Mg=null),this.g(\"interval\",e,t)}}},graduatedStart:{get:function(){return this.Bd},set:function(t){var e=this.Bd;e!==t&&(0>t?t=0:1<t&&(t=1),this.Bd=t,this.s(),this.g(\"graduatedStart\",e,t))}},graduatedEnd:{get:function(){return this.zd},set:function(t){var e=this.zd;e!==t&&(0>t?t=0:1<t&&(t=1),this.zd=t,this.s(),this.g(\"graduatedEnd\",e,t))}},graduatedSkip:{get:function(){return this.Ad},set:function(t){var e=this.Ad;e!==t&&(this.Ad=t,this.s(),this.g(\"graduatedSkip\",e,t))}}}),sh.prototype.intersectsRect=sh.prototype.Ic,sh.prototype.containedInRect=sh.prototype.uh,sh.prototype.getNearestIntersectionPoint=sh.prototype.Tc,sh.prototype.getDocumentBounds=sh.prototype.Vp,sh.prototype.getDocumentPoint=sh.prototype.ma;var ph=new J,gh=new J;function mh(){Ks.call(this),_h||(Ch(),_h=!0),this.Pb=\"\",this.Gc=\"black\",this.ee=\"13px sans-serif\",this.ui=\"start\",this.yd=ts,this.zi=Fe,this.nj=!0,this.ci=this.di=!1,this.Zf=Dh,this.jg=Lh,this.Mr=this.oc=0,this.hu=this.iu=null,this.nd=new Hh,this.An=!1,this.Cc=this.Xm=this.xp=this.vi=this.yp=null,this.af=this.$e=0,this.me=1/0,this.jl=0,this.Cd=1,this.Bd=0,this.zd=1,this.Ad=this.ij=null}function vh(t,e){t.H=6144|e.H,t.lb=e.opacity,t.ib=e.background,t.dc=e.areaBackground,t.Nc=e.desiredSize.I(),t.Qf=e.minSize.I(),t.Pf=e.maxSize.I(),t.Nf=e.Nf.copy(),t.Ca=e.scale,t.zc=e.angle,t.ue=e.stretch,t.Tg=e.margin.I(),t.wb=e.alignment.I(),t.wk=e.alignmentFocus.I(),t.yl=e.segmentFraction,t.zl=e.segmentOffset.I(),t.Al=e.segmentOrientation,null!==e.kd&&(t.kd=e.kd.copy()),t.Cl=e.shadowVisible,e instanceof mh&&(t.Pb=e.Pb,t.Gc=e.Gc,t.ee=e.ee,t.ui=e.ui,t.yd=e.yd,t.zi=e.zi,t.nj=e.nj,t.di=e.di,t.ci=e.ci,t.Zf=e.Zf,t.jg=e.jg,t.nd.Hf=null,t.$e=e.$e,t.af=e.af,t.me=e.me,t.jl=e.jl,t.Cd=e.Cd,t.Bd=e.Bd,t.zd=e.zd,t.ij=e.ij,t.Ad=e.Ad)}function yh(t,e,i,n,o){e=e.trim();var r=0,s=t.ee,a=t.$e+t.af;a=Math.max(0,xh(t)+a);var l=t.Zf===jh?kh(s):0;if(t.oc>=t.me)null!==o&&o.h(0,a);else{var h=e;if(t.jg===Ph)if(i.ig=1,s=wh(e),0===l||s<=n)i.Ec=Math.max(i.Ec,s),i.Wc.push(i.Ec),i.Ac.push(e),null!==o&&o.h(s,a);else{for(r=bh(t,h),h=h.substr(r.length),e=bh(t,h),s=wh(r+e);0<e.length&&s<=n;)r+=e,h=h.substr(e.length),e=bh(t,h),s=wh((r+e).trim());for(r+=e.trim(),n=Math.max(1,n-l);wh(r)>n&&1<r.length;)r=r.substr(0,r.length-1);r+=Eh,e=wh(r),i.Wc.push(e),i.Ec=e,i.Ac.push(r),null!==o&&o.h(e,a)}else{for(l=0,0===h.length&&(l=1,i.Wc.push(0),i.Ac.push(h));0<h.length;){var u=bh(t,h);for(h=h.substr(u.length);wh(u)>n;){var c=1;for(s=wh(u.substr(0,c)),e=0;s<=n;)c++,e=s,s=wh(u.substr(0,c));if(1===c?(i.Wc[t.oc+l]=s,r=Math.max(r,s)):(i.Wc[t.oc+l]=e,r=Math.max(r,e)),c--,1>c&&(c=1),i.Ac[t.oc+l]=u.substr(0,c),l++,u=u.substr(c),t.oc+l>t.me)break}for(e=bh(t,h),s=wh(u+e);0<e.length&&s<=n;)u+=e,h=h.substr(e.length),e=bh(t,h),s=wh((u+e).trim());if(u=u.trim(),\"\"!==u&&(\"\"===u[u.length-1]&&(u=u.substring(0,u.length-1)+\"‐\"),0===e.length?(i.Wc.push(s),r=Math.max(r,s)):(e=wh(u),i.Wc.push(e),r=Math.max(r,e)),i.Ac.push(u),l++,t.oc+l>t.me))break}i.ig=Math.min(t.me,l),i.Ec=Math.max(i.Ec,r),null!==o&&o.h(i.Ec,a*i.ig)}}}function bh(t,e){if(t.jg===Oh)return e.substr(0,1);t=e.length;for(var i=0,n=Ah;i<t&&!n.test(e.charAt(i));)i++;for(;i<t&&n.test(e.charAt(i));)i++;return i>=t?e:e.substr(0,i)}function wh(t){return null===Vh?8*t.length:Vh.measureText(t).width}function xh(t){if(null!==t.nd.Hf)return t.nd.Hf;var e=t.ee;if(null===Vh){var i=16;return t.nd.Hf=i}return void 0!==Bh[e]&&5e3>zh?i=Bh[e]:(i=1.3*Vh.measureText(\"M\").width,Bh[e]=i,zh++),t.nd.Hf=i}function kh(t){if(null===Vh)return 6;if(void 0!==Fh[t]&&5e3>Ih)var e=Fh[t];else e=Vh.measureText(Eh).width,Fh[t]=e,Ih++;return e}function Mh(t,e,i){var n=t.Pb.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\"),o=t.$e+t.af;if(o=Math.max(0,xh(t)+o),0===n.length)return i.Ec=0,t.oc=1,o;if(!t.isMultiline){var r=n.indexOf(\"\\n\",0);0<=r&&(n=n.substr(0,r))}r=0;for(var s,a=t.oc=0,l=!1;!l;){if(s=n.indexOf(\"\\n\",a),-1===s&&(s=n.length,l=!0),a<=s){if(a=n.substr(a,s-a),t.jg!==Ph){i.ig=0;var h=It.alloc();yh(t,a,i,e,h),r+=h.height,It.free(h),t.oc+=i.ig}else yh(t,a,i,e,null),r+=o,t.oc++;t.oc===t.me&&(l=!0)}a=s+1}return t.Mr=r}function Ch(){Ah=/[ \\u200b\\u00ad]/,Bh=new J,Fh=new J,Vh=ds?new za(null).context:null}sh.className=\"Shape\",sh.getFigureGenerators=function(){var t,e=new gt;for(t in We.Je)t!==t.toLowerCase()&&e.add(t,We.Je[t]);return e.freeze(),e},sh.defineFigureGenerator=function(t,e){var i=t.toLowerCase(),n=We.Je;n[t]=e,n[i]=t},sh.getArrowheadGeometries=function(){var t=new gt;for(n in We.Bm)if(void 0===ph[n]){var e=ti(We.Bm[n],!1);ph[n]=e,e=n.toLowerCase(),e!==n&&(ph[e]=n)}for(var i in ph)if(i!==i.toLowerCase()){var n=ph[i];n instanceof Je&&t.add(i,n)}return t.freeze(),t},sh.defineArrowheadGeometry=function(t,e){var i=null;i=\"string\"===typeof e?ti(e,!1):e,e=t.toLowerCase(),\"none\"!==e&&t!==e||k(\"Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: \"+t);var n=ph;n[t]=i,n[e]=t},d(mh,Ks),mh.prototype.cloneProtected=function(t){Ks.prototype.cloneProtected.call(this,t),t.Pb=this.Pb,t.Gc=this.Gc,t.ee=this.ee,t.ui=this.ui,t.yd=this.yd,t.zi=this.zi,t.nj=this.nj,t.di=this.di,t.ci=this.ci,t.Zf=this.Zf,t.jg=this.jg,t.oc=this.oc,t.Mr=this.Mr,t.iu=this.iu,t.hu=this.hu,t.nd.Vl(this.nd),t.An=this.An,t.yp=this.yp,t.vi=this.vi,t.xp=this.xp,t.Xm=this.Xm,t.Cc=this.Cc,t.$e=this.$e,t.af=this.af,t.me=this.me,t.jl=this.jl,t.Cd=this.Cd,t.Bd=this.Bd,t.zd=this.zd,t.ij=this.ij,t.Ad=this.Ad},i=mh.prototype,i.fb=function(t){t.classType===mh?this.wrap=t:Ks.prototype.fb.call(this,t)},i.toString=function(){return 22<this.Pb.length?'TextBlock(\"'+this.Pb.substring(0,20)+'\"...)':'TextBlock(\"'+this.Pb+'\")'},i.s=function(){Ks.prototype.s.call(this),this.hu=this.iu=null},i.Ci=function(t,e){if(null!==this.Gc&&0!==this.Pb.length&&null!==this.ee){var i=this.naturalBounds,n=this.actualBounds,o=i.width,r=i.height,s=xh(this),a=t.textAlign=this.ui,l=e.Tn;\"start\"===a?a=l?\"right\":\"left\":\"end\"===a&&(a=l?\"left\":\"right\"),l=this.di;var h=this.ci;ia(this,t,this.Gc,!0,!1,i,n),(l||h)&&ia(this,t,this.Gc,!1,!1,i,n),n=0,i=!1;var u=mt.allocAt(0,0);this.rd.ta(u);var c=mt.allocAt(0,s);this.rd.ta(c);var f=u.Be(c);switch(mt.free(u),mt.free(c),u=e.scale,8>f*u*u&&(i=!0),e.Yc!==t&&(i=!1),!1===e.De(\"textGreeking\")&&(i=!1),e=this.$e,f=this.af,this.flip){case as:t.translate(o,0),t.scale(-1,1);break;case ss:t.translate(0,r),t.scale(1,-1);break;case ls:t.translate(o,r),t.scale(-1,-1)}u=this.oc,c=(e+s+f)*u,r>c&&(n=this.zi,n=n.y*r-n.y*c+n.offsetY),c=this.nd;for(var d=0;d<u;d++){var p=c.Wc[d];p>o&&(p=o),n+=e;var g=c.Ac[d],m=t,v=n,y=a,b=0;if(i)\"left\"===y?b=0:\"right\"===y?b=o-p:\"center\"===y&&(b=(o-p)/2),m.fillRect(0+b,v+.25*s,p,1);else{\"left\"===y?b=0:\"right\"===y?b=o:\"center\"===y&&(b=o/2);var w=null!==Sh?Sh(this,s):.75*s;m.fillText(g,0+b,v+w),g=s/20|0,0===g&&(g=1),\"right\"===y?b-=p:\"center\"===y&&(b-=p/2),l&&(y=null!==Nh?Nh(this,s):.8*s,m.beginPath(),m.lineWidth=g,m.moveTo(0+b,v+y),m.lineTo(0+b+p,v+y),m.stroke()),h&&(m.beginPath(),m.lineWidth=g,v=v+s-s/2.2|0,0!==g%2&&(v+=.5),m.moveTo(0+b,v),m.lineTo(0+b+p,v),m.stroke())}n+=s+f}switch(this.flip){case as:t.scale(-1,1),t.translate(-o,0);break;case ss:t.scale(1,-1),t.translate(0,-r);break;case ls:t.scale(-1,-1),t.translate(-o,-r)}}},i.hm=function(t,e,i,n){this.jl=t;var o,r=this.ee;if(null!==Vh&&Rh!==r&&(Rh=Vh.font=r),r=this.nd,r.reset(),isNaN(this.desiredSize.width)){var s=this.Pb.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\");if(0===s.length)s=0;else if(this.isMultiline){for(var a=o=0,l=!1;!l;){var h=s.indexOf(\"\\n\",a);-1===h&&(h=s.length,l=!0),o=Math.max(o,wh(s.substr(a,h-a).trim())),a=h+1}s=o}else o=s.indexOf(\"\\n\",0),0<=o&&(s=s.substr(0,o)),s=wh(s);s=Math.min(s,t/this.scale),s=Math.max(8,s)}else s=this.desiredSize.width;if(null!==this.panel&&(s=Math.min(s,this.panel.maxSize.width)),o=Mh(this,s,r),o=isNaN(this.desiredSize.height)?Math.min(o,e/this.scale):this.desiredSize.height,a=o,0!==r.Ec&&1!==r.Ac.length&&this.Zf===jh&&(e=this.ee,e=this.Zf===jh?kh(e):0,l=this.$e+this.af,l=Math.max(0,xh(this)+l),a=Math.min(this.maxLines-1,Math.max(Math.floor(a/l+.01)-1,0)),!(a+1>=r.Ac.length))){for(l=r.Ac[a],e=Math.max(1,t-e);wh(l)>e&&1<l.length;)l=l.substr(0,l.length-1);l+=Eh,e=wh(l),r.Ac[a]=l,r.Ac=r.Ac.slice(0,a+1),r.Wc[a]=e,r.Wc=r.Wc.slice(0,a+1),r.ig=r.Ac.length,r.Ec=Math.max(r.Ec,e),this.oc=r.ig}(this.wrap===Th||isNaN(this.desiredSize.width))&&(s=isNaN(t)?r.Ec:Math.min(t,r.Ec),isNaN(this.desiredSize.width)&&(s=Math.max(8,s))),s=Math.max(i,s),o=Math.max(n,o),Ht(this.qc,s,o),Zs(this,0,0,s,o)},i.th=function(t,e,i,n){ta(this,t,e,i,n)},p.Object.defineProperties(mh.prototype,{font:{get:function(){return this.ee},set:function(t){var e=this.ee;e!==t&&(this.ee=t,this.nd.Hf=null,this.s(),this.g(\"font\",e,t))}},text:{get:function(){return this.Pb},set:function(t){var e=this.Pb;t=null!==t&&void 0!==t?t.toString():\"\",e!==t&&(this.Pb=t,this.s(),this.g(\"text\",e,t))}},textAlign:{get:function(){return this.ui},set:function(t){var e=this.ui;e===t||\"start\"!==t&&\"end\"!==t&&\"left\"!==t&&\"right\"!==t&&\"center\"!==t||(this.ui=t,this.R(),this.g(\"textAlign\",e,t))}},flip:{get:function(){return this.yd},set:function(t){var e=this.yd;e!==t&&(this.yd=t,this.R(),this.g(\"flip\",e,t))}},verticalAlignment:{get:function(){return this.zi},set:function(t){var e=this.zi;e.A(t)||(this.zi=t=t.I(),ra(this),this.g(\"verticalAlignment\",e,t))}},naturalBounds:{get:function(){if(!this.qc.o()){var t=It.alloc();yh(this,this.Pb,this.nd,999999,t);var e=t.width;It.free(t),t=Mh(this,e,this.nd);var i=this.desiredSize;isNaN(i.width)||(e=i.width),isNaN(i.height)||(t=i.height),Ht(this.qc,e,t)}return this.qc}},isMultiline:{get:function(){return this.nj},set:function(t){var e=this.nj;e!==t&&(this.nj=t,this.s(),this.g(\"isMultiline\",e,t))}},isUnderline:{get:function(){return this.di},set:function(t){var e=this.di;e!==t&&(this.di=t,this.R(),this.g(\"isUnderline\",e,t))}},isStrikethrough:{get:function(){return this.ci},set:function(t){var e=this.ci;e!==t&&(this.ci=t,this.R(),this.g(\"isStrikethrough\",e,t))}},wrap:{get:function(){return this.jg},set:function(t){var e=this.jg;e!==t&&(this.jg=t,this.s(),this.g(\"wrap\",e,t))}},overflow:{get:function(){return this.Zf},set:function(t){var e=this.Zf;e!==t&&(this.Zf=t,this.s(),this.g(\"overflow\",e,t))}},stroke:{get:function(){return this.Gc},set:function(t){var e=this.Gc;e!==t&&(t instanceof Ra&&t.freeze(),this.Gc=t,this.R(),this.g(\"stroke\",e,t))}},lineCount:{get:function(){return this.oc}},editable:{get:function(){return this.An},set:function(t){var e=this.An;e!==t&&(this.An=t,this.g(\"editable\",e,t))}},textEditor:{get:function(){return this.yp},set:function(t){var e=this.yp;e!==t&&(this.yp=t,this.g(\"textEditor\",e,t))}},errorFunction:{get:function(){return this.Cc},set:function(t){var e=this.Cc;e!==t&&(this.Cc=t,this.g(\"errorFunction\",e,t))}},interval:{get:function(){return this.Cd},set:function(t){var e=this.Cd;if(t=Math.floor(t),e!==t&&0<=t){this.Cd=t,this.s();var i=this.panel;null!==i&&(i.Mg=null),this.g(\"interval\",e,t)}}},graduatedStart:{get:function(){return this.Bd},set:function(t){var e=this.Bd;e!==t&&(0>t?t=0:1<t&&(t=1),this.Bd=t,this.s(),this.g(\"graduatedStart\",e,t))}},graduatedEnd:{get:function(){return this.zd},set:function(t){var e=this.zd;e!==t&&(0>t?t=0:1<t&&(t=1),this.zd=t,this.s(),this.g(\"graduatedEnd\",e,t))}},graduatedFunction:{get:function(){return this.ij},set:function(t){var e=this.ij;e!==t&&(this.ij=t,this.s(),this.g(\"graduatedFunction\",e,t))}},graduatedSkip:{get:function(){return this.Ad},set:function(t){var e=this.Ad;e!==t&&(this.Ad=t,this.s(),this.g(\"graduatedSkip\",e,t))}},textValidation:{get:function(){return this.vi},set:function(t){var e=this.vi;e!==t&&(this.vi=t,this.g(\"textValidation\",e,t))}},textEdited:{get:function(){return this.xp},set:function(t){var e=this.xp;e!==t&&(this.xp=t,this.g(\"textEdited\",e,t))}},spacingAbove:{get:function(){return this.$e},set:function(t){var e=this.$e;e!==t&&(this.$e=t,this.g(\"spacingAbove\",e,t))}},spacingBelow:{get:function(){return this.af},set:function(t){var e=this.af;e!==t&&(this.af=t,this.g(\"spacingBelow\",e,t))}},maxLines:{get:function(){return this.me},set:function(t){var e=this.me;e!==t&&(t=Math.floor(t),0>=t&&C(t,\"> 0\",mh,\"maxLines\"),this.me=t,this.g(\"maxLines\",e,t),this.s())}},metrics:{get:function(){return this.nd}},choices:{get:function(){return this.Xm},set:function(t){var e=this.Xm;e!==t&&(this.Xm=t,this.g(\"choices\",e,t))}}});var Sh=null,Nh=null,Ph=new K(mh,\"None\",0),Th=new K(mh,\"WrapFit\",1),Lh=new K(mh,\"WrapDesiredSize\",2),Oh=new K(mh,\"WrapBreakAll\",3),Dh=new K(mh,\"OverflowClip\",0),jh=new K(mh,\"OverflowEllipsis\",1),Ah=null,Bh=null,zh=0,Fh=null,Ih=0,Eh=\"...\",Rh=\"\",Vh=null,_h=!1;function Hh(){this.Ec=this.ig=0,this.Wc=[],this.Ac=[],this.Hf=null}function Yh(){Ks.call(this),this.Ig=null,this.qp=\"\",this.fh=Qt,this.al=Qr,this.df=this.Cc=null,this.$k=de,this.yd=ts,this.Ll=null,this.bu=!1,this.ir=!0,this.nl=!1,this.Dl=null}function qh(t){void 0===t&&(t=\"\"),\"\"!==t?Uh[t]&&(delete Uh[t],Kh--):(Uh=new J,Kh=0)}function Gh(t,e){t.zr=!0,t.Zk=!1;for(var i,n=E(),o=n.length,r=0;r<o;r++){var s=n[r],a=s.Cj.J(t.src);if(null!==a)for(var l=a.length,h=0;h<l;h++)i=a[h],s.mu.add(i),s.cc(),null===t.su&&(t.su=e,null!==i.df&&i.df(i,e))}}function Xh(t,e){t.Zk=e;for(var i,n=E(),o=n.length,r=0;r<o;r++)if(i=n[r].Cj.J(t.src),null!==i){for(var s=i.length,a=j(),l=0;l<s;l++)a.push(i[l]);for(l=0;l<s;l++)i=a[l],null!==i.Cc&&i.Cc(i,e);A(a)}}mh.className=\"TextBlock\",mh.getEllipsis=function(){return Eh},mh.setEllipsis=function(t){Eh=t,Fh=new J,Ih=0},mh.getBaseline=function(){return Sh},mh.setBaseline=function(t){Sh=t,t=E();for(var e=t.length,i=0;i<e;i++)t[i].sf()},mh.getUnderline=function(){return Nh},mh.setUnderline=function(t){Nh=t,t=E();for(var e=t.length,i=0;i<e;i++)t[i].sf()},mh.isValidFont=function(t){if(_h||(Ch(),_h=!0),null===Vh)return!0;var e=Vh.font;if(t===e||\"10px sans-serif\"===t)return!0;Vh.font=\"10px sans-serif\",Vh.font=t;var i=Vh.font;if(\"10px sans-serif\"!==i)return Vh.font=e,!0;Vh.font=\"19px serif\";var n=Vh.font;return Vh.font=t,i=Vh.font,Vh.font=e,i!==n},mh.None=Ph,mh.WrapFit=Th,mh.WrapDesiredSize=Lh,mh.WrapBreakAll=Oh,mh.OverflowClip=Dh,mh.OverflowEllipsis=jh,Hh.prototype.reset=function(){this.Ec=this.ig=0,this.Hf=null,this.Wc=[],this.Ac=[]},Hh.prototype.Vl=function(t){this.ig=t.ig,this.Hf=t.Hf,this.Ec=t.Ec,this.Wc=L(t.Wc),this.Ac=L(t.Ac)},p.Object.defineProperties(Hh.prototype,{arrSize:{get:function(){return this.Wc}},arrText:{get:function(){return this.Ac}},maxLineWidth:{get:function(){return this.Ec}},fontHeight:{get:function(){return this.Hf}}}),Hh.className=\"TextBlockMetrics\",d(Yh,Ks),Yh.prototype.cloneProtected=function(t){Ks.prototype.cloneProtected.call(this,t),t.element=this.Ig,t.qp=this.qp,t.fh=this.fh.I(),t.al=this.al,t.yd=this.yd,t.Cc=this.Cc,t.df=this.df,t.$k=this.$k.I(),t.ir=this.ir,t.Dl=this.Dl},i=Yh.prototype,i.fb=function(t){t===ts||t===es||t===rs?this.imageStretch=t:Ks.prototype.fb.call(this,t)},i.toString=function(){return\"Picture(\"+this.source+\")#\"+lt(this)},i.Kz=function(){if(\"\"!==this.source){qh(this.source);var t=this.source;this.source=\"\",this.source=t}},i.sf=function(){this.R()},i.Ci=function(t,e){var i=this.Ig;if(null!==i){var n=i.src;if(null!==n&&\"\"!==n||k('Element has no source (\"src\") attribute: '+i),!(i.Zk instanceof Event)){n=this.naturalBounds;var o=0,r=0,s=this.bu,a=s?+i.width:i.naturalWidth;if(s=s?+i.height:i.naturalHeight,void 0===a&&i.videoWidth&&(a=i.videoWidth),void 0===s&&i.videoHeight&&(s=i.videoHeight),a=a||n.width,s=s||n.height,0!==a&&0!==s){var l=a,h=s;this.sourceRect.o()&&(o=this.fh.x,r=this.fh.y,a=this.fh.width,s=this.fh.height);var u=a,c=s,f=this.al,d=this.$k;switch(f){case ts:if(this.sourceRect.o())break;u>=n.width&&(o=o+d.offsetX+(u*d.x-n.width*d.x)),c>=n.height&&(r=r+d.offsetY+(c*d.y-n.height*d.y)),a=Math.min(n.width,u),s=Math.min(n.height,c);break;case Qr:u=n.width,c=n.height;break;case es:case rs:f===es?(f=Math.min(n.height/c,n.width/u),u*=f,c*=f):f===rs&&(f=Math.max(n.height/c,n.width/u),u*=f,c*=f,u>=n.width&&(o=(o+d.offsetX+(u*d.x-n.width*d.x)/u)*a),c>=n.height&&(r=(r+d.offsetY+(c*d.y-n.height*d.y)/c)*s),a*=1/(u/n.width),s*=1/(c/n.height),u=n.width,c=n.height)}f=this.Ce()*e.scale;var p=a*s/(u*f*c*f),g=i.__goCache;f=null;var m=$h;if(i.zr&&void 0!==g&&p>m*m)for(null===g.Bi&&(Jh(g,4,l,h,i),Jh(g,16,l,h,i)),l=g.Bi,h=l.length,f=l[0],m=0;m<h;m++){if(!(l[m].ratio*l[m].ratio<p))break;f=l[m]}if(!e.xn){if(null===this.Ll)if(null===this.Ig)this.Ll=!1;else{l=new za(null).context,l.drawImage(this.Ig,0,0);try{l.getImageData(0,0,1,1).data[3]&&(this.Ll=!1),this.Ll=!1}catch(v){this.Ll=!0}}if(this.Ll)return}switch(l=0,u<n.width&&(l=d.offsetX+(n.width*d.x-u*d.x)),h=0,c<n.height&&(h=d.offsetY+(n.height*d.y-c*d.y)),this.flip){case as:t.translate(Math.min(n.width,u),0),t.scale(-1,1);break;case ss:t.translate(0,Math.min(n.height,c)),t.scale(1,-1);break;case ls:t.translate(Math.min(n.width,u),Math.min(n.height,c)),t.scale(-1,-1)}if(e.De(\"pictureRatioOptimization\")&&!e.mj&&void 0!==g&&null!==f&&1!==f.ratio){t.save(),e=f.ratio;try{t.drawImage(f.source,o/e,r/e,Math.min(f.source.width,a/e),Math.min(f.source.height,s/e),l,h,Math.min(n.width,u),Math.min(n.height,c))}catch(v){this.ir=!1}t.restore()}else try{t.drawImage(i,o,r,a,s,l,h,Math.min(n.width,u),Math.min(n.height,c))}catch(v){this.ir=!1}switch(this.flip){case as:t.scale(-1,1),t.translate(-Math.min(n.width,u),0);break;case ss:t.scale(1,-1),t.translate(0,-Math.min(n.height,c));break;case ls:t.scale(-1,-1),t.translate(-Math.min(n.width,u),-Math.min(n.height,c))}}}}},i.hm=function(t,e,i,n){var o=this.desiredSize,r=sa(this,!0),s=this.Ig,a=this.bu;(a||!this.nl&&s&&s.complete)&&(this.nl=!0),null===s&&(isFinite(o.width)||(t=0),isFinite(o.height)||(e=0)),isFinite(o.width)||r===Qr||r===ns?(isFinite(t)||(t=this.sourceRect.o()?this.sourceRect.width:a?+s.width:s.naturalWidth),i=0):null!==s&&!1!==this.nl&&(t=this.sourceRect.o()?this.sourceRect.width:a?+s.width:s.naturalWidth),isFinite(o.height)||r===Qr||r===os?(isFinite(e)||(e=this.sourceRect.o()?this.sourceRect.height:a?+s.height:s.naturalHeight),n=0):null!==s&&!1!==this.nl&&(e=this.sourceRect.o()?this.sourceRect.height:a?+s.height:s.naturalHeight),isFinite(o.width)&&(t=o.width),isFinite(o.height)&&(e=o.height),o=this.maxSize,r=this.minSize,i=Math.max(i,r.width),n=Math.max(n,r.height),t=Math.min(o.width,t),e=Math.min(o.height,e),t=Math.max(i,t),e=Math.max(n,e),null===s||s.complete||(isFinite(t)||(t=0),isFinite(e)||(e=0)),Ht(this.qc,t,e),Zs(this,0,0,t,e)},i.th=function(t,e,i,n){ta(this,t,e,i,n)},p.Object.defineProperties(Yh.prototype,{element:{get:function(){return this.Ig},set:function(t){var e=this.Ig;if(e!==t){if(null===t||t instanceof HTMLImageElement||t instanceof HTMLVideoElement||t instanceof HTMLCanvasElement||k(\"Picture.element must be an instance of Image, Canvas, or Video, not: \"+t),this.bu=t instanceof HTMLCanvasElement,this.Ig=t,null!==t)if(t instanceof HTMLCanvasElement||!0===t.complete)t.Zk instanceof Event&&null!==this.Cc&&this.Cc(this,t.Zk),!0===t.zr&&null!==this.df&&this.df(this,t.su),t.zr=!0,this.desiredSize.o()||(ga(this,!1),this.s());else{var i=this;t.yw||(t.addEventListener(\"load\",(function(e){Gh(t,e),i.desiredSize.o()||(ga(i,!1),i.s())})),t.addEventListener(\"error\",(function(e){Xh(t,e)})),t.yw=!0)}this.g(\"element\",e,t),this.R()}}},source:{get:function(){return this.qp},set:function(t){var e=this.qp;if(e!==t){this.qp=t;var i=Uh,n=this.diagram,o=null;if(void 0!==i[t])o=i[t];else{30<Kh&&(qh(),i=Uh),o=x(\"img\");var r=this;o.addEventListener(\"load\",(function(t){Gh(o,t),r.desiredSize.o()||(ga(r,!1),r.s())})),o.addEventListener(\"error\",(function(t){Xh(o,t)})),o.yw=!0;var s=this.Dl;null!==s&&(o.crossOrigin=s(this)),o.src=t,i[o.src]=o,Kh++}null!==n&&Fr(n,this),this.element=o,null!==n&&Br(n,this),void 0===o.__goCache&&(o.__goCache=new Wh),this.s(),this.R(),this.g(\"source\",e,t)}}},sourceCrossOrigin:{get:function(){return this.Dl},set:function(t){if(this.Dl!==t&&(this.Dl=t,null!==this.element)){var e=this.element.src;null===t&&\"string\"===typeof e?this.element.crossOrigin=null:null!==t&&(this.element.crossOrigin=t(this)),this.element.src=e}}},sourceRect:{get:function(){return this.fh},set:function(t){var e=this.fh;e.A(t)||(this.fh=t=t.I(),this.R(),this.g(\"sourceRect\",e,t))}},imageStretch:{get:function(){return this.al},set:function(t){var e=this.al;e!==t&&(this.al=t,this.R(),this.g(\"imageStretch\",e,t))}},flip:{get:function(){return this.yd},set:function(t){var e=this.yd;e!==t&&(this.yd=t,this.R(),this.g(\"flip\",e,t))}},imageAlignment:{get:function(){return this.$k},set:function(t){var e=this.$k;e.A(t)||(this.$k=t=t.I(),this.s(),this.g(\"imageAlignment\",e,t))}},errorFunction:{get:function(){return this.Cc},set:function(t){var e=this.Cc;e!==t&&(this.Cc=t,this.g(\"errorFunction\",e,t))}},successFunction:{get:function(){return this.df},set:function(t){var e=this.df;e!==t&&(this.df=t,this.g(\"successFunction\",e,t))}},naturalBounds:{get:function(){return this.qc}}}),Yh.prototype.redraw=Yh.prototype.sf,Yh.prototype.reloadSource=Yh.prototype.Kz;var Uh=null,Kh=0,$h=4;function Wh(){this.Bi=null}function Jh(t,e,i,n,o){null===t.Bi&&(t.Bi=[]);var r=new za(null),s=r.context,a=1/e;r.width=i/e,r.height=n/e,e=new Zh(r.Ga,e),i=1,0<t.Bi.length&&(i=t.Bi[t.Bi.length-1],o=i.source,i=i.ratio),s.setTransform(a*i,0,0,a*i,0,0),s.drawImage(o,0,0),t.Bi.push(e)}function Zh(t,e){this.source=t,this.ratio=e}function Qh(){this.Us=new Je,this.ec=null}function tu(t,e,i,n,o){t.ec=new ci,t.ec.startX=e,t.ec.startY=i,t.ec.isFilled=n,t.Us.figures.add(t.ec),void 0!==o&&(t.ec.isShadowed=o)}function eu(t){var e=t.ec.segments.length;0<e&&t.ec.segments.N(e-1).close()}function iu(t,e,i,n,o,r,s){var a;void 0===a&&(a=!1);var l=new fi(vi);l.point1X=e,l.point1Y=i,l.point2X=n,l.point2Y=o,l.endX=r,l.endY=s,a&&l.close(),t.ec.segments.add(l)}function nu(t,e,i,n,o){var r;void 0===r&&(r=!1);var s=new fi(yi);s.point1X=e,s.point1Y=i,s.endX=n,s.endY=o,r&&s.close(),t.ec.segments.add(s)}function ou(t,e,i,n,o,r,s,a){var l;void 0===l&&(l=!1),e=new fi(wi,s,a,e,i,n,o,r),l&&e.close(),t.ec.segments.add(e)}function ru(t){var e=su;return null!==e?(su=null,e.reset(t),e):(e=new Qh,e.reset(t),e)}Yh.className=\"Picture\",Uh=new J,Yh.clearCache=qh,Wh.className=\"PictureCacheArray\",Zh.className=\"PictureCacheInstance\",i=Qh.prototype,i.reset=function(t){null!==t?(t.ha(),this.Us=t,t.figures.clear()):this.Us=new Je,this.ec=null},i.qq=function(t){this.ec.isShadowed=t},i.moveTo=function(t,e,i){void 0===i&&(i=!1);var n=new fi(gi);n.endX=t,n.endY=e,i&&n.close(),this.ec.segments.add(n)},i.lineTo=function(t,e,i){void 0===i&&(i=!1);var n=new fi(mi);n.endX=t,n.endY=e,i&&n.close(),this.ec.segments.add(n)},i.arcTo=function(t,e,i,n,o,r,s){void 0===r&&(r=0),void 0===s&&(s=!1);var a=new fi(bi);a.startAngle=t,a.sweepAngle=e,a.centerX=i,a.centerY=n,a.radiusX=o,a.radiusY=0!==r?r:o,s&&a.close(),this.ec.segments.add(a)};var su=null;function au(t,e){var i=t.toLowerCase(),n=We.Je;n[t]=e,n[i]=t}function lu(t){Nl.call(this,t),this.D=2408959,this.Rg=this.yf=\"\",this.Wo=this.To=this.hp=this.ao=null,this.jp=\"\",this.wf=this.Nn=this.ip=this.dh=null,this.Vo=\"\",this.Uo=Ot,this.Pb=this.Xo=\"\",this.fi=this.$m=this.Rh=null,this.Of=new mt(NaN,NaN).freeze(),this.io=\"\",this.Ve=null,this.jo=he,this.Yo=Ae,this.ro=jt,this.ko=At,this.wn=null,this.bo=127,this.si=Bt,this.Ij=\"gray\",this.Od=4,this.Bw=-1,this.Ip=NaN,this.Vx=new _t,this.vj=null,this.Ug=NaN}function hu(t){0!==(16384&t.D)!==!1&&(t.updateAdornments(),wu(t,!1))}function uu(t,e){e.toolManager.mouseDownTools.each((function(e){e.isEnabled&&e.updateAdornments(t)})),e.toolManager.updateAdornments(t)}function cu(t){if(!1===xu(t)){ku(t,!0),t.fl();var e=t.diagram;null!==e&&(e.Dd.add(t),e.cc())}}function fu(t){if(t.D|=2097152,!1!==xu(t)){var e=t.position,i=t.location;i.o()&&e.o()||gu(t,e,i),i=t.vb;var n=_t.alloc().assign(i);i.ha(),i.x=e.x,i.y=e.y,i.freeze(),t.lt(n,i),_t.free(n),ku(t,!1)}}function du(t,e){var i=t.Vx;isNaN(t.Ug)&&(t.Ug=El(t));var n=t.Ug,o=2*n;if(!t.isShadowed)return i.h(e.x-1-n,e.y-1-n,e.width+2+o,e.height+2+o),i;n=e.x,o=e.y;var r=e.width;e=e.height;var s=t.shadowBlur;return t=t.shadowOffset,r+=s,e+=s,n-=s/2,o-=s/2,0<t.x?r+=t.x:(n+=t.x,r-=t.x),0<t.y?e+=t.y:(o+=t.y,e-=t.y),i.h(n-1,o-1,r+2,e+2),i}function pu(t,e,i,n){null===e||t instanceof ju||(e=e.animationManager,e.Yg&&e.ye(t,\"position\",n.copy(),i.copy(),!1))}function gu(t,e,i){var n=mt.alloc(),o=t.locationSpot,r=t.locationObject;o.jc()&&k(\"determineOffset: Part's locationSpot must be real: \"+o.toString());var s=r.naturalBounds,a=r instanceof sh?r.strokeWidth:0;if(n.qk(0,0,s.width+a,s.height+a,o),r!==t)for(n.offset(-a/2,-a/2),r.transform.ta(n),o=r.panel;null!==o&&o!==t;)o.transform.ta(n),o=o.panel;t.Nf.ta(n),n.offset(-t.pc.x,-t.pc.y),o=t.diagram,r=i.o(),s=e.o(),r&&s?0!==(2097152&t.D)?mu(t,e,i,o,n):vu(t,e,i,o,n):r?mu(t,e,i,o,n):s&&vu(t,e,i,o,n),t.D|=2097152,mt.free(n),t.fl()}function mu(t,e,i,n,o){var r=e.x,s=e.y;e.h(i.x-o.x,i.y-o.y),null!==n&&(i=n.animationManager,(o=i.isAnimating)||!i.Yg||t instanceof ju||i.ye(t,\"position\",new mt(r,s),e,!1),o||e.x===r&&e.y===s||(i=n.skipsUndoManager,n.skipsUndoManager=!0,t.g(\"position\",new mt(r,s),e),n.skipsUndoManager=i))}function vu(t,e,i,n,o){var r=i.copy();i.h(e.x+o.x,e.y+o.y),i.A(r)||null===n||(e=n.skipsUndoManager,n.skipsUndoManager=!0,t.g(\"location\",r,i),n.skipsUndoManager=e)}function yu(t,e,i){Mu(t,!1),t instanceof Au&&Kr(i,t),t.layer.isTemporary||e||i.Xa(),e=t.vb;var n=i.viewportBounds;n.o()?Cu(t)?(Kt(e,n,10)||t.hd(!1),t.updateAdornments()):e.Ic(n)?(t.hd(!0),t.updateAdornments()):t.Jb():i.bi=!0}function bu(t,e,i,n){e.constructor===t.constructor||Du||(Du=!0,S('Should not change the class of the Part when changing category from \"'+i+'\" to \"'+n+'\"'),S(\" Old class: \"+B(t.constructor)+\", new class: \"+B(e.constructor)+\", part: \"+t.toString())),t.Sj();var o=t.data;i=t.layerName;var r=t.isSelected,s=t.isHighlighted,a=!0,l=!0,h=!1;t instanceof Au&&(a=t.isTreeLeaf,l=t.isTreeExpanded,h=t.wasTreeExpanded),e.mf(t),e.cloneProtected(t),t.yf=n,t.s(),t.R(),e=t.diagram,n=!0,null!==e&&(n=e.skipsUndoManager,e.skipsUndoManager=!0),t.jb=o,t.D=r?4096|t.D:-4097&t.D,t.D=s?524288|t.D:-524289&t.D,t instanceof Au&&(t.S=a?4|t.S:-5&t.S,t.S=l?1|t.S:-2&t.S,t.S=h?2|t.S:-3&t.S),null!==o&&t.Ea(),o=t.layerName,o!==i&&(t.Rg=i,t.layerName=o),null!==e&&(e.skipsUndoManager=n),t.Lb()&&t.B(64)}function wu(t,e){t.D=e?16384|t.D:-16385&t.D}function xu(t){return 0!==(32768&t.D)}function ku(t,e){t.D=e?32768|t.D:-32769&t.D}function Mu(t,e){t.D=e?65536|t.D:-65537&t.D}function Cu(t){return 0!==(131072&t.D)}function Su(t,e){t.D=e?1048576|t.D:-1048577&t.D}function Nu(t,e){var i=e.containingGroup;return null!==i?1+Nu(t,i):e instanceof Au&&(e=e.labeledLink,null!==e)?Nu(t,e):0}function Pu(t,e){var i=e.containingGroup;return null!==i||e instanceof Au&&(i=e.labeledLink,null!==i)?Pu(t,i):e}function Tu(t,e,i){if(e===i||null===i)return!1;var n=e.containingGroup;return!(null===n||n!==i&&!Tu(t,n,i))||e instanceof Au&&(e=e.labeledLink,null!==e)&&Tu(t,e,i)}function Lu(t){return!!t.isVisible()&&(t=t.layer,null===t||!t.isTemporary)}function Ou(t,e,i,n,o,r){if(void 0===r&&(r=null),!(t.contains(e)||null!==r&&!r(e)||e instanceof ju))if(t.add(e),e instanceof Au){if(i&&e instanceof Ju)for(var s=e.memberParts;s.next();)Ou(t,s.value,i,n,o,r);if(!1!==o)for(s=e.linksConnected;s.next();){var a=s.value;if(!t.contains(a)){var l=a.fromNode,h=a.toNode;l=null===l||t.contains(l),h=null===h||t.contains(h),(o?l&&h:l||h)&&Ou(t,a,i,n,o,r)}}if(1<n)for(e=e.$u();e.next();)Ou(t,e.value,i,n-1,o,r)}else if(e instanceof nc)for(e=e.labelNodes;e.next();)Ou(t,e.value,i,n,o,r)}Qh.className=\"StreamGeometryContext\",au(\"Rectangle\",(function(t,e,i){return t=new Je(li),t.startX=0,t.startY=0,t.endX=e,t.endY=i,t})),au(\"Square\",(function(t,e,i){return t=new Je(li),t.startX=0,t.startY=0,t.endX=e,t.endY=i,t.defaultStretch=es,t})),au(\"RoundedRectangle\",(function(t,e,i){var n=t?t.parameter1:NaN;return(isNaN(n)||0>=n)&&(n=5),n=Math.min(n,e/3),n=Math.min(n,i/3),t=n*We.xg,e=(new Je).add(new ci(n,0,!0).add(new fi(mi,e-n,0)).add(new fi(vi,e,n,e-t,0,e,t)).add(new fi(mi,e,i-n)).add(new fi(vi,e-n,i,e,i-t,e-t,i)).add(new fi(mi,n,i)).add(new fi(vi,0,i-n,t,i,0,i-t)).add(new fi(mi,0,n)).add(new fi(vi,n,0,0,t,t,0).close())),1<t&&(e.spot1=new Ge(0,0,t,t),e.spot2=new Ge(1,1,-t,-t)),e})),au(\"Border\",\"RoundedRectangle\"),au(\"Ellipse\",(function(t,e,i){return t=new Je(hi),t.startX=0,t.startY=0,t.endX=e,t.endY=i,t.spot1=He,t.spot2=Ye,t})),au(\"Circle\",(function(t,e,i){return t=new Je(hi),t.startX=0,t.startY=0,t.endX=e,t.endY=i,t.spot1=He,t.spot2=Ye,t.defaultStretch=es,t})),au(\"TriangleRight\",(function(t,e,i){return(new Je).add(new ci(0,0).add(new fi(mi,e,.5*i)).add(new fi(mi,0,i).close())).xm(0,.25,.5,.75)})),au(\"TriangleDown\",(function(t,e,i){return(new Je).add(new ci(0,0).add(new fi(mi,e,0)).add(new fi(mi,.5*e,i).close())).xm(.25,0,.75,.5)})),au(\"TriangleLeft\",(function(t,e,i){return(new Je).add(new ci(e,i).add(new fi(mi,0,.5*i)).add(new fi(mi,e,0).close())).xm(.5,.25,1,.75)})),au(\"TriangleUp\",(function(t,e,i){return(new Je).add(new ci(e,i).add(new fi(mi,0,i)).add(new fi(mi,.5*e,0).close())).xm(.25,.5,.75,1)})),au(\"Triangle\",\"TriangleUp\"),au(\"Diamond\",(function(t,e,i){return(new Je).add(new ci(.5*e,0).add(new fi(mi,0,.5*i)).add(new fi(mi,.5*e,i)).add(new fi(mi,e,.5*i).close())).xm(.25,.25,.75,.75)})),au(\"LineH\",(function(t,e,i){return t=new Je(ai),t.startX=0,t.startY=i/2,t.endX=e,t.endY=i/2,t})),au(\"LineV\",(function(t,e,i){return t=new Je(ai),t.startX=e/2,t.startY=0,t.endX=e/2,t.endY=i,t})),au(\"None\",\"Rectangle\"),au(\"BarH\",\"Rectangle\"),au(\"BarV\",\"Rectangle\"),au(\"MinusLine\",\"LineH\"),au(\"PlusLine\",(function(t,e,i){return(new Je).add(new ci(0,i/2,!1).add(new fi(mi,e,i/2)).add(new fi(gi,e/2,0)).add(new fi(mi,e/2,i)))})),au(\"XLine\",(function(t,e,i){return(new Je).add(new ci(0,i,!1).add(new fi(mi,e,0)).add(new fi(gi,0,0)).add(new fi(mi,e,i)))})),We.Bm={\"\":\"\",Standard:\"F1 m 0,0 l 8,4 -8,4 2,-4 z\",Backward:\"F1 m 8,0 l -2,4 2,4 -8,-4 z\",Triangle:\"F1 m 0,0 l 8,4.62 -8,4.62 z\",BackwardTriangle:\"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z\",Boomerang:\"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z\",BackwardBoomerang:\"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z\",SidewaysV:\"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z\",BackwardV:\"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z\",OpenTriangle:\"m 0,0 l 8,4 -8,4\",BackwardOpenTriangle:\"m 8,0 l -8,4 8,4\",OpenTriangleLine:\"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8\",BackwardOpenTriangleLine:\"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8\",OpenTriangleTop:\"m 0,0 l 8,4 m 0,4\",BackwardOpenTriangleTop:\"m 8,0 l -8,4 m 0,4\",OpenTriangleBottom:\"m 0,8 l 8,-4\",BackwardOpenTriangleBottom:\"m 0,4 l 8,4\",HalfTriangleTop:\"F1 m 0,0 l 0,4 8,0 z m 0,8\",BackwardHalfTriangleTop:\"F1 m 8,0 l 0,4 -8,0 z m 0,8\",HalfTriangleBottom:\"F1 m 0,4 l 0,4 8,-4 z\",BackwardHalfTriangleBottom:\"F1 m 8,4 l 0,4 -8,-4 z\",ForwardSemiCircle:\"m 4,0 b 270 180 0 4 4\",BackwardSemiCircle:\"m 4,8 b 90 180 0 -4 4\",Feather:\"m 0,0 l 3,4 -3,4\",BackwardFeather:\"m 3,0 l -3,4 3,4\",DoubleFeathers:\"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4\",BackwardDoubleFeathers:\"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4\",TripleFeathers:\"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4\",BackwardTripleFeathers:\"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4\",ForwardSlash:\"m 0,8 l 5,-8\",BackSlash:\"m 0,0 l 5,8\",DoubleForwardSlash:\"m 0,8 l 4,-8 m -2,8 l 4,-8\",DoubleBackSlash:\"m 0,0 l 4,8 m -2,-8 l 4,8\",TripleForwardSlash:\"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8\",TripleBackSlash:\"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8\",Fork:\"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4\",BackwardFork:\"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4\",LineFork:\"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4\",BackwardLineFork:\"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8\",CircleFork:\"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4\",BackwardCircleFork:\"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3\",CircleLineFork:\"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4\",BackwardCircleLineFork:\"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3\",Circle:\"F1 m 8,4 b 0 360 -4 0 4 z\",Block:\"F1 m 0,0 l 0,8 8,0 0,-8 z\",StretchedDiamond:\"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z\",Diamond:\"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z\",Chevron:\"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z\",StretchedChevron:\"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z\",NormalArrow:\"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z\",X:\"m 0,0 l 8,8 m 0,-8 l -8,8\",TailedNormalArrow:\"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z\",DoubleTriangle:\"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z\",BigEndArrow:\"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z\",ConcaveTailArrow:\"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z\",RoundedTriangle:\"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z\",SimpleArrow:\"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z\",AccelerationArrow:\"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z\",BoxArrow:\"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z\",TriangleLine:\"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8\",CircleEndedArrow:\"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z\",DynamicWidthArrow:\"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z\",EquilibriumArrow:\"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3\",FastForward:\"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z\",Kite:\"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z\",HalfArrowTop:\"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8\",HalfArrowBottom:\"F1 m 0,8 l 4,-4 4,0 -8,4 z\",OpposingDirectionDoubleArrow:\"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z\",PartialDoubleTriangle:\"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z\",LineCircle:\"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z\",DoubleLineCircle:\"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z\",TripleLineCircle:\"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z\",CircleLine:\"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8\",DiamondCircle:\"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z\",PlusCircle:\"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8\",OpenRightTriangleTop:\"m 8,0 l 0,4 -8,0 m 0,4\",OpenRightTriangleBottom:\"m 8,8 l 0,-4 -8,0\",Line:\"m 0,0 l 0,8\",DoubleLine:\"m 0,0 l 0,8 m 2,0 l 0,-8\",TripleLine:\"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8\",PentagonArrow:\"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z\"},d(lu,Nl),lu.prototype.cloneProtected=function(t){Nl.prototype.cloneProtected.call(this,t),t.D=-4097&this.D|49152,t.yf=this.yf,t.Rg=this.Rg,t.ao=this.ao,t.hp=this.hp,t.To=this.To,t.Wo=this.Wo,t.jp=this.jp,t.ip=this.ip,t.Nn=this.Nn,t.wf=null,t.Vo=this.Vo,t.Uo=this.Uo.I(),t.Xo=this.Xo,t.Yo=this.Yo.I(),t.Pb=this.Pb,t.$m=this.$m,t.Of.assign(this.Of),t.io=this.io,t.jo=this.jo.I(),t.ro=this.ro.I(),t.ko=this.ko.I(),t.wn=this.wn,t.bo=this.bo,t.si=this.si.I(),t.Ij=this.Ij,t.Od=this.Od,t.Ip=this.Ip},lu.prototype.mf=function(t){Nl.prototype.mf.call(this,t),t.yh(),t.dh=null,t.Ve=null,t.vj=null},lu.prototype.toString=function(){var t=B(this.constructor)+\"#\"+lt(this);return null!==this.data&&(t+=\"(\"+z(this.data)+\")\"),t},lu.prototype.nk=function(t,e,i,n,o,r,s){var a=this.diagram;null!==a&&(t===Ni&&\"elements\"===e?o instanceof Nl?Al(o,(function(t){zf(a.partManager,t),Ar(a,t)})):Br(a,o):t===Pi&&\"elements\"===e&&(o instanceof Nl?Al(o,(function(t){Ff(a.partManager,t),zr(a,t)})):Fr(a,o)),a.ab(t,e,i,n,o,r,s))},lu.prototype.Ea=function(t){if(Nl.prototype.Ea.call(this,t),null!==this.data){t=this.Y.j;for(var e=t.length,i=0;i<e;i++){var n=t[i];n instanceof Nl&&Al(n,(function(t){null!==t.data&&t.Ea()}))}}},lu.prototype.updateRelationshipsFromData=function(){null!==this.data&&this.diagram.partManager.updateRelationshipsFromData(this)},lu.prototype.$j=function(t){var e=this.wf;return null===e?null:e.J(t)},lu.prototype.qh=function(t,e){if(null!==e){var i=null,n=this.wf;if(null!==n&&(i=n.J(t)),i!==e){if(null!==i){var o=i.diagram;null!==o&&o.remove(i)}null===n&&(this.wf=n=new gt),e.yf!==t&&(e.category=t),n.add(t,e),t=this.diagram,null!==t&&(t.add(e),t=e.adornedObject,null!==t&&(t=t.Gi(),null!==t&&(e.data=t.data)))}}},lu.prototype.tf=function(t){var e=this.wf;if(null!==e){var i=e.J(t);if(null!==i){var n=i.diagram;null!==n&&n.remove(i)}e.remove(t),0===e.count&&(this.wf=null)}},lu.prototype.Sj=function(){var t=this.wf;if(null!==t){var e=j();for(t=t.iterator;t.next();)e.push(t.key);t=e.length;for(var i=0;i<t;i++)this.tf(e[i]);A(e)}},lu.prototype.updateAdornments=function(){var t=this.diagram;if(null!==t){for(var e=this.adornments;e.next();){var i=e.value;i.s(),i.placeholder&&i.placeholder.s()}t:{if(this.isSelected&&this.selectionAdorned&&(e=this.selectionObject,null!==e&&this.actualBounds.o()&&this.isVisible()&&e.rf()&&e.actualBounds.o())){if(i=this.$j(\"Selection\"),null===i){if(i=this.selectionAdornmentTemplate,null===i&&(i=this.zh()?t.linkSelectionAdornmentTemplate:this instanceof Ju?t.groupSelectionAdornmentTemplate:t.nodeSelectionAdornmentTemplate),!(i instanceof ju))break t;ql(i),i=i.copy(),null!==i&&(this.zh()&&this.selectionObject===this.path&&(i.type=Nl.Link),i.adornedObject=e)}if(null!==i){if(null!==i.placeholder){var n=e.Ce(),o=0;e instanceof sh&&(o=e.strokeWidth);var r=It.alloc();r.h((e.naturalBounds.width+o)*n,(e.naturalBounds.height+o)*n),It.free(r)}i.type===Nl.Link?i.s():(e=mt.alloc(),mt.free(e)),this.qh(\"Selection\",i);break t}}this.tf(\"Selection\")}for(uu(this,t),e=this.adornments;e.next();)e.value.Ea()}},lu.prototype.Jb=function(){var t=this.diagram;null!==t&&(gr(t),0!==(16384&this.D)!==!0&&(wu(this,!0),t.cc()))},lu.prototype.move=function(t,e){!0===e?this.location=t:this.position=t},lu.prototype.moveTo=function(t,e,i){t=mt.allocAt(t,e),this.move(t,i),mt.free(t)},lu.prototype.isVisible=function(){if(!this.visible)return!1;var t=this.layer;return!(null!==t&&!t.visible)&&(t=this.diagram,!(null===t||!go(t.animationManager,this))||(t=this.containingGroup,!!(null===t||t.isSubGraphExpanded&&t.isVisible())))},i=lu.prototype,i.Mb=function(t){var e=this.diagram;t?(this.B(4),this.Jb(),null!==e&&e.Dd.add(this)):(this.B(8),this.Sj()),this.yh(),null!==e&&(e.Xa(),e.R())},i.$a=function(t){if(this.name===t)return this;var e=this.vj;if(null===e&&(this.vj=e=new gt),null!==e.J(t))return e.J(t);var i=Nl.prototype.$a.call(this,t);return null!==i?(e.set(t,i),i):(e.set(t,null),null)},i.nf=function(t,e,i){void 0===i&&(i=new mt),e=e.jc()?de:e;var n=t.naturalBounds;if(i.h(n.width*e.x+e.offsetX,n.height*e.y+e.offsetY),null===t||t===this)return i;for(t.transform.ta(i),t=t.panel;null!==t&&t!==this;)t.transform.ta(i),t=t.panel;return this.Nf.ta(i),i.offset(-this.pc.x,-this.pc.y),i},i.Vp=function(t){return void 0===t&&(t=new _t),t.assign(this.actualBounds)},i.ac=function(){!0===pa(this)&&(this instanceof Ju&&this.memberParts.each((function(t){t.ac()})),this.measure(1/0,1/0)),this.arrange()},lu.prototype.arrange=function(){if(!1===ma(this))fu(this);else{var t=this.vb,e=_t.alloc();e.assign(t),t.ha();var i=Cu(this);this.th(0,0,this.pc.width,this.pc.height);var n=this.position;gu(this,n,this.location),t.x=n.x,t.y=n.y,t.freeze(),this.lt(e,t),va(this,!1),e.A(t)?this.hd(i):!this.Lb()||We.w(e.width,t.width)&&We.w(e.height,t.height)||0<=this.Bw&&this.B(16),_t.free(e),ku(this,!1)}},i=lu.prototype,i.lt=function(t,e){var i=this.diagram;if(null!==i){var n=!1;if(!1===i.Og&&t.o()){var o=_t.alloc();o.assign(i.documentBounds),o.Ov(i.padding),t.x>o.x&&t.y>o.y&&t.right<o.right&&t.bottom<o.bottom&&e.x>o.x&&e.y>o.y&&e.right<o.right&&e.bottom<o.bottom&&(n=!0),_t.free(o)}0!==(65536&this.D)!==!0&&t.A(e)||yu(this,n,i),i.R(),Gt(t,e)||(this instanceof Au&&!i.undoManager.isUndoingRedoing&&this.ed(),this.yh())}},i.Kv=function(t,e){if(this.zh()||!t.o())return!1;var i=this.diagram;if(null!==i&&(pu(this,i,t,e),!0===i.undoManager.isUndoingRedoing))return!0;if(this.sa=t,this.D&=-2097153,i=this.Of,i.o()){var n=i.copy();i.h(i.x+(t.x-e.x),i.y+(t.y-e.y)),this.g(\"location\",n,i)}return!1===xu(this)&&!1===ma(this)&&(cu(this),fu(this)),!0},i.wt=function(t,e){var i=this.Of,n=this.sa;xu(this)||ma(this)?i.h(NaN,NaN):i.h(i.x+t-n.x,i.y+e-n.y),n.h(t,e),cu(this)},i.Lv=function(){this.D&=-2097153,cu(this)},i.Pi=function(){return!0},i.Lb=function(){return!0},i.zh=function(){return!1},i.sg=function(){return!0},lu.prototype.canCopy=function(){if(!this.copyable)return!1;var t=this.layer;return null===t||!!t.allowCopy&&(t=t.diagram,null===t||!!t.allowCopy)},lu.prototype.canDelete=function(){if(!this.deletable)return!1;var t=this.layer;return null===t||!!t.allowDelete&&(t=t.diagram,null===t||!!t.allowDelete)},lu.prototype.canEdit=function(){if(!this.textEditable)return!1;var t=this.layer;return null===t||!!t.allowTextEdit&&(t=t.diagram,null===t||!!t.allowTextEdit)},lu.prototype.canGroup=function(){if(!this.groupable)return!1;var t=this.layer;return null===t||!!t.allowGroup&&(t=t.diagram,null===t||!!t.allowGroup)},lu.prototype.canMove=function(){if(!this.movable)return!1;var t=this.layer;return null===t||!!t.allowMove&&(t=t.diagram,null===t||!!t.allowMove)},lu.prototype.canReshape=function(){if(!this.reshapable)return!1;var t=this.layer;return null===t||!!t.allowReshape&&(t=t.diagram,null===t||!!t.allowReshape)},lu.prototype.canResize=function(){if(!this.resizable)return!1;var t=this.layer;return null===t||!!t.allowResize&&(t=t.diagram,null===t||!!t.allowResize)},lu.prototype.canRotate=function(){if(!this.rotatable)return!1;var t=this.layer;return null===t||!!t.allowRotate&&(t=t.diagram,null===t||!!t.allowRotate)},lu.prototype.canSelect=function(){if(!this.selectable)return!1;var t=this.layer;return null===t||!!t.allowSelect&&(t=t.diagram,null===t||!!t.allowSelect)},i=lu.prototype,i.hd=function(t){this.D=t?131072|this.D:-131073&this.D},i.yh=function(){var t=this.containingGroup;null!==t&&(t.s(),null!==t.placeholder&&t.placeholder.s(),t.ed())},i.R=function(){var t=this.diagram;null!==t&&!ma(this)&&!xu(this)&&this.isVisible()&&this.vb.o()&&t.R(du(this,this.vb))},i.s=function(){Nl.prototype.s.call(this);var t=this.diagram;null!==t&&(t.Dd.add(this),this instanceof Au&&null!==this.labeledLink&&ra(this.labeledLink),t.cc(!0))},i.Yp=function(t){t||(t=this.Rh,null!==t&&Zu(t,this))},i.Zp=function(t){t||(t=this.Rh,null!==t&&Qu(t,this))},i.Yj=function(){var t=this.data;if(null!==t){var e=this.diagram;null!==e&&(e=e.model,null!==e&&e.om(t))}},i.Sy=function(){return Nu(this,this)},i.Vy=function(){return Pu(this,this)},i.Vd=function(t){return t instanceof Ju&&Tu(this,this,t)},i.hx=function(t){if(null===t)return null;if(this===t)return this.containingGroup;for(var e=this;null!==e;){if(e instanceof Ju&&Su(e,!0),e instanceof Au){var i=e.labeledLink;null!==i&&(e=i)}e=e.containingGroup}for(i=null,e=t;null!==e;){if(0!==(1048576&e.D)){i=e;break}e instanceof Au&&(t=e.labeledLink,null!==t&&(e=t)),e=e.containingGroup}for(e=this;null!==e;)e instanceof Ju&&Su(e,!1),e instanceof Au&&(t=e.labeledLink,null!==t&&(e=t)),e=e.containingGroup;return i},lu.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var t=this.layer;return!(null!==t&&t.isTemporary||this instanceof Au&&this.isLinkLabel)},lu.prototype.B=function(t){if(void 0===t&&(t=16777215),this.isLayoutPositioned&&0!==(t&this.layoutConditions)){var e=this.layer;null!==e&&e.isTemporary||this instanceof Au&&this.isLinkLabel?e=!1:(e=this.diagram,e=null===e||!e.undoManager.isUndoingRedoing)}else e=!1;if(e)if(e=this.Rh,null!==e){var i=e.layout;null!==i?i.B():e.B(t)}else t=this.diagram,null!==t&&(t=t.layout,null!==t&&t.B())},p.Object.defineProperties(lu.prototype,{key:{get:function(){var t=this.diagram;if(null!==t)return t.model.pa(this.data)}},adornments:{get:function(){return null===this.wf?Q:this.wf.iteratorValues}},layer:{get:function(){return this.fi}},diagram:{get:function(){var t=this.fi;return null!==t?t.diagram:null}},layerName:{get:function(){return this.Rg},set:function(t){var e=this.Rg;if(e!==t){var i=this.diagram;if((null===i||null!==i.Zl(t)&&!i.partManager.addsToTemporaryLayer)&&(this.Rg=t,null!==i&&i.Xa(),this.g(\"layerName\",e,t),e=this.layer,null!==e&&e.name!==t&&(i=e.diagram,null!==i&&(t=i.Zl(t),null!==t&&t!==e)))){var n=e.xc(-1,this,!0);if(0<=n&&i.ab(Pi,\"parts\",e,this,null,n,!0),n=t.Ni(99999999,this,!0),e.visible!==t.visible&&this.Mb(t.visible),0<=n&&i.ab(Ni,\"parts\",t,null,this,!0,n),n=this.layerChanged,null!==n){var o=i.da;i.da=!0,n(this,e,t),i.da=o}}}}},layerChanged:{get:function(){return this.ao},set:function(t){var e=this.ao;e!==t&&(this.ao=t,this.g(\"layerChanged\",e,t))}},zOrder:{get:function(){return this.Ip},set:function(t){var e=this.Ip;if(e!==t){this.Ip=t;var i=this.layer;null!==i&&Lo(i,-1,this),this.g(\"zOrder\",e,t),t=this.diagram,null!==t&&t.R()}}},locationObject:{get:function(){if(null===this.Ve){var t=this.locationObjectName;\"\"!==t?(t=this.$a(t),this.Ve=null!==t?t:this):this instanceof ju&&this.type!==Nl.Link&&null!==this.placeholder?this.Ve=this.placeholder:this.Ve=this}return this.Ve.visible?this.Ve:this}},minLocation:{get:function(){return this.ro},set:function(t){var e=this.ro;e.A(t)||(this.ro=t=t.I(),this.g(\"minLocation\",e,t))}},maxLocation:{get:function(){return this.ko},set:function(t){var e=this.ko;e.A(t)||(this.ko=t=t.I(),this.g(\"maxLocation\",e,t))}},locationObjectName:{get:function(){return this.io},set:function(t){var e=this.io;e!==t&&(this.io=t,this.Ve=null,this.s(),this.g(\"locationObjectName\",e,t))}},locationSpot:{get:function(){return this.jo},set:function(t){var e=this.jo;e.A(t)||(this.jo=t=t.I(),this.s(),this.g(\"locationSpot\",e,t))}},location:{get:function(){return this.Of},set:function(t){var e=t.x,i=t.y,n=this.Of,o=n.x,r=n.y;(o===e||isNaN(o)&&isNaN(e))&&(r===i||isNaN(r)&&isNaN(i))||(t=t.I(),e=t,this.zh()?e=!1:(this.Of=e,this.D|=2097152,!1===ma(this)&&(cu(this),i=this.sa,i.o()&&(o=i.copy(),i.h(i.x+(e.x-n.x),i.y+(e.y-n.y)),pu(this,this.diagram,i,o),this.g(\"position\",o,i))),e=!0),e&&this.g(\"location\",n,t))}},category:{get:function(){return this.yf},set:function(t){var e=this.yf;if(e!==t){var i=this.diagram,n=this.data,o=null;if(null!==i&&null!==n&&!(this instanceof ju)){var r=i.model.undoManager;r.isEnabled&&!r.isUndoingRedoing&&(o=this.clone(),o.Y.addAll(this.Y))}this.yf=t,this.g(\"category\",e,t),null===i||null===n||this instanceof ju?this instanceof ju&&(o=this.adornedPart,null!==o&&(t=o.wf,null!==t&&t.remove(e),o.qh(this.category,this))):(r=i.model,r.undoManager.isUndoingRedoing||(this.zh()?(i.partManager.setLinkCategoryForData(n,t),i=i.partManager.findLinkTemplateForCategory(t),null!==i&&(ql(i),i=i.copy(),null!==i&&bu(this,i,e,t))):(null!==r&&r.pq(n,t),i=jf(i.partManager,n,t),null!==i&&(ql(i),i=i.copy(),null===i||i instanceof nc||(n=this.location.copy(),bu(this,i,e,t),this.location.o()||(this.location=n)))),null!==o&&(e=this.clone(),e.Y.addAll(this.Y),this.g(\"self\",o,e))))}}},self:{get:function(){return this},set:function(t){bu(this,t,this.category,t.category)}},copyable:{get:function(){return 0!==(1&this.D)},set:function(t){var e=0!==(1&this.D);e!==t&&(this.D^=1,this.g(\"copyable\",e,t))}},deletable:{get:function(){return 0!==(2&this.D)},set:function(t){var e=0!==(2&this.D);e!==t&&(this.D^=2,this.g(\"deletable\",e,t))}},textEditable:{get:function(){return 0!==(4&this.D)},set:function(t){var e=0!==(4&this.D);e!==t&&(this.D^=4,this.g(\"textEditable\",e,t),this.Jb())}},groupable:{get:function(){return 0!==(8&this.D)},set:function(t){var e=0!==(8&this.D);e!==t&&(this.D^=8,this.g(\"groupable\",e,t))}},movable:{get:function(){return 0!==(16&this.D)},set:function(t){var e=0!==(16&this.D);e!==t&&(this.D^=16,this.g(\"movable\",e,t))}},selectionAdorned:{get:function(){return 0!==(32&this.D)},set:function(t){var e=0!==(32&this.D);e!==t&&(this.D^=32,this.g(\"selectionAdorned\",e,t),this.Jb())}},isInDocumentBounds:{get:function(){return 0!==(64&this.D)},set:function(t){var e=0!==(64&this.D);if(e!==t){this.D^=64;var i=this.diagram;null!==i&&i.Xa(),this.g(\"isInDocumentBounds\",e,t)}}},isLayoutPositioned:{get:function(){return 0!==(128&this.D)},set:function(t){var e=0!==(128&this.D);e!==t&&(this.D^=128,this.g(\"isLayoutPositioned\",e,t),this.B(t?4:8))}},selectable:{get:function(){return 0!==(256&this.D)},set:function(t){var e=0!==(256&this.D);e!==t&&(this.D^=256,this.g(\"selectable\",e,t),this.Jb())}},reshapable:{get:function(){return 0!==(512&this.D)},set:function(t){var e=0!==(512&this.D);e!==t&&(this.D^=512,this.g(\"reshapable\",e,t),this.Jb())}},resizable:{get:function(){return 0!==(1024&this.D)},set:function(t){var e=0!==(1024&this.D);e!==t&&(this.D^=1024,this.g(\"resizable\",e,t),this.Jb())}},rotatable:{get:function(){return 0!==(2048&this.D)},set:function(t){var e=0!==(2048&this.D);e!==t&&(this.D^=2048,this.g(\"rotatable\",e,t),this.Jb())}},isSelected:{get:function(){return 0!==(4096&this.D)},set:function(t){var e=0!==(4096&this.D);if(e!==t){var i=this.diagram;if(!t||this.canSelect()&&!(null!==i&&i.selection.count>=i.maxSelectionCount)){this.D^=4096;var n=!1;if(null!==i){n=i.skipsUndoManager,i.skipsUndoManager=!0;var o=i.selection;o.ha(),t?o.add(this):o.remove(this),o.freeze()}this.g(\"isSelected\",e,t),this.Jb(),t=this.selectionChanged,null!==t&&t(this),null!==i&&(i.cc(),i.skipsUndoManager=n)}}}},isHighlighted:{get:function(){return 0!==(524288&this.D)},set:function(t){var e=0!==(524288&this.D);if(e!==t){this.D^=524288;var i=this.diagram;null!==i&&(i=i.highlighteds,i.ha(),t?i.add(this):i.remove(this),i.freeze()),this.g(\"isHighlighted\",e,t),this.R(),t=this.highlightedChanged,null!==t&&t(this)}}},isShadowed:{get:function(){return 0!==(8192&this.D)},set:function(t){var e=0!==(8192&this.D);e!==t&&(this.D^=8192,this.g(\"isShadowed\",e,t),this.R())}},isAnimated:{get:function(){return 0!==(262144&this.D)},set:function(t){var e=0!==(262144&this.D);e!==t&&(this.D^=262144,this.g(\"isAnimated\",e,t))}},highlightedChanged:{get:function(){return this.Nn},set:function(t){var e=this.Nn;e!==t&&(this.Nn=t,this.g(\"highlightedChanged\",e,t))}},selectionObjectName:{get:function(){return this.jp},set:function(t){var e=this.jp;e!==t&&(this.jp=t,this.dh=null,this.g(\"selectionObjectName\",e,t))}},selectionAdornmentTemplate:{get:function(){return this.hp},set:function(t){var e=this.hp;e!==t&&(this.hp=t,this.g(\"selectionAdornmentTemplate\",e,t))}},selectionObject:{get:function(){if(null===this.dh){var t=this.selectionObjectName;null!==t&&\"\"!==t?(t=this.$a(t),this.dh=null!==t?t:this):this instanceof nc?(t=this.path,this.dh=null!==t?t:this):this.dh=this}return this.dh}},selectionChanged:{get:function(){return this.ip},set:function(t){var e=this.ip;e!==t&&(this.ip=t,this.g(\"selectionChanged\",e,t))}},resizeAdornmentTemplate:{get:function(){return this.To},set:function(t){var e=this.To;e!==t&&(this.To=t,this.g(\"resizeAdornmentTemplate\",e,t))}},resizeObjectName:{get:function(){return this.Vo},set:function(t){var e=this.Vo;e!==t&&(this.Vo=t,this.g(\"resizeObjectName\",e,t))}},resizeObject:{get:function(){var t=this.resizeObjectName;return\"\"!==t&&(t=this.$a(t),null!==t)?t:this}},resizeCellSize:{get:function(){return this.Uo},set:function(t){var e=this.Uo;e.A(t)||(this.Uo=t=t.I(),this.g(\"resizeCellSize\",e,t))}},rotateAdornmentTemplate:{get:function(){return this.Wo},set:function(t){var e=this.Wo;e!==t&&(this.Wo=t,this.g(\"rotateAdornmentTemplate\",e,t))}},rotateObjectName:{get:function(){return this.Xo},set:function(t){var e=this.Xo;e!==t&&(this.Xo=t,this.g(\"rotateObjectName\",e,t))}},rotateObject:{get:function(){var t=this.rotateObjectName;return\"\"!==t&&(t=this.$a(t),null!==t)?t:this}},rotationSpot:{get:function(){return this.Yo},set:function(t){var e=this.Yo;e.A(t)||(this.Yo=t=t.I(),this.g(\"rotationSpot\",e,t))}},text:{get:function(){return this.Pb},set:function(t){var e=this.Pb;e!==t&&(this.Pb=t,this.g(\"text\",e,t))}},containingGroup:{get:function(){return this.Rh},set:function(t){if(this.Lb()){var e=this.Rh;if(e!==t){null===t||this!==t&&!t.Vd(this)||(this===t&&k(\"Cannot make a Group a member of itself: \"+this.toString()),k(\"Cannot make a Group indirectly contain itself: \"+this.toString()+\" already contains \"+t.toString())),this.B(2);var i=this.diagram;if(null!==e?Qu(e,this):this instanceof Ju&&null!==i&&i.xi.remove(this),this.Rh=t,null!==t?Zu(t,this):this instanceof Ju&&null!==i&&i.xi.add(this),this.B(1),null!==i){var n=this.data,o=i.model;if(null!==n&&o.dk()){var r=o.pa(null!==t?t.data:null);o.ut(n,r)}}if(n=this.containingGroupChanged,null!==n&&(o=!0,null!==i&&(o=i.da,i.da=!0),n(this,e,t),null!==i&&(i.da=o)),this instanceof Ju)for(i=new rt,Ou(i,this,!0,0,!0),i=i.iterator;i.next();)if(n=i.value,n instanceof Au)for(n=n.linksConnected;n.next();)oc(n.value);if(this instanceof Au){for(i=this.linksConnected;i.next();)oc(i.value);i=this.labeledLink,null!==i&&oc(i)}this.g(\"containingGroup\",e,t),null!==t&&(e=t.layer,null!==e&&Lo(e,-1,t))}}else k(\"cannot set the Part.containingGroup of a Link or Adornment\")}},containingGroupChanged:{get:function(){return this.$m},set:function(t){var e=this.$m;e!==t&&(this.$m=t,this.g(\"containingGroupChanged\",e,t))}},isTopLevel:{get:function(){return!(null!==this.containingGroup||this instanceof Au&&null!==this.labeledLink)}},layoutConditions:{get:function(){return this.bo},set:function(t){var e=this.bo;e!==t&&(this.bo=t,this.g(\"layoutConditions\",e,t))}},dragComputation:{get:function(){return this.wn},set:function(t){var e=this.wn;e!==t&&(this.wn=t,this.g(\"dragComputation\",e,t))}},shadowOffset:{get:function(){return this.si},set:function(t){var e=this.si;e.A(t)||(this.si=t=t.I(),this.R(),this.g(\"shadowOffset\",e,t))}},shadowColor:{get:function(){return this.Ij},set:function(t){var e=this.Ij;e!==t&&(this.Ij=t,this.R(),this.g(\"shadowColor\",e,t))}},shadowBlur:{get:function(){return this.Od},set:function(t){var e=this.Od;e!==t&&(this.Od=t,this.R(),this.g(\"shadowBlur\",e,t))}}}),lu.prototype.invalidateLayout=lu.prototype.B,lu.prototype.findCommonContainingGroup=lu.prototype.hx,lu.prototype.isMemberOf=lu.prototype.Vd,lu.prototype.findTopLevelPart=lu.prototype.Vy,lu.prototype.findSubGraphLevel=lu.prototype.Sy,lu.prototype.ensureBounds=lu.prototype.ac,lu.prototype.getDocumentBounds=lu.prototype.Vp,lu.prototype.getRelativePoint=lu.prototype.nf,lu.prototype.findObject=lu.prototype.$a,lu.prototype.moveTo=lu.prototype.moveTo,lu.prototype.invalidateAdornments=lu.prototype.Jb,lu.prototype.clearAdornments=lu.prototype.Sj,lu.prototype.removeAdornment=lu.prototype.tf,lu.prototype.addAdornment=lu.prototype.qh,lu.prototype.findAdornment=lu.prototype.$j,lu.prototype.updateTargetBindings=lu.prototype.Ea;var Du=!1;function ju(t){lu.call(this,t),this.D&=-257,this.Rg=\"Adornment\",this.$d=null,this.Ew=0,this.Pw=!1,this.l=[],this.Va=null}function Au(t){lu.call(this,t),this.S=13,this.Ya=new nt,this.Cp=this.hl=this.ii=this.eo=this.co=null,this.Ck=re,this.rc=this.Le=null,this.Qo=$u,this.oh=!1}function Bu(t,e){null!==e&&(null===t.Le&&(t.Le=new rt),t.Le.add(e))}function zu(t,e,i,n){if(null===e||null===t.Le)return null;for(var o=t.Le.iterator;o.next();){var r=o.value;if(r.jt===t&&r.ov===e&&r.xx===i&&r.yx===n||r.jt===e&&r.ov===t&&r.xx===n&&r.yx===i)return r}return null}function Fu(t,e){for(var i=t.linksConnected;i.next();){var n=i.value;n.fromPort!==e&&n.toPort!==e||(Iu(t,n.fromPort),Iu(t,n.toPort),n.Ra())}}function Iu(t,e){null!==e&&(e=e.Po,null!==e&&e.cm(),t=t.containingGroup,null===t||t.isSubGraphExpanded||Iu(t,t.port))}function Eu(t,e,i){Iu(t,i);var n=t.Ya.contains(e);if(n||t.Ya.add(e),!n||e.fromNode===e.toNode){var o=t.linkConnected;if(null!==o){var r=!0,s=t.diagram;null!==s&&(r=s.da,s.da=!0),o(t,e,i),null!==s&&(s.da=r)}}!n&&e.isTreeLink&&(i=e.fromNode,e=e.toNode,null!==i&&null!==e&&i!==e&&(n=!0,t=t.diagram,null!==t&&(n=t.isTreePathToChildren),o=n?e:i,r=n?i:e,o.oh||(o.oh=r),!r.isTreeLeaf||null!==t&&t.undoManager.isUndoingRedoing||(n?i===r&&(r.isTreeLeaf=!1):e===r&&(r.isTreeLeaf=!1))))}function Ru(t,e,i){Iu(t,i);var n=t.Ya.remove(e),o=null;if(n||e.toNode===e.fromNode){var r=t.linkDisconnected;if(o=t.diagram,null!==r){var s=!0;null!==o&&(s=o.da,o.da=!0),r(t,e,i),null!==o&&(o.da=s)}}n&&e.isTreeLink&&(i=!0,null!==o&&(i=o.isTreePathToChildren),t=i?e.toNode:e.fromNode,e=i?e.fromNode:e.toNode,null!==t&&(t.oh=!1),null===e||e.isTreeLeaf||(0===e.Ya.count?(e.oh=null,null!==o&&o.undoManager.isUndoingRedoing||(e.isTreeLeaf=!0)):Vu(e)))}function Vu(t){if(t.oh=!1,0!==t.Ya.count){var e=!0,i=t.diagram;if(null===i||!i.undoManager.isUndoingRedoing){for(null!==i&&(e=i.isTreePathToChildren),i=t.Ya.iterator;i.next();){var n=i.value;if(n.isTreeLink)if(e){if(n.fromNode===t)return void(t.isTreeLeaf=!1)}else if(n.toNode===t)return void(t.isTreeLeaf=!1)}t.isTreeLeaf=!0}}}function _u(t){null===t.rc?t.rc=new gt:t.rc.clear(),t.ym(t,(function(t,e){Hu(t,e)})),0===t.rc.count&&t.rc.add(\"\",t)}function Hu(t,e){var i=e.portId;null!==i&&null!==t.rc&&t.rc.add(i,e)}function Yu(t,e,i){var n=e.portId;if(null!==n&&(null!==t.rc&&t.rc.remove(n),e=t.diagram,null!==e&&i)){for(i=null,t=t.Wu(n);t.next();)n=t.value,null===i&&(i=j()),i.push(n);if(null!==i){for(t=0;t<i.length;t++)e.remove(i[t]);A(i)}}}function qu(t,e){return e=e.og(),null===e?0:1+qu(t,e)}function Gu(t,e,i,n,o,r,s){if(1<n)for(var a=i?t.Sp():t.sd();a.next();){var l=a.value;l.isTreeLink&&(l=l.Xs(t),null===l||l===t||e.contains(l)||(e.add(l),Gu(l,e,i,n-1,o,r,s)))}else Xu(t,e,i,o,r,s)}function Xu(t,e,i,n,o,r){for(var s=o===t||t.isTreeExpanded,a=i?t.Sp():t.sd();a.next();){var l=a.value;if(l.isTreeLink&&(l=l.Xs(t),null!==l&&l!==t)){var h=e.contains(l);h||e.add(l),s&&(r&&n.Jp(l,o),l.yh(),l.Mb(!1)),l.isTreeExpanded&&(l.wasTreeExpanded=l.isTreeExpanded,h||Xu(l,e,i,n,o,r))}}t.isTreeExpanded=!1}function Uu(t,e,i,n,o,r,s){for(var a=r!==t&&t.isTreeExpanded,l=i?t.Sp():t.sd();l.next();){var h=l.value;h.isTreeLink&&(a||h.Lc||h.Ra(),h=h.Xs(t),null!==h&&h!==t&&!e.contains(h)&&(e.add(h),a||(h.Mb(!0),h.yh(),s&&o.Kp(h,r)),2<n||h.wasTreeExpanded))&&(h.wasTreeExpanded=!1,Uu(h,e,i,n-1,o,r,s))}t.isTreeExpanded=!0}lu.className=\"Part\",lu.LayoutNone=0,lu.LayoutAdded=1,lu.LayoutRemoved=2,lu.LayoutShown=4,lu.LayoutHidden=8,lu.LayoutNodeSized=16,lu.LayoutGroupLayout=32,lu.LayoutNodeReplaced=64,lu.LayoutStandard=127,lu.LayoutAll=16777215,d(ju,lu),ju.prototype.toString=function(){var t=this.adornedPart;return\"Adornment(\"+this.category+\")\"+(null!==t?t.toString():\"\")},ju.prototype.updateRelationshipsFromData=function(){},ju.prototype.gk=function(t){var e=this.adornedObject.part;if(e instanceof nc&&this.adornedObject instanceof sh){var i=e.path;e.gk(t),t=i.geometry,e=this.Y.j,i=e.length;for(var n=0;n<i;n++){var o=e[n];o.isPanelMain&&o instanceof sh&&(o.qa=t)}}},ju.prototype.Pi=function(){var t=this.$d;return null===t||(t=t.part,null===t||!ma(t))},ju.prototype.Lb=function(){return!1},ju.prototype.nk=function(t,e,i,n,o,r,s){if(t===Ni&&\"elements\"===e){if(o instanceof ic)null===this.Va&&(this.Va=o);else if(o instanceof Nl){var a=o.Yl((function(t){return t instanceof ic}));a instanceof ic&&null===this.Va&&(this.Va=a)}}else t===Pi&&\"elements\"===e&&null!==this.Va&&(n===this.Va||n instanceof Nl&&this.Va.qg(n))&&(this.Va=null);lu.prototype.nk.call(this,t,e,i,n,o,r,s)},ju.prototype.updateAdornments=function(){},ju.prototype.Yj=function(){},p.Object.defineProperties(ju.prototype,{placeholder:{get:function(){return this.Va}},adornedObject:{get:function(){return this.$d},set:function(t){var e=this.adornedPart,i=null;null!==t&&(i=t.part),null===e||null!==t&&e===i||e.tf(this.category),this.$d=t,null!==i&&i.qh(this.category,this)}},adornedPart:{get:function(){var t=this.$d;return null!==t?t.part:null}},containingGroup:{get:function(){return null}}}),ju.className=\"Adornment\",d(Au,lu),Au.prototype.cloneProtected=function(t){lu.prototype.cloneProtected.call(this,t),t.S=this.S,t.S=-17&this.S,t.co=this.co,t.eo=this.eo,t.ii=this.ii,t.Cp=this.Cp,t.Ck=this.Ck.I(),t.Qo=this.Qo},i=Au.prototype,i.mf=function(t){lu.prototype.mf.call(this,t),t.ed(),t.Le=this.Le,t.rc=null},i.qz=function(t,e,i){void 0!==e&&null!==e||(e=\"\"),void 0!==i&&null!==i||(i=\"\"),t=zu(this,t,e,i),null!==t&&t.cm()},i.nk=function(t,e,i,n,o,r,s){(t===Ni&&\"elements\"===e||t===Pi&&\"elements\"===e)&&(this.rc=null),lu.prototype.nk.call(this,t,e,i,n,o,r,s)},i.ed=function(t){void 0===t&&(t=null);for(var e=this.linksConnected;e.next();){var i=e.value;null!==t&&t.contains(i)||(Iu(this,i.fromPort),Iu(this,i.toPort),i.Ra())}},i.Pi=function(){return!0},Au.prototype.getAvoidableRect=function(t){return t.set(this.actualBounds),t.Lp(this.Ck),t},Au.prototype.findVisibleNode=function(){for(var t=this;null!==t&&!t.isVisible();)t=t.containingGroup;return t},Au.prototype.isVisible=function(){if(!lu.prototype.isVisible.call(this))return!1;var t=!0,e=Ps,i=this.diagram;if(null!==i){if(go(i.animationManager,this))return!0;t=i.isTreePathToChildren,e=i.treeCollapsePolicy}if(e===Ps){if(t=this.og(),null!==t&&!t.isTreeExpanded)return!1}else if(e===Ts){if(t=t?this.Yu():this.Zu(),0<t.count&&t.all((function(t){return!t.isTreeExpanded})))return!1}else if(e===Ls&&(t=t?this.Yu():this.Zu(),0<t.count&&t.any((function(t){return!t.isTreeExpanded}))))return!1;return t=this.labeledLink,null===t||t.isVisible()},i=Au.prototype,i.Mb=function(t){lu.prototype.Mb.call(this,t);for(var e=this.linksConnected;e.next();)e.value.Mb(t)},i.Wu=function(t){if(void 0===t&&(t=null),null===t)return this.Ya.iterator;var e=new et(this.Ya),i=this;return e.predicate=function(e){return e.fromNode===i&&e.fromPortId===t||e.toNode===i&&e.toPortId===t},e},i.Sp=function(t){void 0===t&&(t=null);var e=new et(this.Ya),i=this;return e.predicate=function(e){return e.fromNode===i&&(null===t||e.fromPortId===t)},e},i.sd=function(t){void 0===t&&(t=null);var e=new et(this.Ya),i=this;return e.predicate=function(e){return e.toNode===i&&(null===t||e.toPortId===t)},e},i.Xu=function(t){void 0===t&&(t=null);for(var e=null,i=null,n=this.Ya.iterator;n.next();){var o=n.value;o.fromNode===this?null!==t&&o.fromPortId!==t||(o=o.toNode,null!==e?e.add(o):null!==i&&i!==o?(e=new rt,e.add(i),e.add(o)):i=o):o.toNode!==this||null!==t&&o.toPortId!==t||(o=o.fromNode,null!==e?e.add(o):null!==i&&i!==o?(e=new rt,e.add(i),e.add(o)):i=o)}return null!==e?e.iterator:null!==i?new tt(i):Q},i.Zu=function(t){void 0===t&&(t=null);for(var e=null,i=null,n=this.Ya.iterator;n.next();){var o=n.value;o.fromNode!==this||null!==t&&o.fromPortId!==t||(o=o.toNode,null!==e?e.add(o):null!==i&&i!==o?(e=new rt,e.add(i),e.add(o)):i=o)}return null!==e?e.iterator:null!==i?new tt(i):Q},i.Yu=function(t){void 0===t&&(t=null);for(var e=null,i=null,n=this.Ya.iterator;n.next();){var o=n.value;o.toNode!==this||null!==t&&o.toPortId!==t||(o=o.fromNode,null!==e?e.add(o):null!==i&&i!==o?(e=new rt,e.add(i),e.add(o)):i=o)}return null!==e?e.iterator:null!==i?new tt(i):Q},i.Ny=function(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null);var n=new et(this.Ya),o=this;return n.predicate=function(n){return!(n.fromNode!==o||n.toNode!==t||null!==e&&n.fromPortId!==e||null!==i&&n.toPortId!==i)||!(n.fromNode!==t||n.toNode!==o||null!==i&&n.fromPortId!==i||null!==e&&n.toPortId!==e)},n},i.Oy=function(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null);var n=new et(this.Ya),o=this;return n.predicate=function(n){return!(n.fromNode!==o||n.toNode!==t||null!==e&&n.fromPortId!==e||null!==i&&n.toPortId!==i)},n},Au.prototype.updateRelationshipsFromData=function(){var t=this.diagram;null!==t&&t.partManager.updateRelationshipsFromData(this)},i=Au.prototype,i.Yp=function(t){lu.prototype.Yp.call(this,t),t||(Vu(this),t=this.hl,null!==t&&rc(t,this))},i.Zp=function(t){lu.prototype.Zp.call(this,t),t||(t=this.hl,null!==t&&null!==t.$c&&(t.$c.remove(this),t.s()))},i.Yj=function(){if(0<this.Ya.count){var t=this.diagram;if(null!==t)for(var e=null===t.commandHandler||t.commandHandler.deletesConnectedLinks,i=this.Ya.copy().iterator;i.next();){var n=i.value;e?t.remove(n):(n.fromNode===this&&(n.fromNode=null),n.toNode===this&&(n.toNode=null))}}this.labeledLink=null,lu.prototype.Yj.call(this)},i.Ts=function(t){if(null===this.rc){if(\"\"===t&&!1===this.xh)return this;_u(this)}var e=this.rc.J(t);return null!==e||\"\"!==t&&(e=this.rc.J(\"\"),null!==e)?e:this},i.sz=function(t){if(null===t||t===this)return!1;var e=!0,i=this.diagram;if(null!==i&&(e=i.isTreePathToChildren),i=this,e)for(;i!==t;){e=null;for(var n=i.Ya.iterator;n.next();){var o=n.value;if(o.isTreeLink&&(e=o.fromNode,e!==i&&e!==this))break}if(e===this||null===e||e===i)return!1;i=e}else for(;i!==t;){for(e=null,n=i.Ya.iterator;n.next()&&(o=n.value,!o.isTreeLink||(e=o.toNode,e===i||e===this)););if(e===this||null===e||e===i)return!1;i=e}return!0},i.Zy=function(){var t=!0,e=this.diagram;if(null!==e&&(t=e.isTreePathToChildren),e=this,t)for(;;){t=null;for(var i=e.Ya.iterator;i.next();){var n=i.value;if(n.isTreeLink&&(t=n.fromNode,t!==e&&t!==this))break}if(t===this)return this;if(null===t||t===e)return e;e=t}else for(;;){for(t=null,i=e.Ya.iterator;i.next()&&(n=i.value,!n.isTreeLink||(t=n.toNode,t===e||t===this)););if(t===this)return this;if(null===t||t===e)return e;e=t}},i.Ky=function(t){if(null===t)return null;if(this===t)return this;for(var e=this;null!==e;)Su(e,!0),e=e.og();var i=null;for(e=t;null!==e;){if(0!==(1048576&e.D)){i=e;break}e=e.og()}for(e=this;null!==e;)Su(e,!1),e=e.og();return i},i.Hi=function(){var t=!0,e=this.diagram;if(null!==e&&(t=e.isTreePathToChildren),e=this.Ya.iterator,t){for(;e.next();)if(t=e.value,t.isTreeLink&&t.fromNode!==this)return t}else for(;e.next();)if(t=e.value,t.isTreeLink&&t.toNode!==this)return t;return null},i.og=function(){var t=this.oh;if(null===t)return null;if(t instanceof Au)return t;var e=!0;if(t=this.diagram,null!==t&&(e=t.isTreePathToChildren),t=this.Ya.iterator,e){for(;t.next();)if(e=t.value,e.isTreeLink&&(e=e.fromNode,e!==this))return this.oh=e}else for(;t.next();)if(e=t.value,e.isTreeLink&&(e=e.toNode,e!==this))return this.oh=e;return this.oh=null},i.Xy=function(){function t(e,i){if(null!==e){i.add(e);var n=e.Hi();null!==n&&(i.add(n),t(e.og(),i))}}var e=new rt;return t(this,e),e},i.Wy=function(){return qu(this,this)},i.Up=function(){var t=!0,e=this.diagram;null!==e&&(t=e.isTreePathToChildren),e=new et(this.Ya);var i=this;return e.predicate=t?function(t){return!(!t.isTreeLink||t.fromNode!==i)}:function(t){return!(!t.isTreeLink||t.toNode!==i)},e},i.$u=function(){var t=!0,e=this.diagram;null!==e&&(t=e.isTreePathToChildren);var i=e=null,n=this.Ya.iterator;if(t)for(;n.next();)t=n.value,t.isTreeLink&&t.fromNode===this&&(t=t.toNode,null!==e?e.add(t):null!==i&&i!==t?(e=new nt,e.add(i),e.add(t)):i=t);else for(;n.next();)t=n.value,t.isTreeLink&&t.toNode===this&&(t=t.fromNode,null!==e?e.add(t):null!==i&&i!==t?(e=new nt,e.add(i),e.add(t)):i=t);return null!==e?e.iterator:null!==i?new tt(i):Q},i.Yy=function(t){void 0===t&&(t=1/0);var e=new rt;return Ou(e,this,!1,t,!0),e},Au.prototype.collapseTree=function(t){void 0===t&&(t=1),1>t&&(t=1);var e=this.diagram;if(null!==e&&!e.Ee){e.Ee=!0;var i=new rt;i.add(this),Gu(this,i,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===Ps),e.Ee=!1}},Au.prototype.expandTree=function(t){void 0===t&&(t=2),2>t&&(t=2);var e=this.diagram;if(null!==e&&!e.Ee){e.Ee=!0;var i=new rt;i.add(this),Uu(this,i,e.isTreePathToChildren,t,e,this,e.treeCollapsePolicy===Ps),e.Ee=!1}},p.Object.defineProperties(Au.prototype,{portSpreading:{get:function(){return this.Qo},set:function(t){var e=this.Qo;e!==t&&(this.Qo=t,this.g(\"portSpreading\",e,t),t=this.diagram,null!==t&&t.undoManager.isUndoingRedoing||this.ed())}},avoidable:{get:function(){return 0!==(8&this.S)},set:function(t){var e=0!==(8&this.S);if(e!==t){this.S^=8;var i=this.diagram;null!==i&&Kr(i,this),this.g(\"avoidable\",e,t)}}},avoidableMargin:{get:function(){return this.Ck},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.Ck;if(!e.A(t)){this.Ck=t=t.I();var i=this.diagram;null!==i&&Kr(i,this),this.g(\"avoidableMargin\",e,t)}}},linksConnected:{get:function(){return this.Ya.iterator}},linkConnected:{get:function(){return this.co},set:function(t){var e=this.co;e!==t&&(this.co=t,this.g(\"linkConnected\",e,t))}},linkDisconnected:{get:function(){return this.eo},set:function(t){var e=this.eo;e!==t&&(this.eo=t,this.g(\"linkDisconnected\",e,t))}},linkValidation:{get:function(){return this.ii},set:function(t){var e=this.ii;e!==t&&(this.ii=t,this.g(\"linkValidation\",e,t))}},isLinkLabel:{get:function(){return null!==this.hl}},labeledLink:{get:function(){return this.hl},set:function(t){var e=this.hl;if(e!==t){var i=this.diagram,n=this.data;if(null!==e){if(null!==e.$c&&(e.$c.remove(this),e.s()),null!==i&&null!==n&&!i.undoManager.isUndoingRedoing){var o=e.data,r=i.model;if(null!==o&&r.em()){var s=r.pa(n);void 0!==s&&r.Ax(o,s)}}this.containingGroup=null}this.hl=t,null!==t&&(rc(t,this),null===i||null===n||i.undoManager.isUndoingRedoing||(o=t.data,i=i.model,null!==o&&i.em()&&(n=i.pa(n),void 0!==n&&i.Gu(o,n))),this.containingGroup=t.containingGroup),ra(this),this.g(\"labeledLink\",e,t)}}},port:{get:function(){return this.Ts(\"\")}},ports:{get:function(){return null===this.rc&&_u(this),this.rc.iteratorValues}},isTreeExpanded:{get:function(){return 0!==(1&this.S)},set:function(t){var e=0!==(1&this.S);if(e!==t){this.S^=1;var i=this.diagram;if(this.g(\"isTreeExpanded\",e,t),e=this.treeExpandedChanged,null!==e){var n=!0;null!==i&&(n=i.da,i.da=!0),e(this),null!==i&&(i.da=n)}null!==i&&i.undoManager.isUndoingRedoing?this.Mb(t):t?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return 0!==(2&this.S)},set:function(t){var e=0!==(2&this.S);e!==t&&(this.S^=2,this.g(\"wasTreeExpanded\",e,t))}},treeExpandedChanged:{get:function(){return this.Cp},set:function(t){var e=this.Cp;e!==t&&(this.Cp=t,this.g(\"treeExpandedChanged\",e,t))}},isTreeLeaf:{get:function(){return 0!==(4&this.S)},set:function(t){var e=0!==(4&this.S);e!==t&&(this.S^=4,this.g(\"isTreeLeaf\",e,t))}}}),Au.prototype.expandTree=Au.prototype.expandTree,Au.prototype.collapseTree=Au.prototype.collapseTree,Au.prototype.findTreeParts=Au.prototype.Yy,Au.prototype.findTreeChildrenNodes=Au.prototype.$u,Au.prototype.findTreeChildrenLinks=Au.prototype.Up,Au.prototype.findTreeLevel=Au.prototype.Wy,Au.prototype.findTreeParentChain=Au.prototype.Xy,Au.prototype.findTreeParentNode=Au.prototype.og,Au.prototype.findTreeParentLink=Au.prototype.Hi,Au.prototype.findCommonTreeParent=Au.prototype.Ky,Au.prototype.findTreeRoot=Au.prototype.Zy,Au.prototype.isInTreeOf=Au.prototype.sz,Au.prototype.findPort=Au.prototype.Ts,Au.prototype.findLinksTo=Au.prototype.Oy,Au.prototype.findLinksBetween=Au.prototype.Ny,Au.prototype.findNodesInto=Au.prototype.Yu,Au.prototype.findNodesOutOf=Au.prototype.Zu,Au.prototype.findNodesConnected=Au.prototype.Xu,Au.prototype.findLinksInto=Au.prototype.sd,Au.prototype.findLinksOutOf=Au.prototype.Sp,Au.prototype.findLinksConnected=Au.prototype.Wu,Au.prototype.invalidateConnectedLinks=Au.prototype.ed,Au.prototype.invalidateLinkBundle=Au.prototype.qz;var Ku=new K(Au,\"SpreadingNone\",10),$u=new K(Au,\"SpreadingEvenly\",11),Wu=new K(Au,\"SpreadingPacked\",12);function Ju(t){Au.call(this,t),this.S|=4608,this.oo=new rt,this.rl=new rt,this.Va=this.tp=this.ji=this.po=this.no=null,this.gc=new hf,this.gc.group=this}function Zu(t,e){if(t.oo.add(e)){e instanceof Ju&&t.rl.add(e);var i=t.memberAdded;if(null!==i){var n=!0,o=t.diagram;null!==o&&(n=o.da,o.da=!0),i(t,e),null!==o&&(o.da=n)}t.isVisible()&&t.isSubGraphExpanded||e.Mb(!1)}e instanceof nc&&!t.computesBoundsIncludingLinks||(e=t.Va,null===e&&(e=t),e.s())}function Qu(t,e){if(t.oo.remove(e)){e instanceof Ju&&t.rl.remove(e);var i=t.memberRemoved;if(null!==i){var n=!0,o=t.diagram;null!==o&&(n=o.da,o.da=!0),i(t,e),null!==o&&(o.da=n)}t.isVisible()&&t.isSubGraphExpanded||e.Mb(!0)}e instanceof nc&&!t.computesBoundsIncludingLinks||(e=t.Va,null===e&&(e=t),e.s())}function tc(t,e,i,n){for(var o=t.memberParts;o.next();){var r=o.value;if(r.Mb(!1),r instanceof Ju&&r.isSubGraphExpanded&&(r.wasSubGraphExpanded=r.isSubGraphExpanded,tc(r,e,i,n)),r instanceof Au)r.ed(e),i.Jp(r,n);else if(r instanceof nc)for(r=r.labelNodes;r.next();)r.value.ed(e)}t.isSubGraphExpanded=!1}function ec(t,e,i,n){for(var o=t.memberParts;o.next();){var r=o.value;if(r.Mb(!0),r instanceof Ju&&r.wasSubGraphExpanded&&(r.wasSubGraphExpanded=!1,ec(r,e,i,n)),r instanceof Au)r.ed(e),i.Kp(r,n);else if(r instanceof nc)for(r=r.labelNodes;r.next();)r.value.ed(e)}t.isSubGraphExpanded=!0}function ic(){Ks.call(this),this.eb=oe,this.ep=new _t(NaN,NaN,NaN,NaN)}function nc(){lu.call(this,Nl.Link),this.Ta=8,this.Oe=null,this.Pe=\"\",this.ef=this.Fn=null,this.ff=\"\",this.Bp=null,this.Lm=Tc,this.gn=0,this.kn=Tc,this.ln=NaN,this.Ej=Cc,this.pp=.5,this.$c=null,this.xb=(new nt).freeze(),this.bh=this.Xg=null,this.xl=new _t,this.qa=new Je,this.Qn=!0,this.K=this.u=this.xf=this.Gf=null,this.l=[],this.zu=new mt,this.kr=this.Lw=this.Kw=null,this.au=NaN,this.P=null}function oc(t){var e=t.fromNode,i=t.toNode,n=null;if(n=null!==e?null!==i?e.hx(i):e.containingGroup:null!==i?i.containingGroup:null,e=n,i=t.Rh,i!==e){null!==i&&Qu(i,t),t.Rh=e,null!==e&&Zu(e,t);var o=t.containingGroupChanged;if(null!==o){var r=!0,s=t.diagram;null!==s&&(r=s.da,s.da=!0),o(t,i,e),null!==s&&(s.da=r)}!t.Lc||t.Kw!==i&&t.Lw!==i||t.Ra()}if(t.isLabeledLink)for(t=t.labelNodes;t.next();)t.value.containingGroup=n}function rc(t,e){null===t.$c&&(t.$c=new rt),t.$c.add(e),t.s()}function sc(t,e,i){if(0!==e||0!==i){for(var n=t.Lc,o=new nt,r=t.xb.iterator;r.next();){var s=r.value;o.add(new mt(s.x+e,s.y+i).freeze())}o.freeze(),r=t.xb,t.xb=o,isNaN(e)||isNaN(i)||t.diagram.animationManager.rb?t.s():(t.Of.h(t.Of.x+e,t.Of.y+i),t.sa.h(t.sa.x+e,t.sa.y+i),ra(t)),n&&ac(t),e=t.diagram,null!==e&&e.animationManager.rb&&(t.bh=o),t.g(\"points\",r,o)}}function ac(t){0===t.xb.count?t.Lc=!1:(t.Lc=!0,t.kr=null,t.au=NaN,t.defaultFromPoint=t.i(0),t.defaultToPoint=t.i(t.pointsCount-1),wc(t,!1))}function lc(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?(e.x>=t.x?e.x=t.x+9e9:e.x=t.x-9e9,e.y=t.y):(e.y>=t.y?e.y=t.y+9e9:e.y=t.y-9e9,e.x=t.x),e}function hc(t,e){var i=e.Po;return null===i&&(i=new of,i.port=e,i.node=e.part,e.Po=i),sf(i,t)}function uc(t){return t===le||.5===t.x&&.5===t.y}function cc(t){if(null===t.diagram||!t.isAvoiding||!Gr(t.diagram))return!1;var e=t.points.j,i=e.length;if(4>i)return!1;t=Xr(t.diagram,!0,t.containingGroup,null);for(var n=1;n<i-2;n++){var o=e[n],r=e[n+1];if(!t.ek(Math.min(o.x,r.x),Math.min(o.y,r.y),Math.abs(o.x-r.x),Math.abs(o.y-r.y)))return!0}return!1}function fc(t,e,i,n,o,r){var s=e.Ul,a=e.Tl,l=Xc(e,i,n),h=i,u=n;for(0===o?h+=s:90===o?u+=a:180===o?h-=s:u-=a;l>tf&&Xc(e,h,u)===l-1;)i=h,n=u,0===o?h+=s:90===o?u+=a:180===o?h-=s:u-=a,--l;r?l>tf&&(180===o||0===o?i=Math.floor(i/s)*s+s/2:90!==o&&270!==o||(n=Math.floor(n/a)*a+a/2)):(i=Math.floor(i/s)*s+s/2,n=Math.floor(n/a)*a+a/2),l>tf&&(r=o,h=i,u=n,0===o?(r=90,u+=a):90===o?(r=180,h-=s):180===o?(r=270,u-=a):270===o&&(r=0,h+=s),Xc(e,h,u)===l-1?fc(t,e,h,u,r,!1):(h=i,u=n,0===o?(r=270,u-=a):90===o?(r=0,h+=s):180===o?(r=90,u+=a):270===o&&(r=180,h-=s),Xc(e,h,u)===l-1&&fc(t,e,h,u,r,!1))),t.jf(i,n)}function dc(t,e,i,n){return t=i-t,isNaN(t)||1/0===t||-1/0===t?NaN:(0>t&&(t=-t),e=n-e,isNaN(e)||1/0===e||-1/0===e?NaN:(0>e&&(e=-e),We.ca(t,0)?e:We.ca(e,0)?t:Math.sqrt(t*t+e*e)))}function pc(t,e,i,n){var o=t.pointsCount;if(2>o)return e;if(i){var r=t.i(1);if(i=r.x-n.x,r=r.y-n.y,n=dc(e.x,e.y,i,r),0===n)return e;o=2===o?.5*n:n,t=t.computeShortLength(!0),t>o&&(t=o),o=t*(r-e.y)/n,e.x+=t*(i-e.x)/n,e.y+=o}else{if(r=t.i(o-2),i=r.x-n.x,r=r.y-n.y,n=dc(e.x,e.y,i,r),0===n)return e;o=2===o?.5*n:n,t=t.computeShortLength(!1),t>o&&(t=o),o=t*(e.y-r)/n,e.x-=t*(e.x-i)/n,e.y-=o}return e}function gc(t,e,i,n){for(var o=t.pointsCount,r=e;We.ca(e.x,r.x)&&We.ca(e.y,r.y);){if(i>=o)return o-1;r=t.i(i++)}if(!We.ca(e.x,r.x)&&!We.ca(e.y,r.y))return i-1;for(var s=r;We.ca(e.x,r.x)&&We.ca(r.x,s.x)&&(!n||(e.y>=r.y?r.y>=s.y:r.y<=s.y))||We.ca(e.y,r.y)&&We.ca(r.y,s.y)&&(!n||(e.x>=r.x?r.x>=s.x:r.x<=s.x));){if(i>=o)return o-1;s=t.i(i++)}return i-2}function mc(t,e,i,n,o,r,s){if(!s&&bc(t)){s=[];var a=0;if(t.isVisible()&&(a=vc(t,o,r,s)),0<a)if(We.w(o.y,r.y))if(o.x<r.x)for(var l=0;l<a;){var h=Math.max(o.x,Math.min(s[l++]-5,r.x-10));e.lineTo(h+i,r.y+n);for(var u=h+i,c=Math.min(h+10,r.x);l<a;){if(h=s[l],!(h<c+10))break;l++,c=Math.min(h+5,r.x)}h=r.y-10+n,c+=i;var f=r.y+n;t.curve===Oc?tu(e,c,f,!1):iu(e,u,h,c,h,c,f)}else for(--a;0<=a;){for(l=Math.min(o.x,Math.max(s[a--]+5,r.x+10)),e.lineTo(l+i,r.y+n),u=l+i,h=Math.max(l-10,r.x);0<=a;){if(l=s[a],!(l>h-10))break;a--,h=Math.max(l-5,r.x)}l=r.y-10+n,h+=i,c=r.y+n,t.curve===Oc?tu(e,h,c,!1):iu(e,u,l,h,l,h,c)}else if(We.w(o.x,r.x))if(o.y<r.y)for(l=0;l<a;){for(h=Math.max(o.y,Math.min(s[l++]-5,r.y-10)),e.lineTo(r.x+i,h+n),u=h+n,h=Math.min(h+10,r.y);l<a;){if(c=s[l],!(c<h+10))break;l++,h=Math.min(c+5,r.y)}c=r.x-10+i,f=r.x+i,h+=n,t.curve===Oc?tu(e,f,h,!1):iu(e,c,u,c,h,f,h)}else for(--a;0<=a;){for(l=Math.min(o.y,Math.max(s[a--]+5,r.y+10)),e.lineTo(r.x+i,l+n),u=l+n,l=Math.max(l-10,r.y);0<=a;){if(h=s[a],!(h>l-10))break;a--,l=Math.max(h-5,r.y)}h=r.x-10+i,c=r.x+i,l+=n,t.curve===Oc?tu(e,c,l,!1):iu(e,h,u,h,l,c,l)}}e.lineTo(r.x+i,r.y+n)}function vc(t,e,i,n){var o=t.diagram;if(null===o||e.A(i))return 0;for(o=o.layers;o.next();){var r=o.value;if(null!==r&&r.visible){r=r.Fa.j;for(var s=r.length,a=0;a<s;a++){var l=r[a];if(l instanceof nc){if(l===t)return 0<n.length&&n.sort((function(t,e){return t-e})),n.length;if(l.isVisible()&&bc(l)){var h=l.routeBounds;h.o()&&t.routeBounds.Ic(h)&&!t.usesSamePort(l)&&(h=l.path,null!==h&&h.rf()&&yc(e,i,n,l))}}}}}return 0<n.length&&n.sort((function(t,e){return t-e})),n.length}function yc(t,e,i,n){for(var o=We.w(t.y,e.y),r=n.pointsCount,s=n.i(0),a=mt.alloc(),l=1;l<r;l++){var h=n.i(l);if(l<r-1){var u=n.i(l+1);if(s.y===h.y&&h.y===u.y){if(h.x>s.x&&u.x>=h.x||h.x<s.x&&u.x<=h.x)continue}else if(s.x===h.x&&h.x===u.x&&(h.y>s.y&&u.y>=h.y||h.y<s.y&&u.y<=h.y))continue}t:{u=t.x;var c=t.y,f=e.x,d=e.y,p=s.x;s=s.y;var g=h.x,m=h.y;if(We.w(u,f)){if(!We.w(c,d)&&We.w(s,m)&&Math.min(c,d)<s&&Math.max(c,d)>s&&Math.min(p,g)<u&&Math.max(p,g)>u&&!We.w(p,g)){a.x=u,a.y=s,u=!0;break t}}else if(We.w(c,d)&&We.w(p,g)&&Math.min(u,f)<p&&Math.max(u,f)>p&&Math.min(s,m)<c&&Math.max(s,m)>c&&!We.w(s,m)){a.x=p,a.y=c,u=!0;break t}a.x=0,a.y=0,u=!1}u&&(o?i.push(a.x):i.push(a.y)),s=h}mt.free(a)}function bc(t){return t=t.curve,t===Dc||t===Oc}function wc(t,e){(e||bc(t))&&(e=t.diagram,null===e||e.Ui||e.Wh.contains(t)||0===t.xl.width&&0===t.xl.height||e.Wh.add(t,t.xl))}function xc(t,e,i){if(null!==e&&null!==e.qa&&bc(e)){var n=e.routeBounds;n.o()&&(t.routeBounds.Ic(n)||i.Ic(n))&&(t.usesSamePort(e)||e.bc())}}function kc(t){var e=t.Oe;if(null!==e){var i=t.ef;if(null!==i){for(var n=t.Pe,o=t.ff,r=t=null,s=e.Ya.j,a=s.length,l=0;l<a;l++){var h=s[l];(h.Oe===e&&h.Pe===n&&h.ef===i&&h.ff===o||h.Oe===i&&h.Pe===o&&h.ef===e&&h.ff===n)&&(null===r?r=h:(null===t&&(t=[],t.push(r)),t.push(h)))}if(null!==t){for(r=zu(e,i,n,o),null===r&&(r=new Yc(e,n,i,o),Bu(e,r),Bu(i,r)),r.links=t,e=0;e<t.length;e++)t[e].xf=r;r.cm()}}}}function Mc(t){var e=t.xf;null!==e&&(t.xf=null,t=e.links.indexOf(t),0<=t&&(D(e.links,t),e.cm()))}Au.className=\"Node\",Au.SpreadingNone=Ku,Au.SpreadingEvenly=$u,Au.SpreadingPacked=Wu,d(Ju,Au),Ju.prototype.cloneProtected=function(t){Au.prototype.cloneProtected.call(this,t),this.S=-32769&this.S,t.no=this.no,t.po=this.po,t.ji=this.ji,t.tp=this.tp;var e=t.Yl((function(t){return t instanceof ic}));t.Va=e instanceof ic?e:null,null!==this.gc?(t.gc=this.gc.copy(),t.gc.group=t):(null!==t.gc&&(t.gc.group=null),t.gc=null)},i=Ju.prototype,i.mf=function(t){Au.prototype.mf.call(this,t);var e=t.ak();for(t=t.memberParts;t.next();){var i=t.value;if(i.s(),i.B(8),i.Sj(),i instanceof Au)i.ed(e);else if(i instanceof nc)for(i=i.labelNodes;i.next();)i.value.ed(e)}},i.nk=function(t,e,i,n,o,r,s){if(t===Ni&&\"elements\"===e){if(o instanceof ic)null===this.Va?this.Va=o:this.Va!==o&&k(\"Cannot insert a second Placeholder into the visual tree of a Group.\");else if(o instanceof Nl){var a=o.Yl((function(t){return t instanceof ic}));a instanceof ic&&(null===this.Va?this.Va=a:this.Va!==a&&k(\"Cannot insert a second Placeholder into the visual tree of a Group.\"))}}else t===Pi&&\"elements\"===e&&null!==this.Va&&(n===this.Va||n instanceof Nl&&this.Va.qg(n))&&(this.Va=null);Au.prototype.nk.call(this,t,e,i,n,o,r,s)},i.th=function(t,e,i,n){this.Ve=this.Va,Au.prototype.th.call(this,t,e,i,n)},i.Pi=function(){if(!Au.prototype.Pi.call(this))return!1;for(var t=this.memberParts;t.next();){var e=t.value;if(e instanceof Au){if(e.isVisible()&&ma(e))return!1}else if(e instanceof nc&&e.isVisible()&&ma(e)&&e.fromNode!==this&&e.toNode!==this)return!1}return!0},i.Yj=function(){if(0<this.oo.count){var t=this.diagram;if(null!==t)for(var e=this.oo.copy().iterator;e.next();)t.remove(e.value)}Au.prototype.Yj.call(this)},Ju.prototype.canAddMembers=function(t){var e=this.diagram;if(null===e)return!1;for(e=e.commandHandler,t=Us(t).iterator;t.next();)if(!e.isValidMember(this,t.value))return!1;return!0},Ju.prototype.addMembers=function(t,e){var i=this.diagram;if(null===i)return!1;i=i.commandHandler;var n=!0;for(t=Us(t).iterator;t.next();){var o=t.value;!e||i.isValidMember(this,o)?o.containingGroup=this:n=!1}return n},Ju.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var t=this.layer;return!(null!==t&&!t.allowUngroup)&&(t=t.diagram,!(null!==t&&!t.allowUngroup))},i=Ju.prototype,i.ed=function(t){void 0===t&&(t=null);var e=0!==(65536&this.S);if(Au.prototype.ed.call(this,t),!e)for(0!==(65536&this.S)!==!0&&(this.S=65536^this.S),e=this.Vu();e.next();){var i=e.value;if(null===t||!t.contains(i)){var n=i.fromNode;null!==n&&n!==this&&n.Vd(this)&&!n.isVisible()?(Iu(n,i.fromPort),Iu(n,i.toPort),i.Ra()):(n=i.toNode,null!==n&&n!==this&&n.Vd(this)&&!n.isVisible()&&(Iu(n,i.fromPort),Iu(n,i.toPort),i.Ra()))}}},i.Vu=function(){var t=this.ak();t.add(this);for(var e=new rt,i=t.iterator;i.next();){var n=i.value;if(n instanceof Au)for(n=n.linksConnected;n.next();){var o=n.value;t.contains(o)||e.add(o)}}return e.iterator},i.My=function(){var t=this.ak();t.add(this);for(var e=new rt,i=t.iterator;i.next();){var n=i.value;if(n instanceof Au)for(n=n.linksConnected;n.next();){var o=n.value,r=o.fromNode;t.contains(r)&&r!==this||e.add(r),o=o.toNode,t.contains(o)&&o!==this||e.add(o)}}return e.iterator},i.Ly=function(){function t(e,i){null!==e&&(i.add(e),t(e.containingGroup,i))}var e=new rt;return t(this,e),e},i.ak=function(){var t=new rt;return Ou(t,this,!0,0,!0),t.remove(this),t},i.Mb=function(t){Au.prototype.Mb.call(this,t);for(var e=this.memberParts;e.next();)e.value.Mb(t)},Ju.prototype.collapseSubGraph=function(){var t=this.diagram;if(null!==t&&!t.Ee){t.Ee=!0;var e=this.ak();tc(this,e,t,this),t.Ee=!1}},Ju.prototype.expandSubGraph=function(){var t=this.diagram;if(null!==t&&!t.Ee){t.Ee=!0;var e=this.ak();ec(this,e,t,this),t.Ee=!1}},Ju.prototype.move=function(t,e){void 0===e&&(e=!1);var i=e?this.location:this.position,n=i.x;isNaN(n)&&(n=0),i=i.y,isNaN(i)&&(i=0),n=t.x-n,i=t.y-i;var o=mt.allocAt(n,i);for(Au.prototype.move.call(this,t,e),t=new rt,e=this.ak().iterator;e.next();){var r=e.value;r instanceof nc&&(r.suspendsRouting&&t.add(r),r.Lc||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0)}for(e.reset();e.next();)if(r=e.value,!(r.zh()||r instanceof Au&&r.isLinkLabel)){var s=r.position,a=r.location;s.o()?(o.x=s.x+n,o.y=s.y+i,r.position=o):a.o()&&(o.x=a.x+n,o.y=a.y+i,r.location=o)}for(e.reset();e.next();)r=e.value,r instanceof nc&&(r.suspendsRouting=t.contains(r),r.Lc||r.fromNode!==this&&r.toNode!==this)&&(s=r.position,o.x=s.x+n,o.y=s.y+i,o.o()?r.move(o):r.Ra(),cc(r)&&r.Ra());mt.free(o)},p.Object.defineProperties(Ju.prototype,{placeholder:{get:function(){return this.Va}},computesBoundsAfterDrag:{get:function(){return 0!==(2048&this.S)},set:function(t){var e=0!==(2048&this.S);e!==t&&(this.S^=2048,this.g(\"computesBoundsAfterDrag\",e,t))}},computesBoundsIncludingLinks:{get:function(){return 0!==(4096&this.S)},set:function(t){var e=0!==(4096&this.S);e!==t&&(this.S^=4096,this.g(\"computesBoundsIncludingLinks\",e,t))}},computesBoundsIncludingLocation:{get:function(){return 0!==(8192&this.S)},set:function(t){var e=0!==(8192&this.S);e!==t&&(this.S^=8192,this.g(\"computesBoundsIncludingLocation\",e,t))}},handlesDragDropForMembers:{get:function(){return 0!==(16384&this.S)},set:function(t){var e=0!==(16384&this.S);e!==t&&(this.S^=16384,this.g(\"handlesDragDropForMembers\",e,t))}},memberParts:{get:function(){return this.oo.iterator}},layout:{get:function(){return this.gc},set:function(t){var e=this.gc;if(e!==t){null!==e&&(e.diagram=null,e.group=null),this.gc=t;var i=this.diagram;null!==t&&(t.diagram=i,t.group=this),null!==i&&(i.zg=!0),this.g(\"layout\",e,t),null!==i&&i.cc()}}},memberAdded:{get:function(){return this.no},set:function(t){var e=this.no;e!==t&&(this.no=t,this.g(\"memberAdded\",e,t))}},memberRemoved:{get:function(){return this.po},set:function(t){var e=this.po;e!==t&&(this.po=t,this.g(\"memberRemoved\",e,t))}},memberValidation:{get:function(){return this.ji},set:function(t){var e=this.ji;e!==t&&(this.ji=t,this.g(\"memberValidation\",e,t))}},ungroupable:{get:function(){return 0!==(256&this.S)},set:function(t){var e=0!==(256&this.S);e!==t&&(this.S^=256,this.g(\"ungroupable\",e,t))}},isSubGraphExpanded:{get:function(){return 0!==(512&this.S)},set:function(t){var e=0!==(512&this.S);if(e!==t){this.S^=512;var i=this.diagram;if(this.g(\"isSubGraphExpanded\",e,t),e=this.subGraphExpandedChanged,null!==e){var n=!0;null!==i&&(n=i.da,i.da=!0),e(this),null!==i&&(i.da=n)}null!==i&&i.undoManager.isUndoingRedoing?(null!==this.Va&&this.Va.s(),this.memberParts.each((function(t){t.updateAdornments()}))):t?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return 0!==(1024&this.S)},set:function(t){var e=0!==(1024&this.S);e!==t&&(this.S^=1024,this.g(\"wasSubGraphExpanded\",e,t))}},subGraphExpandedChanged:{get:function(){return this.tp},set:function(t){var e=this.tp;e!==t&&(this.tp=t,this.g(\"subGraphExpandedChanged\",e,t))}},mk:{get:function(){return 0!==(32768&this.S)},set:function(t){0!==(32768&this.S)!==t&&(this.S^=32768)}}}),Ju.prototype.expandSubGraph=Ju.prototype.expandSubGraph,Ju.prototype.collapseSubGraph=Ju.prototype.collapseSubGraph,Ju.prototype.findSubGraphParts=Ju.prototype.ak,Ju.prototype.findContainingGroupChain=Ju.prototype.Ly,Ju.prototype.findExternalNodesConnected=Ju.prototype.My,Ju.prototype.findExternalLinksConnected=Ju.prototype.Vu,Ju.className=\"Group\",d(ic,Ks),ic.prototype.cloneProtected=function(t){Ks.prototype.cloneProtected.call(this,t),t.eb=this.eb.I(),t.ep=this.ep.copy()},ic.prototype.vh=function(t){if(null===this.background&&null===this.areaBackground)return!1;var e=this.naturalBounds;return Wt(0,0,e.width,e.height,t.x,t.y)},ic.prototype.hm=function(){var t=this.part;if(null!==t&&(t instanceof Ju||t instanceof ju)||k(\"Placeholder is not inside a Group or Adornment.\"),t instanceof Ju){var e=this.computeBorder(this.ep),i=this.minSize,n=this.qc;for(Ht(n,(isFinite(i.width)?Math.max(i.width,e.width):e.width)||0,(isFinite(i.height)?Math.max(i.height,e.height):e.height)||0),Zs(this,0,0,n.width,n.height),i=t.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=t.diagram,(n=!n||null===i)||(n=i.animationManager,n.Kf?(n=n.xj.J(t),n=null!==n&&(n.start.position||n.start.location)):n=!1),n||isNaN(e.x)||isNaN(e.y)?null!==i&&i.animationManager.isAnimating&&i.animationManager.$r.add(this):(i=mt.alloc(),i.Ti(e,t.locationSpot),i.A(t.location)||(t.location=new mt(i.x,i.y)),mt.free(i))}else{e=this.qc,i=this.eb,n=i.left+i.right;var o=i.top+i.bottom,r=t.adornedObject;t.angle=r.Ji();var s=0;r instanceof sh&&(s=r.strokeWidth);var a=r.Ce(),l=r.naturalBounds,h=(l.width+s)*a;s=(l.height+s)*a,t.type!==Nl.Link&&(r=r.ma(\"Selection\"===t.category?he:t.locationSpot,mt.alloc()),t.location=r,mt.free(r)),isNaN(h)||isNaN(s)?(t=t.adornedObject,h=t.ma(he,mt.alloc()),r=_t.allocAt(h.x,h.y,0,0),r.Ie(t.ma(ve,h)),r.Ie(t.ma(ce,h)),r.Ie(t.ma(ge,h)),Ht(e,r.width+n||0,r.height+o||0),Zs(this,-i.left,-i.top,e.width,e.height),mt.free(h),_t.free(r)):(Ht(e,h+n||0,s+o||0),Zs(this,-i.left,-i.top,e.width,e.height))}},ic.prototype.th=function(t,e,i,n){this.actualBounds.h(t,e,i,n)},ic.prototype.computeBorder=function(t){var e=this.part,i=e.diagram;if(null!==i&&e instanceof Ju&&!e.layer.isTemporary&&e.computesBoundsAfterDrag&&this.ep.o()){var n=i.toolManager.findTool(\"Dragging\");if(n===i.currentTool&&(i=n.computeBorder(e,this.ep,t),null!==i))return i}i=_t.alloc(),n=this.computeMemberBounds(i);var o=this.eb;return e instanceof Ju&&!e.isSubGraphExpanded?t.h(n.x-o.left,n.y-o.top,0,0):t.h(n.x-o.left,n.y-o.top,Math.max(n.width+o.left+o.right,0),Math.max(n.height+o.top+o.bottom,0)),_t.free(i),e instanceof Ju&&e.computesBoundsIncludingLocation&&e.location.o()&&t.Ie(e.location),t},ic.prototype.computeMemberBounds=function(t){if(!(this.part instanceof Ju))return t.h(0,0,0,0),t;for(var e=this.part,i=1/0,n=1/0,o=-1/0,r=-1/0,s=e.memberParts;s.next();){var a=s.value;if(a.isVisible()){if(a instanceof nc){if(!e.computesBoundsIncludingLinks)continue;if(pa(a))continue;if(a.fromNode===e||a.toNode===e)continue}a=a.actualBounds,a.left<i&&(i=a.left),a.top<n&&(n=a.top),a.right>o&&(o=a.right),a.bottom>r&&(r=a.bottom)}}return isFinite(i)&&isFinite(n)?t.h(i,n,o-i,r-n):(e=e.location,t.h(e.x,e.y,0,0)),t},p.Object.defineProperties(ic.prototype,{padding:{get:function(){return this.eb},set:function(t){\"number\"===typeof t&&(t=new ee(t));var e=this.eb;e.A(t)||(this.eb=t=t.I(),this.g(\"padding\",e,t))}}}),ic.className=\"Placeholder\",d(nc,lu),nc.prototype.cloneProtected=function(t){lu.prototype.cloneProtected.call(this,t),t.Ta=-113&this.Ta,t.Pe=this.Pe,t.Fn=this.Fn,t.ff=this.ff,t.Bp=this.Bp,t.Lm=this.Lm,t.gn=this.gn,t.kn=this.kn,t.ln=this.ln,t.Ej=this.Ej,t.pp=this.pp,null!==this.P&&(t.P=this.P.copy())},i=nc.prototype,i.mf=function(t){lu.prototype.mf.call(this,t),this.Pe=t.Pe,this.ff=t.ff,t.Xg=null,t.Ra(),t.xf=this.xf;var e=t.fromPort;null!==e&&Iu(t.fromNode,e),e=t.toPort,null!==e&&Iu(t.toNode,e)},i.fb=function(t){t.classType===nc?2===(2&t.value)?this.routing=t:t===Lc||t===Oc||t===Dc?this.curve=t:t===jc||t===Ac||t===Bc?this.adjusting=t:t!==Cc&&t!==Tc&&k(\"Unknown Link enum value for a Link property: \"+t):lu.prototype.fb.call(this,t)},i.Hc=function(){null===this.P&&(this.P=new lf)},i.Pi=function(){var t=this.fromNode;if(null!==t){var e=t.findVisibleNode();if(null!==e&&(t=e),ma(t)||xu(t))return!1}return t=this.toNode,null===t||(e=t.findVisibleNode(),null!==e&&(t=e),!ma(t)&&!xu(t))},i.Kv=function(){return!1},i.Lv=function(){},i.Lb=function(){return!1},nc.prototype.computeAngle=function(t,e,i){return nc.computeAngle(e,i)},nc.computeAngle=function(t,e){switch(t){default:case Tc:t=0;break;case zc:t=e;break;case Fc:t=e+90;break;case Ic:t=e-90;break;case Ec:t=e+180;break;case Rc:t=We.gq(e),90<t&&270>t&&(t-=180);break;case Vc:t=We.gq(e+90),90<t&&270>t&&(t-=180);break;case _c:t=We.gq(e-90),90<t&&270>t&&(t-=180);break;case Hc:if(t=We.gq(e),45<t&&135>t||225<t&&315>t)return 0;90<t&&270>t&&(t-=180)}return We.gq(t)},i=nc.prototype,i.yh=function(){var t=this.containingGroup;null!==t&&this.fromNode!==t&&this.toNode!==t&&t.computesBoundsIncludingLinks&&lu.prototype.yh.call(this)},i.Xs=function(t){var e=this.fromNode;return t===e?this.toNode:e},i.ez=function(t){var e=this.fromPort;return t===e?this.toPort:e},i.Yp=function(t){if(lu.prototype.Yp.call(this,t),bc(this)&&this.$p(this.actualBounds),!t){t=this.Oe;var e=null;null!==t&&(e=this.fromPort,Eu(t,this,e));var i=this.ef;if(null!==i){var n=this.toPort;i===t&&n===e||Eu(i,this,n)}kc(this)}},i.Zp=function(t){if(lu.prototype.Zp.call(this,t),bc(this)&&this.$p(this.actualBounds),!t){t=this.Oe;var e=null;null!==t&&(e=this.fromPort,Ru(t,this,e));var i=this.ef;if(null!==i){var n=this.toPort;i===t&&n===e||Ru(i,this,n)}Mc(this)}},i.Yj=function(){if(this.Lc=!0,null!==this.$c){var t=this.diagram;if(null!==t)for(var e=this.$c.copy().iterator;e.next();)t.remove(e.value)}null!==this.data&&(t=this.diagram,null!==t&&t.partManager.removeDataForLink(this))},nc.prototype.updateRelationshipsFromData=function(){if(null!==this.data){var t=this.diagram;null!==t&&t.partManager.updateRelationshipsFromData(this)}},nc.prototype.move=function(t,e){var i=e?this.location:this.position,n=i.x;isNaN(n)&&(n=0);var o=i.y;for(isNaN(o)&&(o=0),n=t.x-n,o=t.y-o,!0===e?lu.prototype.move.call(this,t,!1):(t=mt.allocAt(i.x+n,i.y+o),lu.prototype.move.call(this,t,!1),mt.free(t)),sc(this,n,o),t=this.labelNodes;t.next();)e=t.value,i=e.position,e.moveTo(i.x+n,i.y+o)},nc.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var t=this.layer;return null===t||!!t.allowRelink&&(t=t.diagram,!(null!==t&&!t.allowRelink))},nc.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var t=this.layer;return null===t||!!t.allowRelink&&(t=t.diagram,!(null!==t&&!t.allowRelink))},nc.prototype.computeMidPoint=function(t){var e=this.pointsCount;if(0===e)return t.assign(zt),t;if(1===e)return t.assign(this.i(0)),t;if(2===e){var i=this.i(0),n=this.i(1);return t.h((i.x+n.x)/2,(i.y+n.y)/2),t}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Lc))return this.qa.cv(.5,t),t.add(this.i(0)),i=this.qa.figures.first(),t.offset(-i.startX,-i.startY),t;if(this.computeCurve()===Lc){if(3===e)return this.i(1);if(n=(e-1)/3|0,i=3*(n/2|0),1===n%2){n=this.i(i);var o=this.i(i+1),r=this.i(i+2);i=this.i(i+3),We.qy(n.x,n.y,o.x,o.y,r.x,r.y,i.x,i.y,t)}else t.assign(this.i(i));return t}var s=this.flattenedLengths;for(i=this.flattenedTotalLength,o=r=n=0;n<i/2&&r<e;){if(o=s[r],n+o>i/2)break;n+=o,r++}return e=this.i(r),r=this.i(r+1),1>Math.abs(e.x-r.x)?e.y>r.y?t.h(e.x,e.y-(i/2-n)):t.h(e.x,e.y+(i/2-n)):1>Math.abs(e.y-r.y)?e.x>r.x?t.h(e.x-(i/2-n),e.y):t.h(e.x+(i/2-n),e.y):(i=(i/2-n)/o,t.h(e.x+i*(r.x-e.x),e.y+i*(r.y-e.y))),t},nc.prototype.computeMidAngle=function(){var t=this.pointsCount;if(2>t)return NaN;if(2===t)return this.i(0).Wa(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Lc)){t:{t=this.qa;var e=.5;if(0>e?e=0:1<e&&(e=1),t.type===ai)t=180*Math.atan2(t.endY-t.startY,t.endX-t.startX)/Math.PI;else{var i=t.flattenedSegments,n=t.flattenedLengths,o=i.length;e=t.flattenedTotalLength*e;for(var r=0,s=0;s<o;s++){var a=n[s],l=a.length;for(t=0;t<l;t++){var h=a[t];if(r+h>=e){e=i[s],i=e[2*t],n=e[2*t+1],o=e[2*t+2],t=e[2*t+3],t=1>Math.abs(o-i)&&1>Math.abs(t-n)?0:1>Math.abs(o-i)?0<=t-n?90:270:1>Math.abs(t-n)?0<=o-i?0:180:180*Math.atan2(t-n,o-i)/Math.PI;break t}r+=h}}t=NaN}}return t}if(this.computeCurve()===Lc&&4<=t){if(n=(t-1)/3|0,i=3*(n/2|0),1===n%2)return i=Math.floor(i),t=this.i(i),n=this.i(i+1),o=this.i(i+2),i=this.i(i+3),We.py(t.x,t.y,n.x,n.y,o.x,o.y,i.x,i.y);if(0<i&&i+1<t)return this.i(i-1).Wa(this.i(i+1))}for(n=this.flattenedLengths,o=this.flattenedTotalLength,i=e=0;e<o/2&&i<t;){if(r=n[i],e+r>o/2)break;e+=r,i++}if(n=this.i(i),o=this.i(i+1),1>Math.abs(n.x-o.x)&&1>Math.abs(n.y-o.y)){if(0<i&&i+2<t)return this.i(i-1).Wa(this.i(i+2))}else{if(1>Math.abs(n.x-o.x))return n.y>o.y?270:90;if(1>Math.abs(n.y-o.y))return n.x>o.x?180:0}return n.Wa(o)},i=nc.prototype,i.i=function(t){return this.xb.j[t]},i.jd=function(t,e){this.xb.gd(t,e)},i.M=function(t,e,i){this.xb.gd(t,new mt(e,i))},i.oz=function(t,e){this.xb.Ib(t,e)},i.m=function(t,e,i){this.xb.Ib(t,new mt(e,i))},i.xe=function(t){this.xb.add(t)},i.jf=function(t,e){this.xb.add(new mt(t,e))},i.zv=function(t){this.xb.mb(t)},i.Tj=function(){this.xb.clear()},i.Bh=function(){null===this.Xg&&(this.Xg=this.xb,this.xb=this.xb.copy())},i.kf=function(){if(null!==this.Xg){for(var t=this.Xg,e=this.xb,i=1/0,n=1/0,o=t.j,r=o.length,s=0;s<r;s++){var a=o[s];i=Math.min(a.x,i),n=Math.min(a.y,n)}a=s=1/0;for(var l=e.j,h=l.length,u=0;u<h;u++){var c=l[u];s=Math.min(c.x,s),a=Math.min(c.y,a),c.freeze()}if(e.freeze(),h===r){for(r=0;r<h;r++)if(u=o[r],c=l[r],u.x-i!==c.x-s||u.y-n!==c.y-a){this.s(),this.bc();break}}else this.s(),this.bc();this.Xg=null,i=this.diagram,null!==i&&i.animationManager.rb&&(this.bh=e),ac(this),this.g(\"points\",t,e)}},i.Cx=function(){null!==this.Xg&&(this.xb=this.Xg,this.Xg=null)},i.Ra=function(){if(!this.suspendsRouting){var t=this.diagram;if(t){if(t.gt.contains(this)||t.undoManager.isUndoingRedoing)return;if(t=t.animationManager,t.isTicking&&!t.isAnimating)return;null!==this.bh&&!t.isTicking&&t.isAnimating&&(this.bh=null)}t=this.path,null!==t&&(this.Lc=!1,this.s(),t.s())}},i.Yi=function(){if(!this.Lc&&!this.Ou){var t=!0;try{this.Ou=!0,this.Bh(),t=this.computePoints()}finally{this.Ou=!1,t?this.kf():this.Cx()}}},nc.prototype.computePoints=function(){var t=this.diagram;if(null===t)return!1;var e=this.fromNode,i=null;if(null===e?(t.oi||(t.Zo=new sh,t.Zo.desiredSize=Ct,t.Zo.strokeWidth=0,t.oi=new Au,t.oi.add(t.Zo),t.oi.ac()),this.defaultFromPoint&&(t.oi.position=t.oi.location=this.defaultFromPoint,t.oi.ac(),e=t.oi,i=t.Zo)):i=this.fromPort,null!==i&&!e.isVisible()){var n=e.findVisibleNode();null!==n&&n!==e?(e=n,i=n.port):e=n}if(this.Kw=e,null===e||!e.location.o())return!1;for(;!(null===i||i.actualBounds.o()&&i.rf());)i=i.panel;if(null===i)return!1;var o=this.toNode,r=null;if(null===o?(t.pi||(t.$o=new sh,t.$o.desiredSize=Ct,t.$o.strokeWidth=0,t.pi=new Au,t.pi.add(t.$o),t.pi.ac()),this.defaultToPoint&&(t.pi.position=t.pi.location=this.defaultToPoint,t.pi.ac(),o=t.pi,r=t.$o)):r=this.toPort,null===r||o.isVisible()||(t=o.findVisibleNode(),null!==t&&t!==o?(o=t,r=t.port):o=t),this.Lw=o,null===o||!o.location.o())return!1;for(;!(null===r||r.actualBounds.o()&&r.rf());)r=r.panel;if(null===r)return!1;var s=this.pointsCount;n=this.computeSpot(!0,i),t=this.computeSpot(!1,r);var a=uc(n),l=uc(t),h=i===r&&null!==i,u=this.isOrthogonal,c=this.curve===Lc;this.Gf=!(!h||u)&&(c=!0);var f=this.adjusting===Tc||h;if(!u&&!h&&a&&l){if(a=!1,!f&&3<=s&&(f=this.getLinkPoint(e,i,n,!0,!1,o,r),l=this.getLinkPoint(o,r,t,!1,!1,e,i),a=this.adjustPoints(0,f,s-1,l))&&(f=this.getLinkPoint(e,i,n,!0,!1,o,r),l=this.getLinkPoint(o,r,t,!1,!1,e,i),this.adjustPoints(0,f,s-1,l)),!a)if(this.Tj(),c){s=this.getLinkPoint(e,i,n,!0,!1,o,r),f=this.getLinkPoint(o,r,t,!1,!1,e,i),a=f.x-s.x,l=f.y-s.y,h=this.computeCurviness(),c=u=0;var d=s.x+a/3,p=s.y+l/3,g=d,m=p;We.w(l,0)?m=0<a?m-h:m+h:(u=-a/l,c=Math.sqrt(h*h/(u*u+1)),0>h&&(c=-c),g=(0>l?-1:1)*c+d,m=u*(g-d)+p),d=s.x+2*a/3,p=s.y+2*l/3;var v=d,y=p;We.w(l,0)?y=0<a?y-h:y+h:(v=(0>l?-1:1)*c+d,y=u*(v-d)+p),this.Tj(),this.xe(s),this.jf(g,m),this.jf(v,y),this.xe(f),this.jd(0,this.getLinkPoint(e,i,n,!0,!1,o,r)),this.jd(3,this.getLinkPoint(o,r,t,!1,!1,e,i))}else n=this.getLinkPoint(e,i,n,!0,!1,o,r),t=this.getLinkPoint(o,r,t,!1,!1,e,i),this.hasCurviness()?(f=t.x-n.x,o=t.y-n.y,r=this.computeCurviness(),e=n.x+f/2,i=n.y+o/2,s=e,a=i,We.w(o,0)?a=0<f?a-r:a+r:(f=-f/o,s=Math.sqrt(r*r/(f*f+1)),0>r&&(s=-s),s=(0>o?-1:1)*s+e,a=f*(s-e)+i),this.xe(n),this.jf(s,a)):this.xe(n),this.xe(t)}else{c=this.isAvoiding,f&&(u&&c||h)&&this.Tj();var b=h?this.computeCurviness():0;c=this.getLinkPoint(e,i,n,!0,u,o,r),d=g=p=0,(u||!a||h)&&(m=this.computeEndSegmentLength(e,i,n,!0),d=this.getLinkDirection(e,i,c,n,!0,u,o,r),h&&(a||n.A(t)||!u&&1===n.x+t.x&&1===n.y+t.y)&&(d-=u?90:30,0>b&&(d-=180)),0>d?d+=360:360<=d&&(d-=360),h&&(m+=Math.abs(b)*(u?1:2)),0===d?p=m:90===d?g=m:180===d?p=-m:270===d?g=-m:(p=m*Math.cos(d*Math.PI/180),g=m*Math.sin(d*Math.PI/180)),n.jc()&&h&&(m=i.ma(de,mt.alloc()),v=mt.allocAt(m.x+1e3*p,m.y+1e3*g),this.getLinkPointFromPoint(e,i,m,v,!0,c),mt.free(m),mt.free(v))),m=this.getLinkPoint(o,r,t,!1,u,e,i);var w=y=v=0;if(u||!l||h){var x=this.computeEndSegmentLength(o,r,t,!1);w=this.getLinkDirection(o,r,m,t,!1,u,e,i),h&&(l||n.A(t)||!u&&1===n.x+t.x&&1===n.y+t.y)&&(w+=u?0:30,0>b&&(w+=180)),0>w?w+=360:360<=w&&(w-=360),h&&(x+=Math.abs(b)*(u?1:2)),0===w?v=x:90===w?y=x:180===w?v=-x:270===w?y=-x:(v=x*Math.cos(w*Math.PI/180),y=x*Math.sin(w*Math.PI/180)),t.jc()&&h&&(t=r.ma(de,mt.alloc()),n=mt.allocAt(t.x+1e3*v,t.y+1e3*y),this.getLinkPointFromPoint(o,r,t,n,!1,m),mt.free(t),mt.free(n))}t=c,(u||!a||h)&&(t=new mt(c.x+p,c.y+g)),n=m,(u||!l||h)&&(n=new mt(m.x+v,m.y+y)),!f&&!u&&a&&3<s&&this.adjustPoints(0,c,s-2,n)?this.jd(s-1,m):!f&&!u&&l&&3<s&&this.adjustPoints(1,t,s-1,m)?this.jd(0,c):!f&&(u?6<=s:4<s)&&this.adjustPoints(1,t,s-2,n)?(this.jd(0,c),this.jd(s-1,m)):(this.Tj(),this.xe(c),(u||!a||h)&&this.xe(t),u&&this.addOrthoPoints(t,d,n,w,e,o),(u||!l||h)&&this.xe(n),this.xe(m))}return!0},nc.prototype.getLinkPointFromPoint=function(t,e,i,n,o,r){if(void 0===r&&(r=new mt),null===t||null===e)return r.assign(i),r;if(t.isVisible()||(o=t.findVisibleNode(),null!==o&&o!==t&&(e=o.port)),t=null,o=e.panel,null===o||o.Zd()||(o=o.panel),null===o){o=n.x,n=n.y;var s=i.x;i=i.y}else{t=o.rd,o=1/(t.m11*t.m22-t.m12*t.m21),s=t.m22*o;var a=-t.m12*o,l=-t.m21*o,h=t.m11*o,u=o*(t.m21*t.dy-t.m22*t.dx),c=o*(t.m12*t.dx-t.m11*t.dy);o=n.x*s+n.y*l+u,n=n.x*a+n.y*h+c,s=i.x*s+i.y*l+u,i=i.x*a+i.y*h+c}return e.bk(o,n,s,i,r),null!==t&&r.transform(t),r},nc.prototype.getLinkPoint=function(t,e,i,n,o,r,s,a){if(void 0===a&&(a=new mt),i.gb()&&!uc(i))return e.ma(i,a),a;if(i.qf()){var l=hc(this,e);if(null!==l){if(a.assign(l.cq),o&&this.routing===Pc){var h=hc(this,s);if(null!==h&&l.Wl<h.Wl){l=mt.alloc(),h=mt.alloc();var u=new _t(e.ma(he,l),e.ma(ve,h)),c=this.computeSpot(!n,s);t=this.getLinkPoint(r,s,c,!n,o,t,e,h),(i.pf(be)||i.pf(we))&&t.y>=u.y&&t.y<=u.y+u.height?a.y=t.y:(i.pf(ye)||i.pf(xe))&&t.x>=u.x&&t.x<=u.x+u.width&&(a.x=t.x),mt.free(l),mt.free(h)}}return a}}return i=e.ma(.5===i.x&&.5===i.y?i:de,mt.alloc()),this.pointsCount>(o?6:2)?(s=n?this.i(1):this.i(this.pointsCount-2),o&&(s=lc(i,s.copy()))):(l=this.computeSpot(!n,s),r=mt.alloc(),s=s.ma(.5===l.x&&.5===l.y?l:de,r),o&&(s=lc(i,s)),mt.free(r)),this.getLinkPointFromPoint(t,e,i,s,n,a),mt.free(i),a},nc.prototype.getLinkDirection=function(t,e,i,n,o,r,s,a){t:if(n.gb())var l=n.x>n.y?n.x>1-n.y?0:n.x<1-n.y?270:315:n.x<n.y?n.x>1-n.y?90:n.x<1-n.y?180:135:.5>n.x?225:.5<n.x?45:0;else{if(n.qf()&&(l=hc(this,e),null!==l))switch(l.yc){case 1:l=270;break t;case 2:l=180;break t;default:case 4:l=0;break t;case 8:l=90;break t}l=e.ma(de,mt.alloc()),this.pointsCount>(r?6:2)?(a=o?this.i(1):this.i(this.pointsCount-2),a=r?lc(l,a.copy()):i):(i=mt.alloc(),a=a.ma(de,i),mt.free(i)),i=Math.abs(a.x-l.x)>Math.abs(a.y-l.y)?a.x>=l.x?0:180:a.y>=l.y?90:270,mt.free(l),l=i}return n.jc()&&s.Vd(t)&&(l+=180,360<=l&&(l-=360)),uc(n)?l:(t=e.Ji(),0===t||(45<=t&&135>t?l+=90:135<=t&&225>t?l+=180:225<=t&&315>t&&(l+=270),360<=l&&(l-=360)),l)},nc.prototype.computeEndSegmentLength=function(t,e,i,n){return null!==e&&i.qf()&&(t=hc(this,e),null!==t)?t.Tu:(t=n?this.fromEndSegmentLength:this.toEndSegmentLength,null!==e&&isNaN(t)&&(t=n?e.fromEndSegmentLength:e.toEndSegmentLength),isNaN(t)&&(t=10),t)},nc.prototype.computeSpot=function(t,e){return void 0===e&&(e=null),t?(t=e||this.fromPort,null===t?t=de:(e=this.fromSpot,e.Kb()&&(e=t.fromSpot),t=e===Ae?le:e)):(t=e||this.toPort,null===t?t=de:(e=this.toSpot,e.Kb()&&(e=t.toSpot),t=e===Ae?le:e)),t},nc.prototype.computeOtherPoint=function(t,e){return t=e.ma(de),e=e.Po,e=null!==e?sf(e,this):null,null!==e&&(t=e.cq),t},nc.prototype.computeShortLength=function(t){if(t){if(t=this.fromShortLength,isNaN(t)){var e=this.fromPort;null!==e&&(t=e.fromShortLength)}return isNaN(t)?0:t}return t=this.toShortLength,isNaN(t)&&(e=this.toPort,null!==e&&(t=e.toShortLength)),isNaN(t)?0:t},nc.prototype.mg=function(t,e,i,n,o,r){if(!1===this.pickable)return!1;void 0===e&&(e=null),void 0===i&&(i=null);var s=r;if(void 0===r&&(s=ae.alloc(),s.reset()),s.multiply(this.transform),this.uh(t,s))return Rl(this,e,i,o),void 0===r&&ae.free(s),!0;if(this.Ic(t,s)){var a=!1;if(!this.isAtomic)for(var l=this.Y.j,h=l.length;h--;){var u=l[h];if(u.visible||u===this.locationObject){var c=u.actualBounds,f=this.naturalBounds;if(!(c.x>f.width||c.y>f.height||0>c.x+c.width||0>c.y+c.height)){if(c=ae.alloc(),c.set(s),u instanceof Nl)a=u.mg(t,e,i,n,o,c);else if(this.path===u){if(u instanceof sh)if(a=t,f=n,!1===u.pickable)a=!1;else if(c.multiply(u.transform),f)t:{var d=a,p=c;if(u.uh(d,p))a=!0;else{if(void 0===p&&(p=u.transform,d.lf(u.actualBounds))){a=!0;break t}a=d.left,f=d.right;var g=d.top;d=d.bottom;var m=mt.alloc(),v=mt.alloc(),y=mt.alloc(),b=ae.alloc();b.set(p),b.nv(u.transform),b.bt(),v.x=f,v.y=g,v.transform(b),m.x=a,m.y=g,m.transform(b),p=!1,ch(u,m,v,y)?p=!0:(m.x=f,m.y=d,m.transform(b),ch(u,m,v,y)?p=!0:(v.x=a,v.y=d,v.transform(b),ch(u,m,v,y)?p=!0:(m.x=a,m.y=g,m.transform(b),ch(u,m,v,y)&&(p=!0)))),ae.free(b),mt.free(m),mt.free(v),mt.free(y),a=p}}else a=u.uh(a,c)}else a=Qs(u,t,n,c);a&&(f=u,null!==e&&(f=e(u)),f&&(null===i||i(f))&&o.add(f)),ae.free(c)}}}return void 0===r&&ae.free(s),a||null!==this.background||null!==this.areaBackground}return void 0===r&&ae.free(s),!1},nc.prototype.computeCurve=function(){if(null===this.Gf){var t=this.fromPort,e=this.isOrthogonal;this.Gf=null!==t&&t===this.toPort&&!e}return this.Gf?Lc:this.curve},nc.prototype.computeCorner=function(){if(this.curve===Lc)return 0;var t=this.corner;return(isNaN(t)||0>t)&&(t=10),t},nc.prototype.findMidLabel=function(){for(var t=this.path,e=this.Y.j,i=e.length,n=0;n<i;n++){var o=e[n];if(o!==t&&!o.isPanelMain&&(-1/0===o.segmentIndex||isNaN(o.segmentIndex)))return o}for(t=this.labelNodes;t.next();)if(e=t.value,-1/0===e.segmentIndex||isNaN(e.segmentIndex))return e;return null},nc.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var t=Math.max(14,this.computeThickness()),e=this.fromPort,i=this.toPort;if(null!==e&&null!==i){var n=this.findMidLabel();if(null!==n){var o=n.naturalBounds,r=n.margin,s=isNaN(o.width)?30:o.width*n.scale+r.left+r.right;o=isNaN(o.height)?14:o.height*n.scale+r.top+r.bottom,n=n.segmentOrientation,n===zc||n===Rc||n===Ec?t=Math.max(t,o):n===Ic||n===_c||n===Fc||n===Vc?t=Math.max(t,s):(e=e.ma(de).Wa(i.ma(de))/180*Math.PI,t=Math.max(t,Math.abs(Math.sin(e)*s)+Math.abs(Math.cos(e)*o)+1)),this.curve===Lc&&(t*=1.333)}}return t},nc.prototype.arrangeBundledLinks=function(t,e){if(e)for(e=0;e<t.length;e++){var i=t[e];i.adjusting===Tc&&i.Ra()}},nc.prototype.computeCurviness=function(){var t=this.curviness;if(isNaN(t)){t=16;var e=this.xf;if(null!==e){for(var i=j(),n=0,o=e.links,r=0;r<o.length;r++){var s=o[r].computeSpacing();i.push(s),n+=s}for(n=-n/2,r=0;r<o.length;r++){if(o[r]===this){t=n+i[r]/2;break}n+=i[r]}e.jt===this.fromNode&&(t=-t),A(i)}}return t},nc.prototype.computeThickness=function(){if(!this.isVisible())return 0;var t=this.path;return null!==t?Math.max(t.strokeWidth,1):1},nc.prototype.hasCurviness=function(){return!isNaN(this.curviness)||null!==this.xf},nc.prototype.adjustPoints=function(t,e,i,n){var o=this.adjusting;if(this.isOrthogonal){if(o===Ac)return!1;o===Bc&&(o=jc)}switch(o){case Ac:var r=this.i(t),s=this.i(i);if(!r.Qa(e)||!s.Qa(n)){o=r.x,r=r.y;var a=s.x-o,l=s.y-r,h=Math.sqrt(a*a+l*l);if(!We.ca(h,0)){if(We.ca(a,0))var u=0>l?-Math.PI/2:Math.PI/2;else u=Math.atan(l/Math.abs(a)),0>a&&(u=Math.PI-u);s=e.x;var c=e.y;a=n.x-s;var f=n.y-c;for(l=Math.sqrt(a*a+f*f),We.ca(a,0)?f=0>f?-Math.PI/2:Math.PI/2:(f=Math.atan(f/Math.abs(a)),0>a&&(f=Math.PI-f)),h=l/h,u=f-u,this.jd(t,e),t+=1;t<i;t++)e=this.i(t),a=e.x-o,l=e.y-r,e=Math.sqrt(a*a+l*l),We.ca(e,0)||(We.ca(a,0)?l=0>l?-Math.PI/2:Math.PI/2:(l=Math.atan(l/Math.abs(a)),0>a&&(l=Math.PI-l)),a=l+u,e*=h,this.M(t,s+e*Math.cos(a),c+e*Math.sin(a)));this.jd(i,n)}}return!0;case Bc:if(r=this.i(t),c=this.i(i),!r.Qa(e)||!c.Qa(n)){o=r.x,r=r.y,s=c.x,c=c.y,h=(s-o)*(s-o)+(c-r)*(c-r),a=e.x,u=e.y,l=n.x,f=n.y;var d=1;if(0!==l-a){var p=(f-u)/(l-a);d=Math.sqrt(1+1/(p*p))}else p=9e9;for(this.jd(t,e),t+=1;t<i;t++){e=this.i(t);var g=e.x,m=e.y,v=.5;0!==h&&(v=((o-g)*(o-s)+(r-m)*(r-c))/h);var y=o+v*(s-o),b=r+v*(c-r);e=Math.sqrt((g-y)*(g-y)+(m-b)*(m-b)),m<p*(g-y)+b&&(e=-e),0<p&&(e=-e),g=a+v*(l-a),v=u+v*(f-u),0!==p?(e=g+e/d,this.M(t,e,v-(e-g)/p)):this.M(t,g,v+e)}this.jd(i,n)}return!0;case jc:return this.isOrthogonal&&(o=this.i(t),r=this.i(t+1),s=this.i(t+2),a=r.x,u=r.y,c=a,h=u,We.w(o.y,r.y)?We.w(r.x,s.x)?u=e.y:We.w(r.y,s.y)&&(a=e.x):We.w(o.x,r.x)&&(We.w(r.y,s.y)?a=e.x:We.w(r.x,s.x)&&(u=e.y)),this.M(t+1,a,u),o=this.i(i),r=this.i(i-1),s=this.i(i-2),a=r.x,u=r.y,l=a,f=u,We.w(o.y,r.y)?We.w(r.x,s.x)?u=n.y:We.w(r.y,s.y)&&(a=n.x):We.w(o.x,r.x)&&(We.w(r.y,s.y)?a=n.x:We.w(r.x,s.x)&&(u=n.y)),this.M(i-1,a,u),cc(this))?(this.M(t+1,c,h),this.M(i-1,l,f),i=!1):(this.jd(t,e),this.jd(i,n),i=!0),i;default:return!1}},nc.prototype.addOrthoPoints=function(t,e,i,n,o,r){e=-45<=e&&45>e?0:45<=e&&135>e?90:135<=e&&225>e?180:270,n=-45<=n&&45>n?0:45<=n&&135>n?90:135<=n&&225>n?180:270;var s=o.actualBounds.copy(),a=r.actualBounds.copy();if(s.o()&&a.o()){if(s.Uc(8,8),a.Uc(8,8),s.Ie(t),a.Ie(i),0===e)if(i.x>t.x||270===n&&i.y<t.y&&a.right>t.x||90===n&&i.y>t.y&&a.right>t.x){var l=new mt(i.x,t.y),h=new mt(i.x,(t.y+i.y)/2);180===n?(l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1),h.x=l.x,h.y=i.y):270===n&&i.y<t.y||90===n&&i.y>t.y?(l.x=t.x<a.left?this.computeMidOrthoPosition(t.x,t.y,a.left,i.y,!1):t.x<a.right&&(270===n&&t.y<a.top||90===n&&t.y>a.bottom)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):a.right,h.x=l.x,h.y=i.y):0===n&&t.x<a.left&&t.y>a.top&&t.y<a.bottom&&(l.x=t.x,l.y=t.y<i.y?Math.min(i.y,a.top):Math.max(i.y,a.bottom),h.y=l.y)}else l=new mt(t.x,i.y),h=new mt((t.x+i.x)/2,i.y),(180===n||90===n&&i.y<s.top||270===n&&i.y>s.bottom)&&(180===n&&(a.ea(t)||s.ea(i))?l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):i.y<t.y&&(180===n||90===n)?l.y=this.computeMidOrthoPosition(t.x,s.top,i.x,Math.max(i.y,a.bottom),!0):i.y>t.y&&(180===n||270===n)&&(l.y=this.computeMidOrthoPosition(t.x,s.bottom,i.x,Math.min(i.y,a.top),!0)),h.x=i.x,h.y=l.y),l.y>s.top&&l.y<s.bottom&&(i.x>=s.left&&i.x<=t.x||t.x<=a.right&&t.x>=i.x?90!==n&&270!==n||(l=new mt(Math.max((t.x+i.x)/2,t.x),t.y),h=new mt(l.x,i.y)):(l.y=270===n||(0===n||180===n)&&i.y<t.y?Math.min(i.y,0===n?s.top:Math.min(s.top,a.top)):Math.max(i.y,0===n?s.bottom:Math.max(s.bottom,a.bottom)),h.x=i.x,h.y=l.y));else 180===e?i.x<t.x||270===n&&i.y<t.y&&a.left<t.x||90===n&&i.y>t.y&&a.left<t.x?(l=new mt(i.x,t.y),h=new mt(i.x,(t.y+i.y)/2),0===n?(l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1),h.x=l.x,h.y=i.y):270===n&&i.y<t.y||90===n&&i.y>t.y?(l.x=t.x>a.right?this.computeMidOrthoPosition(t.x,t.y,a.right,i.y,!1):t.x>a.left&&(270===n&&t.y<a.top||90===n&&t.y>a.bottom)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):a.left,h.x=l.x,h.y=i.y):180===n&&t.x>a.right&&t.y>a.top&&t.y<a.bottom&&(l.x=t.x,l.y=t.y<i.y?Math.min(i.y,a.top):Math.max(i.y,a.bottom),h.y=l.y)):(l=new mt(t.x,i.y),h=new mt((t.x+i.x)/2,i.y),(0===n||90===n&&i.y<s.top||270===n&&i.y>s.bottom)&&(0===n&&(a.ea(t)||s.ea(i))?l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):i.y<t.y&&(0===n||90===n)?l.y=this.computeMidOrthoPosition(t.x,s.top,i.x,Math.max(i.y,a.bottom),!0):i.y>t.y&&(0===n||270===n)&&(l.y=this.computeMidOrthoPosition(t.x,s.bottom,i.x,Math.min(i.y,a.top),!0)),h.x=i.x,h.y=l.y),l.y>s.top&&l.y<s.bottom&&(i.x<=s.right&&i.x>=t.x||t.x>=a.left&&t.x<=i.x?90!==n&&270!==n||(l=new mt(Math.min((t.x+i.x)/2,t.x),t.y),h=new mt(l.x,i.y)):(l.y=270===n||(0===n||180===n)&&i.y<t.y?Math.min(i.y,180===n?s.top:Math.min(s.top,a.top)):Math.max(i.y,180===n?s.bottom:Math.max(s.bottom,a.bottom)),h.x=i.x,h.y=l.y))):90===e?i.y>t.y||180===n&&i.x<t.x&&a.bottom>t.y||0===n&&i.x>t.x&&a.bottom>t.y?(l=new mt(t.x,i.y),h=new mt((t.x+i.x)/2,i.y),270===n?(l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0),h.x=i.x,h.y=l.y):180===n&&i.x<t.x||0===n&&i.x>t.x?(l.y=t.y<a.top?this.computeMidOrthoPosition(t.x,t.y,i.x,a.top,!0):t.y<a.bottom&&(180===n&&t.x<a.left||0===n&&t.x>a.right)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):a.bottom,h.x=i.x,h.y=l.y):90===n&&t.y<a.top&&t.x>a.left&&t.x<a.right&&(l.x=t.x<i.x?Math.min(i.x,a.left):Math.max(i.x,a.right),l.y=t.y,h.x=l.x)):(l=new mt(i.x,t.y),h=new mt(i.x,(t.y+i.y)/2),(270===n||0===n&&i.x<s.left||180===n&&i.x>s.right)&&(270===n&&(a.ea(t)||s.ea(i))?l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):i.x<t.x&&(270===n||0===n)?l.x=this.computeMidOrthoPosition(s.left,t.y,Math.max(i.x,a.right),i.y,!1):i.x>t.x&&(270===n||180===n)&&(l.x=this.computeMidOrthoPosition(s.right,t.y,Math.min(i.x,a.left),i.y,!1)),h.x=l.x,h.y=i.y),l.x>s.left&&l.x<s.right&&(i.y>=s.top&&i.y<=t.y||t.y<=a.bottom&&t.y>=i.y?0!==n&&180!==n||(l=new mt(t.x,Math.max((t.y+i.y)/2,t.y)),h=new mt(i.x,l.y)):(l.x=180===n||(90===n||270===n)&&i.x<t.x?Math.min(i.x,90===n?s.left:Math.min(s.left,a.left)):Math.max(i.x,90===n?s.right:Math.max(s.right,a.right)),h.x=l.x,h.y=i.y))):i.y<t.y||180===n&&i.x<t.x&&a.top<t.y||0===n&&i.x>t.x&&a.top<t.y?(l=new mt(t.x,i.y),h=new mt((t.x+i.x)/2,i.y),90===n?(l.y=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0),h.x=i.x,h.y=l.y):180===n&&i.x<t.x||0===n&&i.x>=t.x?(l.y=t.y>a.bottom?this.computeMidOrthoPosition(t.x,t.y,i.x,a.bottom,!0):t.y>a.top&&(180===n&&t.x<a.left||0===n&&t.x>a.right)?this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!0):a.top,h.x=i.x,h.y=l.y):270===n&&t.y>a.bottom&&t.x>a.left&&t.x<a.right&&(l.x=t.x<i.x?Math.min(i.x,a.left):Math.max(i.x,a.right),l.y=t.y,h.x=l.x)):(l=new mt(i.x,t.y),h=new mt(i.x,(t.y+i.y)/2),(90===n||0===n&&i.x<s.left||180===n&&i.x>s.right)&&(90===n&&(a.ea(t)||s.ea(i))?l.x=this.computeMidOrthoPosition(t.x,t.y,i.x,i.y,!1):i.x<t.x&&(90===n||0===n)?l.x=this.computeMidOrthoPosition(s.left,t.y,Math.max(i.x,a.right),i.y,!1):i.x>t.x&&(90===n||180===n)&&(l.x=this.computeMidOrthoPosition(s.right,t.y,Math.min(i.x,a.left),i.y,!1)),h.x=l.x,h.y=i.y),l.x>s.left&&l.x<s.right&&(i.y<=s.bottom&&i.y>=t.y||t.y>=a.top&&t.y<=i.y?0!==n&&180!==n||(l=new mt(t.x,Math.min((t.y+i.y)/2,t.y)),h=new mt(i.x,l.y)):(l.x=180===n||(90===n||270===n)&&i.x<t.x?Math.min(i.x,270===n?s.left:Math.min(s.left,a.left)):Math.max(i.x,270===n?s.right:Math.max(s.right,a.right)),h.x=l.x,h.y=i.y)));var u=l,c=h,f=i;if(this.isAvoiding){var d=this.diagram;if(null===d||!Gr(d)||s.ea(f)&&!r.Vd(o)||a.ea(t)&&!o.Vd(r)||o===r||this.layer.isTemporary)e=!1;else{var p=Xr(d,!0,this.containingGroup,null);if(p.ek(Math.min(t.x,u.x),Math.min(t.y,u.y),Math.abs(t.x-u.x),Math.abs(t.y-u.y))&&p.ek(Math.min(u.x,c.x),Math.min(u.y,c.y),Math.abs(u.x-c.x),Math.abs(u.y-c.y))&&p.ek(Math.min(c.x,f.x),Math.min(c.y,f.y),Math.abs(c.x-f.x),Math.abs(c.y-f.y)))e=!1;else{o=t,r=f;var g=i=null;if(d.isVirtualized){d=p.bounds.copy(),d.Uc(-p.Ul,-p.Tl);var m=mt.alloc();Gc(p,t.x,t.y)||(We.Tc(d.x,d.y,d.x+d.width,d.y+d.height,t.x,t.y,u.x,u.y,m)?(i=t=m.copy(),e=m.Wa(u)):We.Tc(d.x,d.y,d.x+d.width,d.y+d.height,u.x,u.y,c.x,c.y,m)?(i=t=m.copy(),e=m.Wa(c)):We.Tc(d.x,d.y,d.x+d.width,d.y+d.height,c.x,c.y,f.x,f.y,m)&&(i=t=m.copy(),e=m.Wa(f))),Gc(p,f.x,f.y)||(We.Tc(d.x,d.y,d.x+d.width,d.y+d.height,f.x,f.y,c.x,c.y,m)?(g=f=m.copy(),n=c.Wa(m)):We.Tc(d.x,d.y,d.x+d.width,d.y+d.height,c.x,c.y,u.x,u.y,m)?(g=f=m.copy(),n=u.Wa(m)):We.Tc(d.x,d.y,d.x+d.width,d.y+d.height,u.x,u.y,t.x,t.y,m)&&(g=f=m.copy(),n=t.Wa(m))),mt.free(m)}s=s.copy().Jc(a),a=p.Tz,s.Uc(p.Ul*a,p.Tl*a),Zc(p,t,e,f,n,s),a=Xc(p,f.x,f.y),!p.abort&&a>=ef&&(Kc(p),a=p.xz,s.Uc(p.Ul*a,p.Tl*a),Zc(p,t,e,f,n,s),a=Xc(p,f.x,f.y)),!p.abort&&a>=ef&&p.Zz&&(Kc(p),Zc(p,t,e,f,n,p.bounds),a=Xc(p,f.x,f.y)),!p.abort&&a<ef&&Xc(p,f.x,f.y)!==Qc?(fc(this,p,f.x,f.y,n,!0),s=this.i(2),4>this.pointsCount?(0===e||180===e?(s.x=t.x,s.y=f.y):(s.x=f.x,s.y=t.y),this.M(2,s.x,s.y),this.m(3,s.x,s.y)):(f=this.i(3),0===e||180===e?We.w(s.x,f.x)?(s=0===e?Math.max(s.x,t.x):Math.min(s.x,t.x),this.M(2,s,t.y),this.M(3,s,f.y)):We.w(s.y,f.y)?(Math.abs(t.y-s.y)<=p.Tl/2&&(this.M(2,s.x,t.y),this.M(3,f.x,t.y)),this.m(2,s.x,t.y)):this.M(2,t.x,s.y):90!==e&&270!==e||(We.w(s.y,f.y)?(s=90===e?Math.max(s.y,t.y):Math.min(s.y,t.y),this.M(2,t.x,s),this.M(3,f.x,s)):We.w(s.x,f.x)?(Math.abs(t.x-s.x)<=p.Ul/2&&(this.M(2,t.x,s.y),this.M(3,t.x,f.y)),this.m(2,t.x,s.y)):this.M(2,s.x,t.y))),null!==i&&(t=this.i(1),f=this.i(2),t.x!==f.x&&t.y!==f.y?0===e||180===e?this.m(2,t.x,f.y):this.m(2,f.x,t.y):0===e||180===e?this.m(2,o.x,i.y):this.m(2,i.x,o.y)),null!==g&&(0===n||180===n?this.jf(r.x,g.y):this.jf(g.x,r.y)),e=!0):e=!1}}}else e=!1;e||(this.xe(l),this.xe(h))}},nc.prototype.computeMidOrthoPosition=function(t,e,i,n,o){var r=0;return this.hasCurviness()&&(r=this.computeCurviness()),o?(e+n)/2+r:(t+i)/2+r},nc.prototype.Iy=function(t){var e=t.x;t=t.y;for(var i=this.i(0),n=this.i(1),o=xt(e,t,i.x,i.y,n.x,n.y),r=0,s=1;s<this.pointsCount-1;s++){i=this.i(s+1);var a=xt(e,t,n.x,n.y,i.x,i.y);n=i,a<o&&(r=s,o=a)}return r},nc.prototype.bc=function(){this.Qn=!0},nc.prototype.gk=function(t){if(!t){if(!1===this.Lc)return;if(t=this.zb(),!this.Qn&&(null===t||null!==t.geometry))return}if(this.qa=this.makeGeometry(),t=this.path,null!==t){t.qa=this.qa;for(var e=this.Y.j,i=e.length,n=0;n<i;n++){var o=e[n];o!==t&&o.isPanelMain&&o instanceof sh&&(o.qa=this.qa)}}},nc.prototype.makeGeometry=function(){var t=this.qa,e=this.pointsCount;if(2>e)return t.type=ai,this.Qn=!1,t;var i=!1,n=this.diagram;null!==n&&bc(this)&&n.Wh.contains(this)&&(0!==this.xl.width||0!==this.xl.height)&&(i=!0);var o=this.i(0).copy(),r=o.copy();n=this.xb.j;var s=this.computeCurve();if(s===Lc&&3<=e&&!We.ca(this.smoothness,0))if(3===e){var a=this.i(1);n=Math.min(o.x,a.x);var l=Math.min(o.y,a.y);a=this.i(2),n=Math.min(n,a.x),l=Math.min(l,a.y)}else{if(this.isOrthogonal)for(l=0;l<e;l++)a=n[l],r.x=Math.min(a.x,r.x),r.y=Math.min(a.y,r.y);else for(n=3;n<e;n+=3)n+3>=e&&(n=e-1),l=this.i(n),r.x=Math.min(l.x,r.x),r.y=Math.min(l.y,r.y);n=r.x,l=r.y}else{for(l=0;l<e;l++)a=n[l],r.x=Math.min(a.x,r.x),r.y=Math.min(a.y,r.y);n=r.x,l=r.y}if(n-=this.zu.x,l-=this.zu.y,o.x-=n,o.y-=l,2!==e||bc(this)){if(t.type=ui,a=ru(t),0!==this.computeShortLength(!0)&&(o=pc(this,o,!0,r)),tu(a,o.x,o.y,!1),s===Lc&&3<=e&&!We.ca(this.smoothness,0))if(3===e)i=this.i(1),e=i.x-n,i=i.y-l,o=this.i(2).copy(),o.x-=n,o.y-=l,0!==this.computeShortLength(!1)&&(o=pc(this,o,!1,r)),iu(a,e,i,e,i,o.x,o.y);else if(this.isOrthogonal){r=new mt(n,l),o=this.i(1).copy(),s=new mt(n,l),e=new mt(n,l),i=this.i(0);for(var h,u=this.smoothness/3,c=1;c<this.pointsCount-1;c++){h=this.i(c);var f=i,d=h,p=this.i(gc(this,h,c,!1));if((!We.ca(f.x,d.x)||!We.ca(d.x,p.x))&&(!We.ca(f.y,d.y)||!We.ca(d.y,p.y))){var g=u;isNaN(g)&&(g=this.smoothness/3);var m=f.x;f=f.y;var v=d.x;d=d.y;var y=p.x;p=p.y;var b=g*dc(m,f,v,d);g*=dc(v,d,y,p),We.ca(f,d)&&We.ca(v,y)&&(v>m?p>d?(s.x=v-b,s.y=d-b,e.x=v+g,e.y=d+g):(s.x=v-b,s.y=d+b,e.x=v+g,e.y=d-g):p>d?(s.x=v+b,s.y=d-b,e.x=v-g,e.y=d+g):(s.x=v+b,s.y=d+b,e.x=v-g,e.y=d-g)),We.ca(m,v)&&We.ca(d,p)&&(d>f?(y>v?(s.x=v-b,s.y=d-b,e.x=v+g):(s.x=v+b,s.y=d-b,e.x=v-g),e.y=d+g):(y>v?(s.x=v-b,s.y=d+b,e.x=v+g):(s.x=v+b,s.y=d+b,e.x=v-g),e.y=d-g)),(We.ca(m,v)&&We.ca(v,y)||We.ca(f,d)&&We.ca(d,p))&&(m=.5*(m+y),f=.5*(f+p),s.x=m,s.y=f,e.x=m,e.y=f),(1===c||2===c&&We.ca(i.x,this.i(0).x)&&We.ca(i.y,this.i(0).y))&&(o.x=.5*(i.x+h.x),o.y=.5*(i.y+h.y)),iu(a,o.x-n,o.y-l,s.x-n,s.y-l,h.x-n,h.y-l),r.set(s),o.set(e),i=h}}r=i.x,i=i.y,o=this.i(this.pointsCount-1),0!==this.computeShortLength(!1)&&(o=pc(this,o.copy(),!1,Dt)),r=.5*(r+o.x),i=.5*(i+o.y),iu(a,e.x-n,e.y-l,r-n,i-l,o.x-n,o.y-l)}else for(i=3;i<e;i+=3)r=this.i(i-2),i+3>=e&&(i=e-1),o=this.i(i-1),s=this.i(i),i===e-1&&0!==this.computeShortLength(!1)&&(s=pc(this,s.copy(),!1,Dt)),iu(a,r.x-n,r.y-l,o.x-n,o.y-l,s.x-n,s.y-l);else{for(r=mt.alloc(),r.assign(this.i(0)),s=1,o=0;s<e;){if(s=gc(this,r,s,1<s),u=this.i(s),s>=e-1){if(r.A(u)){if(0===o)for(s=1;s<e;)u=this.i(s++),mc(this,a,-n,-l,r,u,i),r.assign(u)}else 0!==this.computeShortLength(!1)&&(u=pc(this,u.copy(),!1,Dt)),mc(this,a,-n,-l,r,u,i);break}o=gc(this,u,s+1,s<e-3),s=-n,h=-l,c=this.i(o),m=i,We.w(r.y,u.y)&&We.w(u.x,c.x)?(f=this.computeCorner(),f=Math.min(f,Math.abs(u.x-r.x)/2),f=g=Math.min(f,Math.abs(c.y-u.y)/2),We.w(f,0)?(mc(this,a,s,h,r,u,m),r.assign(u)):(v=u.x,d=u.y,y=v,p=d,v=u.x>r.x?u.x-f:u.x+f,p=c.y>u.y?u.y+g:u.y-g,mc(this,a,s,h,r,new mt(v,d),m),nu(a,u.x+s,u.y+h,y+s,p+h),r.h(y,p))):We.w(r.x,u.x)&&We.w(u.y,c.y)?(f=this.computeCorner(),f=Math.min(f,Math.abs(u.y-r.y)/2),f=g=Math.min(f,Math.abs(c.x-u.x)/2),We.w(g,0)?(mc(this,a,s,h,r,u,m),r.assign(u)):(v=u.x,d=u.y,y=v,p=d,d=u.y>r.y?u.y-f:u.y+f,y=c.x>u.x?u.x+g:u.x-g,mc(this,a,s,h,r,new mt(v,d),m),nu(a,u.x+s,u.y+h,y+s,p+h),r.h(y,p))):(mc(this,a,s,h,r,u,m),r.assign(u)),s=o}mt.free(r)}su=a}else a=this.i(1).copy(),a.x-=n,a.y-=l,0!==this.computeShortLength(!0)&&(o=pc(this,o,!0,r)),0!==this.computeShortLength(!1)&&(a=pc(this,a,!1,r)),t.type=ai,t.startX=o.x,t.startY=o.y,t.endX=a.x,t.endY=a.y;return this.Qn=!1,t},nc.prototype.$p=function(t){var e=this.layer;if(null!==e&&e.visible&&!e.isTemporary){var i=e.diagram;if(null!==i&&!i.animationManager.isAnimating){var n=!1;for(i=i.layers;i.next();){var o=i.value;if(o.visible)if(o===e){n=!0;var r=!1;o=o.Fa.j;for(var s=o.length,a=0;a<s;a++){var l=o[a];l instanceof nc&&(l===this?r=!0:r&&xc(this,l,t))}}else if(n)for(r=o.Fa.j,o=r.length,s=0;s<o;s++)a=r[s],a instanceof nc&&xc(this,a,t)}}}},nc.prototype.usesSamePort=function(t){var e=this.pointsCount,i=t.pointsCount;if(0<e&&0<i){var n=this.i(0),o=t.i(0);if(n.Qa(o))return!0;if(e=this.i(e-1),t=t.i(i-1),e.Qa(t)||n.Qa(t)||e.Qa(o))return!0}else if(this.fromNode===t.fromNode||this.toNode===t.toNode||this.fromNode===t.toNode||this.toNode===t.fromNode)return!0;return!1},nc.prototype.isVisible=function(){if(!lu.prototype.isVisible.call(this))return!1;var t=this.containingGroup,e=!0,i=this.diagram;if(null!==i&&(e=i.isTreePathToChildren),i=this.fromNode,null!==i){if(this.isTreeLink&&e&&!i.isTreeExpanded)return!1;if(i===t)return!0;for(var n=i;null!==n;){if(n.labeledLink===this)return!0;n=n.containingGroup}if(i=i.findVisibleNode(),null===i||i===t)return!1}if(i=this.toNode,null!==i){if(this.isTreeLink&&!e&&!i.isTreeExpanded)return!1;if(i===t)return!0;for(e=i;null!==e;){if(e.labeledLink===this)return!0;e=e.containingGroup}if(e=i.findVisibleNode(),null===e||e===t)return!1}return!0},nc.prototype.Mb=function(t){if(lu.prototype.Mb.call(this,t),null!==this.xf&&this.xf.cm(),null!==this.$c)for(var e=this.$c.iterator;e.next();)e.value.Mb(t)},nc.prototype.zh=function(){return!0},p.Object.defineProperties(nc.prototype,{fromNode:{get:function(){return this.Oe},set:function(t){var e=this.Oe;if(e!==t){var i=this.fromPort;null!==e&&(this.ef!==e&&Ru(e,this,i),Mc(this),this.B(2)),this.Oe=t,null!==t&&this.Mb(t.isVisible()),this.Gf=null,this.Ra();var n=this.diagram;null!==n&&n.partManager.setFromNodeForLink(this,t,e);var o=this.fromPort,r=this.fromPortChanged;if(null!==r){var s=!0;null!==n&&(s=n.da,n.da=!0),r(this,i,o),null!==n&&(n.da=s)}null!==t&&(this.ef!==t&&Eu(t,this,o),kc(this),this.B(1)),this.g(\"fromNode\",e,t),oc(this)}}},fromPortId:{get:function(){return this.Pe},set:function(t){var e=this.Pe;if(e!==t){var i=this.fromPort;null!==i&&Iu(this.fromNode,i),Mc(this),this.Pe=t;var n=this.fromPort;null!==n&&Iu(this.fromNode,n);var o=this.diagram;if(null!==o){var r=this.data,s=o.model;null!==r&&s.em()&&s.Hx(r,t)}i!==n&&(this.Gf=null,this.Ra(),r=this.fromPortChanged,null!==r&&(s=!0,null!==o&&(s=o.da,o.da=!0),r(this,i,n),null!==o&&(o.da=s))),kc(this),this.g(\"fromPortId\",e,t)}}},fromPort:{get:function(){var t=this.Oe;return null===t?null:t.Ts(this.Pe)}},fromPortChanged:{get:function(){return this.Fn},set:function(t){var e=this.Fn;e!==t&&(this.Fn=t,this.g(\"fromPortChanged\",e,t))}},toNode:{get:function(){return this.ef},set:function(t){var e=this.ef;if(e!==t){var i=this.toPort;null!==e&&(this.Oe!==e&&Ru(e,this,i),Mc(this),this.B(2)),this.ef=t,null!==t&&this.Mb(t.isVisible()),this.Gf=null,this.Ra();var n=this.diagram;null!==n&&n.partManager.setToNodeForLink(this,t,e);var o=this.toPort,r=this.toPortChanged;if(null!==r){var s=!0;null!==n&&(s=n.da,n.da=!0),r(this,i,o),null!==n&&(n.da=s)}null!==t&&(this.Oe!==t&&Eu(t,this,o),kc(this),this.B(1)),this.g(\"toNode\",e,t),oc(this)}}},toPortId:{get:function(){return this.ff},set:function(t){var e=this.ff;if(e!==t){var i=this.toPort;null!==i&&Iu(this.toNode,i),Mc(this),this.ff=t;var n=this.toPort;null!==n&&Iu(this.toNode,n);var o=this.diagram;if(null!==o){var r=this.data,s=o.model;null!==r&&s.em()&&s.Lx(r,t)}i!==n&&(this.Gf=null,this.Ra(),r=this.toPortChanged,null!==r&&(s=!0,null!==o&&(s=o.da,o.da=!0),r(this,i,n),null!==o&&(o.da=s))),kc(this),this.g(\"toPortId\",e,t)}}},toPort:{get:function(){var t=this.ef;return null===t?null:t.Ts(this.ff)}},toPortChanged:{get:function(){return this.Bp},set:function(t){var e=this.Bp;e!==t&&(this.Bp=t,this.g(\"toPortChanged\",e,t))}},fromSpot:{get:function(){return null!==this.P?this.P.Lg:Ae},set:function(t){this.Hc();var e=this.P.Lg;e.A(t)||(t=t.I(),this.P.Lg=t,this.g(\"fromSpot\",e,t),this.Ra())}},fromEndSegmentLength:{get:function(){return null!==this.P?this.P.Jg:NaN},set:function(t){this.Hc();var e=this.P.Jg;e!==t&&(0>t&&C(t,\">= 0\",nc,\"fromEndSegmentLength\"),this.P.Jg=t,this.g(\"fromEndSegmentLength\",e,t),this.Ra())}},fromShortLength:{get:function(){return null!==this.P?this.P.Kg:NaN},set:function(t){this.Hc();var e=this.P.Kg;e!==t&&(this.P.Kg=t,this.g(\"fromShortLength\",e,t),this.Ra(),this.bc())}},toSpot:{get:function(){return null!==this.P?this.P.nh:Ae},set:function(t){this.Hc();var e=this.P.nh;e.A(t)||(t=t.I(),this.P.nh=t,this.g(\"toSpot\",e,t),this.Ra())}},toEndSegmentLength:{get:function(){return null!==this.P?this.P.lh:NaN},set:function(t){this.Hc();var e=this.P.lh;e!==t&&(0>t&&C(t,\">= 0\",nc,\"toEndSegmentLength\"),this.P.lh=t,this.g(\"toEndSegmentLength\",e,t),this.Ra())}},toShortLength:{get:function(){return null!==this.P?this.P.mh:NaN},set:function(t){this.Hc();var e=this.P.mh;e!==t&&(this.P.mh=t,this.g(\"toShortLength\",e,t),this.Ra(),this.bc())}},isLabeledLink:{get:function(){return null!==this.$c&&0<this.$c.count}},labelNodes:{get:function(){return null===this.$c?Q:this.$c.iterator}},relinkableFrom:{get:function(){return 0!==(1&this.Ta)},set:function(t){var e=0!==(1&this.Ta);e!==t&&(this.Ta^=1,this.g(\"relinkableFrom\",e,t),this.Jb())}},relinkableTo:{get:function(){return 0!==(2&this.Ta)},set:function(t){var e=0!==(2&this.Ta);e!==t&&(this.Ta^=2,this.g(\"relinkableTo\",e,t),this.Jb())}},resegmentable:{get:function(){return 0!==(4&this.Ta)},set:function(t){var e=0!==(4&this.Ta);e!==t&&(this.Ta^=4,this.g(\"resegmentable\",e,t),this.Jb())}},isTreeLink:{get:function(){return 0!==(8&this.Ta)},set:function(t){var e=0!==(8&this.Ta);e!==t&&(this.Ta^=8,this.g(\"isTreeLink\",e,t),null!==this.fromNode&&Vu(this.fromNode),null!==this.toNode&&Vu(this.toNode))}},path:{get:function(){var t=this.zb();return t instanceof sh?t:null}},routeBounds:{get:function(){this.Yi();var t=this.xl,e=1/0,i=1/0,n=this.pointsCount;if(0===n)t.h(NaN,NaN,0,0);else{if(1===n)n=this.i(0),e=Math.min(n.x,e),i=Math.min(n.y,i),t.h(n.x,n.y,0,0);else if(2===n){n=this.i(0);var o=this.i(1);e=Math.min(n.x,o.x),i=Math.min(n.y,o.y),t.h(n.x,n.y,0,0),t.Ie(o)}else if(this.computeCurve()===Lc&&3<=n&&!this.isOrthogonal)if(o=this.i(0),e=o.x,i=o.y,t.h(e,i,0,0),3===n){n=this.i(1),e=Math.min(n.x,e),i=Math.min(n.y,i);var r=this.i(2);e=Math.min(r.x,e),i=Math.min(r.y,i),We.Sl(o.x,o.y,n.x,n.y,n.x,n.y,r.x,r.y,.5,t)}else for(r=3;r<n;r+=3){var s=this.i(r-2);r+3>=n&&(r=n-1);var a=this.i(r-1),l=this.i(r);We.Sl(o.x,o.y,s.x,s.y,a.x,a.y,l.x,l.y,.5,t),e=Math.min(l.x,e),i=Math.min(l.y,i),o=l}else for(o=this.i(0),r=this.i(1),e=Math.min(o.x,r.x),i=Math.min(o.y,r.y),t.h(o.x,o.y,0,0),t.Ie(r),o=2;o<n;o++)r=this.i(o),e=Math.min(r.x,e),i=Math.min(r.y,i),t.Ie(r);this.zu.h(e-t.x,i-t.y)}return t}},midPoint:{get:function(){return this.Yi(),this.computeMidPoint(new mt)}},midAngle:{get:function(){return this.Yi(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(null===this.kr){this.Lc||ac(this);for(var t=this.kr=[],e=this.pointsCount,i=0;i<e-1;i++){var n=this.i(i),o=this.i(i+1);We.ca(n.x,o.x)?(n=o.y-n.y,0>n&&(n=-n)):We.ca(n.y,o.y)?(n=o.x-n.x,0>n&&(n=-n)):n=Math.sqrt(n.Be(o)),t.push(n)}}return this.kr}},flattenedTotalLength:{get:function(){var t=this.au;if(isNaN(t)){for(var e=this.flattenedLengths,i=e.length,n=t=0;n<i;n++)t+=e[n];this.au=t}return t}},points:{get:function(){return this.xb},set:function(t){var e=this.xb;if(e!==t){var i=null;if(Array.isArray(t)){var n=0===t.length%2;if(n)for(var o=0;o<t.length;o++)if(\"number\"!==typeof t[o]||isNaN(t[o])){n=!1;break}if(n)for(i=new nt,n=0;n<t.length/2;n++)o=new mt(t[2*n],t[2*n+1]).freeze(),i.add(o);else{for(n=!0,o=0;o<t.length;o++){var r=t[o];if(!P(r)||\"number\"!==typeof r.x||isNaN(r.x)||\"number\"!==typeof r.y||isNaN(r.y)){n=!1;break}}if(n)for(i=new nt,n=0;n<t.length;n++)o=t[n],i.add(new mt(o.x,o.y).freeze())}}else if(t instanceof nt)for(i=t.copy(),t=i.iterator;t.next();)t.value.freeze();else k(\"Link.points value is not an instance of List or Array: \"+t);i.freeze(),this.xb=i,this.bc(),this.s(),ac(this),t=this.diagram,null!==t&&(t.Oi||t.undoManager.isUndoingRedoing||t.gt.add(this),t.animationManager.rb&&(this.bh=i)),this.g(\"points\",e,i)}}},pointsCount:{get:function(){return this.xb.count}},Lc:{get:function(){return 0!==(16&this.Ta)},set:function(t){0!==(16&this.Ta)!==t&&(this.Ta^=16)}},suspendsRouting:{get:function(){return 0!==(32&this.Ta)},set:function(t){0!==(32&this.Ta)!==t&&(this.Ta^=32)}},Ou:{get:function(){return 0!==(64&this.Ta)},set:function(t){0!==(64&this.Ta)!==t&&(this.Ta^=64)}},defaultFromPoint:{get:function(){return this.u},set:function(t){this.u=t.copy()}},defaultToPoint:{get:function(){return this.K},set:function(t){this.K=t.copy()}},isOrthogonal:{get:function(){return 2===(2&this.Ej.value)}},isAvoiding:{get:function(){return 4===(4&this.Ej.value)}},geometry:{get:function(){return this.Qn&&(this.Yi(),this.qa=this.makeGeometry()),this.qa}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!uc(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var t=this.pointsCount;return 0===t?0:2>=t?t-1:this.isOrthogonal||!uc(this.computeSpot(!1))?t-2:t-1}},adjusting:{get:function(){return this.Lm},set:function(t){var e=this.Lm;e!==t&&(this.Lm=t,this.g(\"adjusting\",e,t))}},corner:{get:function(){return this.gn},set:function(t){var e=this.gn;e!==t&&(this.gn=t,this.bc(),this.g(\"corner\",e,t))}},curve:{get:function(){return this.kn},set:function(t){var e=this.kn;e!==t&&(this.kn=t,this.Ra(),this.bc(),wc(this,e===Oc||e===Dc||t===Oc||t===Dc),this.g(\"curve\",e,t))}},curviness:{get:function(){return this.ln},set:function(t){var e=this.ln;e!==t&&(this.ln=t,this.Ra(),this.bc(),this.g(\"curviness\",e,t))}},routing:{get:function(){return this.Ej},set:function(t){var e=this.Ej;e!==t&&(this.Ej=t,this.Gf=null,this.Ra(),wc(this,2===(2&e.value)||2===(2&t.value)),this.g(\"routing\",e,t))}},smoothness:{get:function(){return this.pp},set:function(t){var e=this.pp;e!==t&&(this.pp=t,this.bc(),this.g(\"smoothness\",e,t))}},key:{get:function(){var t=this.diagram;if(null!==t&&t.model.em())return t.model.ic(this.data)}}}),nc.prototype.invalidateOtherJumpOvers=nc.prototype.$p,nc.prototype.findClosestSegment=nc.prototype.Iy,nc.prototype.updateRoute=nc.prototype.Yi,nc.prototype.invalidateRoute=nc.prototype.Ra,nc.prototype.rollbackRoute=nc.prototype.Cx,nc.prototype.commitRoute=nc.prototype.kf,nc.prototype.startRoute=nc.prototype.Bh,nc.prototype.clearPoints=nc.prototype.Tj,nc.prototype.removePoint=nc.prototype.zv,nc.prototype.addPointAt=nc.prototype.jf,nc.prototype.addPoint=nc.prototype.xe,nc.prototype.insertPointAt=nc.prototype.m,nc.prototype.insertPoint=nc.prototype.oz,nc.prototype.setPointAt=nc.prototype.M,nc.prototype.setPoint=nc.prototype.jd,nc.prototype.getPoint=nc.prototype.i,nc.prototype.getOtherPort=nc.prototype.ez,nc.prototype.getOtherNode=nc.prototype.Xs;var Cc=new K(nc,\"Normal\",1),Sc=new K(nc,\"Orthogonal\",2),Nc=new K(nc,\"AvoidsNodes\",6),Pc=new K(nc,\"AvoidsNodesStraight\",7),Tc=new K(nc,\"None\",0),Lc=new K(nc,\"Bezier\",9),Oc=new K(nc,\"JumpGap\",10),Dc=new K(nc,\"JumpOver\",11),jc=new K(nc,\"End\",17),Ac=new K(nc,\"Scale\",18),Bc=new K(nc,\"Stretch\",19),zc=new K(nc,\"OrientAlong\",21),Fc=new K(nc,\"OrientPlus90\",22),Ic=new K(nc,\"OrientMinus90\",23),Ec=new K(nc,\"OrientOpposite\",24),Rc=new K(nc,\"OrientUpright\",25),Vc=new K(nc,\"OrientPlus90Upright\",26),_c=new K(nc,\"OrientMinus90Upright\",27),Hc=new K(nc,\"OrientUpright45\",28);function Yc(t,e,i,n){st(this),this.ie=this.xr=!1,this.jt=t,this.xx=e,this.ov=i,this.yx=n,this.links=[]}function qc(){st(this),this.Mx=this.group=null,this.at=!0,this.abort=!1,this.Kd=this.Jd=1,this.mo=this.lo=-1,this.lc=this.kc=8,this.Bb=[[]],this.Mj=this.Lj=0,this.Zz=!1,this.Tz=22,this.xz=111}function Gc(t,e,i){return t.Jd<=e&&e<=t.lo&&t.Kd<=i&&i<=t.mo}function Xc(t,e,i){return Gc(t,e,i)?(e-=t.Jd,e/=t.kc,i-=t.Kd,i/=t.lc,t.Bb[0|e][0|i]):nf}function Uc(t,e,i){Gc(t,e,i)&&(e-=t.Jd,e/=t.kc,i-=t.Kd,i/=t.lc,t.Bb[0|e][0|i]=Qc)}function Kc(t){if(null!==t.Bb)for(var e=0;e<=t.Lj;e++)for(var i=0;i<=t.Mj;i++)t.Bb[e][i]>=tf&&(t.Bb[e][i]=nf)}function $c(t,e,i,n,o,r,s,a,l){if(!(e<r||e>s||i<a||i>l)){var h=0|e,u=0|i,c=t.Bb[h][u];if(c>=tf&&c<ef)for(o?u+=n:h+=n,c+=1;r<=h&&h<=s&&a<=u&&u<=l&&!(c>=t.Bb[h][u]);)t.Bb[h][u]=c,c+=1,o?u+=n:h+=n;if(h=o?u:h,o)if(0<n)for(i+=n;i<h;i+=n)$c(t,e,i,1,!o,r,s,a,l),$c(t,e,i,-1,!o,r,s,a,l);else for(i+=n;i>h;i+=n)$c(t,e,i,1,!o,r,s,a,l),$c(t,e,i,-1,!o,r,s,a,l);else if(0<n)for(e+=n;e<h;e+=n)$c(t,e,i,1,!o,r,s,a,l),$c(t,e,i,-1,!o,r,s,a,l);else for(e+=n;e>h;e+=n)$c(t,e,i,1,!o,r,s,a,l),$c(t,e,i,-1,!o,r,s,a,l)}}function Wc(t,e,i,n,o,r,s,a,l){e|=0,i|=0;var h=Qc,u=tf;for(t.Bb[e][i]=u;h===Qc&&e>r&&e<s&&i>a&&i<l;)u+=1,t.Bb[e][i]=u,o?i+=n:e+=n,h=t.Bb[e][i]}function Jc(t,e,i,n,o,r,s,a,l){e|=0,i|=0;var h=Qc,u=ef;for(t.Bb[e][i]=u;h===Qc&&e>r&&e<s&&i>a&&i<l;)t.Bb[e][i]=u,o?i+=n:e+=n,h=t.Bb[e][i]}function Zc(t,e,i,n,o,r){if(null!==t.Bb){t.abort=!1;var s=e.x,a=e.y;if(Gc(t,s,a)&&(s-=t.Jd,s/=t.kc,a-=t.Kd,a/=t.lc,e=n.x,n=n.y,Gc(t,e,n)))if(e-=t.Jd,e/=t.kc,n-=t.Kd,n/=t.lc,1>=Math.abs(s-e)&&1>=Math.abs(a-n))t.abort=!0;else{var l=r.x,h=r.y,u=r.x+r.width,c=r.y+r.height;l-=t.Jd,l/=t.kc,h-=t.Kd,h/=t.lc,u-=t.Jd,u/=t.kc,c-=t.Kd,c/=t.lc,r=Math.max(0,Math.min(t.Lj,0|l)),u=Math.min(t.Lj,Math.max(0,0|u)),h=Math.max(0,Math.min(t.Mj,0|h)),c=Math.min(t.Mj,Math.max(0,0|c)),s|=0,a|=0,e|=0,n|=0,l=0===i||90===i?1:-1,i=90===i||270===i,t.Bb[s][a]===Qc?(Wc(t,s,a,l,i,r,u,h,c),Wc(t,s,a,1,!i,r,u,h,c),Wc(t,s,a,-1,!i,r,u,h,c)):Wc(t,s,a,l,i,s,a,s,a),t.Bb[e][n]===Qc?(Jc(t,e,n,0===o||90===o?1:-1,90===o||270===o,r,u,h,c),Jc(t,e,n,1,!(90===o||270===o),r,u,h,c),Jc(t,e,n,-1,!(90===o||270===o),r,u,h,c)):Jc(t,e,n,l,i,e,n,e,n),t.abort||($c(t,s,a,1,!1,r,u,h,c),$c(t,s,a,-1,!1,r,u,h,c),$c(t,s,a,1,!0,r,u,h,c),$c(t,s,a,-1,!0,r,u,h,c))}}}nc.className=\"Link\",nc.Normal=Cc,nc.Orthogonal=Sc,nc.AvoidsNodes=Nc,nc.AvoidsNodesStraight=Pc,nc.None=Tc,nc.Bezier=Lc,nc.JumpGap=Oc,nc.JumpOver=Dc,nc.End=jc,nc.Scale=Ac,nc.Stretch=Bc,nc.OrientAlong=zc,nc.OrientPlus90=Fc,nc.OrientMinus90=Ic,nc.OrientOpposite=Ec,nc.OrientUpright=Rc,nc.OrientPlus90Upright=Vc,nc.OrientMinus90Upright=_c,nc.OrientUpright45=Hc,Yc.prototype.cm=function(){if(!this.xr){var t=this.links;0<t.length&&(t=t[0].diagram,null!==t&&(t.zw.add(this),this.ie=t.undoManager.isUndoingRedoing))}this.xr=!0},Yc.prototype.Yv=function(){if(this.xr){this.xr=!1;var t=this.links;if(0<t.length){var e=t[0],i=e.diagram;i=null===i||i.Oi&&!this.ie,this.ie=!1,e.arrangeBundledLinks(t,i),1===t.length&&(e.xf=null,t.length=0)}0===t.length&&(t=this.jt,null!==this&&null!==t.Le&&t.Le.remove(this),t=this.ov,null!==this&&null!==t.Le&&t.Le.remove(this))}},Yc.className=\"LinkBundle\",qc.prototype.initialize=function(t){if(!(0>=t.width||0>=t.height)){var e=t.y,i=t.x+t.width,n=t.y+t.height;if(this.Jd=Math.floor((t.x-this.kc)/this.kc)*this.kc,this.Kd=Math.floor((e-this.lc)/this.lc)*this.lc,this.lo=Math.ceil((i+2*this.kc)/this.kc)*this.kc,this.mo=Math.ceil((n+2*this.lc)/this.lc)*this.lc,t=1+(0|Math.ceil((this.lo-this.Jd)/this.kc)),e=1+(0|Math.ceil((this.mo-this.Kd)/this.lc)),null===this.Bb||this.Lj<t-1||this.Mj<e-1){for(i=[],n=0;n<=t;n++)i[n]=[];this.Bb=i,this.Lj=t-1,this.Mj=e-1}if(t=nf,null!==this.Bb)for(e=0;e<=this.Lj;e++)for(i=0;i<=this.Mj;i++)this.Bb[e][i]=t}},qc.prototype.ek=function(t,e,i,n){if(t>this.lo||t+i<this.Jd||e>this.mo||e+n<this.Kd)return!0;t=(t-this.Jd)/this.kc|0,e=(e-this.Kd)/this.lc|0,i=Math.max(0,i)/this.kc+1|0;var o=Math.max(0,n)/this.lc+1|0;if(0>t&&(i+=t,t=0),0>e&&(o+=e,e=0),0>i||0>o)return!0;for(n=0|Math.min(t+i-1,this.Lj),i=0|Math.min(e+o-1,this.Mj);t<=n;t++)for(o=e;o<=i;o++)if(this.Bb[t][o]===Qc)return!1;return!0},p.Object.defineProperties(qc.prototype,{bounds:{get:function(){return new _t(this.Jd,this.Kd,this.lo-this.Jd,this.mo-this.Kd)}},Ul:{get:function(){return this.kc},set:function(t){0<t&&t!==this.kc&&(this.kc=t,this.initialize(this.bounds))}},Tl:{get:function(){return this.lc},set:function(t){0<t&&t!==this.lc&&(this.lc=t,this.initialize(this.bounds))}}});var Qc=0,tf=1,ef=999999,nf=ef+1;function of(){st(this),this.port=this.node=null,this.Wd=[],this.fq=!1}function rf(t,e,i,n){switch(e=e.offsetY,e){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(e){case 9:return 180<i?270:90;case 6:return 90<i&&270>=i?180:0}switch(t=180*Math.atan2(t.height,t.width)/Math.PI,e){case 3:return i>t&&i<=180+t?180:270;case 5:return i>180-t&&i<=360-t?270:0;case 12:return i>t&&i<=180+t?90:0;case 10:return i>180-t&&i<=360-t?180:90;case 7:return 90<i&&i<=180+t?180:i>180+t&&i<=360-t?270:0;case 13:return 180<i&&i<=360-t?270:i>t&&180>=i?90:0;case 14:return i>t&&i<=180-t?90:i>180-t&&270>=i?180:0;case 11:return i>180-t&&i<=180+t?180:i>180+t?270:90}return n&&15!==e&&(i-=15,0>i&&(i+=360)),i>t&&i<180-t?90:i>=180-t&&i<=180+t?180:i>180+t&&i<360-t?270:0}function sf(t,e){var i=t.Wd;if(0===i.length){t:if(!t.fq){i=t.fq,t.fq=!0;var n=null,o=t.node;if(o=o instanceof Ju?o:null,null===o||o.isSubGraphExpanded)var r=t.node.Wu(t.port.portId);else{if(!o.actualBounds.o()){t.fq=i;break t}n=o,r=n.Vu()}var s=t.Wd.length=0,a=t.port.ma(he,mt.alloc()),l=t.port.ma(ve,mt.alloc());for(o=_t.allocAt(a.x,a.y,0,0),o.Ie(l),mt.free(a),mt.free(l),a=mt.allocAt(o.x+o.width/2,o.y+o.height/2),l=t.port.Ji(),r=r.iterator;r.next();){var h=r.value;if(h.isVisible()&&h.fromPort!==h.toPort){var u=h.fromPort===t.port||null!==h.fromNode&&h.fromNode.Vd(n),c=h.computeSpot(u,t.port);if(c.qf()&&(u=u?h.toPort:h.fromPort,null!==u)){var f=u.part;if(null!==f){var d=f.findVisibleNode();null!==d&&d!==f&&(f=d,u=f.port),u=h.computeOtherPoint(f,u),f=a.Wa(u),f-=l,0>f&&(f+=360),c=rf(o,c,f,h.isOrthogonal),0===c?(c=4,180<f&&(f-=360)):c=90===c?8:180===c?2:1,d=t.Wd[s],void 0===d?(d=new af(h,f,c),t.Wd[s]=d):(d.link=h,d.angle=f,d.yc=c),d.sv.set(u),s++}}}}for(mt.free(a),t.Wd.sort(of.prototype.l),l=t.Wd.length,n=-1,s=a=0;s<l;s++)r=t.Wd[s],void 0!==r&&(r.yc!==n&&(n=r.yc,a=0),r.Xp=a,a++);for(n=-1,a=0,s=l-1;0<=s;s--)l=t.Wd[s],void 0!==l&&(l.yc!==n&&(n=l.yc,a=l.Xp+1),l.Wl=a);if(s=t.Wd,c=t.port,n=t.node.portSpreading,a=mt.alloc(),l=mt.alloc(),r=mt.alloc(),h=mt.alloc(),c.ma(he,a),c.ma(ce,l),c.ma(ve,r),c.ma(ge,h),d=f=u=c=0,n===Wu)for(var p=0;p<s.length;p++){var g=s[p];if(null!==g){var m=g.link.computeThickness();switch(g.yc){case 8:f+=m;break;case 2:d+=m;break;case 1:c+=m;break;default:case 4:u+=m}}}var v=p=0,y=1,b=g=0;for(m=0;m<s.length;m++){var w=s[m];if(null!==w){if(p!==w.yc){switch(p=w.yc,p){case 8:var x=r;v=h;break;case 2:x=h,v=a;break;case 1:x=a,v=l;break;default:case 4:x=l,v=r}switch(g=v.x-x.x,b=v.y-x.y,p){case 8:f>Math.abs(g)?(y=Math.abs(g)/f,f=Math.abs(g)):y=1;break;case 2:d>Math.abs(b)?(y=Math.abs(b)/d,d=Math.abs(b)):y=1;break;case 1:c>Math.abs(g)?(y=Math.abs(g)/c,c=Math.abs(g)):y=1;break;default:case 4:u>Math.abs(b)?(y=Math.abs(b)/u,u=Math.abs(b)):y=1}v=0}var k=w.cq;if(n===Wu){switch(w=w.link.computeThickness(),w*=y,k.set(x),p){case 8:k.x=x.x+g/2+f/2-v-w/2;break;case 2:k.y=x.y+b/2+d/2-v-w/2;break;case 1:k.x=x.x+g/2-c/2+v+w/2;break;default:case 4:k.y=x.y+b/2-u/2+v+w/2}v+=w}else{var M=.5;n===$u&&(M=(w.Xp+1)/(w.Wl+1)),k.x=x.x+g*M,k.y=x.y+b*M}}}for(mt.free(a),mt.free(l),mt.free(r),mt.free(h),x=t.Wd,s=0;s<x.length;s++)n=x[s],null!==n&&(n.Tu=t.computeEndSegmentLength(n));t.fq=i,_t.free(o)}i=t.Wd}for(t=0;t<i.length;t++)if(o=i[t],null!==o&&o.link===e)return o;return null}function af(t,e,i){this.link=t,this.angle=e,this.yc=i,this.sv=new mt,this.Wl=this.Xp=0,this.cq=new mt,this.Tu=0}function lf(){this.nh=this.Lg=Ae,this.mh=this.Kg=this.lh=this.Jg=NaN,this.zp=this.Dn=null,this.Ap=this.En=1/0}function hf(){st(this),this.K=this.C=null,this.Pg=this.Sn=!0,this.Yn=!1,this.Qm=new mt(0,0).freeze(),this.Vn=!0,this.Un=null,this.tw=\"\",this.u=null,this.Xn=!1,this.l=null}function uf(t,e,i,n,o,r,s,a){for(i=i.iterator;i.next();){var l=i.value;n&&!l.isTopLevel||null!==o&&!o(l)||!l.canLayout()||(r&&l instanceof Au?l.isLinkLabel||(l instanceof Ju&&null===l.layout?uf(t,e,l.memberParts,!1,o,r,s,a):(cf(l),e.add(l))):s&&l instanceof nc?e.add(l):!a||!l.Lb()||l instanceof Au||(cf(l),e.add(l)))}}function cf(t){var e=t.actualBounds;(0===e.width||0===e.height||isNaN(e.width)||isNaN(e.height))&&t.ac()}function ff(t){st(this),this.gc=t,this.gf=new rt,this.de=new rt,this.kt=new gt,this.ft=new gt}function df(t,e){if(null===e)return!1;var i=t.gf.remove(e);return i&&t.kt.remove(e.node),i}function pf(t,e){null!==e&&t.de.remove(e)&&t.ft.remove(e.link)}function gf(t){for(var e=j(),i=t.de.iterator;i.next();){var n=i.value;null!==n.fromVertex&&null!==n.toVertex||e.push(n)}for(i=e.length,n=0;n<i;n++)t.Zj(e[n]);A(e)}function mf(t,e,i){if(null!==i&&i.network!==e){df(t,i),e.sh(i);for(var n=i.sourceEdges;n.next();){var o=n.value;o.network!==e&&(pf(t,o),e.Oj(o),mf(t,e,o.fromVertex))}for(n=i.destinationEdges;n.next();)i=n.value,i.network!==e&&(pf(t,i),e.Oj(i),mf(t,e,i.toVertex))}}function vf(t){st(this),this.Vc=t,this.l=new _t(0,0,10,10).freeze(),this.u=new mt(5,5).freeze(),this.ki=this.jb=null,this.ug=new nt,this.lg=new nt}function yf(t,e){return t=t.ki,e=e.ki,t?e?(t=t.text,e=e.text,t<e?-1:t>e?1:0):1:null!==e?-1:0}function bf(t){st(this),this.Wb=t,this.fg=this.If=this.ml=this.jb=null}function wf(){hf.call(this),this.isViewportSized=!0,this.Gp=this.Hp=NaN,this.Bg=new It(NaN,NaN).freeze(),this.Ze=new It(10,10).freeze(),this.wb=Mf,this.Ab=Cf,this.Qc=Tf,this.Mc=xf}function xf(t,e){return t=t.text,e=e.text,t<e?-1:t>e?1:0}qc.className=\"PositionArray\",of.prototype.toString=function(){for(var t=this.Wd,e=this.node.toString()+\" \"+t.length.toString()+\":\",i=0;i<t.length;i++){var n=t[i];null!==n&&(e+=\"\\n \"+n.toString())}return e},of.prototype.cm=function(){this.Wd.length=0},of.prototype.l=function(t,e){return t===e?0:null===t?-1:null===e?1:t.yc<e.yc?-1:t.yc>e.yc?1:t.angle<e.angle?-1:t.angle>e.angle?1:0},of.prototype.computeEndSegmentLength=function(t){var e=t.link,i=e.computeEndSegmentLength(this.node,this.port,le,e.fromPort===this.port),n=t.Xp;if(0>n)return i;var o=t.Wl;if(1>=o||!e.isOrthogonal)return i;e=t.sv;var r=t.cq;return 2!==t.yc&&8!==t.yc||(n=o-1-n),((t=2===t.yc||4===t.yc)?e.y<r.y:e.x<r.x)?i+8*n:(t?e.y===r.y:e.x===r.x)?i:i+8*(o-1-n)},of.className=\"Knot\",af.prototype.toString=function(){return this.link.toString()+\" \"+this.angle.toString()+\" \"+this.yc.toString()+\":\"+this.Xp.toString()+\"/\"+this.Wl.toString()+\" \"+this.cq.toString()+\" \"+this.Tu.toString()+\" \"+this.sv.toString()},af.className=\"LinkInfo\",lf.prototype.copy=function(){var t=new lf;return t.Lg=this.Lg.I(),t.nh=this.nh.I(),t.Jg=this.Jg,t.lh=this.lh,t.Kg=this.Kg,t.mh=this.mh,t.Dn=this.Dn,t.zp=this.zp,t.En=this.En,t.Ap=this.Ap,t},lf.className=\"LinkSettings\",hf.prototype.cloneProtected=function(t){t.Sn=this.Sn,t.Pg=this.Pg,t.Yn=this.Yn,t.Qm.assign(this.Qm),t.Vn=this.Vn,t.Un=this.Un,t.tw=this.tw,t.Xn=!0},hf.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},hf.prototype.fb=function(){},hf.prototype.toString=function(){var t=B(this.constructor);return t+=\"(\",null!==this.group&&(t+=\" in \"+this.group),null!==this.diagram&&(t+=\" for \"+this.diagram),t+\")\"},hf.prototype.B=function(){if(this.isValidLayout){var t=this.diagram;if(null!==t&&!t.undoManager.isUndoingRedoing){var e=t.animationManager;!e.isTicking&&(e.isAnimating&&e.vd(),this.isOngoing&&t.Oi||this.isInitial&&!t.Oi)&&(this.isValidLayout=!1,t.cc())}}},hf.prototype.createNetwork=function(){return new ff(this)},hf.prototype.makeNetwork=function(t){var e=this.createNetwork();return t instanceof Do?(e.kg(t.nodes,!0),e.kg(t.links,!0)):t instanceof Ju?e.kg(t.memberParts):e.kg(t.iterator),e},hf.prototype.updateParts=function(){var t=this.diagram;if(null===t&&null!==this.network)for(var e=this.network.vertexes.iterator;e.next();){var i=e.value.node;if(null!==i&&(t=i.diagram,null!==t))break}this.isValidLayout=!0;try{null!==t&&t.Aa(\"Layout\"),this.commitLayout()}finally{null!==t&&t.Za(\"Layout\")}},hf.prototype.commitLayout=function(){if(null!==this.network){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();if(this.isRouting)for(t=this.network.edges.iterator;t.next();)t.value.commit()}},hf.prototype.doLayout=function(t){var e=new rt;t instanceof Do?(uf(this,e,t.nodes,!0,this.mk,!0,!1,!0),uf(this,e,t.parts,!0,this.mk,!0,!1,!0)):t instanceof Ju?uf(this,e,t.memberParts,!1,this.mk,!0,!1,!0):e.addAll(t.iterator);var i=e.count;if(0<i){t=this.diagram,null!==t&&t.Aa(\"Layout\"),i=Math.ceil(Math.sqrt(i)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,o=n,r=this.arrangementOrigin.y,s=0,a=0;for(e=e.iterator;e.next();){var l=e.value;cf(l);var h=l.measuredBounds,u=h.width;h=h.height,l.moveTo(o,r),l instanceof Ju&&(l.mk=!1),o+=Math.max(u,50)+20,a=Math.max(a,Math.max(h,50)),s>=i-1?(s=0,o=n,r+=a+20,a=0):s++}null!==t&&t.Za(\"Layout\")}this.isValidLayout=!0},hf.prototype.mk=function(t){return!(t.location.o()&&!(t instanceof Ju&&t.mk))},hf.prototype.Li=function(t,e){var i=this.boundsComputation;return null!==i?(e||(e=new _t),i(t,this,e)):e?(e.set(t.actualBounds),e):t.actualBounds},hf.prototype.Xw=function(t){var e=new rt;return t instanceof Do?(uf(this,e,t.nodes,!0,null,!0,!0,!0),uf(this,e,t.links,!0,null,!0,!0,!0),uf(this,e,t.parts,!0,null,!0,!0,!0)):uf(this,e,t instanceof Ju?t.memberParts:t.iterator,!1,null,!0,!0,!0),e},hf.prototype.initialOrigin=function(t){var e=this.group;if(null!==e){var i=e.position.copy();return(isNaN(i.x)||isNaN(i.y))&&i.set(t),e=e.placeholder,null!==e&&(i=e.ma(he),(isNaN(i.x)||isNaN(i.y))&&i.set(t),t=e.padding,i.x+=t.left,i.y+=t.top),i}return t},p.Object.defineProperties(hf.prototype,{diagram:{get:function(){return this.C},set:function(t){this.C=t}},group:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t,null!==t&&(this.C=t.diagram))}},isOngoing:{get:function(){return this.Sn},set:function(t){this.Sn!==t&&(this.Sn=t)}},isInitial:{get:function(){return this.Pg},set:function(t){this.Pg=t,t||(this.Xn=!0)}},isViewportSized:{get:function(){return this.Yn},set:function(t){this.Yn!==t&&(this.Yn=t)&&this.B()}},isRouting:{get:function(){return this.Vn},set:function(t){this.Vn!==t&&(this.Vn=t)}},isRealtime:{get:function(){return this.Un},set:function(t){this.Un!==t&&(this.Un=t)}},isValidLayout:{get:function(){return this.Xn},set:function(t){this.Xn!==t&&(this.Xn=t,t||(t=this.diagram,null!==t&&(t.zg=!0)))}},network:{get:function(){return this.l},set:function(t){this.l!==t&&(this.l=t,null!==t&&(t.layout=this))}},boundsComputation:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t,this.B())}},arrangementOrigin:{get:function(){return this.Qm},set:function(t){this.Qm.A(t)||(this.Qm.assign(t),this.B())}}}),hf.prototype.collectParts=hf.prototype.Xw,hf.prototype.getLayoutBounds=hf.prototype.Li,hf.prototype.invalidateLayout=hf.prototype.B,hf.className=\"Layout\",ff.prototype.clear=function(){if(this.gf)for(var t=this.gf.iterator;t.next();)t.value.clear();if(this.de)for(t=this.de.iterator;t.next();)t.value.clear();this.gf=new rt,this.de=new rt,this.kt=new gt,this.ft=new gt},ff.prototype.toString=function(t){void 0===t&&(t=0);var e=\"LayoutNetwork\"+(null!==this.layout?\"(\"+this.layout.toString()+\")\":\"\");if(0>=t)return e;if(e+=\" vertexes: \"+this.gf.count+\" edges: \"+this.de.count,1<t){for(var i=this.gf.iterator;i.next();)e+=\"\\n \"+i.value.toString(t-1);for(i=this.de.iterator;i.next();)e+=\"\\n \"+i.value.toString(t-1)}return e},ff.prototype.createVertex=function(){return new vf(this)},ff.prototype.createEdge=function(){return new bf(this)},ff.prototype.kg=function(t,e,i){if(null!==t){for(void 0===e&&(e=!1),void 0===i&&(i=null),null===i&&(i=function(t){if(t instanceof Au)return!t.isLinkLabel;if(t instanceof nc){var e=t.fromNode;return null!==e&&!e.isLinkLabel&&(t=t.toNode,null!==t&&!t.isLinkLabel)}return!1}),t=t.iterator;t.next();){var n=t.value;if(n instanceof Au&&(!e||n.isTopLevel)&&n.canLayout()&&i(n))if(n instanceof Ju&&null===n.layout)this.kg(n.memberParts,!1);else if(null===this.Ii(n)){var o=this.createVertex();o.node=n,this.sh(o)}}for(t.reset();t.next();)if(n=t.value,n instanceof nc&&(!e||n.isTopLevel)&&n.canLayout()&&i(n)&&null===this.Rp(n)){var r=n.fromNode;o=n.toNode,null!==r&&null!==o&&r!==o&&(r=this.findGroupVertex(r),o=this.findGroupVertex(o),null!==r&&null!==o&&this.fk(r,o,n))}}},ff.prototype.findGroupVertex=function(t){if(null===t)return null;var e=t.findVisibleNode();if(null===e)return null;if(t=this.Ii(e),null!==t)return t;for(e=e.containingGroup;null!==e;){if(t=this.Ii(e),null!==t)return t;e=e.containingGroup}return null},i=ff.prototype,i.sh=function(t){if(null!==t){this.gf.add(t);var e=t.node;null!==e&&this.kt.add(e,t),t.network=this}},i.Rl=function(t){if(null===t)return null;var e=this.Ii(t);return null===e&&(e=this.createVertex(),e.node=t,this.sh(e)),e},i.Su=function(t){if(null!==t&&df(this,t)){for(var e=t.ug,i=e.count-1;0<=i;i--){var n=e.N(i);this.Zj(n)}for(e=t.lg,t=e.count-1;0<=t;t--)i=e.N(t),this.Zj(i)}},i.Cy=function(t){null!==t&&(t=this.Ii(t),null!==t&&this.Su(t))},i.Ii=function(t){return null===t?null:this.kt.J(t)},i.Oj=function(t){if(null!==t){this.de.add(t);var e=t.link;null!==e&&null===this.Rp(e)&&this.ft.add(e,t),e=t.toVertex,null!==e&&e.Hu(t),e=t.fromVertex,null!==e&&e.Fu(t),t.network=this}},i.iy=function(t){if(null===t)return null;var e=t.fromNode,i=t.toNode,n=this.Rp(t);return null===n?(n=this.createEdge(),n.link=t,null!==e&&(n.fromVertex=this.Rl(e)),null!==i&&(n.toVertex=this.Rl(i)),this.Oj(n)):(n.fromVertex=null!==e?this.Rl(e):null,n.toVertex=null!==i?this.Rl(i):null),n},i.Zj=function(t){if(null!==t){var e=t.toVertex;null!==e&&e.Ru(t),e=t.fromVertex,null!==e&&e.Qu(t),pf(this,t)}},i.By=function(t){null!==t&&(t=this.Rp(t),null!==t&&this.Zj(t))},i.Rp=function(t){return null===t?null:this.ft.J(t)},i.fk=function(t,e,i){if(null===t||null===e)return null;if(t.network===this&&e.network===this){var n=this.createEdge();return n.link=i,n.fromVertex=t,n.toVertex=e,this.Oj(n),n}return null},i.sm=function(t){if(null!==t){var e=t.fromVertex,i=t.toVertex;null!==e&&null!==i&&(e.Qu(t),i.Ru(t),t.sm(),e.Hu(t),i.Fu(t))}},i.Pp=function(){for(var t=j(),e=this.de.iterator;e.next();){var i=e.value;i.fromVertex===i.toVertex&&t.push(i)}for(e=t.length,i=0;i<e;i++)this.Zj(t[i]);A(t)},ff.prototype.deleteArtificialVertexes=function(){for(var t=j(),e=this.gf.iterator;e.next();){var i=e.value;null===i.node&&t.push(i)}for(i=t.length,e=0;e<i;e++)this.Su(t[e]);for(e=j(),i=this.de.iterator;i.next();){var n=i.value;null===n.link&&e.push(n)}for(i=e.length,n=0;n<i;n++)this.Zj(e[n]);A(t),A(e)},ff.prototype.Nx=function(){this.deleteArtificialVertexes(),gf(this),this.Pp();for(var t=new nt,e=!0;e;){e=!1;for(var i=this.gf.iterator;i.next();){var n=i.value;if(0<n.ug.count||0<n.lg.count){e=this.layout.createNetwork(),t.add(e),mf(this,e,n),e=!0;break}}}return t.sort((function(t,e){return null===t||null===e||t===e?0:e.vertexes.count-t.vertexes.count})),t},ff.prototype.Hy=function(){for(var t=new rt,e=this.gf.iterator;e.next();)t.add(e.value.node);for(e=this.de.iterator;e.next();)t.add(e.value.link);return t},p.Object.defineProperties(ff.prototype,{layout:{get:function(){return this.gc},set:function(t){null!==t&&(this.gc=t)}},vertexes:{get:function(){return this.gf}},edges:{get:function(){return this.de}}}),ff.prototype.findAllParts=ff.prototype.Hy,ff.prototype.splitIntoSubNetworks=ff.prototype.Nx,ff.prototype.deleteSelfEdges=ff.prototype.Pp,ff.prototype.reverseEdge=ff.prototype.sm,ff.prototype.linkVertexes=ff.prototype.fk,ff.prototype.findEdge=ff.prototype.Rp,ff.prototype.deleteLink=ff.prototype.By,ff.prototype.deleteEdge=ff.prototype.Zj,ff.prototype.addLink=ff.prototype.iy,ff.prototype.addEdge=ff.prototype.Oj,ff.prototype.findVertex=ff.prototype.Ii,ff.prototype.deleteNode=ff.prototype.Cy,ff.prototype.deleteVertex=ff.prototype.Su,ff.prototype.addNode=ff.prototype.Rl,ff.prototype.addVertex=ff.prototype.sh,ff.prototype.addParts=ff.prototype.kg,ff.className=\"LayoutNetwork\",vf.prototype.clear=function(){this.ki=this.jb=null,this.ug=new nt,this.lg=new nt},vf.prototype.toString=function(t){void 0===t&&(t=0);var e=\"LayoutVertex#\"+lt(this);if(0<t&&(e+=null!==this.node?\"(\"+this.node.toString()+\")\":\"\",1<t)){t=\"\";for(var i=!0,n=this.ug.iterator;n.next();){var o=n.value;i?i=!1:t+=\",\",t+=o.toString(0)}for(o=\"\",i=!0,n=this.lg.iterator;n.next();){var r=n.value;i?i=!1:o+=\",\",o+=r.toString(0)}e+=\" sources: \"+t+\" destinations: \"+o}return e},vf.prototype.commit=function(){var t=this.jb;if(null!==t){var e=this.bounds,i=t.bounds;P(i)?(i.x=e.x,i.y=e.y,i.width=e.width,i.height=e.height):t.bounds=e.copy()}else if(t=this.node,null!==t){if(e=this.bounds,!(t instanceof Ju)){i=_t.alloc();var n=this.network.layout.Li(t,i),o=t.locationObject.ma(de);if(n.o()&&o.o())return t.moveTo(e.x+this.focusX-(o.x-n.x),e.y+this.focusY-(o.y-n.y)),void _t.free(i);_t.free(i)}t.moveTo(e.x,e.y)}},vf.prototype.Hu=function(t){null!==t&&(this.ug.contains(t)||this.ug.add(t))},vf.prototype.Ru=function(t){null!==t&&this.ug.remove(t)},vf.prototype.Fu=function(t){null!==t&&(this.lg.contains(t)||this.lg.add(t))},vf.prototype.Qu=function(t){null!==t&&this.lg.remove(t)},p.Object.defineProperties(vf.prototype,{sourceEdgesArrayAccess:{get:function(){return this.ug._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.lg._dataArray}},data:{get:function(){return this.jb},set:function(t){if(this.jb=t,null!==t){var e=t.bounds;t=e.x;var i=e.y,n=e.width;e=e.height,this.u.h(n/2,e/2),this.l.h(t,i,n,e)}}},node:{get:function(){return this.ki},set:function(t){if(this.ki!==t){this.ki=t,t.ac();var e=this.network.layout,i=_t.alloc(),n=e.Li(t,i);e=n.x;var o=n.y,r=n.width;if(n=n.height,isNaN(e)&&(e=0),isNaN(o)&&(o=0),this.l.h(e,o,r,n),_t.free(i),!(t instanceof Ju)&&(t=t.locationObject.ma(de),t.o()))return void this.u.h(t.x-e,t.y-o);this.u.h(r/2,n/2)}}},bounds:{get:function(){return this.l},set:function(t){this.l.A(t)||this.l.assign(t)}},focus:{get:function(){return this.u},set:function(t){this.u.A(t)||this.u.assign(t)}},centerX:{get:function(){return this.l.x+this.u.x},set:function(t){var e=this.l;e.x+this.u.x!==t&&(e.ha(),e.x=t-this.u.x,e.freeze())}},centerY:{get:function(){return this.l.y+this.u.y},set:function(t){var e=this.l;e.y+this.u.y!==t&&(e.ha(),e.y=t-this.u.y,e.freeze())}},focusX:{get:function(){return this.u.x},set:function(t){var e=this.u;e.x!==t&&(e.ha(),e.x=t,e.freeze())}},focusY:{get:function(){return this.u.y},set:function(t){var e=this.u;e.y!==t&&(e.ha(),e.y=t,e.freeze())}},x:{get:function(){return this.l.x},set:function(t){var e=this.l;e.x!==t&&(e.ha(),e.x=t,e.freeze())}},y:{get:function(){return this.l.y},set:function(t){var e=this.l;e.y!==t&&(e.ha(),e.y=t,e.freeze())}},width:{get:function(){return this.l.width},set:function(t){var e=this.l;e.width!==t&&(e.ha(),e.width=t,e.freeze())}},height:{get:function(){return this.l.height},set:function(t){var e=this.l;e.height!==t&&(e.ha(),e.height=t,e.freeze())}},network:{get:function(){return this.Vc},set:function(t){this.Vc=t}},sourceVertexes:{get:function(){for(var t=new rt,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);return t.iterator}},destinationVertexes:{get:function(){for(var t=new rt,e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},vertexes:{get:function(){for(var t=new rt,e=this.sourceEdges;e.next();)t.add(e.value.fromVertex);for(e=this.destinationEdges;e.next();)t.add(e.value.toVertex);return t.iterator}},sourceEdges:{get:function(){return this.ug.iterator}},destinationEdges:{get:function(){return this.lg.iterator}},edges:{get:function(){for(var t=new nt,e=this.sourceEdges;e.next();)t.add(e.value);for(e=this.destinationEdges;e.next();)t.add(e.value);return t.iterator}},edgesCount:{get:function(){return this.ug.count+this.lg.count}}}),vf.prototype.deleteDestinationEdge=vf.prototype.Qu,vf.prototype.addDestinationEdge=vf.prototype.Fu,vf.prototype.deleteSourceEdge=vf.prototype.Ru,vf.prototype.addSourceEdge=vf.prototype.Hu,vf.className=\"LayoutVertex\",vf.standardComparer=yf,vf.smartComparer=function(t,e){if(null!==t){if(null!==e){t=t.ki;var i=e.ki;if(null!==t){if(null!==i){for(e=t.text.toLocaleLowerCase().split(/([+\\-]?[\\.]?\\d+(?:\\.\\d*)?(?:e[+\\-]?\\d+)?)/),t=i.text.toLocaleLowerCase().split(/([+\\-]?[\\.]?\\d+(?:\\.\\d*)?(?:e[+\\-]?\\d+)?)/),i=0;i<e.length;i++)if(\"\"!==t[i]&&void 0!==t[i]){var n=parseFloat(e[i]),o=parseFloat(t[i]);if(isNaN(n)){if(!isNaN(o))return 1;if(0!==e[i].localeCompare(t[i]))return e[i].localeCompare(t[i])}else{if(isNaN(o))return-1;if(0!==n-o)return n-o}}else if(\"\"!==e[i])return 1;return\"\"!==t[i]&&void 0!==t[i]?-1:0}return 1}return null!==i?-1:0}return 1}return null!==e?-1:0},bf.prototype.clear=function(){this.fg=this.If=this.ml=this.jb=null},bf.prototype.toString=function(t){void 0===t&&(t=0);var e=\"LayoutEdge#\"+lt(this);return 0<t&&(e+=null!==this.ml?\"(\"+this.ml.toString()+\")\":\"\",1<t&&(e+=\" \"+(this.If?this.If.toString():\"null\")+\" --\\x3e \"+(this.fg?this.fg.toString():\"null\"))),e},bf.prototype.sm=function(){var t=this.If;this.If=this.fg,this.fg=t},bf.prototype.commit=function(){},bf.prototype.nx=function(t){return this.fg===t?this.If:this.If===t?this.fg:null},p.Object.defineProperties(bf.prototype,{network:{get:function(){return this.Wb},set:function(t){this.Wb=t}},data:{get:function(){return this.jb},set:function(t){this.jb!==t&&(this.jb=t)}},link:{get:function(){return this.ml},set:function(t){this.ml!==t&&(this.ml=t)}},fromVertex:{get:function(){return this.If},set:function(t){this.If!==t&&(this.If=t)}},toVertex:{get:function(){return this.fg},set:function(t){this.fg!==t&&(this.fg=t)}}}),bf.prototype.getOtherVertex=bf.prototype.nx,bf.className=\"LayoutEdge\",d(wf,hf),wf.prototype.cloneProtected=function(t){hf.prototype.cloneProtected.call(this,t),t.Hp=this.Hp,t.Gp=this.Gp,t.Bg.assign(this.Bg),t.Ze.assign(this.Ze),t.wb=this.wb,t.Ab=this.Ab,t.Qc=this.Qc,t.Mc=this.Mc},wf.prototype.fb=function(t){t.classType===wf?t===Tf||t===Lf||t===Nf||t===Pf?this.sorting=t:t===Cf||t===Sf?this.arrangement=t:t===Mf||t===kf?this.alignment=t:k(\"Unknown enum value: \"+t):hf.prototype.fb.call(this,t)},wf.prototype.doLayout=function(t){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var e=this.Xw(t);t=this.diagram;for(var i=e.copy().iterator;i.next();){var n=i.value;if(!n.zh()||null===n.fromNode&&null===n.toNode){if(n.ac(),n instanceof Ju)for(n=n.memberParts;n.next();)e.remove(n.value)}else e.remove(n)}var o=e.Na();if(0!==o.length){switch(this.sorting){case Pf:o.reverse();break;case Tf:o.sort(this.comparer);break;case Lf:o.sort(this.comparer),o.reverse()}var r=this.wrappingColumn;isNaN(r)&&(r=0);var s=this.wrappingWidth;switch(isNaN(s)&&null!==t?(e=t.padding,s=Math.max(t.viewportBounds.width-e.left-e.right,0)):s=Math.max(this.wrappingWidth,0),0>=r&&0>=s&&(r=1),e=this.spacing.width,isFinite(e)||(e=0),i=this.spacing.height,isFinite(i)||(i=0),null!==t&&t.Aa(\"Layout\"),n=[],this.alignment){case kf:var a=e,l=i,h=_t.alloc(),u=Math.max(this.cellSize.width,1);if(!isFinite(u))for(var c=u=0;c<o.length;c++){var f=this.Li(o[c],h);u=Math.max(u,f.width)}if(u=Math.max(u+a,1),c=Math.max(this.cellSize.height,1),!isFinite(c))for(f=c=0;f<o.length;f++){var d=this.Li(o[f],h);c=Math.max(c,d.height)}c=Math.max(c+l,1),f=this.arrangement;for(var p=d=this.arrangementOrigin.x,g=this.arrangementOrigin.y,m=0,v=0,y=0;y<o.length;y++){var b=o[y],w=this.Li(b,h),x=Math.ceil((w.width+a)/u)*u,k=Math.ceil((w.height+l)/c)*c;switch(f){case Sf:var M=Math.abs(p-w.width);break;default:M=p+w.width}switch((0<r&&m>r-1||0<s&&0<m&&M-d>s)&&(n.push(new _t(0,g,s+a,v)),m=0,p=d,g+=v,v=0),v=Math.max(v,k),f){case Sf:w=-w.width;break;default:w=0}switch(b.moveTo(p+w,g),f){case Sf:p-=x;break;default:p+=x}m++}n.push(new _t(0,g,s+a,v)),_t.free(h);break;case Mf:for(l=s,u=r,c=e,f=i,s=_t.alloc(),d=Math.max(this.cellSize.width,1),r=g=h=0,a=mt.alloc(),p=0;p<o.length;p++)v=o[p],m=this.Li(v,s),v=v.nf(v.locationObject,v.locationSpot,a),h=Math.max(h,v.x),g=Math.max(g,m.width-v.x),r=Math.max(r,v.y);switch(p=this.arrangement,p){case Sf:h+=c;break;default:g+=c}d=isFinite(d)?Math.max(d+c,1):Math.max(h+g,1);var C=v=this.arrangementOrigin.x;for(y=this.arrangementOrigin.y,g=0,l>=h&&(l-=h),h=b=0,x=Math.max(this.cellSize.height,1),w=r=0,k=!0,m=mt.alloc(),M=0;M<o.length;M++){var S=o[M],N=this.Li(S,s),P=S.nf(S.locationObject,S.locationSpot,a);if(0<g)switch(p){case Sf:C=(C-v-(N.width-P.x))/d,C=We.ca(Math.round(C),C)?Math.round(C):Math.floor(C),C=C*d+v;break;default:C=(C-v+P.x)/d,C=We.ca(Math.round(C),C)?Math.round(C):Math.ceil(C),C=C*d+v}else switch(p){case Sf:b=C+P.x+N.width;break;default:b=C-P.x}switch(p){case Sf:var T=-(C+P.x)+b;break;default:T=C+N.width-P.x-b}if(0<u&&g>u-1||0<l&&0<g&&T>l){for(n.push(new _t(0,k?y-r:y,l+c,w+r+f)),C=0;C<g&&M!==g;C++){T=o[M-g+C];var L=T.nf(T.locationObject,T.locationSpot,m);T.moveTo(T.position.x,T.position.y+r-L.y)}w+=f,y=k?y+w:y+(w+r),g=w=r=0,C=v,k=!1}switch(C===v&&(h=p===Sf?Math.max(h,N.width-P.x):Math.min(h,-P.x)),r=Math.max(r,P.y),w=Math.max(w,N.height-P.y),isFinite(x)&&(w=Math.max(w,Math.max(N.height,x)-P.y)),k?S.moveTo(C-P.x,y-P.y):S.moveTo(C-P.x,y),p){case Sf:C-=P.x+c;break;default:C+=N.width-P.x+c}g++}if(n.push(new _t(0,y,l+c,(k?w:w+r)+f)),o.length!==g)for(l=0;l<g;l++)u=o[o.length-g+l],c=u.nf(u.locationObject,u.locationSpot,a),u.moveTo(u.position.x,u.position.y+r-c.y);if(mt.free(a),mt.free(m),p===Sf)for(o=0;o<n.length;o++)r=n[o],r.width+=h,r.x-=h;else for(o=0;o<n.length;o++)r=n[o],r.x>h&&(r.width+=r.x-h,r.x=h);_t.free(s)}for(a=r=s=o=0;a<n.length;a++)l=n[a],o=Math.min(o,l.x),s=Math.min(s,l.y),r=Math.max(r,l.x+l.width);this.arrangement===Sf?this.commitLayers(n,new mt(o+e/2-(r+o),s-i/2)):this.commitLayers(n,new mt(o-e/2,s-i/2)),null!==t&&t.Za(\"Layout\"),this.isValidLayout=!0}},wf.prototype.commitLayers=function(){},p.Object.defineProperties(wf.prototype,{wrappingWidth:{get:function(){return this.Hp},set:function(t){this.Hp!==t&&(0<t||isNaN(t))&&(this.Hp=t,this.isViewportSized=isNaN(t),this.B())}},wrappingColumn:{get:function(){return this.Gp},set:function(t){this.Gp!==t&&(0<t||isNaN(t))&&(this.Gp=t,this.B())}},cellSize:{get:function(){return this.Bg},set:function(t){this.Bg.A(t)||(this.Bg.assign(t),this.B())}},spacing:{get:function(){return this.Ze},set:function(t){this.Ze.A(t)||(this.Ze.assign(t),this.B())}},alignment:{get:function(){return this.wb},set:function(t){this.wb===t||t!==Mf&&t!==kf||(this.wb=t,this.B())}},arrangement:{get:function(){return this.Ab},set:function(t){this.Ab===t||t!==Cf&&t!==Sf||(this.Ab=t,this.B())}},sorting:{get:function(){return this.Qc},set:function(t){this.Qc===t||t!==Nf&&t!==Pf&&t!==Tf&&t!==Lf||(this.Qc=t,this.B())}},comparer:{get:function(){return this.Mc},set:function(t){this.Mc!==t&&(this.Mc=t,this.B())}}});var kf=new K(wf,\"Position\",0),Mf=new K(wf,\"Location\",1),Cf=new K(wf,\"LeftToRight\",2),Sf=new K(wf,\"RightToLeft\",3),Nf=new K(wf,\"Forward\",4),Pf=new K(wf,\"Reverse\",5),Tf=new K(wf,\"Ascending\",6),Lf=new K(wf,\"Descending\",7);function Of(){this.Co=new rt,this.ho=new rt,this.Fa=new rt,this.Me=new gt,this.Dg=new gt,this.oj=new gt,this.C=null,this.xq=!1}function Df(t,e,i){if(void 0!==e&&null!==e&&!t.diagram.undoManager.isUndoingRedoing&&!t.Me.contains(e)){void 0===i&&(i=!0);t:{if(void 0!==e&&null!==e&&!t.C.undoManager.isUndoingRedoing&&!t.Me.contains(e)){var n=t.Vs(e),o=jf(t,e,n);if(null!==o&&(ql(o),o=o.copy(),null!==o)){var r=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,o.yf=n,o.jb=e,t.xq&&(o.Rg=\"Tool\"),t.diagram.add(o),o.jb=null,o.data=e,t.diagram.skipsModelSourceBindings=r,n=o;break t}}n=null}null!==n&&i&&t.resolveReferencesForData(e)}}function jf(t,e,i){t=t.C;var n=t.model;return n.dk()&&n.kv(e)?(e=t.groupTemplateMap.J(i),null===e&&(e=t.groupTemplateMap.J(\"\"),null===e&&(Rf||(Rf=!0,S('No Group template found for category \"'+i+'\"'),S(\" Using default group template\")),e=t.qw))):(e=t.nodeTemplateMap.J(i),null===e&&(e=t.nodeTemplateMap.J(\"\"),null===e&&(Ef||(Ef=!0,S('No Node template found for category \"'+i+'\"'),S(\" Using default node template\")),e=t.sw))),e}function Af(t,e,i){for(var n in i){var o=e[n],r=i[n];if(T(r)){if(!T(o)||o.length<r.length)return!1;for(var s=0;s<o.length;s++){var a=r[s];if(void 0!==a&&!Bf(t,o[s],a))return!1}}else if(!Bf(t,o,r))return!1}return!0}function Bf(t,e,i){if(\"function\"===typeof i){if(!i(e))return!1}else if(i instanceof RegExp){if(!e||!i.test(e.toString()))return!1}else if(P(e)&&P(i)){if(!Af(t,e,i))return!1}else if(e!==i)return!1;return!0}function zf(t,e){var i=e.ei;if(T(i)){var n=t.oj.J(i);if(null===n)n=[],n.push(e),t.oj.add(i,n);else{for(t=0;t<n.length;t++)if(n[t]===e)return;n.push(e)}}}function Ff(t,e){var i=e.ei;if(T(i)){var n=t.oj.J(i);if(null!==n)for(var o=0;o<n.length;o++)if(n[o]===e){n.splice(o,1),0===n.length&&t.oj.remove(i);break}}}function If(t,e,i,n,o){if(null===e||o&&!e.canCopy())return null;if(n.contains(e))return n.J(e);var r=t.copyPartData(e,i);if(!(r instanceof lu))return null;if(r.isSelected=!1,r.isHighlighted=!1,n.add(e,r),e instanceof Au){for(var s=e.linksConnected;s.next();){var a=s.value;if(a.fromNode===e){var l=n.J(a);null!==l&&(l.fromNode=r)}a.toNode===e&&(a=n.J(a),null!==a&&(a.toNode=r))}if(e instanceof Ju&&r instanceof Ju)for(e=e.memberParts;e.next();)s=If(t,e.value,i,n,o),s instanceof nc||null===s||(s.containingGroup=r)}else if(e instanceof nc&&r instanceof nc)for(s=e.fromNode,null!==s&&(s=n.J(s),null!==s&&(r.fromNode=s)),s=e.toNode,null!==s&&(s=n.J(s),null!==s&&(r.toNode=s)),e=e.labelNodes;e.next();)s=If(t,e.value,i,n,o),null!==s&&s instanceof Au&&(s.labeledLink=r);return r}wf.className=\"GridLayout\",wf.standardComparer=xf,wf.smartComparer=function(t,e){if(null!==t){if(null!==e){t=t.text.toLocaleLowerCase().split(/([+\\-]?[\\.]?\\d+(?:\\.\\d*)?(?:e[+\\-]?\\d+)?)/),e=e.text.toLocaleLowerCase().split(/([+\\-]?[\\.]?\\d+(?:\\.\\d*)?(?:e[+\\-]?\\d+)?)/);for(var i=0;i<t.length;i++)if(\"\"!==e[i]&&void 0!==e[i]){var n=parseFloat(t[i]),o=parseFloat(e[i]);if(isNaN(n)){if(!isNaN(o))return 1;if(0!==t[i].localeCompare(e[i]))return t[i].localeCompare(e[i])}else{if(isNaN(o))return-1;if(0!==n-o)return n-o}}else if(\"\"!==t[i])return 1;return\"\"!==e[i]&&void 0!==e[i]?-1:0}return 1}return null!==e?-1:0},wf.Position=kf,wf.Location=Mf,wf.LeftToRight=Cf,wf.RightToLeft=Sf,wf.Forward=Nf,wf.Reverse=Pf,wf.Ascending=Tf,wf.Descending=Lf,i=Of.prototype,i.clear=function(){this.Co.clear(),this.ho.clear(),this.Fa.clear(),this.Me.clear(),this.Dg.clear(),this.oj.clear()},i.hb=function(t){this.C=t},i.Ni=function(t){if(t instanceof Au){if(this.Co.add(t),t instanceof Ju){var e=t.containingGroup;null===e?this.C.xi.add(t):e.rl.add(t),e=t.layout,null!==e&&(e.diagram=this.C)}}else t instanceof nc?this.ho.add(t):t instanceof ju||this.Fa.add(t);e=t.data,null===e||t instanceof ju||(t instanceof nc?this.Dg.add(e,t):this.Me.add(e,t))},i.xc=function(t){if(t.Sj(),t instanceof Au){if(this.Co.remove(t),t instanceof Ju){var e=t.containingGroup;null===e?this.C.xi.remove(t):e.rl.remove(t),e=t.layout,null!==e&&(e.diagram=null)}}else t instanceof nc?this.ho.remove(t):t instanceof ju||this.Fa.remove(t);e=t.data,null===e||t instanceof ju||(t instanceof nc?this.Dg.remove(e):this.Me.remove(e))},i.ud=function(){for(var t=this.C.nodeTemplateMap.iterator;t.next();){var e=t.value,i=t.key;(!e.Lb()||e instanceof Ju)&&k('Invalid node template in Diagram.nodeTemplateMap: template for \"'+i+'\" must be a Node or a simple Part, not a Group or Link: '+e)}for(t=this.C.groupTemplateMap.iterator;t.next();)e=t.value,i=t.key,e instanceof Ju||k('Invalid group template in Diagram.groupTemplateMap: template for \"'+i+'\" must be a Group, not a normal Node or Link: '+e);for(t=this.C.linkTemplateMap.iterator;t.next();)e=t.value,i=t.key,e instanceof nc||k('Invalid link template in Diagram.linkTemplateMap: template for \"'+i+'\" must be a Link, not a normal Node or simple Part: '+e);for(t=j(),e=this.C.selection.iterator;e.next();)(i=e.value.data)&&t.push(i);for(e=j(),i=this.C.highlighteds.iterator;i.next();){var n=i.value.data;n&&e.push(n)}for(i=j(),n=this.nodes.iterator;n.next();){var o=n.value;null!==o.data&&(i.push(o.data),i.push(o.location))}for(n=this.links.iterator;n.next();)o=n.value,null!==o.data&&(i.push(o.data),i.push(o.location));for(n=this.parts.iterator;n.next();)o=n.value,null!==o.data&&(i.push(o.data),i.push(o.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),n=0;n<t.length;n++)o=this.vc(t[n]),null!==o&&(o.isSelected=!0);for(n=0;n<e.length;n++)o=this.vc(e[n]),null!==o&&(o.isHighlighted=!0);for(n=0;n<i.length;n+=2)o=this.vc(i[n]),null!==o&&(o.location=i[n+1]);A(t),A(e),A(i)},Of.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Of.prototype.addModeledParts=function(t,e){var i=this,n=this.diagram.model;t.forEach((function(t){n.Qb(t)&&Df(i,t,!1)})),t.forEach((function(t){n.Qb(t)&&i.resolveReferencesForData(t)})),!1!==e&&Er(this.diagram,!1)},Of.prototype.insertLink=function(){return null},Of.prototype.resolveReferencesForData=function(){},Of.prototype.Vs=function(t){return this.C.model.Vs(t)},Of.prototype.getLinkCategoryForData=function(){return\"\"},Of.prototype.setLinkCategoryForData=function(){},Of.prototype.setFromNodeForLink=function(){},Of.prototype.setToNodeForLink=function(){},Of.prototype.findLinkTemplateForCategory=function(t){var e=this.C.linkTemplateMap.J(t);return null===e&&(e=this.C.linkTemplateMap.J(\"\"),null===e&&(Vf||(Vf=!0,S('No Link template found for category \"'+t+'\"'),S(\" Using default link template\")),e=this.C.rw)),e},Of.prototype.removeAllModeledParts=function(){this.qt(this.diagram.model.nodeDataArray)},Of.prototype.qt=function(t){var e=this;t.forEach((function(t){e.mq(t)}))},Of.prototype.mq=function(t){t=this.vc(t),null!==t&&(br(this.diagram,t,!1),this.unresolveReferencesForPart(t))},Of.prototype.unresolveReferencesForPart=function(){},Of.prototype.removeDataForLink=function(){},Of.prototype.findPartForKey=function(t){return null===t||void 0===t?null:(t=this.C.model.Rb(t),null!==t?this.Me.J(t):null)},i=Of.prototype,i.Hb=function(t){return null===t||void 0===t?null:(t=this.C.model.Rb(t),null===t?null:(t=this.Me.J(t),t instanceof Au?t:null))},i.vc=function(t){if(null===t)return null;var e=this.Me.J(t);return null!==e?e:e=this.Dg.J(t)},i.Ei=function(t){return null===t?null:(t=this.Me.J(t),t instanceof Au?t:null)},i.uc=function(t){return null===t?null:this.Dg.J(t)},i.Ss=function(t){for(var e=0;e<arguments.length;++e);e=new rt;for(var i=this.Co.iterator;i.next();){var n=i.value,o=n.data;if(null!==o)for(var r=0;r<arguments.length;r++){var s=arguments[r];if(P(s)&&Af(this,o,s)){e.add(n);break}}}return e.iterator},i.Rs=function(t){for(var e=0;e<arguments.length;++e);e=new rt;for(var i=this.ho.iterator;i.next();){var n=i.value,o=n.data;if(null!==o)for(var r=0;r<arguments.length;r++){var s=arguments[r];if(P(s)&&Af(this,o,s)){e.add(n);break}}}return e.iterator},Of.prototype.doModelChanged=function(t){if(this.C){var e=this.C;if(t.model===e.model){var i=t.change;if(e.doModelChanged(t),e.da){e.da=!1;try{var n=t.modelChange;if(\"\"!==n)if(i===Si){if(\"nodeCategory\"===n){var o=this.vc(t.object),r=t.newValue;null!==o&&\"string\"===typeof r&&(o.category=r)}else\"nodeDataArray\"===n&&(this.qt(t.oldValue),this.addModeledParts(t.newValue));e.isModified=!0}else if(i===Ni){var s=t.newValue;\"nodeDataArray\"===n&&P(s)&&Df(this,s),e.isModified=!0}else if(i===Pi){var a=t.oldValue;\"nodeDataArray\"===n&&P(a)&&this.mq(a),e.isModified=!0}else i===Ci&&(\"SourceChanged\"===n?null!==t.object?this.updateDataBindings(t.object,t.propertyName):(this.tq(),this.updateAllTargetBindings()):\"ModelDisplaced\"===n&&this.ud());else if(i===Si){var l=t.propertyName,h=t.object;h===e.model?\"nodeKeyProperty\"!==l&&\"nodeCategoryProperty\"!==l||e.undoManager.isUndoingRedoing||this.ud():this.updateDataBindings(h,l),e.isModified=!0}else if(i===Ni||i===Pi){var u=t.change===Ni,c=u?t.newParam:t.oldParam,f=u?t.newValue:t.oldValue,d=this.oj.J(t.object);if(Array.isArray(d))for(t=0;t<d.length;t++){var p=d[t];if(u)Ul(p,f,c);else if(!(0>c)){var g=c+Xl(p);p.xc(g,!0),Kl(p,g,c)}}e.isModified=!0}}finally{e.da=!0}}}}},Of.prototype.updateAllTargetBindings=function(t){void 0===t&&(t=\"\");for(var e=this.parts.iterator;e.next();)e.value.Ea(t);for(e=this.nodes.iterator;e.next();)e.value.Ea(t);for(e=this.links.iterator;e.next();)e.value.Ea(t)},Of.prototype.tq=function(){for(var t=this.C.model,e=new rt,i=t.nodeDataArray,n=0;n<i.length;n++)e.add(i[n]);var o=[];for(this.nodes.each((function(t){null===t.data||e.contains(t.data)||o.push(t.data)})),this.parts.each((function(t){null===t.data||e.contains(t.data)||o.push(t.data)})),o.forEach((function(e){sd(t,e,!1)})),n=0;n<i.length;n++){var r=i[n];null===this.vc(r)&&rd(t,r,!1)}for(this.refreshDataBoundLinks(),i=this.parts.iterator;i.next();)i.value.updateRelationshipsFromData();for(i=this.nodes.iterator;i.next();)i.value.updateRelationshipsFromData();for(i=this.links.iterator;i.next();)i.value.updateRelationshipsFromData()},Of.prototype.refreshDataBoundLinks=function(){},Of.prototype.updateRelationshipsFromData=function(){},Of.prototype.updateDataBindings=function(t,e){if(\"string\"===typeof e){var i=this.vc(t);if(null!==i)i.Ea(e);else{i=null;for(var n=this.oj.iterator;n.next();){for(var o=n.value,r=0;r<o.length;r++){var s=o[r].ix(t);null!==s&&(null===i&&(i=j()),i.push(s))}if(null!==i)break}if(null!==i){for(n=0;n<i.length;n++)i[n].Ea(e);A(i)}}t===this.diagram.model.modelData&&this.updateAllTargetBindings(e)}},Of.prototype.Xj=function(t,e,i){var n=new gt;if(T(t))for(var o=0;o<t.length;o++)If(this,t[o],e,n,i);else for(t=t.iterator;t.next();)If(this,t.value,e,n,i);if(null!==e){i=e.model,t=e.toolManager.findTool(\"Dragging\"),t=null!==t?t.dragOptions.dragsLink:e.Lk.dragsLink,o=new rt;for(var r=new gt,s=n.iterator;s.next();){var a=s.value;if(a instanceof nc)t||null!==a.fromNode&&null!==a.toNode||o.add(a);else if(a instanceof Au&&null!==a.data&&i.fm()){var l=a;a=s.key;var h=a.og();null!==h&&(h=n.J(h),null!==h?(i.He(l.data,i.pa(h.data)),l=e.uc(l.data),a=a.Hi(),null!==a&&null!==l&&r.add(a,l)):i.He(l.data,void 0))}}if(0<o.count&&e.rt(o,!1),0<r.count)for(i=r.iterator;i.next();)n.add(i.key,i.value)}if(null!==e&&null!==this.C&&(e=e.model,i=e.afterCopyFunction,null!==i)){var u=new gt;n.each((function(t){null!==t.key.data&&u.add(t.key.data,t.value.data)})),i(u,e,this.C.model)}for(e=n.iterator;e.next();)e.value.Ea();return n},Of.prototype.copyPartData=function(t,e){var i=null,n=t.data;if(null!==n&&null!==e){var o=e.model;t instanceof nc||(n=o.copyNodeData(n),P(n)&&(o.hf(n),i=e.vc(n)))}else ql(t),i=t.copy(),null!==i&&(o=this.C,null!==e?e.add(i):null!==n&&null!==o&&null!==o.commandHandler&&o.commandHandler.copiesClipboardData&&(e=o.model,o=null,i instanceof nc||(o=e.copyNodeData(n)),P(o)&&(i.data=o)));return i},p.Object.defineProperties(Of.prototype,{nodes:{get:function(){return this.Co}},links:{get:function(){return this.ho}},parts:{get:function(){return this.Fa}},diagram:{get:function(){return this.C}},addsToTemporaryLayer:{get:function(){return this.xq},set:function(t){this.xq=t}}}),Of.prototype.updateAllRelationshipsFromData=Of.prototype.tq,Of.prototype.findLinksByExample=Of.prototype.Rs,Of.prototype.findNodesByExample=Of.prototype.Ss,Of.prototype.findLinkForData=Of.prototype.uc,Of.prototype.findNodeForData=Of.prototype.Ei,Of.prototype.findPartForData=Of.prototype.vc,Of.prototype.findNodeForKey=Of.prototype.Hb,Of.prototype.removeModeledPart=Of.prototype.mq,Of.prototype.removeModeledParts=Of.prototype.qt,Of.prototype.rebuildParts=Of.prototype.ud;var Ef=!1,Rf=!1,Vf=!1;function _f(t){Of.apply(this,arguments)}function Hf(t,e){e.forEach((function(e){Yf(t,e)})),Er(t.diagram,!1)}function Yf(t,e){if(void 0!==e&&null!==e&&!t.diagram.undoManager.isUndoingRedoing&&!t.Dg.contains(e)){var i=t.getLinkCategoryForData(e),n=t.findLinkTemplateForCategory(i);if(null!==n){ql(n);var o=n.copy();if(null!==o){n=t.diagram.skipsModelSourceBindings,t.diagram.skipsModelSourceBindings=!0,o.yf=i,o.jb=e,i=t.diagram.model;var r=Cd(i,e,!0);\"\"!==r&&(o.fromPortId=r),r=kd(i,e,!0),void 0!==r&&(r=t.Hb(r),r instanceof Au&&(o.fromNode=r)),r=Cd(i,e,!1),\"\"!==r&&(o.toPortId=r),r=kd(i,e,!1),void 0!==r&&(r=t.Hb(r),r instanceof Au&&(o.toNode=r)),i=i.pg(e),Array.isArray(i)&&i.forEach((function(e){e=t.Hb(e),null!==e&&(e.labeledLink=o)})),t.xq&&(o.Rg=\"Tool\"),t.diagram.add(o),o.jb=null,o.data=e,t.diagram.skipsModelSourceBindings=n}}}}function qf(t,e){e.forEach((function(e){t.mq(e)}))}function Gf(){Of.apply(this,arguments),this.ah=null}function Xf(t,e,i){if(null!==e&&null!==i){var n=t.diagram.toolManager.findTool(\"Linking\"),o=e,r=i;if(t.diagram.isTreePathToChildren){for(e=r.linksConnected;e.next();)if(e.value.toNode===r)return}else for(o=i,r=e,e=o.linksConnected;e.next();)if(e.value.fromNode===o)return;if((null===n||!pn(n,o,r,null,!0))&&(n=t.getLinkCategoryForData(i.data),e=t.findLinkTemplateForCategory(n),null!==e&&(ql(e),e=e.copy(),null!==e))){var s=t.diagram.skipsModelSourceBindings;t.diagram.skipsModelSourceBindings=!0,e.yf=n,e.jb=i.data,e.fromNode=o,e.toNode=r,t.diagram.add(e),e.jb=null,e.data=i.data,t.diagram.skipsModelSourceBindings=s}}}function Uf(t){this.Et=',\\n \"insertedNodeKeys\": ',this.gw=',\\n \"modifiedNodeData\": ',this.Gt=',\\n \"removedNodeKeys\": ',st(this),this.mn=this.Ua=\"\",this.Lf=!1,this.l={},this.Fc=[],this.cb=new gt,this.li=\"key\",this.Ik=this.ol=null,this.bn=this.cn=!1,this.en=!0,this.Mm=null,this.wj=\"category\",this.Ef=new gt,this.fu=new nt,this.eh=!1,this.u=null,this.undoManager=new Li,void 0!==t&&(this.nodeDataArray=t)}function Kf(t){return',\\n \"modelData\": '+ed(t,t.modelData)}function $f(t,e){e=e.modelData,P(e)&&(t.pm(e),t.modelData=e)}function Wf(t,e,i,o){if(e===i)return!0;if(n(e)!==n(i)||\"function\"===typeof e||\"function\"===typeof i)return!1;if(Array.isArray(e)&&Array.isArray(i)){if(o.J(e)===i)return!0;if(o.add(e,i),e.length!==i.length)return!1;for(var r=0;r<e.length;r++)if(!Wf(t,e[r],i[r],o))return!1;return!0}if(P(e)&&P(i)){if(o.J(e)===i)return!0;for(var s in o.add(e,i),e){var a=e[s];if(!Qf(s,a)){var l=i[s];if(void 0===l||!Wf(t,a,l,o))return!1}}for(r in i)if(s=i[r],!Qf(r,s)&&(a=e[r],void 0===a||!Wf(t,a,s,o)))return!1;return!0}return!1}function Jf(t,e,i){t[i]!==e[i]&&k(\"Model.computeJsonDifference: Model.\"+i+' is not the same in both models: \"'+t[i]+'\" and \"'+e[i]+'\"')}function Zf(t,e,i){void 0===i&&(i=!1);var n=e.length;if(0>=n)return\"[]\";var o=new W;o.add(\"[ \"),i&&1<n&&o.add(\"\\n\");for(var r=0;r<n;r++){var s=e[r];void 0!==s&&(0<r&&(o.add(\",\"),i&&o.add(\"\\n\")),o.add(t.zm(s)))}return i&&1<n&&o.add(\"\\n\"),o.add(\" ]\"),o.toString()}function Qf(t,e){return void 0===e||\"__gohashid\"===t||\"_\"===t[0]||\"function\"===typeof e}function td(t){return isNaN(t)?\"NaN\":1/0===t?\"9e9999\":-1/0===t?\"-9e9999\":t}function ed(t,e){var i=e;if(i instanceof mt)e={class:\"go.Point\",x:td(i.x),y:td(i.y)};else if(i instanceof It)e={class:\"go.Size\",width:td(i.width),height:td(i.height)};else if(i instanceof _t)e={class:\"go.Rect\",x:td(i.x),y:td(i.y),width:td(i.width),height:td(i.height)};else if(i instanceof ee)e={class:\"go.Margin\",top:td(i.top),right:td(i.right),bottom:td(i.bottom),left:td(i.left)};else if(i instanceof Ge)e=i.gb()?{class:\"go.Spot\",x:td(i.x),y:td(i.y),offsetX:td(i.offsetX),offsetY:td(i.offsetY)}:{class:\"go.Spot\",enum:i.toString()};else if(i instanceof Ra){if(e={class:\"go.Brush\",type:i.type.name},i.type===Ja?e.color=i.color:i.type!==Za&&i.type!==Qa||(e.start=i.start,e.end=i.end,i.type===Qa&&(0!==i.startRadius&&(e.startRadius=td(i.startRadius)),isNaN(i.endRadius)||(e.endRadius=td(i.endRadius)))),null!==i.colorStops){var n={};for(i=i.colorStops.iterator;i.next();)n[i.key]=i.value;e.colorStops=n}}else i instanceof Je?(e={class:\"go.Geometry\",type:i.type.name},0!==i.startX&&(e.startX=td(i.startX)),0!==i.startY&&(e.startY=td(i.startY)),0!==i.endX&&(e.endX=td(i.endX)),0!==i.endY&&(e.endY=td(i.endY)),i.spot1.A(he)||(e.spot1=i.spot1),i.spot2.A(ve)||(e.spot2=i.spot2),i.type===ui&&(e.path=Qe(i))):i instanceof K&&(e={class:\"go.EnumValue\",classType:fd(t,i.classType),name:i.name});for(var o in n=\"{\",i=!0,e){var r=dd(e,o);if(!Qf(o,r))if(i?i=!1:n+=\", \",n+='\"'+o+'\":',\"points\"===o&&r instanceof nt){var s=\"[\";for(r=r.iterator;r.next();){var a=r.value;1<s.length&&(s+=\",\"),s+=t.zm(a.x),s+=\",\",s+=t.zm(a.y)}s+=\"]\",n+=s}else n+=t.zm(r)}return n+\"}\"}function id(t){return\"number\"===typeof t?t:\"NaN\"===t?NaN:\"9e9999\"===t?1/0:\"-9e9999\"===t?-1/0:parseFloat(t)}function nd(t,e,i,n,o,r,s,a,l){void 0===a&&(a=null),void 0===l&&(l=null);var h=new Mi;h.model=t,h.change=i,h.modelChange=e,h.propertyName=n,h.object=o,h.oldValue=r,h.oldParam=a,h.newValue=s,h.newParam=l,t.Ks(h)}function od(t){return\"number\"===typeof t||\"string\"===typeof t}function rd(t,e,i){var n=t.pa(e);void 0!==n&&t.cb.J(n)===e||(t.ht(e),n=t.pa(e),void 0===n?k(\"Model.makeNodeDataKeyUnique failed on \"+e+\". Data not added to Model.\"):(t.cb.add(n,e),n=null,i&&(n=t.Fc.length,O(t.Fc,n,e)),nd(t,\"nodeDataArray\",Ni,\"nodeDataArray\",t,null,e,null,n),t.rm(e),t.qm(e)))}function sd(t,e,i){var n=t.pa(e);if(void 0!==n&&t.cb.remove(n),n=null,i){t:if(i=t.Fc,Array.isArray(i))n=i.indexOf(e);else{n=i.length;for(var o=0;o<n;o++)if(i[o]===e){n=o;break t}n=-1}if(0>n)return;D(t.Fc,n)}nd(t,\"nodeDataArray\",Pi,\"nodeDataArray\",t,e,null,n,null),t.sq(e)}function ad(t,e,i){if(void 0!==e){var n=t.Ef.J(e);null===n&&(n=new rt,t.Ef.add(e,n)),n.add(i)}}function ld(t,e,i){if(void 0!==e){var n=t.Ef.J(e);n instanceof rt&&(void 0===i||null===i?t.Ef.remove(e):(n.remove(i),0===n.count&&t.Ef.remove(e)))}}function hd(t,e){return void 0===e?null:(t=t.Ef.J(e),t instanceof rt?t:null)}function ud(t,e,i){if(t.copiesArrays&&Array.isArray(e)){var n=[];for(i=0;i<e.length;i++){var o=ud(t,e[i],t.copiesArrayObjects);n.push(o)}return st(n),n}if(i&&P(e)){for(n in i=(i=e.constructor)?new i:{},o=t.copiesKey||\"string\"!==typeof t.nodeKeyProperty?null:t.nodeKeyProperty,e)if(\"__gohashid\"===n)i.__gohashid=void 0;else if(n===o)i[o]=void 0;else{var r=dd(e,n),s=fd(t,r);\"GraphObject\"===s||\"Diagram\"===s||\"Layer\"===s||\"RowColumnDefinition\"===s||\"AnimationManager\"===s||\"Tool\"===s||\"CommandHandler\"===s||\"Layout\"===s||\"InputEvent\"===s||\"DiagramEvent\"===s||r instanceof Uf||r instanceof Li||r instanceof Ti||r instanceof Mi||(r=ud(t,r,!1)),pd(i,n,r)}return st(i),i}return e instanceof mt||e instanceof It||e instanceof _t||e instanceof Ge||e instanceof ee?e.copy():e}function cd(){return new Uf}function fd(t,e){if(\"function\"===typeof e){if(e.className)return e.className;if(e.name)return e.name}else if(\"object\"===n(e)&&null!==e&&e.constructor)return fd(t,e.constructor);return n(e)}function dd(t,e){if(!t||!e)return null;try{if(\"function\"===typeof e)var i=e(t);else\"function\"===typeof t.getAttribute?(i=t.getAttribute(e),null===i&&(i=void 0)):i=t[e]}catch(n){}return i}function pd(t,e,i){if(t&&e)try{\"function\"===typeof e?e(t,i):\"function\"===typeof t.setAttribute?t.setAttribute(e,i):t[e]=i}catch(n){}}Of.className=\"PartManager\",d(_f,Of),_f.prototype.addAllModeledParts=function(){var t=this.diagram.model;this.addModeledParts(t.nodeDataArray),Hf(this,t.linkDataArray)},_f.prototype.addModeledParts=function(t){for(Of.prototype.addModeledParts.call(this,t,!1),t=this.links.iterator;t.next();)oc(t.value);Er(this.diagram,!1)},_f.prototype.removeAllModeledParts=function(){var t=this.diagram.model;qf(this,t.linkDataArray),this.qt(t.nodeDataArray)},_f.prototype.getLinkCategoryForData=function(t){return this.diagram.model.av(t)},_f.prototype.setLinkCategoryForData=function(t,e){return this.diagram.model.tt(t,e)},_f.prototype.setFromNodeForLink=function(t,e){var i=this.diagram.model;i.Gx(t.data,i.pa(null!==e?e.data:null))},_f.prototype.setToNodeForLink=function(t,e){var i=this.diagram.model;i.Kx(t.data,i.pa(null!==e?e.data:null))},_f.prototype.removeDataForLink=function(t){this.diagram.model.nm(t.data)},_f.prototype.findPartForKey=function(t){var e=Of.prototype.findPartForKey.call(this,t);return null===e&&(t=this.diagram.model.wh(t),null!==t)?this.Dg.J(t):e},_f.prototype.doModelChanged=function(t){var e=this;if(Of.prototype.doModelChanged.call(this,t),this.diagram){var i=this.diagram;if(t.model===i.model){var o=t.change;if(i.da){i.da=!1;try{var r=t.modelChange;if(\"\"!==r){if(o===Si){if(\"linkFromKey\"===r){var s=this.uc(t.object);if(null!==s){var a=this.Hb(t.newValue);s.fromNode=a}}else if(\"linkToKey\"===r){var l=this.uc(t.object);if(null!==l){var h=this.Hb(t.newValue);l.toNode=h}}else if(\"linkFromPortId\"===r){var u=this.uc(t.object);if(null!==u){var c=t.newValue;\"string\"===typeof c&&(u.fromPortId=c)}}else if(\"linkToPortId\"===r){var f=this.uc(t.object);if(null!==f){var d=t.newValue;\"string\"===typeof d&&(f.toPortId=d)}}else if(\"nodeGroupKey\"===r){var p=this.vc(t.object);if(null!==p){var g=t.newValue;if(void 0!==g){var m=this.Hb(g);p.containingGroup=m instanceof Ju?m:null}else p.containingGroup=null}}else if(\"linkLabelKeys\"===r){var v=this.uc(t.object);if(null!==v){var y=t.oldValue,b=t.newValue;Array.isArray(y)&&y.forEach((function(t){t=e.Hb(t),null!==t&&(t.labeledLink=null)})),Array.isArray(b)&&b.forEach((function(t){t=e.Hb(t),null!==t&&(t.labeledLink=v)}))}}else if(\"linkCategory\"===r){var w=this.uc(t.object),x=t.newValue;null!==w&&\"string\"===typeof x&&(w.category=x)}else\"linkDataArray\"===r&&(qf(this,t.oldValue),Hf(this,t.newValue));i.isModified=!0}else if(o===Ni){var k=t.newValue;if(\"linkDataArray\"===r&&\"object\"===n(k)&&null!==k)Yf(this,k);else if(\"linkLabelKeys\"===r&&od(k)){var M=this.uc(t.object),C=this.Hb(k);null!==M&&null!==C&&(C.labeledLink=M)}i.isModified=!0}else if(o===Pi){var S=t.oldValue;if(\"linkDataArray\"===r&&\"object\"===n(S)&&null!==S)this.mq(S);else if(\"linkLabelKeys\"===r&&od(S)){var N=this.Hb(S);null!==N&&(N.labeledLink=null)}i.isModified=!0}}else if(o===Si){var P=t.propertyName,T=t.object;T===i.model?\"linkFromKeyProperty\"!==P&&\"linkToKeyProperty\"!==P&&\"linkFromPortIdProperty\"!==P&&\"linkToPortIdProperty\"!==P&&\"linkLabelKeysProperty\"!==P&&\"nodeIsGroupProperty\"!==P&&\"nodeGroupKeyProperty\"!==P&&\"linkCategoryProperty\"!==P||i.undoManager.isUndoingRedoing||this.ud():this.updateDataBindings(T,P),i.isModified=!0}}finally{i.da=!0}}}}},_f.prototype.refreshDataBoundLinks=function(){var t=this,e=this.diagram.model,i=new rt,n=e.linkDataArray;n.forEach((function(t){i.add(t)}));var o=[];this.links.each((function(t){null===t.data||i.contains(t.data)||o.push(t.data)})),o.forEach((function(t){Pd(e,t,!1)})),n.forEach((function(i){null===t.uc(i)&&Nd(e,i,!1)}))},_f.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(null!==e){var i=t.diagram;if(null!==i){var n=i.model;if(t instanceof nc){var o=kd(n,e,!0);if(o=i.Hb(o),t.fromNode=o,o=kd(n,e,!1),o=i.Hb(o),t.toNode=o,e=n.pg(e),0<e.length||0<t.labelNodes.count){if(1===e.length&&1===t.labelNodes.count){o=e[0];var r=t.labelNodes.first();if(n.pa(r.data)===o)return}o=(new rt).addAll(e);var s=new rt;t.labelNodes.each((function(t){null!==t.data&&(t=n.pa(t.data),void 0!==t&&s.add(t))})),e=s.copy(),e.lq(o),o=o.copy(),o.lq(s),(0<e.count||0<o.count)&&(e.each((function(e){e=i.Hb(e),null!==e&&e.labeledLink===t&&(e.labeledLink=null)})),o.each((function(e){e=i.Hb(e),null!==e&&e.labeledLink!==t&&(e.labeledLink=t)})))}}else!(t instanceof ju)&&(e=n.Ki(e),e=i.findPartForKey(e),null===e||e instanceof Ju)&&(t.containingGroup=e)}}},_f.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,i=e.pa(t);if(void 0!==i){var n=hd(e,i),o=this.vc(t);if(null!==n&&null!==o){n=n.iterator;for(var r={};n.next();){var s=n.value;e.Qb(s)?o instanceof Ju&&e.Ki(s)===i&&(s=this.vc(s),null!==s&&(s.containingGroup=o)):(r.link=this.uc(s),null!==r.link&&o instanceof Au&&(kd(e,s,!0)===i&&(r.link.fromNode=o),kd(e,s,!1)===i&&(r.link.toNode=o),s=e.pg(s),Array.isArray(s)&&s.some(function(t){return function(e){return e===i&&(o.labeledLink=t.link,!0)}}(r)))),r={link:r.link}}ld(e,i)}t=e.Ki(t),void 0!==t&&(t=this.Hb(t),t instanceof Ju&&(o.containingGroup=t))}},_f.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof Au){var i=e.pa(t.data);if(void 0!==i){for(var n=t.linksConnected;n.next();)ad(e,i,n.value.data);if(t.isLinkLabel&&(n=t.labeledLink,null!==n&&ad(e,i,n.data)),t instanceof Ju)for(t=t.memberParts;t.next();)n=t.value.data,e.Qb(n)&&ad(e,i,n)}}},_f.prototype.copyPartData=function(t,e){var i=Of.prototype.copyPartData.call(this,t,e);if(t instanceof nc)if(t=t.data,null!==t&&null!==e){var o=e.model;t=o.Op(t),\"object\"===n(t)&&null!==t&&(o.Ai(t),i=e.uc(t))}else null!==i&&(e=this.diagram,null!==t&&null!==e&&null!==e.commandHandler&&e.commandHandler.copiesClipboardData&&(e=e.model.Op(t),\"object\"===n(e)&&null!==e&&(i.data=e)));return i},_f.prototype.insertLink=function(t,e,i,o){var r=this.diagram,s=r.model,a=r.toolManager.findTool(\"Linking\"),l=\"\";if(null!==t&&(null===e&&(e=t),l=e.portId,null===l&&(l=\"\")),e=\"\",null!==i&&(null===o&&(o=i),e=o.portId,null===e&&(e=\"\")),o=a.archetypeLinkData,o instanceof nc){if(ql(o),s=o.copy(),null!==s)return s.fromNode=t,s.fromPortId=l,s.toNode=i,s.toPortId=e,r.add(s),t=a.archetypeLabelNodeData,t instanceof Au&&(ql(t),t=t.copy(),null!==t&&(t.labeledLink=s,r.add(t))),s}else if(null!==o&&(o=s.Op(o),\"object\"===n(o)&&null!==o))return null!==t&&Md(s,o,s.pa(t.data),!0),Sd(s,o,l,!0),null!==i&&Md(s,o,s.pa(i.data),!1),Sd(s,o,e,!1),s.Ai(o),t=a.archetypeLabelNodeData,null===t||t instanceof Au||(t=s.copyNodeData(t),\"object\"===n(t)&&null!==t&&(s.hf(t),t=s.pa(t),void 0!==t&&s.Gu(o,t))),r.uc(o);return null},_f.prototype.findPartForKey=_f.prototype.findPartForKey,_f.prototype.removeAllModeledParts=_f.prototype.removeAllModeledParts,_f.prototype.addModeledParts=_f.prototype.addModeledParts,_f.prototype.addAllModeledParts=_f.prototype.addAllModeledParts,_f.className=\"GraphLinksPartManager\",d(Gf,Of),Gf.prototype.getLinkCategoryForData=function(t){return this.diagram.model.bv(t)},Gf.prototype.setLinkCategoryForData=function(t,e){this.diagram.model.Iv(t,e)},Gf.prototype.setFromNodeForLink=function(t,e,i){var n=this.diagram.model;if(void 0===i&&(i=null),e=null!==e?e.data:null,this.diagram.isTreePathToChildren)n.He(t.data,n.pa(e));else{var o=this.ah;this.ah=t,null!==i&&n.He(i.data,void 0),n.He(e,n.pa(null!==t.toNode?t.toNode.data:null)),this.ah=o}},Gf.prototype.setToNodeForLink=function(t,e,i){var n=this.diagram.model;if(void 0===i&&(i=null),e=null!==e?e.data:null,this.diagram.isTreePathToChildren){var o=this.ah;this.ah=t,null!==i&&n.He(i.data,void 0),n.He(e,n.pa(null!==t.fromNode?t.fromNode.data:null)),this.ah=o}else n.He(t.data,n.pa(e))},Gf.prototype.removeDataForLink=function(t){this.diagram.model.He(t.data,void 0)},Gf.prototype.doModelChanged=function(t){if(Of.prototype.doModelChanged.call(this,t),this.diagram){var e=this.diagram;if(t.model===e.model){var i=t.change;if(e.da){e.da=!1;try{var n=t.modelChange;if(\"\"!==n){if(i===Si){if(\"nodeParentKey\"===n){var o=t.object,r=this.Hb(t.newValue),s=this.Ei(o);if(null!==this.ah)null!==r&&(this.ah.data=o,this.ah.category=this.getLinkCategoryForData(o));else if(null!==s){var a=s.Hi();null!==a?null===r?e.remove(a):e.isTreePathToChildren?a.fromNode=r:a.toNode=r:Xf(this,r,s)}}else if(\"parentLinkCategory\"===n){var l=this.Ei(t.object),h=t.newValue;if(null!==l&&\"string\"===typeof h){var u=l.Hi();null!==u&&(u.category=h)}}e.isModified=!0}}else if(i===Si){var c=t.propertyName,f=t.object;f===e.model?\"nodeParentKeyProperty\"===c&&(e.undoManager.isUndoingRedoing||this.ud()):this.updateDataBindings(f,c),e.isModified=!0}}finally{e.da=!0}}}}},Gf.prototype.updateRelationshipsFromData=function(t){var e=t.data;if(null!==e){var i=t.diagram;if(null!==i){var n=i.model;t instanceof Au&&(e=n.Mi(e),e=i.Hb(e),n=t.og(),e!==n&&(n=t.Hi(),null!==e?null!==n?i.isTreePathToChildren?n.fromNode=e:n.toNode=e:Xf(this,e,t):null!==n&&br(i,n,!1)))}}},Gf.prototype.updateDataBindings=function(t,e){Of.prototype.updateDataBindings.call(this,t,e),\"string\"===typeof e&&null!==this.vc(t)&&(t=this.uc(t),null!==t&&t.Ea(e))},Gf.prototype.resolveReferencesForData=function(t){var e=this.diagram.model,i=e.pa(t);if(void 0!==i){var n=hd(e,i),o=this.vc(t);if(null!==n&&null!==o){for(n=n.iterator;n.next();){var r=n.value;e.Qb(r)&&o instanceof Au&&e.Mi(r)===i&&Xf(this,o,this.Ei(r))}ld(e,i)}t=e.Mi(t),void 0!==t&&o instanceof Au&&(t=this.Hb(t),Xf(this,t,o))}},Gf.prototype.unresolveReferencesForPart=function(t){var e=this.diagram.model;if(t instanceof Au){var i=e.pa(t.data),n=this.uc(t.data);if(null!==n){n.isSelected=!1,n.isHighlighted=!1;var o=n.layer;if(null!==o){var r=o.xc(-1,n,!1);0<=r&&this.diagram.ab(Pi,\"parts\",o,n,null,r,null),r=n.layerChanged,null!==r&&r(n,o,null)}}for(n=this.diagram.isTreePathToChildren,t=t.linksConnected;t.next();)o=t.value,o=(n?o.toNode:o.fromNode).data,e.Qb(o)&&ad(e,i,o)}},Gf.prototype.insertLink=function(t,e,i){e=this.diagram.model;var n=t,o=i;return this.diagram.isTreePathToChildren||(n=i,o=t),null!==n&&null!==o?(e.He(o.data,e.pa(n.data)),o.Hi()):null},Gf.className=\"TreePartManager\",Uf.prototype.cloneProtected=function(t){t.Ua=this.Ua,t.mn=this.mn,t.Lf=this.Lf,t.li=this.li,t.ol=this.ol,t.Ik=this.Ik,t.cn=this.cn,t.bn=this.bn,t.en=this.en,t.Mm=this.Mm,t.wj=this.wj},Uf.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},i=Uf.prototype,i.clear=function(){this.Fc=[],this.cb.clear(),this.Ef.clear(),this.undoManager.clear()},i.toString=function(t){if(void 0===t&&(t=0),1<t)return this.rq();var e=(\"\"!==this.name?this.name:\"\")+\" Model\";if(0<t){e+=\"\\n node data:\",t=this.nodeDataArray;for(var i=t.length,n=0;n<i;n++){var o=t[n];e+=\" \"+this.pa(o)+\":\"+z(o)}}return e},i.sk=function(){var t=\"\";return\"\"!==this.name&&(t+=',\\n \"name\": '+this.quote(this.name)),\"\"!==this.dataFormat&&(t+=',\\n \"dataFormat\": '+this.quote(this.dataFormat)),this.isReadOnly&&(t+=',\\n \"isReadOnly\": '+this.isReadOnly),\"key\"!==this.nodeKeyProperty&&\"string\"===typeof this.nodeKeyProperty&&(t+=',\\n \"nodeKeyProperty\": '+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(t+=',\\n \"copiesArrays\": true'),this.copiesArrayObjects&&(t+=',\\n \"copiesArrayObjects\": true'),this.copiesKey||(t+=',\\n \"copiesKey\": false'),\"category\"!==this.nodeCategoryProperty&&\"string\"===typeof this.nodeCategoryProperty&&(t+=',\\n \"nodeCategoryProperty\": '+this.quote(this.nodeCategoryProperty)),t},i.kq=function(t){t.name&&(this.name=t.name),t.dataFormat&&(this.dataFormat=t.dataFormat),t.isReadOnly&&(this.isReadOnly=!0),t.nodeKeyProperty&&(this.nodeKeyProperty=t.nodeKeyProperty),t.copiesArrays&&(this.copiesArrays=!0),t.copiesArrayObjects&&(this.copiesArrayObjects=!0),!1===t.copiesKey&&(this.copiesKey=!1),t.nodeCategoryProperty&&(this.nodeCategoryProperty=t.nodeCategoryProperty)},i.$v=function(){var t,e=this.modelData,i=!1;for(t in e)if(!Qf(t,e[t])){i=!0;break}return e=\"\",i&&(e=Kf(this)),e+',\\n \"nodeDataArray\": '+Zf(this,this.nodeDataArray,!0)},i.wv=function(t){$f(this,t),t=t.nodeDataArray,T(t)&&(this.pm(t),this.nodeDataArray=t)},i.vq=function(t){Jf(this,t,\"nodeKeyProperty\");for(var e=new rt,i=new rt,n=(new rt).addAll(this.cb.iteratorKeys),o=new gt,r=t.nodeDataArray,s=r.length,a=0;a<s;a++){var l=r[a],h=t.pa(l);if(void 0!==h){n.remove(h);var u=this.Rb(h);null===u?(e.add(h),i.add(l)):Wf(this,u,l,o)||i.add(l)}else this.ht(l),h=this.pa(l),e.add(h),i.add(l)}return r=\"\",Wf(this,this.modelData,t.modelData,o)||(r+=Kf(this)),0<e.count&&(r+=this.Et+Zf(this,e.Na(),!0)),0<i.count&&(r+=this.gw+Zf(this,i.Na(),!0)),0<n.count&&(r+=this.Gt+Zf(this,n.Na(),!0)),r},i.uy=function(t,e){return void 0===e&&(e=fd(this,this)),'{ \"class\": '+this.quote(e)+', \"incremental\": 1'+this.sk()+this.vq(t)+\"}\"},i.zt=function(t,e){var i=this,n=!1,o=new rt,r=new rt,s=new rt;t.changes.each((function(t){t.model===i&&(\"nodeDataArray\"===t.modelChange?t.change===Ni?o.add(t.newValue):t.change===Pi&&s.add(t.oldValue):i.Qb(t.object)?r.add(t.object):i.modelData===t.object&&t.change===Si&&(n=!0))}));var a=new rt;o.each((function(t){a.add(i.pa(t)),e||r.add(t)}));var l=new rt;return s.each((function(t){l.add(i.pa(t)),e&&r.add(t)})),t=\"\",n&&(t+=Kf(this)),0<a.count&&(t+=(e?this.Gt:this.Et)+Zf(this,a.Na(),!0)),0<r.count&&(t+=this.gw+Zf(this,r.Na(),!0)),0<l.count&&(t+=(e?this.Et:this.Gt)+Zf(this,l.Na(),!0)),t},i.vv=function(t){$f(this,t);var e=t.insertedNodeKeys,i=t.modifiedNodeData,n=new gt;if(Array.isArray(i))for(var o=0;o<i.length;o++){var r=i[o],s=this.pa(r);void 0!==s&&null!==s&&n.set(s,r)}if(Array.isArray(e))for(o=e.length,r=0;r<o;r++){s=e[r];var a=this.Rb(s);null===a&&(a=(a=n.get(s))?a:this.copyNodeData({}),this.vm(a,s),this.hf(a))}if(Array.isArray(i))for(e=i.length,n=0;n<e;n++)if(o=i[n],r=this.pa(o),r=this.Rb(r),null!==r)for(var l in o)\"__gohashid\"===l||l===this.nodeKeyProperty||this.ck()&&l===this.nodeIsGroupProperty||this.setDataProperty(r,l,o[l]);if(t=t.removedNodeKeys,Array.isArray(t))for(i=t.length,l=0;l<i;l++)e=this.Rb(t[l]),null!==e&&this.om(e)},i.Ox=function(t,e){t.change!==Ci&&k(\"Model.toIncrementalJson argument is not a Transaction ChangedEvent:\"+t.toString());var i=t.object;return t.isTransactionFinished&&i instanceof Ti?(void 0===e&&(e=fd(this,this)),\"2\"===e?'{ \"incremental\": 2'+this.zt(i,\"FinishedUndo\"===t.propertyName)+\"}\":'{ \"class\": '+this.quote(e)+', \"incremental\": 1'+this.sk()+this.zt(i,\"FinishedUndo\"===t.propertyName)+\"}\"):'{ \"incremental\": 0 }'},i.Xz=function(t,e){return this.Ox(t,e)},i.rq=function(t){return void 0===t&&(t=fd(this,this)),'{ \"class\": '+this.quote(t)+this.sk()+this.$v()+\"}\"},i.toJSON=function(t){return this.rq(t)},i.Uw=function(t){var e=null;if(\"string\"===typeof t)try{e=v.JSON.parse(t)}catch(o){}else\"object\"===n(t)?e=t:k(\"Unable to modify a Model from: \"+t);var i=e.incremental;\"number\"!==typeof i&&k(\"Unable to apply non-incremental changes to Model: \"+t),0!==i&&(this.Aa(\"applyIncrementalJson\"),this.vv(e),this.Za(\"applyIncrementalJson\"))},i.ny=function(t){return this.Uw(t)},Uf.constructGraphLinksModel=function(){return new Uf},i=Uf.prototype,i.pm=function(t){if(T(t))for(var e=t.length,i=0;i<e;i++){var o=t[i];if(P(o)){var r=i;o=this.pm(o),Array.isArray(t)?t[r]=o:k(\"Cannot replace an object in an HTMLCollection or NodeList at \"+r)}}else if(P(t)){for(i in t)if(r=t[i],P(r)&&(r=this.pm(r),t[i]=r,\"points\"===i&&Array.isArray(r))){o=0===r.length%2;for(var s=0;s<r.length;s++)if(\"number\"!==typeof r[s]){o=!1;break}if(o){for(o=new nt,s=0;s<r.length/2;s++)o.add(new mt(r[2*s],r[2*s+1]));o.freeze(),t[i]=o}}if(\"object\"===n(t)){if(i=t,r=t[\"class\"],\"NaN\"===r)i=NaN;else if(\"Date\"===r)i=new Date(t.value);else if(\"go.Point\"===r)i=new mt(id(t.x),id(t.y));else if(\"go.Size\"===r)i=new It(id(t.width),id(t.height));else if(\"go.Rect\"===r)i=new _t(id(t.x),id(t.y),id(t.width),id(t.height));else if(\"go.Margin\"===r)i=new ee(id(t.top),id(t.right),id(t.bottom),id(t.left));else if(\"go.Spot\"===r)i=\"string\"===typeof t[\"enum\"]?Ue(t[\"enum\"]):new Ge(id(t.x),id(t.y),id(t.offsetX),id(t.offsetY));else if(\"go.Brush\"===r){if(i=new Ra,i.type=$(Ra,t.type),\"string\"===typeof t.color&&(i.color=t.color),t.start instanceof Ge&&(i.start=t.start),t.end instanceof Ge&&(i.end=t.end),\"number\"===typeof t.startRadius&&(i.startRadius=id(t.startRadius)),\"number\"===typeof t.endRadius&&(i.endRadius=id(t.endRadius)),t=t.colorStops,P(t))for(e in t)i.addColorStop(parseFloat(e),t[e])}else\"go.Geometry\"===r?(e=null,e=\"string\"===typeof t.path?ti(t.path):new Je,e.type=$(Je,t.type),\"number\"===typeof t.startX&&(e.startX=id(t.startX)),\"number\"===typeof t.startY&&(e.startY=id(t.startY)),\"number\"===typeof t.endX&&(e.endX=id(t.endX)),\"number\"===typeof t.endY&&(e.endY=id(t.endY)),t.spot1 instanceof Ge&&(e.spot1=t.spot1),t.spot2 instanceof Ge&&(e.spot2=t.spot2),i=e):\"go.EnumValue\"===r&&(e=t.classType,0===e.indexOf(\"go.\")&&(e=e.substr(3)),i=$(md[e]?md[e]:null,t.name));t=i}}return t},i.quote=function(t){for(var e=\"\",i=t.length,n=0;n<i;n++){var o=t[n];if('\"'===o||\"\\\\\"===o)e+=\"\\\\\"+o;else if(\"\\b\"===o)e+=\"\\\\b\";else if(\"\\f\"===o)e+=\"\\\\f\";else if(\"\\n\"===o)e+=\"\\\\n\";else if(\"\\r\"===o)e+=\"\\\\r\";else if(\"\\t\"===o)e+=\"\\\\t\";else{var r=t.charCodeAt(n);e=16>r?e+\"\\\\u000\"+t.charCodeAt(n).toString(16):32>r?e+\"\\\\u00\"+t.charCodeAt(n).toString(16):8232===r?e+\"\\\\u2028\":8233===r?e+\"\\\\u2029\":e+o}}return'\"'+e+'\"'},i.zm=function(t){return void 0===t?\"undefined\":null===t?\"null\":!0===t?\"true\":!1===t?\"false\":\"string\"===typeof t?this.quote(t):\"number\"===typeof t?1/0===t?\"9e9999\":-1/0===t?\"-9e9999\":isNaN(t)?'{\"class\":\"NaN\"}':t.toString():t instanceof Date?'{\"class\":\"Date\", \"value\":\"'+t.toJSON()+'\"}':t instanceof Number?this.zm(t.valueOf()):T(t)?Zf(this,t):P(t)?ed(this,t):\"function\"===typeof t?\"null\":t.toString()},i.rh=function(t){this.fu.add(t)},i.pk=function(t){this.fu.remove(t)},i.Ks=function(t){this.skipsUndoManager||this.undoManager.fv(t);for(var e=this.fu,i=e.length,n=0;n<i;n++)e.N(n)(t)},i.ab=function(t,e,i,n,o,r,s){nd(this,\"\",t,e,i,n,o,r,s)},i.g=function(t,e,i,n,o){nd(this,\"\",Si,t,this,e,i,n,o)},i.mt=function(t,e,i,n,o,r){nd(this,\"\",Si,e,t,i,n,o,r)},i.Rj=function(t,e){if(null!==t&&t.model===this)if(t.change===Si)pd(t.object,t.propertyName,t.J(e));else if(t.change===Ni){var i=t.newParam;if(\"nodeDataArray\"===t.modelChange){if(t=t.newValue,P(t)&&\"number\"===typeof i){var n=this.pa(t);e?(this.Fc[i]===t&&D(this.Fc,i),void 0!==n&&this.cb.remove(n)):(this.Fc[i]!==t&&O(this.Fc,i,t),void 0!==n&&this.cb.add(n,t))}}else\"\"===t.modelChange?((n=t.object)&&!T(n)&&t.propertyName&&(n=dd(t.object,t.propertyName)),T(n)&&\"number\"===typeof i&&(t=t.newValue,e?D(n,i):O(n,i,t))):k(\"unknown ChangedEvent.Insert modelChange: \"+t.toString())}else t.change===Pi?(i=t.oldParam,\"nodeDataArray\"===t.modelChange?(t=t.oldValue,P(t)&&\"number\"===typeof i&&(n=this.pa(t),e?(this.Fc[i]!==t&&O(this.Fc,i,t),void 0!==n&&this.cb.add(n,t)):(this.Fc[i]===t&&D(this.Fc,i),void 0!==n&&this.cb.remove(n)))):\"\"===t.modelChange?((n=t.object)&&!T(n)&&t.propertyName&&(n=dd(t.object,t.propertyName)),T(n)&&\"number\"===typeof i&&(t=t.oldValue,e?O(n,i,t):D(n,i))):k(\"unknown ChangedEvent.Remove modelChange: \"+t.toString())):t.change!==Ci&&k(\"unknown ChangedEvent: \"+t.toString())},i.Aa=function(t){return this.undoManager.Aa(t)},i.Za=function(t){return this.undoManager.Za(t)},i.uf=function(){return this.undoManager.uf()},Uf.prototype.commit=function(t,e){void 0===e&&(e=\"\");var i=this.skipsUndoManager;null===e&&(this.skipsUndoManager=!0,e=\"\"),this.undoManager.Aa(e);var n=!1;try{t(this),n=!0}finally{n?this.undoManager.Za(e):this.undoManager.uf(),this.skipsUndoManager=i}},i=Uf.prototype,i.Ea=function(t,e){void 0===e&&(e=\"\"),nd(this,\"SourceChanged\",Ci,e,t,null,null)},i.pa=function(t){if(null!==t){var e=this.li;if(\"\"!==e&&(e=dd(t,e),void 0!==e)){if(od(e))return e;k(\"Key value for node data \"+t+\" is not a number or a string: \"+e)}}},i.vm=function(t,e){if(null!==t){var i=this.li;if(\"\"!==i)if(this.Qb(t)){var n=dd(t,i);n!==e&&null===this.Rb(e)&&(pd(t,i,e),void 0!==n&&this.cb.remove(n),this.cb.add(e,t),nd(this,\"nodeKey\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i),this.nq(n,e))}else pd(t,i,e)}},i.Qb=function(t){var e=this.pa(t);return void 0!==e&&this.cb.J(e)===t},i.Rb=function(t){return null===t&&k(\"Model.findNodeDataForKey:key must not be null\"),void 0!==t&&od(t)?this.cb.J(t):null},i.ht=function(t){if(null!==t){var e=this.li;if(\"\"!==e){var i=this.pa(t);if(void 0===i||this.cb.contains(i)){var n=this.ol;if(null!==n&&(i=n(this,t),void 0!==i&&null!==i&&!this.cb.contains(i)))return void pd(t,e,i);if(\"string\"===typeof i){for(n=2;this.cb.contains(i+n);)n++;pd(t,e,i+n)}else if(void 0===i||\"number\"===typeof i){for(i=-this.cb.count-1;this.cb.contains(i);)i--;pd(t,e,i)}}}}},i.hf=function(t){null!==t&&(at(t),this.Qb(t)||rd(this,t,!0))},i.ky=function(t){if(T(t))for(var e=t.length,i=0;i<e;i++)this.hf(t[i]);else for(t=t.iterator;t.next();)this.hf(t.value)},i.om=function(t){null!==t&&sd(this,t,!0)},i.Oz=function(t){if(T(t))for(var e=t.length,i=0;i<e;i++)this.om(t[i]);else for(t=t.iterator;t.next();)this.om(t.value)},i.Ez=function(t){if(T(t)){for(var e=new rt(this.cb.iteratorKeys),i=new rt,n=t.length,o=0;o<n;o++){var r=t[o],s=this.pa(r);if(void 0!==s){i.add(s);var a=this.Rb(s);null!==a?this.Qj(a,r):(a={},this.vm(a,s),this.Qj(a,r),this.hf(a))}else this.hf(r),i.add(this.pa(r))}for(t=e.iterator;t.next();)e=t.value,i.contains(e)||(e=this.Rb(e))&&this.om(e)}},i.nq=function(t,e){void 0!==e&&(t=hd(this,t),t instanceof rt&&this.Ef.add(e,t))},i.Wv=function(){},i.rm=function(){},i.qm=function(){},i.sq=function(){},i.Lu=function(t){void 0===t?this.Ef.clear():this.Ef.remove(t)},Uf.prototype.copyNodeData=function(t){if(null===t)return null;var e=this.Ik;return t=null!==e?e(t,this):ud(this,t,!0),P(t)&&st(t),t},Uf.prototype.setDataProperty=function(t,e,i){if(this.Qb(t)){if(e===this.nodeKeyProperty)this.vm(t,i);else if(e===this.nodeCategoryProperty)return void this.pq(t,i)}else!gd&&t instanceof Ks&&(gd=!0,S('Model.setDataProperty is modifying a GraphObject, \"'+t.toString()+'\"'),S(\" Is that really your intent?\"));var n=dd(t,e);n!==i&&(pd(t,e,i),this.mt(t,e,n,i))},i=Uf.prototype,i.set=function(t,e,i){this.setDataProperty(t,e,i)},i.Qj=function(t,e){if(e){var i,n=this.Qb(t);for(i in e)\"__gohashid\"===i||n&&i===this.nodeKeyProperty||this.setDataProperty(t,i,e[i])}},i.gy=function(t,e){this.Ys(t,-1,e)},i.Ys=function(t,e,i){0>e&&(e=t.length),O(t,e,i),nd(this,\"\",Ni,\"\",t,null,i,null,e)},i.xv=function(t,e){void 0===e&&(e=-1),t===this.Fc&&k(\"Model.removeArrayItem should not be called on the Model.nodeDataArray\"),-1===e&&(e=t.length-1);var i=t[e];D(t,e),nd(this,\"\",Pi,\"\",t,i,null,e,null)},i.Vs=function(t){if(null===t)return\"\";var e=this.wj;return\"\"===e?\"\":(e=dd(t,e),void 0===e?\"\":\"string\"===typeof e?e:(k(\"getCategoryForNodeData found a non-string category for \"+t+\": \"+e),\"\"))},i.pq=function(t,e){if(null!==t){var i=this.wj;if(\"\"!==i)if(this.Qb(t)){var n=dd(t,i);void 0===n&&(n=\"\"),n!==e&&(pd(t,i,e),nd(this,\"nodeCategory\",Si,i,t,n,e))}else pd(t,i,e)}},i.fm=function(){return!1},i.ck=function(){return!1},i.em=function(){return!1},i.dt=function(){return!1},i.dk=function(){return!1},p.Object.defineProperties(Uf.prototype,{name:{get:function(){return this.Ua},set:function(t){var e=this.Ua;e!==t&&(this.Ua=t,this.g(\"name\",e,t))}},dataFormat:{get:function(){return this.mn},set:function(t){var e=this.mn;e!==t&&(this.mn=t,this.g(\"dataFormat\",e,t))}},isReadOnly:{get:function(){return this.Lf},set:function(t){var e=this.Lf;e!==t&&(this.Lf=t,this.g(\"isReadOnly\",e,t))}},modelData:{get:function(){return this.l},set:function(t){var e=this.l;e!==t&&(this.l=t,this.g(\"modelData\",e,t),this.Ea(t))}},undoManager:{get:function(){return this.u},set:function(t){var e=this.u;e!==t&&(null!==e&&e.Bx(this),this.u=t,null!==t&&t.Sw(this))}},skipsUndoManager:{get:function(){return this.eh},set:function(t){this.eh=t}},nodeKeyProperty:{get:function(){return this.li},set:function(t){var e=this.li;e!==t&&(\"\"===t&&k(\"Model.nodeKeyProperty may not be the empty string\"),0<this.cb.count&&k(\"Cannot set Model.nodeKeyProperty when there is existing node data\"),this.li=t,this.g(\"nodeKeyProperty\",e,t))}},makeUniqueKeyFunction:{get:function(){return this.ol},set:function(t){var e=this.ol;e!==t&&(this.ol=t,this.g(\"makeUniqueKeyFunction\",e,t))}},nodeDataArray:{get:function(){return this.Fc},set:function(t){var e=this.Fc;if(e!==t){this.cb.clear(),this.Wv();for(var i=t.length,n=0;n<i;n++){var o=t[n];if(!P(o))return void k(\"Model.nodeDataArray must only contain Objects, not: \"+o);at(o)}for(this.Fc=t,n=new nt,o=0;o<i;o++){var r=t[o],s=this.pa(r);void 0===s||null!==this.cb.J(s)?n.add(r):this.cb.add(s,r)}for(n=n.iterator;n.next();)o=n.value,this.ht(o),r=this.pa(o),void 0!==r&&this.cb.add(r,o);for(nd(this,\"nodeDataArray\",Si,\"nodeDataArray\",this,e,t),e=0;e<i;e++)n=t[e],this.rm(n),this.qm(n);this.Lu(),Array.isArray(t)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Ik},set:function(t){var e=this.Ik;e!==t&&(this.Ik=t,this.g(\"copyNodeDataFunction\",e,t))}},copiesArrays:{get:function(){return this.cn},set:function(t){var e=this.cn;e!==t&&(this.cn=t,this.g(\"copiesArrays\",e,t))}},copiesArrayObjects:{get:function(){return this.bn},set:function(t){var e=this.bn;e!==t&&(this.bn=t,this.g(\"copiesArrayObjects\",e,t))}},copiesKey:{get:function(){return this.en},set:function(t){var e=this.en;e!==t&&(this.en=t,this.g(\"copiesKey\",e,t))}},afterCopyFunction:{get:function(){return this.Mm},set:function(t){var e=this.Mm;e!==t&&(this.Mm=t,this.g(\"afterCopyFunction\",e,t))}},nodeCategoryProperty:{get:function(){return this.wj},set:function(t){var e=this.wj;e!==t&&(this.wj=t,this.g(\"nodeCategoryProperty\",e,t))}}}),p.Object.defineProperties(Uf,{type:{get:function(){return\"Model\"}}}),Uf.prototype.setCategoryForNodeData=Uf.prototype.pq,Uf.prototype.getCategoryForNodeData=Uf.prototype.Vs,Uf.prototype.removeArrayItem=Uf.prototype.xv,Uf.prototype.insertArrayItem=Uf.prototype.Ys,Uf.prototype.addArrayItem=Uf.prototype.gy,Uf.prototype.assignAllDataProperties=Uf.prototype.Qj,Uf.prototype.set=Uf.prototype.set,Uf.prototype.clearUnresolvedReferences=Uf.prototype.Lu,Uf.prototype.mergeNodeDataArray=Uf.prototype.Ez,Uf.prototype.removeNodeDataCollection=Uf.prototype.Oz,Uf.prototype.removeNodeData=Uf.prototype.om,Uf.prototype.addNodeDataCollection=Uf.prototype.ky,Uf.prototype.addNodeData=Uf.prototype.hf,Uf.prototype.makeNodeDataKeyUnique=Uf.prototype.ht,Uf.prototype.findNodeDataForKey=Uf.prototype.Rb,Uf.prototype.containsNodeData=Uf.prototype.Qb,Uf.prototype.setKeyForNodeData=Uf.prototype.vm,Uf.prototype.getKeyForNodeData=Uf.prototype.pa,Uf.prototype.updateTargetBindings=Uf.prototype.Ea,Uf.prototype.commit=Uf.prototype.commit,Uf.prototype.rollbackTransaction=Uf.prototype.uf,Uf.prototype.commitTransaction=Uf.prototype.Za,Uf.prototype.startTransaction=Uf.prototype.Aa,Uf.prototype.raiseDataChanged=Uf.prototype.mt,Uf.prototype.raiseChanged=Uf.prototype.g,Uf.prototype.raiseChangedEvent=Uf.prototype.ab,Uf.prototype.removeChangedListener=Uf.prototype.pk,Uf.prototype.addChangedListener=Uf.prototype.rh,Uf.prototype.writeJsonValue=Uf.prototype.zm,Uf.prototype.replaceJsonObjects=Uf.prototype.pm,Uf.prototype.applyIncrementalJSON=Uf.prototype.ny,Uf.prototype.applyIncrementalJson=Uf.prototype.Uw,Uf.prototype.toJSON=Uf.prototype.toJSON,Uf.prototype.toJson=Uf.prototype.rq,Uf.prototype.toIncrementalJSON=Uf.prototype.Xz,Uf.prototype.toIncrementalJson=Uf.prototype.Ox,Uf.prototype.computeJsonDifference=Uf.prototype.uy,Uf.prototype.clear=Uf.prototype.clear;var gd=!1,md={};function vd(t,e,i){st(this),this.v=!1,void 0===t&&(t=\"\"),void 0===e&&(e=t),void 0===i&&(i=null),this.l=-1,this.Qd=null,this.Ol=t,this.Nl=this.wp=0,this.ws=null,this.Wn=!1,this.El=e,this.an=i,this.so=bd,this.Vm=null,this.Zt=new rt}function yd(t,e,i){return t=t.sourceName,null===t||\"\"===t?e:\"/\"===t?i.part:\".\"===t?i:\"..\"===t?i.panel:e.$a(t)}Uf.className=\"Model\",Uf.fromJSON=Uf.fromJson=function(t,e){void 0===e&&(e=null);var i=null;if(\"string\"===typeof t)try{i=v.JSON.parse(t)}catch(s){}else\"object\"===n(t)?i=t:k(\"Unable to construct a Model from: \"+t);if(null===e){t=null;var o=i[\"class\"];if(\"string\"===typeof o)try{var r=null;0===o.indexOf(\"go.\")?(o=o.substr(3),r=md[o]?md[o]:null):(r=md[o]?md[o]:null,void 0===r&&(r=v[o])),\"function\"===typeof r&&(t=new r)}catch(s){}null===t||t instanceof Uf?e=t:k(\"Unable to construct a Model of declared class: \"+i[\"class\"])}return null===e&&(e=Uf.constructGraphLinksModel()),e.kq(i),e.wv(i),e},Uf.safePropertyValue=dd,Uf.safePropertySet=pd,md.Brush=Ra,md.ChangedEvent=Mi,md.Geometry=Je,md.GraphObject=Ks,md.Margin=ee,md.Panel=Nl,md.Point=mt,md.Rect=_t,md.Size=It,md.Spot=Ge,md.Transaction=Ti,md.UndoManager=Li,vd.prototype.copy=function(){var t=new vd;return t.Ol=this.Ol,t.wp=this.wp,t.Nl=this.Nl,t.ws=this.ws,t.Wn=this.Wn,t.El=this.El,t.an=this.an,t.so=this.so,t.Vm=this.Vm,t},i=vd.prototype,i.fb=function(t){t.classType===vd&&(this.mode=t)},i.toString=function(){return\"Binding(\"+this.targetProperty+\":\"+this.sourceProperty+(-1!==this.Xi?\" \"+this.Xi:\"\")+\" \"+this.mode.name+\")\"},i.freeze=function(){return this.v=!0,this},i.ha=function(){return this.v=!1,this},i.tx=function(t){return void 0===t&&(t=null),this.mode=wd,this.backConverter=t,this},i.hq=function(t){return void 0===t&&(t=\"\"),this.sourceName=t,this.isToModel=!1,this},i.Gz=function(){return this.sourceName=null,this.isToModel=!0,this},i.Xv=function(t,e,i){var n=this.El;if(void 0===i||\"\"===n||n===i){i=this.Ol;var o=this.an;if(null===o&&\"\"===i)S(\"Binding error: target property is the empty string: \"+this.toString());else{var r=e;if(\"\"!==n&&(r=dd(e,n)),void 0!==r)if(null===o)\"\"!==i&&pd(t,i,r);else try{if(\"\"!==i){var s=o(r,t);pd(t,i,s)}else o(r,t)}catch(a){}}}},i.uq=function(t,e,i,n){if(this.so===wd){var o=this.Ol;if(void 0===i||o===i){i=this.El;var r=this.Vm,s=t;if(\"\"!==o&&(s=dd(t,o)),void 0!==s&&!this.Zt.contains(t))try{this.Zt.add(t);var a=null!==n?n.diagram:null,l=null!==a?a.model:null;if(null===r){if(\"\"!==i)null!==l?l.setDataProperty(e,i,s):pd(e,i,s);else if(null!==l&&null!==n&&0<=n.itemIndex&&null!==n.panel&&Array.isArray(n.panel.itemArray)){var h=n.itemIndex,u=n.panel.itemArray;l.xv(u,h),l.Ys(u,h,s)}}else try{if(\"\"!==i){var c=r(s,e,l);null!==l?l.setDataProperty(e,i,c):pd(e,i,c)}else{var f=r(s,e,l);if(void 0!==f&&null!==l&&null!==n&&0<=n.itemIndex&&null!==n.panel&&Array.isArray(n.panel.itemArray)){var d=n.itemIndex,p=n.panel.itemArray;l.xv(p,d),l.Ys(p,d,f)}}}catch(g){}}finally{this.Zt.remove(t)}}}},p.Object.defineProperties(vd.prototype,{Xi:{get:function(){return this.l},set:function(t){this.v&&M(this),this.l=t}},targetProperty:{get:function(){return this.Ol},set:function(t){this.v&&M(this),this.Ol=t}},sourceName:{get:function(){return this.ws},set:function(t){this.v&&M(this),this.ws=t,null!==t&&(this.Wn=!1)}},isToModel:{get:function(){return this.Wn},set:function(t){this.v&&M(this),this.Wn=t}},sourceProperty:{get:function(){return this.El},set:function(t){this.v&&M(this),this.El=t}},converter:{get:function(){return this.an},set:function(t){this.v&&M(this),this.an=t}},backConverter:{get:function(){return this.Vm},set:function(t){this.v&&M(this),this.Vm=t}},mode:{get:function(){return this.so},set:function(t){this.v&&M(this),this.so=t}}}),vd.prototype.updateSource=vd.prototype.uq,vd.prototype.updateTarget=vd.prototype.Xv,vd.prototype.ofModel=vd.prototype.Gz,vd.prototype.ofObject=vd.prototype.hq,vd.prototype.makeTwoWay=vd.prototype.tx;var bd=new K(vd,\"OneWay\",1),wd=new K(vd,\"TwoWay\",2);function xd(t,e){Uf.call(this),this.Dt=',\\n \"insertedLinkKeys\": ',this.fw=',\\n \"modifiedLinkData\": ',this.Ft=',\\n \"removedLinkKeys\": ',this.Oc=[],this.Mf=new rt,this.qb=new gt,this.hi=\"\",this.$i=this.Hk=this.pl=null,this.Te=\"from\",this.Ue=\"to\",this.tj=this.sj=\"\",this.rj=\"category\",this.Hd=\"\",this.tl=\"isGroup\",this.qe=\"group\",this.dn=!1,void 0!==t&&(this.nodeDataArray=t),void 0!==e&&(this.linkDataArray=e)}function kd(t,e,i){if(null!==e&&(t=i?t.Te:t.Ue,\"\"!==t&&(t=dd(e,t),void 0!==t))){if(od(t))return t;k((i?\"FromKey\":\"ToKey\")+\" value for link data \"+e+\" is not a number or a string: \"+t)}}function Md(t,e,i,n){if(null===i&&(i=void 0),null!==e){var o=n?t.Te:t.Ue;if(\"\"!==o)if(i=t.gm(i),t.Ae(e)){var r=dd(e,o);r!==i&&(ld(t,r,e),pd(e,o,i),null===t.Rb(i)&&ad(t,i,e),nd(t,n?\"linkFromKey\":\"linkToKey\",Si,o,e,r,i),\"string\"===typeof o&&t.Ea(e,o))}else pd(e,o,i)}}function Cd(t,e,i){return null===e?\"\":(t=i?t.sj:t.tj,\"\"===t?\"\":(e=dd(e,t),void 0===e?\"\":e))}function Sd(t,e,i,n){if(null!==e){var o=n?t.sj:t.tj;if(\"\"!==o)if(t.Ae(e)){var r=dd(e,o);void 0===r&&(r=\"\"),r!==i&&(pd(e,o,i),nd(t,n?\"linkFromPortId\":\"linkToPortId\",Si,o,e,r,i),\"string\"===typeof o&&t.Ea(e,o))}else pd(e,o,i)}}function Nd(t,e,i){if(\"\"!==t.linkKeyProperty){var n=t.ic(e);if(void 0!==n&&t.qb.J(n)===e)return;if(t.eq(e),n=t.ic(e),void 0===n)return void k(\"GraphLinksModel.makeLinkDataKeyUnique failed on \"+e+\". Data not added to model.\");t.qb.add(n,e)}t.Mf.add(e),n=null,i&&(n=t.Oc.length,t.Oc.splice(n,0,e)),nd(t,\"linkDataArray\",Ni,\"linkDataArray\",t,null,e,null,n),Td(t,e)}function Pd(t,e,i){t.Mf.remove(e);var n=t.ic(e);if(void 0!==n&&t.qb.remove(n),n=null,i){if(n=t.Oc.indexOf(e),0>n)return;t.Oc.splice(n,1)}if(nd(t,\"linkDataArray\",Pi,\"linkDataArray\",t,e,null,n,null),i=kd(t,e,!0),ld(t,i,e),i=kd(t,e,!1),ld(t,i,e),n=t.pg(e),Array.isArray(n))for(var o=n.length,r=0;r<o;r++)i=n[r],ld(t,i,e)}function Td(t,e){var i=kd(t,e,!0);i=t.gm(i),null===t.Rb(i)&&ad(t,i,e),i=kd(t,e,!1),i=t.gm(i),null===t.Rb(i)&&ad(t,i,e);var n=t.pg(e);if(Array.isArray(n))for(var o=n.length,r=0;r<o;r++)i=n[r],null===t.Rb(i)&&ad(t,i,e)}vd.className=\"Binding\",vd.parseEnum=function(t,e){return function(i){return i=$(t,i),null===i?e:i}},vd.toString=z,vd.OneWay=bd,vd.TwoWay=wd,d(xd,Uf),xd.constructGraphLinksModel=Uf.constructGraphLinksModel,xd.prototype.cloneProtected=function(t){Uf.prototype.cloneProtected.call(this,t),t.hi=this.hi,t.pl=this.pl,t.Hk=this.Hk,t.Te=this.Te,t.Ue=this.Ue,t.sj=this.sj,t.tj=this.tj,t.rj=this.rj,t.Hd=this.Hd,t.tl=this.tl,t.qe=this.qe,t.dn=this.dn},i=xd.prototype,i.clear=function(){Uf.prototype.clear.call(this),this.Oc=[],this.qb.clear(),this.Mf.clear()},i.toString=function(t){if(void 0===t&&(t=0),2<=t)return this.rq();var e=(\"\"!==this.name?this.name:\"\")+\" GraphLinksModel\";if(0<t){e+=\"\\n node data:\",t=this.nodeDataArray;var i,n=t.length;for(i=0;i<n;i++){var o=t[i];e+=\" \"+this.pa(o)+\":\"+z(o)}for(e+=\"\\n link data:\",t=this.linkDataArray,n=t.length,i=0;i<n;i++)o=t[i],e+=\" \"+kd(this,o,!0)+\"--\\x3e\"+kd(this,o,!1)}return e},i.sk=function(){var t=Uf.prototype.sk.call(this),e=\"\";return\"category\"!==this.linkCategoryProperty&&\"string\"===typeof this.linkCategoryProperty&&(e+=',\\n \"linkCategoryProperty\": '+this.quote(this.linkCategoryProperty)),\"\"!==this.linkKeyProperty&&\"string\"===typeof this.linkKeyProperty&&(e+=',\\n \"linkKeyProperty\": '+this.quote(this.linkKeyProperty)),\"from\"!==this.linkFromKeyProperty&&\"string\"===typeof this.linkFromKeyProperty&&(e+=',\\n \"linkFromKeyProperty\": '+this.quote(this.linkFromKeyProperty)),\"to\"!==this.linkToKeyProperty&&\"string\"===typeof this.linkToKeyProperty&&(e+=',\\n \"linkToKeyProperty\": '+this.quote(this.linkToKeyProperty)),\"\"!==this.linkFromPortIdProperty&&\"string\"===typeof this.linkFromPortIdProperty&&(e+=',\\n \"linkFromPortIdProperty\": '+this.quote(this.linkFromPortIdProperty)),\"\"!==this.linkToPortIdProperty&&\"string\"===typeof this.linkToPortIdProperty&&(e+=',\\n \"linkToPortIdProperty\": '+this.quote(this.linkToPortIdProperty)),\"\"!==this.linkLabelKeysProperty&&\"string\"===typeof this.linkLabelKeysProperty&&(e+=',\\n \"linkLabelKeysProperty\": '+this.quote(this.linkLabelKeysProperty)),\"isGroup\"!==this.nodeIsGroupProperty&&\"string\"===typeof this.nodeIsGroupProperty&&(e+=',\\n \"nodeIsGroupProperty\": '+this.quote(this.nodeIsGroupProperty)),\"group\"!==this.nodeGroupKeyProperty&&\"string\"===typeof this.nodeGroupKeyProperty&&(e+=',\\n \"nodeGroupKeyProperty\": '+this.quote(this.nodeGroupKeyProperty)),t+e},i.kq=function(t){Uf.prototype.kq.call(this,t),t.linkKeyProperty&&(this.linkKeyProperty=t.linkKeyProperty),t.linkFromKeyProperty&&(this.linkFromKeyProperty=t.linkFromKeyProperty),t.linkToKeyProperty&&(this.linkToKeyProperty=t.linkToKeyProperty),t.linkFromPortIdProperty&&(this.linkFromPortIdProperty=t.linkFromPortIdProperty),t.linkToPortIdProperty&&(this.linkToPortIdProperty=t.linkToPortIdProperty),t.linkCategoryProperty&&(this.linkCategoryProperty=t.linkCategoryProperty),t.linkLabelKeysProperty&&(this.linkLabelKeysProperty=t.linkLabelKeysProperty),t.nodeIsGroupProperty&&(this.nodeIsGroupProperty=t.nodeIsGroupProperty),t.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=t.nodeGroupKeyProperty)},i.$v=function(){var t=Uf.prototype.$v.call(this),e=',\\n \"linkDataArray\": '+Zf(this,this.linkDataArray,!0);return t+e},i.wv=function(t){Uf.prototype.wv.call(this,t),t=t.linkDataArray,Array.isArray(t)&&(this.pm(t),this.linkDataArray=t)},i.vq=function(t){if(!(t instanceof xd))return k(\"Model.computeJsonDifference: newmodel must be a GraphLinksModel\"),\"\";var e=Uf.prototype.vq.call(this,t);Jf(this,t,\"linkKeyProperty\"),Jf(this,t,\"linkFromKeyProperty\"),Jf(this,t,\"linkToKeyProperty\"),Jf(this,t,\"linkLabelKeysProperty\"),Jf(this,t,\"nodeIsGroupProperty\"),Jf(this,t,\"nodeGroupKeyProperty\");for(var i=new rt,n=new rt,o=(new rt).addAll(this.qb.iteratorKeys),r=new gt,s=t.linkDataArray,a=s.length,l=0;l<a;l++){var h=s[l],u=t.ic(h);if(void 0!==u){o.remove(u);var c=this.wh(u);null===c?(i.add(u),n.add(h)):Wf(this,c,h,r)||n.add(h)}else this.eq(h),u=this.ic(h),i.add(u),n.add(h)}return t=e,0<i.count&&(t+=this.Dt+Zf(this,i.Na(),!0)),0<n.count&&(t+=this.fw+Zf(this,n.Na(),!0)),0<o.count&&(t+=this.Ft+Zf(this,o.Na(),!0)),t},i.zt=function(t,e){var i=Uf.prototype.zt.call(this,t,e),n=this,o=new rt,r=new rt,s=new rt;t.changes.each((function(t){t.model===n&&(\"linkDataArray\"===t.modelChange?t.change===Ni?o.add(t.newValue):t.change===Pi&&s.add(t.oldValue):n.Ae(t.object)&&r.add(t.object))}));var a=new rt;o.each((function(t){a.add(n.ic(t)),e||r.add(t)}));var l=new rt;return s.each((function(t){l.add(n.ic(t)),e&&r.add(t)})),t=i,0<a.count&&(t+=(e?this.Ft:this.Dt)+Zf(this,a.Na(),!0)),0<r.count&&(t+=this.fw+Zf(this,r.Na(),!0)),0<l.count&&(t+=(e?this.Dt:this.Ft)+Zf(this,l.Na(),!0)),t},i.vv=function(t){Uf.prototype.vv.call(this,t);var e=t.insertedLinkKeys;if(Array.isArray(e))for(var i=e.length,n=0;n<i;n++){var o=e[n],r=this.wh(o);null===r&&(r=this.Op({}),this.vt(r,o),this.Ai(r))}if(e=t.modifiedLinkData,Array.isArray(e))for(i=e.length,n=0;n<i;n++)if(o=e[n],r=this.ic(o),r=this.wh(r),null!==r)for(var s in o)\"__gohashid\"!==s&&s!==this.linkKeyProperty&&this.setDataProperty(r,s,o[s]);if(t=t.removedLinkKeys,Array.isArray(t))for(s=t.length,e=0;e<s;e++)i=this.wh(t[e]),null!==i&&this.nm(i)},i.Rj=function(t,e){if(t.change===Ni){var i=t.newParam;if(\"linkDataArray\"===t.modelChange){if(t=t.newValue,P(t)&&\"number\"===typeof i){var n=this.ic(t);e?(this.Mf.remove(t),this.Oc[i]===t&&this.Oc.splice(i,1),void 0!==n&&this.qb.remove(n)):(this.Mf.add(t),this.Oc[i]!==t&&this.Oc.splice(i,0,t),void 0!==n&&this.qb.add(n,t))}return}if(\"linkLabelKeys\"===t.modelChange)return n=this.pg(t.object),void(Array.isArray(n)&&\"number\"===typeof i&&(e?(i=n.indexOf(t.newValue),0<=i&&n.splice(i,1)):0>n.indexOf(t.newValue)&&n.splice(i,0,t.newValue)))}else if(t.change===Pi){if(i=t.oldParam,\"linkDataArray\"===t.modelChange)return t=t.oldValue,void(P(t)&&\"number\"===typeof i&&(n=this.ic(t),e?(this.Mf.add(t),this.Oc[i]!==t&&this.Oc.splice(i,0,t),void 0!==n&&this.qb.add(n,t)):(this.Mf.remove(t),this.Oc[i]===t&&this.Oc.splice(i,1),void 0!==n&&this.qb.remove(n))));if(\"linkLabelKeys\"===t.modelChange)return n=this.pg(t.object),void(Array.isArray(n)&&\"number\"===typeof i&&(e?0>n.indexOf(t.newValue)&&n.splice(i,0,t.newValue):(i=n.indexOf(t.newValue),0<=i&&n.splice(i,1))))}Uf.prototype.Rj.call(this,t,e)},i.gm=function(t){if(void 0!==t){var e=this.$i;if(null!==e){var i=this.Rb(t);null===i&&(i=this.copyNodeData(e),pd(i,this.nodeKeyProperty,t),this.hf(i))}return t}},i.bz=function(t){return kd(this,t,!0)},i.Gx=function(t,e){Md(this,t,e,!0)},i.gz=function(t){return kd(this,t,!1)},i.Kx=function(t,e){Md(this,t,e,!1)},i.cz=function(t){return Cd(this,t,!0)},i.Hx=function(t,e){Sd(this,t,e,!0)},i.hz=function(t){return Cd(this,t,!1)},i.Lx=function(t,e){Sd(this,t,e,!1)},i.pg=function(t){if(null===t)return Ld;var e=this.Hd;return\"\"===e?Ld:(t=dd(t,e),void 0===t?Ld:t)},i.Hv=function(t,e){if(null!==t){var i=this.Hd;if(\"\"!==i)if(this.Ae(t)){var n=dd(t,i);if(void 0===n&&(n=Ld),n!==e){if(Array.isArray(n))for(var o=n.length,r=0;r<o;r++)ld(this,n[r],t);for(pd(t,i,e),o=e.length,r=0;r<o;r++){var s=e[r];null===this.Rb(s)&&ad(this,s,t)}nd(this,\"linkLabelKeys\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i)}}else pd(t,i,e)}},i.Gu=function(t,e){if(null!==e&&void 0!==e&&null!==t){var i=this.Hd;if(\"\"!==i){var n=dd(t,i);if(void 0===n)i=[],i.push(e),this.Hv(t,i);else if(Array.isArray(n)){var o=n.indexOf(e);0<=o||(o=n.length,n.push(e),this.Ae(t)&&(null===this.Rb(e)&&ad(this,e,t),nd(this,\"linkLabelKeys\",Ni,i,t,null,e,null,o)))}else k(i+\" property is not an Array; cannot addLabelKeyForLinkData: \"+t)}}},i.Ax=function(t,e){if(null!==e&&void 0!==e&&null!==t){var i=this.Hd;if(\"\"!==i){var n=dd(t,i);if(Array.isArray(n)){var o=n.indexOf(e);0>o||(n.splice(o,1),this.Ae(t)&&(ld(this,e,t),nd(this,\"linkLabelKeys\",Pi,i,t,e,null,o,null)))}else void 0!==n&&k(i+\" property is not an Array; cannot removeLabelKeyforLinkData: \"+t)}}},i.ic=function(t){if(null!==t){var e=this.hi;if(\"\"!==e&&(e=dd(t,e),void 0!==e)){if(od(e))return e;k(\"Key value for link data \"+t+\" is not a number or a string: \"+e)}}},i.vt=function(t,e){if(null!==t){var i=this.hi;if(\"\"!==i)if(this.Ae(t)){var n=dd(t,i);n!==e&&null===this.wh(e)&&(pd(t,i,e),void 0!==n&&this.qb.remove(n),this.qb.add(e,t),nd(this,\"linkKey\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i))}else pd(t,i,e)}},i.wh=function(t){return null===t&&k(\"GraphLinksModel.findLinkDataForKey:key must not be null\"),void 0!==t&&od(t)?this.qb.J(t):null},i.eq=function(t){if(null!==t){var e=this.hi;if(\"\"!==e){var i=this.ic(t);if(void 0===i||this.qb.contains(i)){var n=this.pl;if(null!==n&&(i=n(this,t),void 0!==i&&null!==i&&!this.qb.contains(i)))return void pd(t,e,i);if(\"string\"===typeof i){for(n=2;this.qb.contains(i+n);)n++;pd(t,e,i+n)}else if(void 0===i||\"number\"===typeof i){for(i=-this.qb.count-1;this.qb.contains(i);)i--;pd(t,e,i)}}}}},i.Ae=function(t){return null!==t&&this.Mf.contains(t)},i.Ai=function(t){null!==t&&(at(t),this.Ae(t)||Nd(this,t,!0))},i.jy=function(t){if(Array.isArray(t))for(var e=t.length,i=0;i<e;i++)this.Ai(t[i]);else for(t=t.iterator;t.next();)this.Ai(t.value)},i.nm=function(t){null!==t&&Pd(this,t,!0)},i.Mz=function(t){if(Array.isArray(t))for(var e=t.length,i=0;i<e;i++)this.nm(t[i]);else for(t=t.iterator;t.next();)this.nm(t.value)},i.Dz=function(t){if(T(t)){for(var e=new rt(this.qb.iteratorKeys),i=new rt,n=t.length,o=0;o<n;o++){var r=t[o],s=this.ic(r);if(void 0!==s){i.add(s);var a=this.wh(s);null!==a?this.Qj(a,r):(a={},this.vt(a,s),this.Qj(a,r),this.Ai(a))}else this.Ai(r),i.add(this.ic(r))}for(t=e.iterator;t.next();)e=t.value,i.contains(e)||(e=this.wh(e))&&this.nm(e)}},i.Op=function(t){if(null===t)return null;var e=this.Hk;return t=null!==e?e(t,this):ud(this,t,!0),P(t)&&(st(t),\"\"!==this.Te&&pd(t,this.Te,void 0),\"\"!==this.Ue&&pd(t,this.Ue,void 0),\"\"!==this.Hd&&pd(t,this.Hd,[])),t},i.kv=function(t){if(null===t)return!1;var e=this.tl;return\"\"!==e&&!!dd(t,e)},i.Ki=function(t){if(null!==t){var e=this.qe;if(\"\"!==e&&(e=dd(t,e),void 0!==e)){if(od(e))return e;k(\"GroupKey value for node data \"+t+\" is not a number or a string: \"+e)}}},i.ut=function(t,e){if(null===e&&(e=void 0),null!==t){var i=this.qe;if(\"\"!==i)if(this.Qb(t)){var n=dd(t,i);n!==e&&(ld(this,n,t),pd(t,i,e),null===this.Rb(e)&&ad(this,e,t),nd(this,\"nodeGroupKey\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i))}else pd(t,i,e)}},xd.prototype.copyNodeData=function(t){return null===t?null:(t=Uf.prototype.copyNodeData.call(this,t),this.Vj||\"\"===this.qe||void 0===dd(t,this.qe)||pd(t,this.qe,void 0),t)},xd.prototype.setDataProperty=function(t,e,i){if(this.Qb(t))if(e===this.nodeKeyProperty)this.vm(t,i);else{if(e===this.nodeCategoryProperty)return void this.pq(t,i);if(e===this.nodeGroupKeyProperty)return void this.ut(t,i)}else if(this.Ae(t)){if(e===this.linkFromKeyProperty)return void Md(this,t,i,!0);if(e===this.linkToKeyProperty)return void Md(this,t,i,!1);if(e===this.linkFromPortIdProperty)return void Sd(this,t,i,!0);if(e===this.linkToPortIdProperty)return void Sd(this,t,i,!1);if(e===this.linkKeyProperty)return void this.vt(t,i);if(e===this.linkCategoryProperty)return void this.tt(t,i);if(e===this.linkLabelKeysProperty)return void this.Hv(t,i)}var n=dd(t,e);n!==i&&(pd(t,e,i),this.mt(t,e,n,i))},i=xd.prototype,i.Qj=function(t,e){if(e){var i,n=this.Qb(t),o=this.Ae(t);for(i in e)\"__gohashid\"===i||n&&i===this.nodeKeyProperty||o&&i===this.linkKeyProperty||this.setDataProperty(t,i,e[i])}},i.nq=function(t,e){Uf.prototype.nq.call(this,t,e);for(var i=this.cb.iterator;i.next();)this.Bv(i.value,t,e);for(i=this.Mf.iterator;i.next();){var n=i.value,o=t,r=e;if(kd(this,n,!0)===o){var s=this.Te;pd(n,s,r),nd(this,\"linkFromKey\",Si,s,n,o,r),\"string\"===typeof s&&this.Ea(n,s)}if(kd(this,n,!1)===o&&(s=this.Ue,pd(n,s,r),nd(this,\"linkToKey\",Si,s,n,o,r),\"string\"===typeof s&&this.Ea(n,s)),s=this.pg(n),Array.isArray(s))for(var a=s.length,l=this.Hd,h=0;h<a;h++)s[h]===o&&(s[h]=r,nd(this,\"linkLabelKeys\",Ni,l,n,o,r,h,h))}},i.Bv=function(t,e,i){if(this.Ki(t)===e){var n=this.qe;pd(t,n,i),nd(this,\"nodeGroupKey\",Si,n,t,e,i),\"string\"===typeof n&&this.Ea(t,n)}},i.Wv=function(){Uf.prototype.Wv.call(this);for(var t=this.linkDataArray,e=t.length,i=0;i<e;i++)Td(this,t[i])},i.rm=function(t){Uf.prototype.rm.call(this,t),t=this.pa(t);var e=hd(this,t);if(null!==e){var i=j();for(e=e.iterator;e.next();){var n=e.value;if(this.Qb(n)){if(this.Ki(n)===t){var o=this.qe;nd(this,\"nodeGroupKey\",Si,o,n,t,t),\"string\"===typeof o&&this.Ea(n,o),i.push(n)}}else if(kd(this,n,!0)===t&&(o=this.Te,nd(this,\"linkFromKey\",Si,o,n,t,t),\"string\"===typeof o&&this.Ea(n,o),i.push(n)),kd(this,n,!1)===t&&(o=this.Ue,nd(this,\"linkToKey\",Si,o,n,t,t),\"string\"===typeof o&&this.Ea(n,o),i.push(n)),o=this.pg(n),Array.isArray(o))for(var r=o.length,s=this.Hd,a=0;a<r;a++)o[a]===t&&(nd(this,\"linkLabelKeys\",Ni,s,n,t,t,a,a),i.push(n))}for(e=0;e<i.length;e++)ld(this,t,i[e]);A(i)}},i.qm=function(t){Uf.prototype.qm.call(this,t);var e=this.Ki(t);null===this.Rb(e)&&ad(this,e,t)},i.sq=function(t){Uf.prototype.sq.call(this,t);var e=this.Ki(t);ld(this,e,t)},i.av=function(t){if(null===t)return\"\";var e=this.rj;return\"\"===e?\"\":(e=dd(t,e),void 0===e?\"\":\"string\"===typeof e?e:(k(\"getCategoryForLinkData found a non-string category for \"+t+\": \"+e),\"\"))},xd.prototype.getLinkCategoryForData=function(t){return this.av(t)},xd.prototype.tt=function(t,e){if(null!==t){var i=this.rj;if(\"\"!==i)if(this.Ae(t)){var n=dd(t,i);void 0===n&&(n=\"\"),n!==e&&(pd(t,i,e),nd(this,\"linkCategory\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i))}else pd(t,i,e)}},xd.prototype.setLinkCategoryForData=function(t,e){this.tt(t,e)},xd.prototype.ck=function(){return!0},xd.prototype.em=function(){return!0},xd.prototype.dt=function(){return!0},xd.prototype.dk=function(){return!0},p.Object.defineProperties(xd.prototype,{archetypeNodeData:{get:function(){return this.$i},set:function(t){var e=this.$i;e!==t&&(this.$i=t,this.g(\"archetypeNodeData\",e,t))}},linkFromKeyProperty:{get:function(){return this.Te},set:function(t){var e=this.Te;e!==t&&(this.Te=t,this.g(\"linkFromKeyProperty\",e,t))}},linkToKeyProperty:{get:function(){return this.Ue},set:function(t){var e=this.Ue;e!==t&&(this.Ue=t,this.g(\"linkToKeyProperty\",e,t))}},linkFromPortIdProperty:{get:function(){return this.sj},set:function(t){var e=this.sj;e!==t&&(this.sj=t,this.g(\"linkFromPortIdProperty\",e,t))}},linkToPortIdProperty:{get:function(){return this.tj},set:function(t){var e=this.tj;e!==t&&(this.tj=t,this.g(\"linkToPortIdProperty\",e,t))}},linkLabelKeysProperty:{get:function(){return this.Hd},set:function(t){var e=this.Hd;e!==t&&(this.Hd=t,this.g(\"linkLabelKeysProperty\",e,t))}},linkDataArray:{get:function(){return this.Oc},set:function(t){var e=this.Oc;if(e!==t){this.qb.clear();for(var i=t.length,n=0;n<i;n++){var o=t[n];if(!P(o))return void k(\"GraphLinksModel.linkDataArray must only contain Objects, not: \"+o);at(o)}if(this.Oc=t,\"\"!==this.linkKeyProperty){for(n=new nt,o=0;o<i;o++){var r=t[o],s=this.ic(r);void 0===s||null!==this.qb.J(s)?n.add(r):this.qb.add(s,r)}for(n=n.iterator;n.next();)o=n.value,this.eq(o),r=this.ic(o),void 0!==r&&this.qb.add(r,o)}for(n=new rt,o=0;o<i;o++)n.add(t[o]);for(this.Mf=n,nd(this,\"linkDataArray\",Si,\"linkDataArray\",this,e,t),e=0;e<i;e++)Td(this,t[e])}}},linkKeyProperty:{get:function(){return this.hi},set:function(t){var e=this.hi;if(e!==t){this.hi=t,this.qb.clear();for(var i=this.linkDataArray.length,n=0;n<i;n++){var o=this.linkDataArray[n],r=this.ic(o);void 0===r&&(this.eq(o),r=this.ic(o)),void 0!==r&&this.qb.add(r,o)}this.g(\"linkKeyProperty\",e,t)}}},makeUniqueLinkKeyFunction:{get:function(){return this.pl},set:function(t){var e=this.pl;e!==t&&(this.pl=t,this.g(\"makeUniqueLinkKeyFunction\",e,t))}},copyLinkDataFunction:{get:function(){return this.Hk},set:function(t){var e=this.Hk;e!==t&&(this.Hk=t,this.g(\"copyLinkDataFunction\",e,t))}},nodeIsGroupProperty:{get:function(){return this.tl},set:function(t){var e=this.tl;e!==t&&(this.tl=t,this.g(\"nodeIsGroupProperty\",e,t))}},nodeGroupKeyProperty:{get:function(){return this.qe},set:function(t){var e=this.qe;e!==t&&(this.qe=t,this.g(\"nodeGroupKeyProperty\",e,t))}},Vj:{get:function(){return this.dn},set:function(t){this.dn!==t&&(this.dn=t)}},linkCategoryProperty:{get:function(){return this.rj},set:function(t){var e=this.rj;e!==t&&(this.rj=t,this.g(\"linkCategoryProperty\",e,t))}}}),p.Object.defineProperties(xd,{type:{get:function(){return\"GraphLinksModel\"}}}),xd.prototype.setCategoryForLinkData=xd.prototype.tt,xd.prototype.getCategoryForLinkData=xd.prototype.av,xd.prototype.assignAllDataProperties=xd.prototype.Qj,xd.prototype.setGroupKeyForNodeData=xd.prototype.ut,xd.prototype.getGroupKeyForNodeData=xd.prototype.Ki,xd.prototype.isGroupForNodeData=xd.prototype.kv,xd.prototype.copyLinkData=xd.prototype.Op,xd.prototype.mergeLinkDataArray=xd.prototype.Dz,xd.prototype.removeLinkDataCollection=xd.prototype.Mz,xd.prototype.removeLinkData=xd.prototype.nm,xd.prototype.addLinkDataCollection=xd.prototype.jy,xd.prototype.addLinkData=xd.prototype.Ai,xd.prototype.containsLinkData=xd.prototype.Ae,xd.prototype.makeLinkDataKeyUnique=xd.prototype.eq,xd.prototype.findLinkDataForKey=xd.prototype.wh,xd.prototype.setKeyForLinkData=xd.prototype.vt,xd.prototype.getKeyForLinkData=xd.prototype.ic,xd.prototype.removeLabelKeyForLinkData=xd.prototype.Ax,xd.prototype.addLabelKeyForLinkData=xd.prototype.Gu,xd.prototype.setLabelKeysForLinkData=xd.prototype.Hv,xd.prototype.getLabelKeysForLinkData=xd.prototype.pg,xd.prototype.setToPortIdForLinkData=xd.prototype.Lx,xd.prototype.getToPortIdForLinkData=xd.prototype.hz,xd.prototype.setFromPortIdForLinkData=xd.prototype.Hx,xd.prototype.getFromPortIdForLinkData=xd.prototype.cz,xd.prototype.setToKeyForLinkData=xd.prototype.Kx,xd.prototype.getToKeyForLinkData=xd.prototype.gz,xd.prototype.setFromKeyForLinkData=xd.prototype.Gx,xd.prototype.getFromKeyForLinkData=xd.prototype.bz,xd.prototype.clear=xd.prototype.clear;var Ld=Object.freeze([]);function Od(t){Uf.call(this),this.re=\"parent\",this.fn=!1,this.zj=\"parentLinkCategory\",void 0!==t&&(this.nodeDataArray=t)}function Dd(){hf.call(this),this.ww=this.zn=this.Yb=0,this.er=360,this.vw=Yd,this.fj=0,this.hw=new mt,this.Rq=this.Rd=0,this.Gs=new op,this.Mt=this.yj=0,this.Xx=600,this.Ro=NaN,this.Sm=1,this.sp=0,this.Kl=360,this.Ab=Yd,this.L=Ud,this.Qc=ep,this.Mc=yf,this.Ze=6,this.Bo=ip}function jd(t,e,i,n,o){var r=t.er,s=t.Yb;t=t.Rd,n=n*Math.PI/180,i=i*Math.PI/180;for(var a=e.length,l=0;l<a;l++){var h=n+(o===Ud?l*i/(360<=r?a:a-1):-l*i/a),u=e.N(l),c=s*Math.tan(h)/t;c=Math.sqrt((s*s+t*t*c*c)/(1+c*c)),u.centerX=c*Math.cos(h),u.centerY=c*Math.sin(h),u.actualAngle=180*h/Math.PI}}function Ad(t,e,i,n){var o=t.Yb,r=t.Rd,s=t.fj;i=i*Math.PI/180;for(var a=e.length,l=0;l<a;l++){var h=e.N(l),u=e.N(l===a-1?0:l+1),c=r*Math.sin(i);h.centerX=o*Math.cos(i),h.centerY=c,h.actualAngle=180*i/Math.PI,isNaN(h.diameter)&&ap(h,0),isNaN(u.diameter)&&ap(u,0),h=Hd(t,o,r,n===Ud?i:-i,(h.diameter+u.diameter)/2+s),i+=n===Ud?h:-h}}function Bd(t,e,i,n){var o=t.Yb,r=t.Rd,s=t.Rq;i=i*Math.PI/180;for(var a=e.length,l=0;l<a;l++){var h=e.N(l);h.centerX=o*Math.cos(i),h.centerY=r*Math.sin(i),h.actualAngle=180*i/Math.PI,h=Hd(t,o,r,n===Ud?i:-i,s),i+=n===Ud?h:-h}}function zd(t,e,i,n,o){var r=t.er;if(t.yj=0,t.Gs=new op,360>i){for(r=n+(o===Ud?r:-r);0>r;)r+=360;r%=360,180<r&&(r-=360),r*=Math.PI/180,t.Mt=r,Id(t,e,i,n,o)}else Fd(t,e,i,n,o);t.Gs.commit(e)}function Fd(t,e,i,n,o){var r=t.Yb,s=t.fj,a=t.zn,l=r*Math.cos(n*Math.PI/180),h=t.Rd*Math.sin(n*Math.PI/180),u=e.Na();if(3===u.length)u[0].centerX=r,u[0].centerY=0,u[1].centerX=u[0].centerX-u[0].width/2-u[1].width/2-s,u[1].y=u[0].y,u[2].centerX=(u[0].centerX+u[1].centerX)/2,u[2].y=u[0].y-u[2].height-s;else if(4===u.length)u[0].centerX=r,u[0].centerY=0,u[2].centerX=-u[0].centerX,u[2].centerY=u[0].centerY,u[1].centerX=0,u[1].y=Math.min(u[0].y,u[2].y)-u[1].height-s,u[3].centerX=0,u[3].y=Math.max(u[0].y+u[0].height+s,u[2].y+u[2].height+s);else{r=mt.alloc();for(var c=0;c<u.length;c++){if(u[c].centerX=l,u[c].centerY=h,c>=u.length-1)break;Ed(t,l,h,u,c,o,r)||Rd(t,l,h,u,c,o,r),l=r.x,h=r.y}if(mt.free(r),t.yj++,!(23<t.yj)){l=u[0].centerX,h=u[0].centerY,r=u[u.length-1].centerX,c=u[u.length-1].centerY;var f=Math.abs(l-r)-((u[0].width+u[u.length-1].width)/2+s),d=Math.abs(h-c)-((u[0].height+u[u.length-1].height)/2+s);s=0,1>Math.abs(d)?Math.abs(l-r)<(u[0].width+u[u.length-1].width)/2&&(s=0):s=0<d?d:1>Math.abs(f)?0:f,l=Math.abs(r)>Math.abs(c)?0<r!==h>c:0<c!==l<r,(l=o===Ud?l:!l)&&(s=-Math.abs(s),s=Math.min(s,-u[u.length-1].width),s=Math.min(s,-u[u.length-1].height)),t.Gs.compare(s,u),1<Math.abs(s)&&(t.Yb=8>t.yj?t.Yb-s/(2*Math.PI):5>u.length&&10<s?t.Yb/2:t.Yb-(0<s?1.7:-2.3),t.Rd=t.Yb*a,Fd(t,e,i,n,o))}}}function Id(t,e,i,n,o){for(var r=t.Yb,s=t.Rd,a=t.zn,l=r*Math.cos(n*Math.PI/180),h=s*Math.sin(n*Math.PI/180),u=mt.alloc(),c=e.Na(),f=0;f<c.length;f++){if(c[f].centerX=l,c[f].centerY=h,f>=c.length-1)break;Ed(t,l,h,c,f,o,u)||Rd(t,l,h,c,f,o,u),l=u.x,h=u.y}if(mt.free(u),t.yj++,!(23<t.yj)){if(l=Math.atan2(h,l),l=o===Ud?t.Mt-l:l-t.Mt,l=Math.abs(l)<Math.abs(l-2*Math.PI)?l:l-2*Math.PI,r=l*(r+s)/2,s=t.Gs,Math.abs(r)<Math.abs(s.am))for(s.am=r,s.tk=[],s.Am=[],l=0;l<c.length;l++)s.tk[l]=c[l].bounds.x,s.Am[l]=c[l].bounds.y;1<Math.abs(r)&&(t.Yb=8>t.yj?t.Yb-r/(2*Math.PI):t.Yb-(0<r?1.7:-2.3),t.Rd=t.Yb*a,Id(t,e,i,n,o))}}function Ed(t,e,i,n,o,r,s){var a=t.Yb,l=t.Rd,h=0;t=(n[o].width+n[o+1].width)/2+t.fj;var u=!1;if(0<=i!==(r===Ud)){if(r=e+t,r>a){if(r=e-t,r<-a)return s.x=r,s.y=h,!1;u=!0}}else if(r=e-t,r<-a){if(r=e+t,r>a)return s.x=r,s.y=h,!1;u=!0}return h=Math.sqrt(1-Math.min(1,r*r/(a*a)))*l,0>i!==u&&(h=-h),Math.abs(i-h)>(n[o].height+n[o+1].height)/2?(s.x=r,s.y=h,!1):(s.x=r,s.y=h,!0)}function Rd(t,e,i,n,o,r,s){var a=t.Yb,l=t.Rd,h=0;if(t=(n[o].height+n[o+1].height)/2+t.fj,n=!1,0<=e!==(r===Ud)){if(r=i-t,r<-l){if(r=i+t,r>l)return s.x=h,void(s.y=r);n=!0}}else if(r=i+t,r>l){if(r=i-t,r<-l)return s.x=h,void(s.y=r);n=!0}h=Math.sqrt(1-Math.min(1,r*r/(l*l)))*a,0>e!==n&&(h=-h),s.x=h,s.y=r}function Vd(t,e,i,n,o){var r=t.Xx;if(.001>Math.abs(t.zn-1))return void 0!==n&&void 0!==o?o*e:2*Math.PI*e;t=e>i?Math.sqrt(e*e-i*i)/e:Math.sqrt(i*i-e*e)/i;for(var s=0,a=void 0!==n&&void 0!==o?o/(r+1):Math.PI/(2*(r+1)),l=0,h=0;h<=r;h++){l=void 0!==n&&void 0!==o?n+h*o/r:h*Math.PI/(2*r);var u=Math.sin(l);s+=Math.sqrt(1-t*t*u*u)*a}return void 0!==n&&void 0!==o?(e>i?e:i)*s:4*(e>i?e:i)*s}function _d(t,e,i,n,o){return e/(void 0!==n&&void 0!==o?Vd(t,1,i,n,o):Vd(t,1,i))}function Hd(t,e,i,n,o){if(.001>Math.abs(t.zn-1))return o/e;var r=e>i?Math.sqrt(e*e-i*i)/e:Math.sqrt(i*i-e*e)/i,s=0;t=2*Math.PI/(700*t.network.vertexes.count),e>i&&(n+=Math.PI/2);for(var a=0;;a++){var l=Math.sin(n+a*t);if(s+=(e>i?e:i)*Math.sqrt(1-r*r*l*l)*t,s>=o)return a*t}}xd.className=\"GraphLinksModel\",md.GraphLinksModel=xd,Uf.constructGraphLinksModel=Uf.constructGraphLinksModel=function(){return new xd},Uf.initDiagramModel=cd=function(){return new xd},d(Od,Uf),Od.constructGraphLinksModel=Uf.constructGraphLinksModel,Od.prototype.cloneProtected=function(t){Uf.prototype.cloneProtected.call(this,t),t.re=this.re,t.fn=this.fn,t.zj=this.zj},i=Od.prototype,i.toString=function(t){if(void 0===t&&(t=0),2<=t)return this.rq();var e=(\"\"!==this.name?this.name:\"\")+\" TreeModel\";if(0<t){e+=\"\\n node data:\",t=this.nodeDataArray;for(var i=t.length,n=0;n<i;n++){var o=t[n];e+=\" \"+this.pa(o)+\":\"+z(o)}}return e},i.sk=function(){var t=Uf.prototype.sk.call(this),e=\"\";return\"parent\"!==this.nodeParentKeyProperty&&\"string\"===typeof this.nodeParentKeyProperty&&(e+=',\\n \"nodeParentKeyProperty\": '+this.quote(this.nodeParentKeyProperty)),t+e},i.kq=function(t){Uf.prototype.kq.call(this,t),t.nodeParentKeyProperty&&(this.nodeParentKeyProperty=t.nodeParentKeyProperty)},i.vq=function(t){return Jf(this,t,\"nodeParentKeyProperty\"),Uf.prototype.vq.call(this,t)},i.gm=function(t){return t},i.Mi=function(t){if(null!==t){var e=this.re;if(\"\"!==e&&(e=dd(t,e),void 0!==e)){if(od(e))return e;k(\"ParentKey value for node data \"+t+\" is not a number or a string: \"+e)}}},i.He=function(t,e){if(null===e&&(e=void 0),null!==t){var i=this.re;if(\"\"!==i)if(e=this.gm(e),this.Qb(t)){var n=dd(t,i);n!==e&&(ld(this,n,t),pd(t,i,e),null===this.Rb(e)&&ad(this,e,t),nd(this,\"nodeParentKey\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i))}else pd(t,i,e)}},i.bv=function(t){if(null===t)return\"\";var e=this.zj;return\"\"===e?\"\":(e=dd(t,e),void 0===e?\"\":\"string\"===typeof e?e:(k(\"getParentLinkCategoryForNodeData found a non-string category for \"+t+\": \"+e),\"\"))},Od.prototype.getLinkCategoryForData=function(t){return this.bv(t)},Od.prototype.Iv=function(t,e){if(null!==t){var i=this.zj;if(\"\"!==i)if(this.Qb(t)){var n=dd(t,i);void 0===n&&(n=\"\"),n!==e&&(pd(t,i,e),nd(this,\"parentLinkCategory\",Si,i,t,n,e),\"string\"===typeof i&&this.Ea(t,i))}else pd(t,i,e)}},Od.prototype.setLinkCategoryForData=function(t,e){this.Iv(t,e)},Od.prototype.copyNodeData=function(t){return null===t?null:(t=Uf.prototype.copyNodeData.call(this,t),this.Wj||\"\"===this.re||void 0===dd(t,this.re)||pd(t,this.re,void 0),t)},Od.prototype.setDataProperty=function(t,e,i){if(this.Qb(t))if(e===this.nodeKeyProperty)this.vm(t,i);else{if(e===this.nodeCategoryProperty)return void this.pq(t,i);if(e===this.nodeParentKeyProperty)return void this.He(t,i)}var n=dd(t,e);n!==i&&(pd(t,e,i),this.mt(t,e,n,i))},i=Od.prototype,i.nq=function(t,e){Uf.prototype.nq.call(this,t,e);for(var i=this.cb.iterator;i.next();)this.Bv(i.value,t,e)},i.Bv=function(t,e,i){if(this.Mi(t)===e){var n=this.re;pd(t,n,i),nd(this,\"nodeParentKey\",Si,n,t,e,i),\"string\"===typeof n&&this.Ea(t,n)}},i.rm=function(t){Uf.prototype.rm.call(this,t),t=this.pa(t);var e=hd(this,t);if(null!==e){var i=j();for(e=e.iterator;e.next();){var n=e.value;if(this.Qb(n)&&this.Mi(n)===t){var o=this.re;nd(this,\"nodeParentKey\",Si,o,n,t,t),\"string\"===typeof o&&this.Ea(n,o),i.push(n)}}for(e=0;e<i.length;e++)ld(this,t,i[e]);A(i)}},i.qm=function(t){Uf.prototype.qm.call(this,t);var e=this.Mi(t);e=this.gm(e),null===this.Rb(e)&&ad(this,e,t)},i.sq=function(t){Uf.prototype.sq.call(this,t);var e=this.Mi(t);ld(this,e,t)},i.fm=function(){return!0},i.dt=function(){return!0},p.Object.defineProperties(Od.prototype,{nodeParentKeyProperty:{get:function(){return this.re},set:function(t){var e=this.re;e!==t&&(this.re=t,this.g(\"nodeParentKeyProperty\",e,t))}},Wj:{get:function(){return this.fn},set:function(t){this.fn!==t&&(this.fn=t)}},parentLinkCategoryProperty:{get:function(){return this.zj},set:function(t){var e=this.zj;e!==t&&(this.zj=t,this.g(\"parentLinkCategoryProperty\",e,t))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(t){this.parentLinkCategoryProperty=t}}}),p.Object.defineProperties(Od,{type:{get:function(){return\"TreeModel\"}}}),Od.prototype.setParentLinkCategoryForNodeData=Od.prototype.Iv,Od.prototype.getParentLinkCategoryForNodeData=Od.prototype.bv,Od.prototype.setParentKeyForNodeData=Od.prototype.He,Od.prototype.getParentKeyForNodeData=Od.prototype.Mi,Od.className=\"TreeModel\",md.TreeModel=Od,d(Dd,hf),Dd.prototype.cloneProtected=function(t){hf.prototype.cloneProtected.call(this,t),t.Ro=this.Ro,t.Sm=this.Sm,t.sp=this.sp,t.Kl=this.Kl,t.Ab=this.Ab,t.L=this.L,t.Qc=this.Qc,t.Mc=this.Mc,t.Ze=this.Ze,t.Bo=this.Bo},Dd.prototype.fb=function(t){t.classType===Dd?t===Qd||t===tp||t===Jd||t===Zd||t===ep?this.sorting=t:t===$d||t===Wd||t===Ud||t===Kd?this.direction=t:t===Gd||t===qd||t===Yd||t===Xd?this.arrangement=t:t!==np&&t!==ip||(this.nodeDiameterFormula=t):hf.prototype.fb.call(this,t)},Dd.prototype.createNetwork=function(){return new rp(this)},Dd.prototype.doLayout=function(t){if(null===this.network&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),t=this.network.vertexes,1>=t.count)1===t.count&&(t=t.first(),t.centerX=0,t.centerY=0);else{var e=new nt;e.addAll(t.iterator),t=new nt;var i,n,o=new nt,r=this.sort(e),s=this.Rq,a=this.arrangement,l=this.nodeDiameterFormula,h=this.radius;(!isFinite(h)||0>=h)&&(h=NaN);var u=this.aspectRatio;(!isFinite(u)||0>=u)&&(u=1);var c=this.startAngle;isFinite(c)||(c=0);var f=this.sweepAngle;if((!isFinite(f)||360<f||1>f)&&(f=360),e=this.spacing,isFinite(e)||(e=NaN),a===Xd&&l===np?a=Yd:a===Xd&&l!==np&&(a=this.arrangement),(this.direction===$d||this.direction===Wd)&&this.sorting!==ep){for(l=0;!(l>=r.length);l+=2){if(t.add(r.N(l)),l+1>=r.length)break;o.add(r.N(l+1))}this.direction===$d?(this.arrangement===Xd&&t.reverse(),r=new nt,r.addAll(t),r.addAll(o)):(this.arrangement===Xd&&o.reverse(),r=new nt,r.addAll(o),r.addAll(t))}l=r.length;for(var d=n=i=0;d<r.length;d++){var p=c+f*n*(this.direction===Ud?1:-1)/l,g=r.N(d).diameter;isNaN(g)&&(g=ap(r.N(d),p)),360>f&&(0===d||d===r.length-1)&&(g/=2),i+=g,n++}if(isNaN(h)||a===Xd){if(isNaN(e)&&(e=6),a!==Yd&&a!==Xd){for(n=-1/0,s=0;s<l;s++)d=r.N(s),i=r.N(s===l-1?0:s+1),isNaN(d.diameter)&&ap(d,0),isNaN(i.diameter)&&ap(i,0),n=Math.max(n,(d.diameter+i.diameter)/2);s=n+e,h=a===Gd?(n+e)/(2*Math.PI/l):_d(this,s*(360<=f?l:l-1),u,c*Math.PI/180,f*Math.PI/180)}else h=_d(this,i+(360<=f?l:l-1)*(a!==Xd?e:1.6*e),u,c*Math.PI/180,f*Math.PI/180);n=h*u}else if(n=h*u,d=Vd(this,h,n,c*Math.PI/180,f*Math.PI/180),isNaN(e))a!==Yd&&a!==Xd||(e=(d-i)/(360<=f?l:l-1));else if(a===Yd||a===Xd)d=(d-i)/(360<=f?l:l-1),d<e?(h=_d(this,i+e*(360<=f?l:l-1),u,c*Math.PI/180,f*Math.PI/180),n=h*u):e=d;else{for(s=-1/0,i=0;i<l;i++)p=r.N(i),g=r.N(i===l-1?0:i+1),isNaN(p.diameter)&&ap(p,0),isNaN(g.diameter)&&ap(g,0),s=Math.max(s,(p.diameter+g.diameter)/2);s+=e,i=_d(this,s*(360<=f?l:l-1),u,c*Math.PI/180,f*Math.PI/180),i>h?(h=i,n=h*u):s=d/(360<=f?l:l-1)}if(this.vw=a,this.Yb=h,this.zn=u,this.ww=c,this.er=f,this.fj=e,this.Rd=n,this.Rq=s,e=r,r=this.vw,a=this.Yb,h=this.ww,u=this.er,c=this.fj,f=this.Rd,l=this.Rq,this.direction!==$d&&this.direction!==Wd||r!==Xd)if(this.direction===$d||this.direction===Wd){switch(s=0,r){case qd:s=180*Hd(this,a,f,h,l)/Math.PI;break;case Yd:l=e=0,s=t.first(),null!==s&&(e=ap(s,Math.PI/2)),s=o.first(),null!==s&&(l=ap(s,Math.PI/2)),s=180*Hd(this,a,f,h,c+(e+l)/2)/Math.PI;break;case Gd:s=u/e.length}if(this.direction===$d){switch(r){case qd:Bd(this,t,h,Kd);break;case Yd:Ad(this,t,h,Kd);break;case Gd:jd(this,t,u/2,h,Kd)}switch(r){case qd:Bd(this,o,h+s,Ud);break;case Yd:Ad(this,o,h+s,Ud);break;case Gd:jd(this,o,u/2,h+s,Ud)}}else{switch(r){case qd:Bd(this,o,h,Kd);break;case Yd:Ad(this,o,h,Kd);break;case Gd:jd(this,o,u/2,h,Kd)}switch(r){case qd:Bd(this,t,h+s,Ud);break;case Yd:Ad(this,t,h+s,Ud);break;case Gd:jd(this,t,u/2,h+s,Ud)}}}else switch(r){case qd:Bd(this,e,h,this.direction);break;case Yd:Ad(this,e,h,this.direction);break;case Gd:jd(this,e,u,h,this.direction);break;case Xd:zd(this,e,u,h,this.direction)}else zd(this,e,u,h-u/2,Ud)}this.updateParts(),this.network=null,this.isValidLayout=!0},Dd.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Dd.prototype.commitNodes=function(){var t=null!==this.group&&null!==this.group.placeholder&&this.group.isSubGraphExpanded,e=t?this.group.location.copy():null,i=this.actualCenter;t?i=new mt(0,0):(i.x=this.arrangementOrigin.x+this.Yb,i.y=this.arrangementOrigin.y+this.Rd);for(var n=this.network.vertexes.iterator;n.next();){var o=n.value;o.x+=i.x,o.y+=i.y,o.commit()}t&&(this.group.ac(),t=this.group.position.copy(),i=this.group.location.copy(),e=e.Xd(i.Xd(t)),this.group.move(e),this.hw=e.Xd(t))},Dd.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},Dd.prototype.sort=function(t){switch(this.sorting){case Jd:break;case Zd:t.reverse();break;case Qd:t.sort(this.comparer);break;case tp:t.sort(this.comparer),t.reverse();break;case ep:for(var e=[],i=0;i<t.length;i++)e.push(0);i=new nt;for(var n=0;n<t.length;n++){var o=-1,r=-1;if(0===n)for(var s=0;s<t.length;s++){var a=t.N(s).edgesCount;a>o&&(o=a,r=s)}else for(s=0;s<t.length;s++)a=e[s],a>o&&(o=a,r=s);for(i.add(t.N(r)),e[r]=-1,r=t.N(r),s=r.sourceEdges;s.next();)o=t.indexOf(s.value.fromVertex),0>o||0<=e[o]&&e[o]++;for(r=r.destinationEdges;r.next();)o=t.indexOf(r.value.toVertex),0>o||0<=e[o]&&e[o]++}for(t=[],e=0;e<i.length;e++){for(o=i.N(e),t[e]=[],r=o.destinationEdges;r.next();)n=i.indexOf(r.value.toVertex),n!==e&&0>t[e].indexOf(n)&&t[e].push(n);for(o=o.sourceEdges;o.next();)n=i.indexOf(o.value.fromVertex),n!==e&&0>t[e].indexOf(n)&&t[e].push(n)}for(r=[],e=0;e<t.length;e++)r[e]=0;e=[],s=[],a=[],o=[],n=new nt;for(var l=0,h=0;h<t.length;h++){var u=t[h].length;if(1===u)o.push(h);else if(0===u)n.add(i.N(h));else{if(0===l)e.push(h);else{for(var c=u=1/0,f=-1,d=[],p=0;p<e.length;p++)0>t[e[p]].indexOf(e[p===e.length-1?0:p+1])&&d.push(p===e.length-1?0:p+1);if(0===d.length)for(p=0;p<e.length;p++)d.push(p);for(p=0;p<d.length;p++){for(var g=d[p],m=t[h],v=0,y=0;y<s.length;y++){var b=r[s[y]],w=r[a[y]];if(b<w){var x=b;b=w}else x=w;if(x<g&&g<=b)for(w=0;w<m.length;w++){var M=m[w];0>e.indexOf(M)||x<r[M]&&r[M]<b||x===r[M]||b===r[M]||v++}else for(w=0;w<m.length;w++)M=m[w],0>e.indexOf(M)||x<r[M]&&r[M]<b&&x!==r[M]&&b!==r[M]&&v++}for(m=v,y=v=0;y<t[h].length;y++)x=e.indexOf(t[h][y]),0<=x&&(x=Math.abs(g-(x>=g?x+1:x)),v+=x<e.length+1-x?x:e.length+1-x);for(y=0;y<s.length;y++)x=r[s[y]],b=r[a[y]],x>=g&&x++,b>=g&&b++,x>b&&(w=b,b=x,x=w),b-x<(e.length+2)/2===(x<g&&g<=b)&&v++;(m<u||m===u&&v<c)&&(u=m,c=v,f=g)}for(e.splice(f,0,h),u=0;u<e.length;u++)r[e[u]]=u;for(u=0;u<t[h].length;u++)c=t[h][u],0<=e.indexOf(c)&&(s.push(h),a.push(c))}l++}}for(s=e.length;;){for(r=!0,a=0;a<o.length;a++)if(l=o[a],h=t[l][0],u=e.indexOf(h),0<=u){for(f=c=0;f<t[h].length;f++)d=e.indexOf(t[h][f]),0>d||d===u||(p=d>u?d-u:u-d,c+=d<u!==p>s-p?1:-1);e.splice(0>c?u:u+1,0,l),o.splice(a,1),a--}else r=!1;if(r)break;e.push(o[0]),o.splice(0,1)}for(t=0;t<e.length;t++)n.add(i.N(e[t]));return n;default:k(\"Invalid sorting type.\")}return t},p.Object.defineProperties(Dd.prototype,{radius:{get:function(){return this.Ro},set:function(t){this.Ro!==t&&(0<t||isNaN(t))&&(this.Ro=t,this.B())}},aspectRatio:{get:function(){return this.Sm},set:function(t){this.Sm!==t&&0<t&&(this.Sm=t,this.B())}},startAngle:{get:function(){return this.sp},set:function(t){this.sp!==t&&(this.sp=t,this.B())}},sweepAngle:{get:function(){return this.Kl},set:function(t){this.Kl!==t&&(this.Kl=0<t&&360>=t?t:360,this.B())}},arrangement:{get:function(){return this.Ab},set:function(t){this.Ab===t||t!==Xd&&t!==Yd&&t!==qd&&t!==Gd||(this.Ab=t,this.B())}},direction:{get:function(){return this.L},set:function(t){this.L===t||t!==Ud&&t!==Kd&&t!==$d&&t!==Wd||(this.L=t,this.B())}},sorting:{get:function(){return this.Qc},set:function(t){this.Qc===t||t!==Jd&&t!==Zd&&t!==Qd&&!tp&&t!==ep||(this.Qc=t,this.B())}},comparer:{get:function(){return this.Mc},set:function(t){this.Mc!==t&&(this.Mc=t,this.B())}},spacing:{get:function(){return this.Ze},set:function(t){this.Ze!==t&&(this.Ze=t,this.B())}},nodeDiameterFormula:{get:function(){return this.Bo},set:function(t){this.Bo===t||t!==ip&&t!==np||(this.Bo=t,this.B())}},actualXRadius:{get:function(){return this.Yb}},actualYRadius:{get:function(){return this.Rd}},actualSpacing:{get:function(){return this.fj}},actualCenter:{get:function(){return this.hw}}});var Yd=new K(Dd,\"ConstantSpacing\",0),qd=new K(Dd,\"ConstantDistance\",1),Gd=new K(Dd,\"ConstantAngle\",2),Xd=new K(Dd,\"Packed\",3),Ud=new K(Dd,\"Clockwise\",4),Kd=new K(Dd,\"Counterclockwise\",5),$d=new K(Dd,\"BidirectionalLeft\",6),Wd=new K(Dd,\"BidirectionalRight\",7),Jd=new K(Dd,\"Forwards\",8),Zd=new K(Dd,\"Reverse\",9),Qd=new K(Dd,\"Ascending\",10),tp=new K(Dd,\"Descending\",11),ep=new K(Dd,\"Optimized\",12),ip=new K(Dd,\"Pythagorean\",13),np=new K(Dd,\"Circular\",14);function op(){this.am=-1/0,this.Am=this.tk=null}function rp(t){ff.call(this,t)}function sp(t){vf.call(this,t),this.K=this.ej=NaN}function ap(t,e){var i=t.network;if(null===i)return NaN;if(i=i.layout,null===i)return NaN;if(i.arrangement===Xd)if(i.nodeDiameterFormula===np)t.ej=Math.max(t.width,t.height);else{if(i=Math.abs(Math.sin(e)),e=Math.abs(Math.cos(e)),0===i)return t.width;if(0===e)return t.height;t.ej=Math.min(t.height/i,t.width/e)}else t.ej=i.nodeDiameterFormula===np?Math.max(t.width,t.height):Math.sqrt(t.width*t.width+t.height*t.height);return t.ej}function lp(t){bf.call(this,t)}function hp(){hf.call(this),this.ph=null,this.$n=0,this.wd=new It(100,100).freeze(),this.Rm=!1,this.Ye=!0,this.Xc=!1,this.ql=100,this.Cn=1,this.Jf=1e3,this.vo=10,this.So=Math,this.Pk=.05,this.Ok=50,this.Mk=150,this.Nk=0,this.pn=10,this.on=5}function up(t,e,i){if(cp(t,e)){var n=t.Jf;t.Jf*=1+1/(e+1);var o=fp(t,e),r=Math.max(0,Math.max(Math.min(t.network.vertexes.count,i*(e+1)/11),10));for(t.maxIterations+=r,up(t,e+1,i),vp(t,r),dp(t,o),e=o.vertexes.Na(),e.sort((function(t,e){return null===t||null===e||t===e?0:e.td-t.td})),i=0;i<e.length;i++)pp(t,e[i]);t.Jf=n}}function cp(t,e){if(10<e||3>t.network.vertexes.count)return!1;for(t.ph=t.network.vertexes.Na(),t=t.ph,t.sort((function(t,e){return null===t||null===e||t===e?0:e.td-t.td})),e=t.length-1;0<=e&&1>=t[e].td;)e--;return 1<t.length-e}function fp(t,e){for(var i=t.network,n=new wp(t),o=0;o<t.ph.length;o++){var r=t.ph[o];if(!(1<r.td))break;n.sh(r);var s=new bp;s.Bt=r.td,s.Ct=r.width,s.At=r.height,s.aw=r.focus.x,s.bw=r.focus.y,null===r.Ge&&(r.Ge=new nt),r.Ge.add(s),r.Ev=r.Ge.count-1}for(r=i.edges.iterator;r.next();){var a=r.value;o=a.fromVertex,s=a.toVertex,o.network===n&&s.network===n?n.Oj(a):o.network===n?(a=o.Uj,null===a&&(a=new nt,o.Uj=a),a.add(s),o.td--,o.Ah+=s.Ah):s.network===n&&(a=s.Uj,null===a&&(a=new nt,s.Uj=a),a.add(o),s.td--,s.Ah+=o.Ah)}for(o=n.edges.iterator;o.next();)r=o.value,r.length*=Math.max(1,We.sqrt((r.fromVertex.Ah+r.toVertex.Ah)/(4*e+1)));for(e=n.vertexes.iterator;e.next();){o=e.value;var l=o.Uj;if(null!==l&&0<l.count&&(s=o.Ge.N(o.Ge.count-1).Bt-o.td,!(0>=s))){for(var h=a=0,u=l.count-s;u<l.count;u++){var c=l.N(u),f=null;for(r=c.edges.iterator;r.next();){var d=r.value;if(d.nx(c)===o){f=d;break}}null!==f&&(h+=f.length,a+=c.width*c.height)}r=o.centerX,l=o.centerY,u=o.width,c=o.height,f=o.focus,d=u*c,1>d&&(d=1),a=We.sqrt((a+d+h*h*4/(s*s))/d),s=(a-1)*u/2,a=(a-1)*c/2,o.bounds=new _t(r-f.x-s,l-f.y-a,u+2*s,c+2*a),o.focus=new mt(f.x+s,f.y+a)}}return t.network=n,i}function dp(t,e){for(var i=t.network.vertexes.iterator;i.next();){var n=i.value;if(n.network=e,null!==n.Ge){var o=n.Ge.N(n.Ev);n.td=o.Bt;var r=o.aw,s=o.bw;n.bounds=new _t(n.centerX-r,n.centerY-s,o.Ct,o.At),n.focus=new mt(r,s),n.Ev--}}for(i=t.network.edges.iterator;i.next();)i.value.network=e;t.network=e}function pp(t,e){var i=e.Uj;if(null!==i&&0!==i.count){var n=e.centerX,o=e.centerY,r=e.width,s=e.height;null!==e.Ge&&0<e.Ge.count&&(s=e.Ge.N(0),r=s.Ct,s=s.At),r=We.sqrt(r*r+s*s)/2;for(var a=!1,l=s=0,h=0,u=e.vertexes.iterator;u.next();){var c=u.value;1>=c.td?l++:(a=!0,h++,s+=Math.atan2(e.centerY-c.centerY,e.centerX-c.centerX))}if(0!==l)for(0<h&&(s/=h),h=e=0,e=a?2*Math.PI/(l+1):2*Math.PI/l,0===l%2&&(h=e/2),1<i.count&&i.sort((function(t,e){return null===t||null===e||t===e?0:e.width*e.height-t.width*t.height})),a=0===l%2?0:1,i=i.iterator;i.next();)if(l=i.value,!(1<l.td||t.isFixed(l))){for(u=null,c=l.edges.iterator;c.next();){u=c.value;break}c=l.width;var f=l.height;c=We.sqrt(c*c+f*f)/2,u=r+u.length+c,c=s+(e*(a/2>>1)+h)*(0===a%2?1:-1),l.centerX=n+u*Math.cos(c),l.centerY=o+u*Math.sin(c),a++}}}function gp(t,e,i,n,o,r,s){var a=9e19,l=-1,h=0;t:for(;h<e;h++){var u=t[h],c=u.x-i,f=u.y-n;if(c=c*c+f*f,c<a){for(f=h-1;0<=f;f--)if(t[f].y>u.y&&t[f].x-u.x<o+s.width)continue t;for(f=h+1;f<e;f++)if(t[f].x>u.x&&t[f].y-u.y<r+s.height)continue t;l=h,a=c}}return l}function mp(t,e){var i=t.bounds,n=i.x;t=i.y;var o=i.width;i=i.height;var r=e.bounds,s=r.x;e=r.y;var a=r.width;return r=r.height,n+o<s?t>e+r?(i=n+o-s,t=t-e-r,We.sqrt(i*i+t*t)):t+i<e?(n=n+o-s,t=t+i-e,We.sqrt(n*n+t*t)):s-(n+o):n>s+a?t>e+r?(i=n-s-a,t=t-e-r,We.sqrt(i*i+t*t)):t+i<e?(n=n-s-a,t=t+i-e,We.sqrt(n*n+t*t)):n-(s+a):t>e+r?t-(e+r):t+i<e?e-(t+i):.1}function vp(t,e){for(t.ph=null,e=t.$n+e;t.$n<e&&(t.$n++,yp(t)););t.ph=null}function yp(t){null===t.ph&&(t.ph=t.network.vertexes.Na());var e=t.ph;if(0>=e.length)return!1;var i=e[0];i.forceX=0,i.forceY=0;for(var n=i.centerX,o=n,r=i=i.centerY,s=1;s<e.length;s++){var a=e[s];a.forceX=0,a.forceY=0;var l=a.centerX;a=a.centerY,n=Math.min(n,l),o=Math.max(o,l),i=Math.min(i,a),r=Math.max(r,a)}(o=o-n>r-i)?e.sort((function(t,e){return null===t||null===e||t===e?0:t.centerX-e.centerX})):e.sort((function(t,e){return null===t||null===e||t===e?0:t.centerY-e.centerY})),i=t.Jf;var h=n=a=0;for(r=0;r<e.length;r++){s=e[r],n=s.bounds,a=s.focus,l=n.x+a.x;var u=n.y+a.y;n=s.charge*t.electricalFieldX(l,u),h=s.charge*t.electricalFieldY(l,u),n+=s.mass*t.gravitationalFieldX(l,u),h+=s.mass*t.gravitationalFieldY(l,u),s.forceX+=n,s.forceY+=h;for(var c=r+1;c<e.length;c++){var f=e[c];if(f!==s){n=f.bounds,a=f.focus,h=n.x+a.x;var d=n.y+a.y;if(l-h>i||h-l>i){if(o)break}else if(u-d>i||d-u>i){if(!o)break}else{var p=mp(s,f);1>p?(n=t.randomNumberGenerator,null===n&&(t.randomNumberGenerator=n=new Mp),p=n.random(),a=n.random(),l>h?(n=Math.abs(f.bounds.right-s.bounds.x),n=(1+n)*p):l<h?(n=Math.abs(f.bounds.x-s.bounds.right),n=-(1+n)*p):(n=Math.max(f.width,s.width),n=(1+n)*p-n/2),u>d?(h=Math.abs(f.bounds.bottom-s.bounds.y),h=(1+h)*a):l<h?(h=Math.abs(f.bounds.y-s.bounds.bottom),h=-(1+h)*a):(h=Math.max(f.height,s.height),h=(1+h)*a-h/2)):(a=-s.charge*f.charge/(p*p),n=(h-l)/p*a,h=(d-u)/p*a),s.forceX+=n,s.forceY+=h,f.forceX-=n,f.forceY-=h}}}}for(o=t.network.edges.iterator;o.next();)a=o.value,i=a.fromVertex,r=a.toVertex,s=i.bounds,l=i.focus,n=s.x+l.x,s=s.y+l.y,u=r.bounds,c=r.focus,l=u.x+c.x,u=u.y+c.y,c=mp(i,r),1>c?(c=t.randomNumberGenerator,null===c&&(t.randomNumberGenerator=c=new Mp),a=c.random(),c=c.random(),n=(n>l?1:-1)*(1+(r.width>i.width?r.width:i.width))*a,h=(s>u?1:-1)*(1+(r.height>i.height?r.height:i.height))*c):(a=a.stiffness*(c-a.length),n=(l-n)/c*a,h=(u-s)/c*a),i.forceX+=n,i.forceY+=h,r.forceX-=n,r.forceY-=h;for(n=0,o=t.moveLimit,i=0;i<e.length;i++)r=e[i],t.isFixed(r)?t.moveFixedVertex(r):(s=r.forceX,l=r.forceY,s<-o?s=-o:s>o&&(s=o),l<-o?l=-o:l>o&&(l=o),r.centerX+=s,r.centerY+=l,n=Math.max(n,s*s+l*l));return n>t.epsilonDistance*t.epsilonDistance}function bp(){this.bw=this.aw=this.At=this.Ct=this.Bt=0}function wp(t){ff.call(this,t)}function xp(t){vf.call(this,t),this.Ma=!1,this.Vb=this.K=NaN,this.Ah=this.td=this.La=this.ba=0,this.Ge=this.Uj=null,this.Ev=0}function kp(t){bf.call(this,t),this.l=this.u=NaN}function Mp(){var t=0;void 0===t&&(t=42),this.seed=t,this.Px=48271,this.Rx=2147483647,this.Q=44488.07041494893,this.Tx=3399,this.Qx=1/2147483647,this.random()}function Cp(){hf.call(this),this.Xb=this.ke=25,this.L=0,this.Kk=ng,this.ll=sg,this.bl=hg,this.pj=4,this.vk=dg,this.$f=7,this.Ye=!0,this.fo=4,this.Ha=this.Lr=this.ya=-1,this.od=this.qo=0,this.Ka=this.ld=this.md=this.Gd=this.fc=null,this.xo=0,this.wo=this.uj=null,this.Ld=0,this.yo=null,this.jw=new mt,this.oe=[],this.oe.length=100}function Sp(t){var e=t.fromVertex.node;return t=t.toVertex.node,null===e&&null===t?8:null===e||null===t?4:1}function Np(t){null===t.uj&&(t.uj=[]);for(var e=0,i=t.network.vertexes.iterator;i.next();){var n=i.value;t.uj[e]=n.layer,e++,t.uj[e]=n.column,e++,t.uj[e]=n.index,e++}return t.uj}function Pp(t,e){var i=0;for(t=t.network.vertexes.iterator;t.next();){var n=t.value;n.layer=e[i],i++,n.column=e[i],i++,n.index=e[i],i++}}function Tp(t,e,i){var n=eg(t,e),o=t.fc[e];(null===t.wo||t.wo.length<o*o)&&(t.wo=[]);for(var r=t.wo,s=0;s<o;s++){var a,l=0,h=n[s],u=h.near;if(null!==u&&u.layer===h.layer)if(h=u.index,h>s)for(var c=s+1;c<h;c++){var f=n[c];f.near===u&&f.Pj===u.Pj||l++}else for(c=s-1;c>h;c--)f=n[c],f.near===u&&f.Pj===u.Pj||l++;if(0<=i)for(h=n[s].sourceEdgesArrayAccess,u=0;u<h.length;u++){var d=h[u];if(d.valid&&d.fromVertex.layer!==e)for(f=d.fromVertex.index,c=d.portToPos,d=d.portFromPos,a=u+1;a<h.length;a++){var p=h[a];if(p.valid&&p.fromVertex.layer!==e){var g=p.fromVertex.index,m=p.portToPos;p=p.portFromPos,c<m&&(f>g||f===g&&d>p)&&l++,m<c&&(g>f||g===f&&p>d)&&l++}}}if(0>=i)for(h=n[s].destinationEdgesArrayAccess,u=0;u<h.length;u++)if(d=h[u],d.valid&&d.toVertex.layer!==e)for(f=d.toVertex.index,c=d.portToPos,d=d.portFromPos,a=u+1;a<h.length;a++)p=h[a],p.valid&&p.toVertex.layer!==e&&(g=p.toVertex.index,m=p.portToPos,p=p.portFromPos,d<p&&(f>g||f===g&&c>m)&&l++,p<d&&(g>f||g===f&&m>c)&&l++);for(r[s*o+s]=l,h=s+1;h<o;h++){var v=0,y=0;if(0<=i){l=n[s].sourceEdgesArrayAccess;var b=n[h].sourceEdgesArrayAccess;for(u=0;u<l.length;u++)if(d=l[u],d.valid&&d.fromVertex.layer!==e)for(f=d.fromVertex.index,d=d.portFromPos,a=0;a<b.length;a++)p=b[a],p.valid&&p.fromVertex.layer!==e&&(g=p.fromVertex.index,p=p.portFromPos,(f<g||f===g&&d<p)&&y++,(g<f||g===f&&p<d)&&v++)}if(0>=i)for(l=n[s].destinationEdgesArrayAccess,b=n[h].destinationEdgesArrayAccess,u=0;u<l.length;u++)if(d=l[u],d.valid&&d.toVertex.layer!==e)for(f=d.toVertex.index,c=d.portToPos,a=0;a<b.length;a++)p=b[a],p.valid&&p.toVertex.layer!==e&&(g=p.toVertex.index,m=p.portToPos,(f<g||f===g&&c<m)&&y++,(g<f||g===f&&m<c)&&v++);r[s*o+h]=v,r[h*o+s]=y}}return ig(t,e,n),r}function Lp(t){for(var e=0,i=0;i<=t.ya;i++){for(var n=t,o=i,r=eg(n,o),s=n.fc[o],a=0,l=0;l<s;l++){var h=r[l].destinationEdgesArrayAccess;if(null!==h)for(var u=0;u<h.length;u++){var c=h[u];if(c.valid&&c.toVertex.layer!==o){var f=c.fromVertex.column+c.portFromColOffset,d=c.toVertex.column+c.portToColOffset;a+=(Math.abs(f-d)+1)*Sp(c)}}}ig(n,o,r),e+=a}return e}function Op(t,e,i){for(var n=eg(t,e),o=t.fc[e],r=[],s=0;s<o;s++){var a=n[s],l=null;0>=i&&(l=a.sourceEdgesArrayAccess);var h=null;0<=i&&(h=a.destinationEdgesArrayAccess);var u=0,c=0,f=a.near;if(null!==f&&f.layer===a.layer&&(u+=f.column-1,c++),null!==l)for(f=0;f<l.length;f++){a=l[f];var d=a.fromVertex;a.valid&&!a.rev&&d.layer!==e&&(u+=d.column,c++)}if(null!==h)for(l=0;l<h.length;l++)a=h[l],f=a.toVertex,a.valid&&!a.rev&&f.layer!==e&&(u+=f.column,c++);r[s]=0===c?-1:u/c}return ig(t,e,n),r}function Dp(t,e,i){for(var n=eg(t,e),o=t.fc[e],r=[],s=0;s<o;s++){var a=n[s],l=null;0>=i&&(l=a.sourceEdgesArrayAccess);var h=null;0<=i&&(h=a.destinationEdgesArrayAccess);var u=0,c=[],f=a.near;if(null!==f&&f.layer===a.layer&&(c[u]=f.column-1,u++),a=void 0,null!==l)for(f=0;f<l.length;f++){a=l[f];var d=a.fromVertex;a.valid&&!a.rev&&d.layer!==e&&(c[u]=d.column+a.portFromColOffset,u++)}if(null!==h)for(l=0;l<h.length;l++)a=h[l],f=a.toVertex,a.valid&&!a.rev&&f.layer!==e&&(c[u]=f.column+a.portToColOffset,u++);0===u?r[s]=-1:(c.sort((function(t,e){return t-e})),h=u>>1,r[s]=0!==(1&u)?c[h]:c[h-1]+c[h]>>1)}return ig(t,e,n),r}function jp(t,e,i,n,o,r){if(e.component===n){if(e.component=i,o)for(var s=e.destinationEdges;s.next();){var a=s.value,l=a.toVertex,h=e.layer-l.layer;a=t.linkMinLength(a),h===a&&jp(t,l,i,n,o,r)}if(r)for(s=e.sourceEdges;s.next();)a=s.value,l=a.fromVertex,h=l.layer-e.layer,a=t.linkMinLength(a),h===a&&jp(t,l,i,n,o,r)}}function Ap(t,e,i,n,o,r){if(e.component===n){if(e.component=i,o)for(var s=e.destinationEdges;s.next();)Ap(t,s.value.toVertex,i,n,o,r);if(r)for(e=e.sourceEdges;e.next();)Ap(t,e.value.fromVertex,i,n,o,r)}}function Bp(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid)return e}return null}function zp(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var i=!0,n=e.destinationEdges;n.next();)if(n.value.toVertex.valid){i=!1;break}if(i)return e}}return null}function Fp(t){for(t=t.vertexes.iterator;t.next();){var e=t.value;if(e.valid){for(var i=!0,n=e.sourceEdges;n.next();)if(n.value.fromVertex.valid){i=!1;break}if(i)return e}}return null}function Ip(t,e){e.Xl=t.xo,t.xo++;for(var i=e.destinationEdges;i.next();){var n=i.value,o=n.toVertex;-1===o.Xl&&(n.forest=!0,Ip(t,o))}e.finish=t.xo,t.xo++}function Ep(t){for(var e=t.network.vertexes.iterator;e.next();){var i=Rp(t,e.value);t.ya=Math.max(i,t.ya)}}function Rp(t,e){var i=0;if(-1===e.layer){for(var n=e.destinationEdges;n.next();){var o=n.value,r=o.toVertex;o=t.linkMinLength(o),i=Math.max(i,Rp(t,r)+o)}e.layer=i}else i=e.layer;return i}function Vp(t,e){var i=0;if(-1===e.layer){for(var n=e.sourceEdges;n.next();){var o=n.value,r=o.fromVertex;o=t.linkMinLength(o),i=Math.max(i,Vp(t,r)+o)}e.layer=i}else i=e.layer;return i}function _p(t,e){if(!e.valid){e.valid=!0;for(var i=e.destinationEdges;i.next();)_p(t,i.value.toVertex);for(i=t.network.vertexes.iterator;i.next();)i.value.component=-1;for(var n=e.sourceEdgesArrayAccess,o=n.length,r=0;r<o;r++){var s=n[r],a=s.fromVertex,l=s.toVertex;s=t.linkMinLength(s),a.layer-l.layer>s&&jp(t,a,0,-1,!0,!1)}for(jp(t,e,1,-1,!0,!0);0!==e.component;){for(r=0,n=1/0,a=0,l=null,s=t.network.vertexes.iterator;s.next();){var h=s.value;if(1===h.component){var u=0,c=!1,f=h.sourceEdgesArrayAccess;o=f.length;for(var d=0;d<o;d++){var p=f[d],g=p.fromVertex;u+=1,1!==g.component&&(r+=1,g=g.layer-h.layer,p=t.linkMinLength(p),n=Math.min(n,g-p))}for(f=h.destinationEdgesArrayAccess,o=f.length,d=0;d<o;d++)p=f[d].toVertex,--u,1!==p.component?--r:c=!0;(null===l||u<a)&&!c&&(l=h,a=u)}}if(0<r){for(i.reset();i.next();)o=i.value,1===o.component&&(o.layer+=n);e.component=0}else l.component=0}for(i=t.network.vertexes.iterator;i.next();)i.value.component=-1;for(jp(t,e,1,-1,!0,!1);0!==e.component;){for(n=0,o=1/0,r=0,a=null,l=t.network.vertexes.iterator;l.next();)if(s=l.value,1===s.component){for(h=0,u=!1,f=s.sourceEdgesArrayAccess,c=f.length,d=0;d<c;d++)p=f[d].fromVertex,h+=1,1!==p.component?n+=1:u=!0;for(f=s.destinationEdgesArrayAccess,c=f.length,d=0;d<c;d++)p=f[d],g=p.toVertex,--h,1!==g.component&&(--n,g=s.layer-g.layer,p=t.linkMinLength(p),o=Math.min(o,g-p));(null===a||h>r)&&!u&&(a=s,r=h)}if(0>n){for(i.reset();i.next();)n=i.value,1===n.component&&(n.layer-=o);e.component=0}else a.component=0}}}function Hp(t,e,i){return 90===t.L?i&&!e.rev||!i&&e.rev?270:90:180===t.L?i&&!e.rev||!i&&e.rev?0:180:270===t.L?i&&!e.rev||!i&&e.rev?90:270:i&&!e.rev||!i&&e.rev?180:0}function Yp(t,e){var i=e.layer;for(e.index=t.fc[i],t.fc[i]++,e=e.destinationEdgesArrayAccess,i=!0;i;){i=!1;for(var n=0;n<e.length-1;n++){var o=e[n],r=e[n+1];o.portFromColOffset>r.portFromColOffset&&(i=!0,e[n]=r,e[n+1]=o)}}for(i=0;i<e.length;i++)n=e[i],n.valid&&(n=n.toVertex,-1===n.index&&Yp(t,n))}function qp(t,e){var i=e.layer;e.index=t.fc[i],t.fc[i]++,e=e.sourceEdgesArrayAccess;for(var n=!0;n;)for(n=!1,i=0;i<e.length-1;i++){var o=e[i],r=e[i+1];o.portToColOffset>r.portToColOffset&&(n=!0,e[i]=r,e[i+1]=o)}for(i=0;i<e.length;i++)n=e[i],n.valid&&(n=n.fromVertex,-1===n.index&&qp(t,n))}function Gp(t,e,i){var n=eg(t,e),o=t.fc[e],r=Dp(t,e,i),s=Op(t,e,i);for(i=0;i<o;i++)-1===s[i]&&(s[i]=n[i].column),-1===r[i]&&(r[i]=n[i].column);for(var a,l=!0;l;)for(l=!1,i=0;i<o-1;i++)(r[i+1]<r[i]||r[i+1]===r[i]&&s[i+1]<s[i])&&(l=!0,a=r[i],r[i]=r[i+1],r[i+1]=a,a=s[i],s[i]=s[i+1],s[i+1]=a,a=n[i],n[i]=n[i+1],n[i+1]=a);for(i=r=0;i<o;i++)a=n[i],a.index=i,r+=t.nodeMinColumnSpace(a,!0),a.column=r,r+=1,r+=t.nodeMinColumnSpace(a,!1);ig(t,e,n)}function Xp(t,e,i){var n,o=eg(t,e),r=t.fc[e];i=Tp(t,e,i);var s=[];for(n=0;n<r;n++)s[n]=-1;var a=[];for(n=0;n<r;n++)a[n]=-1;for(var l=!1,h=!0;h;)for(h=!1,n=0;n<r-1;n++){var u=i[o[n].index*r+o[n+1].index],c=i[o[n+1].index*r+o[n].index],f=0,d=0,p=o[n].column,g=o[n+1].column,m=t.nodeMinColumnSpace(o[n],!0),v=t.nodeMinColumnSpace(o[n],!1),y=t.nodeMinColumnSpace(o[n+1],!0),b=t.nodeMinColumnSpace(o[n+1],!1);m=p-m+y,v=g-v+b;var w=o[n].sourceEdges.iterator;for(w.reset();w.next();)if(y=w.value,b=y.fromVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;y<n&&(f+=2*(n-y),d+=2*(n+1-y)),y===n+1&&(f+=1),y>n+1&&(f+=4*(y-n),d+=4*(y-(n+1)))}for(w=o[n].destinationEdges.iterator,w.reset();w.next();)if(y=w.value,b=y.toVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;y===n+1&&(d+=1)}for(w=o[n+1].sourceEdges.iterator,w.reset();w.next();)if(y=w.value,b=y.fromVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;y<n&&(f+=2*(n+1-y),d+=2*(n-y)),y===n&&(d+=1),y>n+1&&(f+=4*(y-(n+1)),d+=4*(y-n))}for(w=o[n+1].destinationEdges.iterator,w.reset();w.next();)if(y=w.value,b=y.toVertex,y.valid&&b.layer===e){for(y=0;o[y]!==b;)y++;y===n&&(f+=1)}y=b=0,w=s[o[n].index];var x=a[o[n].index],k=s[o[n+1].index],M=a[o[n+1].index];-1!==w&&(b+=Math.abs(w-p),y+=Math.abs(w-v)),-1!==x&&(b+=Math.abs(x-p),y+=Math.abs(x-v)),-1!==k&&(b+=Math.abs(k-g),y+=Math.abs(k-m)),-1!==M&&(b+=Math.abs(M-g),y+=Math.abs(M-m)),(d<f-.5||d===f&&c<u-.5||d===f&&c===u&&y<b-.5)&&(h=l=!0,o[n].column=v,o[n+1].column=m,u=o[n],o[n]=o[n+1],o[n+1]=u)}for(n=0;n<r;n++)o[n].index=n;return ig(t,e,o),l}function Up(t,e,i){for(var n=!1;Kp(t,e,i);)n=!0;return n}function Kp(t,e,i){var n,o=eg(t,e),r=t.fc[e],s=Op(t,e,-1);if(0<i)for(n=0;n<r;n++)s[n]=-1;var a=Op(t,e,1);if(0>i)for(n=0;n<r;n++)a[n]=-1;for(var l=!1,h=!0;h;)for(h=!1,n=0;n<r;n++){var u=o[n].column,c=t.nodeMinColumnSpace(o[n],!0),f=t.nodeMinColumnSpace(o[n],!1),d=0;d=0>n-1||u-o[n-1].column-1>c+t.nodeMinColumnSpace(o[n-1],!1)?u-1:u,c=n+1>=r||o[n+1].column-u-1>f+t.nodeMinColumnSpace(o[n+1],!0)?u+1:u;var p=f=0,g=0;if(0>=i)for(var m=o[n].sourceEdges.iterator;m.next();){var v=m.value,y=v.fromVertex;if(v.valid&&y.layer!==e){var b=Sp(v),w=v.portFromColOffset;v=v.portToColOffset,y=y.column,f+=(Math.abs(u+v-(y+w))+1)*b,p+=(Math.abs(d+v-(y+w))+1)*b,g+=(Math.abs(c+v-(y+w))+1)*b}}if(0<=i)for(m=o[n].destinationEdges.iterator;m.next();)v=m.value,y=v.toVertex,v.valid&&y.layer!==e&&(b=Sp(v),w=v.portFromColOffset,v=v.portToColOffset,y=y.column,f+=(Math.abs(u+w-(y+v))+1)*b,p+=(Math.abs(d+w-(y+v))+1)*b,g+=(Math.abs(c+w-(y+v))+1)*b);v=w=b=0,m=s[o[n].index],y=a[o[n].index],-1!==m&&(b+=Math.abs(m-u),w+=Math.abs(m-d),v+=Math.abs(m-c)),-1!==y&&(b+=Math.abs(y-u),w+=Math.abs(y-d),v+=Math.abs(y-c)),p<f||p===f&&w<b?(h=l=!0,o[n].column=d):(g<f||g===f&&v<b)&&(h=l=!0,o[n].column=c)}return ig(t,e,o),t.normalize(),l}function $p(t,e,i){var n=eg(t,e),o=t.fc[e],r=Dp(t,e,i),s=[];for(i=0;i<o;i++)s[i]=r[i];for(r=!0;r;)for(r=!1,i=0;i<o;i++){var a=n[i].column,l=t.nodeMinColumnSpace(n[i],!0),h=t.nodeMinColumnSpace(n[i],!1),u=0;if(-1===s[i])if(0===i&&i===o-1)u=a;else if(0===i){var c=n[i+1].column;u=c-a===h+t.nodeMinColumnSpace(n[i+1],!0)?a-1:a}else i===o-1?(c=n[i-1].column,u=a-c===l+t.nodeMinColumnSpace(n[i-1],!1)?a+1:a):(c=n[i-1].column,l=c+t.nodeMinColumnSpace(n[i-1],!1)+l+1,c=n[i+1].column,h=c-t.nodeMinColumnSpace(n[i+1],!0)-h-1,u=(l+h)/2|0);else 0===i&&i===o-1?u=s[i]:0===i?(c=n[i+1].column,h=c-t.nodeMinColumnSpace(n[i+1],!0)-h-1,u=Math.min(s[i],h)):i===o-1?(c=n[i-1].column,l=c+t.nodeMinColumnSpace(n[i-1],!1)+l+1,u=Math.max(s[i],l)):(c=n[i-1].column,l=c+t.nodeMinColumnSpace(n[i-1],!1)+l+1,c=n[i+1].column,h=c-t.nodeMinColumnSpace(n[i+1],!0)-h-1,l<s[i]&&s[i]<h?u=s[i]:l>=s[i]?u=l:h<=s[i]&&(u=h));u!==a&&(r=!0,n[i].column=u)}ig(t,e,n),t.normalize()}function Wp(t,e){for(var i=!0,n=t.network.vertexes.iterator;n.next();){var o=n.value,r=t.nodeMinColumnSpace(o,!0),s=t.nodeMinColumnSpace(o,!1);if(o.column-r<=e&&o.column+s>=e){i=!1;break}}if(t=!1,i)for(n.reset();n.next();)i=n.value,i.column>e&&(--i.column,t=!0);return t}function Jp(t,e){var i,n=e+1,o=[],r=[];for(i=0;i<=t.ya;i++)o[i]=!1,r[i]=!1;for(var s=t.network.vertexes.iterator;s.next();){i=s.value;var a=i.column-t.nodeMinColumnSpace(i,!0),l=i.column+t.nodeMinColumnSpace(i,!1);a<=e&&l>=e&&(o[i.layer]=!0),a<=n&&l>=n&&(r[i.layer]=!0)}for(a=!0,n=!1,i=0;i<=t.ya;i++)a=a&&!(o[i]&&r[i]);if(a)for(s.reset();s.next();)t=s.value,t.column>e&&(--t.column,n=!0);return n}function Zp(t,e){for(var i=0;i<=t.Ha;i++)for(;Wp(t,i););for(t.normalize(),i=0;i<t.Ha;i++)for(;Jp(t,i););var n;if(t.normalize(),0<e)for(i=0;i<=t.Ha;i++){var o=Np(t),r=Lp(t);for(n=r+1;r<n;){n=r,Qp(t,i,1);var s=Lp(t);s>r?Pp(t,o):s<r&&(r=s,o=Np(t))}}if(0>e)for(i=t.Ha;0<=i;i--)for(o=Np(t),r=Lp(t),n=r+1;r<n;)n=r,Qp(t,i,-1),s=Lp(t),s>r?Pp(t,o):s<r&&(r=s,o=Np(t));t.normalize()}function Qp(t,e,i){t.Ld=0;for(var n=t.network.vertexes.iterator;n.next();)n.value.component=-1;if(0<i)for(n.reset();n.next();){var o=n.value;o.column-t.nodeMinColumnSpace(o,!0)<=e&&(o.component=t.Ld)}if(0>i)for(n.reset();n.next();)o=n.value,o.column+t.nodeMinColumnSpace(o,!1)>=e&&(o.component=t.Ld);for(t.Ld++,n.reset();n.next();)e=n.value,-1===e.component&&(Ap(t,e,t.Ld,-1,!0,!0),t.Ld++);var r;for(e=[],r=0;r<t.Ld*t.Ld;r++)e[r]=!1;for(o=[],r=0;r<(t.ya+1)*(t.Ha+1);r++)o[r]=-1;for(n.reset();n.next();){r=n.value;for(var s=r.layer,a=Math.max(0,r.column-t.nodeMinColumnSpace(r,!0)),l=Math.min(t.Ha,r.column+t.nodeMinColumnSpace(r,!1));a<=l;a++)o[s*(t.Ha+1)+a]=r.component}for(r=0;r<=t.ya;r++){if(0<i)for(s=0;s<t.Ha;s++)-1!==o[r*(t.Ha+1)+s]&&-1!==o[r*(t.Ha+1)+s+1]&&o[r*(t.Ha+1)+s]!==o[r*(t.Ha+1)+s+1]&&(e[o[r*(t.Ha+1)+s]*t.Ld+o[r*(t.Ha+1)+s+1]]=!0);if(0>i)for(s=t.Ha;0<s;s--)-1!==o[r*(t.Ha+1)+s]&&-1!==o[r*(t.Ha+1)+s-1]&&o[r*(t.Ha+1)+s]!==o[r*(t.Ha+1)+s-1]&&(e[o[r*(t.Ha+1)+s]*t.Ld+o[r*(t.Ha+1)+s-1]]=!0)}for(o=[],r=0;r<t.Ld;r++)o[r]=!0;for(s=[],s.push(0);0!==s.length;)if(l=s[s.length-1],s.pop(),o[l])for(o[l]=!1,r=0;r<t.Ld;r++)e[l*t.Ld+r]&&s.splice(0,0,r);if(0<i)for(n.reset();n.next();)t=n.value,o[t.component]&&--t.column;if(0>i)for(n.reset();n.next();)i=n.value,o[i.component]&&(i.column+=1)}function tg(t,e){return 270===t.L?e?Ee:_e:90===t.L?e?_e:Ee:180===t.L?e?Re:Ve:e?Ve:Re}function eg(t,e){var i=t.fc[e];if(i>=t.oe.length){for(var n=[],o=0;o<t.oe.length;o++)n[o]=t.oe[o];t.oe=n}for(void 0===t.oe[i]||null===t.oe[i]?n=[]:(n=t.oe[i],t.oe[i]=null),t=t.yo[e],e=0;e<t.length;e++)i=t[e],n[i.index]=i;return n}function ig(t,e,i){t.oe[t.fc[e]]=i}Dd.className=\"CircularLayout\",Dd.ConstantSpacing=Yd,Dd.ConstantDistance=qd,Dd.ConstantAngle=Gd,Dd.Packed=Xd,Dd.Clockwise=Ud,Dd.Counterclockwise=Kd,Dd.BidirectionalLeft=$d,Dd.BidirectionalRight=Wd,Dd.Forwards=Jd,Dd.Reverse=Zd,Dd.Ascending=Qd,Dd.Descending=tp,Dd.Optimized=ep,Dd.Pythagorean=ip,Dd.Circular=np,op.prototype.compare=function(t,e){if(0<t&&0>this.am||Math.abs(t)<Math.abs(this.am)&&!(0>t&&0<this.am))for(this.am=t,this.tk=[],this.Am=[],t=0;t<e.length;t++)this.tk[t]=e[t].bounds.x,this.Am[t]=e[t].bounds.y},op.prototype.commit=function(t){if(null!==this.tk&&null!==this.Am)for(var e=0;e<this.tk.length;e++){var i=t.N(e);i.x=this.tk[e],i.y=this.Am[e]}},op.className=\"VertexArrangement\",d(rp,ff),rp.prototype.createVertex=function(){return new sp(this)},rp.prototype.createEdge=function(){return new lp(this)},rp.className=\"CircularNetwork\",d(sp,vf),p.Object.defineProperties(sp.prototype,{diameter:{get:function(){return this.ej},set:function(t){this.ej!==t&&(this.ej=t)}},actualAngle:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t)}}}),sp.className=\"CircularVertex\",d(lp,bf),lp.className=\"CircularEdge\",d(hp,hf),hp.prototype.cloneProtected=function(t){hf.prototype.cloneProtected.call(this,t),t.wd.assign(this.wd),t.Rm=this.Rm,t.Ye=this.Ye,t.Xc=this.Xc,t.ql=this.ql,t.Cn=this.Cn,t.Jf=this.Jf,t.vo=this.vo,t.So=this.So,t.Pk=this.Pk,t.Ok=this.Ok,t.Mk=this.Mk,t.Nk=this.Nk,t.pn=this.pn,t.on=this.on},hp.prototype.createNetwork=function(){return new wp(this)},hp.prototype.doLayout=function(t){if(null===this.network&&(this.network=this.makeNetwork(t)),t=this.maxIterations,0<this.network.vertexes.count){this.network.Pp();for(var e=this.network.vertexes.iterator;e.next();){var i=e.value;i.charge=this.electricalCharge(i),i.mass=this.gravitationalMass(i)}for(e=this.network.edges.iterator;e.next();)i=e.value,i.stiffness=this.springStiffness(i),i.length=this.springLength(i);if(this.Iu(),this.$n=0,this.needsClusterLayout()){for(e=this.network,i=e.Nx().iterator;i.next();){this.network=i.value;for(var n=this.network.vertexes.iterator;n.next();){var o=n.value;o.td=o.vertexes.count,o.Ah=1,o.Uj=null,o.Ge=null}up(this,0,t)}this.network=e,i.reset(),n=this.arrangementSpacing;for(var r=i.count,s=!0,a=o=0,l=j(),h=0;h<r+e.vertexes.count+2;h++)l[h]=null;r=0,i.reset();for(var u=_t.alloc();i.next();)if(h=i.value,this.computeBounds(h,u),s)s=!1,o=u.x+u.width/2,a=u.y+u.height/2,l[0]=new mt(u.x+u.width+n.width,u.y),l[1]=new mt(u.x,u.y+u.height+n.height),r=2;else{var c=gp(l,r,o,a,u.width,u.height,n),f=l[c],d=new mt(f.x+u.width+n.width,f.y),p=new mt(f.x,f.y+u.height+n.height);for(c+1<r&&l.splice(c+1,0,null),l[c]=d,l[c+1]=p,r++,c=f.x-u.x,f=f.y-u.y,h=h.vertexes.iterator;h.next();)d=h.value,d.centerX+=c,d.centerY+=f}for(_t.free(u),h=e.vertexes.iterator;h.next();)s=h.value,d=s.bounds,2>r?(o=d.x+d.width/2,a=d.y+d.height/2,l[0]=new mt(d.x+d.width+n.width,d.y),l[1]=new mt(d.x,d.y+d.height+n.height),r=2):(u=gp(l,r,o,a,d.width,d.height,n),f=l[u],c=new mt(f.x+d.width+n.width,f.y),d=new mt(f.x,f.y+d.height+n.height),u+1<r&&l.splice(u+1,0,null),l[u]=c,l[u+1]=d,r++,s.centerX=f.x+s.width/2,s.centerY=f.y+s.height/2);for(A(l),i.reset();i.next();){for(n=i.value,o=n.vertexes.iterator;o.next();)e.sh(o.value);for(n=n.edges.iterator;n.next();)e.Oj(n.value)}}vp(this,t),this.updateParts()}this.ql=t,this.network=null,this.isValidLayout=!0},hp.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var t=0,e=0,i=this.network.vertexes.first().bounds,n=this.network.vertexes.iterator;n.next();){if(n.value.bounds.Ic(i)&&(t++,2<t))return!0;if(10<e)break;e++}return!1},hp.prototype.computeBounds=function(t,e){var i=!0;for(t=t.vertexes.iterator;t.next();){var n=t.value;i?(i=!1,e.set(n.bounds)):e.Jc(n.bounds)}return e},hp.prototype.Iu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},hp.prototype.addComments=function(t){var e=t.node;if(null!==e)for(e=e.Xu();e.next();){var i=e.value;if(\"Comment\"===i.category&&i.isVisible()){var n=this.network.Ii(i);null===n&&(n=this.network.Rl(i)),n.charge=this.defaultCommentElectricalCharge,i=null;for(var o=n.destinationEdges;o.next();){var r=o.value;if(r.toVertex===t){i=r;break}}if(null===i)for(o=n.sourceEdges;o.next();)if(r=o.value,r.fromVertex===t){i=r;break}null===i&&(i=this.network.fk(t,n,null)),i.length=this.defaultCommentSpringLength}}},hp.prototype.moveFixedVertex=function(){},hp.prototype.commitLayout=function(){this.Jv(),this.commitNodes(),this.isRouting&&this.commitLinks()},hp.prototype.Jv=function(){if(this.setsPortSpots)for(var t=this.network.edges.iterator;t.next();){var e=t.value.link;null!==e&&(e.fromSpot=Ae,e.toSpot=Ae)}},hp.prototype.commitNodes=function(){var t=0,e=0;if(this.arrangesToOrigin){var i=_t.alloc();this.computeBounds(this.network,i),e=this.arrangementOrigin,t=e.x-i.x,e=e.y-i.y,_t.free(i)}i=_t.alloc();for(var n=this.network.vertexes.iterator;n.next();){var o=n.value;0===t&&0===e||(i.assign(o.bounds),i.x+=t,i.y+=e,o.bounds=i),o.commit()}_t.free(i)},hp.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},hp.prototype.springStiffness=function(t){return t=t.stiffness,isNaN(t)?this.Pk:t},hp.prototype.springLength=function(t){return t=t.length,isNaN(t)?this.Ok:t},hp.prototype.electricalCharge=function(t){return t=t.charge,isNaN(t)?this.Mk:t},hp.prototype.electricalFieldX=function(){return 0},hp.prototype.electricalFieldY=function(){return 0},hp.prototype.gravitationalMass=function(t){return t=t.mass,isNaN(t)?this.Nk:t},hp.prototype.gravitationalFieldX=function(){return 0},hp.prototype.gravitationalFieldY=function(){return 0},hp.prototype.isFixed=function(t){return t.isFixed},p.Object.defineProperties(hp.prototype,{currentIteration:{get:function(){return this.$n}},arrangementSpacing:{get:function(){return this.wd},set:function(t){this.wd.A(t)||(this.wd.assign(t),this.B())}},arrangesToOrigin:{get:function(){return this.Rm},set:function(t){this.Rm!==t&&(this.Rm=t,this.B())}},setsPortSpots:{get:function(){return this.Ye},set:function(t){this.Ye!==t&&(this.Ye=t,this.B())}},comments:{get:function(){return this.Xc},set:function(t){this.Xc!==t&&(this.Xc=t,this.B())}},maxIterations:{get:function(){return this.ql},set:function(t){this.ql!==t&&0<=t&&(this.ql=t,this.B())}},epsilonDistance:{get:function(){return this.Cn},set:function(t){this.Cn!==t&&0<t&&(this.Cn=t,this.B())}},infinityDistance:{get:function(){return this.Jf},set:function(t){this.Jf!==t&&1<t&&(this.Jf=t,this.B())}},moveLimit:{get:function(){return this.vo},set:function(t){this.vo!==t&&1<t&&(this.vo=t,this.B())}},randomNumberGenerator:{get:function(){return this.So},set:function(t){this.So!==t&&(null!==t&&\"function\"!==typeof t.random&&k('ForceDirectedLayout.randomNumberGenerator must have a \"random()\" function on it: '+t),this.So=t)}},defaultSpringStiffness:{get:function(){return this.Pk},set:function(t){this.Pk!==t&&(this.Pk=t,this.B())}},defaultSpringLength:{get:function(){return this.Ok},set:function(t){this.Ok!==t&&(this.Ok=t,this.B())}},defaultElectricalCharge:{get:function(){return this.Mk},set:function(t){this.Mk!==t&&(this.Mk=t,this.B())}},defaultGravitationalMass:{get:function(){return this.Nk},set:function(t){this.Nk!==t&&(this.Nk=t,this.B())}},defaultCommentSpringLength:{get:function(){return this.pn},set:function(t){this.pn!==t&&(this.pn=t,this.B())}},defaultCommentElectricalCharge:{get:function(){return this.on},set:function(t){this.on!==t&&(this.on=t,this.B())}}}),hp.className=\"ForceDirectedLayout\",bp.className=\"ForceDirectedSubnet\",d(wp,ff),wp.prototype.createVertex=function(){return new xp(this)},wp.prototype.createEdge=function(){return new kp(this)},wp.className=\"ForceDirectedNetwork\",d(xp,vf),p.Object.defineProperties(xp.prototype,{isFixed:{get:function(){return this.Ma},set:function(t){this.Ma!==t&&(this.Ma=t)}},charge:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t)}},mass:{get:function(){return this.Vb},set:function(t){this.Vb!==t&&(this.Vb=t)}},forceX:{get:function(){return this.ba},set:function(t){this.ba!==t&&(this.ba=t)}},forceY:{get:function(){return this.La},set:function(t){this.La!==t&&(this.La=t)}}}),xp.className=\"ForceDirectedVertex\",d(kp,bf),p.Object.defineProperties(kp.prototype,{stiffness:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},length:{get:function(){return this.l},set:function(t){this.l!==t&&(this.l=t)}}}),kp.className=\"ForceDirectedEdge\",Mp.prototype.random=function(){var t=this.seed%this.Q*this.Px-this.seed/this.Q*this.Tx;return this.seed=0<t?t:t+this.Rx,this.seed*this.Qx},Mp.className=\"RandomNumberGenerator\",d(Cp,hf),Cp.prototype.cloneProtected=function(t){hf.prototype.cloneProtected.call(this,t),t.ke=this.ke,t.Xb=this.Xb,t.L=this.L,t.Kk=this.Kk,t.ll=this.ll,t.bl=this.bl,t.pj=this.pj,t.vk=this.vk,t.$f=this.$f,t.Ye=this.Ye,t.fo=this.fo},Cp.prototype.fb=function(t){t.classType===Cp?0===t.name.indexOf(\"Aggressive\")?this.aggressiveOption=t:0===t.name.indexOf(\"Cycle\")?this.cycleRemoveOption=t:0===t.name.indexOf(\"Init\")?this.initializeOption=t:0===t.name.indexOf(\"Layer\")?this.layeringOption=t:k(\"Unknown enum value: \"+t):hf.prototype.fb.call(this,t)},Cp.prototype.createNetwork=function(){return new mg(this)},Cp.prototype.doLayout=function(t){for(null===this.network&&(this.network=this.makeNetwork(t)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Lr=-1,this.od=this.qo=0,this.yo=this.wo=this.uj=null,t=0;t<this.oe.length;t++)this.oe[t]=null;if(0<this.network.vertexes.count){for(this.network.Pp(),this.cycleRemoveOption!==rg&&this.removeCycles(),t=this.network.vertexes.iterator;t.next();)t.value.layer=-1;for(this.ya=-1,this.assignLayers(),t.reset();t.next();)this.ya=Math.max(this.ya,t.value.layer);this.cycleRemoveOption===rg&&this.removeCycles(),t=this.network;for(var e=[],i=t.edges.iterator;i.next();){var n=i.value;n.valid=!1,e.push(n)}for(i=0;i<e.length;i++){n=e[i];var o=n.fromVertex,r=n.toVertex;if(!n.valid&&(null!==o.node&&null!==r.node||o.layer!==r.layer)){var s=0,a=0,l=0,h=0;if(null!==n.link){if(a=n.link,null===a)continue;var u=o.node;if(s=r.node,null===u||null===s)continue;var c=a.fromNode;l=a.toNode;var f=a.fromPort;if(a=a.toPort,n.rev){h=c;var d=f;c=l,f=a,l=h,a=d}var p=o.focus;h=r.focus;var g=n.rev?r.bounds:o.bounds;d=mt.alloc(),u!==c?g.o()&&c.isVisible()?c.actualBounds.o()?(c.nf(f,de,d),d.x+=c.actualBounds.x-g.x,d.y+=c.actualBounds.y-g.y):(c.nf(f,de,d),d.o()||d.assign(p)):d.assign(p):g.o()?(c.nf(f,de,d),d.o()||d.assign(p)):d.assign(p),c=n.rev?o.bounds:r.bounds,u=mt.alloc(),s!==l?c.o()&&l.isVisible()?l.actualBounds.o()?(l.nf(a,de,u),u.x+=l.actualBounds.x-c.x,u.y+=l.actualBounds.y-c.y):(l.nf(a,de,u),u.o()||u.assign(h)):u.assign(h):c.o()?(l.nf(a,de,u),u.o()||u.assign(h)):u.assign(h),90===this.L||270===this.L?(s=Math.round((d.x-p.x)/this.Xb),l=d.x,a=Math.round((u.x-h.x)/this.Xb),h=u.x):(s=Math.round((d.y-p.y)/this.Xb),l=d.y,a=Math.round((u.y-h.y)/this.Xb),h=u.y),mt.free(d),mt.free(u),n.portFromColOffset=s,n.portFromPos=l,n.portToColOffset=a,n.portToPos=h}else n.portFromColOffset=0,n.portFromPos=0,n.portToColOffset=0,n.portToPos=0;if(d=o.layer,u=r.layer,c=0,g=n.link,null!==g){var m=g.fromPort,v=g.toPort;if(null!==m&&null!==v){var y=g.fromNode;if(f=g.toNode,null!==y&&null!==f){var b=tg(this,!0),w=tg(this,!1),x=this.setsPortSpots?b:g.computeSpot(!0,m);p=this.setsPortSpots?w:g.computeSpot(!1,v);var k=g.isOrthogonal;x.qf()&&x.pf(w)&&p.qf()&&p.pf(b)?c=0:(b=g.getLinkPoint(y,m,x,!0,k,f,v,mt.alloc()),w=g.getLinkDirection(y,m,b,x,!0,k,f,v),mt.free(b),x.et()||w!==Hp(this,n,!0)?this.setsPortSpots&&null!==y&&1===y.ports.count&&n.rev&&(c+=1):c+=1,x=g.getLinkPoint(f,v,p,!1,k,y,m,mt.alloc()),g=g.getLinkDirection(f,v,x,p,!1,k,y,m),mt.free(x),p.et()||g!==Hp(this,n,!1)?this.setsPortSpots&&null!==f&&1===f.ports.count&&n.rev&&(c+=2):c+=2)}}}if(f=c,c=1===f||3===f,(f=2===f||3===f)&&(p=t.createVertex(),p.node=null,p.Pj=1,p.layer=d,p.near=o,t.sh(p),o=t.fk(o,p,n.link),o.valid=!1,o.rev=n.rev,o.portFromColOffset=s,o.portToColOffset=0,o.portFromPos=l,o.portToPos=0,o=p),g=1,c&&g--,d-u>g&&0<d){for(n.valid=!1,p=t.createVertex(),p.node=null,p.Pj=2,p.layer=d-1,t.sh(p),o=t.fk(o,p,n.link),o.valid=!0,o.rev=n.rev,o.portFromColOffset=f?0:s,o.portToColOffset=0,o.portFromPos=f?0:l,o.portToPos=0,o=p,d--;d-u>g&&0<d;)p=t.createVertex(),p.node=null,p.Pj=3,p.layer=d-1,t.sh(p),o=t.fk(o,p,n.link),o.valid=!0,o.rev=n.rev,o.portFromColOffset=0,o.portToColOffset=0,o.portFromPos=0,o.portToPos=0,o=p,d--;o=t.fk(p,r,n.link),o.valid=!c,c&&(p.near=r),o.rev=n.rev,o.portFromColOffset=0,o.portToColOffset=a,o.portFromPos=0,o.portToPos=h}else n.valid=!0}}for(t=this.fc=[],e=0;e<=this.ya;e++)t[e]=0;for(e=this.network.vertexes.iterator;e.next();)e.value.index=-1;for(this.initializeIndices(),this.Lr=-1,i=this.od=this.qo=0;i<=this.ya;i++)t[i]>t[this.od]&&(this.Lr=t[i]-1,this.od=i),t[i]<t[this.qo]&&(this.qo=i);for(this.yo=[],i=0;i<t.length;i++)this.yo[i]=[];for(e.reset();e.next();)t=e.value,this.yo[t.layer][t.index]=t;for(this.Ha=-1,t=0;t<=this.ya;t++){for(e=eg(this,t),i=0,n=this.fc[t],r=0;r<n;r++)o=e[r],i+=this.nodeMinColumnSpace(o,!0),o.column=i,i+=1,i+=this.nodeMinColumnSpace(o,!1);this.Ha=Math.max(this.Ha,i-1),ig(this,t,e)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Cp.prototype.linkMinLength=function(){return 1},Cp.prototype.nodeMinLayerSpace=function(t,e){return null===t.node?0:90===this.L||270===this.L?e?t.focus.y+10:t.bounds.height-t.focus.y+10:e?t.focus.x+10:t.bounds.width-t.focus.x+10},Cp.prototype.nodeMinColumnSpace=function(t,e){if(null===t.node)return 0;var i=e?t.qv:t.pv;return null!==i?i:(i=this.L,90===i||270===i?e?t.qv=t.focus.x/this.Xb+1|0:t.pv=(t.bounds.width-t.focus.x)/this.Xb+1|0:e?t.qv=t.focus.y/this.Xb+1|0:t.pv=(t.bounds.height-t.focus.y)/this.Xb+1|0)},Cp.prototype.countCrossings=function(){for(var t=0,e=0;e<=this.ya;e++)for(var i=Tp(this,e,1),n=this.fc[e],o=0;o<n;o++)for(var r=o;r<n;r++)t+=i[o*n+r];return t},Cp.prototype.normalize=function(){var t=1/0;this.Ha=-1;for(var e=this.network.vertexes.iterator;e.next();){var i=e.value;t=Math.min(t,i.column-this.nodeMinColumnSpace(i,!0)),this.Ha=Math.max(this.Ha,i.column+this.nodeMinColumnSpace(i,!1))}for(e.reset();e.next();)e.value.column-=t;this.Ha-=t},Cp.prototype.removeCycles=function(){for(var t=this.network.edges.iterator;t.next();)t.value.rev=!1;switch(this.Kk){default:case og:t=this.network;var e=0,i=t.vertexes.count-1,n=[];n.length=i+1;for(var o=t.vertexes.iterator;o.next();)o.value.valid=!0;for(;null!==Bp(t);){for(o=zp(t);null!==o;)n[i]=o,i--,o.valid=!1,o=zp(t);for(o=Fp(t);null!==o;)n[e]=o,e++,o.valid=!1,o=Fp(t);o=null;for(var r=0,s=this.network.vertexes.iterator;s.next();){var a=s.value;if(a.valid){for(var l=0,h=a.destinationEdges;h.next();)h.value.toVertex.valid&&l++;h=0;for(var u=a.sourceEdges;u.next();)u.value.fromVertex.valid&&h++;(null===o||r<l-h)&&(o=a,r=l-h)}}null!==o&&(n[e]=o,e++,o.valid=!1)}for(e=0;e<t.vertexes.count;e++)n[e].index=e;for(n=t.edges.iterator;n.next();)e=n.value,e.fromVertex.index>e.toVertex.index&&(t.sm(e),e.rev=!0);break;case ng:for(n=this.network.vertexes.iterator;n.next();)t=n.value,t.Xl=-1,t.finish=-1;for(t=this.network.edges.iterator;t.next();)t.value.forest=!1;for(this.xo=0,n.reset();n.next();)e=n.value,0===e.sourceEdges.count&&Ip(this,e);for(n.reset();n.next();)e=n.value,-1===e.Xl&&Ip(this,e);for(t.reset();t.next();)n=t.value,n.forest||(e=n.fromVertex,i=e.finish,o=n.toVertex,r=o.finish,o.Xl<e.Xl&&i<r&&(this.network.sm(n),n.rev=!0));break;case rg:for(t=this.network,e=t.vertexes.iterator,n=1/0;e.next();)n=Math.min(n,e.value.layer);if(1/0>n){if(0>n)for(e.reset();e.next();)e.value.layer-=n;for(n=[],e.reset();e.next();)i=e.value,o=n[i.layer],void 0===o?n[i.layer]=[i]:o.push(i);for(i=e=0;i<n.length;i++)if(o=n[i],o&&0!==o.length){if(0<i)for(r=0;r<o.length;r++)o[r].layer-=e}else e++;for(n=t.edges.iterator;n.next();)e=n.value,e.fromVertex.layer<e.toVertex.layer&&(t.sm(e),e.rev=!0)}}},Cp.prototype.assignLayers=function(){switch(this.ll){case ag:Ep(this);break;case lg:for(var t,e=this.network.vertexes.iterator;e.next();)t=Vp(this,e.value),this.ya=Math.max(t,this.ya);for(e.reset();e.next();)t=e.value,t.layer=this.ya-t.layer;break;default:case sg:for(Ep(this),e=this.network.vertexes.iterator;e.next();)e.value.valid=!1;for(e.reset();e.next();)t=e.value,0===t.sourceEdges.count&&_p(this,t);for(t=1/0,e.reset();e.next();)t=Math.min(t,e.value.layer);for(this.ya=-1,e.reset();e.next();){var i=e.value;i.layer-=t,this.ya=Math.max(this.ya,i.layer)}}},Cp.prototype.initializeIndices=function(){switch(this.bl){default:case cg:for(var t=this.network.vertexes.iterator;t.next();){var e=t.value,i=e.layer;e.index=this.fc[i],this.fc[i]++}break;case hg:for(t=this.network.vertexes.iterator,e=this.ya;0<=e;e--)for(t.reset();t.next();)i=t.value,i.layer===e&&-1===i.index&&Yp(this,i);break;case ug:for(t=this.network.vertexes.iterator,e=0;e<=this.ya;e++)for(t.reset();t.next();)i=t.value,i.layer===e&&-1===i.index&&qp(this,i)}},Cp.prototype.reduceCrossings=function(){var t,e,i,n,o,r=this.countCrossings(),s=Np(this);for(t=0;t<this.pj;t++){for(e=0;e<=this.ya;e++)Gp(this,e,1),Xp(this,e,1);var a=this.countCrossings();for(a<r&&(r=a,s=Np(this)),e=this.ya;0<=e;e--)Gp(this,e,-1),Xp(this,e,-1);a=this.countCrossings(),a<r&&(r=a,s=Np(this))}for(Pp(this,s),t=0;t<this.pj;t++){for(e=0;e<=this.ya;e++)Gp(this,e,0),Xp(this,e,0);for(a=this.countCrossings(),a<r&&(r=a,s=Np(this)),e=this.ya;0<=e;e--)Gp(this,e,0),Xp(this,e,0);a=this.countCrossings(),a<r&&(r=a,s=Np(this))}switch(Pp(this,s),this.vk){case fg:break;case pg:for(o=r+1;(e=this.countCrossings())<o;)for(o=e,t=this.ya;0<=t;t--)for(n=0;n<=t;n++){for(i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,-1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,-1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,0)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,0)||i;a>=r?Pp(this,s):(r=a,s=Np(this))}break;default:case dg:for(t=this.ya,n=0,o=r+1;(e=this.countCrossings())<o;){for(o=e,i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,-1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,1)||i;for(a=this.countCrossings(),a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,-1)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=t;e>=n;e--)i=Xp(this,e,0)||i;for(a>=r?Pp(this,s):(r=a,s=Np(this)),i=!0;i;)for(i=!1,e=n;e<=t;e++)i=Xp(this,e,0)||i;a>=r?Pp(this,s):(r=a,s=Np(this))}}Pp(this,s)},Cp.prototype.straightenAndPack=function(){var t=0!==(1&this.$f),e=7===this.$f;if(1e3<this.network.edges.count&&!e&&(t=!1),t){var i=[];for(e=0;e<=this.ya;e++)i[e]=0;for(var n,o=this.network.vertexes.iterator;o.next();){var r=o.value;e=r.layer,n=r.column,r=this.nodeMinColumnSpace(r,!1),i[e]=Math.max(i[e],n+r)}for(o.reset();o.next();)r=o.value,e=r.layer,n=r.column,r.column=(8*(this.Ha-i[e])>>1)+8*n;this.Ha*=8}if(0!==(2&this.$f))for(i=!0;i;){for(i=!1,e=this.od+1;e<=this.ya;e++)i=Up(this,e,1)||i;for(e=this.od-1;0<=e;e--)i=Up(this,e,-1)||i;i=Up(this,this.od,0)||i}if(0!==(4&this.$f)){for(e=this.od+1;e<=this.ya;e++)$p(this,e,1);for(e=this.od-1;0<=e;e--)$p(this,e,-1);$p(this,this.od,0)}if(t&&(Zp(this,-1),Zp(this,1)),0!==(2&this.$f))for(i=!0;i;){for(i=!1,i=Up(this,this.od,0)||i,e=this.od+1;e<=this.ya;e++)i=Up(this,e,0)||i;for(e=this.od-1;0<=e;e--)i=Up(this,e,0)||i}},Cp.prototype.commitLayout=function(){if(this.setsPortSpots)for(var t=tg(this,!0),e=tg(this,!1),i=this.network.edges.iterator;i.next();){var n=i.value.link;null!==n&&(n.fromSpot=t,n.toSpot=e)}this.commitNodes(),this.Mu(),this.isRouting&&this.commitLinks()},Cp.prototype.commitNodes=function(){this.Gd=[],this.md=[],this.ld=[],this.Ka=[];for(var t=0;t<=this.ya;t++)this.Gd[t]=0,this.md[t]=0,this.ld[t]=0,this.Ka[t]=0;for(t=this.network.vertexes.iterator;t.next();){var e=t.value,i=e.layer;this.Gd[i]=Math.max(this.Gd[i],this.nodeMinLayerSpace(e,!0)),this.md[i]=Math.max(this.md[i],this.nodeMinLayerSpace(e,!1))}e=0,i=this.ke;for(var n=0;n<=this.ya;n++){var o=i;0>=this.Gd[n]+this.md[n]&&(o=0),0<n&&(e+=o/2),90===this.L||0===this.L?(e+=this.md[n],this.ld[n]=e,e+=this.Gd[n]):(e+=this.Gd[n],this.ld[n]=e,e+=this.md[n]),n<this.ya&&(e+=o/2),this.Ka[n]=e}for(i=e,e=this.arrangementOrigin,n=0;n<=this.ya;n++)270===this.L?this.ld[n]=e.y+this.ld[n]:90===this.L?(this.ld[n]=e.y+i-this.ld[n],this.Ka[n]=i-this.Ka[n]):180===this.L?this.ld[n]=e.x+this.ld[n]:(this.ld[n]=e.x+i-this.ld[n],this.Ka[n]=i-this.Ka[n]);for(t.reset(),i=n=1/0;t.next();){o=t.value;var r=o.layer,s=0|o.column;if(270===this.L||90===this.L){var a=e.x+this.Xb*s;r=this.ld[r]}else a=this.ld[r],r=e.y+this.Xb*s;o.centerX=a,o.centerY=r,n=Math.min(o.x,n),i=Math.min(o.y,i)}for(n=e.x-n,e=e.y-i,this.jw=new mt(n,e),t.reset();t.next();)i=t.value,i.x+=n,i.y+=e,i.commit()},Cp.prototype.Mu=function(){for(var t=0,e=this.ke,i=0;i<=this.ya;i++)t+=this.Gd[i],t+=this.md[i];t+=this.ya*e,e=[],i=this.Xb*this.Ha;for(var n=this.maxLayer;0<=n;n--)270===this.L?0===n?e.push(new _t(0,0,i,Math.abs(this.Ka[0]))):e.push(new _t(0,this.Ka[n-1],i,Math.abs(this.Ka[n-1]-this.Ka[n]))):90===this.L?0===n?e.push(new _t(0,this.Ka[0],i,Math.abs(this.Ka[0]-t))):e.push(new _t(0,this.Ka[n],i,Math.abs(this.Ka[n-1]-this.Ka[n]))):180===this.L?0===n?e.push(new _t(0,0,Math.abs(this.Ka[0]),i)):e.push(new _t(this.Ka[n-1],0,Math.abs(this.Ka[n-1]-this.Ka[n]),i)):0===n?e.push(new _t(this.Ka[0],0,Math.abs(this.Ka[0]-t),i)):e.push(new _t(this.Ka[n],0,Math.abs(this.Ka[n-1]-this.Ka[n]),i));this.commitLayers(e,this.jw)},Cp.prototype.commitLayers=function(){},Cp.prototype.commitLinks=function(){for(var t,e=this.network.edges.iterator;e.next();)t=e.value.link,null!==t&&(t.Bh(),t.Tj(),t.kf());for(e.reset();e.next();)t=e.value.link,null!==t&&t.Yi();for(e.reset();e.next();){var i=e.value;if(t=i.link,null!==t){t.Bh();var n=t,o=n.fromNode,r=n.toNode,s=n.fromPort,a=n.toPort;if(null!==o){var l=o.findVisibleNode();null!==l&&l!==o&&(o=l,s=l.port)}if(null!==r){var h=r.findVisibleNode();null!==h&&h!==r&&(r=h,a=h.port)}var u=t.computeSpot(!0,s),c=t.computeSpot(!1,a),f=i.fromVertex,d=i.toVertex;if(i.valid){if(t.curve===Lc&&4===t.pointsCount)if(f.column===d.column){var p=t.getLinkPoint(o,s,u,!0,!1,r,a),g=t.getLinkPoint(r,a,c,!1,!1,o,s);p.o()||p.set(o.actualBounds.center),g.o()||g.set(r.actualBounds.center),t.Tj(),t.jf(p.x,p.y),t.jf((2*p.x+g.x)/3,(2*p.y+g.y)/3),t.jf((p.x+2*g.x)/3,(p.y+2*g.y)/3),t.jf(g.x,g.y)}else{var m=!1,v=!1;if(null!==s&&u===le&&(m=!0),null!==a&&c===le&&(v=!0),m||v){var y=t.i(0).x,b=t.i(0).y,w=t.i(3).x,x=t.i(3).y;if(m){if(90===this.L||270===this.L)var k=y,M=(b+x)/2;else k=(y+w)/2,M=b;t.M(1,k,M);var C=t.getLinkPoint(o,s,u,!0,!1,r,a);C.o()||C.set(o.actualBounds.center),t.M(0,C.x,C.y)}if(v){if(90===this.L||270===this.L)var S=w,N=(b+x)/2;else S=(y+w)/2,N=x;t.M(2,S,N);var P=t.getLinkPoint(r,a,c,!1,!1,o,s);P.o()||P.set(r.actualBounds.center),t.M(3,P.x,P.y)}}}t.kf()}else if(f.layer===d.layer)t.kf();else{var T,L=!1,O=!1,D=t.firstPickIndex+1;if(t.isOrthogonal){O=!0;var j=t.pointsCount;4<j&&t.points.removeRange(2,j-3)}else if(t.curve===Lc)L=!0,j=t.pointsCount,4<j&&t.points.removeRange(2,j-3),D=2;else{j=t.pointsCount;var A=u===le,B=c===le;2<j&&A&&B?t.points.removeRange(1,j-2):3<j&&A&&!B?t.points.removeRange(1,j-3):3<j&&!A&&B?t.points.removeRange(2,j-2):4<j&&!A&&!B&&t.points.removeRange(2,j-3)}if(i.rev){for(var z;null!==d&&f!==d;){for(var F=T=null,I=d.sourceEdges.iterator;I.next();){var E=I.value;if(E.link===i.link&&(T=E.fromVertex,F=E.toVertex,null===T.node))break}if(T!==f){var R=t.i(D-1).x,V=t.i(D-1).y,_=T.centerX,H=T.centerY;if(O)if(180===this.L||0===this.L){if(2===D)t.m(D++,R,V),t.m(D++,R,H);else if((null!==F?F.centerY:V)!==H){var Y=this.Ka[T.layer-1];t.m(D++,Y,V),t.m(D++,Y,H)}}else 2===D?(t.m(D++,R,V),t.m(D++,_,V)):(null!==F?F.centerX:R)!==_&&(Y=this.Ka[T.layer-1],t.m(D++,R,Y),t.m(D++,_,Y));else if(2===D){var q=Math.max(10,this.Gd[d.layer]),G=Math.max(10,this.md[d.layer]);if(L)180===this.L?_<=d.bounds.x?(z=d.bounds.x,t.m(D++,z-q,H),t.m(D++,z,H),t.m(D++,z+G,H)):(t.m(D++,_-q,H),t.m(D++,_,H),t.m(D++,_+G,H)):90===this.L?H>=d.bounds.bottom?(z=d.bounds.y+d.bounds.height,t.m(D++,_,z+G),t.m(D++,_,z),t.m(D++,_,z-q)):(t.m(D++,_,H+G),t.m(D++,_,H),t.m(D++,_,H-q)):270===this.L?H<=d.bounds.y?(z=d.bounds.y,t.m(D++,_,z-q),t.m(D++,_,z),t.m(D++,_,z+G)):(t.m(D++,_,H-q),t.m(D++,_,H),t.m(D++,_,H+G)):0===this.L&&(_>=d.bounds.right?(z=d.bounds.x+d.bounds.width,t.m(D++,z+G,H),t.m(D++,z,H),t.m(D++,z-q,H)):(t.m(D++,_+G,H),t.m(D++,_,H),t.m(D++,_-q,H)));else{t.m(D++,R,V);var X=0;180===this.L||0===this.L?((180===this.L?_>=d.bounds.right:_<=d.bounds.x)&&(X=(0===this.L?-q:G)/2),t.m(D++,R+X,H)):((270===this.L?H>=d.bounds.bottom:H<=d.bounds.y)&&(X=(90===this.L?-q:G)/2),t.m(D++,_,V+X)),t.m(D++,_,H)}}else q=Math.max(10,this.Gd[T.layer]),G=Math.max(10,this.md[T.layer]),180===this.L?(L&&t.m(D++,_-q,H),t.m(D++,_,H),L&&t.m(D++,_+G,H)):90===this.L?(L&&t.m(D++,_,H+G),t.m(D++,_,H),L&&t.m(D++,_,H-q)):270===this.L?(L&&t.m(D++,_,H-q),t.m(D++,_,H),L&&t.m(D++,_,H+G)):(L&&t.m(D++,_+G,H),t.m(D++,_,H),L&&t.m(D++,_-q,H))}d=T}if(null===a||u!==le||O)if(R=t.i(D-1).x,V=t.i(D-1).y,_=t.i(D).x,H=t.i(D).y,O){var U=this.md[f.layer];if(180===this.L||0===this.L){var K=V;K>=f.bounds.y&&K<=f.bounds.bottom&&(180===this.L?_>=f.bounds.x:_<=f.bounds.right)&&(z=f.centerX+(180===this.L?-U:U),K=K<f.bounds.y+f.bounds.height/2?f.bounds.y-this.Xb/2:f.bounds.bottom+this.Xb/2,t.m(D++,z,V),t.m(D++,z,K)),t.m(D++,_,K)}else K=R,K>=f.bounds.x&&K<=f.bounds.right&&(270===this.L?H>=f.bounds.y:H<=f.bounds.bottom)&&(z=f.centerY+(270===this.L?-U:U),K=K<f.bounds.x+f.bounds.width/2?f.bounds.x-this.Xb/2:f.bounds.right+this.Xb/2,t.m(D++,R,z),t.m(D++,K,z)),t.m(D++,K,H);t.m(D++,_,H)}else if(L)q=Math.max(10,this.Gd[f.layer]),G=Math.max(10,this.md[f.layer]),180===this.L&&_>=f.bounds.x?(z=f.bounds.x+f.bounds.width,t.M(D-2,z,V),t.M(D-1,z+G,V)):90===this.L&&H<=f.bounds.bottom?(z=f.bounds.y,t.M(D-2,R,z),t.M(D-1,R,z-q)):270===this.L&&H>=f.bounds.y?(z=f.bounds.y+f.bounds.height,t.M(D-2,R,z),t.M(D-1,R,z+G)):0===this.L&&_<=f.bounds.right&&(z=f.bounds.x,t.M(D-2,z,V),t.M(D-1,z-q,V));else{q=Math.max(10,this.Gd[f.layer]),G=Math.max(10,this.md[f.layer]);var $=0;180===this.L||0===this.L?((180===this.L?_<=f.bounds.x:_>=f.bounds.right)&&($=(0===this.L?G:-q)/2),t.m(D++,_+$,V)):((270===this.L?H<=f.bounds.y:H>=f.bounds.bottom)&&($=(90===this.L?G:-q)/2),t.m(D++,R,H+$)),t.m(D++,_,H)}}else{for(;null!==f&&f!==d;){F=T=null;for(var W=f.destinationEdges.iterator;W.next();){var J=W.value;if(J.link===i.link&&(T=J.toVertex,F=J.fromVertex,null!==F.node&&(F=null),null===T.node))break}T!==d&&(R=t.i(D-1).x,V=t.i(D-1).y,_=T.centerX,H=T.centerY,O?180===this.L||0===this.L?(null!==F?F.centerY:V)!==H&&(Y=this.Ka[T.layer],2===D&&(Y=0===this.L?Math.max(Y,R):Math.min(Y,R)),t.m(D++,Y,V),t.m(D++,Y,H)):(null!==F?F.centerX:R)!==_&&(Y=this.Ka[T.layer],2===D&&(Y=90===this.L?Math.max(Y,V):Math.min(Y,V)),t.m(D++,R,Y),t.m(D++,_,Y)):(q=Math.max(10,this.Gd[T.layer]),G=Math.max(10,this.md[T.layer]),180===this.L?(t.m(D++,_+G,H),L&&t.m(D++,_,H),t.m(D++,_-q,H)):90===this.L?(t.m(D++,_,H-q),L&&t.m(D++,_,H),t.m(D++,_,H+G)):270===this.L?(t.m(D++,_,H+G),L&&t.m(D++,_,H),t.m(D++,_,H-q)):(t.m(D++,_-q,H),L&&t.m(D++,_,H),t.m(D++,_+G,H)))),f=T}O&&(R=t.i(D-1).x,V=t.i(D-1).y,_=t.i(D).x,H=t.i(D).y,180===this.L||0===this.L?V!==H&&(Y=0===this.L?Math.min(Math.max((_+R)/2,this.Ka[d.layer]),_):Math.max(Math.min((_+R)/2,this.Ka[d.layer]),_),t.m(D++,Y,V),t.m(D++,Y,H)):R!==_&&(Y=90===this.L?Math.min(Math.max((H+V)/2,this.Ka[d.layer]),H):Math.max(Math.min((H+V)/2,this.Ka[d.layer]),H),t.m(D++,R,Y),t.m(D++,_,Y)))}if(null!==n&&L){if(null!==s){if(u===le){var Z=t.i(0),Q=t.i(2);Z.A(Q)||t.M(1,(Z.x+Q.x)/2,(Z.y+Q.y)/2)}var tt=t.getLinkPoint(o,s,le,!0,!1,r,a);tt.o()||tt.set(o.actualBounds.center),t.M(0,tt.x,tt.y)}if(null!==a){if(c===le){var et=t.i(t.pointsCount-1),it=t.i(t.pointsCount-3);et.A(it)||t.M(t.pointsCount-2,(et.x+it.x)/2,(et.y+it.y)/2)}var ot=t.getLinkPoint(r,a,le,!1,!1,o,s);ot.o()||ot.set(r.actualBounds.center),t.M(t.pointsCount-1,ot.x,ot.y)}}t.kf(),i.commit()}}}for(var rt=new nt,st=this.network.edges.iterator;st.next();){var at=st.value.link;null!==at&&at.isOrthogonal&&!rt.contains(at)&&rt.add(at)}if(0<rt.count)if(90===this.L||270===this.L){for(var lt,ht,ut=[],ct=rt.iterator;ct.next();){var ft=ct.value;if(null!==ft&&ft.isOrthogonal)for(var dt=2;dt<ft.pointsCount-3;dt++)if(lt=ft.i(dt),ht=ft.i(dt+1),this.w(lt.y,ht.y)&&!this.w(lt.x,ht.x)){var pt=new gg;pt.layer=Math.floor(lt.y/2);var gt=ft.i(0),mt=ft.i(ft.pointsCount-1);if(pt.first=gt.x*gt.x+gt.y,pt.Tb=mt.x*mt.x+mt.y,pt.Sc=Math.min(lt.x,ht.x),pt.sc=Math.max(lt.x,ht.x),pt.index=dt,pt.link=ft,dt+2<ft.pointsCount){var vt=ft.i(dt-1),yt=ft.i(dt+2),bt=0;vt.y<lt.y?bt=yt.y<lt.y?3:lt.x<ht.x?2:1:vt.y>lt.y&&(bt=yt.y>lt.y?0:ht.x<lt.x?2:1),pt.l=bt}ut.push(pt)}}if(1<ut.length){ut.sort(this.Fx);for(var wt=0;wt<ut.length;){for(var xt=ut[wt].layer,kt=wt+1;kt<ut.length&&ut[kt].layer===xt;)kt++;if(1<kt-wt)for(var Mt=wt;Mt<kt;){for(var Ct=ut[Mt].sc,St=wt+1;St<kt&&ut[St].Sc<Ct;)Ct=Math.max(Ct,ut[St].sc),St++;var Nt=St-Mt;if(1<Nt){this.Vi(ut,this.st,Mt,Mt+Nt);for(var Pt=1,Tt=ut[Mt].Tb,Lt=Mt;Lt<St;Lt++){var Ot=ut[Lt];Ot.Tb!==Tt&&(Pt++,Tt=Ot.Tb)}this.Vi(ut,this.Ex,Mt,Mt+Nt);var Dt=1;Tt=ut[Mt].first;for(var jt=Mt;jt<St;jt++){var At=ut[jt];At.first!==Tt&&(Dt++,Tt=At.first)}var Bt=!0,zt=Dt;Pt<Dt?(Bt=!1,zt=Pt,Tt=ut[Mt].Tb,this.Vi(ut,this.st,Mt,Mt+Nt)):Tt=ut[Mt].first;for(var Ft=0,It=Mt;It<St;It++){var Et=ut[It];(Bt?Et.first:Et.Tb)!==Tt&&(Ft++,Tt=Bt?Et.first:Et.Tb);var Rt=Et.link;lt=Rt.i(Et.index),ht=Rt.i(Et.index+1);var Vt=this.linkSpacing*(Ft-(zt-1)/2);Rt.Bh(),Rt.M(Et.index,lt.x,lt.y+Vt),Rt.M(Et.index+1,ht.x,ht.y+Vt),Rt.kf()}}Mt=St}wt=kt}}}else{for(var _t,Ht,Yt=[],qt=rt.iterator;qt.next();){var Gt=qt.value;if(null!==Gt&&Gt.isOrthogonal)for(var Xt=2;Xt<Gt.pointsCount-3;Xt++)if(_t=Gt.i(Xt),Ht=Gt.i(Xt+1),this.w(_t.x,Ht.x)&&!this.w(_t.y,Ht.y)){var Ut=new gg;Ut.layer=Math.floor(_t.x/2);var Kt=Gt.i(0),$t=Gt.i(Gt.pointsCount-1);if(Ut.first=Kt.x+Kt.y*Kt.y,Ut.Tb=$t.x+$t.y*$t.y,Ut.Sc=Math.min(_t.y,Ht.y),Ut.sc=Math.max(_t.y,Ht.y),Ut.index=Xt,Ut.link=Gt,Xt+2<Gt.pointsCount){var Wt=Gt.i(Xt-1),Jt=Gt.i(Xt+2),Zt=0;Wt.x<_t.x?Zt=Jt.x<_t.x?3:_t.y<Ht.y?2:1:Wt.x>_t.x&&(Zt=Jt.x>_t.x?0:Ht.y<_t.y?2:1),Ut.l=Zt}Yt.push(Ut)}}if(1<Yt.length){Yt.sort(this.Fx);for(var Qt=0;Qt<Yt.length;){for(var te=Yt[Qt].layer,ee=Qt+1;ee<Yt.length&&Yt[ee].layer===te;)ee++;if(1<ee-Qt)for(var ie=Qt;ie<ee;){for(var ne=Yt[ie].sc,oe=Qt+1;oe<ee&&Yt[oe].Sc<ne;)ne=Math.max(ne,Yt[oe].sc),oe++;var re=oe-ie;if(1<re){this.Vi(Yt,this.st,ie,ie+re);for(var se=1,ae=Yt[ie].Tb,he=ie;he<oe;he++){var ue=Yt[he];ue.Tb!==ae&&(se++,ae=ue.Tb)}this.Vi(Yt,this.Ex,ie,ie+re);var ce=1;ae=Yt[ie].first;for(var fe=ie;fe<oe;fe++){var de=Yt[fe];de.first!==ae&&(ce++,ae=de.first)}var pe=!0,ge=ce;se<ce?(pe=!1,ge=se,ae=Yt[ie].Tb,this.Vi(Yt,this.st,ie,ie+re)):ae=Yt[ie].first;for(var me=0,ve=ie;ve<oe;ve++){var ye=Yt[ve];(pe?ye.first:ye.Tb)!==ae&&(me++,ae=pe?ye.first:ye.Tb);var be=ye.link;_t=be.i(ye.index),Ht=be.i(ye.index+1);var we=this.linkSpacing*(me-(ge-1)/2);be.Bh(),be.M(ye.index,_t.x+we,_t.y),be.M(ye.index+1,Ht.x+we,Ht.y),be.kf()}}ie=oe}Qt=ee}}}},i=Cp.prototype,i.Fx=function(t,e){return t instanceof gg&&e instanceof gg&&t!==e?t.layer<e.layer?-1:t.layer>e.layer?1:t.Sc<e.Sc?-1:t.Sc>e.Sc?1:t.sc<e.sc?-1:t.sc>e.sc?1:0:0},i.Ex=function(t,e){return t instanceof gg&&e instanceof gg&&t!==e?t.first<e.first?-1:t.first>e.first||t.l<e.l?1:t.l>e.l||t.Sc<e.Sc?-1:t.Sc>e.Sc?1:t.sc<e.sc?-1:t.sc>e.sc?1:0:0},i.st=function(t,e){return t instanceof gg&&e instanceof gg&&t!==e?t.Tb<e.Tb?-1:t.Tb>e.Tb||t.l<e.l?1:t.l>e.l||t.Sc<e.Sc?-1:t.Sc>e.Sc?1:t.sc<e.sc?-1:t.sc>e.sc?1:0:0},i.w=function(t,e){return t-=e,-1<t&&1>t},i.Vi=function(t,e,i,n){var o=t.length,r=n-i;if(!(1>=r))if((0>i||i>=o-1)&&k(\"not in range 0 <= from < length: \"+i),2===r)n=t[i],o=t[i+1],0<e(n,o)&&(t[i]=o,t[i+1]=n);else if(0===i)if(n>=o)t.sort(e);else for(i=t.slice(0,n),i.sort(e),e=0;e<n;e++)t[e]=i[e];else if(n>=o)for(n=t.slice(i),n.sort(e),e=i;e<o;e++)t[e]=n[e-i];else for(o=t.slice(i,n),o.sort(e),e=i;e<n;e++)t[e]=o[e-i]},p.Object.defineProperties(Cp.prototype,{layerSpacing:{get:function(){return this.ke},set:function(t){this.ke!==t&&0<=t&&(this.ke=t,this.B())}},columnSpacing:{get:function(){return this.Xb},set:function(t){this.Xb!==t&&0<t&&(this.Xb=t,this.B())}},direction:{get:function(){return this.L},set:function(t){this.L!==t&&(0===t||90===t||180===t||270===t?(this.L=t,this.B()):k(\"LayeredDigraphLayout.direction must be 0, 90, 180, or 270\"))}},cycleRemoveOption:{get:function(){return this.Kk},set:function(t){this.Kk===t||t!==og&&t!==ng&&t!==rg||(this.Kk=t,this.B())}},layeringOption:{get:function(){return this.ll},set:function(t){this.ll===t||t!==sg&&t!==ag&&t!==lg||(this.ll=t,this.B())}},initializeOption:{get:function(){return this.bl},set:function(t){this.bl===t||t!==hg&&t!==ug&&t!==cg||(this.bl=t,this.B())}},iterations:{get:function(){return this.pj},set:function(t){this.pj!==t&&0<=t&&(this.pj=t,this.B())}},aggressiveOption:{get:function(){return this.vk},set:function(t){this.vk===t||t!==fg&&t!==dg&&t!==pg||(this.vk=t,this.B())}},packOption:{get:function(){return this.$f},set:function(t){this.$f!==t&&0<=t&&8>t&&(this.$f=t,this.B())}},setsPortSpots:{get:function(){return this.Ye},set:function(t){this.Ye!==t&&(this.Ye=t,this.B())}},linkSpacing:{get:function(){return this.fo},set:function(t){this.fo!==t&&0<=t&&(this.fo=t,this.B())}},maxLayer:{get:function(){return this.ya}},maxIndex:{get:function(){return this.Lr}},maxColumn:{get:function(){return this.Ha}},minIndexLayer:{get:function(){return this.qo}},maxIndexLayer:{get:function(){return this.od}}});var ng=new K(Cp,\"CycleDepthFirst\",0),og=new K(Cp,\"CycleGreedy\",1),rg=new K(Cp,\"CycleFromLayers\",2),sg=new K(Cp,\"LayerOptimalLinkLength\",0),ag=new K(Cp,\"LayerLongestPathSink\",1),lg=new K(Cp,\"LayerLongestPathSource\",2),hg=new K(Cp,\"InitDepthFirstOut\",0),ug=new K(Cp,\"InitDepthFirstIn\",1),cg=new K(Cp,\"InitNaive\",2),fg=new K(Cp,\"AggressiveNone\",0),dg=new K(Cp,\"AggressiveLess\",1),pg=new K(Cp,\"AggressiveMore\",2);function gg(){this.index=this.sc=this.Sc=this.Tb=this.first=this.layer=0,this.link=null,this.l=0}function mg(t){ff.call(this,t)}function vg(t){vf.call(this,t),this.Sa=this.Cg=this.fi=-1,this.K=NaN,this.ba=null,this.valid=!1,this.finish=this.Xl=NaN,this.Pj=0,this.pv=this.qv=null}function yg(t){bf.call(this,t),this.l=this.Ma=this.Vb=!1,this.La=this.K=NaN,this.ba=this.u=0}function bg(){hf.call(this),this.Fb=new rt,this.Mo=Jg,this.Zc=Zg,this.Dp=pm,this.Jr=xm,this.iw=[],this.Xc=!0,this.Ab=ym,this.wd=new It(10,10).freeze();var t=new Cm(this);this.U=new Sm(t),this.V=new Sm(t),this.xu=[]}function wg(t){var e=new rt;for(t=t.iterator;t.next();){var i=t.value;i.initialized||e.add(i)}return e}function xg(t,e){var i=999999,n=null;for(e=e.iterator;e.next();){var o=e.value;switch(t.Zc){case Zg:o.sourceEdges.count<i&&(i=o.sourceEdges.count,n=o);break;case Qg:o.destinationEdges.count<i&&(i=o.destinationEdges.count,n=o);break;default:k(\"Unhandled path value \"+t.Zc.toString())}}return n}function kg(t,e){if(null!==e){switch(t.Zc){case Zg:if(0<e.destinationEdges.count){for(var i=new nt,n=e.destinationVertexes;n.next();){var o=n.value;Mg(t,e,o)&&i.add(o)}0<i.count&&(e.children=i.Na())}break;case Qg:if(0<e.sourceEdges.count){for(i=new nt,n=e.sourceVertexes;n.next();)o=n.value,Mg(t,e,o)&&i.add(o);0<i.count&&(e.children=i.Na())}break;default:k(\"Unhandled path value\"+t.Zc.toString())}for(i=e.children,n=i.length,o=0;o<n;o++){var r=i[o];r.initialized=!0,r.level=e.level+1,r.parent=e,t.Fb.remove(r)}for(e=0;e<n;e++)kg(t,i[e])}}function Mg(t,e,i){if(i.initialized){if(null===e)var n=!1;else{for(n=e.parent;null!==n&&n!==i;)n=n.parent;n=n===i}if(n||i.level>e.level)return!1;t.removeChild(i.parent,i)}return!0}function Cg(t,e){if(null!==e){t.initializeTreeVertexValues(e),e.alignment===hm&&t.sortTreeVertexChildren(e);for(var i=0,n=e.childrenCount,o=0,r=e.children,s=r.length,a=0;a<s;a++){var l=r[a];Cg(t,l),i+=l.descendantCount+1,n=Math.max(n,l.maxChildrenCount),o=Math.max(o,l.maxGenerationCount)}e.descendantCount=i,e.maxChildrenCount=n,e.maxGenerationCount=0<n?o+1:0}}function Sg(t,e){switch(t.Dp){default:case pm:return null!==e.parent?e.parent:t.U;case vm:return null===e.parent?t.U:null===e.parent.parent?t.V:e.parent;case mm:return null!==e.parent?null!==e.parent.parent?e.parent.parent:t.V:t.U;case gm:var i=!0;if(0===e.childrenCount)i=!1;else for(var n=e.children,o=n.length,r=0;r<o;r++)if(0<n[r].childrenCount){i=!1;break}return i&&null!==e.parent?t.V:null!==e.parent?e.parent:t.U}}function Ng(t,e){if(null!==e){t.assignTreeVertexValues(e),e=e.children;for(var i=e.length,n=0;n<i;n++)Ng(t,e[n])}}function Pg(t,e){if(null!==e){e.alignment!==hm&&t.sortTreeVertexChildren(e),e=e.children;for(var i=e.length,n=0;n<i;n++)Pg(t,e[n])}}function Tg(t){return t===lm||t===hm||t===um||t===cm}function Lg(t){return t===lm||t===hm}function Og(t){var e=t.parent;if(null!==e){var i=e.alignment;if(Tg(i)){if(Lg(i)){for(e=e.children,i=0;i<e.length&&t!==e[i];)i++;return 0===i%2}if(i===um)return!0}}return!1}function Dg(t,e){if(0===e.childrenCount){var i=!1,n=0;null!==e.parent&&(n=e.parent.angle,i=e.parent.alignment,i=Tg(i));var o=Og(e);e.T.h(0,0),e.ua.h(e.width,e.height),null===e.parent||null===e.comments||(180!==n&&270!==n||i)&&!o?e.ia.h(0,0):180===n&&!i||(90===n||270===n)&&o?e.ia.h(e.width-2*e.focus.x,0):e.ia.h(0,e.height-2*e.focus.y)}else{n=Kg(e),i=90===n||270===n;var r=0;o=e.children;for(var s=o.length,a=0;a<s;a++){var l=o[a];r=Math.max(r,i?l.ua.width:l.ua.height)}var h=e.alignment,u=h===sm,c=h===am;a=Tg(h);var f=Math.max(0,e.breadthLimit);l=$g(e);var d=e.nodeSpacing,p=Wg(e),g=u||c?0:p/2,m=e.rowSpacing,v=0;(u||c||e.tm||e.um&&1===e.maxGenerationCount)&&(v=Math.max(0,e.rowIndent)),u=e.width;var y=e.height,b=0,w=0,x=0,M=0,C=0,S=0,N=0,P=0,T=0;if(a&&!Lg(h)&&135<n&&o.reverse(),Lg(h))if(1<s)for(var L=0;L<s;L++){var O=o[L],D=O.ua;0===L%2&&L!==s-1&&(T=Math.max(T,(i?D.width:D.height)+Bg(O)-d))}else 1===s&&(T=i?o[0].ua.width:o[0].ua.height);if(a)switch(h){case lm:case hm:w=135>n?jg(e,o,T,b,w):Ag(e,o,T,b,w),T=w.x,b=w.width,w=w.height;break;case um:for(t=0;t<s;t++)f=o[t],g=f.ua,x=0===N?0:m,i?(f.T.h(r-g.width,C+x),b=Math.max(b,g.width),w=Math.max(w,C+x+g.height),C+=x+g.height):(f.T.h(M+x,r-g.height),b=Math.max(b,M+x+g.width),w=Math.max(w,g.height),M+=x+g.width),N++;break;case cm:for(r=0;r<s;r++)t=o[r],f=t.ua,g=0===N?0:m,i?(t.T.h(d/2+e.focus.x,C+g),b=Math.max(b,f.width),w=Math.max(w,C+g+f.height),C+=g+f.height):(t.T.h(M+g,d/2+e.focus.y),b=Math.max(b,M+g+f.width),w=Math.max(w,f.height),M+=g+f.width),N++}else for(L=0;L<s;L++){if(O=o[L],D=O.ua,i){0<f&&0<N&&M+d+D.width>f&&(M<r&&Rg(e,h,r-M,0,P,L-1),S++,N=0,P=L,x=w,M=0,C=135<n?-w-m:w+m);var j=0===N?g:d;_g(t,O,0,C),O.T.h(M+j,C),b=Math.max(b,M+j+D.width),w=Math.max(w,x+(0===S?0:m)+D.height),M+=j+D.width}else 0<f&&0<N&&C+d+D.height>f&&(C<r&&Rg(e,h,0,r-C,P,L-1),S++,N=0,P=L,x=b,C=0,M=135<n?-b-m:b+m),j=0===N?g:d,_g(t,O,M,0),O.T.h(M,C+j),w=Math.max(w,C+j+D.height),b=Math.max(b,x+(0===S?0:m)+D.width),C+=j+D.height;N++}switch(0<S&&(i?(w+=Math.max(0,l),M<b&&Rg(e,h,b-M,0,P,s-1),0<v&&(c||Vg(e,v,0,0,s-1),b+=v)):(b+=Math.max(0,l),C<w&&Rg(e,h,0,w-C,P,s-1),0<v&&(c||Vg(e,0,v,0,s-1),w+=v))),v=c=0,h){case om:i?c+=b/2-e.focus.x-p/2:v+=w/2-e.focus.y-p/2;break;case rm:0<S?i?c+=b/2-e.focus.x-p/2:v+=w/2-e.focus.y-p/2:i?(h=o[0].T.x+o[0].ia.x,c+=h+(o[s-1].T.x+o[s-1].ia.x+2*o[s-1].focus.x-h)/2-e.focus.x-p/2):(h=o[0].T.y+o[0].ia.y,v+=h+(o[s-1].T.y+o[s-1].ia.y+2*o[s-1].focus.y-h)/2-e.focus.y-p/2);break;case sm:i?(c-=p,b+=p):(v-=p,w+=p);break;case am:i?(c+=b-e.width+p,b+=p):(v+=w-e.height+p,w+=p);break;case lm:case hm:i?c+=1<s?T+d/2-e.focus.x:o[0].focus.x-e.focus.x+o[0].ia.x:v+=1<s?T+d/2-e.focus.y:o[0].focus.y-e.focus.y+o[0].ia.y;break;case um:i?c+=b+d/2-e.focus.x:v+=w+d/2-e.focus.y;break;case cm:break;default:k(\"Unhandled alignment value \"+h.toString())}for(p=0;p<s;p++)h=o[p],i?h.T.h(h.T.x+h.ia.x-c,h.T.y+(135<n?(a?-w:-h.ua.height)+h.ia.y-l:y+l+h.ia.y)):h.T.h(h.T.x+(135<n?(a?-b:-h.ua.width)+h.ia.x-l:u+l+h.ia.x),h.T.y+h.ia.y-v);i?(b=Fg(e,b,c),0>c&&(c=0),135<n&&(v+=w+l),w+=y+l):(135<n&&(c+=b+l),b+=u+l,w=Ig(e,w,v),0>v&&(v=0)),e.ia.h(c,v),e.ua.h(b,w)}}function jg(t,e,i,n,o){var r=e.length;if(0===r)return new _t(i,0,n,o);if(1===r)return t=e[0],n=t.ua.width,o=t.ua.height,new _t(i,0,n,o);for(var s=t.nodeSpacing,a=t.rowSpacing,l=90===Kg(t),h=0,u=0,c=0,f=0;f<r;f++)if(!(0!==f%2||1<r&&f===r-1)){var d=e[f],p=d.ua,g=0===h?0:a;if(l){var m=Bg(d)-s;d.T.h(i-(p.width+m),c+g),n=Math.max(n,p.width+m),o=Math.max(o,c+g+p.height),c+=g+p.height}else m=Bg(d)-s,d.T.h(u+g,i-(p.height+m)),o=Math.max(o,p.height+m),n=Math.max(n,u+g+p.width),u+=g+p.width;h++}for(h=0,d=u,f=c,l?(u=i+s,c=0):(u=0,c=i+s),p=0;p<r;p++)if(0!==p%2){g=e[p],m=g.ua;var v=0===h?0:a;if(l){var y=Bg(g)-s;g.T.h(u+y,c+v),n=Math.max(n,u+m.width+y),o=Math.max(o,c+v+m.height),c+=v+m.height}else y=Bg(g)-s,g.T.h(u+v,c+y),n=Math.max(n,u+v+m.width),o=Math.max(o,c+m.height+y),u+=v+m.width;h++}return 1<r&&1===r%2&&(e=e[r-1],r=e.ua,a=null===e.parent?0:e.parent.rowSpacing,l?(e.T.h(i+s/2-e.focus.x-e.ia.x,o+a),l=i+s/2-e.focus.x-e.ia.x,n=Math.max(n,l+r.width),0>l&&(n-=l),o=Math.max(o,Math.max(f,c)+a+r.height),0>e.T.x&&(i=zg(t,e.T.x,!1,i,s))):(e.T.h(n+a,i+s/2-e.focus.y-e.ia.y),n=Math.max(n,Math.max(d,u)+a+r.width),c=i+s/2-e.focus.y-e.ia.y,o=Math.max(o,c+r.height),0>c&&(o-=c),0>e.T.y&&(i=zg(t,e.T.y,!0,i,s)))),new _t(i,0,n,o)}function Ag(t,e,i,n,o){var r=e.length;if(0===r)return new _t(i,0,n,o);if(1===r)return e=e[0],n=e.ua.width,o=e.ua.height,new _t(i,0,n,o);for(var s=t.nodeSpacing,a=t.rowSpacing,l=270===Kg(t),h=0,u=0,c=0,f=0;f<r;f++)if(!(0!==f%2||1<r&&f===r-1)){var d=e[f],p=d.ua,g=0===h?0:a;if(l){var m=Bg(d)-s;c-=g+p.height,d.T.h(i-(p.width+m),c),n=Math.max(n,p.width+m),o=Math.max(o,Math.abs(c))}else m=Bg(d)-s,u-=g+p.width,d.T.h(u,i-(p.height+m)),o=Math.max(o,p.height+m),n=Math.max(n,Math.abs(u));h++}for(h=0,d=u,f=c,l?(u=i+s,c=0):(u=0,c=i+s),p=0;p<r;p++)if(0!==p%2){g=e[p],m=g.ua;var v=0===h?0:a;if(l){var y=Bg(g)-s;c-=v+m.height,g.T.h(u+y,c),n=Math.max(n,u+m.width+y),o=Math.max(o,Math.abs(c))}else y=Bg(g)-s,u-=v+m.width,g.T.h(u,c+y),o=Math.max(o,c+m.height+y),n=Math.max(n,Math.abs(u));h++}for(1<r&&1===r%2&&(a=e[r-1],h=a.ua,p=null===a.parent?0:a.parent.rowSpacing,l?(a.T.h(i+s/2-a.focus.x-a.ia.x,-o-h.height-p),u=i+s/2-a.focus.x-a.ia.x,n=Math.max(n,u+h.width),0>u&&(n-=u),o=Math.max(o,Math.abs(Math.min(f,c))+p+h.height),0>a.T.x&&(i=zg(t,a.T.x,!1,i,s))):(a.T.h(-n-h.width-p,i+s/2-a.focus.y-a.ia.y),n=Math.max(n,Math.abs(Math.min(d,u))+p+h.width),c=i+s/2-a.focus.y-a.ia.y,o=Math.max(o,c+h.height),0>c&&(o-=c),0>a.T.y&&(i=zg(t,a.T.y,!0,i,s)))),t=0;t<r;t++)s=e[t],l?s.T.h(s.T.x,s.T.y+o):s.T.h(s.T.x+n,s.T.y);return new _t(i,0,n,o)}function Bg(t){return null===t.parent?0:t.parent.nodeSpacing}function zg(t,e,i,n,o){t=t.children;for(var r=t.length,s=0;s<r;s++)i?t[s].T.h(t[s].T.x,t[s].T.y-e):t[s].T.h(t[s].T.x-e,t[s].T.y);return e=t[r-1],Math.max(n,i?e.ia.y+e.focus.y-o/2:e.ia.x+e.focus.x-o/2)}function Fg(t,e,i){switch(t.alignment){case rm:case om:return i+t.width>e&&(e=i+t.width),0>i&&(e-=i),e;case sm:return t.width>e?t.width:e;case am:return 2*t.focus.x>e?t.width:e+t.width-2*t.focus.x;case lm:case hm:return Math.max(t.width,Math.max(e,i+t.width)-Math.min(0,i));case um:return t.width-t.focus.x+t.nodeSpacing/2+e;case cm:return Math.max(t.width,t.focus.x+t.nodeSpacing/2+e);default:return e}}function Ig(t,e,i){switch(t.alignment){case rm:case om:return i+t.height>e&&(e=i+t.height),0>i&&(e-=i),e;case sm:return t.height>e?t.height:e;case am:return 2*t.focus.y>e?t.height:e+t.height-2*t.focus.y;case lm:case hm:return Math.max(t.height,Math.max(e,i+t.height)-Math.min(0,i));case um:return t.height-t.focus.y+t.nodeSpacing/2+e;case cm:return Math.max(t.height,t.focus.y+t.nodeSpacing/2+e);default:return e}}function Eg(t,e,i){switch(t){case om:e/=2,i/=2;break;case rm:e/=2,i/=2;break;case sm:i=e=0;break;case am:break;default:k(\"Unhandled alignment value \"+t.toString())}return new mt(e,i)}function Rg(t,e,i,n,o,r){e=Eg(e,i,n),Vg(t,e.x,e.y,o,r)}function Vg(t,e,i,n,o){if(0!==e||0!==i)for(t=t.children;n<=o;n++){var r=t[n].T;r.x+=e,r.y+=i}}function _g(t,e,i,n){var o=e.parent;switch(t.Zc){case Zg:for(t=e.sourceEdges;t.next();)e=t.value,e.fromVertex===o&&e.relativePoint.h(i,n);break;case Qg:for(t=e.destinationEdges;t.next();)e=t.value,e.toVertex===o&&e.relativePoint.h(i,n);break;default:k(\"Unhandled path value \"+t.Zc.toString())}}function Hg(t,e,i){for(var n=0;n<t.length;n++){var o=t[n];o.x+=e,o.y+=i}}function Yg(t,e,i,n,o,r,s,a){var l=Kg(e),h=90===l||270===l,u=e.nodeSpacing;e=n;var c=o;n=r;var f=s,d=i.bq,p=i.oq;s=i.ua;var g=h?Math.max(f,s.height):Math.max(n,s.width);if(null!==d&&l===Kg(i)||(d=qg(t,2),p=qg(t,2),h?(d[0].h(0,0),d[1].h(0,s.height),p[0].h(s.width,0),p[1].h(p[0].x,d[1].y)):(d[0].h(0,0),d[1].h(s.width,0),p[0].h(0,s.height),p[1].h(d[1].x,p[0].y))),h){if(f=9999999,!(null===c||2>c.length||null===d||2>d.length))for(o=i=0;i<c.length&&o<d.length;){r=c[i];var m=d[o];l=m.x,h=m.y,l+=n;var v=r;i+1<c.length&&(v=c[i+1]);var y=m;m=y.x,y=y.y,o+1<d.length&&(y=d[o+1],m=y.x,y=y.y,m+=n);var b=f;r.y===h?b=l-r.x:r.y>h&&r.y<y?b=l+(r.y-h)/(y-h)*(m-l)-r.x:h>r.y&&h<v.y&&(b=l-(r.x+(h-r.y)/(v.y-r.y)*(v.x-r.x))),b<f&&(f=b),v.y<=r.y?i++:y<=h?o++:(v.y<=y&&i++,y<=v.y&&o++)}if(f=n-f,f+=u,i=d,o=f,null===e||2>e.length||null===i||2>i.length)n=null;else{for(u=qg(t,e.length+i.length),n=r=l=0;r<i.length&&i[r].y<e[0].y;)h=i[r++],u[n++].h(h.x+o,h.y);for(;l<e.length;)h=e[l++],u[n++].h(h.x,h.y);for(l=e[e.length-1].y;r<i.length&&i[r].y<=l;)r++;for(;r<i.length&&i[r].y>l;)h=i[r++],u[n++].h(h.x+o,h.y);for(i=qg(t,n),l=0;l<n;l++)i[l].assign(u[l]);Gg(t,u),n=i}if(r=p,l=f,null===c||2>c.length||null===r||2>r.length)o=null;else{for(u=qg(t,c.length+r.length),o=h=i=0;i<c.length&&c[i].y<r[0].y;)v=c[i++],u[o++].h(v.x,v.y);for(;h<r.length;)v=r[h++],u[o++].h(v.x+l,v.y);for(r=r[r.length-1].y;i<c.length&&c[i].y<=r;)i++;for(;i<c.length&&c[i].y>r;)l=c[i++],u[o++].h(l.x,l.y);for(r=qg(t,o),i=0;i<o;i++)r[i].assign(u[i]);Gg(t,u),o=r}return r=Math.max(0,f)+s.width,s=g,Gg(t,e),Gg(t,d),Gg(t,c),Gg(t,p),a[0]=n,a[1]=o,new _t(f,0,r,s)}if(n=9999999,!(null===c||2>c.length||null===d||2>d.length))for(o=i=0;i<c.length&&o<d.length;)r=c[i],m=d[o],l=m.x,h=m.y,h+=f,v=r,i+1<c.length&&(v=c[i+1]),y=m,m=y.x,y=y.y,o+1<d.length&&(y=d[o+1],m=y.x,y=y.y,y+=f),b=n,r.x===l?b=h-r.y:r.x>l&&r.x<m?b=h+(r.x-l)/(m-l)*(y-h)-r.y:l>r.x&&l<v.x&&(b=h-(r.y+(l-r.x)/(v.x-r.x)*(v.y-r.y))),b<n&&(n=b),v.x<=r.x?i++:m<=l?o++:(v.x<=m&&i++,m<=v.x&&o++);if(f-=n,f+=u,i=d,o=f,null===e||2>e.length||null===i||2>i.length)n=null;else{for(u=qg(t,e.length+i.length),n=r=l=0;r<i.length&&i[r].x<e[0].x;)h=i[r++],u[n++].h(h.x,h.y+o);for(;l<e.length;)h=e[l++],u[n++].h(h.x,h.y);for(l=e[e.length-1].x;r<i.length&&i[r].x<=l;)r++;for(;r<i.length&&i[r].x>l;)h=i[r++],u[n++].h(h.x,h.y+o);for(i=qg(t,n),l=0;l<n;l++)i[l].assign(u[l]);Gg(t,u),n=i}if(r=p,l=f,null===c||2>c.length||null===r||2>r.length)o=null;else{for(u=qg(t,c.length+r.length),o=h=i=0;i<c.length&&c[i].x<r[0].x;)v=c[i++],u[o++].h(v.x,v.y);for(;h<r.length;)v=r[h++],u[o++].h(v.x,v.y+l);for(r=r[r.length-1].x;i<c.length&&c[i].x<=r;)i++;for(;i<c.length&&c[i].x>r;)l=c[i++],u[o++].h(l.x,l.y);for(r=qg(t,o),i=0;i<o;i++)r[i].assign(u[i]);Gg(t,u),o=r}return r=g,s=Math.max(0,f)+s.height,Gg(t,e),Gg(t,d),Gg(t,c),Gg(t,p),a[0]=n,a[1]=o,new _t(f,0,r,s)}function qg(t,e){if(t=t.xu[e],void 0!==t&&(t=t.pop(),void 0!==t))return t;t=[];for(var i=0;i<e;i++)t[i]=new mt;return t}function Gg(t,e){var i=e.length,n=t.xu[i];void 0===n&&(n=[],t.xu[i]=n),n.push(e)}function Xg(t,e,i,n){if(null!==e){e.x=i,e.y=n,e=e.children;for(var o=e.length,r=0;r<o;r++){var s=e[r];Xg(t,s,i+s.T.x,n+s.T.y)}}}function Ug(t,e){if(null!==e){t.setPortSpots(e),e=e.children;for(var i=e.length,n=0;n<i;n++)Ug(t,e[n])}}function Kg(t){return t=t.angle,45>=t?0:135>=t?90:225>=t?180:315>=t?270:0}function $g(t){var e=Kg(t);e=90===e||270===e;var i=t.layerSpacing;if(0<t.layerSpacingParentOverlap){var n=Math.min(1,t.layerSpacingParentOverlap);i-=e?t.height*n:t.width*n}return i<(e?-t.height:-t.width)&&(i=e?-t.height:-t.width),i}function Wg(t){var e=Kg(t),i=t.nodeIndent;if(0<t.nodeIndentPastParent){var n=Math.min(1,t.nodeIndentPastParent);i+=90===e||270===e?t.width*n:t.height*n}return Math.max(0,i)}Cp.className=\"LayeredDigraphLayout\",Cp.CycleDepthFirst=ng,Cp.CycleGreedy=og,Cp.CycleFromLayers=rg,Cp.LayerOptimalLinkLength=sg,Cp.LayerLongestPathSink=ag,Cp.LayerLongestPathSource=lg,Cp.InitDepthFirstOut=hg,Cp.InitDepthFirstIn=ug,Cp.InitNaive=cg,Cp.AggressiveNone=fg,Cp.AggressiveLess=dg,Cp.AggressiveMore=pg,Cp.PackNone=0,Cp.PackExpand=1,Cp.PackStraighten=2,Cp.PackMedian=4,Cp.PackAll=7,gg.className=\"SegInfo\",d(mg,ff),mg.prototype.createVertex=function(){return new vg(this)},mg.prototype.createEdge=function(){return new yg(this)},mg.className=\"LayeredDigraphNetwork\",d(vg,vf),p.Object.defineProperties(vg.prototype,{layer:{get:function(){return this.fi},set:function(t){this.fi!==t&&(this.fi=t)}},column:{get:function(){return this.Cg},set:function(t){this.Cg!==t&&(this.Cg=t)}},index:{get:function(){return this.Sa},set:function(t){this.Sa!==t&&(this.Sa=t)}},component:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t)}},near:{get:function(){return this.ba},set:function(t){this.ba!==t&&(this.ba=t)}}}),vg.className=\"LayeredDigraphVertex\",d(yg,bf),p.Object.defineProperties(yg.prototype,{valid:{get:function(){return this.Vb},set:function(t){this.Vb!==t&&(this.Vb=t)}},rev:{get:function(){return this.Ma},set:function(t){this.Ma!==t&&(this.Ma=t)}},forest:{get:function(){return this.l},set:function(t){this.l!==t&&(this.l=t)}},portFromPos:{get:function(){return this.K},set:function(t){this.K!==t&&(this.K=t)}},portToPos:{get:function(){return this.La},set:function(t){this.La!==t&&(this.La=t)}},portFromColOffset:{get:function(){return this.u},set:function(t){this.u!==t&&(this.u=t)}},portToColOffset:{get:function(){return this.ba},set:function(t){this.ba!==t&&(this.ba=t)}}}),yg.className=\"LayeredDigraphEdge\",d(bg,hf),bg.prototype.cloneProtected=function(t){hf.prototype.cloneProtected.call(this,t),t.Mo=this.Mo,t.Dp=this.Dp,t.Jr=this.Jr,t.Xc=this.Xc,t.Ab=this.Ab,t.wd.assign(this.wd),t.U.copyInheritedPropertiesFrom(this.U),t.V.copyInheritedPropertiesFrom(this.V)},bg.prototype.fb=function(t){t.classType===bg?0===t.name.indexOf(\"Alignment\")?this.alignment=t:0===t.name.indexOf(\"Arrangement\")?this.arrangement=t:0===t.name.indexOf(\"Compaction\")?this.compaction=t:0===t.name.indexOf(\"Path\")?this.path=t:0===t.name.indexOf(\"Sorting\")?this.sorting=t:0===t.name.indexOf(\"Style\")?this.treeStyle=t:k(\"Unknown enum value: \"+t):hf.prototype.fb.call(this,t)},bg.prototype.createNetwork=function(){return new Cm(this)},bg.prototype.makeNetwork=function(t){function e(t){if(t instanceof Au)return!t.isLinkLabel&&\"Comment\"!==t.category;if(t instanceof nc){var e=t.fromNode;return null!==e&&!e.isLinkLabel&&\"Comment\"!==e.category&&(t=t.toNode,null!==t&&!t.isLinkLabel&&\"Comment\"!==t.category)}return!1}var i=this.createNetwork();return t instanceof Do?(i.kg(t.nodes,!0,e),i.kg(t.links,!0,e)):t instanceof Ju?i.kg(t.memberParts,!1,e):i.kg(t.iterator,!1,e),i},bg.prototype.doLayout=function(t){null===this.network&&(this.network=this.makeNetwork(t)),this.arrangement!==wm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var e=this.diagram;if(null===e&&t instanceof Do&&(e=t),this.path===Jg&&null!==e?this.Zc=e.isTreePathToChildren?Zg:Qg:this.Zc=this.path===Jg?Zg:this.path,0<this.network.vertexes.count){for(this.network.Pp(),t=this.network.vertexes.iterator;t.next();)e=t.value,e.initialized=!1,e.level=0,e.parent=null,e.children=[];if(0<this.Fb.count){for(t=new rt,e=this.Fb.iterator;e.next();){var i=e.value;i instanceof Au?(i=this.network.Ii(i),null!==i&&t.add(i)):i instanceof Sm&&t.add(i)}this.Fb=t}for(0===this.Fb.count&&this.findRoots(),t=this.Fb.copy().iterator;t.next();)e=t.value,e.initialized||(e.initialized=!0,kg(this,e));for(e=this.network.vertexes,t=null;t=wg(e),0<t.count;)e=xg(this,t),null!==e&&this.Fb.add(e),e.initialized=!0,kg(this,e),e=t;for(t=this.Fb.iterator;t.next();)e=t.value,e instanceof Sm&&Cg(this,e);for(t=this.Fb.iterator;t.next();)e=t.value,e instanceof Sm&&Ng(this,e);for(t=this.Fb.iterator;t.next();)e=t.value,e instanceof Sm&&Pg(this,e);if(this.Iu(),this.layerStyle===Mm){for(t=[],e=this.network.vertexes.iterator;e.next();){i=e.value;var n=i.parent;null===n&&(n=i),n=0===n.angle||180===n.angle;var o=t[i.level];void 0===o&&(o=0),t[i.level]=Math.max(o,n?i.width:i.height)}for(e=0;e<t.length;e++)void 0===t[e]&&(t[e]=0);for(this.iw=t,e=this.network.vertexes.iterator;e.next();)i=e.value,n=i.parent,null===n&&(n=i),0===n.angle||180===n.angle?(180===n.angle&&(i.focusX+=t[i.level]-i.width),i.width=t[i.level]):(270===n.angle&&(i.focusY+=t[i.level]-i.height),i.height=t[i.level])}else if(this.layerStyle===km)for(t=this.network.vertexes.iterator;t.next();){for(e=t.value,i=0===e.angle||180===e.angle,n=-1,o=0;o<e.children.length;o++){var r=e.children[o];n=Math.max(n,i?r.width:r.height)}if(0<=n)for(o=0;o<e.children.length;o++)r=e.children[o],i?(180===e.angle&&(r.focusX+=n-r.width),r.width=n):(270===e.angle&&(r.focusY+=n-r.height),r.height=n)}for(t=this.Fb.iterator;t.next();)e=t.value,e instanceof Sm&&this.layoutTree(e);this.arrangeTrees(),this.updateParts()}this.network=null,this.Fb=new rt,this.isValidLayout=!0},bg.prototype.findRoots=function(){for(var t=this.network.vertexes,e=t.iterator;e.next();){var i=e.value;switch(this.Zc){case Zg:0===i.sourceEdges.count&&this.Fb.add(i);break;case Qg:0===i.destinationEdges.count&&this.Fb.add(i);break;default:k(\"Unhandled path value \"+this.Zc.toString())}}0===this.Fb.count&&(t=xg(this,t),null!==t&&this.Fb.add(t))},bg.prototype.removeChild=function(t,e){if(null!==t&&null!==e){for(var i=t.children,n=0,o=0;o<i.length;o++)i[o]===e&&n++;if(0<n){n=Array(i.length-n);for(var r=o=0;r<i.length;r++)i[r]!==e&&(n[o++]=i[r]);t.children=n}}},bg.prototype.initializeTreeVertexValues=function(t){if(t.copyInheritedPropertiesFrom(Sg(this,t)),null!==t.parent&&t.parent.alignment===hm){for(var e=t.angle,i=t.parent.children,n=0;n<i.length&&t!==i[n];)n++;0===n%2?n!==i.length-1&&(e=90===e?180:180===e?270:270===e?180:270):e=90===e?0:180===e?90:270===e?0:90,t.angle=e}t.initialized=!0},bg.prototype.assignTreeVertexValues=function(){},bg.prototype.sortTreeVertexChildren=function(t){switch(t.sorting){case tm:break;case em:t.children.reverse();break;case im:t.children.sort(t.comparer);break;case nm:t.children.sort(t.comparer),t.children.reverse();break;default:k(\"Unhandled sorting value \"+t.sorting.toString())}},bg.prototype.Iu=function(){if(this.comments)for(var t=this.network.vertexes.iterator;t.next();)this.addComments(t.value)},bg.prototype.addComments=function(t){var e=t.angle,i=t.parent,n=0,o=!1;null!==i&&(n=i.angle,o=i.alignment,o=Tg(o)),e=90===e||270===e,n=90===n||270===n,i=0===t.childrenCount;var r=0,s=0,a=0,l=t.commentSpacing;if(null!==t.node)for(var h=t.node.Xu();h.next();){var u=h.value;\"Comment\"===u.category&&u.canLayout()&&(null===t.comments&&(t.comments=[]),t.comments.push(u),u.ac(),u=u.measuredBounds,e&&!i||!o&&!n&&i||o&&n&&i?(r=Math.max(r,u.width),s+=u.height+Math.abs(a)):(r+=u.width+Math.abs(a),s=Math.max(s,u.height)),a=l)}null!==t.comments&&(e&&!i||!o&&!n&&i||o&&n&&i?(r+=Math.abs(t.commentMargin),s=Math.max(0,s-t.height)):(s+=Math.abs(t.commentMargin),r=Math.max(0,r-t.width)),o=_t.allocAt(0,0,t.bounds.width+r,t.bounds.height+s),t.bounds=o,_t.free(o))},bg.prototype.layoutComments=function(t){if(null!==t.comments){var e=t.node.measuredBounds,i=t.parent,n=t.angle,o=0,r=!1;null!==i&&(o=i.angle,r=i.alignment,r=Tg(r)),n=90===n||270===n,i=90===o||270===o;for(var s=0===t.childrenCount,a=Og(t),l=0,h=t.comments,u=h.length,c=mt.alloc(),f=0;f<u;f++){var d=h[f],p=d.measuredBounds;if(n&&!s||!r&&!i&&s||r&&i&&s){if(135<o&&!r||i&&a)if(0<=t.commentMargin)for(c.h(t.bounds.x-t.commentMargin-p.width,t.bounds.y+l),d.move(c),d=d.sd();d.next();){var g=d.value;g.fromSpot=Re,g.toSpot=Ve}else for(c.h(t.bounds.x+2*t.focus.x-t.commentMargin,t.bounds.y+l),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=Ve,g.toSpot=Re;else if(0<=t.commentMargin)for(c.h(t.bounds.x+2*t.focus.x+t.commentMargin,t.bounds.y+l),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=Ve,g.toSpot=Re;else for(c.h(t.bounds.x+t.commentMargin-p.width,t.bounds.y+l),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=Re,g.toSpot=Ve;l=0<=t.commentSpacing?l+(p.height+t.commentSpacing):l+(t.commentSpacing-p.height)}else{if(135<o&&!r||!i&&a)if(0<=t.commentMargin)for(c.h(t.bounds.x+l,t.bounds.y-t.commentMargin-p.height),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=Ee,g.toSpot=_e;else for(c.h(t.bounds.x+l,t.bounds.y+2*t.focus.y-t.commentMargin),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=_e,g.toSpot=Ee;else if(0<=t.commentMargin)for(c.h(t.bounds.x+l,t.bounds.y+2*t.focus.y+t.commentMargin),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=_e,g.toSpot=Ee;else for(c.h(t.bounds.x+l,t.bounds.y+t.commentMargin-p.height),d.move(c),d=d.sd();d.next();)g=d.value,g.fromSpot=Ee,g.toSpot=_e;l=0<=t.commentSpacing?l+(p.width+t.commentSpacing):l+(t.commentSpacing-p.width)}}if(mt.free(c),e=l-t.commentSpacing-(n?e.height:e.width),this.Zc===Zg)for(t=t.destinationEdges;t.next();)o=t.value.link,null===o||o.isAvoiding||(o.fromEndSegmentLength=0<e?e:NaN);else for(t=t.sourceEdges;t.next();)o=t.value.link,null===o||o.isAvoiding||(o.toEndSegmentLength=0<e?e:NaN)}},bg.prototype.layoutTree=function(t){if(null!==t){for(var e=t.children,i=e.length,n=0;n<i;n++)this.layoutTree(e[n]);switch(t.compaction){case fm:Dg(this,t);break;case dm:if(t.alignment===hm)Dg(this,t);else if(0===t.childrenCount)n=t.parent,i=!1,e=0,null!==n&&(e=n.angle,i=n.alignment,i=Tg(i)),n=Og(t),t.T.h(0,0),t.ua.h(t.width,t.height),null===t.parent||null===t.comments||(180!==e&&270!==e||i)&&!n?t.ia.h(0,0):180===e&&!i||(90===e||270===e)&&n?t.ia.h(t.width-2*t.focus.x,0):t.ia.h(0,t.height-2*t.focus.y),t.bq=null,t.oq=null;else{var o=Kg(t);e=90===o||270===o;var r=0,s=t.children,a=s.length;for(i=0;i<a;i++)n=s[i],r=Math.max(r,e?n.ua.width:n.ua.height);var l=t.alignment,h=l===am,u=Tg(l),c=Math.max(0,t.breadthLimit);i=$g(t);var f=t.nodeSpacing,d=Wg(t),p=t.rowSpacing,g=0;(l===sm||h||t.tm||t.um&&1===t.maxGenerationCount)&&(g=Math.max(0,t.rowIndent)),n=t.width;var m=t.height,v=0,y=0,b=0,w=null,x=null,M=0,C=0,S=0,N=0,P=0,T=0,L=0,O=0;if(u&&!Lg(l)&&135<o&&s.reverse(),Lg(l))if(1<a)for(var D=0;D<a;D++)0===D%2&&D!==a-1&&(O=Math.max(O,e?s[D].ua.width:s[D].ua.height));else 1===a&&(O=e?s[0].ua.width:s[0].ua.height);if(u){switch(l){case lm:y=135>o?jg(t,s,O,v,y):Ag(t,s,O,v,y),O=y.x,v=y.width,y=y.height;break;case um:for(w=0;w<a;w++)x=s[w],c=x.ua,b=0===T?0:p,e?(x.T.h(r-c.width,N+b),v=Math.max(v,c.width),y=Math.max(y,N+b+c.height),N+=b+c.height):(x.T.h(S+b,r-c.height),v=Math.max(v,S+b+c.width),y=Math.max(y,c.height),S+=b+c.width),T++;break;case cm:for(w=0;w<a;w++)x=s[w],r=x.ua,c=0===T?0:p,e?(x.T.h(f/2+t.focus.x,N+c),v=Math.max(v,r.width),y=Math.max(y,N+c+r.height),N+=c+r.height):(x.T.h(S+c,f/2+t.focus.y),v=Math.max(v,S+c+r.width),y=Math.max(y,r.height),S+=c+r.width),T++}w=qg(this,2),x=qg(this,2),e?(w[0].h(0,0),w[1].h(0,y),x[0].h(v,0)):(w[0].h(0,0),w[1].h(v,0),x[0].h(0,y)),x[1].h(v,y)}else for(D=0;D<a;D++){var B=s[D],z=B.ua;if(e){0<c&&0<T&&S+f+z.width>c&&(S<r&&Rg(t,l,r-S,0,L,D-1),P++,T=0,L=D,b=y,S=0,N=135<o?-y-p:y+p),_g(this,B,0,N);var F=0;if(0===T)w=B.bq,x=B.oq,M=z.width,C=z.height,(null===w||null===x||o!==Kg(B))&&(w=qg(this,2),x=qg(this,2),w[0].h(0,0),w[1].h(0,C),x[0].h(M,0),x[1].h(M,C));else{var I=j();C=Yg(this,t,B,w,x,M,C,I),F=C.x,w=I[0],x=I[1],M=C.width,C=C.height,A(I),S<z.width&&0>F&&(Vg(t,-F,0,L,D-1),Hg(w,-F,0),Hg(x,-F,0),F=0)}B.T.h(F,N),v=Math.max(v,M),y=Math.max(y,b+(0===P?0:p)+z.height),S=M}else 0<c&&0<T&&N+f+z.height>c&&(N<r&&Rg(t,l,0,r-N,L,D-1),P++,T=0,L=D,b=v,N=0,S=135<o?-v-p:v+p),_g(this,B,S,0),F=0,0===T?(w=B.bq,x=B.oq,M=z.width,C=z.height,(null===w||null===x||o!==Kg(B))&&(w=qg(this,2),x=qg(this,2),w[0].h(0,0),w[1].h(M,0),x[0].h(0,C),x[1].h(M,C))):(I=j(),C=Yg(this,t,B,w,x,M,C,I),F=C.x,w=I[0],x=I[1],M=C.width,C=C.height,A(I),N<z.height&&0>F&&(Vg(t,0,-F,L,D-1),Hg(w,0,-F),Hg(x,0,-F),F=0)),B.T.h(S,F),y=Math.max(y,C),v=Math.max(v,b+(0===P?0:p)+z.width),N=C;T++}switch(0<P&&(e?(y+=Math.max(0,i),S<v&&Rg(t,l,v-S,0,L,a-1),0<g&&(h||Vg(t,g,0,0,a-1),v+=g)):(v+=Math.max(0,i),N<y&&Rg(t,l,0,y-N,L,a-1),0<g&&(h||Vg(t,0,g,0,a-1),y+=g))),g=h=0,l){case om:e?h+=v/2-t.focus.x-d/2:g+=y/2-t.focus.y-d/2;break;case rm:0<P?e?h+=v/2-t.focus.x-d/2:g+=y/2-t.focus.y-d/2:e?(O=s[0].T.x+s[0].ia.x,h+=O+(s[a-1].T.x+s[a-1].ia.x+2*s[a-1].focus.x-O)/2-t.focus.x-d/2):(O=s[0].T.y+s[0].ia.y,g+=O+(s[a-1].T.y+s[a-1].ia.y+2*s[a-1].focus.y-O)/2-t.focus.y-d/2);break;case sm:e?(h-=d,v+=d):(g-=d,y+=d);break;case am:e?(h+=v-t.width+d,v+=d):(g+=y-t.height+d,y+=d);break;case lm:e?h+=1<a?O+f/2-t.focus.x:s[0].focus.x-t.focus.x+s[0].ia.x:g+=1<a?O+f/2-t.focus.y:s[0].focus.y-t.focus.y+s[0].ia.y;break;case um:e?h+=v+f/2-t.focus.x:g+=y+f/2-t.focus.y;break;case cm:break;default:k(\"Unhandled alignment value \"+l.toString())}for(d=0;d<a;d++)O=s[d],e?O.T.h(O.T.x+O.ia.x-h,O.T.y+(135<o?(u?-y:-O.ua.height)+O.ia.y-i:m+i+O.ia.y)):O.T.h(O.T.x+(135<o?(u?-v:-O.ua.width)+O.ia.x-i:n+i+O.ia.x),O.T.y+O.ia.y-g);if(a=s=0,u?e?(v=Fg(t,v,h),0>h&&(h=0),135<o&&(g+=y+i),y+=m+i,l===cm&&(s+=f/2+t.focus.x),a+=m+i):(135<o&&(h+=v+i),v+=n+i,y=Ig(t,y,g),0>g&&(g=0),l===cm&&(a+=f/2+t.focus.y),s+=n+i):e?(null===t.comments?n>v&&(v=Eg(l,n-v,0),s=v.x,a=v.y,v=n,h=0):v=Fg(t,v,h),0>h&&(s-=h,h=0),135<o&&(g+=y+i),y=Math.max(Math.max(y,m),y+m+i),a+=m+i):(135<o&&(h+=v+i),v=Math.max(Math.max(v,n),v+n+i),null===t.comments?m>y&&(y=Eg(l,0,m-y),s=y.x,a=y.y,y=m,g=0):y=Ig(t,y,g),0>g&&(a-=g,g=0),s+=n+i),0<P)o=qg(this,4),P=qg(this,4),e?(o[2].h(0,m+i),o[3].h(o[2].x,y),P[2].h(v,o[2].y),P[3].h(P[2].x,o[3].y)):(o[2].h(n+i,0),o[3].h(v,o[2].y),P[2].h(o[2].x,y),P[3].h(o[3].x,P[2].y));else{for(o=qg(this,w.length+2),P=qg(this,x.length+2),l=0;l<w.length;l++)u=w[l],o[l+2].h(u.x+s,u.y+a);for(l=0;l<x.length;l++)u=x[l],P[l+2].h(u.x+s,u.y+a)}e?(o[0].h(h,0),o[1].h(o[0].x,m),o[2].y<o[1].y&&(o[2].x>o[0].x?o[2].assign(o[1]):o[1].assign(o[2])),o[3].y<o[2].y&&(o[3].x>o[0].x?o[3].assign(o[2]):o[2].assign(o[3])),P[0].h(h+n,0),P[1].h(P[0].x,m),P[2].y<P[1].y&&(P[2].x<P[0].x?P[2].assign(P[1]):P[1].assign(P[2])),P[3].y<P[2].y&&(P[3].x<P[0].x?P[3].assign(P[2]):P[2].assign(P[3])),o[2].y-=i/2,P[2].y-=i/2):(o[0].h(0,g),o[1].h(n,o[0].y),o[2].x<o[1].x&&(o[2].y>o[0].y?o[2].assign(o[1]):o[1].assign(o[2])),o[3].x<o[2].x&&(o[3].y>o[0].y?o[3].assign(o[2]):o[2].assign(o[3])),P[0].h(0,g+m),P[1].h(n,P[0].y),P[2].x<P[1].x&&(P[2].y<P[0].y?P[2].assign(P[1]):P[1].assign(P[2])),P[3].x<P[2].x&&(P[3].y<P[0].y?P[3].assign(P[2]):P[2].assign(P[3])),o[2].x-=i/2,P[2].x-=i/2),Gg(this,w),Gg(this,x),t.bq=o,t.oq=P,t.ia.h(h,g),t.ua.h(v,y)}break;default:k(\"Unhandled compaction value \"+t.compaction.toString())}}},bg.prototype.arrangeTrees=function(){if(this.Ab===wm)for(var t=this.Fb.iterator;t.next();){var e=t.value;if(e instanceof Sm){var i=e.node;if(null!==i){var n=i.position;i=n.x,n=n.y,isFinite(i)||(i=0),isFinite(n)||(n=0),Xg(this,e,i,n)}}}else{for(t=[],e=this.Fb.iterator;e.next();)i=e.value,i instanceof Sm&&t.push(i);switch(this.sorting){case tm:break;case em:t.reverse();break;case im:t.sort(this.comparer);break;case nm:t.sort(this.comparer),t.reverse();break;default:k(\"Unhandled sorting value \"+this.sorting.toString())}for(i=this.arrangementOrigin,e=i.x,i=i.y,n=0;n<t.length;n++){var o=t[n];switch(Xg(this,o,e+o.ia.x,i+o.ia.y),this.Ab){case ym:i+=o.ua.height+this.wd.height;break;case bm:e+=o.ua.width+this.wd.width;break;default:k(\"Unhandled arrangement value \"+this.Ab.toString())}}}},bg.prototype.commitLayout=function(){this.Jv(),this.commitNodes(),this.Mu(),this.isRouting&&this.commitLinks()},bg.prototype.commitNodes=function(){for(var t=this.network.vertexes.iterator;t.next();)t.value.commit();for(t.reset();t.next();)this.layoutComments(t.value)},bg.prototype.Mu=function(){if(this.layerStyle===Mm){for(var t=this.iw,e=[],i=null,n=this.network.vertexes.iterator;n.next();){var o=n.value;null===i?i=o.bounds.copy():i.Jc(o.bounds);var r=e[o.level];r=void 0===r?$g(o):Math.max(r,$g(o)),e[o.level]=r}for(n=0;n<e.length;n++)void 0===e[n]&&(e[n]=0);if(90===this.angle||270===this.angle?(i.Uc(this.nodeSpacing/2,this.layerSpacing),n=new mt(-this.nodeSpacing/2,-this.layerSpacing/2)):(i.Uc(this.layerSpacing,this.nodeSpacing/2),n=new mt(-this.layerSpacing/2,-this.nodeSpacing/2)),o=[],i=90===this.angle||270===this.angle?i.width:i.height,r=0,180===this.angle||270===this.angle)for(var s=0;s<t.length;s++)r+=t[s]+e[s];for(s=0;s<t.length;s++){var a=t[s]+e[s];270===this.angle?(r-=a,o.push(new _t(0,r,i,a))):90===this.angle?(o.push(new _t(0,r,i,a)),r+=a):180===this.angle?(r-=a,o.push(new _t(r,0,a,i))):(o.push(new _t(r,0,a,i)),r+=a)}this.commitLayers(o,n)}},bg.prototype.commitLayers=function(){},bg.prototype.commitLinks=function(){for(var t=this.network.edges.iterator;t.next();)t.value.commit()},bg.prototype.Jv=function(){for(var t=this.Fb.iterator;t.next();){var e=t.value;e instanceof Sm&&Ug(this,e)}},bg.prototype.setPortSpots=function(t){var e=t.alignment;if(Tg(e)){var i=this.Zc===Zg,n=Kg(t);switch(n){case 0:var o=Ve;break;case 90:o=_e;break;case 180:o=Re;break;default:o=Ee}var r=t.children,s=r.length;switch(e){case lm:case hm:for(e=0;e<s;e++){var a=r[e];if(a=(i?a.sourceEdges:a.destinationEdges).first(),null!==a&&(a=a.link,null!==a)){var l=90===n||270===n?Re:Ee;if(1===s||e===s-1&&1===s%2)switch(n){case 0:l=Re;break;case 90:l=Ee;break;case 180:l=Ve;break;default:l=_e}else 0===e%2&&(l=90===n||270===n?Ve:_e);i?(t.setsPortSpot&&(a.fromSpot=o),t.setsChildPortSpot&&(a.toSpot=l)):(t.setsPortSpot&&(a.fromSpot=l),t.setsChildPortSpot&&(a.toSpot=o))}}break;case um:for(n=90===n||270===n?Ve:_e,r=i?t.destinationEdges:t.sourceEdges;r.next();)s=r.value.link,null!==s&&(i?(t.setsPortSpot&&(s.fromSpot=o),t.setsChildPortSpot&&(s.toSpot=n)):(t.setsPortSpot&&(s.fromSpot=n),t.setsChildPortSpot&&(s.toSpot=o)));break;case cm:for(n=90===n||270===n?Re:Ee,r=i?t.destinationEdges:t.sourceEdges;r.next();)s=r.value.link,null!==s&&(i?(t.setsPortSpot&&(s.fromSpot=o),t.setsChildPortSpot&&(s.toSpot=n)):(t.setsPortSpot&&(s.fromSpot=n),t.setsChildPortSpot&&(s.toSpot=o)))}}else if(i=Kg(t),this.Zc===Zg){for(o=t.destinationEdges;o.next();)if(n=o.value.link,null!==n){if(t.setsPortSpot)if(t.portSpot.Kb())switch(i){case 0:n.fromSpot=Ve;break;case 90:n.fromSpot=_e;break;case 180:n.fromSpot=Re;break;default:n.fromSpot=Ee}else n.fromSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Kb())switch(i){case 0:n.toSpot=Re;break;case 90:n.toSpot=Ee;break;case 180:n.toSpot=Ve;break;default:n.toSpot=_e}else n.toSpot=t.childPortSpot}}else for(o=t.sourceEdges;o.next();)if(n=o.value.link,null!==n){if(t.setsPortSpot)if(t.portSpot.Kb())switch(i){case 0:n.toSpot=Ve;break;case 90:n.toSpot=_e;break;case 180:n.toSpot=Re;break;default:n.toSpot=Ee}else n.toSpot=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Kb())switch(i){case 0:n.fromSpot=Re;break;case 90:n.fromSpot=Ee;break;case 180:n.fromSpot=Ve;break;default:n.fromSpot=_e}else n.fromSpot=t.childPortSpot}},p.Object.defineProperties(bg.prototype,{roots:{get:function(){return this.Fb},set:function(t){this.Fb!==t&&(this.Fb=t,this.B())}},path:{get:function(){return this.Mo},set:function(t){this.Mo!==t&&(this.Mo=t,this.B())}},treeStyle:{get:function(){return this.Dp},set:function(t){this.Ab===t||t!==pm&&t!==mm&&t!==gm&&t!==vm||(this.Dp=t,this.B())}},layerStyle:{get:function(){return this.Jr},set:function(t){this.Ab===t||t!==xm&&t!==km&&t!==Mm||(this.Jr=t,this.B())}},comments:{get:function(){return this.Xc},set:function(t){this.Xc!==t&&(this.Xc=t,this.B())}},arrangement:{get:function(){return this.Ab},set:function(t){this.Ab===t||t!==ym&&t!==bm&&t!==wm||(this.Ab=t,this.B())}},arrangementSpacing:{get:function(){return this.wd},set:function(t){this.wd.A(t)||(this.wd.assign(t),this.B())}},rootDefaults:{get:function(){return this.U},set:function(t){this.U!==t&&(this.U=t,this.B())}},alternateDefaults:{get:function(){return this.V},set:function(t){this.V!==t&&(this.V=t,this.B())}},sorting:{get:function(){return this.U.sorting},set:function(t){this.U.sorting===t||t!==tm&&t!==em&&t!==im&&!nm||(this.U.sorting=t,this.B())}},comparer:{get:function(){return this.U.comparer},set:function(t){this.U.comparer!==t&&(this.U.comparer=t,this.B())}},angle:{get:function(){return this.U.angle},set:function(t){this.U.angle!==t&&(0===t||90===t||180===t||270===t?(this.U.angle=t,this.B()):k(\"TreeLayout.angle must be 0, 90, 180, or 270\"))}},alignment:{get:function(){return this.U.alignment},set:function(t){this.U.alignment!==t&&(this.U.alignment=t,this.B())}},nodeIndent:{get:function(){return this.U.nodeIndent},set:function(t){this.U.nodeIndent!==t&&0<=t&&(this.U.nodeIndent=t,this.B())}},nodeIndentPastParent:{get:function(){return this.U.nodeIndentPastParent},set:function(t){this.U.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.U.nodeIndentPastParent=t,this.B())}},nodeSpacing:{get:function(){return this.U.nodeSpacing},set:function(t){this.U.nodeSpacing!==t&&(this.U.nodeSpacing=t,this.B())}},layerSpacing:{get:function(){return this.U.layerSpacing},set:function(t){this.U.layerSpacing!==t&&(this.U.layerSpacing=t,this.B())}},layerSpacingParentOverlap:{get:function(){return this.U.layerSpacingParentOverlap},set:function(t){this.U.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.U.layerSpacingParentOverlap=t,this.B())}},compaction:{get:function(){return this.U.compaction},set:function(t){this.U.compaction===t||t!==fm&&t!==dm||(this.U.compaction=t,this.B())}},breadthLimit:{get:function(){return this.U.breadthLimit},set:function(t){this.U.breadthLimit!==t&&0<=t&&(this.U.breadthLimit=t,this.B())}},rowSpacing:{get:function(){return this.U.rowSpacing},set:function(t){this.U.rowSpacing!==t&&(this.U.rowSpacing=t,this.B())}},rowIndent:{get:function(){return this.U.rowIndent},set:function(t){this.U.rowIndent!==t&&0<=t&&(this.U.rowIndent=t,this.B())}},commentSpacing:{get:function(){return this.U.commentSpacing},set:function(t){this.U.commentSpacing!==t&&(this.U.commentSpacing=t,this.B())}},commentMargin:{get:function(){return this.U.commentMargin},set:function(t){this.U.commentMargin!==t&&(this.U.commentMargin=t,this.B())}},setsPortSpot:{get:function(){return this.U.setsPortSpot},set:function(t){this.U.setsPortSpot!==t&&(this.U.setsPortSpot=t,this.B())}},portSpot:{get:function(){return this.U.portSpot},set:function(t){this.U.portSpot.A(t)||(this.U.portSpot=t,this.B())}},setsChildPortSpot:{get:function(){return this.U.setsChildPortSpot},set:function(t){this.U.setsChildPortSpot!==t&&(this.U.setsChildPortSpot=t,this.B())}},childPortSpot:{get:function(){return this.U.childPortSpot},set:function(t){this.U.childPortSpot.A(t)||(this.U.childPortSpot=t,this.B())}},alternateSorting:{get:function(){return this.V.sorting},set:function(t){this.V.sorting===t||t!==tm&&t!==em&&t!==im&&!nm||(this.V.sorting=t,this.B())}},alternateComparer:{get:function(){return this.V.comparer},set:function(t){this.V.comparer!==t&&(this.V.comparer=t,this.B())}},alternateAngle:{get:function(){return this.V.angle},set:function(t){this.V.angle===t||0!==t&&90!==t&&180!==t&&270!==t||(this.V.angle=t,this.B())}},alternateAlignment:{get:function(){return this.V.alignment},set:function(t){this.V.alignment!==t&&(this.V.alignment=t,this.B())}},alternateNodeIndent:{get:function(){return this.V.nodeIndent},set:function(t){this.V.nodeIndent!==t&&0<=t&&(this.V.nodeIndent=t,this.B())}},alternateNodeIndentPastParent:{get:function(){return this.V.nodeIndentPastParent},set:function(t){this.V.nodeIndentPastParent!==t&&0<=t&&1>=t&&(this.V.nodeIndentPastParent=t,this.B())}},alternateNodeSpacing:{get:function(){return this.V.nodeSpacing},set:function(t){this.V.nodeSpacing!==t&&(this.V.nodeSpacing=t,this.B())}},alternateLayerSpacing:{get:function(){return this.V.layerSpacing},set:function(t){this.V.layerSpacing!==t&&(this.V.layerSpacing=t,this.B())}},alternateLayerSpacingParentOverlap:{get:function(){return this.V.layerSpacingParentOverlap},set:function(t){this.V.layerSpacingParentOverlap!==t&&0<=t&&1>=t&&(this.V.layerSpacingParentOverlap=t,this.B())}},alternateCompaction:{get:function(){return this.V.compaction},set:function(t){this.V.compaction===t||t!==fm&&t!==dm||(this.V.compaction=t,this.B())}},alternateBreadthLimit:{get:function(){return this.V.breadthLimit},set:function(t){this.V.breadthLimit!==t&&0<=t&&(this.V.breadthLimit=t,this.B())}},alternateRowSpacing:{get:function(){return this.V.rowSpacing},set:function(t){this.V.rowSpacing!==t&&(this.V.rowSpacing=t,this.B())}},alternateRowIndent:{get:function(){return this.V.rowIndent},set:function(t){this.V.rowIndent!==t&&0<=t&&(this.V.rowIndent=t,this.B())}},alternateCommentSpacing:{get:function(){return this.V.commentSpacing},set:function(t){this.V.commentSpacing!==t&&(this.V.commentSpacing=t,this.B())}},alternateCommentMargin:{get:function(){return this.V.commentMargin},set:function(t){this.V.commentMargin!==t&&(this.V.commentMargin=t,this.B())}},alternateSetsPortSpot:{get:function(){return this.V.setsPortSpot},set:function(t){this.V.setsPortSpot!==t&&(this.V.setsPortSpot=t,this.B())}},alternatePortSpot:{get:function(){return this.V.portSpot},set:function(t){this.V.portSpot.A(t)||(this.V.portSpot=t,this.B())}},alternateSetsChildPortSpot:{get:function(){return this.V.setsChildPortSpot},set:function(t){this.V.setsChildPortSpot!==t&&(this.V.setsChildPortSpot=t,this.B())}},alternateChildPortSpot:{get:function(){return this.V.childPortSpot},set:function(t){this.V.childPortSpot.A(t)||(this.V.childPortSpot=t,this.B())}}});var Jg=new K(bg,\"PathDefault\",-1),Zg=new K(bg,\"PathDestination\",0),Qg=new K(bg,\"PathSource\",1),tm=new K(bg,\"SortingForwards\",10),em=new K(bg,\"SortingReverse\",11),im=new K(bg,\"SortingAscending\",12),nm=new K(bg,\"SortingDescending\",13),om=new K(bg,\"AlignmentCenterSubtrees\",20),rm=new K(bg,\"AlignmentCenterChildren\",21),sm=new K(bg,\"AlignmentStart\",22),am=new K(bg,\"AlignmentEnd\",23),lm=new K(bg,\"AlignmentBus\",24),hm=new K(bg,\"AlignmentBusBranching\",25),um=new K(bg,\"AlignmentTopLeftBus\",26),cm=new K(bg,\"AlignmentBottomRightBus\",27),fm=new K(bg,\"CompactionNone\",30),dm=new K(bg,\"CompactionBlock\",31),pm=new K(bg,\"StyleLayered\",40),gm=new K(bg,\"StyleLastParents\",41),mm=new K(bg,\"StyleAlternating\",42),vm=new K(bg,\"StyleRootOnly\",43),ym=new K(bg,\"ArrangementVertical\",50),bm=new K(bg,\"ArrangementHorizontal\",51),wm=new K(bg,\"ArrangementFixedRoots\",52),xm=new K(bg,\"LayerIndividual\",60),km=new K(bg,\"LayerSiblings\",61),Mm=new K(bg,\"LayerUniform\",62);function Cm(t){ff.call(this,t)}function Sm(t){vf.call(this,t),this.La=!1,this.Kc=null,this.K=[],this.Wb=this.Vb=this.ba=this.Ma=0,this.Xc=null,this.T=new mt(0,0),this.ua=new It(0,0),this.ia=new mt(0,0),this.um=this.tm=this.Qz=!1,this.oq=this.bq=null,this.Qc=tm,this.Mc=yf,this.zc=0,this.wb=rm,this.Xr=this.Wr=0,this.Zr=20,this.ke=50,this.Ir=0,this.Pq=dm,this.Iq=0,this.ls=25,this.Oq=this.ks=10,this.Nq=20,this.vs=!0,this.gs=Ae,this.us=!0,this.Lq=Ae}function Nm(t){bf.call(this,t),this.ou=new mt(0,0)}bg.className=\"TreeLayout\",bg.PathDefault=Jg,bg.PathDestination=Zg,bg.PathSource=Qg,bg.SortingForwards=tm,bg.SortingReverse=em,bg.SortingAscending=im,bg.SortingDescending=nm,bg.AlignmentCenterSubtrees=om,bg.AlignmentCenterChildren=rm,bg.AlignmentStart=sm,bg.AlignmentEnd=am,bg.AlignmentBus=lm,bg.AlignmentBusBranching=hm,bg.AlignmentTopLeftBus=um,bg.AlignmentBottomRightBus=cm,bg.CompactionNone=fm,bg.CompactionBlock=dm,bg.StyleLayered=pm,bg.StyleLastParents=gm,bg.StyleAlternating=mm,bg.StyleRootOnly=vm,bg.ArrangementVertical=ym,bg.ArrangementHorizontal=bm,bg.ArrangementFixedRoots=wm,bg.LayerIndividual=xm,bg.LayerSiblings=km,bg.LayerUniform=Mm,d(Cm,ff),Cm.prototype.createVertex=function(){return new Sm(this)},Cm.prototype.createEdge=function(){return new Nm(this)},Cm.className=\"TreeNetwork\",d(Sm,vf),Sm.prototype.copyInheritedPropertiesFrom=function(t){null!==t&&(this.Qc=t.sorting,this.Mc=t.comparer,this.zc=t.angle,this.wb=t.alignment,this.Wr=t.nodeIndent,this.Xr=t.nodeIndentPastParent,this.Zr=t.nodeSpacing,this.ke=t.layerSpacing,this.Ir=t.layerSpacingParentOverlap,this.Pq=t.compaction,this.Iq=t.breadthLimit,this.ls=t.rowSpacing,this.ks=t.rowIndent,this.Oq=t.commentSpacing,this.Nq=t.commentMargin,this.vs=t.setsPortSpot,this.gs=t.portSpot,this.us=t.setsChildPortSpot,this.Lq=t.childPortSpot)},p.Object.defineProperties(Sm.prototype,{initialized:{get:function(){return this.La},set:function(t){this.La!==t&&(this.La=t)}},parent:{get:function(){return this.Kc},set:function(t){this.Kc!==t&&(this.Kc=t)}},children:{get:function(){return this.K},set:function(t){if(this.K!==t){if(null!==t)for(var e=t.length,i=0;i<e;i++);this.K=t}}},level:{get:function(){return this.Ma},set:function(t){this.Ma!==t&&(this.Ma=t)}},descendantCount:{get:function(){return this.ba},set:function(t){this.ba!==t&&(this.ba=t)}},maxChildrenCount:{get:function(){return this.Vb},set:function(t){this.Vb!==t&&(this.Vb=t)}},maxGenerationCount:{get:function(){return this.Wb},set:function(t){this.Wb!==t&&(this.Wb=t)}},comments:{get:function(){return this.Xc},set:function(t){if(this.Xc!==t){if(null!==t)for(var e=t.length,i=0;i<e;i++);this.Xc=t}}},sorting:{get:function(){return this.Qc},set:function(t){this.Qc!==t&&(this.Qc=t)}},comparer:{get:function(){return this.Mc},set:function(t){this.Mc!==t&&(this.Mc=t)}},angle:{get:function(){return this.zc},set:function(t){this.zc!==t&&(this.zc=t)}},alignment:{get:function(){return this.wb},set:function(t){this.wb!==t&&(this.wb=t)}},nodeIndent:{get:function(){return this.Wr},set:function(t){this.Wr!==t&&(this.Wr=t)}},nodeIndentPastParent:{get:function(){return this.Xr},set:function(t){this.Xr!==t&&(this.Xr=t)}},nodeSpacing:{get:function(){return this.Zr},set:function(t){this.Zr!==t&&(this.Zr=t)}},layerSpacing:{get:function(){return this.ke},set:function(t){this.ke!==t&&(this.ke=t)}},layerSpacingParentOverlap:{get:function(){return this.Ir},set:function(t){this.Ir!==t&&(this.Ir=t)}},compaction:{get:function(){return this.Pq},set:function(t){this.Pq!==t&&(this.Pq=t)}},breadthLimit:{get:function(){return this.Iq},set:function(t){this.Iq!==t&&(this.Iq=t)}},rowSpacing:{get:function(){return this.ls},set:function(t){this.ls!==t&&(this.ls=t)}},rowIndent:{get:function(){return this.ks},set:function(t){this.ks!==t&&(this.ks=t)}},commentSpacing:{get:function(){return this.Oq},set:function(t){this.Oq!==t&&(this.Oq=t)}},commentMargin:{get:function(){return this.Nq},set:function(t){this.Nq!==t&&(this.Nq=t)}},setsPortSpot:{get:function(){return this.vs},set:function(t){this.vs!==t&&(this.vs=t)}},portSpot:{get:function(){return this.gs},set:function(t){this.gs.A(t)||(this.gs=t)}},setsChildPortSpot:{get:function(){return this.us},set:function(t){this.us!==t&&(this.us=t)}},childPortSpot:{get:function(){return this.Lq},set:function(t){this.Lq.A(t)||(this.Lq=t)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.T},set:function(t){this.T.set(t)}},subtreeSize:{get:function(){return this.ua},set:function(t){this.ua.set(t)}},subtreeOffset:{get:function(){return this.ia},set:function(t){this.ia.set(t)}}}),Sm.className=\"TreeVertex\",d(Nm,bf),Nm.prototype.commit=function(){var t=this.link;if(null!==t&&!t.isAvoiding){var e=this.network.layout,i=null,n=null;switch(e.Zc){case Zg:i=this.fromVertex,n=this.toVertex;break;case Qg:i=this.toVertex,n=this.fromVertex;break;default:k(\"Unhandled path value \"+e.Zc.toString())}if(null!==i&&null!==n)if(e=this.ou,0!==e.x||0!==e.y||i.Qz){n=i.bounds;var o=Kg(i),r=$g(i),s=i.rowSpacing;t.Yi();var a,l=t.curve===Lc,h=t.isOrthogonal;if(t.Bh(),h||l){for(a=2;4<t.pointsCount;)t.zv(2);var u=t.i(1),c=t.i(2)}else{for(a=1;3<t.pointsCount;)t.zv(1);u=t.i(0),c=t.i(t.pointsCount-1)}var f=t.i(t.pointsCount-1);0===o?(i.alignment===am?(o=n.bottom+e.y,0===e.y&&u.y>f.y+i.rowIndent&&(o=Math.min(o,Math.max(u.y,o-Wg(i))))):i.alignment===sm?(o=n.top+e.y,0===e.y&&u.y<f.y-i.rowIndent&&(o=Math.max(o,Math.min(u.y,o+Wg(i))))):o=i.tm||i.um&&1===i.maxGenerationCount?n.top-i.ia.y+e.y:n.y+n.height/2+e.y,l?(t.m(a,u.x,o),a++,t.m(a,n.right+r,o),a++,t.m(a,n.right+r+(e.x-s)/3,o),a++,t.m(a,n.right+r+2*(e.x-s)/3,o),a++,t.m(a,n.right+r+(e.x-s),o),a++,t.m(a,c.x,o)):(h&&(t.m(a,n.right+r/2,u.y),a++),t.m(a,n.right+r/2,o),a++,t.m(a,n.right+r+e.x-(h?s/2:s),o),a++,h&&t.m(a,t.i(a-1).x,c.y))):90===o?(i.alignment===am?(o=n.right+e.x,0===e.x&&u.x>f.x+i.rowIndent&&(o=Math.min(o,Math.max(u.x,o-Wg(i))))):i.alignment===sm?(o=n.left+e.x,0===e.x&&u.x<f.x-i.rowIndent&&(o=Math.max(o,Math.min(u.x,o+Wg(i))))):o=i.tm||i.um&&1===i.maxGenerationCount?n.left-i.ia.x+e.x:n.x+n.width/2+e.x,l?(t.m(a,o,u.y),a++,t.m(a,o,n.bottom+r),a++,t.m(a,o,n.bottom+r+(e.y-s)/3),a++,t.m(a,o,n.bottom+r+2*(e.y-s)/3),a++,t.m(a,o,n.bottom+r+(e.y-s)),a++,t.m(a,o,c.y)):(h&&(t.m(a,u.x,n.bottom+r/2),a++),t.m(a,o,n.bottom+r/2),a++,t.m(a,o,n.bottom+r+e.y-(h?s/2:s)),a++,h&&t.m(a,c.x,t.i(a-1).y))):180===o?(i.alignment===am?(o=n.bottom+e.y,0===e.y&&u.y>f.y+i.rowIndent&&(o=Math.min(o,Math.max(u.y,o-Wg(i))))):i.alignment===sm?(o=n.top+e.y,0===e.y&&u.y<f.y-i.rowIndent&&(o=Math.max(o,Math.min(u.y,o+Wg(i))))):o=i.tm||i.um&&1===i.maxGenerationCount?n.top-i.ia.y+e.y:n.y+n.height/2+e.y,l?(t.m(a,u.x,o),a++,t.m(a,n.left-r,o),a++,t.m(a,n.left-r+(e.x+s)/3,o),a++,t.m(a,n.left-r+2*(e.x+s)/3,o),a++,t.m(a,n.left-r+(e.x+s),o),a++,t.m(a,c.x,o)):(h&&(t.m(a,n.left-r/2,u.y),a++),t.m(a,n.left-r/2,o),a++,t.m(a,n.left-r+e.x+(h?s/2:s),o),a++,h&&t.m(a,t.i(a-1).x,c.y))):270===o?(i.alignment===am?(o=n.right+e.x,0===e.x&&u.x>f.x+i.rowIndent&&(o=Math.min(o,Math.max(u.x,o-Wg(i))))):i.alignment===sm?(o=n.left+e.x,0===e.x&&u.x<f.x-i.rowIndent&&(o=Math.max(o,Math.min(u.x,o+Wg(i))))):o=i.tm||i.um&&1===i.maxGenerationCount?n.left-i.ia.x+e.x:n.x+n.width/2+e.x,l?(t.m(a,o,u.y),a++,t.m(a,o,n.top-r),a++,t.m(a,o,n.top-r+(e.y+s)/3),a++,t.m(a,o,n.top-r+2*(e.y+s)/3),a++,t.m(a,o,n.top-r+(e.y+s)),a++,t.m(a,o,c.y)):(h&&(t.m(a,u.x,n.top-r/2),a++),t.m(a,o,n.top-r/2),a++,t.m(a,o,n.top-r+e.y+(h?s/2:s)),a++,h&&t.m(a,c.x,t.i(a-1).y))):k(\"Invalid angle \"+o),t.kf()}else t=this.link,r=Kg(i),r!==Kg(n)&&(s=$g(i),l=i.bounds,i=n.bounds,0===r&&i.left-l.right<s+1||90===r&&i.top-l.bottom<s+1||180===r&&l.left-i.right<s+1||270===r&&l.top-i.bottom<s+1||(t.Yi(),i=t.curve===Lc,e=t.isOrthogonal,n=Tg(this.fromVertex.alignment),t.Bh(),0===r?(r=l.right+s/2,i?4===t.pointsCount&&(i=t.i(3).y,t.M(1,r-20,t.i(1).y),t.m(2,r-20,i),t.m(3,r,i),t.m(4,r+20,i),t.M(5,t.i(5).x,i)):e?n?t.M(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.M(2,r,t.i(2).y),t.M(3,r,t.i(3).y)):4===t.pointsCount?t.m(2,r,t.i(2).y):3===t.pointsCount?t.M(1,r,t.i(2).y):2===t.pointsCount&&t.m(1,r,t.i(1).y)):90===r?(r=l.bottom+s/2,i?4===t.pointsCount&&(i=t.i(3).x,t.M(1,t.i(1).x,r-20),t.m(2,i,r-20),t.m(3,i,r),t.m(4,i,r+20),t.M(5,i,t.i(5).y)):e?n?t.M(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.M(2,t.i(2).x,r),t.M(3,t.i(3).x,r)):4===t.pointsCount?t.m(2,t.i(2).x,r):3===t.pointsCount?t.M(1,t.i(2).x,r):2===t.pointsCount&&t.m(1,t.i(1).x,r)):180===r?(r=l.left-s/2,i?4===t.pointsCount&&(i=t.i(3).y,t.M(1,r+20,t.i(1).y),t.m(2,r+20,i),t.m(3,r,i),t.m(4,r-20,i),t.M(5,t.i(5).x,i)):e?n?t.M(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.M(2,r,t.i(2).y),t.M(3,r,t.i(3).y)):4===t.pointsCount?t.m(2,r,t.i(2).y):3===t.pointsCount?t.M(1,r,t.i(2).y):2===t.pointsCount&&t.m(1,r,t.i(1).y)):270===r&&(r=l.top-s/2,i?4===t.pointsCount&&(i=t.i(3).x,t.M(1,t.i(1).x,r+20),t.m(2,i,r+20),t.m(3,i,r),t.m(4,i,r-20),t.M(5,i,t.i(5).y)):e?n?t.M(3,t.i(2).x,t.i(4).y):6===t.pointsCount&&(t.M(2,t.i(2).x,r),t.M(3,t.i(3).x,r)):4===t.pointsCount?t.m(2,t.i(2).x,r):3===t.pointsCount?t.M(1,t.i(2).x,r):2===t.pointsCount&&t.m(1,t.i(1).x,r)),t.kf()))}},p.Object.defineProperties(Nm.prototype,{relativePoint:{get:function(){return this.ou},set:function(t){this.ou.set(t)}}}),Nm.className=\"TreeEdge\",Ai.prototype.initializeStandardTools=function(){zi(this,\"Action\",new jn,this.mouseDownTools),zi(this,\"Relinking\",new xn,this.mouseDownTools),zi(this,\"LinkReshaping\",new Mn,this.mouseDownTools),zi(this,\"Rotating\",new On,this.mouseDownTools),zi(this,\"Resizing\",new Ln,this.mouseDownTools),zi(this,\"Linking\",new vn,this.mouseMoveTools),zi(this,\"Dragging\",new Hi,this.mouseMoveTools),zi(this,\"DragSelecting\",new Bn,this.mouseMoveTools),zi(this,\"Panning\",new zn,this.mouseMoveTools),zi(this,\"ContextMenu\",new En,this.mouseUpTools),zi(this,\"TextEditing\",new Kn,this.mouseUpTools),zi(this,\"ClickCreating\",new An,this.mouseUpTools),zi(this,\"ClickSelecting\",new Dn,this.mouseUpTools)},Jl(\"Horizontal\",new pl),Jl(\"Spot\",new ml),Jl(\"Table\",new yl),Jl(\"Viewbox\",new xl),Jl(\"TableRow\",new bl),Jl(\"TableColumn\",new wl),Jl(\"Graduated\",new Sl),us.add(xd.type,_f),us.add(Od.type,Gf);var Pm=v.go,Tm={get licenseKey(){return Do.licenseKey},set licenseKey(t){Do.licenseKey=t},get version(){return Do.version},Group:Ju,EnumValue:K,List:nt,Set:rt,Map:gt,Point:mt,Size:It,Rect:_t,Margin:ee,Spot:Ge,Geometry:Je,PathFigure:ci,PathSegment:fi,InputEvent:xi,DiagramEvent:ki,ChangedEvent:Mi,Model:Uf,GraphLinksModel:xd,TreeModel:Od,Binding:vd,Transaction:Ti,UndoManager:Li,CommandHandler:Gs,Tool:Di,DraggingTool:Hi,DraggingInfo:Is,LinkingBaseTool:fn,LinkingTool:vn,RelinkingTool:xn,LinkReshapingTool:Mn,ResizingTool:Ln,RotatingTool:On,ClickSelectingTool:Dn,ActionTool:jn,ClickCreatingTool:An,HTMLInfo:Fn,ContextMenuTool:En,DragSelectingTool:Bn,PanningTool:zn,TextEditingTool:Kn,ToolManager:Ai,AnimationManager:uo,Layer:Po,Diagram:Do,Palette:Vs,Overview:_s,Brush:Ra,GraphObject:Ks,Panel:Nl,RowColumnDefinition:eh,Shape:sh,TextBlock:mh,TextBlockMetrics:Hh,Picture:Yh,Part:lu,Adornment:ju,Node:Au,Link:nc,Placeholder:ic,Layout:hf,LayoutNetwork:ff,LayoutVertex:vf,LayoutEdge:bf,GridLayout:wf,PanelLayout:fl,CircularLayout:Dd,CircularNetwork:rp,CircularVertex:sp,CircularEdge:lp,ForceDirectedLayout:hp,ForceDirectedNetwork:wp,ForceDirectedVertex:xp,ForceDirectedEdge:kp,LayeredDigraphLayout:Cp,LayeredDigraphNetwork:mg,LayeredDigraphVertex:vg,LayeredDigraphEdge:yg,TreeLayout:bg,TreeNetwork:Cm,TreeVertex:Sm,TreeEdge:Nm};Pm&&Pm.version!==Tm.version&&k(\"WARNING: a `go` object on the root object is already defined with a version mismatch.\"+Pm.version+\". Replaced with version: \"+Tm.version),v.go=Tm,(\"undefined\"===typeof v||\"undefined\"===typeof v.module||\"object\"!==n(v.module.exports))&&v.define&&\"function\"===typeof v.define&&v.define.amd&&v.define(Tm),\"object\"===n(t.exports)&&(t.exports=\"undefined\"!==typeof e?e.go:self.go)}()}).call(this,i(\"c8ba\"))},\"5f87\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return a})),i.d(e,\"d\",(function(){return l})),i.d(e,\"b\",(function(){return h})),i.d(e,\"c\",(function(){return u}));var n=i(\"a78e\"),o=i.n(n),r=\"Admin-Token\",s=\"Admin-Expires-In\";function a(){return o.a.get(r)}function l(t){return o.a.set(r,t)}function h(){return o.a.remove(r)}function u(t){return o.a.set(s,t)}},\"5fda\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-link\",use:\"icon-link-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-link\"><path d=\"M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z\" /><path d=\"M116.426 2.821l8.753 8.753-56.734 56.734-8.753-8.745z\" /><path d=\"M127.893 37.982h-12.375V12.375H88.706V0h39.187z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"61f7\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return n}));i(\"498a\"),i(\"d3b7\");function n(t){return/^(https?:|mailto:|tel:)/.test(t)}},\"634a\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"HistoricalProcess\"},[i(\"el-button\",{attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-search\",size:\"mini\"},on:{click:function(e){t.searchData.page=1,t.queryLists()}}},[t._v(\"查询\")]),i(\"FormItemComponent\",{staticClass:\"form\",attrs:{formItemLists:t.formLists,buttonType:!1},on:{formChange:t.formChange}}),i(\"StandardTabletwo\",{staticClass:\"table\",attrs:{currentPage:t.searchData.page,pageSize:t.searchData.pageSize,total:t.total,columns:t.columns,data:t.data,standardTableEvent:t.standardTableEvent}}),i(\"Modal\",{attrs:{title:\"流程详情\",width:861,closable:!0,mask:!0,\"footer-hide\":!0,\"mask-closable\":!1},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:\"modalShow\"}},[t.modalShow?i(\"FlowChartShow\",{attrs:{instanceId:t.instanceId}}):t._e()],1)],1)},o=[],r=(i(\"a9e3\"),i(\"159b\"),i(\"d81d\"),i(\"d3b7\"),i(\"ddfb\")),s=i(\"b895\"),a=i(\"a237\"),l=i(\"6fb6\"),h=i(\"ff02\"),u=i(\"4360\"),c={name:\"HistoricalProcess\",components:{FormItemComponent:r[\"a\"],StandardTabletwo:a[\"a\"],FlowChartShow:l[\"a\"]},props:{falg:{type:Number,default:null},tabalive:{type:String,default:\"\"}},data:function(){var t=this;return{formLists:[{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"工作流编号\",filed:\"instanceId\",props:{regx:/^[0-9]*$/},event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"查询索引\",filed:\"businessNumber\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}},{row:1,col:1,component:s[\"a\"],item:{type:\"select\",title:\"单据类型\",filed:\"businessType\",options:[{value:0,label:\"发送成功\"},{value:1,label:\"发送失败(待发送)\"},{value:2,label:\"消费成功\"},{value:3,label:\"消费失败(待消费)\"}]}},{row:1,col:1,component:s[\"a\"],item:{type:\"DatePicker\",title:\"处理时间\",filed:\"updateTime\"}},{row:1,col:1,component:s[\"a\"],item:{type:\"input\",title:\"节点名称\",filed:\"nodeName\",event:{keydown:function(e){13===e.keyCode&&(t.searchData.page=1,t.queryLists())}}}}],searchData:{page:1,pageSize:10,searchType:\"0,1\",excuStatus:2,updateTime:[]},total:0,columns:[{title:\"工作流编号\",key:\"instanceId\"},{title:\"查询索引\",key:\"businessNumber\"},{title:\"单据类型\",key:\"businessName\"},{title:\"模板名称\",key:\"moduleName\"},{title:\"节点名称\",key:\"nodeName\"},{title:\"审批人\",key:\"approverName\"},{title:\"发起人\",key:\"initiatorName\"},{title:\"处理时间\",key:\"updateTime\"},{title:\"消耗时长\",key:\"durationTime\"},{title:\"流程状态\",key:\"processStatusName\",render:function(t,e){return 4===e.row.processStatus?t(\"Poptip\",{props:{trigger:\"hover\",content:e.row.submitErrorMsg,transfer:!0}},[t(\"span\",{style:{color:\"rgba(255, 0, 0, 1)\",cursor:\"pointer\"}},e.row.processStatusName)]):t(\"p\",{style:{maxWidth:\"160px\",overflow:\"hidden\",\"text-overflow\":\"ellipsis\",\"white-space\":\"nowrap\"}},e.row.processStatusName)}},{title:\"详情\",fixed:\"right\",render:function(e,i){return e(\"span\",{style:{color:\"rgba(16, 142, 233, 1)\",cursor:\"pointer\"},on:{click:function(){t.modalShow=!0,t.instanceId=i.row.instanceId}}},\"流程进度\")}}],data:[],standardTableEvent:{\"on-change\":function(e){t.searchData.page=e,t.queryLists()},\"on-page-size-change\":function(e){t.searchData.page=1,t.searchData.pageSize=e}},modalShow:!1,instanceId:null}},watch:{tabalive:function(t,e){\"历史流程\"===t&&(this.getselectOption(),this.queryLists())}},methods:{getselectOption:function(){var t=this;Object(h[\"e\"])().then((function(e){0===e.resultCode&&t.formLists.forEach((function(t){\"businessType\"===t.item.filed&&(t.item.options=e.data.relations.map((function(t){return t.value=t.businesskey,t.label=t.businessName,t})))}))}))},formChange:function(t){this.searchData=Object.assign({},this.searchData,t),\"[object Array]\"===Object.prototype.toString.call(this.searchData.businessType)&&0===this.searchData.businessType.length&&delete this.searchData.businessType},queryLists:function(){var t=this;this.searchData.updateTime&&this.searchData.updateTime[0]&&this.searchData.updateTime[1]?(this.searchData.startTime=new Date(this.searchData.updateTime[0]).format(\"yyyy-MM-dd hh:mm\"),this.searchData.endTime=new Date(this.searchData.updateTime[1]).format(\"yyyy-MM-dd hh:mm\")):(this.searchData.startTime=\"\",this.searchData.endTime=\"\");var e=Object.assign({},this.searchData);delete e.updateTime,Object(h[\"f\"])(e).then((function(e){if(0===e.resultCode){var i=e.data;t.total=i.total,t.data=i.records}else t.$message({message:e.resultMsg,type:\"warning\"})}))},submitTask:function(t){var e=this;Object(h[\"g\"])({instanceId:t}).then((function(t){0===t.data.resultCode&&e.msgSuccess(t.data.resultMsg)}))}},created:function(){this.falg&&(this.searchData.userId=u[\"a\"].getters.userId),this.getselectOption(),this.queryLists()}},f=c,d=(i(\"6983\"),i(\"2877\")),p=Object(d[\"a\"])(f,n,o,!1,null,null,null);e[\"a\"]=p.exports},\"63b0\":function(t,e,i){i(\"5319\"),i(\"ac1f\"),i(\"4d63\"),i(\"25f0\"),Date.prototype.format=function(t){var e={\"M+\":this.getMonth()+1,\"d+\":this.getDate(),\"h+\":this.getHours(),\"m+\":this.getMinutes(),\"s+\":this.getSeconds(),\"q+\":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+\"\").substr(4-RegExp.$1.length))),e)new RegExp(\"(\"+i+\")\").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[i]:(\"00\"+e[i]).substr((\"\"+e[i]).length)));return t},Date.prototype.plusDays=function(t){return new Date(this.getTime()+60*t*60*24*1e3)},Date.prototype.minusDays=function(t){return new Date(this.getTime()-60*t*60*24*1e3)},Date.prototype.plusMonths=function(t){var e=new Date(this);e.setMonth(this.getMonth()+t);var i=this.getMonth()+12*this.getFullYear(),n=e.getMonth()+12*e.getFullYear()-i;return n!==t&&e.setDate(0),e},Date.prototype.getStartOfNextMonth=function(){var t=new Date(this);return t.setDate(15),t.setMonth(this.getMonth()+1),t.setDate(1),t},Date.prototype.getEndOfNextMonth=function(){var t=new Date(this);return t.setDate(15),t.setMonth(this.getMonth()+2),t.setDate(0),t}},\"679a\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-search\",use:\"icon-search-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-search\"><path d=\"M124.884 109.812L94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"67bd\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-validCode\",use:\"icon-validCode-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-validCode\"><defs><style type=\"text/css\"></style></defs><path d=\"M513.3 958.5c-142.2 0-397.9-222.1-401.6-440.5V268c1.7-39.6 31.7-72.3 71.1-77.3 49-4.6 97.1-16.5 142.7-35.3 47.8-14 91.9-38.3 129.4-71.1 30.3-24.4 72.9-26.3 105.3-4.6 39.9 30.7 83.8 55.9 130.5 74.6 48.6 14.7 98.2 25.9 148.4 33.7 38.5 7.6 67.1 40.3 69.5 79.5 3.3 84.9 2.5 169.9-2.6 254.7-33.7 281.6-253.7 436.4-392.7 436.3z m-0.1-813.7c-7.2-0.2-14.3 2-20 6.4-39.7 35.2-86.8 61.1-137.7 75.7-46.8 19.2-96.2 31-146.6 35.2-11 3.2-18.8 13-19.5 24.4v230.1c3.5 180.3 223.3 361 323.9 361s287.3-120.2 317.6-360.5c7.3-142.7 0-228.6 0-229.6-1.3-13.3-11-24.3-24-27.3-49.6-7.7-98.6-19-146.5-33.7-46.3-19.5-89.7-45.3-129-76.7-5.8-3.8-12.7-5.5-19.5-4.9l1.3-0.1z\" fill=\"#C6CCDA\" p-id=\"1940\" /><path d=\"M750.1 428L490.7 673.2c-11.7 11.1-29.5 12.9-43.1 4.2l-6.8-5.8-141.2-149.4c-9.3-9.3-12.7-22.9-9-35.5 3.8-12.6 14.1-22.1 27-24.8 12.9-2.7 26.1 1.9 34.6 11.9L469 597.5l233.7-221c14.6-12.8 36.8-11.6 49.9 2.7 13.2 14.2 11.5 35.3-2.5 48.8\" fill=\"#C6CCDA\" p-id=\"1941\" /></symbol>'});s.a.add(a);e[\"default\"]=a},6861:function(t,e,i){t.exports={menuText:\"#bfcbd9\",menuActiveText:\"#409eff\",subMenuActiveText:\"#3c8dbc\",menuBg:\"#fafafa\",menuHover:\"#263445\",menuLightBg:\"#fff\",menuLightHover:\"#f0f1f5\",subMenuBg:\"#fafafa\",subMenuHover:\"#3c8dbc\",sideBarWidth:\"200px\",sidebarTitle:\"#fff\",sidebarLightTitle:\"#001529\"}},6976:function(t,e,i){\"use strict\";i(\"4c5b\")},6983:function(t,e,i){\"use strict\";i(\"28fa\")},\"6e55\":function(t,e,i){\"use strict\";i(\"43c3\")},\"6ef7\":function(t,e,i){},\"6fb6\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"FlowChartShow\"},[i(\"div\",{staticClass:\"flowDisplay\"},[i(\"div\",{staticClass:\"title\"},[i(\"span\"),i(\"p\",[t._v(\" 流程进度 - \"),i(\"span\",{staticClass:\"status\",style:t.processStyle},[t._v(t._s(t.processStatusName))])])]),i(\"div\",{attrs:{id:\"myFlowDesignerDiv\"}})]),i(\"div\",{staticClass:\"approvalHistory\"},[t._m(0),i(\"div\",{staticClass:\"approval\"},[i(\"Timeline\",t._l(t.approvalHistory,(function(e,n){return i(\"TimelineItem\",{key:n,attrs:{color:\"green\"}},[2===e.status?i(\"Icon\",{staticClass:\"approval\",attrs:{slot:\"dot\",type:\"iconbj_round\"},slot:\"dot\"}):t._e(),0===e.status?i(\"Icon\",{staticClass:\"success\",attrs:{slot:\"dot\",type:\"iconbj_round\"},slot:\"dot\"}):t._e(),[1,-1,-3,5,33].indexOf(e.status)>=0?i(\"Icon\",{staticClass:\"back\",attrs:{slot:\"dot\",type:\"iconbj_round\"},slot:\"dot\"}):t._e(),1!==e.nodeType&&2!==e.nodeType&&-3!==e.status?i(\"div\",{staticClass:\"approvalItem\"},[i(\"div\",{staticClass:\"approvalItemTitle\"},[2===e.status?i(\"p\",[t._v(\"待 \"+t._s(e.nodeName)+\" 审核\")]):t._e(),0===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" \"),i(\"span\",{staticStyle:{color:\"#09A155\"}},[t._v(t._s(e.statusName))])]):t._e(),1===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" \"),i(\"span\",{staticStyle:{color:\"#ED4014\"}},[t._v(\"驳回\")]),t._v(\"至 \"+t._s(e.backNodeName)+\" \")]):t._e(),-1===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" 关闭 \")]):t._e(),-3===e.status?i(\"p\",[t._v(\" \"+t._s(e.nodeName)+\" 已撤销 \")]):t._e(),5===Number(e.status)?i(\"p\",{staticStyle:{color:\"#ED4014\"}},[t._v(\" 条件不符 \")]):t._e(),33===Number(e.status)?i(\"p\",{staticStyle:{color:\"#ED4014\"}},[t._v(\" \"+t._s(e.nodeName)+\"审核 节点报错 \")]):t._e(),i(\"p\",[2===e.status?i(\"span\",[t._v(\"已等待\"+t._s(e.elapsedTime))]):t._e(),2!==e.status?i(\"span\",[t._v(\"耗时\"+t._s(e.elapsedTime))]):t._e(),e.flag?i(\"i\",{staticClass:\"iconfont iconios-arrow-up\",on:{click:function(i){return t.folding(e)}}}):t._e(),e.flag?t._e():i(\"i\",{staticClass:\"iconfont iconios-arrow-down\",on:{click:function(i){return t.folding(e)}}})])]),i(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.flag,expression:\"item.flag\"}],staticClass:\"approvalItemContent\"},[void 0!==e.nodeType?i(\"Table\",{attrs:{border:\"\",columns:t.columns,data:e.approvalLists}}):t._e(),5===Number(e.status)?i(\"div\",{staticClass:\"linksError\"},[i(\"p\",[t._v(\"流程报错:\"),i(\"span\",[t._v(t._s(e.errorType))])]),i(\"p\",[t._v(\"错误简述:\"),i(\"span\",[t._v(t._s(e.errorMsg))])]),i(\"p\",[t._v(\"人工干预:\"),i(\"span\",[t._v(t._s(e.actType)+\"至\"+t._s(e.manualNode)+\"审核\")])])]):t._e(),33===Number(e.status)?i(\"div\",{staticClass:\"linksError\"},[i(\"p\",[t._v(\"流程报错:\"),i(\"span\",[t._v(t._s(e.errorType))])]),i(\"p\",[t._v(\"错误简述:\"),i(\"span\",[t._v(t._s(e.errorMsg))])]),i(\"p\",[t._v(\"人工干预:\"),i(\"span\",[t._v(\"更改节点审批人为 \"+t._s(e.approvalName))])])]):t._e()],1)]):t._e(),1===e.nodeType?i(\"div\",{staticClass:\"approvalItem\"},[t._v(\" 开始进入审批 \")]):t._e(),2===e.nodeType?i(\"div\",{staticClass:\"approvalItem\"},[t._v(\" 审批结束 \")]):t._e(),-3===e.status?i(\"div\",{staticClass:\"approvalItem\"},[t._v(\" 发起人\"+t._s(e.initiatorName)+\"已撤销流程 \")]):t._e()],1)})),1)],1)])])},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"title\"},[i(\"span\"),i(\"p\",[t._v(\" 审批历史 \")])])}],r=(i(\"a9e3\"),i(\"a434\"),i(\"c740\"),i(\"d81d\"),i(\"a15b\"),i(\"5de0\"),i(\"a58b\")),s=i(\"ff02\"),a={name:\"FlowChartShow\",props:{instanceId:{type:[Number,String]}},data:function(){return{data:{},myDiagram:{},myDisplay:{},flowTableShow:!1,approvalHistory:[],columns:[{title:\"审批人\",key:\"approvalName\",render:function(t,e){return t(\"p\",{style:{display:\"flex\",\"align-items\":\"center\"}},[t(\"i\",{class:\"iconfont \".concat(2===e.row.approverType?\"iconios-people\":\"iconios-person\"),style:{\"margin-right\":\"5px\"}},null),t(\"span\",{},e.row.approvalName)])}},{title:\"审批操作\",key:\"approvalOperation\",render:function(t,e){return 0===e.row.approvalStatus?t(\"span\",{style:{color:\"#09A155\"}},e.row.approvalOperation):1===e.row.approvalStatus||-1===e.row.approvalStatus||-3===e.row.approvalStatus?t(\"span\",{style:{color:\"#ED4014\"}},e.row.approvalOperation):2===e.row.approvalStatus?t(\"span\",{},e.row.approvalOperation):void 0}},{title:\"审批意见\",key:\"approvalOpinions\"}],processStatus:null,processStatusName:\"\",processStyle:{},showNodes:\"\"}},mounted:function(){var t=this;this.$nextTick((function(){t.getChartInfo()}))},methods:{getChartInfo:function(){var t=this,e=this.instanceId?this.instanceId:this.$route.query.instanceId;Object(s[\"d\"])({instanceId:e}).then((function(e){if(0===e.resultCode){var i=e.data.guiStyle?JSON.parse(e.data.guiStyle):{},n=e.data.guiValue?e.data.guiValue:[];switch(t.myDiagram=Object.assign(t.myDiagram,i),t.approvalHistory=n,e.data.showNodes.indexOf(e.data.currentNode)>=0&&e.data.showNodes.splice(e.data.showNodes.findIndex((function(t){return t===e.data.data.currentNode})),1),e.data.showNodes.push(e.data.currentNode),t.showNodes=e.data.showNodes,t.processStatus=e.data.processStatus,e.data.processStatus){case 0:t.processStyle={color:\"#C8C8C8\"};break;case 1:t.processStyle={color:\"#FFA51F\"};break;case 2:t.processStyle={color:\"#ED4014\"};break;case 3:case 4:t.processStyle={color:\"#09A155\"};break;case-1:case-3:t.processStyle={color:\"#ED4014\"};break}t.processStatusName=e.data.processStatusName,t.myDisplay=new r[\"a\"](\"myFlowDesignerDiv\"),t.showFlowPath(t.myDisplay,e.data.currentNode)}}))},showFlowPath:function(t,e){var i=this.getFinishedNodes(e);t.loadFlow(this.myDiagram);var n=!1;-1!==this.processStatus&&-3!==this.processStatus||(n=!0),t.animateFlowPath(i,[],!1,n)},getFinishedNodes:function(t){var e=this.getNode();return e},getNode:function(){var t=this,e=[];return this.showNodes.map((function(i){t.myDiagram.nodeDataArray.every((function(t){return t.id!==i||(e.push(t.key),!1)}))})),e.join(\",\")},getErrorLinks:function(t){var e=null;this.myDiagram.nodeDataArray.every((function(i){return i.id!==t||(e=i.key,!1)})),this.myDisplay.diagram.findNodeForKey(String(e)).findLinksOutOf().each((function(t){console.log(t)}))},folding:function(t){t.flag=!t.flag}}},l=a,h=(i(\"181a\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,\"63b58d5e\",null);e[\"a\"]=u.exports},7154:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-dashboard\",use:\"icon-dashboard-usage\",viewBox:\"0 0 128 100\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 100\" id=\"icon-dashboard\"><path d=\"M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},7234:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-textarea\",use:\"icon-textarea-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-textarea\"><defs><style type=\"text/css\"></style></defs><path d=\"M896 160H128c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64z m0 608c0 16-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V256c0-16 12.8-32 32-32h704c19.2 0 32 12.8 32 32v512z\" p-id=\"2985\" /><path d=\"M224 288c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V320c0-16-12.8-32-32-32z m608 480c19.2 0 32-12.8 32-32V608L704 768h128z\" p-id=\"2986\" /></symbol>'});s.a.add(a);e[\"default\"]=a},7271:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-theme\",use:\"icon-theme-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-theme\"><path d=\"M125.5 36.984L95.336 2.83C93.735 1.018 91.565 0 89.3 0c-2.263 0-4.433 1.018-6.033 2.83l-3.786 4.286c-1.6 1.812-3.77 2.83-6.032 2.831H54.553c-2.263 0-4.434-1.018-6.033-2.83L44.734 2.83C43.134 1.018 40.964 0 38.701 0c-2.263 0-4.434 1.018-6.034 2.83L2.5 36.984C.9 38.796 0 41.254 0 43.815c0 2.562.899 5.02 2.5 6.831L14.565 64.31c2.178 2.468 5.367 3.403 8.33 2.444 1.35-.435 2.709.592 2.709 2.18v49.407c0 5.313 3.84 9.66 8.532 9.66h59.726c4.693 0 8.532-4.347 8.532-9.66V68.934c0-1.59 1.36-2.616 2.71-2.181 2.962.96 6.15.024 8.329-2.444L125.5 50.646c1.6-1.811 2.499-4.269 2.499-6.83 0-2.563-.899-5.02-2.5-6.832z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},7278:function(t,e,i){\"use strict\";i(\"906b\")},\"72d1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-guide\",use:\"icon-guide-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-guide\"><path d=\"M1.482 70.131l36.204 16.18 69.932-65.485-61.38 70.594 46.435 18.735c1.119.425 2.397-.17 2.797-1.363v-.085L127.998.047 1.322 65.874c-1.12.597-1.519 1.959-1.04 3.151.32.511.72.937 1.2 1.107zm44.676 57.821L64.22 107.26l-18.062-7.834v28.527z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"72e5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-fullscreen\",use:\"icon-fullscreen-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-fullscreen\"><path d=\"M38.47 52L52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76L14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"730d\":function(t,e,i){\"use strict\";i(\"4800\")},\"737d\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-cascader\",use:\"icon-cascader-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-cascader\"><defs><style type=\"text/css\"></style></defs><path d=\"M772.87036133 734.06115723c-43.34106445 0-80.00793458 27.93273926-93.76831055 66.57714843H475.90991211c-56.60705567 0-102.66723633-46.06018067-102.66723633-102.66723633V600.82446289h305.859375c13.76037598 38.64440918 50.42724609 66.57714844 93.76831055 66.57714844 55.12390137 0 99.94812012-44.82421875 99.94812012-99.94812012S827.9942627 467.50537109 772.87036133 467.50537109c-43.34106445 0-80.00793458 27.93273926-93.76831055 66.57714844H373.24267578V401.01062011h321.92687989c55.12390137 0 99.94812012-44.82421875 99.94812011-99.94812011V190.07312011C795.11767578 134.94921875 750.29345703 90.125 695.16955567 90.125H251.12963867C196.0057373 90.125 151.18151855 134.94921875 151.18151855 190.07312011V301.0625c0 55.12390137 44.82421875 99.94812012 99.94812012 99.94812012h55.53588867v296.96044921c0 93.35632325 75.97045898 169.32678223 169.32678224 169.32678223h203.19213866c13.76037598 38.64440918 50.42724609 66.57714844 93.76831055 66.57714844 55.12390137 0 99.94812012-44.82421875 99.94812012-99.94812012s-44.90661622-99.86572266-100.03051758-99.86572265z m0-199.89624024c18.37463379 0 33.28857422 14.91394043 33.28857422 33.28857423s-14.91394043 33.28857422-33.28857422 33.28857421-33.28857422-14.91394043-33.28857422-33.28857421 14.91394043-33.28857422 33.28857422-33.28857422zM217.75866699 301.0625V190.07312011c0-18.37463379 14.91394043-33.28857422 33.28857423-33.28857421h444.03991698c18.37463379 0 33.28857422 14.91394043 33.28857422 33.28857422V301.0625c0 18.37463379-14.91394043 33.28857422-33.28857422 33.28857422H251.12963867c-18.37463379 0-33.37097168-14.91394043-33.37097168-33.28857422z m555.11169434 566.23535156c-18.37463379 0-33.28857422-14.91394043-33.28857422-33.28857422 0-18.37463379 14.91394043-33.28857422 33.28857422-33.28857422s33.28857422 14.91394043 33.28857422 33.28857422c0.08239747 18.29223633-14.91394043 33.28857422-33.28857422 33.28857422z\" p-id=\"972\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"74a1\":function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"router-view\")},o=[],r=i(\"2877\"),s={},a=Object(r[\"a\"])(s,n,o,!1,null,null,null);e[\"a\"]=a.exports},\"74a2\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-eye-open\",use:\"icon-eye-open-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" id=\"icon-eye-open\"><defs><style></style></defs><path d=\"M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"76dd\":function(t,e,i){},7996:function(t,e,i){\"use strict\";i(\"171d\")},\"7d57\":function(t,e,i){\"use strict\";i(\"f259\")},\"7ded\":function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return o})),i.d(e,\"e\",(function(){return r})),i.d(e,\"b\",(function(){return s})),i.d(e,\"d\",(function(){return a})),i.d(e,\"a\",(function(){return l}));var n=i(\"b775\");function o(t,e,i,o){return Object(n[\"a\"])({url:\"/auth/login\",method:\"post\",data:{username:t,password:e,code:i,uuid:o}})}function r(){return Object(n[\"a\"])({url:\"/auth/refresh\",method:\"post\"})}function s(){return Object(n[\"a\"])({url:\"/system/user/getInfo\",method:\"get\"})}function a(){return Object(n[\"a\"])({url:\"/auth/logout\",method:\"delete\"})}function l(){return Object(n[\"a\"])({url:\"/code\",method:\"get\"})}},\"81a5\":function(t,e,i){t.exports=i.p+\"static/img/logo.eeed0dd2.png\"},8243:function(t,e,i){},\"83d6\":function(t,e){t.exports={title:\"潜山市云数据中心\",urls:\"http://192.168.101.10:8090\",sideTheme:\"theme-dark\",showSettings:!1,tagsView:!0,fixedHeader:!0,sidebarLogo:!0,errorLog:\"production\"}},\"84e5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-swagger\",use:\"icon-swagger-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-swagger\"><defs><style type=\"text/css\"></style></defs><path d=\"M64 223.995345h168.001164v47.997673c0 26.428509 18.878836 47.997673 41.984 47.997673h140.036654c23.095855 0 41.984-21.569164 41.984-47.997673v-47.997673h504.003491a32.004655 32.004655 0 0 0 0-64.009309H455.996509V111.988364c0-26.428509-18.878836-47.997673-41.984-47.997673H273.985164c-23.095855 0-41.984 21.569164-41.984 47.997673v47.997672H64a32.004655 32.004655 0 0 0 0 64.009309zM288.004655 128h111.997672V256H288.004655V128zM960 479.995345H791.998836v-47.997672c0-26.372655-18.878836-47.997673-41.984-47.997673H609.978182c-23.095855 0-41.984 21.634327-41.984 47.997673v47.997672H64a32.004655 32.004655 0 0 0 0 64.00931h504.003491v47.997672c0 26.363345 18.878836 47.997673 41.984 47.997673h140.036654c23.095855 0 41.984-21.634327 41.984-47.997673v-47.997672h168.001164a32.004655 32.004655 0 1 0-0.009309-64.00931zM735.995345 576H623.997673v-128h111.997672v128zM960 800.293236v-0.288581H455.996509v-47.997673c0-26.363345-18.878836-47.997673-41.984-47.997673H274.050327c-23.105164 0-41.984 21.634327-41.984 47.997673v47.997673H64v0.288581a32.004655 32.004655 0 0 0 0 64.009309c0.986764 0 1.917673-0.195491 2.885818-0.288581h165.115346v47.997672c0 26.363345 18.878836 47.997673 41.984 47.997673h140.036654c23.095855 0 41.984-21.634327 41.984-47.997673v-47.997672h501.108364c0.968145 0.093091 1.899055 0.288582 2.895127 0.288581a32.004655 32.004655 0 1 0-0.009309-64.009309zM400.002327 896H288.004655V768h111.997672v128z\" fill=\"\" p-id=\"6464\" /></symbol>'});s.a.add(a);e[\"default\"]=a},8502:function(t,e,i){},\"85ec\":function(t,e,i){},\"879b\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-size\",use:\"icon-size-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-size\"><path d=\"M0 54.857h54.796v18.286H36.531V128H18.265V73.143H0V54.857zm127.857-36.571H91.935V128H72.456V18.286H36.534V0h91.326l-.003 18.286z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"87d9\":function(t,e,i){},8989:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-pdf\",use:\"icon-pdf-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" id=\"icon-pdf\"><path d=\"M869.073 277.307H657.111V65.344l211.962 211.963zm-238.232 26.27V65.344l-476.498-.054v416.957h714.73v-178.67H630.841zm-335.836 360.57c-5.07-3.064-10.944-5.133-17.61-6.201-6.67-1.064-13.603-1.6-20.81-1.6h-48.821v85.641h48.822c7.206 0 14.14-.532 20.81-1.6 6.665-1.065 12.54-3.133 17.609-6.202 5.064-3.063 9.134-7.406 12.208-13.007 3.065-5.602 4.6-12.937 4.6-22.011 0-9.07-1.535-16.408-4.6-22.01-3.074-5.603-7.144-9.94-12.208-13.01zM35.82 541.805v416.904h952.358V541.805H35.821zm331.421 191.179c-3.6 11.071-9.343 20.879-17.209 29.413-7.874 8.542-18.078 15.408-30.617 20.61-12.544 5.206-27.747 7.807-45.621 7.807h-66.036v102.45h-62.831V607.517h128.867c17.874 0 33.077 2.6 45.62 7.802 12.541 5.207 22.745 12.076 30.618 20.615 7.866 8.538 13.604 18.277 17.21 29.212 3.6 10.943 5.401 22.278 5.401 34.018 0 11.477-1.8 22.752-5.402 33.819zM644.9 806.417c-5.343 17.61-13.408 32.818-24.212 45.627-10.807 12.803-24.283 22.879-40.423 30.213-16.146 7.343-35.155 11.007-57.03 11.007h-123.26V607.518h123.26c18.41 0 35.552 2.941 51.428 8.808 15.873 5.869 29.618 14.671 41.22 26.412 11.608 11.744 20.674 26.411 27.217 44.02 6.535 17.61 9.803 38.288 9.803 62.035 0 20.81-2.67 40.02-8.003 57.624zm245.362-146.07h-138.07v66.03h119.66v48.829h-119.66v118.058h-62.83V607.518h200.9v52.829h-.001zm-318.2 25.611c-6.402-8.266-14.877-14.604-25.412-19.01-10.544-4.402-23.551-6.602-39.019-6.602h-44.825v180.088h56.029c9.07 0 17.872-1.463 26.415-4.401 8.535-2.932 16.14-7.802 22.812-14.609 6.665-6.8 12.007-15.667 16.007-26.61 4.003-10.94 6.003-24.275 6.003-40.021 0-14.408-1.4-27.416-4.202-39.019-2.8-11.607-7.406-21.542-13.808-29.816zm0 0\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"898c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-client\",use:\"icon-client-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-client\"><defs><style type=\"text/css\"></style></defs><path d=\"M921.6 51.2a51.2 51.2 0 0 1 51.2 51.2v665.6a51.2 51.2 0 0 1-51.2 51.2H102.4a51.2 51.2 0 0 1-51.2-51.2V102.4a51.2 51.2 0 0 1 51.2-51.2h819.2m0-51.2H102.4a102.4 102.4 0 0 0-102.4 102.4v665.6a102.4 102.4 0 0 0 102.4 102.4h819.2a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z\" p-id=\"2754\" /><path d=\"M102.4 972.8l819.2 0 0 51.2-819.2 0 0-51.2Z\" p-id=\"2755\" /><path d=\"M537.088 204.8a25.6 25.6 0 0 1 25.6 25.6v60.928a153.6 153.6 0 0 1 48.128 27.648l51.2-30.208a25.6 25.6 0 0 1 35.328 9.216l25.6 44.032a25.6 25.6 0 0 1-9.216 35.328l-51.2 30.208a139.776 139.776 0 0 1 0 55.808l51.2 30.208a25.6 25.6 0 0 1 9.216 35.328l-25.6 44.032a25.6 25.6 0 0 1-35.328 9.216l-51.2-30.208a153.6 153.6 0 0 1-48.128 27.648v60.416a25.6 25.6 0 0 1-25.6 25.6h-51.2a25.6 25.6 0 0 1-25.6-25.6v-60.416a153.6 153.6 0 0 1-48.128-27.648l-51.2 30.208a25.6 25.6 0 0 1-35.328-9.216l-25.6-44.032a25.6 25.6 0 0 1 7.168-35.84l51.2-30.208A139.776 139.776 0 0 1 360.96 409.6L307.2 377.344a25.6 25.6 0 0 1-9.216-35.328l25.6-44.032A25.6 25.6 0 0 1 358.4 288.768l51.2 30.208a153.6 153.6 0 0 1 51.2-27.648V230.4a25.6 25.6 0 0 1 25.6-25.6h51.2m0-51.2h-51.2A77.312 77.312 0 0 0 409.6 230.4V256l-23.552-13.824a76.8 76.8 0 0 0-104.96 28.16l-25.088 46.08a77.312 77.312 0 0 0 28.16 104.96L307.2 435.2l-23.552 13.824A77.312 77.312 0 0 0 256 553.984l25.6 44.032a76.8 76.8 0 0 0 104.96 28.16L409.6 614.4v27.136A77.312 77.312 0 0 0 486.4 716.8h51.2a77.312 77.312 0 0 0 76.8-76.8V614.4l23.552 13.824a76.8 76.8 0 0 0 104.96-28.16l25.6-44.032a77.312 77.312 0 0 0-28.16-104.96L716.8 435.2l23.552-13.824A77.312 77.312 0 0 0 768 316.416l-25.6-44.032a76.8 76.8 0 0 0-104.96-28.16L614.4 256v-25.6A77.312 77.312 0 0 0 537.088 153.6z\" p-id=\"2756\" /><path d=\"M512 384a51.2 51.2 0 1 1-51.2 51.2 51.2 51.2 0 0 1 51.2-51.2m0-51.2a102.4 102.4 0 1 0 102.4 102.4 102.4 102.4 0 0 0-102.4-102.4z\" p-id=\"2757\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"8df1\":function(t,e,i){t.exports={menuText:\"#bfcbd9\",menuActiveText:\"#409eff\",subMenuActiveText:\"#3c8dbc\",menuBg:\"#fafafa\",menuHover:\"#263445\",menuLightBg:\"#fff\",menuLightHover:\"#f0f1f5\",subMenuBg:\"#fafafa\",subMenuHover:\"#3c8dbc\",sideBarWidth:\"200px\",sidebarTitle:\"#fff\",sidebarLightTitle:\"#001529\"}},\"906b\":function(t,e,i){},\"91be\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-nested\",use:\"icon-nested-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-nested\"><path d=\"M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"922f\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-system\",use:\"icon-system-usage\",viewBox:\"0 0 1084 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1084 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-system\"><defs><style type=\"text/css\">@font-face { font-family: rbicon; src: url(\"chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2\") format(\"woff2\"); font-weight: normal; font-style: normal; }\\r\\n</style></defs><path d=\"M1080.09609 434.500756c-4.216302-23.731757-26.9241-47.945376-50.595623-53.185637l-17.648235-4.095836a175.940257 175.940257 0 0 1-101.612877-80.832531 177.807476 177.807476 0 0 1-18.732427-129.801867l5.541425-16.684509c7.10748-23.129428-2.108151-54.992624-20.599646-70.833873 0 0-16.624276-14.094495-63.244529-41.199293-46.800951-26.984332-66.858502-34.513443-66.858502-34.513443-22.76803-8.372371-54.631227-0.361397-71.255503 17.407304l-12.287509 13.251234a173.470708 173.470708 0 0 1-120.465769 48.065842A174.13327 174.13327 0 0 1 421.329029 33.590675L409.583617 20.761071C393.140039 2.99237 361.096144-4.898138 338.267881 3.353767c0 0-20.358715 7.529111-67.099434 34.513443-46.800951 27.34573-63.244529 41.440225-63.244529 41.440225-18.431263 15.66055-27.646894 47.222582-20.539413 70.592941l5.059562 16.865207a178.048407 178.048407 0 0 1-18.672194 129.621169 174.916297 174.916297 0 0 1-102.275439 81.073463l-17.045906 3.854904c-23.310126 5.42096-46.258856 29.333415-50.595623 53.185637 0 0-3.854905 21.382674-3.854905 75.712737 0 54.330062 3.854905 75.712736 3.854905 75.712736 4.216302 23.972688 26.9241 47.945376 50.595623 53.185637l16.624276 3.854905a174.253736 174.253736 0 0 1 102.395904 81.314394c23.310126 40.837896 28.911785 87.337683 18.732427 129.801867l-4.81863 16.443578c-7.10748 23.129428 2.108151 54.992624 20.599646 70.833872 0 0 16.624276 14.094495 63.244529 41.199293 46.800951 27.104798 66.918735 34.513443 66.918735 34.513443 22.707798 8.372371 54.631227 0.361397 71.255503-17.407303l11.624947-12.588673a175.096996 175.096996 0 0 1 242.256662 0.120465l11.624947 12.648906c16.383345 17.708468 48.427239 25.598976 71.255503 17.347071 0 0 20.358715-7.529111 67.159666-34.513443 46.740719-27.104798 63.124063-41.199293 63.124064-41.199293 18.491496-15.600317 27.707127-47.463513 20.599646-70.833873l-5.059562-17.106139a176.723284 176.723284 0 0 1 18.672194-129.139305 176.060722 176.060722 0 0 1 102.395904-81.314394l16.68451-3.854905c23.310126-5.42096 46.258856-29.333415 50.595623-53.185637 0 0 3.854905-21.382674 3.854904-75.712737-0.240932-54.330062-4.095836-75.833202-4.095836-75.833202z m-537.819428 293.334149c-119.261112 0-216.175824-97.336342-216.175824-217.621412a216.657687 216.657687 0 0 1 216.236057-217.320249c119.200879 0 216.115591 97.276109 216.11559 217.56118-0.240932 120.044139-96.974945 217.320248-216.175823 217.320249z\" p-id=\"10234\" fill=\"#bfbfbf\" /></symbol>'});s.a.add(a);e[\"default\"]=a},9367:function(t,e,i){},\"937c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-bug\",use:\"icon-bug-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-bug\"><path d=\"M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"95cd\":function(t,e,i){\"use strict\";i(\"76dd\")},\"98ab\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-shopping\",use:\"icon-shopping-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-shopping\"><path d=\"M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"99c3\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-time-range\",use:\"icon-time-range-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-time-range\"><defs><style type=\"text/css\"></style></defs><path d=\"M498.595712 482.290351 345.420077 482.290351l0 57.307194 210.477712 0L555.897789 274.196942l-57.301054 0L498.596735 482.290351zM498.595712 482.290351\" p-id=\"1249\" /><path d=\"M577.685002 644.98478l379.879913 0 0 57.302077L577.685002 702.286858 577.685002 644.98478 577.685002 644.98478zM577.685002 644.98478\" p-id=\"1250\" /><path d=\"M577.685002 773.764795l379.879913 0 0 57.307194L577.685002 831.071989 577.685002 773.764795 577.685002 773.764795zM577.685002 773.764795\" p-id=\"1251\" /><path d=\"M577.685002 902.549927l379.879913 0 0 57.307194L577.685002 959.857121 577.685002 902.549927 577.685002 902.549927zM577.685002 902.549927\" p-id=\"1252\" /><path d=\"M102.523001 382.290823c4.450359 2.615571 9.470699 3.954055 14.530948 3.954055 2.969635 0 5.952572-0.461511 8.836249-1.394766l190.809767-61.886489c15.052834-4.882194 23.297612-21.040199 18.415418-36.08894-4.882194-15.052834-21.040199-23.297612-36.093033-18.415418L175.676092 308.458257c15.994276-26.115797 35.170011-50.537 57.370639-72.743768 73.767074-73.767074 171.845857-114.388237 276.16783-114.388237 104.32095 0 202.39564 40.622186 276.16169 114.388237s114.393353 171.845857 114.393353 276.16783c0 26.427906-2.615571 52.449559-7.709589 77.780481l58.302871 0c4.464685-25.499767 6.708795-51.470255 6.708795-77.780481 0-60.449767-11.845793-119.102608-35.204803-174.336584-22.559808-53.334719-54.850236-101.226472-95.968725-142.349055-41.122583-41.122583-89.017406-73.408917-142.348032-95.968725C628.317169 75.866898 569.659211 64.021106 509.215584 64.021106c-60.448744 0-119.106702 11.845793-174.336584 35.207873-53.334719 22.559808-101.230566 54.846142-142.349055 95.968725-23.980157 23.980157-44.934398 50.278103-62.727647 78.601172l-20.738323-105.655342c-3.043313-15.527648-18.105357-25.642007-33.631982-22.599717-15.527648 3.048429-25.64303 18.105357-22.599717 33.637098l36.102243 183.932126C90.51348 371.153158 95.460142 378.13313 102.523001 382.290823L102.523001 382.290823zM102.523001 382.290823\" p-id=\"1253\" /><path d=\"M126.020158 587.9416 67.768453 587.9416c5.759167 33.679054 15.368012 66.544579 28.789697 98.278327 22.559808 53.333696 54.850236 101.225449 95.971795 142.348032 41.122583 41.122583 89.014336 73.408917 142.349055 95.968725 54.112432 22.88829 111.517863 34.71157 170.668031 35.18229L505.547031 902.395408c-102.94972-0.941442-199.594851-41.445948-272.499277-114.349351C177.545672 732.543975 140.810003 663.275355 126.020158 587.9416L126.020158 587.9416zM126.020158 587.9416\" p-id=\"1254\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"9a4c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-radio\",use:\"icon-radio-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-radio\"><defs><style type=\"text/css\"></style></defs><path d=\"M507.39346659 71.84873358c241.53533667 0 437.39770766 195.85422109 437.39770767 437.37442191 0 241.53766571-195.86237099 437.38955776-437.39770767 437.38955776-241.50040803 0-437.34997219-195.85189205-437.34997219-437.38955776C70.0434944 267.70295467 265.89189347 71.84873358 507.39346659 71.84873358L507.39346659 71.84873358zM507.39346659 282.81899805c-125.00686734 0-226.37039389 101.38914133-226.37039388 226.41813048 0 125.01268821 101.36352768 226.39717262 226.37039388 226.39717262 125.04295993 0 226.42395136-101.38448441 226.42395136-226.39717262C733.81625401 384.20813938 632.43642653 282.81899805 507.39346659 282.81899805L507.39346659 282.81899805zM507.39346659 120.78172615c-214.46664192 0-388.42047261 173.95150279-388.4204726 388.44026539 0 214.51204949 173.95499463 388.46122325 388.4204726 388.46122325 214.52369237 0 388.46005817-173.94800981 388.46005818-388.46122325C895.85236082 294.73322894 721.91715897 120.78172615 507.39346659 120.78172615z\" p-id=\"880\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"9b2c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-logininfor\",use:\"icon-logininfor-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-logininfor\"><defs><style type=\"text/css\"></style></defs><path d=\"M896 128h-85.333333a42.666667 42.666667 0 0 0 0 85.333333h42.666666v640H170.666667V213.333333h42.666666a42.666667 42.666667 0 0 0 0-85.333333H128a42.666667 42.666667 0 0 0-42.666667 42.666667v725.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h768a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-42.666667-42.666667z\" p-id=\"5262\" /><path d=\"M341.333333 298.666667a42.666667 42.666667 0 0 0 42.666667-42.666667V128a42.666667 42.666667 0 0 0-85.333333 0v128a42.666667 42.666667 0 0 0 42.666666 42.666667zM512 298.666667a42.666667 42.666667 0 0 0 42.666667-42.666667V128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 0 42.666667 42.666667zM682.666667 298.666667a42.666667 42.666667 0 0 0 42.666666-42.666667V128a42.666667 42.666667 0 0 0-85.333333 0v128a42.666667 42.666667 0 0 0 42.666667 42.666667zM341.333333 768a42.666667 42.666667 0 0 0 42.666667-42.666667 128 128 0 0 1 256 0 42.666667 42.666667 0 0 0 85.333333 0 213.333333 213.333333 0 0 0-107.52-184.32A128 128 0 0 0 640 469.333333a128 128 0 0 0-256 0 128 128 0 0 0 22.186667 71.68A213.333333 213.333333 0 0 0 298.666667 725.333333a42.666667 42.666667 0 0 0 42.666666 42.666667z m128-298.666667a42.666667 42.666667 0 1 1 42.666667 42.666667 42.666667 42.666667 0 0 1-42.666667-42.666667z\" p-id=\"5263\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"9c49\":function(t,e,i){\"use strict\";i(\"dffe\")},\"9cb5\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-log\",use:\"icon-log-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-log\"><defs><style type=\"text/css\"></style></defs><path d=\"M208.736 566.336H64.384v59.328h144.352v-59.328z m0-336.096H165.44V74.592c0-7.968 4.896-14.848 10.464-14.848h502.016V0.448H175.936c-38.72 1.248-69.248 34.368-68.192 74.144v155.648H64.384V289.6h144.352V230.24z m0 168.096H64.384v59.328h144.352v-59.328z m714.656 76.576h-57.76v474.496c0 7.936-4.896 14.848-10.464 14.848H175.936c-5.568 0-10.464-6.912-10.464-14.848v-155.68h43.296v-59.296H64.384v59.296h43.328v155.68c-1.024 39.776 29.472 72.896 68.192 74.144h679.232c38.72-1.184 69.248-34.368 68.256-74.144V474.912z m14.944-290.336l-83.072-85.312a71.264 71.264 0 0 0-52.544-21.728 71.52 71.52 0 0 0-51.616 23.872L386.528 507.264a30.496 30.496 0 0 0-6.176 10.72L308.16 740.512a30.016 30.016 0 0 0 6.976 30.24c7.712 7.968 19.2 10.752 29.568 7.2l216.544-74.112a28.736 28.736 0 0 0 12.128-7.936L940.448 287.456a75.552 75.552 0 0 0-2.112-102.88z m-557.12 518.272l39.104-120.64 78.336 80.416-117.44 40.224z m170.048-70.016l-103.552-106.016 200.16-222.4 103.52 106.304-200.128 222.112zM897.952 247.072l-0.256 0.224-107.136 119.168-103.52-106.528 106.432-118.624a14.144 14.144 0 0 1 10.304-4.736 13.44 13.44 0 0 1 10.464 4.288l83.264 85.696c5.472 5.6 5.664 14.72 0.448 20.512z\" p-id=\"4806\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"9ec1\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-checkbox\",use:\"icon-checkbox-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-checkbox\"><defs><style type=\"text/css\"></style></defs><path d=\"M828.40625 90.125H195.59375C137.375 90.125 90.125 137.375 90.125 195.59375v632.8125c0 58.21875 47.25 105.46875 105.46875 105.46875h632.8125c58.21875 0 105.46875-47.25 105.46875-105.46875V195.59375c0-58.21875-47.25-105.46875-105.46875-105.46875z m52.734375 738.28125c0 29.16-23.57015625 52.734375-52.734375 52.734375H195.59375c-29.109375 0-52.734375-23.574375-52.734375-52.734375V195.59375c0-29.109375 23.625-52.734375 52.734375-52.734375h632.8125c29.16 0 52.734375 23.625 52.734375 52.734375v632.8125z\" p-id=\"903\" /><path d=\"M421.52890625 709.55984375a36.28125 36.28125 0 0 1-27.55265625-12.66890625L205.17453125 476.613125a36.28546875 36.28546875 0 0 1 55.10109375-47.22890625l164.986875 192.4846875 342.16171875-298.48078125a36.2896875 36.2896875 0 0 1 47.70984375 54.68765625L445.3859375 700.6203125a36.3234375 36.3234375 0 0 1-23.85703125 8.93953125z\" p-id=\"904\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"9f4c\":function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-icon\",use:\"icon-icon-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-icon\"><path d=\"M115.147.062a13 13 0 0 1 4.94.945c1.55.63 2.907 1.526 4.069 2.688a13.148 13.148 0 0 1 2.761 4.069c.678 1.55 1.017 3.245 1.017 5.086v102.3c0 3.681-1.187 6.733-3.56 9.155-2.373 2.422-5.352 3.633-8.937 3.633H12.992c-3.875 0-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39 1.163-6.345 3.488-8.863C5.872 1.32 8.972.062 12.847.062h102.3zM81.434 109.047c1.744 0 3.003-.412 3.778-1.235.775-.824 1.163-1.914 1.163-3.27 0-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743 0 2.954-.436 3.633-1.308.678-.872 1.017-1.938 1.017-3.197 0-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743 0-2.954.436-3.632 1.308-.678.872-1.018 1.938-1.018 3.197 0 1.26.34 2.325 1.018 3.197.678.872 1.889 1.308 3.632 1.308h8.138v72.075c0 .193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744 0-3.003.435-3.778 1.307-.775.872-1.163 1.938-1.163 3.197 0 1.356.388 2.446 1.163 3.27.775.823 2.034 1.235 3.778 1.235h34.875z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},\"9fad\":function(t,e,i){},a012:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-lock\",use:\"icon-lock-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-lock\"><path d=\"M119.88 49.674h-7.987V39.52C111.893 17.738 90.45.08 63.996.08 37.543.08 16.1 17.738 16.1 39.52v10.154H8.113c-4.408 0-7.987 2.94-7.987 6.577v65.13c0 3.637 3.57 6.577 7.987 6.577H119.88c4.407 0 7.987-2.94 7.987-6.577v-65.13c-.008-3.636-3.58-6.577-7.987-6.577zm-23.953 0H32.065V39.52c0-14.524 14.301-26.295 31.931-26.295 17.63 0 31.932 11.777 31.932 26.295v10.153z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a17a:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-language\",use:\"icon-language-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-language\"><path d=\"M84.742 36.8c2.398 7.2 5.595 12.8 11.19 18.4 4.795-4.8 7.992-11.2 10.39-18.4h-21.58zm-52.748 40h20.78l-10.39-28-10.39 28z\" /><path d=\"M111.916 0H16.009C7.218 0 .025 7.2.025 16v96c0 8.8 7.193 16 15.984 16h95.907c8.791 0 15.984-7.2 15.984-16V16c0-8.8-6.394-16-15.984-16zM72.754 103.2c-1.598 1.6-3.197 1.6-4.795 1.6-.8 0-2.398 0-3.197-.8-.8-.8-1.599 0-1.599-.8s-.799-1.6-1.598-3.2c-.8-1.6-.8-2.4-1.599-4l-3.196-8.8H28.797L25.6 96c-1.598 3.2-2.398 5.6-3.197 7.2-.8 1.6-2.398 1.6-4.795 1.6-1.599 0-3.197-.8-4.796-1.6-1.598-1.6-2.397-2.4-2.397-4 0-.8 0-1.6.799-3.2.8-1.6.8-2.4 1.598-4l17.583-44.8c.8-1.6.8-3.2 1.599-4.8.799-1.6 1.598-3.2 2.397-4 .8-.8 1.599-2.4 3.197-3.2 1.599-.8 3.197-.8 4.796-.8 1.598 0 3.196 0 4.795.8 1.598.8 2.398 1.6 3.197 3.2.799.8 1.598 2.4 2.397 4 .8 1.6 1.599 3.2 2.398 5.6l17.583 44c1.598 3.2 2.398 5.6 2.398 7.2-.8.8-1.599 2.4-2.398 4zM116.711 72c-8.791-3.2-15.185-7.2-20.78-12-5.594 5.6-12.787 9.6-21.579 12l-2.397-4c8.791-2.4 15.984-5.6 21.579-11.2C87.939 51.2 83.144 44 81.545 36h-7.992v-3.2h21.58c-1.6-2.4-3.198-5.6-4.796-8l2.397-.8c1.599 2.4 3.997 5.6 5.595 8.8h19.98v4h-7.992c-2.397 8-6.393 15.2-11.189 20 5.595 4.8 11.988 8.8 20.78 11.2l-3.197 4z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a18c:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return h}));var n=i(\"2b0e\"),o=i(\"8c4f\"),r=i(\"c1f7\"),s=(i(\"74a1\"),i(\"c9ae\")),a=i(\"2466\"),l=i(\"2657\");n[\"default\"].use(o[\"a\"]),console.log(s[\"default\"],a[\"default\"],l[\"default\"],12);var h=[{path:\"/redirect\",component:r[\"a\"],hidden:!0,children:[{path:\"/redirect/:path(.*)\",component:function(t){return i.e(\"chunk-2d0f012d\").then(function(){var e=[i(\"9b8f\")];t.apply(null,e)}.bind(this)).catch(i.oe)}}]},{path:\"/login\",component:function(t){return Promise.all([i.e(\"chunk-2d0b2b28\"),i.e(\"chunk-4949268e\")]).then(function(){var e=[i(\"dd7b\")];t.apply(null,e)}.bind(this)).catch(i.oe)},hidden:!0},{path:\"/404\",component:function(t){return i.e(\"chunk-2ca51a62\").then(function(){var e=[i(\"2754\")];t.apply(null,e)}.bind(this)).catch(i.oe)},hidden:!0},{path:\"/401\",component:function(t){return i.e(\"chunk-b4477732\").then(function(){var e=[i(\"ec55\")];t.apply(null,e)}.bind(this)).catch(i.oe)},hidden:!0},{path:\"\",component:r[\"a\"],redirect:\"index\",meta:{title:\"首页\",icon:\"\",noCache:!0,affix:!0},children:[{path:\"index\",component:function(t){return i.e(\"chunk-b0a1fdce\").then(function(){var e=[i(\"1e4b\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"首页\",meta:{title:\"首页\",icon:\"dashboard\",noCache:!0,affix:!0}},{path:\"index/approval\",hidden:!1,component:s[\"default\"],name:\"待我审批\",meta:{title:\"待我审批\",icon:\"dashboard\",noCache:!1}},{path:\"index/handled\",hidden:!1,component:a[\"default\"],name:\"已办理\",meta:{title:\"已办理\",icon:\"dashboard\",noCache:!1}}]},{path:\"/user\",component:r[\"a\"],hidden:!0,redirect:\"noredirect\",children:[{path:\"profile\",component:function(t){return Promise.all([i.e(\"chunk-2d0e2366\"),i.e(\"chunk-e5639a96\")]).then(function(){var e=[i(\"4c1b\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"Profile\",meta:{title:\"个人中心\",icon:\"user\"}}]},{path:\"/dict\",component:r[\"a\"],hidden:!0,children:[{path:\"type/data/:dictId(\\\\d+)\",component:function(t){return i.e(\"chunk-d19c1a98\").then(function(){var e=[i(\"bfc4\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"Data\",meta:{title:\"字典数据\",icon:\"\"}}]},{path:\"/job\",component:r[\"a\"],hidden:!0,children:[{path:\"log\",component:function(t){return i.e(\"chunk-2d0a2db2\").then(function(){var e=[i(\"0062\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"JobLog\",meta:{title:\"调度日志\"}}]},{path:\"/gen\",component:r[\"a\"],hidden:!0,children:[{path:\"edit/:tableId(\\\\d+)\",component:function(t){return Promise.all([i.e(\"chunk-3bded899\"),i.e(\"chunk-23fe59e4\")]).then(function(){var e=[i(\"76f8\")];t.apply(null,e)}.bind(this)).catch(i.oe)},name:\"GenEdit\",meta:{title:\"修改生成配置\"}}]}];e[\"b\"]=new o[\"a\"]({mode:\"history\",scrollBehavior:function(){return{y:0}},routes:h})},a1ac:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-number\",use:\"icon-number-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-number\"><defs><style type=\"text/css\"></style></defs><path d=\"M279.272727 791.272727h512a46.545455 46.545455 0 0 1 0 93.090909H279.272727a46.545455 46.545455 0 0 1 0-93.090909z m33.838546-617.984V651.636364H193.722182V395.170909c0-37.003636-0.884364-59.298909-2.653091-66.746182a24.948364 24.948364 0 0 0-14.615273-16.989091c-8.005818-3.863273-25.786182-5.771636-53.341091-5.771636h-11.822545v-55.854545c57.716364-12.381091 101.562182-37.888 131.490909-76.520728h70.283636z m303.709091 396.8V651.636364H354.164364v-68.235637c77.777455-127.255273 124.043636-206.010182 138.705454-236.218182 14.661818-30.254545 22.016-53.853091 22.016-70.74909 0-13.032727-2.234182-22.714182-6.656-29.137455-4.421818-6.376727-11.170909-9.588364-20.247273-9.588364a22.248727 22.248727 0 0 0-20.200727 10.612364c-4.468364 7.121455-6.656 21.178182-6.656 42.263273v45.521454H354.164364v-17.454545c0-26.763636 1.396364-47.941818 4.142545-63.348364 2.746182-15.499636 9.541818-30.72 20.386909-45.661091 10.798545-14.987636 24.901818-26.298182 42.216727-33.978182 17.361455-7.68 38.167273-11.543273 62.37091-11.543272 47.476364 0 83.316364 11.776 107.706181 35.328 24.296727 23.552 36.445091 53.341091 36.445091 89.367272 0 27.368727-6.842182 56.32-20.48 86.853819-13.730909 30.533818-54.039273 95.325091-121.018182 194.420363h130.885819z m270.615272-189.393454c18.152727 6.097455 31.650909 16.104727 40.494546 29.975272 8.843636 13.917091 13.312 46.452364 13.312 97.652364 0 38.027636-4.328727 67.490909-13.032727 88.529455-8.657455 20.945455-23.598545 36.910545-44.869819 47.848727-21.271273 10.938182-48.593455 16.384-81.873454 16.384-37.794909 0-67.490909-6.330182-89.088-19.083636-21.550545-12.660364-35.746909-28.253091-42.542546-46.638546-6.795636-18.432-10.193455-50.362182-10.193454-95.883636v-37.841455h119.389091v77.730909c0 20.666182 1.210182 33.838545 3.723636 39.424 2.420364 5.585455 7.912727 8.424727 16.337455 8.424728 9.309091 0 15.36-3.537455 18.338909-10.612364 2.932364-7.121455 4.421818-25.6 4.421818-55.575273v-33.047273c0-18.338909-2.048-31.744-6.190546-40.215272a30.72 30.72 0 0 0-18.338909-16.709818c-8.052364-2.653091-23.738182-4.189091-46.964363-4.561455V357.050182c28.392727 0 45.893818-1.070545 52.596363-3.258182a22.946909 22.946909 0 0 0 14.475637-14.149818c2.932364-7.307636 4.421818-18.711273 4.421818-34.257455v-26.624c0-16.756364-1.722182-27.741091-5.12-33.047272-3.490909-5.352727-8.843636-8.005818-16.151273-8.005819-8.285091 0-13.963636 2.792727-16.989091 8.378182-3.025455 5.632-4.561455 17.640727-4.561454 35.933091v39.284364h-119.389091v-40.773818c0-45.661091 10.472727-76.567273 31.325091-92.625455 20.898909-16.058182 54.085818-24.064 99.607272-24.064 56.878545 0 95.511273 11.170909 115.805091 33.373091 20.293818 22.248727 30.394182 53.201455 30.394182 92.765091 0 26.810182-3.630545 46.173091-10.891636 58.088727-7.307636 11.915636-20.107636 22.807273-38.446546 32.628364z\" p-id=\"2868\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a237:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"StandardTable\"},[t.showTable?i(\"div\",{staticClass:\"table\"},[i(\"Table\",t._g({ref:\"table\",staticClass:\"table\",attrs:{total:t.total,columns:t.columns,height:!0,data:t.data,border:t.border,\"highlight-row\":\"\"}},t.standardTableEvent))],1):t._e(),i(\"div\",{staticClass:\"stabd\"},[t.showPage?i(\"Page\",t._g({staticClass:\"page\",attrs:{total:t.total,\"show-total\":\"\",\"show-sizer\":\"\",\"show-elevator\":\"\",transfer:\"\",\"page-size\":t.pageSize,current:t.currentPage,\"page-size-opts\":t.pageSizeOpts}},t.standardTableEvent)):t._e()],1)])},o=[],r=(i(\"a9e3\"),{name:\"StandardTable\",props:{standardTableEvent:{type:Object,default:function(){return{}}},showPage:{type:Boolean,default:!0},total:{type:Number,default:0},currentPage:{type:Number,default:1},pageSize:{type:Number,default:10},pageSizeOpts:{type:Array,default:function(){return[10,20,30,40]}},showTable:{type:Boolean,default:!0},columns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!1}},watch:{data:function(){this.$refs.table.$el.getElementsByClassName(\"burgeon-table-body\")[0].scrollTop=0}},methods:{}}),s=r,a=(i(\"324e\"),i(\"2877\")),l=Object(a[\"a\"])(s,n,o,!1,null,\"0669b91c\",null);e[\"a\"]=l.exports},a263:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-skill\",use:\"icon-skill-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-skill\"><path d=\"M31.652 93.206h33.401c1.44 2.418 3.077 4.663 4.93 6.692h-38.33v-6.692zm0-10.586h28.914a44.8 44.8 0 0 1-1.264-6.688h-27.65v6.688zm0-17.27H59.39c.288-2.286.714-4.532 1.34-6.687H31.65v6.687h.003zm53.913 44.84v5.85c0 2.798-2.095 5.075-4.667 5.075h-70.07c-2.576 0-4.663-2.277-4.663-5.075V31.26l23.22-20.96v22.25H17.16v6.688h18.39V6.688h45.348c2.576 0 4.667 2.277 4.667 5.066v20.009c1.987-.675 4.053-1.128 6.17-1.445v-18.56C91.738 5.28 86.874 0 80.902 0H31.15L0 28.118v87.917c0 6.48 4.859 11.759 10.832 11.759h70.07c5.974 0 10.837-5.27 10.837-11.759v-4.41c-2.117-.312-4.183-.765-6.17-1.435h-.004zM23.279 58.667h-7.96v6.688h7.96v-6.688zm-7.956 41.23h7.96v-6.691h-7.96v6.692zm7.956-23.96h-7.96v6.687h7.96v-6.688zm89.718-15.042l-4.896-4.07-12.447 17.613-11.19-9.305-3.762 5.311 16.091 13.38 16.204-22.929zM128 70.978c0-18.632-13.97-33.782-31.147-33.782-17.168 0-31.135 15.155-31.135 33.782 0 18.628 13.97 33.783 31.135 33.783 17.172 0 31.143-15.15 31.143-33.783H128zm-6.17 0c0 14.933-11.203 27.1-24.981 27.1-13.77 0-24.987-12.158-24.987-27.1 0-14.941 11.195-27.099 24.987-27.099 13.778 0 24.982 12.158 24.982 27.1z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a2bf:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-date\",use:\"icon-date-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-date\"><defs><style type=\"text/css\"></style></defs><path d=\"M479.85714249 608.42857168h64.28571502c19.28571417 0 32.14285751-12.85714249 32.14285664-32.14285751s-12.85714249-32.14285751-32.14285664-32.14285664h-64.28571504c-19.28571417 0-32.14285751 12.85714249-32.14285664 32.14285662s12.85714249 32.14285751 32.14285664 32.14285753z m-2e-8 122.14285665h64.28571504c19.28571417 0 32.14285751-12.85714249 32.14285664-32.14285665s-12.85714249-32.14285751-32.14285664-32.14285751h-64.28571504c-19.28571417 0-32.14285751 12.85714249-32.14285664 32.14285751s12.85714249 32.14285751 32.14285664 32.14285664z m353.57142921-559.28571416h-128.57142921v-32.14285664c0-19.28571417-12.85714249-32.14285751-32.14285664-32.14285753s-32.14285751 12.85714249-32.14285751 32.14285753v32.14285664h-257.14285665v-32.14285664c0-19.28571417-12.85714249-32.14285751-32.14285752-32.14285753s-32.14285751 12.85714249-32.14285664 32.14285753v32.14285664h-128.57142919c-70.71428585 0-128.57142832 57.85714249-128.57142832 122.14285751v501.42857081c0 70.71428585 57.85714249 128.57142832 128.57142832 122.14285751h642.85714335c70.71428585 0 128.57142832-57.85714249 128.57142833-122.14285751v-501.42857081c0-70.71428585-57.85714249-122.14285753-128.57142833-122.14285751z m64.28571415 623.57142832c0 32.14285751-32.14285751 64.28571415-64.28571416 64.28571504h-642.85714335c-32.14285751 0-64.28571415-25.71428583-64.28571417-64.28571504v-372.85714249h771.42857168v372.85714249z m0-437.14285664h-771.42857168v-64.28571417c0-32.14285751 32.14285751-64.28571415 64.28571417-64.28571415h128.57142919v32.14285664c0 19.28571417 12.85714249 32.14285751 32.14285664 32.14285751s32.14285751-12.85714249 32.14285753-32.14285751v-32.14285664h257.14285665v32.14285664c0 19.28571417 12.85714249 32.14285751 32.1428575 32.14285751s32.14285751-12.85714249 32.14285664-32.14285751v-32.14285664h128.57142921c32.14285751 0 64.28571415 25.71428583 64.28571415 64.28571415v64.28571417z m-610.71428583 372.85714247h64.28571415c19.28571417 0 32.14285751-12.85714249 32.14285753-32.14285664s-12.85714249-32.14285751-32.14285753-32.14285751h-64.28571415c-19.28571417 0-32.14285751 12.85714249-32.14285751 32.14285751s12.85714249 32.14285751 32.14285751 32.14285665z m385.71428583-122.14285664h64.28571417c19.28571417 0 32.14285751-12.85714249 32.14285751-32.14285751s-12.85714249-32.14285751-32.14285751-32.14285664h-64.28571415c-19.28571417 0-32.14285751 12.85714249-32.14285753 32.14285664s12.85714249 32.14285751 32.14285753 32.14285751z m-385.71428583 0h64.28571415c19.28571417 0 32.14285751-12.85714249 32.14285753-32.14285751s-12.85714249-32.14285751-32.14285753-32.14285664h-64.28571415c-19.28571417 0-32.14285751 12.85714249-32.14285751 32.14285664s12.85714249 32.14285751 32.14285751 32.14285751z m385.71428583 122.14285665h64.28571417c19.28571417 0 32.14285751-12.85714249 32.14285751-32.14285665s-12.85714249-32.14285751-32.14285751-32.14285751h-64.28571415c-19.28571417 0-32.14285751 12.85714249-32.14285753 32.14285751s12.85714249 32.14285751 32.14285753 32.14285665z\" p-id=\"1069\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a2d0:function(t,e,i){t.exports=i.p+\"static/img/light.4183aad0.svg\"},a2f6:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-drag\",use:\"icon-drag-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-drag\"><path d=\"M73.137 29.08h-9.209 29.7L63.886.093 34.373 29.08h20.49v27.035H27.238v17.948h27.625v27.133h18.274V74.063h27.41V56.115h-27.41V29.08zm-9.245 98.827l27.518-26.711H36.59l27.302 26.71zM.042 64.982l27.196 27.029V38.167L.042 64.982zm100.505-26.815V92.01l27.41-27.029-27.41-26.815z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a58b:function(t,e,i){\"use strict\";var n=i(\"ade3\");i(\"1276\"),i(\"ac1f\"),i(\"cb29\"),i(\"d81d\");function o(t,e){var i=go.GraphObject.make,o={},r={};function s(t){return r=i(go.Diagram,t,{allowDrop:!1,allowSelect:!1,allowHorizontalScroll:!0,allowVerticalScroll:!0,allowMove:!1,allowLink:!1,allowRelink:!1,\"draggingTool.dragsLink\":!1}),r.nodeTemplate=a(),r.addDiagramListener(\"ObjectDoubleClicked\",h),r.nodeTemplateMap.add(\"Start\",i(go.Node,\"Spot\",{locationSpot:go.Spot.Center},new go.Binding(\"location\",\"loc\",go.Point.parse).makeTwoWay(go.Point.stringify),{selectable:!0,selectionAdornmentTemplate:l()},new go.Binding(\"angle\").makeTwoWay(),i(go.Panel,\"Auto\",{name:\"PANEL\"},new go.Binding(\"desiredSize\",\"size\",go.Size.parse).makeTwoWay(go.Size.stringify),i(go.Shape,\"Circle\",{portId:\"\",name:\"PIPE\",fromLinkable:!0,toLinkable:!0,cursor:\"pointer\",fill:\"#5F7790\",strokeWidth:1,stroke:\"#5F7790\"},new go.Binding(\"figure\"),new go.Binding(\"stroke\"),new go.Binding(\"strokeDashArray\"),new go.Binding(\"strokeWidth\"),new go.Binding(\"fill\")),i(go.TextBlock,{font:\"bold 11pt Helvetica, Arial, sans-serif\",margin:8,wrap:go.TextBlock.WrapFit,stroke:\"white\",overflow:go.TextBlock.OverflowEllipsis},new go.Binding(\"text\").makeTwoWay())))),r.nodeTemplateMap.add(\"End\",i(go.Node,\"Spot\",{locationSpot:go.Spot.Center},new go.Binding(\"location\",\"loc\",go.Point.parse).makeTwoWay(go.Point.stringify),{selectable:!0,selectionAdornmentTemplate:l()},new go.Binding(\"angle\").makeTwoWay(),i(go.Panel,\"Auto\",{name:\"PANEL\"},new go.Binding(\"desiredSize\",\"size\",go.Size.parse).makeTwoWay(go.Size.stringify),i(go.Shape,\"Circle\",{portId:\"\",name:\"PIPE\",fromLinkable:!0,toLinkable:!0,cursor:\"pointer\",fill:\"#5F7790\",strokeWidth:1,stroke:\"#5F7790\"},new go.Binding(\"figure\"),new go.Binding(\"stroke\"),new go.Binding(\"strokeDashArray\"),new go.Binding(\"strokeWidth\"),new go.Binding(\"fill\")),i(go.TextBlock,{font:\"bold 11pt Helvetica, Arial, sans-serif\",margin:8,wrap:go.TextBlock.WrapFit,stroke:\"white\"},new go.Binding(\"text\").makeTwoWay())))),r.linkTemplate=c(),r}function a(){var t;return i(go.Node,\"Spot\",{locationSpot:go.Spot.Center},new go.Binding(\"location\",\"loc\",go.Point.parse).makeTwoWay(go.Point.stringify),{selectable:!0,selectionAdornmentTemplate:l()},new go.Binding(\"angle\").makeTwoWay(),i(go.Panel,\"Auto\",{name:\"PANEL\"},new go.Binding(\"desiredSize\",\"size\",go.Size.parse).makeTwoWay(go.Size.stringify),i(go.Shape,\"RoundedRectangle\",{portId:\"\",name:\"PIPE\",fromLinkable:!0,toLinkable:!0,cursor:\"pointer\",fill:\"white\",strokeWidth:1,stroke:\"#DCDEE2\"},new go.Binding(\"figure\"),new go.Binding(\"stroke\"),new go.Binding(\"strokeDashArray\"),new go.Binding(\"strokeWidth\"),new go.Binding(\"fill\")),i(go.TextBlock,(t={font:\"bold 11pt Helvetica, Arial, sans-serif\",margin:8,wrap:go.TextBlock.WrapFit,stroke:\"#343434\",textAlign:\"center\",alignment:go.Spot.Center,verticalAlignment:go.Spot.Center},Object(n[\"a\"])(t,\"wrap\",go.TextBlock.WrapFit),Object(n[\"a\"])(t,\"minSize\",new go.Size(126,27)),Object(n[\"a\"])(t,\"maxSize\",new go.Size(126,NaN)),t),new go.Binding(\"text\").makeTwoWay())))}function l(){return i(go.Adornment,\"Auto\",i(go.Shape,{fill:null,stroke:\"deepskyblue\",strokeWidth:1.5,strokeDashArray:[4,2]}),i(go.Placeholder))}function h(t){var e=t.subject.part;u(e)}function u(t){return o.showEditNode(t),t}function c(){return i(go.Link,{selectable:!1},{relinkableFrom:!0,relinkableTo:!0,reshapable:!0},{routing:go.Link.AvoidsNodes,curve:go.Link.JumpOver,corner:5,toShortLength:4},new go.Binding(\"layerName\",\"color\"),new go.Binding(\"zOrder\"),i(go.Shape,{isPanelMain:!0,stroke:\"#D5D5D5\",strokeWidth:2}),i(go.Shape,{isPanelMain:!0,stroke:\"#D5D5D5\",strokeWidth:1,name:\"PIPE\"}),i(go.Shape,{toArrow:\"standard\",stroke:null,fill:\"#D5D5D5\"},new go.Binding(\"stroke\"),new go.Binding(\"fill\"),new go.Binding(\"zOrder\")),i(go.Panel,\"Auto\",i(go.Shape,{fill:null,stroke:null},new go.Binding(\"fill\",\"pFill\"),new go.Binding(\"zOrder\")),i(go.TextBlock,{textAlign:\"center\",font:\"10pt helvetica, arial, sans-serif\",stroke:\"#555555\",margin:4},new go.Binding(\"text\",\"text\"),new go.Binding(\"zOrder\"))))}function f(t,e){var i=[];if(!t)return i;var n=p();i.push(n);var o=t.length-1;e&&(o=t.length);for(var s=0;s<o;s++){var a=t[s],l=r.findNodeForKey(a);l&&i.push(l)}return i}function d(t){if(t)for(var e=0;e<t.length;e++){var i=t[e];1!==i.data.type&&2!==i.data.type&&(r.startTransaction(\"vacate\"),r.model.setDataProperty(i.data,\"fill\",\"rgba(9,161,85,0.04)\"),r.model.setDataProperty(i.data,\"stroke\",\"rgba(9,161,85,1)\"),r.model.setDataProperty(i.data,\"strokeWidth\",1),r.commitTransaction(\"vacate\"))}}function p(){var t=null;return r.nodes.each((function(e){if(e.data.hasOwnProperty(\"key\")&&-1==e.data.key)return t=e,!1})),t}function g(t){setTimeout((function(){w(t)}),300)}function m(t,e){setTimeout((function(){v(t,e)}),200)}function v(t,e){t&&1!==t.data.type&&2!==t.data.type&&(e?(r.startTransaction(\"vacate\"),r.model.setDataProperty(t.data,\"fill\",\"#ff9001\"===t.data.fill?\"#ffB001\":\"rgba(237,64,20,0.04)\"),r.commitTransaction(\"vacate\")):(r.startTransaction(\"vacate\"),r.model.setDataProperty(t.data,\"fill\",\"#ff9001\"===t.data.fill?\"#ffB001\":\"rgba(255,153,0,0.04)\"),r.commitTransaction(\"vacate\")))}function y(t,e,i,n){var o;if(i){var s=e[e.length-1],a=s.findLinksOutOf(),l=a.first(),h=l.toNode;o=h}else{var u=t[t.length-1],c=r.findNodeForKey(u);if(1===c.data.type||2===c.data.type)return c;n?(r.startTransaction(\"vacate\"),r.model.setDataProperty(c.data,\"stroke\",\"#ED4014\"),r.model.setDataProperty(c.data,\"strokeWidth\",1),r.commitTransaction(\"vacate\")):(r.startTransaction(\"vacate\"),r.model.setDataProperty(c.data,\"stroke\",\"#FF9900\"),r.model.setDataProperty(c.data,\"strokeWidth\",1),r.commitTransaction(\"vacate\")),o=c}return o}function b(t){var e=[];return t.findLinksOutOf().map((function(t){e.push(t)})),e}function w(t){if(t)for(var e=0;e<t.length;e++){var i=t[e];r.startTransaction(\"vacate\"),r.model.setDataProperty(i.data,\"stroke\",\"#4fba4f\"===i.data.stroke?\"#4fba4f\":\"#ED4014\"),r.model.setDataProperty(i.data,\"fill\",\"#4fba4f\"===i.data.fill?\"#4fba4f\":\"#ED4014\"),r.model.setDataProperty(i.data,\"zOrder\",999),r.commitTransaction(\"vacate\"),r.startTransaction(\"modified zOrder\"),r.model.setDataProperty(i.data,\"zOrder\",1),r.commitTransaction(\"modified zOrder\");var n=i.findObject(\"PIPE\");n.stroke=\"#ED4014\";var o=n.strokeDashOffset-2;n.strokeDashOffset=o<=0?20:o}}function x(){r.links.each((function(t){r.startTransaction(\"vacate\"),t.data.text&&r.model.setDataProperty(t.data,\"pFill\",window.go.GraphObject.make(go.Brush,\"Radial\",{0:\"rgb(240, 240, 240)\",.3:\"rgb(240, 240, 240)\",1:\"rgba(240, 240, 240, 0)\"})),r.commitTransaction(\"vacate\")}))}return e||(e={showEditNode:function(){},SelectionDeleted:function(){},LinkDrawn:function(){},externalobjectsdropped:function(){}}),e.showEditNode&&(o.showEditNode=e.showEditNode),e.SelectionDeleted&&(o.SelectionDeleted=e.SelectionDeleted),e.LinkDrawn&&(o.LinkDrawn=e.LinkDrawn),e.externalobjectsdropped&&(o.externalobjectsdropped=e.externalobjectsdropped),this.loadFlow=function(t){if(t){r.model=go.Model.fromJson(t);r.model.modelData.position;this.diagram=r,x()}},this.getFlowData=function(){return r.model.modelData.position=go.Point.stringify(r.position),r.model.toJson()},this.animateFlowPath=function(t,e,i,n){if(t){var o=t.split(\",\"),r=f(o,i);d(r);var s=y(o,r,i,n);if(r.push(s),i||m(s,n),e&&e.length>0){var a=b(s);g(a)}}},this.diagram=s(t),this}e[\"a\"]=o},a601:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-international\",use:\"icon-international-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-international\"><path d=\"M83.287 103.01c-1.57-3.84-6.778-10.414-15.447-19.548-2.327-2.444-2.182-4.306-1.338-9.862v-.64c.553-3.81 1.513-6.05 14.313-8.087 6.516-1.018 8.203 1.57 10.589 5.178l.785 1.193a12.625 12.625 0 0 0 6.43 5.207c1.134.524 2.53 1.164 4.421 2.24 4.596 2.53 4.596 5.41 4.596 11.753v.727a26.91 26.91 0 0 1-5.178 17.454 59.055 59.055 0 0 1-19.025 11.026c3.49-6.546.814-14.313 0-16.553l-.146-.087zM64 5.12a58.502 58.502 0 0 1 25.484 5.818 54.313 54.313 0 0 0-12.859 10.327c-.93 1.28-1.716 2.473-2.472 3.579-2.444 3.694-3.637 5.352-5.818 5.614a25.105 25.105 0 0 1-4.219 0c-4.276-.29-10.094-.64-11.956 4.422-1.193 3.23-1.396 11.956 2.444 16.495.66 1.077.778 2.4.32 3.578a7.01 7.01 0 0 1-2.066 3.229 18.938 18.938 0 0 1-2.909-2.91 18.91 18.91 0 0 0-8.32-6.603c-1.25-.349-2.647-.64-3.985-.93-3.782-.786-8.03-1.688-9.019-3.812a14.895 14.895 0 0 1-.727-5.818 21.935 21.935 0 0 0-1.396-9.25 8.873 8.873 0 0 0-5.557-4.946A58.705 58.705 0 0 1 64 5.12zM0 64c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},a75d:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-zip\",use:\"icon-zip-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-zip\"><path d=\"M78.527 116.793c.178.008.348.024.527.024h40.233c4.711-.005 8.53-3.677 8.534-8.21V18.895c-.004-4.532-3.823-8.204-8.534-8.209H79.054c-.179 0-.353.016-.527.024V0L0 10.082v107.406l78.527 10.342v-11.037zm0-101.362c.174-.024.348-.052.527-.052h40.233c2.018 0 3.659 1.578 3.659 3.52v89.713c-.003 1.942-1.64 3.517-3.659 3.519H79.054c-.179 0-.353-.028-.527-.052V15.431zM30.262 75.757l-18.721-.46V72.37l11.3-16.673v-.148l-10.266.164v-4.51l17.504-.44v3.264L18.696 70.76v.144l11.566.176v4.678zm9.419.231l-5.823-.144V50.671l5.823-.144v25.461zm22.255-11.632c-2.168 1.922-5.353 2.76-9.02 2.736-.702.004-1.402-.04-2.097-.131v9.303l-5.997-.148V50.743c1.852-.352 4.473-.647 8.218-.743 3.838-.096 6.608.539 8.48 1.913 1.807 1.306 3.032 3.5 3.032 6.112s-.926 4.833-2.612 6.331h-.004zM53.36 54.45c-.856-.01-1.71.083-2.541.275v7.682c.523.116 1.167.152 2.06.152 3.301-.004 5.36-1.614 5.36-4.314 0-2.425-1.772-3.843-4.875-3.791l-.004-.004zm39.847-37.066h9.564v3.795h-9.564v-3.795zm-9.568 5.68h9.564v3.8h-9.564v-3.8zm9.568 6.216h9.564v3.799h-9.564V29.28zm0 12h9.564v3.794h-9.564V41.28zm-9.568-6.096h9.564v3.795h-9.564v-3.795zm9.472 47.064c2.512 0 4.921-.96 6.697-2.67 1.776-1.708 2.773-4.026 2.772-6.442l-1.748-15.263c0-5.033-2.492-9.112-7.725-9.112-5.232 0-7.72 4.079-7.72 9.112l-1.752 15.263c-.001 2.417.996 4.735 2.773 6.444 1.777 1.71 4.187 2.669 6.7 2.668h.003zm-3.135-16.75h6.27v12.743h-6.27V65.5z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},aa3a:function(t,e,i){\"use strict\";i.d(e,\"e\",(function(){return o})),i.d(e,\"c\",(function(){return r})),i.d(e,\"d\",(function(){return s})),i.d(e,\"a\",(function(){return a})),i.d(e,\"f\",(function(){return l})),i.d(e,\"b\",(function(){return h}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/system/dict/data/list\",method:\"get\",params:t})}function r(t){return Object(n[\"a\"])({url:\"/system/dict/data/\"+t,method:\"get\"})}function s(t){return Object(n[\"a\"])({url:\"/system/dict/data/type/\"+t,method:\"get\"})}function a(t){return Object(n[\"a\"])({url:\"/system/dict/data\",method:\"post\",data:t})}function l(t){return Object(n[\"a\"])({url:\"/system/dict/data\",method:\"put\",data:t})}function h(t){return Object(n[\"a\"])({url:\"/system/dict/data/\"+t,method:\"delete\"})}},ab49:function(t,e,i){\"use strict\";i(\"3b39\")},ad41:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-date-range\",use:\"icon-date-range-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-date-range\"><defs><style type=\"text/css\"></style></defs><path d=\"M887.466667 192.853333h-100.693334V119.466667c0-10.24-6.826667-17.066667-17.066666-17.066667s-17.066667 6.826667-17.066667 17.066667v73.386666H303.786667V119.466667c0-10.24-6.826667-17.066667-17.066667-17.066667s-17.066667 6.826667-17.066667 17.066667v73.386666H168.96c-46.08 0-85.333333 37.546667-85.333333 85.333334V836.266667c0 46.08 37.546667 85.333333 85.333333 85.333333H887.466667c46.08 0 85.333333-37.546667 85.333333-85.333333V278.186667c0-47.786667-37.546667-85.333333-85.333333-85.333334z m-718.506667 34.133334h100.693333v66.56c0 10.24 6.826667 17.066667 17.066667 17.066666s17.066667-6.826667 17.066667-17.066666v-66.56h450.56v66.56c0 10.24 6.826667 17.066667 17.066666 17.066666s17.066667-6.826667 17.066667-17.066666v-66.56H887.466667c27.306667 0 51.2 22.186667 51.2 51.2v88.746666H117.76v-88.746666c0-29.013333 22.186667-51.2 51.2-51.2zM887.466667 887.466667H168.96c-27.306667 0-51.2-22.186667-51.2-51.2V401.066667H938.666667V836.266667c0 27.306667-22.186667 51.2-51.2 51.2z\" p-id=\"1377\" /><path d=\"M858.453333 493.226667H327.68c-10.24 0-17.066667 6.826667-17.066667 17.066666v114.346667h-116.053333c-10.24 0-17.066667 6.826667-17.066667 17.066667v133.12c0 10.24 6.826667 17.066667 17.066667 17.066666H460.8c10.24 0 17.066667-6.826667 17.066667-17.066666v-114.346667h380.586666c10.24 0 17.066667-6.826667 17.066667-17.066667v-133.12c0-10.24-6.826667-17.066667-17.066667-17.066666z m-413.013333 34.133333v97.28h-98.986667v-97.28h98.986667z m-230.4 131.413333h98.986667v98.986667h-98.986667v-98.986667z m131.413333 97.28v-97.28h98.986667v97.28h-98.986667z m133.12-228.693333h97.28v98.986667h-97.28v-98.986667z m131.413334 0h98.986666v98.986667h-98.986666v-98.986667z m230.4 97.28h-98.986667v-98.986667h98.986667v98.986667z\" p-id=\"1378\" /></symbol>'});s.a.add(a);e[\"default\"]=a},adba:function(t,e,i){t.exports=i.p+\"static/img/dark.412ca67e.svg\"},ae6e:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-people\",use:\"icon-people-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-people\"><path d=\"M104.185 95.254c8.161 7.574 13.145 17.441 13.145 28.28 0 1.508-.098 2.998-.285 4.466h-10.784c.238-1.465.403-2.948.403-4.465 0-8.983-4.36-17.115-11.419-23.216C86 104.66 75.355 107.162 64 107.162c-11.344 0-21.98-2.495-31.22-6.83-7.064 6.099-11.444 14.218-11.444 23.203 0 1.517.165 3 .403 4.465H10.955a35.444 35.444 0 0 1-.285-4.465c0-10.838 4.974-20.713 13.127-28.291C9.294 85.42.003 70.417.003 53.58.003 23.99 28.656.001 64 .001s63.997 23.988 63.997 53.58c0 16.842-9.299 31.85-23.812 41.673zM64 36.867c-29.454 0-53.33-10.077-53.33 15.342 0 25.418 23.876 46.023 53.33 46.023 29.454 0 53.33-20.605 53.33-46.023 0-25.419-23.876-15.342-53.33-15.342zm24.888 25.644c-3.927 0-7.111-2.665-7.111-5.953 0-3.288 3.184-5.954 7.11-5.954 3.928 0 7.111 2.666 7.111 5.954s-3.183 5.953-7.11 5.953zm-3.556 16.372c0 4.11-9.55 7.442-21.332 7.442-11.781 0-21.332-3.332-21.332-7.442 0-1.06.656-2.064 1.8-2.976 3.295 2.626 10.79 4.465 19.532 4.465 8.743 0 16.237-1.84 19.531-4.465 1.145.912 1.801 1.916 1.801 2.976zm-46.22-16.372c-3.927 0-7.11-2.665-7.11-5.953 0-3.288 3.183-5.954 7.11-5.954 3.927 0 7.111 2.666 7.111 5.954s-3.184 5.953-7.11 5.953z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},afbd:function(t,e,i){},b0b2:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"MutipleSelectPop\"},[i(\"div\",{staticClass:\"dialog_left\"},[i(\"div\",{staticClass:\"left_top\"},[i(\"Input\",{attrs:{search:\"\",placeholder:t.tree.placeholder},on:{\"on-change\":t.inputchange,\"on-keydown\":t.inputkeydown,\"on-search\":t.inputsearch},model:{value:t.tree.search,callback:function(e){t.$set(t.tree,\"search\",e)},expression:\"tree.search\"}})],1),i(\"div\",{staticClass:\"left_center\"},[t.treeLoading?i(\"div\",{staticClass:\"complex-spin-fix\"},[i(\"Spin\",{attrs:{fix:\"\"}},[i(\"Icon\",{staticClass:\"demo-spin-icon-load\",attrs:{type:\"ios-loading\",size:\"30\"}})],1)],1):t._e(),i(\"Tree\",{ref:\"Tree\",attrs:{data:t.treeLists,\"show-checkbox\":\"\",query:t.tree.search,queryStyle:t.queryStyle},on:{\"on-select-change\":t.getSelectedNodes,\"on-check-change\":t.getCheckedNodes}})],1)]),i(\"div\",{staticClass:\"dialog_center\"},[t.tableLoading?i(\"div\",{staticClass:\"complex-spin-fix\"},[i(\"Spin\",{attrs:{fix:\"\"}},[i(\"Icon\",{staticClass:\"demo-spin-icon-load\",attrs:{type:\"ios-loading\",size:\"30\"}})],1)],1):t._e(),i(\"div\",{staticClass:\"dialog_center_top\"},[i(\"div\",{staticClass:\"dialog_center_top_fix\"},[i(\"Input\",{attrs:{search:\"\",placeholder:t.table.placeholder},on:{\"on-change\":t.inputchange,\"on-keydown\":t.inputkeydown,\"on-search\":t.inputsearch},model:{value:t.table.search,callback:function(e){t.$set(t.table,\"search\",e)},expression:\"table.search\"}})],1)]),i(\"div\",[i(\"Tabs\",{attrs:{size:\"small\",animated:!1},on:{\"on-click\":t.tabClick}},t._l(t.TabPaneData,(function(e,n){return i(\"TabPane\",{key:n,attrs:{label:e.tab}},[i(\"div\",{staticClass:\"dialog_center_page\"},[i(\"div\",[i(\"Table\",{ref:\"Table\",refInFor:!0,attrs:{border:\"\",columns:e.columns,\"highlight-row\":!0,clickTimerTask:300,height:e.height,data:e.list},on:{\"on-select\":t.Onselect,\"on-select-cancel\":t.onSelectCancel,\"on-select-all\":t.onSelectAll,\"on-select-all-cancel\":t.onSelectAllCancel,\"on-selection-change\":t.onSelectChange,\"on-row-dblclick\":t.rowdbClick,\"on-row-click\":t.rowClick}})],1),i(\"div\",{staticClass:\"dialog_p10\"},[i(\"Page\",{attrs:{total:e.total,\"page-size\":e.pageSize,current:e.pageNum,\"page-size-opts\":e.pageOptions,\"show-total\":\"\",size:\"small\"},on:{\"on-change\":t.pageChange}})],1)])])})),1)],1)]),0===t.index?i(\"div\",{staticClass:\"dialog-operation\"},[i(\"div\",[t.isUse?i(\"Button\",{staticClass:\"operatebtn\",attrs:{type:\"primary\",ghost:\"\"},on:{click:t.operationTwo}},[t._v(\"选择部门\")]):t._e(),i(\"Button\",{staticClass:\"operatebtn\",attrs:{type:\"primary\",ghost:\"\"},on:{click:t.operation}},[t._v(\"选择人员\")])],1)]):t._e(),i(\"div\",{staticClass:\"dialog_right\"},[i(\"div\",{staticClass:\"left_top right_top\"},[i(\"div\",[t._v(\"已选中(\"+t._s(t.resultMessage.total||0)+\")\")]),i(\"div\",[i(\"i\",{staticClass:\"el-icon-delete\",on:{click:t.delecFun}})])]),i(\"div\",{staticClass:\"right_center\"},[t.resultMessage.list.length>0?i(\"ul\",t._l(t.resultMessage.list,(function(e,n){return i(\"li\",{key:n},[i(\"p\",[t._v(t._s(e.string))]),i(\"i\",{staticClass:\"iconfont iconbj_delete2\",on:{click:function(i){return t.deleteLi(n,e)}}})])})),0):t._e()])])])},o=[],r=i(\"2909\"),s=i(\"53ca\"),a=(i(\"b64b\"),i(\"841c\"),i(\"ac1f\"),i(\"1276\"),i(\"159b\"),i(\"c740\"),i(\"a9e3\"),i(\"d81d\"),i(\"4de4\"),i(\"99af\"),i(\"a434\"),i(\"a630\"),i(\"3ca3\"),i(\"6062\"),i(\"d3b7\"),i(\"ddb0\"),i(\"13d5\"),i(\"caad\"),i(\"2532\"),i(\"ff02\")),l={name:\"Mutiple\",props:{resultData:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},open:{type:Boolean,default:!1},icon_delect:{type:String,default:\"iconfont icon-bj_delete\"},checkedList:{type:Array,default:function(){return[]}},isUse:{type:Boolean,default:!0},isMutiple:{type:Boolean,default:!0},isCallInterface:{type:Boolean,default:!1}},data:function(){return{tableLoading:!1,treeLoading:!1,tree:{placeholder:\"可搜索店仓/部门\",search:\"\"},table:{placeholder:\"直接输入人员姓名搜索\",search:\"\"},columns:[],treeNewData:[],showTree:this.open,componentt:[{tab:\"筛选结果\",columns:[{key:\"NAME\",title:\"用户名\"},{key:\"ENAME\",title:\"用户姓名\"}],list:[],total:0,pageSize:10,pageNum:1,pageOptions:[10,20,50,100],height:340}],resultRightData:{total:0,list:[]},templateName:\"\",index:0,queryStyle:{color:\"#fd6442\"},selectRow:[],selectDatas:{},obj:{}}},computed:{treeLists:function(){return this.treeNewData},TabPaneData:function(){return this.isMutiple,this.componentt},resultMessage:function(){return this.resultRightData}},watch:{isCallInterface:{handler:function(t,e){t?(this.componentt[0].pageNum=1,this.getTreeData(),this.resultData.list&&(this.resultRightData=this.deepCopy(this.resultData))):(this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.table.search&&(this.table.search=\"\"))}}},methods:{deepCopy:function(t){var e=Array.isArray(t)?[]:{};for(var i in t)t.hasOwnProperty(i)&&(\"object\"===Object(s[\"a\"])(t[i])&&null!==t[i]?e[i]=this.deepCopy(t[i]):e[i]=t[i]);return e},getSelectedNodes:function(t){var e=this;if(t.length>0){this.obj={},this.saveObj=t[0];var i=this,n=\"\";-1!==t[0].ID.indexOf(\".\")?(n=t[0].ID.split(\".\")[1],n=parseInt(n)):n=parseInt(t[0].ID),null===t[0].CP_C_ORGUP_ID?this.findUser({}):(\"CP_C_STORE_ID\"===t[0].TYPE&&(this.obj.CP_C_STORE_ID=\"in(\"+n+\")\",i.findUser(i.obj)),\"CP_C_HRORG_ID\"===t[0].TYPE&&Object(a[\"h\"])({CP_C_ORGUP_ID:n}).then((function(t){if(0===t.data.resultCode){var n=\"in (\",o=\"in (\";t.data.data.CP_C_HRORG&&t.data.data.CP_C_HRORG.length>0&&(t.data.data.CP_C_HRORG.forEach((function(t){n+=t.ID+\",\"})),t.data.data.CP_C_HRORG.length>0&&(i.obj.CP_C_HRORG_ID=n.substring(0,n.length-1)+\")\")),t.data.data.CP_C_STORE&&t.data.data.CP_C_STORE.length>0&&(t.data.data.CP_C_STORE.forEach((function(t){o+=t.ID+\",\"})),t.data.data.CP_C_STORE.length>0&&(i.obj.CP_C_STORE_ID=o.substring(0,o.length-1)+\")\")),i.findUser(i.obj)}else e.$Modal.fcError({title:\"错误提示\",content:t.data.resultMsg})})))}this.$emit(\"on-select-tree\",t,this)},getCheckedNodes:function(t){this.$emit(\"on-change-tree\",t,this)},tabClick:function(t){this.index=t,this.$emit(\"on-click-tab\",t,this)},pageChange:function(t){this.$emit(\"on-change-page\",t,this),this.componentt[0].pageNum=t;var e=Object.assign(this.obj,{page:t,pageSize:10});\"\"!==this.table.search&&(e.ENAME=this.table.search),this.findUser(e)},pageChangeSize:function(t){this.$emit(\"on-change-pageSize\",t,this),this.componentt[0].pageSize=t;var e=Object.assign(this.obj,{page:1,pageSize:t});\"\"!==this.table.search&&(e.ENAME=this.table.search),this.findUser(e)},rowdbClick:function(t,e){var i=Object.assign({},t);if(this.isMutiple){var n=Object.assign({approve_type:4},t);if(n.string=n.ENAME,this.resultRightData.list&&this.resultRightData.list.length>0){var o=this.resultRightData.list.findIndex((function(t){return n.ID===t.ID||n.ID===Number(t.approve_value)}));-1===o?this.resultRightData.list.push(n):this.$message({message:n.ENAME+\"已经选择过了,请不要重复选择!\",type:\"warning\"})}else this.$set(this.resultRightData,\"list\",[n])}else i.string=i.ENAME,this.resultRightData.list?(this.resultRightData.list=[],this.resultRightData.list.push(i)):this.$set(this.resultRightData,\"list\",[i]);this.resultRightData.total?this.resultRightData.total=this.resultRightData.list.length:this.$set(this.resultRightData,\"total\",this.resultRightData.list.length),this.$emit(\"getResult\",this.resultRightData),this.$refs.Table[0].clearCurrentRow(),this.$emit(\"on-row-dblclick\",t,e,this)},rowClick:function(t,e){this.isMutiple||(this.selectDatas=Object.assign(this.selectDatas,t)),this.$emit(\"on-row-click\",t,e,this)},Onselect:function(t,e){this.isMutiple&&(this.componentt[0].list.map((function(t){e.ID===t.ID&&(t._checked=!0)})),this.selectRow=[],this.selectRow=t),this.$emit(\"on-select\",t,e)},onSelectCancel:function(t,e){this.componentt[0].list.map((function(t){e.ID===t.ID&&(t._checked=!1)})),this.selectRow=[],this.selectRow=t,this.$emit(\"on-select-cancel\",t,e)},onSelectAll:function(t){this.selectRow=[],this.componentt[0].list.map((function(t){t._checked=!0})),this.selectRow=t,this.$emit(\"on-select-all\",t)},onSelectAllCancel:function(t){this.componentt[0].list.map((function(t){t._checked=!1})),this.selectRow=[],this.$emit(\"on-select-all-cancel\",t)},onSelectChange:function(t){this.$emit(\"on-select-change\",t)},inputchange:function(t){this.table.search=t.target.value,this.$emit(\"on-change\",t,this)},inputkeydown:function(t){this.$emit(\"on-keydown\",t,this)},inputsearch:function(t){var e=Object.assign(this.obj,{page:1,pageSize:10,ENAME:t});this.findUser(e),this.$emit(\"on-search\",t,this)},operationTwo:function(){var t=this,e=this.$refs.Tree.getCheckedNodes();e=e.filter((function(t){return\"全部\"!==t.title})),this.isMutiple&&(e.length>0?(this.resultRightData.total?this.$set(this.resultRightData,\"total\",this.resultData.total+e.length):this.$set(this.resultRightData,\"total\",e.length),e.map((function(e){var i=Object.assign({approve_type:2},e);if(i.string=e.ENAME,t.resultRightData.list&&t.resultRightData.list.length>0){var n=t.resultRightData.list.findIndex((function(t){return e.ID===t.ID||e.ID===Number(t.approve_value)}));-1===n?t.resultRightData.list.push(i):t.$message({message:e.ENAME+\"已经选择过了,请不要重复选择!\",type:\"warning\"})}else t.$set(t.resultRightData,\"list\",[i])}))):his.$message({message:\"请选择部门!\",type:\"warning\"}),this.getTreeData()),this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.$emit(\"getResult\",this.resultRightData),this.$emit(\"on-transfer-two\",e,this)},operation:function(){var t=this;if(this.isMutiple)this.selectRow.length>0?(this.selectRow.map((function(e){var i=Object.assign({approve_type:4},e);if(i.string=e.ENAME,t.resultRightData.list&&t.resultRightData.list.length>0){var n=t.resultRightData.list.findIndex((function(t){return e.ID===t.ID||e.ID===Number(t.approve_value)}));-1===n?t.resultRightData.list.push(i):t.$message({message:e.ENAME+\"已经选择过了,请不要重复选择!\",type:\"warning\"})}else t.$set(t.resultRightData,\"list\",[i])})),this.resultRightData.total?this.resultRightData.total=this.resultRightData.list.length:this.$set(this.resultRightData,\"total\",this.resultRightData.list.length)):this.$message({message:\"请选择人员\",type:\"warning\"});else{if(0===Object.keys(this.selectDatas).length)return void this.$message({message:\"请选择人员\",type:\"warning\"});this.resultRightData.total?this.resultRightData.total=1:this.$set(this.resultRightData,\"total\",1);var e=Object.assign({},this.selectDatas);e.string=e.ENAME,this.resultRightData.list?(this.resultRightData.list=[],this.resultRightData.list.push(e)):this.$set(this.resultRightData,\"list\",[e])}this.componentt[0].list.map((function(t){t._checked=!1})),this.componentt[0].list=this.componentt[0].list.concat([]),this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.$emit(\"getResult\",this.resultRightData),this.$emit(\"on-transfer\",this)},deleteLi:function(t,e){var i=this,n=this.$refs.Tree.getCheckedNodes();n&&n.length>0&&n.map((function(t){t.ID===e.ID&&i.$refs.Tree.handleCheck({checked:!1,nodeKey:t.nodeKey})}));var o=this.TabPaneData[0].list;o.map((function(t,i){t.ID===e.ID&&(t._checked=!1)})),this.resultRightData.list.splice(t,1),this.resultRightData.total=this.resultRightData.list.length,this.$emit(\"getResult\",this.resultRightData),this.$emit(\"on-delectli\",t,e,this)},treeOpen:function(t){this.showTree=!t,this.treeNewData.forEach((function(t){t.expand=!t.expand}))},delecFun:function(){var t=this,e=this.$refs.Tree.getCheckedNodes();e&&e.length>0&&e.map((function(e){t.$refs.Tree.handleCheck({checked:!1,nodeKey:e.nodeKey})}));var i=this.TabPaneData[0].list;i&&i.length>0&&i.map((function(t,e){t._checked=!1})),this.$emit(\"on-deleBtn\",this),this.resultRightData.total=0,this.resultRightData.list=[],this.componentt[0].list.map((function(t){t._checked=!1})),this.componentt[0].list=this.componentt[0].list.concat([]),this.$emit(\"getResult\",this.resultRightData)},findUser:function(t){var e=this;this.tableLoading=!0,Object(a[\"j\"])(t).then((function(t){e.tableLoading=!1;var i=t;0===t.code&&(i.data&&e.transferTbody(i.data),i.datas&&e.transferTbody(i.datas))}))},transferTbody:function(t){var e=this;this.componentt[0].total=t.totalRowCount,this.componentt[0].pageOptions=t.selectrange,this.componentt[0].list=[],t.row.map((function(t){var i={};Object.keys(t).map((function(e){i[e]=t[e].val})),Object.assign({},i),e.componentt[0].list.push(i)}))},getTreeData:function(){var t=this;this.tree_loading=!0,Object(a[\"i\"])().then((function(e){if(t.tree_loading=!1,0===e.resultCode){console.log(345678),t.treeNewData=[];var i=[];e.data.records.length>0&&(console.log(3456788),e.data.records.forEach((function(t){var e=Object.assign(t);i.push(e),null!==t[\"CP_C_ORGUP_ID\"]&&\"\"!==t[\"CP_C_ORGUP_ID\"]||Object.assign({},t)})),t.treeNewData=t.arrayTransTree(i,\"CP_C_ORGUP_ID\"),console.log(t.treeNewData)),t.findUser({})}}))},arrayTransTree:function(t,e){var i=[],n=[];if(t.map((function(t){t.expand=!1,t.title=t.ENAME,!t[e]||-1!==t[e].indexOf(\".\")&&!t[e].split(\".\")[1]?i.push(t):n.push(t)})),i.length<1){var o=this.findTreeRootFirstChild(t,e),s=o.map((function(t){return t[e]})),a=Array.from(new Set(Object(r[\"a\"])(s)));return 1===a.length?(i=[{CP_C_ORGUP_ID:null,ECODE:\"00000\",ENAME:\"全部\",ID:a[0],MIXNAME:\"[00000]全部\",ORGTYPE:\"IN\",TYPE:\"CP_C_HRORG_ID\",title:\"全部\"}],this.translator(i,n,e),i):void this.$message({message:\"数据有问题,请检查...\",type:\"warning\"})}return this.translator(i,n,e),i},translator:function(t,e,i){var n=this,o=[];e.map((function(t){var e=Object.assign({},t);o.push(e)})),t.map((function(t){e.map((function(e,r){e[i]===t.ID&&(o.splice(r,1),n.translator([e],o,i),t.children?t.children.push(e):t.children=[e])}))}))},treeTransArray:function(t,e){return t.reduce((function t(i,n){return i.push(n),n[e]&&n[e].length>0&&n[e].reduce(t,i),i}),[]).map((function(t){return t[e]=[],t}))},findTreeRootFirstChild:function(t,e){var i=[],n=[];return i=t.map((function(t){return t[\"ID\"]})),t.map((function(t){i.includes(t[e])||n.push(t)})),n},handleCheckChange:function(){}},mounted:function(){},destroyed:function(){this.selectRow.length>0&&(this.selectRow=[]),Object.keys(this.selectDatas).length>0&&(this.selectDatas={}),this.table.search&&(this.table.search=\"\")}},h=l,u=(i(\"7d57\"),i(\"2877\")),c=Object(u[\"a\"])(h,n,o,!1,null,null,null);e[\"a\"]=c.exports},b34b:function(t,e,i){},b470:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-phone\",use:\"icon-phone-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-phone\"><defs><style type=\"text/css\"></style></defs><path d=\"M761.503029 2.90619 242.121921 2.90619c-32.405037 0-58.932204 26.060539-58.932204 58.527998l0 902.302287c0 32.156374 26.217105 58.216913 58.932204 58.216913l519.381108 0c32.344662 0 58.591443-26.060539 58.591443-58.216913L820.094472 61.123103C820.094472 28.966729 793.847691 2.90619 761.503029 2.90619M452.878996 61.123103l98.147344 0c6.780427 0 12.31549 5.536087 12.31549 12.253068 0 6.748704-5.535063 12.253068-12.31549 12.253068l-98.147344 0c-6.779404 0-12.345166-5.504364-12.345166-12.253068C440.532807 66.659189 446.099592 61.123103 452.878996 61.123103M501.641583 980.593398c-29.636994 0-53.987588-23.946388-53.987588-53.677527 0-29.356608 24.039509-53.614082 53.987588-53.614082 29.91738 0 53.987588 23.883967 53.987588 53.614082C555.629171 956.647009 531.559986 980.593398 501.641583 980.593398M766.35657 803.142893c0 16.23373-13.186324 29.107945-29.233811 29.107945l-470.618521 0c-16.35755 0-29.325909-13.186324-29.325909-29.107945L237.178329 163.500794c0-16.232706 13.279445-29.138644 29.325909-29.138644l470.246037 0c16.420995 0 29.357632 13.1853 29.357632 29.138644l0 639.642099L766.35657 803.142893zM766.35657 803.142893\" p-id=\"2267\" /></symbol>'});s.a.add(a);e[\"default\"]=a},b6f9:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-example\",use:\"icon-example-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-example\"><path d=\"M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},b775:function(t,e,i){\"use strict\";i.d(e,\"b\",(function(){return f}));var n=i(\"53ca\"),o=(i(\"b64b\"),i(\"fb6a\"),i(\"d3b7\"),i(\"caad\"),i(\"2532\"),i(\"2b3d\"),i(\"3ca3\"),i(\"ddb0\"),i(\"bc3a\")),r=i.n(o),s=i(\"5c96\"),a=i(\"4360\"),l=i(\"5f87\"),h={401:\"认证失败,无法访问系统资源\",403:\"当前操作没有权限\",404:\"访问资源不存在\",default:\"系统未知错误,请反馈给管理员\"},u=i(\"c38a\");r.a.defaults.headers[\"Content-Type\"]=\"application/json;charset=utf-8\",r.a.defaults.headers[\"accountName\"]=\"guest\";var c=r.a.create({baseURL:\"/prod-api\",timeout:1e4});function f(t,e,i){return c.post(t,e,{transformRequest:[function(t){return Object(u[\"h\"])(t)}],headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"},responseType:\"blob\"}).then((function(t){var e=t,n=new Blob([e]);if(\"download\"in document.createElement(\"a\")){var o=document.createElement(\"a\");o.download=i,o.style.display=\"none\",o.href=URL.createObjectURL(n),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}else navigator.msSaveBlob(n,i)})).catch((function(t){console.error(t)}))}c.interceptors.request.use((function(t){var e=!1===(t.headers||{}).isToken;if(Object(l[\"a\"])()&&!e&&(t.headers[\"Authorization\"]=\"Bearer \"+Object(l[\"a\"])()),\"get\"===t.method&&t.params){for(var i=t.url+\"?\",o=0,r=Object.keys(t.params);o<r.length;o++){var s=r[o],a=t.params[s],h=encodeURIComponent(s)+\"=\";if(null!==a&&\"undefined\"!==typeof a)if(\"object\"===Object(n[\"a\"])(a))for(var u=0,c=Object.keys(a);u<c.length;u++){var f=c[u],d=s+\"[\"+f+\"]\",p=encodeURIComponent(d)+\"=\";i+=p+encodeURIComponent(a[f])+\"&\"}else i+=h+encodeURIComponent(a)+\"&\"}i=i.slice(0,-1),t.params={},t.url=i}return t}),(function(t){console.log(t),Promise.reject(t)})),c.interceptors.response.use((function(t){var e=t.data.code||200,i=h[e]||t.data.msg||h[\"default\"];if(401!==e)return 500===e?(Object(s[\"Message\"])({message:i,type:\"error\"}),Promise.reject(new Error(i))):200!==e?(s[\"Notification\"].error({title:i}),Promise.reject(\"error\")):t.data;s[\"MessageBox\"].confirm(\"登录状态已过期,您可以继续留在该页面,或者重新登录\",\"系统提示\",{confirmButtonText:\"重新登录\",cancelButtonText:\"取消\",type:\"warning\"}).then((function(){a[\"a\"].dispatch(\"LogOut\").then((function(){location.href=\"/index\"}))}))}),(function(t){console.log(\"err\"+t);var e=t.message;return\"Network Error\"==e?e=\"后端接口连接异常\":e.includes(\"timeout\")?e=\"系统接口请求超时\":e.includes(\"Request failed with status code\")&&(e=\"系统接口\"+e.substr(e.length-3)+\"异常\"),Object(s[\"Message\"])({message:e,type:\"error\",duration:5e3}),Promise.reject(t)}));e[\"a\"]=c},b799:function(t,e,i){},b88c:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-build\",use:\"icon-build-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-build\"><defs><style type=\"text/css\"></style></defs><path d=\"M960 591.424V368.96c0-0.288 0.16-0.512 0.16-0.768S960 367.68 960 367.424V192a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v175.424c0 0.288-0.16 0.512-0.16 0.768s0.16 0.48 0.16 0.768v222.464c0 0.288-0.16 0.512-0.16 0.768s0.16 0.48 0.16 0.768V864a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32v-271.04c0-0.288 0.16-0.512 0.16-0.768S960 591.68 960 591.424z m-560-31.232v-160H608v160h-208z m208 64V832h-208v-207.808H608z m-480-224h208v160H128v-160z m544 0h224v160h-224v-160zM896 224v112.192H128V224h768zM128 624.192h208V832H128v-207.808zM672 832v-207.808h224V832h-224z\" p-id=\"2055\" /></symbol>'});s.a.add(a);e[\"default\"]=a},b895:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t._items.hidden?t._e():i(\"div\",{staticClass:\"ItemComponentRoot\"},[i(\"span\",{staticClass:\"itemLabel\"},[t._items.required?i(\"span\",{staticClass:\"label-tip\"},[t._v(\"*\")]):t._e(),t._v(\" \"+t._s(t._items.title)+\": \")]),i(\"div\",{staticClass:\"itemComponent\"},[\"input\"===t._items.type?i(\"Input\",{attrs:{type:t._items.props.type,clearable:t._items.props.clearable,disabled:t._items.props.disabled,readonly:t._items.props.readonly,rows:t._items.props.rows,autosize:t._items.props.autosize,number:t._items.props.number,autofocus:t._items.props.autofocus,placeholder:t._items.props.placeholder,size:t._items.props.size,maxlength:t._items.props.maxlength,icon:t._items.props.icon,regx:t._items.props.regx,\"on-click\":\"inputClick\",\"on-blur\":\"inputBlur\"},on:{\"on-change\":t.inputChange,\"on-enert\":t.inputEnter,\"on-focus\":t.inputFocus,\"on-keyup\":t.inputKeyUp,\"on-keydown\":t.inputKeyDown,\"on-keypress\":t.inputKeyPress,\"on-regx-check\":t.inputRegxCheck},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"checkbox\"===t._items.type?i(\"Checkbox\",{attrs:{disabled:t._items.props.disabled,size:t._items.props.size,circle:t._items.props.circle},on:{\"on-change\":t.checkBoxChange},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"select\"===t._items.type?i(\"Select\",{attrs:{clearable:t._items.props.clearable,multiple:t._items.props.multiple,\"multiple-type\":t._items.props.multipleType,disabled:t._items.props.disabled,placeholder:t._items.props.placeholder,\"not-found-text\":t._items.props[\"not-found-text\"],\"label-in-value\":t._items.props[\"label-in-value\"],placement:t._items.props.placement,transfer:t._items.props.transfer},on:{\"on-change\":t.selectChange,\"on-clear\":t.selectClear,\"on-open-change\":t.selectOpenChange},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}},t._l(t._items.options,(function(e){return i(\"Option\",{key:e.value,attrs:{value:e.value,disabled:e.disabled,label:e.label}},[t._v(t._s(e.label))])})),1):t._e(),\"Switch\"===t._items.type?i(\"i-switch\",{on:{\"on-change\":t.SwitchChange},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"DatePicker\"===t._items.type?i(\"DatePicker\",{attrs:{type:t._items.props.type,transfer:t._items.props.transfer,format:t._items.props.format,placement:t._items.props.placement,placeholder:t._items.props.placeholder,options:t._items.props.options,open:t._items.props.open,confirm:t._items.props.confirm,size:t._items.props.size,disabled:t._items.props.disabled,clearable:t._items.props.clearable,readonly:t._items.props.readonly,editable:t._items.props.editable},on:{\"on-change\":function(e,i,n){return t.datePickerChange(t._items.value=e,i,n,t._items.props.type)},\"on-clear\":t.datePickerClear},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}}):t._e(),\"DropDownSelectFilter\"!==t._items.type||t._items.props.single?t._e():i(\"DropMultiSelectFilter\",{attrs:{data:t._items.props.data,single:t._items.props.single,\"total-row-count\":t._items.props.totalRowCount,\"page-size\":t._items.props.pageSize,\"auto-data\":t._items.props.AutoData,disabled:t._items.props.disabled,hidecolumns:t._items.props.hidecolumns,\"data-empty-message\":t._items.props.dataEmptyMessage,\"default-selected\":t._items.props.defaultSelected,transfer:t._items.props.transfer,columnsKey:t._items.props.columnsKey,showColnameKey:t._items.props.showColnameKey,placeholder:t._items.props.placeholder},on:{\"on-fkrp-selected\":t.fkrpSelected,\"on-page-change\":t.pageChange,\"on-input-value-change\":t.inputValueChange,\"on-focus\":t.fkrpSelectedInputFocus,\"on-blur\":t.fkrpSelectedInputBlur,\"on-keyup\":t.fkrpSelectedInputKeyup,\"on-keydown\":t.fkrpSelectedInputKeydown,\"on-popper-show\":t.fkrpSelectedPopperShow,\"on-popper-hide\":t.fkrpSelectedPopperHide,\"on-clear\":t.fkrpSelectedClear}}),\"DropDownSelectFilter\"===t._items.type&&t._items.props.single?i(\"DropDownSelectFilter\",{attrs:{data:t._items.props.data,single:t._items.props.single,\"total-row-count\":t._items.props.totalRowCount,\"page-size\":t._items.props.pageSize,\"auto-data\":t._items.props.AutoData,disabled:t._items.props.disabled,hidecolumns:t._items.props.hidecolumns,\"data-empty-message\":t._items.props.dataEmptyMessage,\"default-selected\":t._items.props.defaultSelected,transfer:t._items.props.transfer,columnsKey:t._items.props.columnsKey,showColnameKey:t._items.props.showColnameKey,placeholder:t._items.props.placeholder},on:{\"on-fkrp-selected\":t.fkrpSelected,\"on-page-change\":t.pageChange,\"on-input-value-change\":t.inputValueChange,\"on-focus\":t.fkrpSelectedInputFocus,\"on-blur\":t.fkrpSelectedInputBlur,\"on-keyup\":t.fkrpSelectedInputKeyup,\"on-keydown\":t.fkrpSelectedInputKeydown,\"on-popper-show\":t.fkrpSelectedPopperShow,\"on-popper-hide\":t.fkrpSelectedPopperHide,\"on-clear\":t.fkrpSelectedClear}}):t._e(),\"selectInput\"===t._items.type?i(\"div\",{staticClass:\"complex-input\"},[i(\"Input\",{attrs:{readonly:t._items.props.readonly},on:{\"on-change\":t.inputChange,\"on-enert\":t.inputEnter,\"on-focus\":t.inputFocus,\"on-keyup\":t.inputKeyUp,\"on-keydown\":t.inputKeyDown,\"on-keypress\":t.inputKeyPress,\"on-regx-check\":t.inputRegxCheck},model:{value:t._items.value,callback:function(e){t.$set(t._items,\"value\",e)},expression:\"_items.value\"}},[t._items.slot?i(\"Select\",{staticStyle:{width:\"60px\"},attrs:{slot:\"prepend\",transfer:!0},on:{\"on-change\":t.selectChange},slot:\"prepend\",model:{value:t._items.slotValue,callback:function(e){t.$set(t._items,\"slotValue\",e)},expression:\"_items.slotValue\"}},[i(\"Option\",{attrs:{value:0}},[t._v(\"指定\")]),i(\"Option\",{attrs:{value:1}},[t._v(\"不限次数\")])],1):t._e()],1)],1):t._e()],1)])},o=[],r={type:\"input\",title:\"\",field:\"\",value:\"\",props:{type:\"text\",clearable:!1,disabled:!1,readonly:!1,rows:4,autosize:!1,number:!1,autofocus:!1,autocomplete:\"off\",placeholder:\"请输入\",size:\"default\",maxlength:null,icon:null,prefix:null,suffix:null,\"element-id\":null,spellcheck:!1,wrap:\"soft\",regx:null},event:{enter:function(t,e){},click:function(t,e){},change:function(t,e){},focus:function(t,e){},blur:function(t,e){},keyup:function(t,e){},keydown:function(t,e){},keypress:function(t,e){},search:function(t,e){},regxCheck:function(t,e,i){}}},s={type:\"select\",title:\"\",field:\"\",value:\"\",options:[],props:{multiple:!1,multipleType:!1,disabled:!1,clearable:!0,size:\"default\",placeholder:\"请选择\",\"not-found-text\":\"无匹配数据\",\"label-in-value\":!1,placement:\"bottom\",transfer:!0}},a={type:\"Switch\",title:\"\",field:\"\",value:!1,props:{}},l={type:\"radiobox\",title:\"\",field:\"\",value:!1,props:{size:\"default\",disabled:!1}},h={type:\"checkbox\",title:\"\",field:\"\",value:!1,props:{size:\"default\",disabled:!1,circle:!1},event:{change:function(t,e){}}},u={type:\"DatePicker\",field:\"\",title:\"活动日期\",value:\"\",props:{type:\"datetimerange\",format:\"yyyy-MM-dd HH:mm\",placement:\"bottom-start\",placeholder:\"请选择获得时间\",options:{disabledDate:function(t){return t&&t.valueOf()>Date.now()}},open:null,confirm:!1,size:\"default\",disabled:!1,clearable:!0,readonly:!1,editable:!1,transfer:!0}},c={type:\"DropDownSelectFilter\",field:\"\",title:\"\",value:\"\",props:{placeholder:\"请选择\",single:!0,data:{},totalRowCount:0,pageSize:10,AutoData:[],columns:[],dataEmptyMessage:\"暂无数据\",defaultSelected:[],transfer:!0,columnsKey:[]}},f={type:\"selectInput\",title:\"\",field:\"\",value:\"\",slotfiled:\"\",slotValue:\"\",props:{type:\"text\",clearable:!1,disabled:!1,readonly:!1,rows:4,autosize:!1,number:!1,autofocus:!1,autocomplete:\"off\",placeholder:\"请输入\",size:\"default\",maxlength:null,icon:null,prefix:null,suffix:null,\"element-id\":null,spellcheck:!1,wrap:\"soft\",regx:null},event:{enter:function(t,e){},click:function(t,e){},change:function(t,e){},focus:function(t,e){},blur:function(t,e){},keyup:function(t,e){},keydown:function(t,e){},keypress:function(t,e){},search:function(t,e){},regxCheck:function(t,e,i){}}},d={DatePicker:u,checkbox:h,radiobox:l,Switch:a,select:s,input:r,selectInput:f,DropDownSelectFilter:c},p=d,g={name:\"ItemComponent\",props:{items:{type:Object,default:function(){return{}}}},computed:{_items:function(){var t=JSON.parse(JSON.stringify(this.items));return t.props=Object.assign({},p[t.type].props,this.items.props),t.event=Object.assign({},this.items.event),\"DatePicker\"===t.type&&(\"datetimerange\"===t.props.type||\"daterange\"===t.props.type?t.value||(t.value=[]):t.value=new Date),t}},methods:{valueChange:function(t){t&&\"select\"===t?this.$emit(\"inputChange\",this._items.slotValue,this._items,t):this.$emit(\"inputChange\",this._items.value,this._items)},SwitchChange:function(){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(event)},inputChange:function(t,e){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,e)},inputEnter:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"enter\")&&\"function\"===typeof this._items.event.enter&&this._items.event.enter(t,e)},inputClick:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"click\")&&\"function\"===typeof this._items.event.click&&this._items.event.click(t,e)},inputFocus:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"focus\")&&\"function\"===typeof this._items.event.focus&&this._items.event.focus(t,e)},inputBlur:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"blur\")&&\"function\"===typeof this._items.event.blur&&this._items.event.blur(t,e)},inputKeyUp:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keyup\")&&\"function\"===typeof this._items.event.keyup&&this._items.event.keyup(t,e)},inputKeyDown:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keydown\")&&\"function\"===typeof this._items.event.keydown&&this._items.event.keydown(t,e)},inputKeyPress:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keypress\")&&\"function\"===typeof this._items.event.keypress&&this._items.event.keypress(t,e)},inputRegxCheck:function(t,e,i){Object.prototype.hasOwnProperty.call(this._items.event,\"regxCheck\")&&\"function\"===typeof this._items.event.regxCheck&&this._items.event.regxCheck(t,e,i)},checkBoxChange:function(t,e){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,e)},selectChange:function(t,e){\"selectInput\"===this._items.type?(this._items.slotValue=t,this.valueChange(\"select\")):(this._items.value=t,this.valueChange()),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,e)},selectClear:function(t){this._items.value=null,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t)},selectOpenChange:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"openChange\")&&\"function\"===typeof this._items.event.openChange&&this._items.event.openChange(t,e)},datePickerChange:function(t,e,i){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,i)},datePickerClear:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t)},timePickerChange:function(t,e,i){this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"change\")&&\"function\"===typeof this._items.event.change&&this._items.event.change(t,i)},timePickerClear:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t)},fkrpSelected:function(t,e){this._items.value=t,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"fkrpSelected\")&&\"function\"===typeof this._items.event.fkrpSelected&&this._items.event.fkrpSelected(t,e)},inputValueChange:function(t,e){this._items.value=t,Object.prototype.hasOwnProperty.call(this._items.event,\"inputValueChange\")&&\"function\"===typeof this._items.event.inputValueChange&&this._items.event.inputValueChange(t,e)},fkrpSelectedClear:function(t){this._items.value=void 0,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"clear\")&&\"function\"===typeof this._items.event.clear&&this._items.event.clear(t),Object.prototype.hasOwnProperty.call(this._items.event,\"inputValueChange\")&&\"function\"===typeof this._items.event.inputValueChange&&this._items.event.inputValueChange(\"\",t)},pageChange:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"pageChange\")&&\"function\"===typeof this._items.event.pageChange&&this._items.event.pageChange(t,e)},fkrpSelectedInputFocus:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"focus\")&&\"function\"===typeof this._items.event.focus&&this._items.event.focus(t,e)},fkrpSelectedInputBlur:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"blur\")&&\"function\"===typeof this._items.event.blur&&this._items.event.blur(t,e)},fkrpSelectedInputKeyup:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keyup\")&&\"function\"===typeof this._items.event.keyup&&this._items.event.keyup(t,e)},fkrpSelectedInputKeydown:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keydown\")&&\"function\"===typeof this._items.event.keydown&&this._items.event.keydown(t,e)},fkrpSelectedPopperShow:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"on-show\")&&\"function\"===typeof this._items.event[\"on-show\"]&&this._items.event[\"on-show\"](t)},fkrpSelectedPopperHide:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"on-popper-hide\")&&\"function\"===typeof this._items.event[\"on-popper-hide\"]&&this._items.event[\"on-popper-hide\"](t)},attachFilterChange:function(t,e){this._items.value=t,this.valueChange(),Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&this._items.event[\"popper-value\"](e,t,\"change\",this.index),Object.prototype.hasOwnProperty.call(this._items.event,\"inputValueChange\")&&\"function\"===typeof this._items.event.inputValueChange&&this._items.event.inputValueChange(t,e)},attachFilterSelected:function(t,e){this._items.value=t.label,this._items.props.selected=t.value,Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&this._items.event[\"popper-value\"](e,t.label,t.value,this.index)},attachFilterInputFocus:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"focus\")&&\"function\"===typeof this._items.event.focus&&this._items.event.focus(t,e)},attachFilterInputBlur:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"blur\")&&\"function\"===typeof this._items.event.blur&&this._items.event.blur(t,e)},attachFilterInputKeyup:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keyup\")&&\"function\"===typeof this._items.event.keyup&&this._items.event.keyup(t,e)},attachFilterInputKeydown:function(t,e){Object.prototype.hasOwnProperty.call(this._items.event,\"keydown\")&&\"function\"===typeof this._items.event.keydown&&this._items.event.keydown(t,e)},attachFilterPopclick:function(t,e,i,n){\"I\"!==i&&1!==t?(n.showModal=!0,0!==t&&(console.log(e.label),this.filterDate=JSON.parse(e.label))):\"I\"===i&&Object.prototype.hasOwnProperty.call(this._items.event,\"on-delete\")&&\"function\"===typeof this._items.event[\"on-delete\"]&&this._items.event[\"on-delete\"](n,this._items,e.key,this.index)},attachFilterClear:function(t,e){this._items.value=\"\",Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&this._items.event[\"popper-value\"](e,\"\",[],this.index)},attachFilterPopperShow:function(t){Object.prototype.hasOwnProperty.call(this._items.event,\"popper-show\")&&\"function\"===typeof this._items.event[\"popper-show\"]&&this._items.event[\"popper-show\"](t,this._items,this.index)},attachFilterOk:function(t){if(Object.prototype.hasOwnProperty.call(this._items.event,\"popper-value\")&&\"function\"===typeof this._items.event[\"popper-value\"]&&t._data.IN>0){var e=\"已经选中\".concat(t._data.IN,\"条数据\");this._items.value=e,this.valueChange(),this._items.event[\"popper-value\"](t,e,t._data.IN,this.index)}}}},m=g,v=(i(\"0486\"),i(\"2877\")),y=Object(v[\"a\"])(m,n,o,!1,null,\"3d7ef39a\",null);e[\"a\"]=y.exports},bc7b:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-druid\",use:\"icon-druid-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-druid\"><defs><style type=\"text/css\"></style></defs><path d=\"M832 128H192a64.19 64.19 0 0 0-64 64v640a64.19 64.19 0 0 0 64 64h640a64.19 64.19 0 0 0 64-64V192a64.19 64.19 0 0 0-64-64z m0 703.89l-0.11 0.11H192.11l-0.11-0.11V768h640zM832 544H720L605.6 696.54 442.18 435.07 333.25 544H192v-64h114.75l147.07-147.07L610.4 583.46 688 480h144z m0-288H192v-63.89l0.11-0.11h639.78l0.11 0.11z\" p-id=\"5854\" /></symbol>'});s.a.add(a);e[\"default\"]=a},bcaa:function(t,e,i){},bfe9:function(t,e,i){\"use strict\";i(\"14c9\")},c0c3:function(t,e,i){\"use strict\";i.d(e,\"i\",(function(){return o})),i.d(e,\"o\",(function(){return r})),i.d(e,\"n\",(function(){return s})),i.d(e,\"f\",(function(){return a})),i.d(e,\"g\",(function(){return l})),i.d(e,\"a\",(function(){return h})),i.d(e,\"b\",(function(){return u})),i.d(e,\"j\",(function(){return c})),i.d(e,\"k\",(function(){return f})),i.d(e,\"l\",(function(){return d})),i.d(e,\"m\",(function(){return p})),i.d(e,\"p\",(function(){return g})),i.d(e,\"d\",(function(){return m})),i.d(e,\"e\",(function(){return v})),i.d(e,\"c\",(function(){return y})),i.d(e,\"h\",(function(){return b}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/system/config/list\",method:\"get\",params:t})}function r(t){return Object(n[\"a\"])({url:\"/system/dict/data/type/\"+t,method:\"get\"})}function s(t){return Object(n[\"a\"])({url:\"/system/dict/data/type/\"+t,method:\"get\"})}function a(t){return Object(n[\"a\"])({url:\"/system/config/\"+t,method:\"get\"})}function l(t){return Object(n[\"a\"])({url:\"/system/config/configKey/\"+t,method:\"get\"})}function h(t){return Object(n[\"a\"])({url:\"/system/config\",method:\"post\",data:t})}function u(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/objectSave\",method:\"post\",data:t})}function c(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}function f(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}function d(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/queryList\",method:\"post\",data:t})}function p(t){return Object(n[\"a\"])({url:\"/boman-web-core/p/cs/getObject\",method:\"post\",data:t})}function g(t){return Object(n[\"a\"])({url:\"/system/config\",method:\"put\",data:t})}function m(t){return Object(n[\"a\"])({url:\"/system/config/\"+t,method:\"delete\"})}function v(t){return Object(n[\"a\"])({url:\"boman-web-core/p/cs/objectDelete\",method:\"POST\",data:t})}function y(){return Object(n[\"a\"])({url:\"/system/config/clearCache\",method:\"delete\"})}function b(){return Object(n[\"a\"])({url:\"/system/user/profile\",method:\"get\"})}},c1f7:function(t,e,i){\"use strict\";var n,o,r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"app-wrapper\",class:t.classObj,style:{\"--current-color\":t.theme}},[\"mobile\"===t.device&&t.sidebar.opened?i(\"div\",{staticClass:\"drawer-bg\",on:{click:t.handleClickOutside}}):t._e(),i(\"sidebar\",{staticClass:\"sidebar-container\",style:{backgroundColor:\"theme-dark\"===t.sideTheme?t.variables.menuBg:t.variables.menuLightBg}}),i(\"div\",{staticClass:\"main-container\",class:{hasTagsView:t.needTagsView}},[i(\"div\",{class:{\"fixed-header\":t.fixedHeader}},[i(\"navbar\"),t.needTagsView?i(\"tags-view\"):t._e()],1),i(\"app-main\"),t.showSettings?i(\"right-panel\",[i(\"settings\")],1):t._e()],1)],1)},s=[],a=i(\"5530\"),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{ref:\"rightPanel\",staticClass:\"rightPanel-container\",class:{show:t.show}},[i(\"div\",{staticClass:\"rightPanel-background\"}),i(\"div\",{staticClass:\"rightPanel\"},[i(\"div\",{staticClass:\"rightPanel-items\"},[t._t(\"default\")],2)])])},h=[],u=(i(\"a9e3\"),i(\"ed08\")),c={name:\"RightPanel\",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},computed:{show:{get:function(){return this.$store.state.settings.showSettings},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"showSettings\",value:t})}},theme:function(){return this.$store.state.settings.theme}},watch:{show:function(t){t&&!this.clickNotClose&&this.addEventClick(),t?Object(u[\"a\"])(document.body,\"showRightPanel\"):Object(u[\"g\"])(document.body,\"showRightPanel\")}},mounted:function(){this.insertToBody(),this.addEventClick()},beforeDestroy:function(){var t=this.$refs.rightPanel;t.remove()},methods:{addEventClick:function(){window.addEventListener(\"click\",this.closeSidebar)},closeSidebar:function(t){var e=t.target.closest(\".rightPanel\");e||(this.show=!1,window.removeEventListener(\"click\",this.closeSidebar))},insertToBody:function(){var t=this.$refs.rightPanel,e=document.querySelector(\"body\");e.insertBefore(t,e.firstChild)}}},f=c,d=(i(\"fab5\"),i(\"11d7\"),i(\"2877\")),p=Object(d[\"a\"])(f,l,h,!1,null,\"2b17496a\",null),g=p.exports,m=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"section\",{staticClass:\"app-main\"},[i(\"transition\",{attrs:{name:\"fade-transform\",mode:\"out-in\"}},[i(\"keep-alive\",{attrs:{include:t.cachedViews}},[i(\"router-view\",{key:t.key})],1)],1)],1)},v=[],y={name:\"AppMain\",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},b=y,w=(i(\"d5ef\"),i(\"028b\"),Object(d[\"a\"])(b,m,v,!1,null,\"0e9e6080\",null)),x=w.exports,k=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"navbar\"},[i(\"hamburger\",{staticClass:\"hamburger-container\",attrs:{id:\"hamburger-container\",\"is-active\":t.sidebar.opened},on:{toggleClick:function(e){return t.toggleSideBar(0)}}}),i(\"div\",{staticClass:\"sign_box\"},t._l(this.sidebarRouters.filter((function(t){return 0==t.hidden||\"index\"==t.redirect})),(function(e,n){return i(\"div\",{key:n,staticClass:\"sign_item\",class:{active:t.activeMenu.includes(e.path||e.redirect)},on:{click:function(i){return t.tabBtn(e)}}},[e.meta?i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:e.meta.title}}):t._e(),e.meta?t._e():i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:\"首页\"}})],1)})),0),i(\"div\",{staticClass:\"right-menu\"},[i(\"el-dropdown\",{staticClass:\"avatar-container right-menu-item hover-effect\",attrs:{trigger:\"click\"}},[i(\"div\",{staticClass:\"avatar-wrapper\"},[i(\"img\",{staticClass:\"user-avatar\",attrs:{src:t.avatar}}),i(\"span\"),i(\"i\",{staticClass:\"el-icon-caret-bottom\"})]),i(\"el-dropdown-menu\",{attrs:{slot:\"dropdown\"},slot:\"dropdown\"},[i(\"router-link\",{attrs:{to:\"/user/profile\"}},[i(\"el-dropdown-item\",[t._v(\"个人中心\")])],1),i(\"el-dropdown-item\",{nativeOn:{click:function(e){t.setting=!0}}},[i(\"span\",[t._v(\"布局设置\")])]),i(\"el-dropdown-item\",{attrs:{divided:\"\"},nativeOn:{click:function(e){return t.logout(e)}}},[i(\"span\",[t._v(\"退出登录\")])])],1)],1)],1)],1)},M=[],C=i(\"1da1\"),S=(i(\"caad\"),i(\"2532\"),i(\"96cf\"),i(\"2f62\")),N=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-breadcrumb\",{staticClass:\"app-breadcrumb\",attrs:{separator:\"/\"}},[i(\"transition-group\",{attrs:{name:\"breadcrumb\"}},t._l(t.levelList,(function(e,n){return i(\"el-breadcrumb-item\",{key:e.path},[\"noRedirect\"===e.redirect||n==t.levelList.length-1?i(\"span\",{staticClass:\"no-redirect\"},[t._v(t._s(e.meta.title))]):i(\"a\",{on:{click:function(i){return i.preventDefault(),t.handleLink(e)}}},[t._v(t._s(e.meta.title))])])})),1)],1)},P=[],T=(i(\"2ca0\"),i(\"4de4\"),i(\"99af\"),i(\"b0c0\"),i(\"498a\"),{data:function(){return{levelList:null}},watch:{$route:function(t){t.path.startsWith(\"/redirect/\")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=[{path:\"/index\",meta:{title:\"首页\"}}].concat(t)),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb})),console.log(this.levelList,999)},isDashboard:function(t){var e=t&&t.name;return!!e&&\"首页\"===e.trim()},handleLink:function(t){var e=t.redirect,i=t.path;e?this.$router.push(e):this.$router.push(i)}}}),L=T,O=(i(\"6e55\"),Object(d[\"a\"])(L,N,P,!1,null,\"3e0240d1\",null)),D=(O.exports,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"sign_box\"},t._l(this.sidebarRouters.filter((function(t){return 0==t.hidden||\"index\"==t.redirect})),(function(e){return i(\"div\",{staticClass:\"sign_item\",class:{active:t.activeMenu.includes(e.path||e.redirect)},on:{click:function(i){return t.tabBtn(e)}}},[e.meta?i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:e.meta.title}}):t._e(),e.meta?t._e():i(\"item\",{attrs:{icon:e.meta&&e.meta.icon,title:\"首页\"}})],1)})),0)}),j=[],A={name:\"MenuItem\",functional:!0,props:{icon:{type:String,default:\"\"},title:{type:String,default:\"\"}},render:function(t,e){var i=e.props,n=i.icon,o=i.title,r=[];return n&&r.push(t(\"svg-icon\",{attrs:{\"icon-class\":n}})),o&&r.push(t(\"span\",{slot:\"title\",style:\"color: #343434\"},[o])),r}},B=A,z=Object(d[\"a\"])(B,n,o,!1,null,null,null),F=z.exports,I={data:function(){return{indexs:1,newArr:[]}},components:{Item:F},computed:Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"b\"])([\"sidebarRouters\",\"sidebar\",\"tabIndex\"])),{},{activeMenu:function(){return this.tabIndex}}),mounted:function(){this.init()},watch:{},methods:{tabBtn:function(t){if(!this.activeMenu.includes(t.path||t.redirect))return\"index\"==t.redirect?(\"/index\"!==this.$route.path&&this.$router.push({path:\"/index\"}),void this.$store.dispatch(\"TabFn\",t.redirect)):void this.$store.dispatch(\"TabFn\",t.path)},init:function(){var t=this.$route,e=t.meta,i=t.path;console.log(t),e.activeMenu&&this.$store.dispatch(\"TabFn\",e.activeMenu),this.$store.dispatch(\"TabFn\",i)}}},E=I,R=(i(\"cfe3\"),Object(d[\"a\"])(E,D,j,!1,null,\"63aa530b\",null)),V=R.exports,_=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticStyle:{padding:\"0 15px\"},on:{click:t.toggleClick}},[i(\"svg\",{staticClass:\"hamburger\",class:{\"is-active\":t.isActive},attrs:{viewBox:\"0 0 1024 1024\",xmlns:\"http://www.w3.org/2000/svg\",width:\"64\",height:\"64\",fill:\"#fff\"}},[i(\"path\",{attrs:{fill:\"#fff\",d:\"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z\"}})])])},H=[],Y={name:\"Hamburger\",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit(\"toggleClick\")}}},q=Y,G=(i(\"7278\"),Object(d[\"a\"])(q,_,H,!1,null,\"ec3623e2\",null)),X=G.exports,U=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"svg-icon\",{attrs:{\"icon-class\":t.isFullscreen?\"exit-fullscreen\":\"fullscreen\"},on:{click:t.click}})],1)},K=[],$=i(\"93bf\"),W=i.n($),J={name:\"Screenfull\",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!W.a.isEnabled)return this.$message({message:\"你的浏览器不支持全屏\",type:\"warning\"}),!1;W.a.toggle()},change:function(){this.isFullscreen=W.a.isFullscreen},init:function(){W.a.isEnabled&&W.a.on(\"change\",this.change)},destroy:function(){W.a.isEnabled&&W.a.off(\"change\",this.change)}}},Z=J,Q=(i(\"d73c\"),Object(d[\"a\"])(Z,U,K,!1,null,\"243c7c0f\",null)),tt=Q.exports,et=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-dropdown\",{attrs:{trigger:\"click\"},on:{command:t.handleSetSize}},[i(\"div\",[i(\"svg-icon\",{attrs:{\"class-name\":\"size-icon\",\"icon-class\":\"size\"}})],1),i(\"el-dropdown-menu\",{attrs:{slot:\"dropdown\"},slot:\"dropdown\"},t._l(t.sizeOptions,(function(e){return i(\"el-dropdown-item\",{key:e.value,attrs:{disabled:t.size===e.value,command:e.value}},[t._v(\" \"+t._s(e.label)+\" \")])})),1)],1)},it=[],nt=(i(\"5319\"),i(\"ac1f\"),{data:function(){return{sizeOptions:[{label:\"Default\",value:\"default\"},{label:\"Medium\",value:\"medium\"},{label:\"Small\",value:\"small\"},{label:\"Mini\",value:\"mini\"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(t){this.$ELEMENT.size=t,this.$store.dispatch(\"app/setSize\",t),this.refreshView(),this.$message({message:\"Switch Size Success\",type:\"success\"})},refreshView:function(){var t=this;this.$store.dispatch(\"tagsView/delAllCachedViews\",this.$route);var e=this.$route.fullPath;this.$nextTick((function(){t.$router.replace({path:\"/redirect\"+e})}))}}}),ot=nt,rt=Object(d[\"a\"])(ot,et,it,!1,null,null,null),st=rt.exports,at=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"header-search\",class:{show:t.show}},[i(\"svg-icon\",{attrs:{\"class-name\":\"search-icon\",\"icon-class\":\"search\"},on:{click:function(e){return e.stopPropagation(),t.click(e)}}}),i(\"el-select\",{ref:\"headerSearchSelect\",staticClass:\"header-search-select\",attrs:{\"remote-method\":t.querySearch,filterable:\"\",\"default-first-option\":\"\",remote:\"\",placeholder:\"Search\"},on:{change:t.change},model:{value:t.search,callback:function(e){t.search=e},expression:\"search\"}},t._l(t.options,(function(t){return i(\"el-option\",{key:t.item.path,attrs:{value:t.item,label:t.item.title.join(\" > \")}})})),1)],1)},lt=[],ht=i(\"2909\"),ut=i(\"b85c\"),ct=(i(\"841c\"),i(\"0278\")),ft=i.n(ct),dt=i(\"df7c\"),pt=i.n(dt),gt={name:\"HeaderSearch\",data:function(){return{search:\"\",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(t){this.initFuse(t)},show:function(t){t?document.body.addEventListener(\"click\",this.close):document.body.removeEventListener(\"click\",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes),console.log(this.searchPool,999)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(t){var e=this;this.ishttp(t.path)?window.open(t.path,\"_blank\"):this.$router.push(t.path),this.search=\"\",this.options=[],this.$nextTick((function(){e.show=!1}))},initFuse:function(t){this.fuse=new ft.a(t,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:\"title\",weight:.7},{name:\"path\",weight:.3}]})},generateRoutes:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"/\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[],r=Object(ut[\"a\"])(t);try{for(r.s();!(e=r.n()).done;){var s=e.value;if(!s.hidden){var a={path:this.ishttp(s.path)?s.path:pt.a.resolve(i,s.path),title:Object(ht[\"a\"])(n)};if(s.meta&&s.meta.title&&(a.title=[].concat(Object(ht[\"a\"])(a.title),[s.meta.title]),\"noRedirect\"!==s.redirect&&o.push(a)),s.children){var l=this.generateRoutes(s.children,a.path,a.title);l.length>=1&&(o=[].concat(Object(ht[\"a\"])(o),Object(ht[\"a\"])(l)))}}}}catch(h){r.e(h)}finally{r.f()}return o},querySearch:function(t){this.options=\"\"!==t?this.fuse.search(t):[]},ishttp:function(t){return-1!==t.indexOf(\"http://\")||-1!==t.indexOf(\"https://\")}}},mt=gt,vt=(i(\"50a6\"),Object(d[\"a\"])(mt,at,lt,!1,null,\"d69340ac\",null)),yt=vt.exports,bt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"svg-icon\",{attrs:{\"icon-class\":\"github\"},on:{click:t.goto}})],1)},wt=[],xt={name:\"RuoYiGit\",data:function(){return{url:\"https://gitee.com/y_project/RuoYi-Vue\"}},methods:{goto:function(){window.open(this.url)}}},kt=xt,Mt=Object(d[\"a\"])(kt,bt,wt,!1,null,null,null),Ct=Mt.exports,St=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",[i(\"svg-icon\",{attrs:{\"icon-class\":\"question\"},on:{click:t.goto}})],1)},Nt=[],Pt={name:\"RuoYiDoc\",data:function(){return{url:\"http://doc.ruoyi.vip/ruoyi-vue\"}},methods:{goto:function(){window.open(this.url)}}},Tt=Pt,Lt=Object(d[\"a\"])(Tt,St,Nt,!1,null,null,null),Ot=Lt.exports,Dt={data:function(){return{indexs:1,newArr:[],showde:!0}},components:{SignNumArr:V,Hamburger:X,Screenfull:tt,SizeSelect:st,Search:yt,RuoYiGit:Ct,RuoYiDoc:Ot,Item:F},mounted:function(){this.init()},computed:Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"b\"])([\"sidebar\",\"avatar\",\"device\",\"sidebarRouters\",\"sidebar\",\"tabIndex\"])),{},{activeMenu:function(){return this.tabIndex},setting:{get:function(){return this.$store.state.settings.showSettings},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"showSettings\",value:t})}}}),methods:{toggleSideBar:function(t){this.$store.dispatch(\"app/toggleSideBar\")},logout:function(){var t=this;return Object(C[\"a\"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$confirm(\"确定注销并退出系统吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then((function(){t.$store.dispatch(\"LogOut\").then((function(){location.href=\"/index\"}))}));case 1:case\"end\":return e.stop()}}),e)})))()},tabBtn:function(t){if(console.log(t),!this.activeMenu.includes(t.path||t.redirect)){if(this.$store.dispatch(\"app/toggleSideBartwo\"),\"index\"==t.redirect)return\"/index\"!==this.$route.path&&this.$router.push({path:\"/index\"}),void this.$store.dispatch(\"TabFn\",t.redirect);this.$store.dispatch(\"TabFn\",t.path),this.showde=!0}},init:function(){var t=this.$route,e=t.meta,i=t.path;console.log(t),e.activeMenu&&this.$store.dispatch(\"TabFn\",e.activeMenu),this.$store.dispatch(\"TabFn\",i)}}},jt=Dt,At=(i(\"7996\"),Object(d[\"a\"])(jt,k,M,!1,null,\"b8532fc4\",null)),Bt=At.exports,zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"drawer-container\"},[n(\"div\",[n(\"div\",{staticClass:\"setting-drawer-content\"},[t._m(0),n(\"div\",{staticClass:\"setting-drawer-block-checbox\"},[n(\"div\",{staticClass:\"setting-drawer-block-checbox-item\",on:{click:function(e){return t.handleTheme(\"theme-dark\")}}},[n(\"img\",{attrs:{src:i(\"adba\"),alt:\"dark\"}}),\"theme-dark\"===t.sideTheme?n(\"div\",{staticClass:\"setting-drawer-block-checbox-selectIcon\",staticStyle:{display:\"block\"}},[n(\"i\",{staticClass:\"anticon anticon-check\",attrs:{\"aria-label\":\"图标: check\"}},[n(\"svg\",{attrs:{viewBox:\"64 64 896 896\",\"data-icon\":\"check\",width:\"1em\",height:\"1em\",fill:t.theme,\"aria-hidden\":\"true\",focusable:\"false\"}},[n(\"path\",{attrs:{d:\"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z\"}})])])]):t._e()]),n(\"div\",{staticClass:\"setting-drawer-block-checbox-item\",on:{click:function(e){return t.handleTheme(\"theme-light\")}}},[n(\"img\",{attrs:{src:i(\"a2d0\"),alt:\"light\"}}),\"theme-light\"===t.sideTheme?n(\"div\",{staticClass:\"setting-drawer-block-checbox-selectIcon\",staticStyle:{display:\"block\"}},[n(\"i\",{staticClass:\"anticon anticon-check\",attrs:{\"aria-label\":\"图标: check\"}},[n(\"svg\",{attrs:{viewBox:\"64 64 896 896\",\"data-icon\":\"check\",width:\"1em\",height:\"1em\",fill:t.theme,\"aria-hidden\":\"true\",focusable:\"false\"}},[n(\"path\",{attrs:{d:\"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z\"}})])])]):t._e()])]),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"主题颜色\")]),n(\"theme-picker\",{staticStyle:{float:\"right\",height:\"26px\",margin:\"-3px 8px 0 0\"},on:{change:t.themeChange}})],1)]),n(\"el-divider\"),n(\"h3\",{staticClass:\"drawer-title\"},[t._v(\"系统布局配置\")]),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"开启 Tags-Views\")]),n(\"el-switch\",{staticClass:\"drawer-switch\",model:{value:t.tagsView,callback:function(e){t.tagsView=e},expression:\"tagsView\"}})],1),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"固定 Header\")]),n(\"el-switch\",{staticClass:\"drawer-switch\",model:{value:t.fixedHeader,callback:function(e){t.fixedHeader=e},expression:\"fixedHeader\"}})],1),n(\"div\",{staticClass:\"drawer-item\"},[n(\"span\",[t._v(\"显示 Logo\")]),n(\"el-switch\",{staticClass:\"drawer-switch\",model:{value:t.sidebarLogo,callback:function(e){t.sidebarLogo=e},expression:\"sidebarLogo\"}})],1)],1)])},Ft=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"setting-drawer-title\"},[i(\"h3\",{staticClass:\"drawer-title\"},[t._v(\"主题风格设置\")])])}],It=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-color-picker\",{staticClass:\"theme-picker\",attrs:{predefine:[\"#409EFF\",\"#1890ff\",\"#304156\",\"#212121\",\"#11a983\",\"#13c2c2\",\"#6959CD\",\"#f5222d\"],\"popper-class\":\"theme-picker-dropdown\"},model:{value:t.theme,callback:function(e){t.theme=e},expression:\"theme\"}})},Et=[],Rt=(i(\"fb6a\"),i(\"4d63\"),i(\"25f0\"),i(\"159b\"),i(\"d3b7\"),i(\"a15b\"),i(\"b680\"),i(\"f6f8\").version),Vt=\"#409EFF\",_t={data:function(){return{chalk:\"\",theme:\"\"}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(t,e){this.theme=t},immediate:!0},theme:function(t){var e=this;return Object(C[\"a\"])(regeneratorRuntime.mark((function i(){var n,o,r,s,a,l,h,u;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.chalk?e.theme:Vt,\"string\"===typeof t){i.next=3;break}return i.abrupt(\"return\");case 3:if(o=e.getThemeCluster(t.replace(\"#\",\"\")),r=e.getThemeCluster(n.replace(\"#\",\"\")),console.log(o,r),s=e.$message({message:\" Compiling the theme\",customClass:\"theme-message\",type:\"success\",duration:0,iconClass:\"el-icon-loading\"}),a=function(t,i){return function(){var n=e.getThemeCluster(Vt.replace(\"#\",\"\")),r=e.updateStyle(e[t],n,o),s=document.getElementById(i);s||(s=document.createElement(\"style\"),s.setAttribute(\"id\",i),document.head.appendChild(s)),s.innerText=r}},e.chalk){i.next=12;break}return l=\"https://unpkg.com/element-ui@\".concat(Rt,\"/lib/theme-chalk/index.css\"),i.next=12,e.getCSSString(l,\"chalk\");case 12:h=a(\"chalk\",\"chalk-style\"),h(),u=[].slice.call(document.querySelectorAll(\"style\")).filter((function(t){var e=t.innerText;return new RegExp(n,\"i\").test(e)&&!/Chalk Variables/.test(e)})),u.forEach((function(t){var i=t.innerText;\"string\"===typeof i&&(t.innerText=e.updateStyle(i,r,o))})),e.$emit(\"change\",t),s.close();case 18:case\"end\":return i.stop()}}),i)})))()}},methods:{updateStyle:function(t,e,i){var n=t;return e.forEach((function(t,e){n=n.replace(new RegExp(t,\"ig\"),i[e])})),n},getCSSString:function(t,e){var i=this;return new Promise((function(n){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&200===o.status&&(i[e]=o.responseText.replace(/@font-face{[^}]+}/,\"\"),n())},o.open(\"GET\",t),o.send()}))},getThemeCluster:function(t){for(var e=function(t,e){var i=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16);return 0===e?[i,n,o].join(\",\"):(i+=Math.round(e*(255-i)),n+=Math.round(e*(255-n)),o+=Math.round(e*(255-o)),i=i.toString(16),n=n.toString(16),o=o.toString(16),\"#\".concat(i).concat(n).concat(o))},i=function(t,e){var i=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16);return i=Math.round((1-e)*i),n=Math.round((1-e)*n),o=Math.round((1-e)*o),i=i.toString(16),n=n.toString(16),o=o.toString(16),\"#\".concat(i).concat(n).concat(o)},n=[t],o=0;o<=9;o++)n.push(e(t,Number((o/10).toFixed(2))));return n.push(i(t,.1)),n}}},Ht=_t,Yt=(i(\"06c2\"),Object(d[\"a\"])(Ht,It,Et,!1,null,null,null)),qt=Yt.exports,Gt={components:{ThemePicker:qt},data:function(){return{}},computed:{theme:function(){return this.$store.state.settings.theme},sideTheme:function(){return this.$store.state.settings.sideTheme},fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"fixedHeader\",value:t})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"tagsView\",value:t})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"sidebarLogo\",value:t})}}},methods:{themeChange:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"theme\",value:t})},handleTheme:function(t){this.$store.dispatch(\"settings/changeSetting\",{key:\"sideTheme\",value:t})}}},Xt=Gt,Ut=(i(\"ab49\"),Object(d[\"a\"])(Xt,zt,Ft,!1,null,\"a9831cfa\",null)),Kt=Ut.exports,$t=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{class:{\"has-logo\":t.showLogo},style:{backgroundColor:\"theme-dark\"===t.settings.sideTheme?t.variables.menuBg:t.variables.menuLightBg}},[t.showLogo?i(\"logo\",{attrs:{collapse:t.isCollapse}}):t._e(),i(\"el-scrollbar\",{class:t.settings.sideTheme,attrs:{\"wrap-class\":\"scrollbar-wrapper\"}},[i(\"el-menu\",{ref:\"menu\",attrs:{\"default-active\":t.activeMenu,\"default-openeds\":[t.activeMenuT],collapse:t.isCollapse,\"background-color\":\"theme-dark\"===t.settings.sideTheme?t.variables.menuBg:t.variables.menuLightBg,\"text-color\":\"theme-dark\"===t.settings.sideTheme?t.variables.menuText:\"rgba(0,0,0,.65)\",\"unique-opened\":!0,\"active-text-color\":t.settings.theme,\"collapse-transition\":!1,mode:\"vertical\"}},t._l(t.handleSide,(function(t,e){return i(\"sidebar-item\",{key:t.path+e,attrs:{item:t,\"base-path\":t.path}})})),1)],1)],1)},Wt=[],Jt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"sidebar-logo-container\",class:{collapse:t.collapse}},[i(\"transition\",{attrs:{name:\"sidebarLogoFade\"}},[t.collapse?i(\"router-link\",{key:\"collapse\",staticClass:\"sidebar-logo-link\",attrs:{to:\"/\"}},[i(\"h1\",{staticClass:\"sidebar-title\",style:{color:\"theme-dark\"===t.sideTheme?t.variables.sidebarTitle:t.variables.sidebarLightTitle}},[t._v(t._s(t.title)+\" \")])]):i(\"router-link\",{key:\"expand\",staticClass:\"sidebar-logo-link\",attrs:{to:\"/\"}},[i(\"h1\",{staticClass:\"sidebar-title\",style:{color:\"theme-dark\"===t.sideTheme?t.variables.sidebarTitle:t.variables.sidebarLightTitle}},[t._v(t._s(t.title)+\" \")])])],1)],1)},Zt=[],Qt=i(\"81a5\"),te=i.n(Qt),ee=i(\"8df1\"),ie=i.n(ee),ne={name:\"SidebarLogo\",props:{collapse:{type:Boolean,required:!0}},computed:{variables:function(){return ie.a},sideTheme:function(){return this.$store.state.settings.sideTheme}},data:function(){return{title:\"潜山市云数据中心\",logo:te.a}}},oe=ne,re=(i(\"6976\"),Object(d[\"a\"])(oe,Jt,Zt,!1,null,\"0bdca080\",null)),se=re.exports,ae=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.hidden?t._e():i(\"div\",[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?i(\"el-submenu\",{ref:\"subMenu\",attrs:{index:t.resolvePath(t.item.path),\"popper-append-to-body\":\"\"}},[i(\"template\",{slot:\"title\"},[t.item.meta?i(\"item\",{attrs:{icon:t.item.meta&&t.item.meta.icon,title:t.item.meta.title}}):t._e()],1),t._l(t.item.children,(function(e){return i(\"sidebar-item\",{key:e.path,staticClass:\"nest-menu\",attrs:{\"is-nest\":!0,item:e,\"base-path\":t.resolvePath(e.path)}})}))],2):[t.onlyOneChild.meta?i(\"app-link\",{attrs:{to:t.resolvePath(t.onlyOneChild.path)}},[i(\"el-menu-item\",{class:{\"submenu-title-noDropdown\":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.path)}},[i(\"item\",{attrs:{icon:t.onlyOneChild.meta.icon||t.item.meta&&t.item.meta.icon,title:t.onlyOneChild.meta.title}})],1)],1):t._e()]],2)},le=[],he=i(\"61f7\"),ue=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(t.type,t._b({tag:\"component\"},\"component\",t.linkProps(t.to),!1),[t._t(\"default\")],2)},ce=[],fe={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(he[\"a\"])(this.to)},type:function(){return this.isExternal?\"a\":\"router-link\"}},methods:{linkProps:function(t){return this.isExternal?{href:t,target:\"_blank\",rel:\"noopener\"}:{to:t}}}},de=fe,pe=Object(d[\"a\"])(de,ue,ce,!1,null,null,null),ge=pe.exports,me={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var i=e.handleMouseleave;e.handleMouseleave=function(e){\"mobile\"!==t.device&&i(e)}}}}},ve={name:\"SidebarItem\",components:{Item:F,AppLink:ge},mixins:[me],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:\"\"}},data:function(){return this.onlyOneChild=null,{}},mounted:function(){},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,n=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===n.length||0===n.length&&(this.onlyOneChild=Object(a[\"a\"])(Object(a[\"a\"])({},i),{},{path:\"\",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(he[\"a\"])(t)?t:Object(he[\"a\"])(this.basePath)?this.basePath:pt.a.resolve(this.basePath,t)}}},ye=ve,be=Object(d[\"a\"])(ye,ae,le,!1,null,null,null),we=be.exports,xe={components:{SidebarItem:we,Logo:se},mounted:function(){console.log(this.sidebarRouters,this.sidebar,this.settings)},computed:Object(a[\"a\"])(Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"d\"])([\"settings\"])),Object(S[\"b\"])([\"sidebarRouters\",\"sidebar\",\"tabIndex\"])),{},{activeMenu:function(){return this.tabIndex},activeMenuT:function(){var t=\"\";return console.log(this.tabIndex,234),t=\"index\"==this.tabIndex?\"/\"+this.tabIndex:this.tabIndex,console.log(t,345),t},handleSide:function(){var t,e=[],i=Object(ut[\"a\"])(this.sidebarRouters);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.activeMenu.includes(n.path||n.redirect)&&e.push(n)}}catch(o){i.e(o)}finally{i.f()}return console.log(e),e},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ie.a},isCollapse:function(){return!this.sidebar.opened},iejgu:function(){return[0]}})},ke=xe,Me=Object(d[\"a\"])(ke,$t,Wt,!1,null,null,null),Ce=Me.exports,Se=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"tags-view-container\",attrs:{id:\"tags-view-container\"}},[i(\"scroll-pane\",{ref:\"scrollPane\",staticClass:\"tags-view-wrapper\",on:{scroll:t.handleScroll}},t._l(t.visitedViews,(function(e){return i(\"router-link\",{key:e.path,ref:\"tag\",refInFor:!0,staticClass:\"tags-view-item\",class:t.isActive(e)?\"active\":\"\",style:t.activeStyle(e),attrs:{to:{path:e.path,query:e.query,fullPath:e.fullPath},tag:\"span\"},nativeOn:{mouseup:function(i){if(\"button\"in i&&1!==i.button)return null;!t.isAffix(e)&&t.closeSelectedTag(e)},contextmenu:function(i){return i.preventDefault(),t.openMenu(e,i)}}},[t._v(\" \"+t._s(e.title)+\" \"),t.isAffix(e)?t._e():i(\"span\",{staticClass:\"el-icon-close\",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),t.closeSelectedTag(e)}}})])})),1),i(\"ul\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.visible,expression:\"visible\"}],staticClass:\"contextmenu\",style:{left:t.left+\"px\",top:t.top+\"px\"}},[i(\"li\",{on:{click:function(e){return t.refreshSelectedTag(t.selectedTag)}}},[t._v(\"刷新页面\")]),t.isAffix(t.selectedTag)?t._e():i(\"li\",{on:{click:function(e){return t.closeSelectedTag(t.selectedTag)}}},[t._v(\"关闭当前\")]),i(\"li\",{on:{click:t.closeOthersTags}},[t._v(\"关闭其他\")]),i(\"li\",{on:{click:function(e){return t.closeAllTags(t.selectedTag)}}},[t._v(\"关闭所有\")])])],1)},Ne=[],Pe=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"el-scrollbar\",{ref:\"scrollContainer\",staticClass:\"scroll-container\",attrs:{vertical:!1},nativeOn:{wheel:function(e){return e.preventDefault(),t.handleScroll(e)}}},[t._t(\"default\")],2)},Te=[],Le=(i(\"c740\"),4),Oe={name:\"ScrollPane\",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener(\"scroll\",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener(\"scroll\",this.emitScroll)},methods:{handleScroll:function(t){var e=t.wheelDelta||40*-t.deltaY,i=this.scrollWrapper;i.scrollLeft=i.scrollLeft+e/4},emitScroll:function(){this.$emit(\"scroll\")},moveToTarget:function(t){var e=this.$refs.scrollContainer.$el,i=e.offsetWidth,n=this.scrollWrapper,o=this.$parent.$refs.tag,r=null,s=null;if(o.length>0&&(r=o[0],s=o[o.length-1]),r===t)n.scrollLeft=0;else if(s===t)n.scrollLeft=n.scrollWidth-i;else{var a=o.findIndex((function(e){return e===t})),l=o[a-1],h=o[a+1],u=h.$el.offsetLeft+h.$el.offsetWidth+Le,c=l.$el.offsetLeft-Le;u>n.scrollLeft+i?n.scrollLeft=u-i:c<n.scrollLeft&&(n.scrollLeft=c)}}}},De=Oe,je=(i(\"c4d7\"),Object(d[\"a\"])(De,Pe,Te,!1,null,\"41421bb2\",null)),Ae=je.exports,Be={components:{ScrollPane:Ae},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[]}},computed:{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.permission.routes},theme:function(){return this.$store.state.settings.theme}},watch:{$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(t){t?document.body.addEventListener(\"click\",this.closeMenu):document.body.removeEventListener(\"click\",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(t){return t.path===this.$route.path},activeStyle:function(t){return this.isActive(t)?{\"background-color\":this.theme,\"border-color\":this.theme}:{}},isAffix:function(t){return t.meta&&t.meta.affix},filterAffixTags:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"/\",n=[];return t.forEach((function(t){if(t.meta&&t.meta.affix){var o=pt.a.resolve(i,t.path);n.push({fullPath:o,path:o,name:t.name,meta:Object(a[\"a\"])({},t.meta)})}if(t.children){var r=e.filterAffixTags(t.children,t.path);r.length>=1&&(n=[].concat(Object(ht[\"a\"])(n),Object(ht[\"a\"])(r)))}})),n},initTags:function(){var t,e=this.affixTags=this.filterAffixTags(this.routes),i=Object(ut[\"a\"])(e);try{for(i.s();!(t=i.n()).done;){var n=t.value;n.name&&this.$store.dispatch(\"tagsView/addVisitedView\",n)}}catch(o){i.e(o)}finally{i.f()}},addTags:function(){var t=this.$route.name;return t&&this.$store.dispatch(\"tagsView/addView\",this.$route),!1},moveToCurrentTag:function(){var t=this,e=this.$refs.tag;this.$nextTick((function(){var i,n=Object(ut[\"a\"])(e);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.to.path===t.$route.path){t.$refs.scrollPane.moveToTarget(o),o.to.fullPath!==t.$route.fullPath&&t.$store.dispatch(\"tagsView/updateVisitedView\",t.$route);break}}}catch(r){n.e(r)}finally{n.f()}}))},refreshSelectedTag:function(t){var e=this;this.$store.dispatch(\"tagsView/delCachedView\",t).then((function(){var i=t.fullPath;e.$nextTick((function(){e.$router.replace({path:\"/redirect\"+i})}))}))},closeSelectedTag:function(t){var e=this;this.$store.dispatch(\"tagsView/delView\",t).then((function(i){var n=i.visitedViews;e.isActive(t)&&e.toLastView(n,t)}))},closeOthersTags:function(){var t=this;this.$router.push(this.selectedTag).catch((function(){})),this.$store.dispatch(\"tagsView/delOthersViews\",this.selectedTag).then((function(){t.moveToCurrentTag()}))},closeAllTags:function(t){var e=this;this.$store.dispatch(\"tagsView/delAllViews\").then((function(i){var n=i.visitedViews;e.affixTags.some((function(t){return t.path===e.$route.path}))||e.toLastView(n,t)}))},toLastView:function(t,e){var i=t.slice(-1)[0];i?this.$router.push(i.fullPath):\"Dashboard\"===e.name?this.$router.replace({path:\"/redirect\"+e.fullPath}):this.$router.push(\"/\")},openMenu:function(t,e){var i=105,n=this.$el.getBoundingClientRect().left,o=this.$el.offsetWidth,r=o-i,s=e.clientX-n+15;this.left=s>r?r:s,this.top=e.clientY,this.visible=!0,this.selectedTag=t},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},ze=Be,Fe=(i(\"730d\"),i(\"cfaa\"),Object(d[\"a\"])(ze,Se,Ne,!1,null,\"004442bd\",null)),Ie=Fe.exports,Ee=i(\"4360\"),Re=document,Ve=Re.body,_e=992,He={watch:{$route:function(t){\"mobile\"===this.device&&this.sidebar.opened&&Ee[\"a\"].dispatch(\"app/closeSideBar\",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener(\"resize\",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener(\"resize\",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(Ee[\"a\"].dispatch(\"app/toggleDevice\",\"mobile\"),Ee[\"a\"].dispatch(\"app/closeSideBar\",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=Ve.getBoundingClientRect();return t.width-1<_e},$_resizeHandler:function(){if(!document.hidden){var t=this.$_isMobile();Ee[\"a\"].dispatch(\"app/toggleDevice\",t?\"mobile\":\"desktop\"),t&&Ee[\"a\"].dispatch(\"app/closeSideBar\",{withoutAnimation:!0})}}}},Ye={name:\"Layout\",components:{AppMain:x,Navbar:Bt,RightPanel:g,Settings:Kt,Sidebar:Ce,TagsView:Ie},mixins:[He],computed:Object(a[\"a\"])(Object(a[\"a\"])({},Object(S[\"d\"])({theme:function(t){return t.settings.theme},sideTheme:function(t){return t.settings.sideTheme},sidebar:function(t){return t.app.sidebar},device:function(t){return t.app.device},showSettings:function(t){return t.settings.showSettings},needTagsView:function(t){return t.settings.tagsView},fixedHeader:function(t){return t.settings.fixedHeader}})),{},{classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:\"mobile\"===this.device}},variables:function(){return ie.a}}),methods:{handleClickOutside:function(){this.$store.dispatch(\"app/closeSideBar\",{withoutAnimation:!1})}}},qe=Ye,Ge=(i(\"caac\"),Object(d[\"a\"])(qe,r,s,!1,null,\"d4627dd2\",null));e[\"a\"]=Ge.exports},c292:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-button\",use:\"icon-button-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-button\"><defs><style type=\"text/css\"></style></defs><path d=\"M230.4 307.712c13.824 0 25.088-11.264 25.088-25.088 0-100.352 81.92-182.272 182.272-182.272s182.272 81.408 182.272 182.272c0 13.824 11.264 25.088 25.088 25.088s25.088-11.264 24.576-25.088c0-127.488-103.936-231.936-231.936-231.936S205.824 154.624 205.824 282.624c-0.512 14.336 10.752 25.088 24.576 25.088z m564.736 234.496c-11.264 0-21.504 2.048-31.232 6.144 0-44.544-40.448-81.92-88.064-81.92-14.848 0-28.16 3.584-39.936 10.24-13.824-28.16-44.544-48.128-78.848-48.128-12.288 0-24.576 2.56-35.328 7.68V284.16c0-45.568-37.888-81.92-84.48-81.92s-84.48 36.864-84.48 81.92v348.672l-69.12-112.64c-18.432-28.16-58.368-36.864-91.136-19.968-26.624 14.336-46.592 47.104-30.208 88.064 3.072 8.192 76.8 205.312 171.52 311.296 0 0 28.16 24.576 43.008 58.88 4.096 9.728 13.312 15.36 22.528 15.36 3.072 0 6.656-0.512 9.728-2.048 12.288-5.12 18.432-19.968 12.8-32.256-19.456-44.544-53.76-74.752-53.76-74.752C281.6 768 209.408 573.44 208.384 570.88c-5.12-12.8-2.56-20.992 7.168-26.112 9.216-4.608 21.504-4.608 26.112 2.56l113.152 184.32c4.096 8.704 12.8 14.336 22.528 14.336 13.824 0 25.088-10.752 25.088-25.088V284.16c0-17.92 15.36-32.256 34.816-32.256s34.816 14.336 34.816 32.256v284.16c0 13.824 10.24 25.088 24.576 25.088 13.824 0 25.088-11.264 25.088-25.088v-57.344c0-17.92 15.36-32.768 34.816-32.768 19.968 0 37.376 15.36 37.376 32.768v95.232c0 7.168 3.072 13.312 7.68 17.92 4.608 4.608 10.752 7.168 17.92 7.168 13.824 0 24.576-11.264 24.576-25.088V547.84c0-18.432 13.824-32.256 32.256-32.256 20.48 0 38.912 15.36 38.912 32.256v95.232c0 13.824 11.264 25.088 25.088 25.088s24.576-11.264 25.088-25.088v-18.944c0-18.944 12.8-32.256 30.72-32.256 18.432 0 22.528 18.944 22.528 31.744 0 1.024-11.776 99.84-50.688 173.056-30.72 58.368-45.056 112.128-51.2 146.944-2.56 13.312 6.656 26.112 19.968 28.672 1.536 0 3.072 0.512 4.608 0.512 11.776 0 22.016-8.192 24.064-20.48 5.632-31.232 18.432-79.36 46.08-132.608 43.52-81.92 55.808-186.88 56.32-193.536-0.512-50.688-29.696-83.968-72.704-83.968z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},c38a:function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return o})),i.d(e,\"e\",(function(){return r})),i.d(e,\"a\",(function(){return s})),i.d(e,\"f\",(function(){return a})),i.d(e,\"g\",(function(){return l})),i.d(e,\"d\",(function(){return h})),i.d(e,\"b\",(function(){return u})),i.d(e,\"h\",(function(){return c}));var n=i(\"53ca\");i(\"5319\"),i(\"ac1f\"),i(\"4d63\"),i(\"25f0\"),i(\"d3b7\"),i(\"b64b\"),i(\"a15b\"),i(\"1276\"),i(\"d81d\"),i(\"4de4\"),i(\"159b\"),i(\"2b19\");function o(t,e){if(0===arguments.length||!t)return null;var i,o=e||\"{y}-{m}-{d} {h}:{i}:{s}\";\"object\"===Object(n[\"a\"])(t)?i=t:(\"string\"===typeof t&&/^[0-9]+$/.test(t)?t=parseInt(t):\"string\"===typeof t&&(t=t.replace(new RegExp(/-/gm),\"/\")),\"number\"===typeof t&&10===t.toString().length&&(t*=1e3),i=new Date(t));var r={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()},s=o.replace(/{(y|m|d|h|i|s|a)+}/g,(function(t,e){var i=r[e];return\"a\"===e?[\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"][i]:(t.length>0&&i<10&&(i=\"0\"+i),i||0)}));return s}function r(t){this.$refs[t]&&this.$refs[t].resetFields()}function s(t,e,i){var n=t;return n.params={},null!=e&&\"\"!=e&&(\"undefined\"===typeof i?(n.params[\"beginTime\"]=e[0],n.params[\"endTime\"]=e[1]):(n.params[\"begin\"+i]=e[0],n.params[\"end\"+i]=e[1])),n}function a(t,e){var i=[];return Object.keys(t).some((function(n){if(t[n].dictValue==\"\"+e)return i.push(t[n].dictLabel),!0})),i.join(\"\")}function l(t,e,i){var n=[],o=void 0===i?\",\":i,r=e.split(o);return Object.keys(e.split(o)).some((function(e){Object.keys(t).some((function(i){t[i].dictValue==\"\"+r[e]&&n.push(t[i].dictLabel+o)}))})),n.join(\"\").substring(0,n.join(\"\").length-1)}function h(t){return t&&\"undefined\"!=t&&\"null\"!=t?t:\"\"}function u(t,e,i,n,o){e=e||\"id\",i=i||\"parentId\",n=n||\"children\",o=o||Math.min.apply(Math,t.map((function(t){return t[i]})))||0;var r=JSON.parse(JSON.stringify(t)),s=r.filter((function(t){var n=r.filter((function(n){return t[e]===n[i]}));return n.length>0&&(t.children=n),t[i]===o}));return\"\"!=s?s:t}function c(t){var e=\"\";return Object.keys(t).forEach((function(i){Object.is(t[i],void 0)||Object.is(t[i],null)||Object.is(JSON.stringify(t[i]),\"{}\")||(e+=encodeURIComponent(i)+\"=\"+encodeURIComponent(t[i])+\"&\")})),e}},c4d7:function(t,e,i){\"use strict\";i(\"87d9\")},c9ae:function(t,e,i){\"use strict\";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"InstanceManagementList\"},[i(\"TabPane\",{attrs:{label:\"待办流程\",name:\"待办流程\"}},[\"待办流程\"===t.tabalive?i(\"todoProcess\",{attrs:{falg:1,tabalive:t.tabalive}}):t._e()],1)],1)},o=[],r=i(\"58f1\"),s=i(\"634a\"),a={name:\"approval\",components:{todoProcess:r[\"a\"],HistoricalProcess:s[\"a\"]},data:function(){return{tabalive:\"待办流程\",tabConfig:[{label:\"待办流程\",name:\"待办流程\"},{label:\"历史流程\",name:\"历史流程\"}]}},methods:{routeClick:function(t){1===t?this.tabalive=\"待办流程\":2===t&&(this.tabalive=\"历史流程\")},onClick:function(t){this.tabalive=t,\"历史流程\"===t?window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=2\"):window.history.replaceState({},\"\",\"/#/InstanceManagementList?type=1\")}},created:function(){this.routeClick(1)}},l=a,h=(i(\"1ff4\"),i(\"2877\")),u=Object(h[\"a\"])(l,n,o,!1,null,null,null);e[\"default\"]=u.exports},ca8c:function(t,e,i){},caac:function(t,e,i){\"use strict\";i(\"49c8\")},caf7:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-email\",use:\"icon-email-usage\",viewBox:\"0 0 128 96\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 96\" id=\"icon-email\"><path d=\"M64.125 56.975L120.188.912A12.476 12.476 0 0 0 115.5 0h-103c-1.588 0-3.113.3-4.513.838l56.138 56.137z\" /><path d=\"M64.125 68.287l-62.3-62.3A12.42 12.42 0 0 0 0 12.5v71C0 90.4 5.6 96 12.5 96h103c6.9 0 12.5-5.6 12.5-12.5v-71a12.47 12.47 0 0 0-1.737-6.35L64.125 68.287z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},cda1:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-github\",use:\"icon-github-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-github\"><defs><style type=\"text/css\"></style></defs><path d=\"M511.542857 14.057143C228.914286 13.942857 0 242.742857 0 525.142857 0 748.457143 143.2 938.285714 342.628571 1008c26.857143 6.742857 22.742857-12.342857 22.742858-25.371429v-88.571428c-155.085714 18.171429-161.371429-84.457143-171.771429-101.6C172.571429 756.571429 122.857143 747.428571 137.714286 730.285714c35.314286-18.171429 71.314286 4.571429 113.028571 66.171429 30.171429 44.685714 89.028571 37.142857 118.857143 29.714286 6.514286-26.857143 20.457143-50.857143 39.657143-69.485715-160.685714-28.8-227.657143-126.857143-227.657143-243.428571 0-56.571429 18.628571-108.571429 55.2-150.514286-23.314286-69.142857 2.171429-128.342857 5.6-137.142857 66.4-5.942857 135.428571 47.542857 140.8 51.771429 37.714286-10.171429 80.8-15.542857 129.028571-15.542858 48.457143 0 91.657143 5.6 129.714286 15.885715 12.914286-9.828571 76.914286-55.771429 138.628572-50.171429 3.314286 8.8 28.228571 66.628571 6.285714 134.857143 37.028571 42.057143 55.885714 94.514286 55.885714 151.2 0 116.8-67.428571 214.971429-228.571428 243.314286a145.714286 145.714286 0 0 1 43.542857 104v128.571428c0.914286 10.285714 0 20.457143 17.142857 20.457143 202.4-68.228571 348.114286-259.428571 348.114286-484.685714 0-282.514286-229.028571-511.2-511.428572-511.2z\" p-id=\"4188\" /></symbol>'});s.a.add(a);e[\"default\"]=a},cfaa:function(t,e,i){\"use strict\";i(\"e1eb\")},cfe3:function(t,e,i){\"use strict\";i(\"df43\")},d3b2:function(t,e,i){\"use strict\";i(\"12de\")},d5ef:function(t,e,i){\"use strict\";i(\"9fad\")},d73c:function(t,e,i){\"use strict\";i(\"b799\")},d7a0:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-code\",use:\"icon-code-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-code\"><defs><style type=\"text/css\"></style></defs><path d=\"M318.577778 819.2L17.066667 512l301.511111-307.2 45.511111 45.511111L96.711111 512l267.377778 261.688889zM705.422222 819.2l-45.511111-45.511111L927.288889 512l-267.377778-261.688889 45.511111-45.511111L1006.933333 512zM540.785778 221.866667l55.751111 11.150222L483.157333 802.133333l-55.751111-11.093333z\" fill=\"#bfbfbf\" p-id=\"2423\" /></symbol>'});s.a.add(a);e[\"default\"]=a},d88a:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-user\",use:\"icon-user-usage\",viewBox:\"0 0 130 130\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 130 130\" id=\"icon-user\"><path d=\"M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z\" stroke=\"#979797\" /></symbol>'});s.a.add(a);e[\"default\"]=a},da75:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-dict\",use:\"icon-dict-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-dict\"><defs><style type=\"text/css\"></style></defs><path d=\"M1002.0848 744.672l-33.568 10.368c0.96 7.264 2.144 14.304 2.144 21.76 0 7.328-1.184 14.432-2.368 21.568l33.792 10.56c7.936 2.24 14.496 7.616 18.336 14.752 3.84 7.328 4.672 15.808 1.952 23.552-5.376 16-23.168 24.672-39.936 19.68l-34.176-10.624c-7.136 12.8-15.776 24.672-26.208 35.2l20.8 27.488a28.96 28.96 0 0 1 5.824 22.816 29.696 29.696 0 0 1-12.704 19.616 32.544 32.544 0 0 1-44.416-6.752l-20.8-27.552c-13.696 6.56-28.192 11.2-43.008 13.888v33.632c0 16.736-14.112 30.432-31.648 30.432-17.6 0-31.872-13.696-31.872-30.432v-33.632a167.616 167.616 0 0 1-42.88-13.888l-20.928 27.552c-10.72 13.76-30.08 16.64-44.288 6.752a29.632 29.632 0 0 1-12.704-19.616 29.28 29.28 0 0 1 5.696-22.816l20.896-27.808a166.72 166.72 0 0 1-27.008-34.688l-33.376 10.432c-16.8 5.184-34.56-3.552-39.936-19.616a29.824 29.824 0 0 1 20.224-38.24l33.472-10.432c-0.8-7.264-2.016-14.304-2.016-21.824 0-7.36 1.184-14.496 2.304-21.632l-33.792-10.368c-16.672-5.376-25.632-22.496-20.224-38.432 5.376-16 23.136-24.672 39.936-19.68l34.016 10.752c7.328-12.672 15.84-24.8 26.336-35.328l-20.8-27.552a29.44 29.44 0 0 1 6.944-42.432 32.704 32.704 0 0 1 44.384 6.752l20.832 27.616c13.696-6.432 28.224-11.2 43.104-13.952v-33.568c0-16.736 14.048-30.432 31.648-30.432 17.536 0 31.808 13.568 31.808 30.432v33.504c15.072 2.688 29.344 7.808 42.848 14.016l20.992-27.616a32.48 32.48 0 0 1 44.224-6.752 29.568 29.568 0 0 1 7.136 42.432l-21.024 27.808c10.432 10.432 19.872 21.888 27.04 34.752l33.376-10.432c16.768-5.12 34.56 3.68 39.936 19.68 5.536 15.936-3.712 33.056-20.32 38.304z m-206.016-74.432c-61.344 0-111.136 47.808-111.136 106.56 0 58.88 49.792 106.496 111.136 106.496 61.312 0 111.104-47.616 111.104-106.496 0-58.752-49.792-106.56-111.104-106.56z\" p-id=\"3602\" /><path d=\"M802.7888 57.152h-76.448c0-22.08-21.024-38.24-42.848-38.24H39.3968a39.68 39.68 0 0 0-39.36 40.032v795.616s41.888 120.192 110.752 120.192H673.2848a227.488 227.488 0 0 1-107.04-97.44H117.6368s-40.608-13.696-40.608-41.248l470.304-0.256 1.664 3.36a227.68 227.68 0 0 1-12.64-73.632c0-60.576 24-118.624 66.88-161.44a228.352 228.352 0 0 1 123.552-63.392l-3.2 0.288 2.144-424.672h38.208l0.576 421.024c27.04 0 52.672 4.8 76.64 13.344V101.536c0.032 0-6.304-44.384-38.368-44.384zM149.7648 514.336H72.3888v-77.408H149.7648v77.408z m0-144.32H72.3888v-77.44H149.7648v77.44z m0-137.248H72.3888v-77.44H149.7648v77.44z m501.856 281.568H206.0848v-77.408h445.536v77.408z m0-144.32H206.0848v-77.44h445.536v77.44z m0-137.248H206.0848v-77.44h445.536v77.44z\" p-id=\"3603\" /></symbol>'});s.a.add(a);e[\"default\"]=a},dbc4:function(t,e,i){},dc13:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-peoples\",use:\"icon-peoples-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-peoples\"><path d=\"M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z\" /><path d=\"M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},dc78:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-table\",use:\"icon-table-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-table\"><path d=\"M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z\" /><path d=\"M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},ddfb:function(t,e,i){\"use strict\";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i(\"div\",{staticClass:\"FormComponent\"},[i(\"div\",{staticClass:\"FormItemComponent\",style:t.setWidth},t._l(t.dataColRol,(function(e,n){return i(\"div\",{key:n,staticClass:\"FormItemComponent-item\",style:t.setDiv(e)},[i(e.component,{ref:\"component_\"+n,refInFor:!0,tag:\"component\",attrs:{index:n,items:e.item,readonly:t.readonly},on:{inputChange:t.inputChange}})],1)})),0),t.buttonType?i(\"p\",[i(\"el-button\",{attrs:{type:\"primary\",plain:\"\",icon:\"el-icon-search\"},on:{click:t.search}},[t._v(\"搜索\")]),i(\"el-button\",{attrs:{icon:\"el-icon-refresh\",size:\"mini\"},on:{click:t.reset}},[t._v(\"重置\")])],1):t._e()])},o=[],r=(i(\"a9e3\"),i(\"13d5\"),i(\"b64b\"),i(\"99af\"),i(\"2b0e\"));i(\"cb29\"),i(\"d81d\");function s(t){var e=t.length;return t.reverse().every((function(t,i){return!t||(e=i,!1)})),e}function a(t,e,i,n,o){var r=Array(i.row).fill(null),s=Array(i.col).fill(null),a=!0;return r.map((function(i,o){s.map((function(i,r){n[o+t][r+e]&&(a=!1)}))})),e+i.col>o&&(a=!1),a}function l(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"fill\",n=Array(t).fill(null),o=e.reduce((function(t,e){return t+=!e.row||e.row<1?1:e.row,t}),0),r=Array(o).fill(null),l=r.concat([]).reduce((function(t){return t.push(n.concat([])),t}),[]),h={};return e.every((function(e,n){return!1===e.show?(h[n]||(e.x=-1,e.y=-1,h[n]=e),!0):(e.col=!e.col||e.col<1?1:e.col,e.col=e.col>t?t:e.col,e.row=!e.row||e.row<1?1:e.row,l.every((function(o,r){return o.every((function(u,c){if(\"newline\"===i&&s([].concat(o))<e.col)return!0;if(!u&&(\"fill\"!==i||a(r,c,e,l,t))){h[n]||(e.x=c+1,e.y=r+1,h[n]=e);var f=Array(e.row).fill(null),d=Array(e.col).fill(null);return f.map((function(t,e){return d.map((function(t,i){return l[r+e][c+i]=\"k\".concat(n),!0})),!0})),!1}return!0}))})),!0)})),h}var h=l,u={name:\"FormItemComponent\",props:{formItemLists:{type:Array,default:function(){return[]}},buttonType:{type:Boolean,default:function(){return!0}},defaultColumn:{type:Number,default:4},readonly:{type:Boolean,default:!1}},computed:{dataColRol:function(){var t=h(this.defaultColumn,this.currentFormList),e=Object.keys(t).reduce((function(e,i){return t[i].component=r[\"default\"].extend(t[i].component),e.push(t[i]),e}),[]);return console.log(e,98882123),e},setDiv:function(){return function(t){return\" grid-column:\".concat(t.x,\"/\").concat(t.col+t.x,\";grid-row:\").concat(t.y,\"/\").concat(t.y+t.row,\";\")}},setWidth:function(){var t=Number(this.defaultColumn)||4;return\"grid-template-columns: repeat(\".concat(t,\",\").concat(100/t,\"%\")}},watch:{formItemLists:function(){this.currentFormList=this.formItemLists.concat([])}},data:function(){return{formData:{},currentFormList:[]}},created:function(){this.currentFormList=this.formItemLists.concat([]),console.log(this.currentFormList,999999999)},methods:{inputChange:function(t,e,i){i&&\"select\"===i?this.formData[e.slotfiled]=t:this.formData[e.filed]=t,this.$emit(\"formChange\",this.formData)},search:function(){this.$emit(\"search\",this.formData)},reset:function(){this.formData={},this.currentFormList=this.currentFormList.concat([]),this.$emit(\"search\",this.formData)}}},c=u,f=(i(\"fde4\"),i(\"2877\")),d=Object(f[\"a\"])(c,n,o,!1,null,\"3b1bf88c\",null);e[\"a\"]=d.exports},df36:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-slider\",use:\"icon-slider-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-slider\"><defs><style type=\"text/css\"></style></defs><path d=\"M951.453125 476.84375H523.671875a131.8359375 131.8359375 0 0 0-254.1796875 0H72.546875v70.3125h196.9453125a131.8359375 131.8359375 0 0 0 254.1796875 0H951.453125z\" p-id=\"1239\" /></symbol>'});s.a.add(a);e[\"default\"]=a},df43:function(t,e,i){},dffe:function(t,e,i){},e1eb:function(t,e,i){},e218:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-color\",use:\"icon-color-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-color\"><defs><style type=\"text/css\"></style></defs><path d=\"M747.59340925 691.12859384c11.51396329 0.25305413 22.43746719-0.21087818 40.74171707-1.51832482 29.35428085-2.10878421 35.84933734-2.36183835 46.47761114-0.8856895 24.71495444 3.37405491 41.12129828 21.76265671 32.47528161 47.95376084-85.57447632 258.19957947-442.00123984 249.76444099-628.67084683 50.73735554-153.47733892-159.33976008-153.09775772-414.41833795 0.92786545-573.42069196 159.71934128-162.67163983 424.03439521-166.59397897 565.78689185 0.63263534 80.38686649 94.81095318 108.34934958 169.16669549 89.11723508 230.57450162-15.01454608 47.99593598-50.61082928 77.68762207-119.77896259 114.63352789-4.89237973 2.65706845-29.35428085 15.52065436-35.84933652 19.02123633-46.94154346 25.30541465-63.51659033 41.20565021-62.20914449 58.45550757 2.95229856 39.13904114 24.16667102 52.7196135 70.98168823 53.81618115z m44.41100207 50.10472101c-19.82257471 1.43397372-32.05352527 1.940082-45.63409763 1.6448519-70.34905207-1.60267593-115.98314969-30.91478165-121.38163769-101.64341492-3.45840683-46.05585397 24.7571304-73.13264758 89.24376132-107.96976837 6.7902866-3.66928501 31.37871396-16.57504688 36.06021551-19.06341229 57.69634516-30.83042972 85.15271997-53.73183005 94.76877722-84.47790866 12.77923398-40.78389304-9.10994898-98.94417051-79.24812286-181.6507002-121.17075953-142.97559219-350.14258521-139.60153647-489.2380134 2.06660824-134.49827774 138.84237405-134.79350784 362.12048163-0.42175717 501.637667 158.53842169 168.99799328 451.9968783 181.18676788 534.57688175-11.80919339-4.68150156 0.2952301-10.71262573 0.67481131-18.72600705 1.26527069z\" p-id=\"2509\" /><path d=\"M346.03865637 637.18588562a78.82636652 78.82636652 0 0 0 78.32025825-79.29029883c0-43.69401562-35.005823-79.29029883-78.32025825-79.29029882a78.82636652 78.82636652 0 0 0-78.36243338 79.29029882c0 43.69401562 35.005823 79.29029883 78.36243338 79.29029883z m0-51.7495729a27.07679361 27.07679361 0 0 1-26.5706845-27.54072593c0-15.30977536 11.97789643-27.54072593 26.5706845-27.54072592 14.55061295 0 26.57068533 12.23095057 26.57068533 27.54072592a27.07679361 27.07679361 0 0 1-26.57068533 27.54072593zM475.7289063 807.11174353a78.82636652 78.82636652 0 0 0 78.3624334-79.29029882c0-43.69401562-34.96364785-79.29029883-78.32025825-79.29029883a78.82636652 78.82636652 0 0 0-78.32025742 79.29029883c0 43.69401562 34.96364785 79.29029883 78.32025742 79.29029882z m0-51.74957208a27.07679361 27.07679361 0 0 1-26.57068532-27.54072674c0-15.30977536 12.06224753-27.54072593 26.57068532-27.54072593 14.59278892 0 26.57068533 12.23095057 26.57068453 27.54072593a27.07679361 27.07679361 0 0 1-26.57068453 27.54072674zM601.24376214 377.21492718a78.82636652 78.82636652 0 0 0 78.32025742-79.29029883c0-43.69401562-34.96364785-79.29029883-78.32025742-79.29029882a78.82636652 78.82636652 0 0 0-78.32025823 79.29029883c0 43.69401562 34.96364785 79.29029883 78.32025824 79.29029883z m1e-8-51.74957208a27.07679361 27.07679361 0 0 1-26.57068534-27.54072675c0-15.30977536 11.97789643-27.54072593 26.57068534-27.54072591 14.55061295 0 26.57068533 12.23095057 26.57068451 27.54072592a27.07679361 27.07679361 0 0 1-26.57068451 27.54072674zM378.80916809 433.85687983a78.82636652 78.82636652 0 0 0 78.32025824-79.29029883c0-43.69401562-34.96364785-79.29029883-78.32025824-79.29029802a78.82636652 78.82636652 0 0 0-78.32025742 79.29029802c0 43.69401562 34.96364785 79.29029883 78.32025742 79.29029883z m0-51.74957209a27.07679361 27.07679361 0 0 1-26.57068451-27.54072674c0-15.30977536 11.97789643-27.54072593 26.57068451-27.54072593 14.55061295 0 26.57068533 12.23095057 26.57068533 27.54072593a27.07679361 27.07679361 0 0 1-26.57068533 27.54072674z\" p-id=\"2510\" /></symbol>'});s.a.add(a);e[\"default\"]=a},e24c:function(t,e,i){\"use strict\";i(\"542a\")},e3ff:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-excel\",use:\"icon-excel-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-excel\"><path d=\"M78.208 16.576v8.384h38.72v5.376h-38.72v8.704h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.512h38.72v5.376h-38.72v11.136H128v-94.72H78.208zM0 114.368L72.128 128V0L0 13.632v100.736z\" /><path d=\"M28.672 82.56h-11.2l14.784-23.488-14.08-22.592h11.52l8.192 14.976 8.448-14.976h11.136l-14.08 22.208L58.368 82.56H46.656l-8.768-15.68z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},e498:function(t,e,i){\"use strict\";i(\"1c18\")},e82a:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-job\",use:\"icon-job-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-job\"><defs><style type=\"text/css\"></style></defs><path d=\"M934.912 1016.832H192c-14.336 0-25.6-11.264-25.6-25.6v-189.44c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v163.84h691.712V64H217.6v148.48c0 14.336-11.264 25.6-25.6 25.6s-25.6-11.264-25.6-25.6v-174.08c0-14.336 11.264-25.6 25.6-25.6h742.912c14.336 0 25.6 11.264 25.6 25.6v952.832c0 14.336-11.264 25.6-25.6 25.6z\" p-id=\"5473\" /><path d=\"M232.96 371.2h-117.76c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zM232.96 540.16h-117.76c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zM232.96 698.88h-117.76c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zM574.464 762.88c-134.144 0-243.2-109.056-243.2-243.2S440.32 276.48 574.464 276.48s243.2 109.056 243.2 243.2-109.056 243.2-243.2 243.2z m0-435.2c-105.984 0-192 86.016-192 192S468.48 711.68 574.464 711.68s192-86.016 192-192S680.448 327.68 574.464 327.68z\" p-id=\"5474\" /><path d=\"M663.04 545.28h-87.04c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h87.04c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6z\" p-id=\"5475\" /><path d=\"M576 545.28c-14.336 0-25.6-11.264-25.6-25.6v-87.04c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v87.04c0 14.336-11.264 25.6-25.6 25.6z\" p-id=\"5476\" /></symbol>'});s.a.add(a);e[\"default\"]=a},ed00:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-documentation\",use:\"icon-documentation-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-documentation\"><path d=\"M71.984 44.815H115.9L71.984 9.642v35.173zM16.094.05h63.875l47.906 38.37v76.74c0 3.392-1.682 6.645-4.677 9.044-2.995 2.399-7.056 3.746-11.292 3.746H16.094c-4.236 0-8.297-1.347-11.292-3.746-2.995-2.399-4.677-5.652-4.677-9.044V12.84C.125 5.742 7.23.05 16.094.05zm71.86 102.32V89.58h-71.86v12.79h71.86zm23.952-25.58V64H16.094v12.79h95.812z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},ed08:function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return n})),i.d(e,\"a\",(function(){return r})),i.d(e,\"g\",(function(){return s})),i.d(e,\"f\",(function(){return a})),i.d(e,\"d\",(function(){return l})),i.d(e,\"b\",(function(){return h})),i.d(e,\"h\",(function(){return u})),i.d(e,\"e\",(function(){return c}));i(\"53ca\"),i(\"5319\"),i(\"ac1f\"),i(\"a15b\"),i(\"d81d\"),i(\"b64b\"),i(\"1276\"),i(\"159b\"),i(\"fb6a\"),i(\"a630\"),i(\"3ca3\"),i(\"6062\"),i(\"d3b7\"),i(\"ddb0\"),i(\"25f0\"),i(\"466d\"),i(\"4d63\"),i(\"c38a\");function n(t,e,i){var n,o,r,s,a,l=function l(){var h=+new Date-s;h<e&&h>0?n=setTimeout(l,e-h):(n=null,i||(a=t.apply(r,o),n||(r=o=null)))};return function(){for(var o=arguments.length,h=new Array(o),u=0;u<o;u++)h[u]=arguments[u];r=this,s=+new Date;var c=i&&!n;return n||(n=setTimeout(l,e)),c&&(a=t.apply(r,h),r=h=null),a}}function o(t,e){return!!t.className.match(new RegExp(\"(\\\\s|^)\"+e+\"(\\\\s|$)\"))}function r(t,e){o(t,e)||(t.className+=\" \"+e)}function s(t,e){if(o(t,e)){var i=new RegExp(\"(\\\\s|^)\"+e+\"(\\\\s|$)\");t.className=t.className.replace(i,\" \")}}function a(t,e){for(var i=Object.create(null),n=t.split(\",\"),o=0;o<n.length;o++)i[n[o]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}var l=\"export default \",h={html:{indent_size:\"2\",indent_char:\" \",max_preserve_newlines:\"-1\",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:\"separate\",brace_style:\"end-expand\",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:\"110\",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:\"2\",indent_char:\" \",max_preserve_newlines:\"-1\",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:\"normal\",brace_style:\"end-expand\",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:\"110\",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function u(t){return t.replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))}function c(t){return/^[+-]?(0|([1-9]\\d*))(\\.\\d+)?$/g.test(t)}},f22e:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-exit-fullscreen\",use:\"icon-exit-fullscreen-usage\",viewBox:\"0 0 128 128\",content:'<symbol xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\" id=\"icon-exit-fullscreen\"><path d=\"M49.217 41.329l-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212l18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z\" /></symbol>'});s.a.add(a);e[\"default\"]=a},f259:function(t,e,i){},f71f:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-monitor\",use:\"icon-monitor-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-monitor\"><defs><style type=\"text/css\">@font-face { font-family: rbicon; src: url(\"chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2\") format(\"woff2\"); font-weight: normal; font-style: normal; }\\r\\n</style></defs><path d=\"M64 64V640H896V64H64zM0 0h960v704H0V0z\" p-id=\"4696\" /><path d=\"M192 896H768v64H192zM448 640H512v256h-64z\" p-id=\"4697\" /><path d=\"M479.232 561.604267l309.9904-348.330667-47.803733-42.5472-259.566934 291.669333L303.957333 240.008533 163.208533 438.6048l52.224 37.009067 91.6224-129.28z\" p-id=\"4698\" /></symbol>'});s.a.add(a);e[\"default\"]=a},f8e6:function(t,e,i){\"use strict\";i.r(e);var n=i(\"e017\"),o=i.n(n),r=i(\"21a1\"),s=i.n(r),a=new o.a({id:\"icon-time\",use:\"icon-time-usage\",viewBox:\"0 0 1024 1024\",content:'<symbol class=\"icon\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"icon-time\"><defs><style type=\"text/css\"></style></defs><path d=\"M520 559h204c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H488c-17.673 0-32-14.327-32-32 0-0.167 0.001-0.334 0.004-0.5a32.65 32.65 0 0 1-0.004-0.5V277c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v282z m-8 401C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448z m0-64c212.077 0 384-171.923 384-384S724.077 128 512 128 128 299.923 128 512s171.923 384 384 384z\" p-id=\"1009\" /></symbol>'});s.a.add(a);e[\"default\"]=a},fab5:function(t,e,i){\"use strict\";i(\"bcaa\")},fde4:function(t,e,i){\"use strict\";i(\"1868\")},ff02:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return o})),i.d(e,\"b\",(function(){return r})),i.d(e,\"c\",(function(){return s})),i.d(e,\"h\",(function(){return a})),i.d(e,\"j\",(function(){return l})),i.d(e,\"i\",(function(){return h})),i.d(e,\"d\",(function(){return u})),i.d(e,\"e\",(function(){return c})),i.d(e,\"f\",(function(){return f})),i.d(e,\"g\",(function(){return d}));var n=i(\"b775\");function o(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/relation/list\",method:\"post\",data:t})}function r(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/batch/deal\",method:\"post\",data:t})}function s(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/backlog/list\",method:\"post\",data:t})}function a(t){return Object(n[\"a\"])({url:\"/jflow/p/c/identity/org/treequery\",method:\"post\",data:t})}function l(t){return Object(n[\"a\"])({url:\"/jflow/p/c/identity/user/list\",method:\"post\",data:t})}function h(t){return Object(n[\"a\"])({url:\"/jflow/p/c/identity/org/treeload\",method:\"post\",data:t})}function u(t){return Object(n[\"a\"])({url:\"/jflow/p/c/task/backlog/detail\",method:\"post\",data:t})}function c(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/relation/list\",method:\"post\",data:t})}function f(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/task/history/list\",method:\"post\",data:t})}function d(t){return Object(n[\"a\"])({url:\"/jflow/p/cs/process/manualsubmit\",method:\"post\",data:t})}}},[[0,\"runtime\",\"chunk-elementUI\",\"chunk-libs\"]]]);","extractedComments":[]}
|