diff --git a/1114.142403ba.async.js b/1114.142403ba.async.js deleted file mode 100644 index ffef42333b..0000000000 --- a/1114.142403ba.async.js +++ /dev/null @@ -1,3375 +0,0 @@ -!(function(){"use strict";var fi=Math.pow;var Ki=(Zt,gt,l)=>new Promise((i,y)=>{var L=K=>{try{S(l.next(K))}catch(U){y(U)}},_=K=>{try{S(l.throw(K))}catch(U){y(U)}},S=K=>K.done?i(K.value):Promise.resolve(K.value).then(L,_);S((l=l.apply(Zt,gt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[1114],{40001:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"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 00-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"}}]},name:"check",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},65363:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},84105:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},18785:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},87169:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},73331:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},15277:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},62772:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},61485:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},47472:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},87395:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(54476),y=l(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},_=L,S=l(7657),K=function(C,V){return y.createElement(S.Z,(0,i.Z)({},C,{ref:V,icon:_}))},U=y.forwardRef(K),p=U},96408:function(Zt,gt){gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},28735:function(Zt,gt,l){l.d(gt,{Ax:function(){return _},Ds:function(){return S},KI:function(){return U},SI:function(){return L},f1:function(){return y}});var i=l(74128);function y(p){let v=!0;if(p.length>0){for(let C=0;Cve in ye?L(ye,ve,{enumerable:!0,configurable:!0,writable:!0,value:ke}):ye[ve]=ke,C=(ye,ve)=>{for(var ke in ve||(ve={}))U.call(ve,ke)&&v(ye,ke,ve[ke]);if(K)for(var ke of K(ve))p.call(ve,ke)&&v(ye,ke,ve[ke]);return ye},V=(ye,ve)=>_(ye,S(ve)),A=(ye,ve)=>{var ke={};for(var Oe in ye)U.call(ye,Oe)&&ve.indexOf(Oe)<0&&(ke[Oe]=ye[Oe]);if(ye!=null&&K)for(var Oe of K(ye))ve.indexOf(Oe)<0&&p.call(ye,Oe)&&(ke[Oe]=ye[Oe]);return ke},D=(ye,ve,ke)=>new Promise((Oe,$e)=>{var W=g=>{try{B(ke.next(g))}catch(O){$e(O)}},T=g=>{try{B(ke.throw(g))}catch(O){$e(O)}},B=g=>g.done?Oe(g.value):Promise.resolve(g.value).then(W,T);B((ke=ke.apply(ye,ve)).next())});const Ae=ye=>{var ve=ye,{children:ke}=ve,Oe=A(ve,["children"]);const[$e,W]=(0,y.useState)(!1);return y.createElement(i.ZP,V(C({},Oe),{loading:$e,onClick:T=>D(void 0,null,function*(){try{W(!0),yield Oe.onClick(T),W(!1)}catch(B){console.error(B),W(!1)}})}),ke)}},15028:function(Zt,gt,l){l.d(gt,{Z:function(){return p}});var i=l(59301),y=l(65582),L=l(43418),_="data:image/png;base64,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",S="data:image/png;base64,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",K={tilte:"tilte___IfiMG",flexRow:"flexRow___pQP78",flexColumn:"flexColumn___xrBZQ",footerWrap:"footerWrap___C5kCC",img:"img___GoWZu",content:"content___pumTK",modalContent:"modalContent___XvHiZ"};const U=({visible:v,occupationValue:C,onCancel:V=()=>{}})=>{const A=()=>i.createElement("div",{className:K.flexColumn},i.createElement("img",{className:K.img,src:S}),i.createElement("span",{className:K.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1")),D=()=>i.createElement("div",{className:K.flexColumn},i.createElement("img",{className:K.img,src:_}),i.createElement("span",{className:K.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1")),Ae=()=>C===3?i.createElement(i.Fragment,null,D(),A()):C===2?A():D();return i.createElement(L.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:v,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:()=>{V(),y.history.push("/account/certification")},onCancel:()=>{V()}},i.createElement("div",{className:K.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),i.createElement("div",{className:K.flexRow},Ae()))};var p=(0,y.connect)(({paperlibrary:v,loading:C,globalSetting:V})=>({paperlibrary:v,globalSetting:V,loading:C.effects}))(U)},48530:function(Zt,gt,l){var i=l(86204),y=l.n(i),L=Object.defineProperty,_=(p,v,C)=>v in p?L(p,v,{enumerable:!0,configurable:!0,writable:!0,value:C}):p[v]=C,S=(p,v,C)=>_(p,typeof v!="symbol"?v+"":v,C),K=(p,v,C)=>new Promise((V,A)=>{var D=ve=>{try{ye(C.next(ve))}catch(ke){A(ke)}},Ae=ve=>{try{ye(C.throw(ve))}catch(ke){A(ke)}},ye=ve=>ve.done?V(ve.value):Promise.resolve(ve.value).then(D,Ae);ye((C=C.apply(p,v)).next())});class U extends i.EventEmitter{constructor(v,C){super(),S(this,"url"),S(this,"body"),S(this,"fullContent",""),S(this,"controller",null),S(this,"buffer",""),this.url=v,this.body=C}startStream(){return K(this,null,function*(){this.controller=new AbortController;const{signal:v}=this.controller;try{const C=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:v});if(!C.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${C.status}`);const V=C.headers.get("content-type");if(!V)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(V.includes("application/json")){const Ae=yield C.json();this.emit("error",Ae);return}if(!V.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const A=C.body.getReader(),D=new TextDecoder("utf-8");for(;;){const{done:Ae,value:ye}=yield A.read();if(Ae)break;const ve=D.decode(ye,{stream:!0});this.buffer+=ve;const ke=this.buffer.split(` -`);this.buffer=ke.pop()||"";for(const Oe of ke)if(Oe.startsWith("data:")){const $e=Oe.slice(5).trim();if($e==="[DONE]")break;try{const W=JSON.parse($e);W.data&&this.handleData(W.data)}catch(W){this.buffer=Oe+` -`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",W)}}}this.emit("done",this.fullContent)}catch(C){C.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",C.message)}})}handleData(v){v.content&&(this.fullContent+=v.content,this.emit("data",{chunk:v,full:this.fullContent}))}cancelRequest(){var v;(v=this.controller)==null||v.abort()}}gt.Z=U},36299:function(Zt,gt,l){l.d(gt,{Z:function(){return te}});var i=l(59301),y=l(97831),L=l(66328),_=l(3977),S=l(18369),K=l(56102),U={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},p=l(8591),v=l(11611),C=l(26779),V=l(30084),A=l(10787),D=l(48850),Ae=l(43428),ye=l(95237),ve=l(43604),ke={smartWrp:"smartWrp___NjRcB"},Oe=l(50258),$e=l(3918),W=l(96935),T=l(59301),B=(G,oe,$)=>new Promise((R,Q)=>{var ne=st=>{try{yt($.next(st))}catch(Ue){Q(Ue)}},Ne=st=>{try{yt($.throw(st))}catch(Ue){Q(Ue)}},yt=st=>st.done?R(st.value):Promise.resolve(st.value).then(ne,Ne);yt(($=$.apply(G,oe)).next())});const g=` - - - - - \u5FEB\u901F\u6392\u5E8F\u6F14\u793A - - - -

\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A

- -
- - - + \ No newline at end of file diff --git a/layouts__SimpleLayouts.514ce341.async.js b/layouts__SimpleLayouts.514ce341.async.js new file mode 100644 index 0000000000..4b5dbd4bd5 --- /dev/null +++ b/layouts__SimpleLayouts.514ce341.async.js @@ -0,0 +1,288 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[7062],{65363:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ke}});var y=te(54476),ce=te(59301),Ee={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Oe=Ee,De=te(7657),Be=function(xe,Ie){return ce.createElement(De.Z,(0,y.Z)({},xe,{ref:Ie,icon:Oe}))},Pe=ce.forwardRef(Be),ke=Pe},81953:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ke}});var y=te(54476),ce=te(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Oe=Ee,De=te(7657),Be=function(xe,Ie){return ce.createElement(De.Z,(0,y.Z)({},xe,{ref:Ie,icon:Oe}))},Pe=ce.forwardRef(Be),ke=Pe},87169:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ke}});var y=te(54476),ce=te(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Oe=Ee,De=te(7657),Be=function(xe,Ie){return ce.createElement(De.Z,(0,y.Z)({},xe,{ref:Ie,icon:Oe}))},Pe=ce.forwardRef(Be),ke=Pe},32050:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ke}});var y=te(54476),ce=te(59301),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Oe=Ee,De=te(7657),Be=function(xe,Ie){return ce.createElement(De.Z,(0,y.Z)({},xe,{ref:Ie,icon:Oe}))},Pe=ce.forwardRef(Be),ke=Pe},96408:function(Ze,Rt){"use strict";Rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},31002:function(Ze,Rt){"use strict";Rt.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},96435:function(Ze,Rt,te){"use strict";var y=te(59301),ce=Object.defineProperty,Ee=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Be=(Fe,xe,Ie)=>xe in Fe?ce(Fe,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Fe[xe]=Ie,Pe=(Fe,xe)=>{for(var Ie in xe||(xe={}))Oe.call(xe,Ie)&&Be(Fe,Ie,xe[Ie]);if(Ee)for(var Ie of Ee(xe))De.call(xe,Ie)&&Be(Fe,Ie,xe[Ie]);return Fe};const ke=Fe=>React.createElement("svg",Pe({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Fe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Rt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},64303:function(Ze,Rt,te){"use strict";var y=te(59301),ce=Object.defineProperty,Ee=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Be=(Fe,xe,Ie)=>xe in Fe?ce(Fe,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Fe[xe]=Ie,Pe=(Fe,xe)=>{for(var Ie in xe||(xe={}))Oe.call(xe,Ie)&&Be(Fe,Ie,xe[Ie]);if(Ee)for(var Ie of Ee(xe))De.call(xe,Ie)&&Be(Fe,Ie,xe[Ie]);return Fe};const ke=Fe=>React.createElement("svg",Pe({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Fe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Rt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},25863:function(){"use strict";function Ze(ae,E,a,b){a===void 0&&(a=0),b===void 0&&(b=1/0),this._name=ae,this._defaultValue=E,this._minimum=a,this._maximum=b}Object.defineProperty(Ze.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ze.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ze.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,E){var a=go.Shape._FigureParameters[ae];return a?a[E]:null},go.Shape.setFigureParameter=function(ae,E,a){if(!(a instanceof Ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var b=go.Shape._FigureParameters[ae];b||(b=[],go.Shape._FigureParameters[ae]=b),b[E]=a};var Rt=[];function te(ae,E){var a=Rt.pop();return a===void 0?new go.Point(ae,E):(a.x=ae,a.y=E,a)}function y(){var ae=Rt.pop();return ae===void 0?new go.Point:ae}function ce(ae){Rt.push(ae)}function Ee(ae,E,a,b,x,z,ee,ne,oe){oe||(oe=new go.Point);var ie=ae-a,se=x-ee,ge=NaN,Se=NaN;if(ie===0)if(se===0)ae===a&&(ge=ae,Se=E);else{var be=(z-ne)/se,ot=z-be*x;ge=ae,Se=be*ge+ot}else if(se===0){var _e=(E-b)/ie,nt=E-_e*ae;ge=x,Se=_e*ge+nt}else{var _e=(E-b)/ie,be=(z-ne)/se,nt=E-_e*ae,ot=z-be*x;ge=(ot-nt)/(_e-be),Se=_e*ge+nt}return oe.x=ge,oe.y=Se,oe}function Oe(ae,E,a,b,x,z,ee,ne,oe,ie,se,ge,Se,be){var ot=1-oe,_e=oe,nt=ae*ot+a*_e,dt=E*ot+b*_e,Tt=a*ot+x*_e,yt=b*ot+z*_e,nn=x*ot+ee*_e,Nt=z*ot+ne*_e,An=nt*ot+Tt*_e,ht=dt*ot+yt*_e,Mt=Tt*ot+nn*_e,Gt=yt*ot+Nt*_e,xt=An*ot+Mt*_e,At=ht*ot+Gt*_e;ie.x=nt,ie.y=dt,se.x=An,se.y=ht,ge.x=xt,ge.y=At,Se.x=Mt,Se.y=Gt,be.x=nn,be.y=Nt}var De=new go.Spot(.156,.156),Be=new go.Spot(.844,.844),Pe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,E,a){var b=ae?ae.parameter1:NaN;(isNaN(b)||b<0)&&(b=5),b=Math.min(b,E/3),b=Math.min(b,a/3);var x=b*Pe,z=new go.Geometry().add(new go.PathFigure(b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-b,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,b,E-x,0,E,x)).add(new go.PathSegment(go.PathSegment.Line,E,a-b)).add(new go.PathSegment(go.PathSegment.Bezier,E-b,a,E,a-x,E-x,a)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close()));return x>1&&(z.spot1=new go.Spot(0,0,x,x),z.spot2=new go.Spot(1,1,-x,-x)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,E,a){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=a/2,b.endX=E,b.endY=a/2,b}),go.Shape.defineFigureGenerator("LineV",function(ae,E,a){var b=new go.Geometry(go.Geometry.Line);return b.startX=E/2,b.startY=0,b.endX=E/2,b.endY=a,b}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,E,a){var b=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(b*E,(1-b)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,b*a)).add(new go.PathSegment(go.PathSegment.Move,b*E,b*a)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,(1-b)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,E,a){var b=E/2,x=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close()));return x.spot1=De,x.spot2=Be,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Line1",function(ae,E,a){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=0,b.endX=E,b.endY=a,b}),go.Shape.defineFigureGenerator("Line2",function(ae,E,a){var b=new go.Geometry(go.Geometry.Line);return b.startX=E,b.startY=0,b.endX=0,b.endY=a,b}),go.Shape.defineFigureGenerator("Curve1",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,Pe*E,0,E,(1-Pe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,Pe*a,(1-Pe)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,Pe*a,Pe*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Pe)*E,0,0,(1-Pe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)?b=.1:b<-1?b=-1:b>1&&(b=1);var x=Math.abs(b)*E;if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(x,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-x,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,x,a).close())),xE&&(b=E);var x=Math.abs(b);if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(x,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-x,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,x,a).close())),x.5&&(b=.5);var x=Math.abs(b)*E;if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(x,0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-x,a)).add(new go.PathSegment(go.PathSegment.Line,x,a).close())),xE&&(b=E/2);var x=Math.abs(b);if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(x,0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-x,a)).add(new go.PathSegment(go.PathSegment.Line,x,a).close())),xE&&(b=E/2);var x=Math.abs(b);if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-x,a)).add(new go.PathSegment(go.PathSegment.Line,x,a).close())):z.add(new go.PathFigure(x,0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),x0&&(ee.add(new go.PathSegment(go.PathSegment.Move,E/2+ne,E/2)),ee.add(new go.PathSegment(go.PathSegment.Arc,0,-360,x,x,ne,ne).close())),z.spot1=De,z.spot2=Be,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,E,a){var b=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(b*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,b*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-b)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,a)).add(new go.PathSegment(go.PathSegment.Line,b*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a)).add(new go.PathSegment(go.PathSegment.Line,0,b*a).close())).setSpots(b/2,b/2,1-b/2,1-b/2)}),go.Shape.setFigureParameter("Pie",0,new Ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,E,a){var b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=0),isNaN(x)&&(x=315);var z=b%360;z<0&&(z+=360);var ee=x%360,ne=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(ne,ne).add(new go.PathSegment(go.PathSegment.Arc,z,ee,ne,ne,ne,ne).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,E,a){var b=Pe/Math.SQRT2*.5,x=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,x*E,z*a,E,(1-b)*a,(x+b)*E,(z+b)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,E,a){var b=ae?ae.parameter1:NaN;(isNaN(b)||b<0)&&(b=30);var x=Math.min(b,E)/2,z=E/2,ee=a/2;return new go.Geometry().add(new go.PathFigure(z-x,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+x,0)).add(new go.PathSegment(go.PathSegment.Line,z+x,ee-x)).add(new go.PathSegment(go.PathSegment.Line,E,ee-x)).add(new go.PathSegment(go.PathSegment.Line,E,ee+x)).add(new go.PathSegment(go.PathSegment.Line,z+x,ee+x)).add(new go.PathSegment(go.PathSegment.Line,z+x,a)).add(new go.PathSegment(go.PathSegment.Line,z-x,a)).add(new go.PathSegment(go.PathSegment.Line,z-x,ee+x)).add(new go.PathSegment(go.PathSegment.Line,0,ee+x)).add(new go.PathSegment(go.PathSegment.Line,0,ee-x)).add(new go.PathSegment(go.PathSegment.Line,z-x,ee-x).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,E,a){var b=ae?ae.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var x=Math.min(b,E)/2,z=E/2,ee=a/2;return new go.Geometry().add(new go.PathFigure(z-x,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+x,0)).add(new go.PathSegment(go.PathSegment.Line,z+x,ee-x)).add(new go.PathSegment(go.PathSegment.Line,E,ee-x)).add(new go.PathSegment(go.PathSegment.Line,E,ee+x)).add(new go.PathSegment(go.PathSegment.Line,z+x,ee+x)).add(new go.PathSegment(go.PathSegment.Line,z+x,a)).add(new go.PathSegment(go.PathSegment.Line,z-x,a)).add(new go.PathSegment(go.PathSegment.Line,z-x,ee+x)).add(new go.PathSegment(go.PathSegment.Line,0,ee+x)).add(new go.PathSegment(go.PathSegment.Line,0,ee-x)).add(new go.PathSegment(go.PathSegment.Line,z-x,ee-x).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,E,a){var b=ae?ae.parameter1:NaN;if((isNaN(b)||b<0)&&(b=30),E===0||a===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}else{var z=E/2,ee=a/2,ne=Math.atan2(a,E),oe=b-Math.min(Math.cos(ne)*b/2,z),ie=b-Math.min(Math.sin(ne)*b/2,ee),x=new go.Geometry,se=new go.PathFigure(oe,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),se.add(new go.PathSegment(go.PathSegment.Line,E-oe,0)),se.add(new go.PathSegment(go.PathSegment.Line,E,ie)),se.add(new go.PathSegment(go.PathSegment.Line,.8*E,ee)),se.add(new go.PathSegment(go.PathSegment.Line,E,a-ie)),se.add(new go.PathSegment(go.PathSegment.Line,E-oe,a)),se.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),se.add(new go.PathSegment(go.PathSegment.Line,oe,a)),se.add(new go.PathSegment(go.PathSegment.Line,0,a-ie)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,ee)),se.add(new go.PathSegment(go.PathSegment.Line,0,ie).close()),x}}),go.Shape.setFigureParameter("ThinX",0,new Ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,E,a){var b=ae?ae.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var x=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),x}),go.Shape.setFigureParameter("SquareIBeam",0,new Ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.2);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*E,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*E,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*E,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*E,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a).close()),x}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.5);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-b)*E,.25*a,Math.abs(1-b)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*E,.75*a,b*E,.25*a).close()),x}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,Pe*E,0,E,(.5-Pe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+Pe/2)*a,Pe*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.4*E,.6*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,ee=.3,ne=0,oe=z*Pe;return x.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*E,(.5+z+ne)*a,(.5-z+ee)*E,(.5+oe+ne)*a,(.5-oe+ee)*E,(.5+z+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ee)*E,(.5+ne)*a,(.5+oe+ee)*E,(.5+z+ne)*a,(.5+z+ee)*E,(.5+oe+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*E,(.5-z+ne)*a,(1-.5+z+ee)*E,(.5-oe+ne)*a,(.5+oe+ee)*E,(.5-z+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-oe+ee)*E,(.5-z+ne)*a,(.5-z+ee+.05)*E,(.5-oe+ne-.02)*a)),z=.2,ee=0,ne=-.3,oe=z*Pe,x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ee)*E,(.5+ne)*a,(.5+oe+ee)*E,(.5+z+ne)*a,(.5+z+ee)*E,(.5+oe+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*E,(.5-z+ne)*a,(1-.5+z+ee)*E,(.5-oe+ne)*a,(.5+oe+ee)*E,(.5-z+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ee)*E,(.5+ne)*a,(.5-oe+ee)*E,(.5-z+ne)*a,(.5-z+ee)*E,(.5-oe+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(.5-oe+ee)*E,(.5+z+ne)*a,(.5-z+ee)*E,(.5+oe+ne)*a,(.5-oe+ee)*E,(.5+z+ne)*a)),z=.2,ee=-.3,ne=0,oe=z*Pe,x.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*E,(.5-z+ne)*a,(1-.5+z+ee-.05)*E,(.5-oe+ne-.02)*a,(.5+oe+ee)*E,(.5-z+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ee)*E,(.5+ne)*a,(.5-oe+ee)*E,(.5-z+ne)*a,(.5-z+ee)*E,(.5-oe+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*E,(.5+z+ne)*a,(.5-z+ee)*E,(.5+oe+ne)*a,(.5-oe+ee)*E,(.5+z+ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+oe+ee)*E,(.5+z+ne)*a,(.5+z+ee)*E,(.5+oe+ne)*a).close()),b.setSpots(.06,.33,.93,.68),b}),go.Shape.defineFigureGenerator("YinYang",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*.5,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),x.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,ee=.5,ne=.25;return x.add(new go.PathSegment(go.PathSegment.Move,(ee+z)*E,ne*a)),x.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ee,a*ne,z*E,z*E).close()),x=new go.PathFigure(E*.5,0,!1),b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),ne=.75,x=new go.PathFigure((ee+z)*E,ne*a,!0),b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ee,a*ne,z*E,z*E).close()),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Peace",function(ae,E,a){var b=.8535533905932737,x=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(x,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,x,z,x,z)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Move,x,z)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,b*a)).add(new go.PathSegment(go.PathSegment.Move,x,z)).add(new go.PathSegment(go.PathSegment.Line,b*E,b*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=.5,ee=.5,ne=.5,oe=new go.PathFigure(ee*E,(ne-z)*a);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-z)*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),z=.4,x=Pe*.4;var ie=y(),se=y(),ge=y(),Se=y();Oe(ee,ne-z,ee+x,ne-z,ee+z,ne-x,ee+z,ne,.42,ie,se,ge,Se,Se);var be=y(),ot=y(),_e=y();Oe(ee,ne-z,ee+x,ne-z,ee+z,ne-x,ee+z,ne,.58,Se,Se,_e,be,ot);var nt=y(),dt=y(),Tt=y();Oe(ee,ne+z,ee-x,ne+z,ee-z,ne+x,ee-z,ne,.42,nt,dt,Tt,Se,Se);var yt=y(),nn=y(),Nt=y();return Oe(ee,ne+z,ee-x,ne+z,ee-z,ne+x,ee-z,ne,.58,Se,Se,Nt,yt,nn),oe.add(new go.PathSegment(go.PathSegment.Move,Nt.x*E,Nt.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,yt.x*E,yt.y*a,nn.x*E,nn.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-z)*a,(ee-z)*E,(ne-x)*a,(ee-x)*E,(ne-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,ie.x*E,ie.y*a,se.x*E,se.y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,Nt.x*E,Nt.y*a).close()),oe.add(new go.PathSegment(go.PathSegment.Move,Tt.x*E,Tt.y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,_e.x*E,_e.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,be.x*E,be.y*a,ot.x*E,ot.y*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee+z)*E,(ne+x)*a,(ee+x)*E,(ne+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*E,Tt.y*a,nt.x*E,nt.y*a,dt.x*E,dt.y*a).close()),ce(ie),ce(se),ce(ge),ce(Se),ce(be),ce(ot),ce(_e),ce(nt),ce(dt),ce(Tt),ce(yt),ce(nn),ce(Nt),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Fragile",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,E,a){var b=ae?ae.parameter1:NaN;(isNaN(b)||b<0)&&(b=30),b>E&&(b=E);var x=(E-b)/2,z=x+b;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,x,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,E,a){var b=new go.Geometry,x=Pe*.4,z=.4,ee=.5,ne=.5,oe=y(),ie=y(),se=y(),ge=y(),Se=new go.PathFigure((ee-z)*E,ne*a,!1);b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-z)*a,(ee-z)*E,(ne-x)*a,(ee-x)*E,(ne-z)*a)),Oe(ee,ne-z,ee+x,ne-z,ee+z,ne-x,ee+z,ne,.44,se,ge,ie,oe,oe),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,se.x*E,se.y*a,ge.x*E,ge.y*a));var be=te(ie.x,ie.y);Oe(ee,ne-z,ee+x,ne-z,ee+z,ne-x,ee+z,ne,.56,oe,oe,ie,se,ge);var ot=te(ie.x,ie.y);Se.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.95*.9)*E,be.y*.1*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*E,be.y*.1*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Se.add(new go.PathSegment(go.PathSegment.Line,E,0)),Se.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(ot.x*.1+.9)*E,.15*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(ot.x*.1+.9)*E,(ot.y*.1+.05*.9)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,ot.x*E,ot.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,se.x*E,se.y*a,ge.x*E,ge.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee+z)*E,(ne+x)*a,(ee+x)*E,(ne+z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,(ee-x)*E,(ne+z)*a,(ee-z)*E,(ne+x)*a)),z=.35,x=Pe*.35;var _e=new go.PathFigure(ee*E,(ne-z)*a,!1);b.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-z)*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a));var nt=new go.PathFigure((ee-z)*E,ne*a,!1);return b.add(nt),ce(oe),ce(ie),ce(se),ce(ge),ce(be),ce(ot),b.spot1=new go.Spot(.202,.257),b.spot2=new go.Spot(.792,.739),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,E,a){var b=new go.Geometry,x=.375,z=0,ee=-.125,ne=x*Pe,oe=new go.PathFigure((.525+z)*E,(.5+x+ee)*a,!1);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*E,(.5+ee)*a,(.5+ne+z)*E,(.5+x+ee)*a,(.5+x+z)*E,(.5+ne+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-x+ee)*a,(1-.5+x+z)*E,(.5-ne+ee)*a,(.5+ne+z)*E,(.5-x+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*E,(.5+ee)*a,(.5-ne+z)*E,(.5-x+ee)*a,(.5-x+z)*E,(.5-ne+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+x+ee)*a,(.5-x+z)*E,(.5+ne+ee)*a,(.5-ne+z)*E,(.5+x+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),x=.325,z=0,ee=-.125,ne=x*Pe;var oe=new go.PathFigure((1-.5+x+z)*E,(.5+ee)*a,!1);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+x+ee)*a,(.5+x+z)*E,(.5+ne+ee)*a,(.5+ne+z)*E,(.5+x+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*E,(.5+ee)*a,(.5-ne+z)*E,(.5+x+ee)*a,(.5-x+z)*E,(.5+ne+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-x+ee)*a,(.5-x+z)*E,(.5-ne+ee)*a,(.5-ne+z)*E,(.5-x+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*E,(.5+ee)*a,(.5+ne+z)*E,(.5-x+ee)*a,(1-.5+x+z)*E,(.5-ne+ee)*a));var oe=new go.PathFigure((.525+z)*E,(.5+x+ee)*a,!1);return b.add(oe),b.spot1=new go.Spot(.232,.136),b.spot2=new go.Spot(.682,.611),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,E,a){var b=ae?ae.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,E,a){var b=ae?ae.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,b*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,E,a){var b=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,E,a){var b=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,b*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,b*E,b*a,b*E,b*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,E,a){var b=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,b*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,b*E,b*a,b*E,b*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.3);var x=ae?ae.parameter2:NaN;isNaN(x)&&(x=.3);var z=(1-b)*E,ee=(.5-x/2)*a,ne=(.5+x/2)*a,oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),oe.spot1=new go.Spot(0,ee/a);var se=Ee(0,ne/a,1,ne/a,z/E,1,1,.5,y());return oe.spot2=new go.Spot(se.x,se.y),ce(se),oe}),go.Shape.setFigureParameter("Arrow2",0,new Ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=30),b>E&&(b=E);var x=ae?ae.parameter2:NaN;isNaN(x)&&(x=30),x=Math.min(x,a/2);var z=E-b,ee=(a-x)/2,ne=ee+x,oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),oe.spot1=new go.Spot(0,ee/a);var se=Ee(0,ne/a,1,ne/a,z/E,1,1,.5,y());return oe.spot2=new go.Spot(se.x,se.y),ce(se),oe}),go.Shape.defineFigureGenerator("Chevron",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),b}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),b}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.3);var x=(.5-b/2)*a,z=(.5+b/2)*a,ee=new go.Geometry,ne=new go.PathFigure(E,.5*a,!0);ee.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var oe=Ee(0,.5,.3,0,0,x/a,.1,x/a,y());return ee.spot1=new go.Spot(oe.x,oe.y),oe=Ee(.7,1,1,.5,0,z/a,1,z/a,oe),ee.spot2=new go.Spot(oe.x,oe.y),ce(oe),ee}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=40);var x=ae?ae.parameter2:NaN;isNaN(x)&&(x=100);var z=(a-b)/2,ee=z+b,ne=(a-x)/2,oe=ne+x;(b>a||x>a)&&(x>b?(b=b*a/x,z=(a-b)/2,ee=z+b,ne=0,oe=a):(z=0,ee=a,ne=0,oe=a));var ie=new go.Geometry,se=new go.PathFigure(E,.5*a,!0);ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe)),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*E,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*E,oe)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),se.add(new go.PathSegment(go.PathSegment.Line,.3*E,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne).close());var ge=Ee(0,.5,.3,ne/a,0,z/a,1,z/a,y());return ie.spot1=new go.Spot(ge.x,ge.y),ge=Ee(.7,oe/a,1,.5,0,ee/a,1,ee/a,ge),ie.spot2=new go.Spot(ge.x,ge.y),ce(ge),ie}),go.Shape.setFigureParameter("IBeamArrow",0,new Ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.3);var x=(.5-b/2)*a,z=(.5+b/2)*a,ee=new go.Geometry,ne=new go.PathFigure(E,.5*a,!0);ee.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ee.spot1=new go.Spot(0,x/a);var oe=Ee(.7,1,1,.5,0,z/a,1,z/a,y());return ee.spot2=new go.Spot(oe.x,oe.y),ce(oe),ee}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=40);var x=ae?ae.parameter2:NaN;isNaN(x)&&(x=100);var z=(a-b)/2,ee=z+b,ne=(a-x)/2,oe=ne+x;(b>a||x>a)&&(x>b?(b=b*a/x,z=(a-b)/2,ee=z+b,ne=0,oe=a):(z=0,ee=a,ne=0,oe=a));var ie=new go.Geometry,se=new go.PathFigure(E,.5*a,!0);ie.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe)),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,oe)),se.add(new go.PathSegment(go.PathSegment.Line,0,oe)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),se.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne).close()),ie.spot1=new go.Spot(0,z/a);var ge=Ee(.7,oe/a,1,.5,0,ee/a,1,ee/a,y());return ie.spot2=new go.Spot(ge.x,ge.y),ce(ge),ie}),go.Shape.setFigureParameter("Pointer",0,new Ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,b*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),x.spot1=new go.Spot(b,.35);var ee=Ee(.2,.65,1,.65,0,1,1,.5,y());return x.spot2=new go.Spot(ee.x,ee.y),ce(ee),x}),go.Shape.setFigureParameter("RoundedPointer",0,new Ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.3);var x=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*E,.75*a,b*E,.25*a).close()),x.spot1=new go.Spot(b,.35);var ee=Ee(0,.65,1,.65,0,1,1,.5,y());return x.spot2=new go.Spot(ee.x,ee.y),ce(ee),x}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.4);var x=(.5-b/2)*a,z=(.5+b/2)*a,ee=new go.Geometry,ne=new go.PathFigure(E,.5*a,!0);ee.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ee.spot1=new go.Spot(.2,.3);var oe=Ee(.7,1,1,.5,0,z/a,1,z/a,y());return ee.spot2=new go.Spot(oe.x,oe.y),ce(oe),ee}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=50);var x=(a-b)/2,z=x+b;b>a&&(x=0,z=a);var ee=new go.Geometry,ne=new go.PathFigure(E,.5*a,!0);ee.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ee.spot1=new go.Spot(.2,x/a);var oe=Ee(.7,1,1,.5,0,z/a,1,z/a,y());return ee.spot2=new go.Spot(oe.x,oe.y),ce(oe),ee}),go.Shape.setFigureParameter("SquareArrow",0,new Ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*E,0).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(b,1),x}),go.Shape.defineFigureGenerator("Cone1",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=Pe*.1,ee=new go.PathFigure(0,.9*a,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-x)*E,a,0,(.9+z)*a).close()),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.97),b}),go.Shape.defineFigureGenerator("Cone2",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.9*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.82),b}),go.Shape.defineFigureGenerator("Cube1",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.5,.85),b}),go.Shape.defineFigureGenerator("Cube2",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.3*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.7,1),b}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var x=new go.Geometry,z=Pe*.5,ee=new go.PathFigure(0,b,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Pe*b,(.5-z)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,1*E,b,(.5+z)*E,0,1*E,Pe*b)),ee.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-Pe*b,(.5+z)*E,1*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,(.5-z)*E,1*a,0,a-Pe*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b));var ne=new go.PathFigure(E,b,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*b,1*E,2*b-Pe*b,(.5+z)*E,2*b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,b,(.5-z)*E,2*b,0,2*b-Pe*b)),x.spot1=new go.Spot(0,0,0,2*b),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var x=new go.Geometry,z=Pe*.5,ee=new go.PathFigure(0,a-b,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Pe*b,(.5-z)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,b,(.5+z)*E,0,E,Pe*b)),ee.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-Pe*b,(.5+z)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,(.5-z)*E,a,0,a-Pe*b));var ne=new go.PathFigure(0,a-b,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*b,0,a-b-Pe*b,(.5-z)*E,a-2*b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,a-b,(.5+z)*E,a-2*b,E,a-b-Pe*b)),x.spot1=new go.Spot(0,0),x.spot2=new go.Spot(1,1,0,-2*b),x}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,E/3);var x=new go.Geometry,z=Pe*.5,ee=new go.PathFigure(b,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E-b,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Pe*b,0,E,(.5-z)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E-b,a,E,(.5+z)*a,E-Pe*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Pe*b,a,0,(.5+z)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-z)*a,Pe*b,0));var ne=new go.PathFigure(b,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,2*b,.5*a,b+Pe*b,0,2*b,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,b,a,2*b,(.5+z)*a,b+Pe*b,a)),x.spot1=new go.Spot(0,0,2*b,0),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,E/3);var x=new go.Geometry,z=Pe*.5,ee=new go.PathFigure(E-b,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Pe*b,0,E,(.5-z)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E-b,a,E,(.5+z)*a,E-Pe*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Pe*b,a,0,(.5+z)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-z)*a,Pe*b,0)),ee.add(new go.PathSegment(go.PathSegment.Line,E-b,0));var ne=new go.PathFigure(E-b,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-2*b,.5*a,E-b-Pe*b,0,E-2*b,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-b,a,E-2*b,(.5+z)*a,E-b-Pe*b,a)),x.spot1=new go.Spot(0,0),x.spot2=new go.Spot(1,1,-2*b,0),x}),go.Shape.defineFigureGenerator("Prism1",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.25*E,.25*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),b.spot1=new go.Spot(.408,.172),b.spot2=new go.Spot(.833,.662),b}),go.Shape.defineFigureGenerator("Prism2",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.25*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Actor",function(ae,E,a){var b=new go.Geometry,x=.2,z=.1,ee=Pe*x,ne=Pe*z,oe=.5,ie=.1,se=new go.PathFigure(oe*E,(ie+z)*a,!0);b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-x)*E,ie*a,(oe-ee)*E,(ie+z)*a,(oe-x)*E,(ie+ne)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-z)*a,(oe-x)*E,(ie-ne)*a,(oe-ee)*E,(ie-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+x)*E,ie*a,(oe+ee)*E,(ie-z)*a,(oe+x)*E,(ie-ne)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie+z)*a,(oe+x)*E,(ie+ne)*a,(oe+ee)*E,(ie+z)*a));var ge=.05,Se=Pe*ge;oe=.05,ie=.25;var be=new go.PathFigure(.5*E,.2*a,!0);return b.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),oe=.95,ie=.25,be.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ge)*E,ie*a,(oe+Se)*E,(ie-ge)*a,(oe+ge)*E,(ie-Se)*a)),be.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),ge=.025,Se=Pe*ge,oe=.825,ie=.35,be.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ge)*a,(oe+ge)*E,(ie-Se)*a,(oe+Se)*E,(ie-ge)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ge)*E,ie*a,(oe-Se)*E,(ie-ge)*a,(oe-ge)*E,(ie-Se)*a)),be.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),be.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),be.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),ge=.05,Se=Pe*ge,oe=.5,ie=.7,be.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ge)*a,(oe+ge)*E,(ie-Se)*a,(oe+Se)*E,(ie-ge)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ge)*E,ie*a,(oe-Se)*E,(ie-ge)*a,(oe-ge)*E,(ie-Se)*a)),be.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),be.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),be.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),ge=.025,Se=Pe*ge,oe=.175,ie=.35,be.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ge)*a,(oe+ge)*E,(ie-Se)*a,(oe+Se)*E,(ie-ge)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ge)*E,ie*a,(oe-Se)*E,(ie-ge)*a,(oe-ge)*E,(ie-Se)*a)),be.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),be.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),be.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ge=.05,Se=Pe*ge,oe=.05,ie=.25,be.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ge)*a,(oe-ge)*E,(ie-Se)*a,(oe-Se)*E,(ie-ge)*a)),be.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),b.spot1=new go.Spot(.2,.2),b.spot2=new go.Spot(.8,.65),b}),go.Shape.setFigureParameter("Card",0,new Ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,E,a){var b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.2);var x=new go.Geometry,z=new go.PathFigure(E,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*E,0).close()),x.spot1=new go.Spot(0,b),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Collate",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,.25),b}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(0,x*a,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,(1-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),b}),go.Shape.defineFigureGenerator("Database",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=Pe*.1,ee=new go.PathFigure(E,.1*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-x)*E,a,0,(.9+z)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+x)*E,0,E,(.1-z)*a));var ne=new go.PathFigure(E,.1*a,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+x)*E,.2*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-x)*E,.2*a,0,(.1+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+x)*E,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-x)*E,.3*a,0,(.2+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+x)*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-x)*E,.4*a,0,(.3+z)*a)),b.spot1=new go.Spot(0,.4),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("DataStorage",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),b.spot1=new go.Spot(.226,0),b.spot2=new go.Spot(.81,1),b}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=Pe*.1,ee=new go.PathFigure(E,.1*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-x)*E,a,0,(.9+z)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+x)*E,0,E,(.1-z)*a));var ne=new go.PathFigure(E,.1*a,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+x)*E,.2*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-x)*E,.2*a,0,(.1+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+x)*E,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-x)*E,.3*a,0,(.2+z)*a)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("Display",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.25*E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)?x=.2:x<.15&&(x=.15);var z=Pe*.2,ee=new go.PathFigure(0,.2*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ne=new go.PathFigure(0,x*a,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),b}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;(isNaN(x)||x<.1)&&(x=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(0,x*a,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),b}),go.Shape.defineFigureGenerator("Document",function(ae,E,a){var b=new go.Geometry;a=a/.8;var x=new go.PathFigure(0,.7*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;(isNaN(x)||x<.2)&&(x=.2);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(x*E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),ee.add(new go.PathSegment(go.PathSegment.Move,E,x*a)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Move,0,(1-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),ee.add(new go.PathSegment(go.PathSegment.Move,(1-x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),b}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("File",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Interrupt",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var ee=new go.PathFigure(E,.5*a,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,0)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN,z=ae?ae.parameter2:NaN;isNaN(x)&&(x=.1),isNaN(z)&&(z=.1);var ee=new go.PathFigure(0,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(x*E,0,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),b}),go.Shape.defineFigureGenerator("Junction",function(ae,E,a){var b=new go.Geometry,x=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ee=Pe*.5,ne=.5,oe=new go.PathFigure(E,ne*a,!0);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,E,(ne+ee)*a,(ne+ee)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne*a,(ne-ee)*E,a,0,(ne+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,0,0,(ne-ee)*a,(ne-ee)*E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,ne*a,(ne+ee)*E,0,E,(ne-ee)*a));var ie=new go.PathFigure((z+x)*E,(z+x)*a,!1);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ie.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(z+x)*E,z*a)),b}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,E,a){var b=new go.Geometry;a=a/.8;var x=new go.PathFigure(0,.7*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),b.spot1=new go.Spot(.1,0),b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=.5,ee=new go.PathFigure(.5*E,a,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-x)*E,a,0,(z+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-x)*a,(z-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+x)*E,0,E,(z-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+x)*a,(z+x)*E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.8),b}),go.Shape.defineFigureGenerator("ManualInput",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.7);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.25);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,E,a){var b=new go.Geometry;a=a/.8;var x=new go.PathFigure(E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.8,.77),b}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.1*E,.1*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),b.spot1=new go.Spot(0,.2),b.spot2=new go.Spot(.8,1),b}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var z=1-x,ee=new go.PathFigure(0,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var ne=new go.PathFigure(.5*x*E,x*a,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-.5*x)*E,x*a)),b}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("Or",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=.5,ee=new go.PathFigure(E,z*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+x)*a,(z+x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-x)*E,a,0,(z+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-x)*a,(z-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+x)*E,0,E,(z-x)*a));var ne=new go.PathFigure(E,.5*a,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),b}),go.Shape.defineFigureGenerator("PaperTape",function(ae,E,a){var b=new go.Geometry;a=a/.8;var x=new go.PathFigure(0,.7*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),b.spot1=new go.Spot(0,.49),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN,z=ae?ae.parameter2:NaN;isNaN(x)&&(x=.1),isNaN(z)&&(z=.3);var ee=new go.PathFigure(0,0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN,z=ae?ae.parameter2:NaN;isNaN(x)&&(x=.1),isNaN(z)&&(z=.3);var ee=new go.PathFigure(0,0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b}),go.Shape.defineFigureGenerator("Procedure",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure((1-x)*E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Move,x*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),b}),go.Shape.defineFigureGenerator("Process",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(x*E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Sort",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.5),b}),go.Shape.defineFigureGenerator("Start",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.25);var z=new go.PathFigure(x*E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var ee=new go.PathFigure(x*E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),ee.add(new go.PathSegment(go.PathSegment.Move,(1-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)),b.spot1=new go.Spot(x,0),b.spot2=new go.Spot(1-x,1),b}),go.Shape.defineFigureGenerator("Terminator",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.25*E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),b.spot1=new go.Spot(.23,0),b.spot2=new go.Spot(.77,1),b}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,E,a){var b=new go.Geometry,x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("AndGate",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+x)*E,0,E,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+x)*a,(.5+x)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.55,1),b}),go.Shape.defineFigureGenerator("Buffer",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Clock",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=.5,ee=new go.PathFigure(E,z*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+x)*a,(z+x)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-x)*E,a,0,(z+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-x)*a,(z-x)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+x)*E,0,E,(z-x)*a));var ne=new go.PathFigure(E,z*a,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var oe=new go.PathFigure(.8*E,.75*a,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),b}),go.Shape.defineFigureGenerator("Ground",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),b}),go.Shape.defineFigureGenerator("Inverter",function(ae,E,a){var b=new go.Geometry,x=Pe*.1,z=.1,ee=.9,ne=.5,oe=new go.PathFigure(.8*E,.5*a,!0);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ie=new go.PathFigure((ee+z)*E,ne*a,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee+z)*E,(ne+x)*a,(ee+x)*E,(ne+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,(ee-x)*E,(ne+z)*a,(ee-z)*E,(ne+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-z)*a,(ee-z)*E,(ne-x)*a,(ee-x)*E,(ne-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,(ee+x)*E,(ne-z)*a,(ee+z)*E,(ne-x)*a)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.4,.75),b}),go.Shape.defineFigureGenerator("NandGate",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=Pe*.4,ee=Pe*.1,ne=.1,oe=.9,ie=.5,se=new go.PathFigure(.8*E,.5*a,!0);b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+x)*E,a)),se.add(new go.PathSegment(go.PathSegment.Line,0,a)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+x)*E,0,.8*E,(.5-z)*a));var ge=new go.PathFigure((oe+ne)*E,ie*a,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie+ne)*a,(oe+ne)*E,(ie+ee)*a,(oe+ee)*E,(ie+ne)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ne)*E,ie*a,(oe-ee)*E,(ie+ne)*a,(oe-ne)*E,(ie+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ne)*a,(oe-ne)*E,(ie-ee)*a,(oe-ee)*E,(ie-ne)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ne)*E,ie*a,(oe+ee)*E,(ie-ne)*a,(oe+ne)*E,(ie-ee)*a)),b.spot1=new go.Spot(0,.05),b.spot2=new go.Spot(.55,.95),b}),go.Shape.defineFigureGenerator("NorGate",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*x,ee=0,ne=.5,oe=new go.PathFigure(.8*E,.5*a,!0);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ee+z)*E,(ne-x)*a,.7*E,(ne-z)*a)),x=.1,z=Pe*.1,ee=.9,ne=.5;var ie=new go.PathFigure((ee-x)*E,ne*a,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-x)*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*E,ne*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+x)*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*E,ne*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a)),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.6,.75),b}),go.Shape.defineFigureGenerator("OrGate",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*x,ee=0,ne=.5,oe=new go.PathFigure(0,0,!0);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ee+z+z)*E,(ne-x)*a,.8*E,(ne-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(ne+z)*a,(ee+z+z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("XnorGate",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*x,ee=.2,ne=.5,oe=new go.PathFigure(.1*E,0,!1);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.8*E,.5*a,!0);b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ee+z)*E,(ne-x)*a,.7*E,(ne-z)*a)),x=.1,z=Pe*.1,ee=.9,ne=.5;var se=new go.PathFigure((ee-x)*E,ne*a,!0);return b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-x)*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*E,ne*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+x)*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*E,ne*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a)),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.65,.75),b}),go.Shape.defineFigureGenerator("XorGate",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*x,ee=.2,ne=.5,oe=new go.PathFigure(.1*E,0,!1);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.2*E,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ee+z)*E,(ne-x)*a,.9*E,(ne-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.8,.75),b}),go.Shape.defineFigureGenerator("Capacitor",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Move,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),b}),go.Shape.defineFigureGenerator("Resistor",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.5*a,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),b}),go.Shape.defineFigureGenerator("Inductor",function(ae,E,a){var b=new go.Geometry,x=Pe*.1,z=.1,ee=.1,ne=.5,oe=new go.PathFigure((ee-x*.5)*E,a,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,0,(ee-x)*E,a,(ee-z)*E,0)),ee=.3,oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,a,(ee+z)*E,0,(ee+x)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,0,(ee-x)*E,a,(ee-z)*E,0)),ee=.5,oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,a,(ee+z)*E,0,(ee+x)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,0,(ee-x)*E,a,(ee-z)*E,0)),ee=.7,oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,a,(ee+z)*E,0,(ee+x)*E,a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,0,(ee-x)*E,a,(ee-z)*E,0)),ee=.9,oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x*.5)*E,a,(ee+z)*E,0,(ee+x)*E,a)),b}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,E,a){var b=new go.Geometry,x=Pe*.5,z=.5,ee=.5,ne=.5,oe=new go.PathFigure((ee-z)*E,ne*a,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-z)*a,(ee-z)*E,(ne-x)*a,(ee-x)*E,(ne-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,(ee+x)*E,(ne-z)*a,(ee+z)*E,(ne-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee+z)*E,(ne+x)*a,(ee+x)*E,(ne+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,(ee-x)*E,(ne+z)*a,(ee-z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,(ee-z+.1)*E,ne*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z-.1)*E,ne*a,ee*E,(ne-z)*a,ee*E,(ne+z)*a)),b}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.75*a,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),b}),go.Shape.defineFigureGenerator("Diode",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Wifi",function(ae,E,a){var b=new go.Geometry,x=E,z=a;E=E*.38,a=a*.6;var ee=Pe*.8,ne=.8,oe=0,ie=.5,se=(x-E)/2,ge=(z-a)/2,Se=new go.PathFigure(oe*E+se,(ie+ne)*a+ge,!0);b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ne)*E+se,ie*a+ge,(oe-ee)*E+se,(ie+ne)*a+ge,(oe-ne)*E+se,(ie+ee)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie-ne)*a+ge,(oe-ne)*E+se,(ie-ee)*a+ge,(oe-ee)*E+se,(ie-ne)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ne+ee*.5)*E+se,ie*a+ge,oe*E+se,(ie-ne)*a+ge,(oe-ne+ee*.5)*E+se,(ie-ee)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie+ne)*a+ge,(oe-ne+ee*.5)*E+se,(ie+ee)*a+ge,oe*E+se,(ie+ne)*a+ge).close()),ee=Pe*.4,ne=.4,oe=.2,ie=.5;var be=new go.PathFigure(oe*E+se,(ie+ne)*a+ge,!0);b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ne)*E+se,ie*a+ge,(oe-ee)*E+se,(ie+ne)*a+ge,(oe-ne)*E+se,(ie+ee)*a+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie-ne)*a+ge,(oe-ne)*E+se,(ie-ee)*a+ge,(oe-ee)*E+se,(ie-ne)*a+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ne+ee*.5)*E+se,ie*a+ge,oe*E+se,(ie-ne)*a+ge,(oe-ne+ee*.5)*E+se,(ie-ee)*a+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie+ne)*a+ge,(oe-ne+ee*.5)*E+se,(ie+ee)*a+ge,oe*E+se,(ie+ne)*a+ge).close()),ee=Pe*.2,ne=.2,oe=.5,ie=.5;var ot=new go.PathFigure((oe-ne)*E+se,ie*a+ge,!0);b.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie-ne)*a+ge,(oe-ne)*E+se,(ie-ee)*a+ge,(oe-ee)*E+se,(ie-ne)*a+ge)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ne)*E+se,ie*a+ge,(oe+ee)*E+se,(ie-ne)*a+ge,(oe+ne)*E+se,(ie-ee)*a+ge)),ot.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie+ne)*a+ge,(oe+ne)*E+se,(ie+ee)*a+ge,(oe+ee)*E+se,(ie+ne)*a+ge)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ne)*E+se,ie*a+ge,(oe-ee)*E+se,(ie+ne)*a+ge,(oe-ne)*E+se,(ie+ee)*a+ge)),ee=Pe*.4,ne=.4,oe=.8,ie=.5;var _e=new go.PathFigure(oe*E+se,(ie-ne)*a+ge,!0);b.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ne)*E+se,ie*a+ge,(oe+ee)*E+se,(ie-ne)*a+ge,(oe+ne)*E+se,(ie-ee)*a+ge)),_e.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie+ne)*a+ge,(oe+ne)*E+se,(ie+ee)*a+ge,(oe+ee)*E+se,(ie+ne)*a+ge)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ne-ee*.5)*E+se,ie*a+ge,oe*E+se,(ie+ne)*a+ge,(oe+ne-ee*.5)*E+se,(ie+ee)*a+ge)),_e.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie-ne)*a+ge,(oe+ne-ee*.5)*E+se,(ie-ee)*a+ge,oe*E+se,(ie-ne)*a+ge).close()),ee=Pe*.8,ne=.8,oe=1,ie=.5;var nt=new go.PathFigure(oe*E+se,(ie-ne)*a+ge,!0);return b.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ne)*E+se,ie*a+ge,(oe+ee)*E+se,(ie-ne)*a+ge,(oe+ne)*E+se,(ie-ee)*a+ge)),nt.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie+ne)*a+ge,(oe+ne)*E+se,(ie+ee)*a+ge,(oe+ee)*E+se,(ie+ne)*a+ge)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ne-ee*.5)*E+se,ie*a+ge,oe*E+se,(ie+ne)*a+ge,(oe+ne-ee*.5)*E+se,(ie+ee)*a+ge)),nt.add(new go.PathSegment(go.PathSegment.Bezier,oe*E+se,(ie-ne)*a+ge,(oe+ne-ee*.5)*E+se,(ie-ee)*a+ge,oe*E+se,(ie-ne)*a+ge).close()),b}),go.Shape.defineFigureGenerator("Email",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),b}),go.Shape.defineFigureGenerator("Ethernet",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.35*E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var ee=new go.PathFigure(.6*E,a,!0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var ne=new go.PathFigure(0,.5*a,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),b}),go.Shape.defineFigureGenerator("Power",function(ae,E,a){var b=new go.Geometry,x=Pe*.4,z=.4,ee=.5,ne=.5,oe=y(),ie=y(),se=y(),ge=y();Oe(ee,ne-z,ee+x,ne-z,ee+z,ne-x,ee+z,ne,.5,oe,oe,ie,se,ge);var Se=te(ie.x,ie.y),be=new go.PathFigure(ie.x*E,ie.y*a,!0);b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,se.x*E,se.y*a,ge.x*E,ge.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee+z)*E,(ne+x)*a,(ee+x)*E,(ne+z)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,(ee-x)*E,(ne+z)*a,(ee-z)*E,(ne+x)*a)),Oe(ee-z,ne,ee-z,ne-x,ee-x,ne-z,ee,ne-z,.5,se,ge,ie,oe,oe),be.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,se.x*E,se.y*a,ge.x*E,ge.y*a)),x=Pe*.3,z=.3,Oe(ee-z,ne,ee-z,ne-x,ee-x,ne-z,ee,ne-z,.5,se,ge,ie,oe,oe),be.add(new go.PathSegment(go.PathSegment.Line,ie.x*E,ie.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*E,ne*a,ge.x*E,ge.y*a,se.x*E,se.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+z)*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*E,ne*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),Oe(ee,ne-z,ee+x,ne-z,ee+z,ne-x,ee+z,ne,.5,oe,oe,ie,se,ge),be.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,ge.x*E,ge.y*a,se.x*E,se.y*a).close());var be=new go.PathFigure(.45*E,0,!0);return b.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),be.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),be.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),ce(oe),ce(ie),ce(se),ce(ge),ce(Se),b.spot1=new go.Spot(.25,.45),b.spot2=new go.Spot(.75,.8),b}),go.Shape.defineFigureGenerator("Fallout",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a/2,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(ee,ne,oe){ee.add(new go.PathSegment(go.PathSegment.Move,(.3+ne)*E,(.8+oe)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+ne)*E,(.5+oe)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,(.1+ne)*E,(.5+oe)*a)),ee.add(new go.PathSegment(go.PathSegment.Line,(.3+ne)*E,(.8+oe)*a).close())}return z(x,0,0),z(x,.4,0),z(x,.2,-.3),b}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.2*E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),b.spot1=new go.Spot(.3,.3),b.spot2=new go.Spot(.7,.7),b}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.37*E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),x.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),x.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),x.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),x.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),x.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),b}),go.Shape.defineFigureGenerator("FireHazard",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.1*E,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),b.spot1=new go.Spot(.07,.445),b.spot2=new go.Spot(.884,.958),b}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,E,a){var b=new go.Geometry,x=.5,z=0,ee=0,ne=x*Pe,oe=.4*Math.SQRT2/2+.5,ie=.5-.5*Math.SQRT2/2,se=1,ge=.5,Se=.5,be=0,ot=new go.PathFigure(oe*E,(1-ie)*a,!1);return b.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,se*E,ge*a,se*E,.7*a,se*E,ge*a)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Se+z)*E,(be+z)*a,(.5+x+z)*E,(.5-ne+z)*a,(.5+ne+z)*E,(.5-x+z)*a)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*E,(.5+ee)*a,(.5-ne+z)*E,(.5-x+ee)*a,(.5-x+z)*E,(.5-ne+ee)*a)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-x+z)*E,(.5+ne+ee)*a,(.5-ne+z)*E,.9*a)),ot.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),ot.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),ot.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),b}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Move,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),b}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),b}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);b.add(x);var z=new go.PathFigure(E,a,!1);b.add(z);var ee=new go.PathFigure(0,.5*a,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),b}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),b}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.2*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var x=new go.PathFigure(0,.2*a,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),b}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.7*E,a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),b}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);b.add(x);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var ee=.5-.285,ne=.5,oe=ee,ie=Math.PI/4,se=4*(1-Math.cos(ie))/(3*Math.sin(ie)),ge=se*.5,Se=ee,be=ee,ot=se*Se,_e=se*be;z.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Se)*E,oe*a,(ne-(ot+Se)/2)*E,(oe+(be+_e)/2)*a,(ne-Se)*E,(oe+_e)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(oe-be)*a,(ne-Se)*E,(oe-_e)*a,(ne-ot)*E,(oe-be)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Se)*E,oe*a,(ne+ot)*E,(oe-be)*a,(ne+Se)*E,(oe-_e)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(ne+Se)*E,(oe+_e)*a,(ne+(ot+Se)/2)*E,(oe+(be+_e)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var nt=new go.PathFigure(.2*E,a,!1);b.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var dt=new go.PathFigure(.8*E,a,!1);return b.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),b}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.1*E,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),b}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),b}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);b.add(x);var z=new go.PathFigure(E,a,!1);b.add(z);var ee=new go.PathFigure(.1*E,a,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),b}),go.Shape.defineFigureGenerator("Caution",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.05*E,a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return x.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),x.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),b}),go.Shape.defineFigureGenerator("Recycle",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.45*E,.95*a,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),x.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),x.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),x.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var ee=new go.PathFigure(.675*E,.575*a,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),ee.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),b}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*.5,ee=new go.PathFigure(E,x*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*E,a,E,(x+z)*a,(x+z)*E,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-z)*E,a,0,(x+z)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*E,0,0,(x-z)*a,(x-z)*E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,x*a,(x+z)*E,0,E,(x-z)*a));var ne=new go.PathFigure(x*E,0,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,x*E,.15*a)),ne.add(new go.PathSegment(go.PathSegment.Move,x*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x*E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,x*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,x*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*E,x*a)),ne.add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),b}),go.Shape.defineFigureGenerator("Package",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.15*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),b.spot1=new go.Spot(0,.1),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Class",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ee=new go.PathFigure(0,.5*a,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),b}),go.Shape.defineFigureGenerator("Component",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E,a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var ee=new go.PathFigure(0,.6*a,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),b}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.15*E,.6*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),b}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),x.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),x.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),b}),go.Shape.defineFigureGenerator("Workcell",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b}),go.Shape.defineFigureGenerator("Supermarket",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),x.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),x.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),b}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var ee=.1,ne=Pe*.1,oe=.2,ie=.9,se=new go.PathFigure((oe-ee)*E,ie*a,!0);b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ee)*a,(oe-ee)*E,(ie-ne)*a,(oe-ne)*E,(ie-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*E,ie*a,(oe+ne)*E,(ie-ee)*a,(oe+ee)*E,(ie-ne)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie+ee)*a,(oe+ee)*E,(ie+ne)*a,(oe+ne)*E,(ie+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*E,ie*a,(oe-ne)*E,(ie+ee)*a,(oe-ee)*E,(ie+ne)*a).close()),ee=.1,ne=Pe*.1,oe=.8,ie=.9;var ge=new go.PathFigure((oe-ee)*E,ie*a,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie-ee)*a,(oe-ee)*E,(ie-ne)*a,(oe-ne)*E,(ie-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*E,ie*a,(oe+ne)*E,(ie-ee)*a,(oe+ee)*E,(ie-ne)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ie+ee)*a,(oe+ee)*E,(ie+ne)*a,(oe+ne)*E,(ie+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*E,ie*a,(oe-ne)*E,(ie+ee)*a,(oe-ee)*E,(ie+ne)*a).close()),b}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.2*E,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),b}),go.Shape.defineFigureGenerator("Forklift",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var ee=new go.PathFigure(.5*E,.8*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var ne=new go.PathFigure(.5*E,.7*a,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var oe=.1,ie=Pe*.1,se=.1,ge=.9,Se=new go.PathFigure((se-oe)*E,ge*a,!0);b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ge-oe)*a,(se-oe)*E,(ge-ie)*a,(se-ie)*E,(ge-oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E,ge*a,(se+ie)*E,(ge-oe)*a,(se+oe)*E,(ge-ie)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ge+oe)*a,(se+oe)*E,(ge+ie)*a,(se+ie)*E,(ge+oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E,ge*a,(se-ie)*E,(ge+oe)*a,(se-oe)*E,(ge+ie)*a)),oe=.1,ie=Pe*.1,se=.4,ge=.9;var be=new go.PathFigure((se-oe)*E,ge*a,!0);return b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ge-oe)*a,(se-oe)*E,(ge-ie)*a,(se-ie)*E,(ge-oe)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E,ge*a,(se+ie)*E,(ge-oe)*a,(se+oe)*E,(ge-ie)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ge+oe)*a,(se+oe)*E,(ge+ie)*a,(se+ie)*E,(ge+oe)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E,ge*a,(se-ie)*E,(ge+oe)*a,(se-oe)*E,(ge+ie)*a)),b}),go.Shape.defineFigureGenerator("RailShipment",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.1*E,.4*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var ee=new go.PathFigure(.55*E,.4*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var se=.05,ge=Pe*.05,Se=.175,be=.95,ne=new go.PathFigure((Se-se)*E,be*a,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be-se)*a,(Se-se)*E,(be-ge)*a,(Se-ge)*E,(be-se)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*E,be*a,(Se+ge)*E,(be-se)*a,(Se+se)*E,(be-ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be+se)*a,(Se+se)*E,(be+ge)*a,(Se+ge)*E,(be+se)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*E,be*a,(Se-ge)*E,(be+se)*a,(Se-se)*E,(be+ge)*a));var se=.05,ge=Pe*.05,Se=.375,be=.95,oe=new go.PathFigure((Se-se)*E,be*a,!0);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be-se)*a,(Se-se)*E,(be-ge)*a,(Se-ge)*E,(be-se)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*E,be*a,(Se+ge)*E,(be-se)*a,(Se+se)*E,(be-ge)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be+se)*a,(Se+se)*E,(be+ge)*a,(Se+ge)*E,(be+se)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*E,be*a,(Se-ge)*E,(be+se)*a,(Se-se)*E,(be+ge)*a));var se=.05,ge=Pe*.05,Se=.625,be=.95,ie=new go.PathFigure((Se-se)*E,be*a,!0);b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be-se)*a,(Se-se)*E,(be-ge)*a,(Se-ge)*E,(be-se)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*E,be*a,(Se+ge)*E,(be-se)*a,(Se+se)*E,(be-ge)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be+se)*a,(Se+se)*E,(be+ge)*a,(Se+ge)*E,(be+se)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*E,be*a,(Se-ge)*E,(be+se)*a,(Se-se)*E,(be+ge)*a));var se=.05,ge=Pe*.05,Se=.825,be=.95,ot=new go.PathFigure((Se-se)*E,be*a,!0);b.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be-se)*a,(Se-se)*E,(be-ge)*a,(Se-ge)*E,(be-se)*a)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*E,be*a,(Se+ge)*E,(be-se)*a,(Se+se)*E,(be-ge)*a)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Se*E,(be+se)*a,(Se+se)*E,(be+ge)*a,(Se+ge)*E,(be+se)*a)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*E,be*a,(Se-ge)*E,(be+se)*a,(Se-se)*E,(be+ge)*a).close());var _e=new go.PathFigure(0,a,!1);return b.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),b}),go.Shape.defineFigureGenerator("Warehouse",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ee=new go.PathFigure(.15*E,a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var ne=.05,oe=Pe*.05,ie=.35,se=.775,ge=new go.PathFigure((ie-ne)*E,se*a,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(se-ne)*a,(ie-ne)*E,(se-oe)*a,(ie-oe)*E,(se-ne)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,se*a,(ie+oe)*E,(se-ne)*a,(ie+ne)*E,(se-oe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(se+ne)*a,(ie+ne)*E,(se+oe)*a,(ie+oe)*E,(se+ne)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,se*a,(ie-oe)*E,(se+ne)*a,(ie-ne)*E,(se+oe)*a).close()),b}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),b}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.75*a,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b}),go.Shape.defineFigureGenerator("Bookmark",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),b}),go.Shape.defineFigureGenerator("Bookmark",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),b}),go.Shape.defineFigureGenerator("Globe",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),b}),go.Shape.defineFigureGenerator("Wave",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.25*a,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),b}),go.Shape.defineFigureGenerator("Operator",function(ae,E,a){var b=new go.Geometry,x=.3,z=Pe*.3,ee=.5,ne=.7,oe=new go.PathFigure((ee-x)*E,ne*a,!0);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-x)*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*E,ne*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+x)*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*E,ne*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a));var ie=new go.PathFigure(0,.7*a,!1);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),b}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.5*E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),b}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,0)),b}),go.Shape.defineFigureGenerator("Battery",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),b}),go.Shape.defineFigureGenerator("Delete",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*.5,ee=.5,ne=.5,oe=new go.PathFigure((ee-x)*E,ne*a,!0);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-x)*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*E,ne*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+x)*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*E,ne*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a));var ie=new go.PathFigure(.15*E,.5*a,!1);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),b}),go.Shape.defineFigureGenerator("Flag",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.1*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),b}),go.Shape.defineFigureGenerator("Help",function(ae,E,a){var b=new go.Geometry,x=.5,z=Pe*.5,ee=.5,ne=.5,oe=new go.PathFigure((ee-x)*E,ne*a,!1);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-x)*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*E,ne*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+x)*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*E,ne*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a).close()),x=.05,z=Pe*.05,ee=.5,ne=.8;var ie=new go.PathFigure((ee-x)*E,ne*a,!1);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne-x)*a,(ee-x)*E,(ne-z)*a,(ee-z)*E,(ne-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*E,ne*a,(ee+z)*E,(ne-x)*a,(ee+x)*E,(ne-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*E,(ne+x)*a,(ee+x)*E,(ne+z)*a,(ee+z)*E,(ne+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*E,ne*a,(ee-z)*E,(ne+x)*a,(ee-x)*E,(ne+z)*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),b}),go.Shape.defineFigureGenerator("Location",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),b}),go.Shape.defineFigureGenerator("Unlocked",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),b}),go.Shape.defineFigureGenerator("Gear",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),x.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),b}),go.Shape.defineFigureGenerator("Map",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,.2*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),x.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),b}),go.Shape.defineFigureGenerator("Eject",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),x.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),b}),go.Shape.defineFigureGenerator("Pencil",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*1,a*1,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),x.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),x.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),x.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),x.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),x.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),x.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var ee=new go.PathFigure(.402*E,.85*a,!1);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var ne=new go.PathFigure(.678*E,.85*a,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var oe=new go.PathFigure(.5*E,.1*a,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),b}),go.Shape.defineFigureGenerator("Staircase",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a*1,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),x.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),x.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),x.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),x.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),x.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),x.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),x.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),x.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),b}),go.Shape.defineFigureGenerator("5Bars",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,a*1,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var ee=new go.PathFigure(E*.408,a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),ee.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var ne=new go.PathFigure(E*.612,a,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var oe=new go.PathFigure(E*.816,a,!0);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),oe.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),b}),go.Shape.defineFigureGenerator("PC",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var ee=new go.PathFigure(E*.055,.13*a,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var ne=new go.PathFigure(E*.055,.18*a,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var oe=new go.PathFigure(E*1,0,!0);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),oe.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),b}),go.Shape.defineFigureGenerator("Plane",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(.55*E,a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),b}),go.Shape.defineFigureGenerator("Key",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*1,a*.5,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),x.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),x.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),b}),go.Shape.defineFigureGenerator("FilmTape",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(0,0,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),x.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),x.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var ee=new go.PathFigure(E*.11,a*.1,!1);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var ne=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var oe=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),b}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,E,a){var b=new go.Geometry,x=8,z=x*Pe,ee=new go.PathFigure(x,0,!1);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ee.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),ee.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-z,E-z,a)),ee.add(new go.PathSegment(go.PathSegment.Line,x,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,z,a,0,a-z)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,z,z,0).close());var ne=new go.PathFigure(E*.83,0,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var oe=new go.PathFigure(E*.83,a*1,!1);b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ie=new go.PathFigure(E*.78,a*.05,!1);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),b}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,E,a){var b=ae?ae.parameter1:NaN;(isNaN(b)||b<0)&&(b=15),b=Math.min(b,E/3),b=Math.min(b,a/3);var x=b*Pe,z=a*.8,ee=new go.Geometry,ne=new go.PathFigure(b,0,!0);return ee.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E-b,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,b,E-x,0,E,x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,z-b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-b,z,E,z-x,E-x,z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),ne.add(new go.PathSegment(go.PathSegment.Line,b,z)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z-b,x,z,0,z-x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close()),x>1?(ee.spot1=new go.Spot(0,0,x,x),ee.spot2=new go.Spot(1,.8,-x,-x)):(ee.spot1=go.Spot.TopLeft,ee.spot2=new go.Spot(1,.8)),ee}),go.Shape.defineFigureGenerator("Repeat",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*0,a*.45,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),x.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),x.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),b}),go.Shape.defineFigureGenerator("Windows",function(ae,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*0,a*.1,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),x.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var ee=new go.PathFigure(E*.28,a*.37,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),b}),go.Shape.defineFigureGenerator("Beaker",function(ae,E,a){var b=new go.Geometry,x=15,z=x*Pe,ee=new go.PathFigure(E*.62,a*.475,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-z,E-z,a)),ee.add(new go.PathSegment(go.PathSegment.Line,x,a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,z,a,0,a-z)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(b.spot1=new go.Spot(0,0,z,z),b.spot2=new go.Spot(1,1,-z,-z)):(b.spot1=go.Spot.TopLeft,b.spot2=go.Spot.BottomRight),b}),go.Shape.defineFigureGenerator("Download",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*0,a*1,!0);b.add(x);var z=.1/.3;x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ee=new go.PathFigure(E*.4,a*0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),ee.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),b}),go.Shape.defineFigureGenerator("Bin",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*0,a*1,!0);b.add(x);var z=.1/.3;return x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),b}),go.Shape.defineFigureGenerator("Upload",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*0,a*1,!0);b.add(x);var z=.1/.3;x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ee=new go.PathFigure(E*.5,a*0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),b}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*.15,a*0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),b}),go.Shape.defineFigureGenerator("Drink",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*.15,a*0,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),b}),go.Shape.defineFigureGenerator("4Arrows",function(ae,E,a){var b=new go.Geometry,x=new go.PathFigure(E*.5,a*0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),x.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),x.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),x.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),x.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),x.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),x.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),x.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),b}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ze={},Rt="5.0",te={},y=null,ce=!1,Ee=!1,Oe=null,De=!1,Be=null,Pe=null,ke=0;ke4?parseFloat(Ge):5};Ze.setHTML5Codebase=function(Ge,Ce){Pe=Ge,Gt(Ge,Ce)},Ze.setJavaCodebase=Ze.setJavaCodebaseVersion=Ze.isCompiledInstalled=Ze.setPreCompiledScriptPath=Ze.setPreCompiledResourcePath=function(){},Ze.setHTML5CodebaseVersion=function(Ge,Ce){var Te=parseFloat(Ge);if(Te!==NaN&&Te<5){console.log("The GeoGebra HTML5 codebase version "+Te+" is deprecated. Using version latest instead.");return}Be=Ge,Mt(Ge,Ce)},Ze.getHTML5CodebaseVersion=function(){return ae},Ze.getParameters=function(){return te},Ze.setFontsCSSURL=function(Ge){ee=Ge},Ze.setGiacJSURL=function(Ge){},Ze.setJNLPFile=function(Ge){xe=Ge},Ze.setJNLPBaseDir=function(Ge){},Ze.inject=function(){function Ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Te=te.id,Ue,Je=!1,St=0;St=5)return!0;var Ge=Ze.getAppletObject();return Ge&&typeof Ge.recalculateEnvironments=="function"?(Ge.recalculateEnvironments(),!0):!1},Ze.startAnimation=function(){var Ge=Ze.getAppletObject();return Ge&&typeof Ge.startAnimation=="function"?(Ge.startAnimation(),!0):!1},Ze.stopAnimation=function(){var Ge=Ze.getAppletObject();return Ge&&typeof Ge.stopAnimation=="function"?(Ge.stopAnimation(),!0):!1},Ze.getAppletObject=function(){var Ge=te.id!==void 0?te.id:"ggbApplet";return window[Ge]},Ze.resize=function(){};var ot=function(Ge,Ce,Te){var Ue=document.createElement("param");Ue.setAttribute("name",Ce),Ue.setAttribute("value",Te),Ge.appendChild(Ue)},_e=function(Ge){return Ge&&Ge!=="false"},nt=function(Ge,Ce,Te){oe(ae)<=4.2&&(Te=!0);var Ue=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Ue=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Je=document.createElement("div");Je.classList.add("appletParameters","notranslate");var St=Ce.width,he=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(oe(ae)<=4.4)_e(Ce.showToolBar)&&(Ce.height-=7),_e(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&_e(Ce.showToolBar)&&(Ce.width=605,St=605);else{var Ne=100;(_e(Ce.showToolBar)||_e(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Ne=_e(Ce.showMenuBar)?245:155),St=5?(Ce.appletOnLoad=function(Pt){var kt=Ge.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(bt),window.GGBT_wsf_view&&$(window).trigger("resize"),$t(Pt)},_t||bt.appendChild(vt)):Je.appendChild(vt),bt.appendChild(Je),_t||Ge.appendChild(bt),setTimeout(function(){Ze.resize()},1)}else{var Ve=document.createElement("div");Ve.className="applet_scaler",Ve.style.position="relative",Ve.style.display="block",Ve.appendChild(Je),Ge.appendChild(Ve),Ce.appletOnLoad=function(Pt){Ze.resize(),$t(Pt)}}function rn(Pt,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pt,kt.appletOnLoad):renderGGBElement(Pt),xt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function Mn(Pt,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pt,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ot){rn(Ot.article,Ot.params)}),html5AppletsToProcess=null)},oe(ae)<5&&(Pt.className+=" geogebraweb")):rn(Pt,kt)}if(Ue){scriptLoadStarted=!0;for(var on=0;on0?(Wt.remove(),bt.attr("id","fullscreencontent").show(),jQuery($t).append(bt),window.dispatchEvent(new Event("resize"))):nt(Wt,Ce,!1),window.GGBT_wsf_view.launchFullScreen($t)}else Xe=Ue,nt(Ge,Ce,!1);if(!window.GGBT_wsf_view)for(he=0;heGe/4*3&&(Wt=Ge/4*3),$t=Wt/5.8,Ne.setAttribute("src",x),Ne.setAttribute("width",Wt),Ne.setAttribute("height",$t);var bt=(Ge-Wt)/2,_t=(Ce-$t)/2;Ne.style.left=bt+"px",Ne.style.top=_t+"px",Je.appendChild(Ne)}}return Je.appendChild(he),Je},An=function(Ge){return Ge=Ge.toLowerCase(),Ge==="html5"||Ge==="screenshot"?Ge:"html5"},ht=["web","webSimple","web3d","tablet","tablet3d","phone"],Mt=function(Ge,Ce){if(ae=Ge,Ce){Gt(ae,!0);return}var Te=!ce;if(Te){var Ue=oe(ae);!isNaN(Ue)&&Ue<4.4&&(Te=!1)}var Je,St;window.location.protocol.substr(0,4)==="http"?Je=window.location.protocol:Je="http:";var he=ae.indexOf("//");he>0?St=ae:he===0?St=Je+ae:St="https://www.geogebra.org/apps/5.2.814.0/";for(var Ne in ht)if(ae.slice(ht[Ne].length*-1)===ht[Ne]||ae.slice((ht[Ne].length+1)*-1)===ht[Ne]+"/"){Gt(St,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Te&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!_e(te.showToolBar)&&!_e(te.showMenuBar)&&!_e(te.showAlgebraInput)&&!_e(te.enableRightClick)&&(!te.appName||te.appName=="classic")?St+="webSimple/":St+="web3d/",Gt(St,!1)},Gt=function(Ge,Ce){if(Ge.requirejs){Ie=Ge;return}Ge.slice(-1)!=="/"&&(Ge+="/"),Ie=Ge,Ce===null&&(Ce=Ge.indexOf("http")===-1),Ye=Ce,E="web.nocache.js",a=!1;var Te=Ie.split("/");Te.length>1&&(!Ce&&Te[Te.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):ht.indexOf(Te[Te.length-2])>=0&&(E=Te[Te.length-2]+".nocache.js")),Te=Ge.split("/"),ae=Te[Te.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Ue=parseFloat(ae);Ue!==NaN&&Ue<5&&Ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead."),Mt("5.0",Ce))},xt=function(Ge,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(Ge)};te.material_id!==void 0?ge(At):At();function At(){var Ge=Rt;Be!==null?Ge=Be:parseFloat(Ge)<5&&(Ge="5.0"),Mt(Ge,!1),Pe!==null&&Gt(Pe,Ye),De=!0}return Ze},GGBAppletUtils=function(){"use strict";function Ze(){return window.GGBT_wsf_edit!==void 0}function Rt(De,Be){Be!=1?(De.style.transformOrigin="0% 0% 0px",De.style.webkitTransformOrigin="0% 0% 0px",De.style.transform="scale("+Be+","+Be+")",De.style.webkitTransform="scale("+Be+","+Be+")",De.style.maxWidth="initial",De.querySelector(".ggb_preview")!==null&&(De.querySelector(".ggb_preview").style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[0]!==void 0&&(De.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[1]!==void 0&&(De.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(De.style.transform="none",De.style.webkitTransform="none")}function te(De,Be,Pe,ke,Fe,xe){var Ie=null;if(xe!=null&&xe!="")for(var Ye=De.parentNode;Ye!=null;)if((" "+Ye.className+" ").indexOf(" "+xe+" ")>-1){Ie=Ye;break}else Ye=Ye.parentNode;var Xe=0,ae=0,E=0,a=0,b=0,x=0,z=0;if(Ie)Xe=Ie.offsetWidth,ae=Math.max(ke?Ie.offsetWidth:0,Ie.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Xe):(Xe=window.innerWidth,ae=window.innerHeight,E=window.innerWidth),De){var ee=De.getBoundingClientRect();ee.left>0&&ee.left<=Xe&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(b=Xe-ee.width-ee.left,x=E<=480?10:30):(x=ee.left,b=E<=480?10:30),a=x+b)}if(De&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ne=De.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return De&&((Pe===void 0||!Pe)&&Be>0&&Be+a1&&(xe=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xe=!0),!(De.hasOwnProperty("disableAutoScale")&&De.disableAutoScale))Fe=y(De,Be,xe,Pe,De.scaleContainerClass);else return ke;return xe&&(!De.hasOwnProperty("scale")||ke===1)?Fe:Math.min(ke,Fe)}function Ee(De){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),Pe=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=De.getBoundingClientRect(),Fe=(Be-ke.width)/2,xe=(Pe-ke.height)/2;xe<0&&(xe=0),De.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?De.style.left="40px":De.style.left=Fe+"px",De.style.top=xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe<40?De.style.top="40px":De.style.top=xe+"px",De.style.left=Fe+"px")}function Oe(De,Be){var Pe=De.querySelector(".appletParameters");if(Pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==Pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(De)}if(Pe.parentElement&&/fullscreen/.test(Pe.parentElement.className))return;var ke=ce(Be,De);Ze()&&Pe.setAttribute("data-param-scale",ke);for(var Fe=null,xe=0;xe=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ze){var Rt=c[Ze];return Rt==null?null:Rt},r=d,webModule.__errFn=e}function B(){function Ze(De){var Be=De.lastIndexOf(rb);Be==-1&&(Be=De.length);var Pe=De.indexOf(sb);Pe==-1&&(Pe=De.length);var ke=De.lastIndexOf(tb,Math.min(Pe,Be));return ke>=O?De.substring(O,ke+P):W}function Rt(De){if(!De.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=De+vb,De=Ze(Be.src)}return De}function te(){var De=__gwt_getMetaProperty(wb);return De!=null?De:W}function y(){for(var De=o.getElementsByTagName(_),Be=O;BeO?De[De.length-P].href:W}function Ee(){var De=o.location;return De.href==De.protocol+zb+De.host+De.pathname+De.search+De.hash}var Oe=te();return Oe==W&&(Oe=y()),Oe==W&&(Oe=ce()),Oe==W&&Ee()&&(Oe=Ze(o.location.href)),Oe=Rt(Oe),Oe}function C(Ze){return Ze.match(/^\//)||Ze.match(/^[a-zA-Z]+:\/\//)?Ze:webModule.__moduleBase+Ze}function D(){var Ze=[],Rt=O,te=[],y=[];function ce(De){var Be=y[De](),Pe=te[De];if(Be in Pe)return Be;var ke=[];for(var Fe in Pe)ke[Pe[Fe]]=Fe;throw r&&r(De,ke,Be),null}if(__gwt_isKnownPropertyValue=function(De,Be){return Be in te[De]},webModule.__getPropMap=function(){var De={};for(var Be in te)te.hasOwnProperty(Be)&&(De[Be]=ce(Be));return De},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ee;try{Ee=Cb;var Oe=Ee.indexOf(Db);Oe!=-1&&(Rt=parseInt(Ee.substring(Oe+P),$),Ee=Ee.substring(O,Oe))}catch(De){}return webModule.__softPermutationId=Rt,C(Ee+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(Ze,Rt,te){"use strict";te.d(Rt,{Ax:function(){return Oe},Ds:function(){return De},KI:function(){return Pe},SI:function(){return Ee},f1:function(){return ce}});var y=te(74128);function ce(ke){let Fe=!0;if(ke.length>0){for(let xe=0;xe{var x={};for(var z in a)xe.call(a,z)&&b.indexOf(z)<0&&(x[z]=a[z]);if(a!=null&&Fe)for(var z of Fe(a))b.indexOf(z)<0&&Ie.call(a,z)&&(x[z]=a[z]);return x},Xe=(a,b,x)=>new Promise((z,ee)=>{var ne=se=>{try{ie(x.next(se))}catch(ge){ee(ge)}},oe=se=>{try{ie(x.throw(se))}catch(ge){ee(ge)}},ie=se=>se.done?z(se.value):Promise.resolve(se.value).then(ne,oe);ie((x=x.apply(a,b)).next())});const ae=Ee.default.TextArea,E=a=>{var b=a,{account:x,globalSetting:z,loading:ee,dispatch:ne,schoolName:oe,departmentName:ie,visible:se,onClose:ge=()=>{},onSuccess:Se=()=>{}}=b,be=Ye(b,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[ot]=Oe.default.useForm(),_e=(0,y.useRef)(),[nt,dt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{_e.current=be.schoolId},[be.schoolId]),(0,y.useEffect)(()=>{ot.setFieldsValue({department:ie})},[ie]);const Tt=yt=>Xe(void 0,null,function*(){var nn,Nt,An;const{department:ht,remarks:Mt}=yt||{};dt(!0);const Gt=yield(0,ke.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:ht,school_id:_e.current}});dt(!1);const xt=()=>Xe(void 0,null,function*(){const At=yield ne({type:"account/appplyDepartment",payload:{school_id:_e.current,name:ht,remarks:Mt}});(At==null?void 0:At.status)===0&&(De.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),Se(ht),ge())});if((Gt==null?void 0:Gt.status)===0){if((nn=Gt==null?void 0:Gt.data)!=null&&nn.name){Be.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",null,y.createElement("div",{className:"mb10"},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u90E8\u95E8\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u90E8\u95E8\uFF1F"),y.createElement(Pe.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(Nt=Gt==null?void 0:Gt.data)==null?void 0:Nt.name,size:(An=Gt==null?void 0:Gt.data)==null?void 0:An.size}],pagination:!1})),onOk:()=>{Se(ht),ge()}});return}xt()}});return y.createElement(Be.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:se,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:ge,onOk:()=>ot.submit(),confirmLoading:nt},y.createElement(Oe.default,{form:ot,labelCol:{span:4},wrapperCol:{span:20},onFinish:Tt},y.createElement(Oe.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},oe),y.createElement(Oe.default.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},y.createElement(Ee.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),y.createElement(Oe.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},y.createElement(ae,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};Rt.Z=(0,ce.connect)(({account:a,loading:b,globalSetting:x})=>({account:a,globalSetting:x,loading:b.effects}))(E)},96935:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ae}});var y=te(3113),ce=te(59301),Ee=Object.defineProperty,Oe=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Fe=(E,a,b)=>a in E?Ee(E,a,{enumerable:!0,configurable:!0,writable:!0,value:b}):E[a]=b,xe=(E,a)=>{for(var b in a||(a={}))Pe.call(a,b)&&Fe(E,b,a[b]);if(Be)for(var b of Be(a))ke.call(a,b)&&Fe(E,b,a[b]);return E},Ie=(E,a)=>Oe(E,De(a)),Ye=(E,a)=>{var b={};for(var x in E)Pe.call(E,x)&&a.indexOf(x)<0&&(b[x]=E[x]);if(E!=null&&Be)for(var x of Be(E))a.indexOf(x)<0&&ke.call(E,x)&&(b[x]=E[x]);return b},Xe=(E,a,b)=>new Promise((x,z)=>{var ee=ie=>{try{oe(b.next(ie))}catch(se){z(se)}},ne=ie=>{try{oe(b.throw(ie))}catch(se){z(se)}},oe=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(ee,ne);oe((b=b.apply(E,a)).next())});const ae=E=>{var a=E,{children:b}=a,x=Ye(a,["children"]);const[z,ee]=(0,ce.useState)(!1);return ce.createElement(y.ZP,Ie(xe({},x),{loading:z,onClick:ne=>Xe(void 0,null,function*(){try{ee(!0),yield x.onClick(ne),ee(!1)}catch(oe){console.error(oe),ee(!1)}})}),b)}},15028:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ke}});var y=te(59301),ce=te(65582),Ee=te(43418),Oe="data:image/png;base64,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",De="data:image/png;base64,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",Be={tilte:"tilte___IfiMG",flexRow:"flexRow___pQP78",flexColumn:"flexColumn___xrBZQ",footerWrap:"footerWrap___C5kCC",img:"img___GoWZu",content:"content___pumTK",modalContent:"modalContent___XvHiZ"};const Pe=({visible:Fe,occupationValue:xe,onCancel:Ie=()=>{}})=>{const Ye=()=>y.createElement("div",{className:Be.flexColumn},y.createElement("img",{className:Be.img,src:De}),y.createElement("span",{className:Be.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1")),Xe=()=>y.createElement("div",{className:Be.flexColumn},y.createElement("img",{className:Be.img,src:Oe}),y.createElement("span",{className:Be.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1")),ae=()=>xe===3?y.createElement(y.Fragment,null,Xe(),Ye()):xe===2?Ye():Xe();return y.createElement(Ee.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Fe,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:()=>{Ie(),ce.history.push("/account/certification")},onCancel:()=>{Ie()}},y.createElement("div",{className:Be.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),y.createElement("div",{className:Be.flexRow},ae()))};var ke=(0,ce.connect)(({paperlibrary:Fe,loading:xe,globalSetting:Ie})=>({paperlibrary:Fe,globalSetting:Ie,loading:xe.effects}))(Pe)},48530:function(Ze,Rt,te){"use strict";var y=te(86204),ce=te.n(y),Ee=Object.defineProperty,Oe=(ke,Fe,xe)=>Fe in ke?Ee(ke,Fe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ke[Fe]=xe,De=(ke,Fe,xe)=>Oe(ke,typeof Fe!="symbol"?Fe+"":Fe,xe),Be=(ke,Fe,xe)=>new Promise((Ie,Ye)=>{var Xe=a=>{try{E(xe.next(a))}catch(b){Ye(b)}},ae=a=>{try{E(xe.throw(a))}catch(b){Ye(b)}},E=a=>a.done?Ie(a.value):Promise.resolve(a.value).then(Xe,ae);E((xe=xe.apply(ke,Fe)).next())});class Pe extends y.EventEmitter{constructor(Fe,xe){super(),De(this,"url"),De(this,"body"),De(this,"fullContent",""),De(this,"controller",null),De(this,"buffer",""),this.url=Fe,this.body=xe}startStream(){return Be(this,null,function*(){this.controller=new AbortController;const{signal:Fe}=this.controller;try{const xe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Fe});if(!xe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${xe.status}`);const Ie=xe.headers.get("content-type");if(!Ie)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Ie.includes("application/json")){const ae=yield xe.json();this.emit("error",ae);return}if(!Ie.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Ye=xe.body.getReader(),Xe=new TextDecoder("utf-8");for(;;){const{done:ae,value:E}=yield Ye.read();if(ae)break;const a=Xe.decode(E,{stream:!0});this.buffer+=a;const b=this.buffer.split(` +`);this.buffer=b.pop()||"";for(const x of b)if(x.startsWith("data:")){const z=x.slice(5).trim();if(z==="[DONE]")break;try{const ee=JSON.parse(z);ee.data&&this.handleData(ee.data)}catch(ee){this.buffer=x+` +`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ee)}}}this.emit("done",this.fullContent)}catch(xe){xe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",xe.message)}})}handleData(Fe){Fe.content&&(this.fullContent+=Fe.content,this.emit("data",{chunk:Fe,full:this.fullContent}))}cancelRequest(){var Fe;(Fe=this.controller)==null||Fe.abort()}}Rt.Z=Pe},36299:function(Ze,Rt,te){"use strict";te.d(Rt,{Z:function(){return ht}});var y=te(59301),ce=te(97831),Ee=te(66328),Oe=te(3977),De=te(18369),Be=te(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ke=te(8591),Fe=te(11611),xe=te(26779),Ie=te(30084),Ye=te(10787),Xe=te(48850),ae=te(43428),E=te(95237),a=te(43604),b={smartWrp:"smartWrp___NjRcB"},x=te(50258),z=te(3918),ee=te(96935),ne=te(59301),oe=(Mt,Gt,xt)=>new Promise((At,Ge)=>{var Ce=Je=>{try{Ue(xt.next(Je))}catch(St){Ge(St)}},Te=Je=>{try{Ue(xt.throw(Je))}catch(St){Ge(St)}},Ue=Je=>Je.done?At(Je.value):Promise.resolve(Je.value).then(Ce,Te);Ue((xt=xt.apply(Mt,Gt)).next())});const ie=` + + + + + \u5FEB\u901F\u6392\u5E8F\u6F14\u793A + + + +

\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A

+ +
+ +